/* Imovewa — Redesigned Bergstraße Clarity (Scannable, Responsive Across All Screens) */
:root {
  --bg-page: #ffffff;
  --bg-warm: #fafbfa;
  --bg-soft: #f2f5f3;
  --bg-surface: #ffffff;
  --bg-dark: #14222e;
  --ink: #172532;
  --ink-muted: #4b5a67;
  --ink-subtle: #687784;
  --accent: #098b48;
  --accent-hover: #066c37;
  --accent-soft: #eaf5ee;
  --accent-border: #cde5d6;
  --border: #dfe5e2;
  --border-strong: #c6d1cb;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(23, 37, 50, 0.04);
  --shadow-md: 0 14px 36px rgba(23, 37, 50, 0.07);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-page);
  line-height: 1.58;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: 8px;
}

.wrap {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.im-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.im-header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.im-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.im-brand-logo {
  height: 44px;
  width: auto;
}

.im-nav {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}

.im-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.16s ease;
}

.im-nav a:hover {
  color: var(--accent);
}

.im-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.im-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
}

.im-phone svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex-shrink: 0;
}

.im-phone:hover {
  color: var(--accent);
}

.im-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.im-btn--primary {
  background: var(--accent);
  color: #ffffff;
}

.im-btn--primary:hover {
  background: var(--accent-hover);
}

.im-btn--dark {
  background: var(--ink);
  color: #ffffff;
}

.im-btn--dark:hover {
  background: #0d1721;
}

.im-btn--outline {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--border-strong);
}

.im-btn--outline:hover {
  border-color: var(--ink);
  background: var(--bg-soft);
}

.im-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

/* Mobile Drawer */
.im-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 34, 46, 0.48);
  display: flex;
  justify-content: flex-end;
}

.im-drawer-backdrop[hidden] {
  display: none;
}

.im-drawer {
  width: min(320px, 88vw);
  background: #ffffff;
  height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: -12px 0 32px rgba(20, 34, 46, 0.16);
}

.im-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.im-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.im-drawer-links a {
  padding: 0.7rem 0.5rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
}

.im-drawer-links a:hover {
  background: var(--bg-soft);
  color: var(--accent);
}

.im-drawer-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Hero */
.im-hero {
  padding: clamp(2.5rem, 4.8vw, 4.5rem) 0 clamp(2.5rem, 4.5vw, 4rem);
  background: var(--bg-page);
}

.im-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}

.im-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.im-hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.15rem, 4.1vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: break-word;
}

.im-lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1.02rem, 1.3vw, 1.14rem);
  color: var(--ink-muted);
  max-width: 48ch;
}

.im-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.im-hero-meta {
  margin: 1.65rem 0 0;
  font-size: 0.91rem;
  color: var(--ink-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
}

.im-meta-dot {
  color: var(--border-strong);
}

.im-hero-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--bg-soft);
}

.im-hero-media picture,
.im-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10.6;
  object-fit: cover;
}

/* Metric Strip */
.im-metrics {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-warm);
}

.im-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.im-metric {
  padding: 1.35rem 1.25rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.im-metric:first-child {
  padding-left: 0;
}

.im-metric:last-child {
  border-right: none;
  padding-right: 0;
}

.im-metric strong {
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.im-metric span {
  font-size: 0.87rem;
  color: var(--ink-muted);
}

/* Sections */
.im-section {
  padding: clamp(3.25rem, 5.5vw, 5rem) 0;
}

.im-section--soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.im-section-head {
  max-width: 680px;
  margin-bottom: clamp(1.85rem, 3.2vw, 2.5rem);
}

.im-section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.im-section-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1rem;
}

/* 4-Card Quick Overview */
.im-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.im-overview-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.im-overview-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.im-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.im-icon-box--green {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

.im-icon-box svg {
  width: 22px;
  height: 22px;
  display: block;
}

.im-overview-card h3 {
  margin: 0.15rem 0 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.im-overview-card p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--ink-muted);
}

.im-overview-link {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

/* Interactive Two-Pillar Service Explorer */
.im-service-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.im-service-header .im-section-head {
  margin-bottom: 0;
}

.im-tablist {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.3rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  gap: 0.3rem;
}

.im-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 9px;
  padding: 0.68rem 1.15rem;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}

.im-tab:hover {
  color: var(--ink);
}

.im-tab[aria-selected="true"] {
  background: #ffffff;
  color: var(--accent);
  border-color: var(--border);
  box-shadow: 0 2px 6px rgba(23, 37, 50, 0.06);
}

.im-tabpanel[hidden] {
  display: none;
}

.im-panel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: 1.5rem;
  align-items: stretch;
}

.im-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.im-topic-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.im-topic-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
}

.im-topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.im-topic-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.im-check {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-top: 2px;
}

.im-check svg {
  width: 15px;
  height: 15px;
  display: block;
}

.im-highlight-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.55rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.im-highlight-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.im-highlight-card > p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-muted);
}

.im-key-facts {
  display: grid;
  gap: 0.65rem;
  margin: 0.15rem 0;
}

.im-key-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.89rem;
}

.im-key-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.im-key-row span {
  color: var(--ink-muted);
}

.im-key-row strong {
  color: var(--ink);
  text-align: right;
}

.im-highlight-card .im-btn {
  margin-top: auto;
  width: 100%;
}

/* Story & Heppenheim Split */
.im-story-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(1.75rem, 3.8vw, 3rem);
  align-items: center;
}

.im-location-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.im-location-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.im-location-caption {
  padding: 1.05rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  border-top: 1px solid var(--border);
}

.im-location-caption strong {
  font-size: 0.94rem;
}

.im-location-caption span {
  font-size: 0.78rem;
  color: var(--ink-subtle);
}

.im-milestones {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.im-milestones li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 0.95rem 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.im-year-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}

.im-milestones strong {
  display: block;
  font-size: 0.96rem;
  margin-bottom: 0.15rem;
}

.im-milestones p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--ink-muted);
}

/* Compact Full-Width References Bar */
.im-ref-bar {
  margin-top: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.im-ref-bar h3 {
  margin: 0;
  font-size: 1.08rem;
}

.im-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.im-chip {
  padding: 0.46rem 0.95rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

/* Contact */
.im-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}

.im-contact-cards {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.im-contact-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.im-contact-item small {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.im-contact-item strong,
.im-contact-item a {
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.im-contact-item a:hover {
  color: var(--accent);
}

.im-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.45rem, 2.8vw, 2.1rem);
  box-shadow: var(--shadow-sm);
}

.im-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.95rem;
}

.im-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.im-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.im-field label {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink);
}

.im-field input,
.im-field select,
.im-field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  font-size: 0.95rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.im-field input:focus,
.im-field select:focus,
.im-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(9, 139, 72, 0.14);
}

.im-form-note {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: var(--ink-subtle);
}

/* Legal Accordions */
.im-legal-stack {
  display: grid;
  gap: 0.9rem;
}

.im-legal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.im-legal-box summary {
  list-style: none;
  padding: 1.15rem 1.45rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  font-size: 1.02rem;
}

.im-legal-box summary::-webkit-details-marker {
  display: none;
}

.im-legal-box summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent);
}

.im-legal-box[open] summary {
  border-bottom: 1px solid var(--border);
}

.im-legal-box[open] summary::after {
  content: '−';
}

.im-legal-content {
  padding: 1.35rem 1.45rem 1.5rem;
  font-size: 0.91rem;
  color: var(--ink-muted);
  display: grid;
  gap: 0.8rem;
}

.im-legal-content h3 {
  margin: 0.25rem 0 0;
  font-size: 0.96rem;
  color: var(--ink);
}

.im-legal-content p,
.im-legal-content ul {
  margin: 0;
}

.im-legal-content ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.im-legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

/* Footer */
.im-footer {
  background: var(--bg-dark);
  color: #dbe3e8;
  padding: 2.75rem 0 2rem;
}

.im-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.im-footer-brand {
  display: inline-flex;
  align-items: center;
}

.im-footer-brand img {
  height: 40px;
  width: auto;
}

.im-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.91rem;
}

.im-footer-nav a {
  text-decoration: none;
  color: #dbe3e8;
}

.im-footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.im-footer-bottom {
  padding-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: #9cb0be;
}

.im-footer-bottom a {
  color: #c7d6e0;
  text-decoration: none;
}

.im-footer-bottom a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Dialog */
.im-dialog {
  width: min(560px, calc(100vw - 2rem));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 24px 64px rgba(20, 34, 46, 0.25);
  color: var(--ink);
}

.im-dialog::backdrop {
  background: rgba(20, 34, 46, 0.55);
  backdrop-filter: blur(4px);
}

.im-dialog h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}

.im-dialog-meta {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.im-dialog textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-warm);
  padding: 0.85rem;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.im-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.im-dialog-status {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  min-height: 1.25em;
}

/* Responsive: Tablet & Small Desktop */
@media (max-width: 1120px) {
  .im-panel-layout {
    grid-template-columns: 1fr;
  }

  .im-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .im-nav,
  .im-header-actions .im-phone,
  .im-header-actions .im-btn {
    display: none;
  }

  .im-menu-btn {
    display: inline-flex;
  }

  .im-hero-grid,
  .im-story-split,
  .im-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .im-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .im-metric {
    padding: 1.15rem 1rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .im-metric:nth-child(odd) {
    padding-left: 0;
    border-right: 1px solid var(--border);
  }

  .im-metric:nth-child(even) {
    padding-right: 0;
  }

  .im-metric:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .im-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .im-topic-grid {
    grid-template-columns: 1fr;
  }

  .im-service-header {
    flex-direction: column;
    align-items: stretch;
  }

  .im-tablist {
    width: 100%;
  }

  .im-partner-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive: Mobile */
@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 1.75rem);
  }

  .im-header-inner {
    min-height: 68px;
  }

  .im-brand-logo {
    height: 36px;
  }

  .im-overview-grid,
  .im-form-row,
  .im-legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .im-tab {
    padding: 0.65rem 0.6rem;
    font-size: 0.87rem;
  }

  .im-milestones li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .im-year-pill {
    justify-self: start;
  }

  .im-hero-actions .im-btn {
    width: 100%;
  }
}
