:root {
  --navy-950: #071a2b;
  --navy-900: #0b2239;
  --blue-700: #0a5eb5;
  --blue-600: #146fd1;
  --orange-500: #f47a1f;
  --orange-700: #b54708;
  --text-900: #122033;
  --text-700: #455568;
  --text-500: #66768a;
  --surface-0: #ffffff;
  --surface-50: #f4f7fa;
  --surface-100: #e8eef4;
  --border-200: #d8e1ea;
  --blue-50: #ddebff;
  --success-700: #16794d;
  --error-700: #b42318;
  --focus: #80b7ff;
  --container: 1248px;
  --page-gutter: clamp(20px, 5vw, 96px);
  --section-space: clamp(56px, 7vw, 104px);
  --section-space-tight: clamp(44px, 5vw, 76px);
  --section-space-large: clamp(68px, 8vw, 112px);
  --grid-gap: clamp(22px, 2vw, 28px);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; scroll-padding-top: 112px; }
[id] { scroll-margin-top: 112px; }

body {
  margin: 0;
  color: var(--text-900);
  background: var(--surface-0);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

.container {
  width: min(var(--container), calc(100% - (2 * var(--page-gutter))));
  margin-inline: auto;
}

.site-header {
  height: 80px;
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--border-200);
  position: relative;
  z-index: 5;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 160px;
}

.brand img { width: 46px; height: auto; }
.brand span { font-size: 23px; font-weight: 800; letter-spacing: .06em; color: var(--navy-950); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  color: var(--text-700);
  white-space: nowrap;
}

.nav a.active { color: var(--blue-700); }
.menu-button { display: none; }

.btn {
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 6px;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.btn-primary { background: var(--orange-500); color: var(--navy-950); }
.btn-secondary { background: transparent; color: var(--blue-600); border-color: var(--blue-600); }
.btn-secondary.on-dark { color: #fff; border-color: rgba(255,255,255,.72); }
.text-link { color: var(--blue-700); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.hero {
  background: var(--navy-950);
  color: #fff;
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: clamp(560px, 64svh, 640px);
  overflow: hidden;
  isolation: isolate;
}

.hero--height-compact .hero-grid { min-height: clamp(420px, 48svh, 500px); }
.hero--height-tall .hero-grid { min-height: clamp(600px, 70svh, 720px); }

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - (2 * var(--page-gutter))));
  margin-inline: auto;
  padding-block: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-copy > * { max-width: 650px; }
.hero--position-top .hero-copy { justify-content: flex-start; }
.hero--position-bottom .hero-copy { justify-content: flex-end; }
.hero--align-center .hero-copy { align-items: center; text-align: center; }
.hero--align-center .hero-actions { justify-content: center; }
.hero--align-center .hero-meta { justify-content: center; }
.hero-media { position: absolute; inset: 0; min-width: 0; overflow: hidden; }
.hero-media picture,
.hero-media .portauto-section-picture { height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(7,26,43,.96) 0%, rgba(7,26,43,.88) 34%, rgba(7,26,43,.52) 64%, rgba(7,26,43,.2) 100%);
  pointer-events: none;
}
.hero--overlay-light .hero-media::after { background: linear-gradient(90deg, rgba(7,26,43,.82) 0%, rgba(7,26,43,.62) 40%, rgba(7,26,43,.14) 100%); }
.hero--overlay-medium .hero-media::after { background: linear-gradient(90deg, rgba(7,26,43,.91) 0%, rgba(7,26,43,.75) 40%, rgba(7,26,43,.2) 100%); }
.hero--overlay-strong .hero-media::after { background: linear-gradient(90deg, rgba(7,26,43,.96) 0%, rgba(7,26,43,.88) 34%, rgba(7,26,43,.52) 64%, rgba(7,26,43,.2) 100%); }
.hero--align-center .hero-media::after { background: linear-gradient(90deg, rgba(7,26,43,.62), rgba(7,26,43,.54), rgba(7,26,43,.62)); }

.hero-note {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: min(350px, calc(100% - 56px));
  padding: 20px 22px;
  color: #fff;
  background: rgba(7,26,43,.9);
  border-left: 4px solid var(--orange-500);
  z-index: 3;
}

.hero-note strong { display: block; font-size: 15px; letter-spacing: .02em; }
.hero-note span { display: block; margin-top: 5px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.77); }

.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 800;
  color: var(--blue-600);
}

.hero .eyebrow { color: #80b7ff; }
.hero h1,
.hero h2,
.hero h3,
.hero h4,
.section.dark h1,
.section.dark h2,
.section.dark h3,
.section.dark h4,
.featured-case h1,
.featured-case h2,
.featured-case h3,
.featured-case h4,
.vehicle-request-card h1,
.vehicle-request-card h2,
.vehicle-request-card h3,
.vehicle-request-card h4,
.contact-aside h1,
.contact-aside h2,
.contact-aside h3,
.contact-aside h4,
.quote-band h1,
.quote-band h2,
.quote-band h3,
.quote-band h4 { color: #fff; }
h1, h2, h3, h4 { margin: 0; font-weight: 750; line-height: 1.12; letter-spacing: -.028em; }
h1 { font-size: clamp(48px, 4.45vw, 64px); }
h2 { font-size: 40px; }
h3 { font-size: 27px; }
h4 { font-size: 20px; }
p { margin: 0; }

.lead { margin-top: 24px; font-size: 20px; line-height: 1.58; color: var(--text-700); }
.hero .lead { color: rgba(255,255,255,.76); }
.hero-subtitle { margin-top: 14px; color: #fff; font-size: 20px; font-weight: 700; line-height: 1.4; }
.hero-subtitle + .lead { margin-top: 12px; }
.hero--title-line-tight h1 { line-height: 1; }
.hero--title-line-relaxed h1 { line-height: 1.24; }
.hero--body-line-tight .lead { line-height: 1.4; }
.hero--body-line-relaxed .lead { line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.75); font-size: 14px; }
.hero-meta span { max-width: 150px; }

.compact-hero { border-bottom: 1px solid rgba(255,255,255,.16); }
.compact-hero-grid { min-height: clamp(420px, 48svh, 500px); }
.compact-hero-copy { padding-block: 64px; }
.compact-hero h1 { max-width: 760px; font-size: clamp(44px, 4vw, 56px); }
.compact-hero .hero-actions { margin-top: 30px; }

.breadcrumbs { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 22px; }
.breadcrumbs a { color: #fff; }
.breadcrumbs span { margin-inline: 8px; }

.audience-strip { background: #fff; border-bottom: 1px solid var(--border-200); }
.audience-list { display: grid; grid-template-columns: repeat(5, 1fr); }
.audience-list span { padding: 22px 18px; text-align: center; border-right: 1px solid var(--border-200); color: var(--text-700); font-size: 14px; font-weight: 700; }
.audience-list span:first-child { border-left: 1px solid var(--border-200); }

.section { padding-block: var(--section-space); }
.section.tight { padding-block: var(--section-space-tight); }
.section.alt { background: var(--surface-50); }
.section.dark { background: var(--navy-950); color: #fff; }
.section.blue { background: var(--blue-50); }

.section-heading { display: grid; grid-template-columns: 4fr 7fr; gap: 80px; align-items: end; margin-bottom: 52px; }
.section-heading.single { display: block; max-width: 820px; }
.section-heading .lead { margin-top: 0; }
.section-heading.single .lead { margin-top: 18px; }
.section-heading .kicker { color: var(--blue-700); font-weight: 750; }
.section.dark .lead { color: rgba(255,255,255,.76); }
.section.dark .eyebrow,
.section.dark .section-heading .kicker,
.contact-aside .eyebrow { color: #80b7ff; }
.section.dark .text-link,
.section.dark .card-link,
.featured-case .text-link,
.featured-case .card-link,
.vehicle-request-card .text-link,
.vehicle-request-card .card-link,
.contact-aside .text-link,
.contact-aside .card-link,
.quote-band .text-link,
.quote-band .card-link { color: #80b7ff; }

.split {
  display: grid;
  grid-template-columns: 6fr 6fr;
  align-items: center;
  gap: 72px;
}
.split.reverse .split-media { order: 2; }
.split-copy > p + p { margin-top: 20px; }
.split-copy .lead { margin-bottom: 26px; }

.media-frame { display: block; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-100); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.portauto-section-picture { display: block; width: 100%; height: 100%; }
.portauto-section-picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--portauto-picture-position-desktop, 50% 50%);
}
.portauto-section-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--portauto-picture-position-desktop, 50% 50%);
  background: var(--navy-950);
}
.media-frame.ratio-3-2 { aspect-ratio: 3 / 2; }
.media-frame.ratio-4-3 { aspect-ratio: 4 / 3; }
.media-frame.ratio-16-9 { aspect-ratio: 16 / 9; }
.media-frame.tall { aspect-ratio: 4 / 5; }
.media-caption { margin-top: 12px; color: var(--text-500); font-size: 13px; line-height: 1.5; }

.capability-list { border-top: 1px solid var(--border-200); }
.capability-row {
  display: grid;
  grid-template-columns: 90px 3fr 5fr;
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--border-200);
}
.capability-row .index { color: var(--blue-600); font-weight: 800; letter-spacing: .08em; }
.capability-row p { color: var(--text-700); }
.dark .capability-list, .dark .capability-row { border-color: rgba(255,255,255,.18); }
.section.dark .capability-row .index { color: #80b7ff; }
.dark .capability-row p { color: rgba(255,255,255,.7); }

.columns-2:not(.wp-block-gallery),
.columns-3:not(.wp-block-gallery),
.columns-4:not(.wp-block-gallery),
[data-portauto-item-grid] {
  display: grid;
  gap: 32px var(--grid-gap);
  align-items: stretch;
}
.columns-2:not(.wp-block-gallery) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.columns-3:not(.wp-block-gallery),
[data-portauto-item-grid] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.columns-4:not(.wp-block-gallery) { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Automatic count balancing belongs only to dynamic query/filter grids. */
[data-portauto-item-grid]:not([data-portauto-items]):has(> :first-child:last-child),
[data-portauto-item-grid][data-portauto-items="1"] {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

[data-portauto-item-grid]:not([data-portauto-items]):has(> :nth-child(2):last-child),
[data-portauto-item-grid][data-portauto-items="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

[data-portauto-item-grid]:not([data-portauto-items]):has(> :nth-child(3):last-child),
[data-portauto-item-grid][data-portauto-items="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }

[data-portauto-item-grid]:not([data-portauto-items]):has(> :nth-child(4):last-child),
[data-portauto-item-grid][data-portauto-items="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Five items form a centred 3 + 2 composition; six items form a clean 3 x 2. */
[data-portauto-item-grid]:not([data-portauto-items]):has(> :nth-child(5):last-child),
[data-portauto-item-grid][data-portauto-items="5"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }

[data-portauto-item-grid]:not([data-portauto-items]):has(> :nth-child(5):last-child) > *,
[data-portauto-item-grid][data-portauto-items="5"] > * { grid-column: span 2; }

[data-portauto-item-grid]:not([data-portauto-items]):has(> :nth-child(5):last-child) > :nth-child(4),
[data-portauto-item-grid][data-portauto-items="5"] > :nth-child(4) { grid-column: 2 / span 2; }

[data-portauto-item-grid]:not([data-portauto-items]):has(> :nth-child(6):last-child),
[data-portauto-item-grid][data-portauto-items="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.columns-2 > .lined-item,
.columns-3 > .lined-item,
.columns-4 > .lined-item {
  height: 100%;
  min-width: 0;
  margin: 0;
  align-self: stretch;
}

.lined-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-top: 20px;
  border-top: 3px solid var(--navy-950) !important;
}
.lined-item > :is(h2, h3, h4):first-child { min-height: 2lh; }
.lined-item > p { flex: 1 1 auto; }
.lined-item > :is(.btn, .text-link, .card-link):last-child { margin-top: auto; padding-top: 18px; align-self: flex-start; }
.lined-item.blue-line { border-color: var(--blue-600) !important; }
.lined-item.orange-line { border-color: var(--orange-500) !important; }
.lined-item p { margin-top: 12px; color: var(--text-700); }
.dark .lined-item { border-color: rgba(255,255,255,.54) !important; }
.dark .lined-item.blue-line { border-color: #80b7ff !important; }
.dark .lined-item.orange-line { border-color: var(--orange-500) !important; }
.dark .lined-item p { color: rgba(255,255,255,.7); }

.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--border-200);
  border-bottom: 1px solid var(--border-200);
}
.process-step { min-width: 0; padding: 30px 22px 34px; border-right: 1px solid var(--border-200); min-height: 240px; }
.process-step:first-child { border-left: 1px solid var(--border-200); }
.step-num { display: block; color: var(--orange-700); font-weight: 800; letter-spacing: .08em; margin-bottom: 36px; }
.process-step p { margin-top: 12px; color: var(--text-700); font-size: 15px; }

.proof-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 260px; gap: 20px; }
.proof-grid figure { margin: 0; overflow: hidden; position: relative; border-radius: var(--radius); background: var(--surface-100); }
.proof-grid figure:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.proof-grid figure:nth-child(2) { grid-column: span 5; }
.proof-grid figure:nth-child(3) { grid-column: span 5; }
.proof-grid img { width: 100%; height: 100%; object-fit: cover; }
.proof-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 20px 18px; color: #fff; background: linear-gradient(transparent, rgba(7,26,43,.9)); font-size: 14px; }

.case-card, .article-card { display: flex; min-width: 0; height: 100%; flex-direction: column; border-top: 1px solid var(--border-200); padding-top: 18px; }
.case-card .media-frame, .article-card .media-frame { margin-bottom: 22px; }
.case-card p, .article-card p { margin-top: 12px; color: var(--text-700); }
.case-card > .card-link, .article-card > .card-link { margin-top: auto; padding-top: 18px; align-self: flex-start; }

@media (min-width: 761px) {
  :is(.case-card, .article-card) > :is(h2, h3) { min-height: 2lh; }
}
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.portauto-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; border-radius: 999px; color: var(--blue-700); background: var(--blue-50); font-size: 12px; font-weight: 750; letter-spacing: .02em; }

/*
 * WordPress adds the generic `tag` class to tag-archive <body> elements.
 * Keep the page shell defensive even if another stylesheet later introduces
 * an unscoped component selector with the same name.
 */
body.portauto-site.tag {
  display: block;
  width: auto;
  max-width: 100%;
  min-height: 100%;
  padding: 0;
  border-radius: 0;
  color: var(--text-900);
  background: var(--surface-0);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: normal;
}
.card-link { display: inline-block; margin-top: 18px; color: var(--blue-700); font-weight: 750; text-underline-offset: 4px; }

.vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.vehicle-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border-200);
  background: #fff;
}
.vehicle-card .media-frame { margin: 0; border-radius: 0; }
.vehicle-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.vehicle-card-body p { margin-top: 12px; color: var(--text-700); }
.vehicle-card-body .vehicle-card-subtitle { color: var(--text-900); font-weight: 700; }
.vehicle-card-body .card-link { margin-top: auto; padding-top: 20px; }
.vehicle-card-facts { margin-top: 22px; border-top: 1px solid var(--border-200); }
.vehicle-card-facts div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--border-200); font-size: 13px; line-height: 1.45; }
.vehicle-card-facts span { color: var(--text-500); }
.vehicle-card-facts strong { text-align: right; font-weight: 700; }
.vehicle-filter-empty { grid-column: 1 / -1; margin: 0; padding: 24px; border: 1px solid var(--border-200); color: var(--text-700); background: var(--surface-50); }
.vehicle-request-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 42px;
  color: #fff;
  background: var(--navy-900);
  border-left: 4px solid var(--orange-500);
}
.vehicle-request-card .eyebrow { color: #80b7ff; }
.vehicle-request-card p:not(.eyebrow) { margin-top: 16px; color: rgba(255,255,255,.7); }
.vehicle-request-card .btn { align-self: flex-start; margin-top: 28px; }

.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-200); border-left: 1px solid var(--border-200); }
.brand-entry { min-height: 128px; padding: 26px; border-right: 1px solid var(--border-200); border-bottom: 1px solid var(--border-200); background: #fff; }
.brand-entry-name { display: block; margin: 0; color: var(--navy-950); font-size: 23px; }
.brand-entry span { display: block; margin-top: 8px; color: var(--text-500); font-size: 14px; }

.featured-case { display: grid; grid-template-columns: 7fr 5fr; gap: 0; background: var(--navy-900); color: #fff; }
.featured-case .media-frame { min-height: 500px; border-radius: 0; }
.featured-copy { padding: 58px; display: flex; flex-direction: column; justify-content: center; }
.featured-copy p { margin-top: 18px; color: rgba(255,255,255,.72); }
.featured-copy .portauto-tag { background: rgba(128,183,255,.18); color: #cfe4ff; }
.featured-copy .btn { align-self: flex-start; margin-top: 28px; }

.evidence-band { display: grid; grid-template-columns: 5fr 7fr; background: var(--surface-50); border: 1px solid var(--border-200); }
.evidence-band .media-frame { border-radius: 0; min-height: 430px; }
.evidence-copy { padding: 52px; }
.evidence-copy ul { margin: 26px 0 0; padding: 0; list-style: none; }
.evidence-copy li { padding: 16px 0; border-top: 1px solid var(--border-200); color: var(--text-700); }
.evidence-copy li:last-child { border-bottom: 1px solid var(--border-200); }

.responsibility { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border-200); }
.responsibility > div { padding: 32px; border-right: 1px solid var(--border-200); }
.responsibility > div:last-child { border-right: 0; }
.responsibility ul { padding-left: 20px; margin: 20px 0 0; color: var(--text-700); }
.section.dark .responsibility { border-color: rgba(255,255,255,.18); }
.section.dark .responsibility > div { border-color: rgba(255,255,255,.18); }
.section.dark .responsibility ul { color: rgba(255,255,255,.7); }

.quote-band { background: var(--navy-950); color: #fff; padding: 64px 0; }
.quote-inner { display: grid; grid-template-columns: 8fr 4fr; gap: 64px; align-items: center; }
.quote-band h2 { color: #fff; font-size: 42px; max-width: 760px; }
.quote-band p { margin-top: 16px; color: rgba(255,255,255,.72); max-width: 760px; }
.quote-band .btn { justify-self: end; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border-200); }
.fact { padding: 26px 24px 28px 0; border-bottom: 1px solid var(--border-200); }
.fact span { display: block; color: var(--text-500); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; font-weight: 750; }
.fact strong { display: block; margin-top: 7px; font-size: 18px; font-weight: 700; }

.timeline { border-left: 2px solid var(--border-200); margin-left: 12px; }
.timeline-item { position: relative; padding: 0 0 46px 42px; }
.timeline-item::before { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--orange-500); left: -8px; top: 6px; box-shadow: 0 0 0 5px var(--surface-0); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item p { margin-top: 10px; color: var(--text-700); }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.gallery figure { margin: 0; }
.gallery figure:nth-child(1), .gallery figure:nth-child(4) { grid-column: span 7; }
.gallery figure:nth-child(2), .gallery figure:nth-child(3) { grid-column: span 5; }
.gallery .media-frame { aspect-ratio: 3 / 2; }

.filter-row { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-chip { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid var(--border-200); border-radius: 999px; background: #fff; color: var(--text-700); font-size: 14px; font-weight: 700; }
.filter-chip.active { background: var(--navy-950); color: #fff; border-color: var(--navy-950); }
.portauto-filter-scroll-hint { display: none; }

.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 320px; gap: 96px; align-items: start; }
.article-body { grid-column: 1; grid-row: 1; font-size: 18px; line-height: 1.75; }
.article-body > * + * { margin-top: 28px; }
.article-body h2 { font-size: 34px; margin-top: 64px; }
.article-body h3 { font-size: 26px; margin-top: 48px; }
.article-body ul { margin: 24px 0; padding-left: 24px; }
.article-body li + li { margin-top: 10px; }
.article-body .media-frame { margin-block: 42px 14px; }
.article-body .notice { padding: 24px 26px; border-left: 4px solid var(--blue-600); background: var(--blue-50); font-size: 16px; }
.article-review-note {
  margin: 0 0 42px;
  padding: 22px 24px;
  border-left: 4px solid var(--blue-600);
  background: var(--blue-50);
  font-size: 16px;
}
.article-review-note strong { display: block; color: var(--navy-950); font-size: 17px; }
.article-review-note p { margin-top: 8px; color: var(--text-700); }
.article-prose > * + * { margin-top: 24px; }
.article-prose > h2 { margin-top: 64px; }
.article-prose > h3 { margin-top: 48px; }
.article-prose .editor-article-standard { max-width: none; padding: 0; }
.article-prose .editor-fact-note {
  margin-block: 34px;
  padding: 24px 28px;
  border-left: 4px solid var(--blue-600);
  background: var(--surface-50);
}
.article-prose .editor-fact-note > * + * { margin-top: 10px; }
.article-prose .editor-verification-grid > .wp-block-column {
  min-width: 0;
  padding: 24px;
  border-top: 3px solid var(--blue-600);
  background: var(--surface-50);
}
.article-prose .editor-verification-grid > .wp-block-column:nth-child(2) { border-color: var(--orange-500); }
.article-prose .editor-article-cta {
  margin-top: 56px;
  padding: 36px;
  color: #fff;
  background: var(--navy-950);
}
.article-prose .editor-article-cta h2 { color: #fff; }
.article-prose .editor-article-cta p { color: rgba(255,255,255,.78); }
.article-prose .portauto-editorial-table { max-width: 100%; overflow-x: auto; }
.article-verification { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border-200); }
.article-verification > h2 { max-width: 680px; margin-top: 10px; }
.article-verification-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 34px; }
.article-verification-grid > div { min-width: 0; padding: 22px 0 0; border-top: 3px solid var(--blue-600); }
.article-verification-grid > div:nth-child(2),
.article-verification-grid > div:nth-child(4) { border-color: var(--orange-500); }
.article-verification-grid h3 { margin: 0; font-size: 22px; }
.article-verification-grid p { margin-top: 10px; color: var(--text-700); font-size: 15px; }
.article-body[dir="rtl"] { text-align: right; }
.article-body[dir="rtl"] .article-review-note,
.article-body[dir="rtl"] .article-prose .editor-fact-note { border-right: 4px solid var(--blue-600); border-left: 0; }
.article-body[dir="rtl"] ul,
.article-body[dir="rtl"] ol { padding-right: 24px; padding-left: 0; }
.article-aside { position: sticky; top: 24px; grid-column: 2; grid-row: 1; border-top: 4px solid var(--orange-500); background: var(--surface-50); padding: 28px; }
.article-aside p { margin-top: 12px; color: var(--text-700); font-size: 15px; }
.article-aside .btn { width: 100%; margin-top: 22px; }
.vehicle-use-guidance { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border-200); }
.vehicle-use-guidance .eyebrow { margin-bottom: 8px; }
.vehicle-use-guidance p:last-child { margin-top: 0; }
.toc { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border-200); }
.toc a { display: block; padding: 8px 0; color: var(--blue-700); font-size: 14px; }

.faq-list { border-top: 1px solid var(--border-200); }
.faq-item { display: grid; grid-template-columns: 4fr 7fr; gap: 70px; padding: 32px 0; border-bottom: 1px solid var(--border-200); }
.faq-item p { color: var(--text-700); }

.form-shell { display: grid; grid-template-columns: 4fr 8fr; gap: 72px; align-items: start; }
.form-shell--form-only { grid-template-columns: minmax(0, 1fr); max-width: 920px; }
.contact-aside { background: var(--navy-950); color: #fff; padding: 40px; }
.contact-aside p { margin-top: 16px; color: rgba(255,255,255,.7); }
.contact-aside .media-frame { margin-top: 32px; aspect-ratio: 4 / 3; }
.contact-points { margin-top: 28px; }
.contact-points div { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.17); }
.contact-points strong { display: block; color: #fff; font-size: 14px; }
.contact-points span { color: rgba(255,255,255,.65); font-size: 14px; }

.inquiry-form { background: var(--surface-50); border: 1px solid var(--border-200); padding: 42px; }
.form-intro { margin-bottom: 32px; }
.form-intro p { margin-top: 10px; color: var(--text-700); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--text-900); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; border: 1px solid #b9c7d5; border-radius: 6px; padding: 12px 14px; background: #fff; color: var(--text-900); }
.field textarea { min-height: 118px; resize: none; }
.field small { color: var(--text-500); font-size: 12px; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0; color: var(--text-700); font-size: 13px; }
.consent input { margin-top: 5px; }

.site-footer { background: var(--navy-950); color: #fff; }
.footer-main { display: grid; grid-template-columns: 4fr 2fr 2fr 2fr; gap: 56px; padding-block: 68px; }
.footer-main .brand { display: inline-flex; padding: 8px 12px; border-radius: 6px; background: #fff; }
.footer-main p { margin-top: 18px; color: rgba(255,255,255,.65); max-width: 390px; font-size: 15px; }
.footer-col h4 { font-size: 14px; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.58); }
.footer-col a { display: block; margin-top: 12px; text-decoration: none; color: #fff; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.55); font-size: 13px; }
.footer-bottom-legal,
.footer-bottom-legal nav,
.footer-legal-menu { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.footer-legal-menu { list-style: none; }

.status-note { padding: 14px 18px; background: #fff7ed; color: #9a3412; border-left: 4px solid var(--orange-500); font-size: 14px; margin-top: 24px; }
.hide-mobile { display: block; }

@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .article-layout { gap: 54px; grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 1024px) and (min-width: 761px) {
  :is(.columns-2, .columns-3, .columns-4):not(.wp-block-gallery) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Runtime item-count selectors are more specific than the tablet grid rule. */
  [data-portauto-item-grid],
  [data-portauto-items] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: stretch;
  }

  [data-portauto-item-grid]:not([data-portauto-items]):has(> :first-child:last-child),
  [data-portauto-items="1"] {
    grid-template-columns: minmax(0, 560px) !important;
    justify-content: center;
  }

  :is(.columns-2, .columns-3, .columns-4):not(.wp-block-gallery) > * { grid-column: auto; }

  [data-portauto-item-grid] > *,
  [data-portauto-items] > * {
    width: auto !important;
    grid-column: auto !important;
    justify-self: stretch !important;
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .compact-hero h1 { font-size: clamp(40px, 6.2vw, 48px); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-step { min-height: 210px; border-bottom: 1px solid var(--border-200); }
}

@media (max-width: 760px) {
  .portauto-section-picture > img {
    object-position: var(--portauto-picture-position-mobile, var(--portauto-picture-position-desktop, 50% 50%));
  }
  .portauto-section-video {
    object-position: var(--portauto-picture-position-mobile, var(--portauto-picture-position-desktop, 50% 50%));
  }
  body { font-size: 16px; line-height: 1.625; }
  .site-header { height: 64px; }
  .brand { min-width: auto; gap: 8px; }
  .brand img { width: 40px; }
  .brand span { font-size: 18px; }
  .nav, .header-cta { display: none; }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; min-height: 44px; border: 1px solid var(--border-200); background: #fff; border-radius: 6px; color: var(--navy-950); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
  .site-header.menu-open { height: auto; align-items: flex-start; }
  .site-header.menu-open .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .site-header.menu-open .nav { display: grid; order: 3; width: 100%; margin: 0; gap: 0; padding-top: 10px; border-top: 1px solid var(--border-200); }
  .site-header.menu-open .nav a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--border-200); }
  .site-header.menu-open .header-cta { display: inline-flex; order: 4; width: 100%; margin-left: 0; }

  h1 { font-size: 40px; line-height: 1.12; }
  h2 { font-size: 30px; line-height: 1.18; }
  h3 { font-size: 24px; }
  .lead { font-size: 18px; line-height: 1.58; margin-top: 17px; }
  .eyebrow { font-size: 12px; margin-bottom: 14px; }

  .hero-grid { min-height: 480px; height: auto; }
  .hero--height-compact .hero-grid,
  .compact-hero-grid { min-height: 420px; }
  .hero--height-tall .hero-grid { min-height: 520px; }
  .hero-copy { padding: clamp(44px, 10vw, 64px) 0; justify-content: flex-start; }
  .hero-copy > * { max-width: none; }
  .hero-media::after,
  .hero--overlay-light .hero-media::after,
  .hero--overlay-medium .hero-media::after,
  .hero--overlay-strong .hero-media::after,
  .hero--align-center .hero-media::after { background: linear-gradient(180deg, rgba(7,26,43,.94) 0%, rgba(7,26,43,.78) 54%, rgba(7,26,43,.42) 100%); }
  .hero-note {
    position: relative;
    inset: auto;
    width: min(var(--container), calc(100% - (2 * var(--page-gutter))));
    margin: 0 auto 20px;
    padding: 14px 16px;
    align-self: end;
  }
  .hero-actions { display: grid; gap: 10px; margin-top: 26px; }
  .hero-actions .btn { width: 100%; min-height: 52px; }
  .hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 30px; padding-top: 18px; }
  .hero-meta span { min-width: 0; font-size: 12px; line-height: 1.45; }

  .compact-hero h1 { font-size: 38px; }
  .compact-hero .hero-actions { display: grid; }

  .audience-list { grid-template-columns: repeat(2, 1fr); padding-block: 8px; }
  .audience-list span { text-align: left; padding: 10px 8px; border: 0; font-size: 12px; }
  .audience-list span:first-child { border-left: 0; }
  .audience-list span:last-child { grid-column: 1 / -1; }

  .section { padding-block: var(--section-space); }
  .section.tight { padding-block: var(--section-space-tight); }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading .lead { margin-top: 16px; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .split-media { order: 0; }

  .capability-row { grid-template-columns: 46px 1fr; gap: 10px 14px; padding: 22px 0; }
  .capability-row .index { grid-row: span 2; }
  .capability-row p { grid-column: 2; }
  :is(.columns-4, .columns-3, .columns-2):not(.wp-block-gallery):not(.mobile-two),
  [data-portauto-item-grid]:not(.mobile-two),
  [data-portauto-items]:not(.mobile-two) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 26px;
    justify-content: stretch;
  }
  :is(.columns-4, .columns-3, .columns-2):not(.wp-block-gallery) > *,
  [data-portauto-item-grid] > *,
  [data-portauto-items] > * {
    width: auto !important;
    grid-column: auto !important;
    justify-self: stretch !important;
  }
  :is(.columns-2, .columns-3, .columns-4).mobile-two { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
  .lined-item { padding-top: 16px; }
  .lined-item > :is(h2, h3, h4):first-child { min-height: 0; }

  .process { display: block; border: 0; }
  .process-step, .process-step:first-child { min-height: auto; padding: 22px 0; border-left: 0; border-right: 0; border-bottom: 1px solid var(--border-200); }
  .process-step:first-child { border-top: 1px solid var(--border-200); }
  .step-num { margin-bottom: 10px; }

  .proof-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 10px; }
  .proof-grid figure:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .proof-grid figure:first-child { grid-column: 1 / -1; grid-row: span 2; }
  .proof-grid figcaption { padding: 24px 12px 12px; font-size: 12px; }

  .featured-case { grid-template-columns: 1fr; }
  .featured-case .media-frame { min-height: 0; aspect-ratio: 4 / 3; }
  .featured-copy { padding: 30px 24px 34px; }
  .featured-copy .btn { align-self: stretch; }

  .evidence-band { grid-template-columns: 1fr; }
  .evidence-band .media-frame { min-height: 0; aspect-ratio: 4 / 3; }
  .evidence-copy { padding: 28px 22px; }
  .responsibility { grid-template-columns: 1fr; }
  .responsibility > div { border-right: 0; border-bottom: 1px solid var(--border-200); padding: 24px; }
  .responsibility > div:last-child { border-bottom: 0; }

  .quote-band { padding: 48px 0; }
  .quote-inner { grid-template-columns: 1fr; gap: 28px; }
  .quote-band h2 { font-size: 31px; }
  .quote-band .btn { justify-self: stretch; width: 100%; min-height: 52px; }

  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 20px 12px 20px 0; }
  .timeline-item { padding-left: 32px; }

  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery figure:nth-child(n) { grid-column: span 1; }
  .gallery figure:first-child { grid-column: 1 / -1; }
  .media-caption { font-size: 12px; }
  .filter-row {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    margin-right: calc(-1 * var(--page-gutter));
    padding: 2px var(--page-gutter) 12px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--blue-600) var(--surface-100);
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
  }
  .filter-row[data-scrollable="true"][data-scroll-position="start"] { box-shadow: inset -18px 0 16px -18px rgba(7,26,43,.7); }
  .filter-row[data-scrollable="true"][data-scroll-position="middle"] { box-shadow: inset 18px 0 16px -18px rgba(7,26,43,.7), inset -18px 0 16px -18px rgba(7,26,43,.7); }
  .filter-row[data-scrollable="true"][data-scroll-position="end"] { box-shadow: inset 18px 0 16px -18px rgba(7,26,43,.7); }
  .filter-chip { min-height: 44px; flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
  .portauto-filter-scroll-hint { display: block; margin: -28px 0 34px; color: var(--text-500); font-size: 12px; }
  .vehicle-filter {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-right: 0;
    padding-right: 0;
  }
  .vehicle-grid,
  .vehicle-grid[data-portauto-items] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .vehicle-grid[data-portauto-items] > * {
    width: auto;
    min-width: 0;
    max-width: 100%;
    grid-column: 1 / -1;
    justify-self: stretch;
  }
  .vehicle-request-card { min-height: 330px; padding: 30px 24px; }
  .vehicle-request-card .btn { align-self: stretch; width: 100%; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-entry { min-height: 108px; padding: 20px 16px; }
  .brand-entry-name { font-size: 19px; }

  .article-layout { grid-template-columns: 1fr; gap: 44px; }
  .article-body { font-size: 17px; line-height: 1.72; }
  .article-body h2 { font-size: 30px; margin-top: 50px; }
  .article-review-note { margin-bottom: 32px; padding: 20px; }
  .article-prose .editor-fact-note,
  .article-prose .editor-article-cta { padding: 24px 20px; }
  .article-verification { margin-top: 48px; padding-top: 32px; }
  .article-verification-grid { grid-template-columns: 1fr; gap: 22px; }
  .article-body,
  .article-aside { grid-column: 1; grid-row: auto; }
  .article-aside { position: static; }
  .toc { display: none; }

  .faq-item { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .faq-item h3 { font-size: 21px; }

  .form-shell { grid-template-columns: 1fr; gap: 28px; }
  .contact-aside { padding: 28px 22px; }
  .inquiry-form { padding: 26px 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .field.full { grid-column: auto; }
  .inquiry-form .btn { width: 100%; min-height: 52px; }

  .footer-main { grid-template-columns: 1fr 1fr; gap: 38px 24px; padding-block: 54px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 8px; }
  .footer-bottom-legal { display: flex; flex-wrap: wrap; margin-top: 8px; }
  .footer-bottom-legal span { display: inline; margin-top: 0; }
  .hide-mobile { display: none !important; }
}

/* Keep detail-page reading and focus order content-first through 767px. */
@media (max-width: 767px) {
  .article-layout { grid-template-columns: 1fr; gap: 44px; }
  .article-body,
  .article-aside { grid-column: 1; grid-row: auto; }
  .article-aside { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* WordPress production integration */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  position: fixed !important;
  z-index: 100000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  color: var(--navy-950);
  background: #fff;
  border: 2px solid var(--blue-600);
}

.site-main { min-height: 50vh; }
.site-header { position: sticky; top: 0; z-index: 100; }
.admin-bar .site-header { top: 32px; }
.brand .custom-logo { width: auto; max-width: 190px; max-height: 48px; }

.nav-list,
.footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list { display: flex; align-items: center; gap: 28px; }
.nav-list li { position: relative; }
.nav-list .sub-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 16px);
  left: -18px;
  min-width: 240px;
  margin: 0;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  list-style: none;
  border: 1px solid var(--border-200);
  background: #fff;
  box-shadow: 0 18px 40px rgba(7, 26, 43, .14);
}
.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu { visibility: visible; opacity: 1; }
.nav-list .sub-menu a { display: block; padding: 10px 12px; }
.nav .current-menu-item > a,
.nav .current-menu-ancestor > a { color: var(--blue-700); }
.mobile-social { display: none; }

.btn,
.filter-chip,
.social-link,
.dialog-close,
.menu-button { cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary:hover { background: #ff8a32; }
.btn-secondary:hover { background: var(--blue-50); }
.btn-secondary.on-dark:hover { color: var(--navy-950); background: #fff; }

.entry-content { max-width: 820px; }
.entry-content > * + * { margin-top: 1.5rem; }
.entry-content > h2 { margin-top: 3.75rem; }
.entry-content > h3 { margin-top: 2.75rem; }
.entry-content > .alignwide { width: min(var(--container), calc(100vw - (2 * var(--page-gutter)))); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content > .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content img { height: auto; }
.entry-content a { color: var(--blue-700); text-underline-offset: 3px; }
.entry-content blockquote { margin-inline: 0; padding: 22px 26px; border-left: 4px solid var(--blue-600); background: var(--blue-50); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th,
.entry-content td { padding: 12px; border: 1px solid var(--border-200); text-align: left; vertical-align: top; }
.entry-content .wp-block-table { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.portauto-table-scroll-host {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-600) var(--surface-100);
}
.portauto-table-scroll-host:focus-visible { outline-offset: 5px; }
.portauto-table-scroll-hint { display: none; }
.portauto-comparison-cards { display: none; }
.entry-content .editor-image-text-section,
.entry-content .editor-capability-section,
.entry-content .editor-process-section,
.entry-content .editor-proof-section,
.entry-content .editor-faq-section { margin-block: 64px; }
.entry-content .editor-image-text-section { gap: clamp(28px, 5vw, 72px); }
.entry-content .editor-image-text-section .wp-block-media-text__content { padding-inline: 0; }
.entry-content .editor-image-text-section img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.entry-content .editor-capability-grid > .wp-block-column { padding: 26px; border-top: 3px solid var(--blue-600); background: var(--surface-50); }
.entry-content .editor-process-list { display: grid; gap: 0; padding: 0; list-style: none; counter-reset: portauto-process; border-top: 1px solid var(--border-200); }
.entry-content .editor-process-list > li { position: relative; margin: 0; padding: 20px 16px 20px 58px; border-bottom: 1px solid var(--border-200); counter-increment: portauto-process; }
.entry-content .editor-process-list > li::before { position: absolute; left: 12px; top: 20px; content: counter(portauto-process, decimal-leading-zero); color: var(--blue-600); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.entry-content .editor-proof-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.entry-content .editor-faq-section details { margin: 0; padding: 18px 0; border-top: 1px solid var(--border-200); }
.entry-content .editor-faq-section details:last-child { border-bottom: 1px solid var(--border-200); }
.entry-content .editor-faq-section summary { cursor: pointer; font-weight: 750; }

.brand-entry {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.brand-entry-name { font-size: 19px; }
.brand-entry span { margin-top: 0; }
.brand-entry--text-only { min-height: 142px; }
.brand-logo-wrap { display: flex; width: 100%; height: 72px; align-items: center; justify-content: center; }
.brand-logo { width: auto; max-width: 150px; max-height: 62px; object-fit: contain; }
.content-boundary { max-width: 850px; margin-top: 24px; color: var(--text-500); font-size: 13px; }

.faq-accordion { border-top: 1px solid var(--border-200); }
.faq-detail { border-bottom: 1px solid var(--border-200); }
.faq-detail summary { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; color: var(--text-900); font-size: 21px; font-weight: 750; list-style: none; }
.faq-detail summary::-webkit-details-marker { display: none; }
.faq-detail summary::after { content: "+"; width: 36px; flex: 0 0 36px; color: var(--blue-700); font-size: 28px; font-weight: 500; text-align: center; }
.faq-detail[open] summary::after { content: "−"; }
.faq-answer { max-width: 850px; padding: 0 0 28px; color: var(--text-700); }

.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-link {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
}
.social-link:hover { border-color: var(--orange-500); background: rgba(255,255,255,.12); }
.social-link img { width: 22px; height: 22px; object-fit: contain; filter: brightness(0) invert(1); }
.social-link.text-only { min-width: auto; color: #fff; font-size: 13px; }
.social-links--contact .social-link,
.social-links--about .social-link { color: var(--navy-950); border-color: var(--border-200); background: #fff; }
.social-links--contact .social-link img,
.social-links--about .social-link img { filter: none; }
.social-links--contact .social-link span,
.social-links--about .social-link span { font-weight: 700; }
.social-links--about .social-link:hover { color: var(--navy-950); border-color: var(--orange-500); background: var(--blue-50); }

.footer-main { grid-template-columns: 4fr 2fr 2fr 3fr; }
.footer-main--no-social { grid-template-columns: 5fr 2fr 2fr; }
.footer-col h2 { color: rgba(255,255,255,.58); font-size: 14px; letter-spacing: .07em; text-transform: uppercase; }
.footer-menu a,
.footer-col > a { display: block; margin-top: 12px; color: #fff; font-size: 14px; text-decoration: none; }
.footer-menu li:first-child a { margin-top: 12px; }
.footer-social-col p { margin: 10px 0 18px; }
.footer-contact-links { display: grid; gap: 8px; margin: 0 0 18px; }
.footer-contact-links a {
  display: grid;
  gap: 2px;
  min-height: 44px;
  align-content: center;
  padding: 8px 0;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.footer-contact-links span { color: rgba(255,255,255,.6); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.footer-contact-links strong { overflow-wrap: anywhere; font-size: 14px; }
.footer-bottom a { color: inherit; }

.inquiry-dialog {
  width: min(880px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: auto;
  color: var(--text-900);
  border: 0;
  background: #fff;
  box-shadow: 0 24px 80px rgba(7,26,43,.32);
}
.inquiry-dialog::backdrop { background: rgba(7,26,43,.76); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding: 30px 32px; border-bottom: 1px solid var(--border-200); }
.dialog-head h2 { font-size: 32px; }
.dialog-close { min-width: 60px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border-200); background: #fff; color: var(--navy-950); font-weight: 750; }
.inquiry-dialog .portauto-inquiry-form { padding: 30px 32px 38px; }
.dialog-open { overflow: hidden; }

.portauto-inquiry-form { background: var(--surface-50); border: 1px solid var(--border-200); padding: 42px; }
.portauto-inquiry-form[aria-busy="true"] { opacity: .72; }
.portauto-inquiry-form .form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.portauto-inquiry-form .form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.portauto-inquiry-form .form-field--full { grid-column: 1 / -1; }
.portauto-inquiry-form label { color: var(--text-900); font-size: 14px; font-weight: 700; }
.portauto-inquiry-form input:not([type="checkbox"]),
.portauto-inquiry-form select,
.portauto-inquiry-form textarea { width: 100%; min-height: 50px; padding: 12px 14px; color: var(--text-900); border: 1px solid #b9c7d5; border-radius: 6px; background: #fff; }
.portauto-inquiry-form textarea { min-height: 120px; resize: vertical; }
.portauto-inquiry-form .form-consent { display: flex; min-height: 44px; align-items: flex-start; gap: 10px; margin: 4px 0 22px; color: var(--text-700); font-size: 13px; }
.portauto-inquiry-form .form-consent input { margin-top: 5px; }
.portauto-inquiry--compact .portauto-inquiry-form { padding: 28px 30px 30px; }
.portauto-inquiry--compact .portauto-inquiry-form .form-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.portauto-inquiry--compact .portauto-inquiry-form .form-field { gap: 6px; margin-bottom: 10px; }
.portauto-inquiry--compact .portauto-inquiry-form input:not([type="checkbox"]),
.portauto-inquiry--compact .portauto-inquiry-form select,
.portauto-inquiry--compact .portauto-inquiry-form textarea { min-height: 46px; padding: 10px 12px; }
.portauto-inquiry--compact .portauto-inquiry-form textarea { min-height: 96px; }
.portauto-inquiry--compact .portauto-inquiry-form .form-consent { margin-bottom: 16px; }
@media (max-width: 1024px) and (min-width: 761px) {
  .portauto-inquiry--compact .portauto-inquiry-form .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.portauto-inquiry-form .form-message,
.portauto-inquiry > .form-message { padding: 14px 16px; margin-bottom: 20px; border-left: 4px solid var(--blue-600); background: var(--blue-50); }
.portauto-inquiry-form .form-message--error,
.portauto-inquiry > .form-message--error { color: var(--error-700); border-color: var(--error-700); background: #fff1f0; }
.portauto-inquiry-form .form-message--success,
.portauto-inquiry > .form-message--success { color: var(--success-700); border-color: var(--success-700); background: #ecfdf3; }
.portauto-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.dependency-notice,
.content-empty { padding: 30px; border-left: 4px solid var(--orange-500); background: var(--surface-50); }
.dependency-notice p,
.content-empty p { margin-top: 10px; color: var(--text-700); }

.archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 38px 28px; }
.archive-grid .content-empty { grid-column: 1 / -1; }
.page-numbers { display: flex; flex-wrap: wrap; gap: 8px; margin: 48px 0 0; padding: 0; list-style: none; }
.page-numbers a,
.page-numbers span { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 8px 12px; text-decoration: none; border: 1px solid var(--border-200); }
.page-numbers .current { color: #fff; border-color: var(--navy-950); background: var(--navy-950); }

.search-form { display: flex; max-width: 720px; gap: 10px; margin-top: 28px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #b9c7d5; border-radius: 6px; }
.search-submit { min-height: 52px; padding: 12px 22px; color: var(--navy-950); border: 0; border-radius: 6px; background: var(--orange-500); font-weight: 750; }
.error-404 { min-height: 65vh; display: grid; align-items: center; }
.error-404-inner { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; }
.error-code { color: var(--blue-600); font-size: clamp(110px,18vw,250px); font-weight: 800; line-height: .8; letter-spacing: -.08em; }

.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--text-500); font-size: 14px; }
.article-meta-section { padding-block: var(--section-space-tight) 0; }
.article-meta-section + .article-content-section { padding-top: clamp(36px, 4vw, 56px); }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--border-200); }
.post-navigation a { color: var(--blue-700); font-weight: 700; }

@media (max-width: 1180px) {
  .nav,
  .header-cta { display: none; }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; min-height: 44px; border: 1px solid var(--border-200); background: #fff; border-radius: 6px; color: var(--navy-950); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
  .site-header.menu-open { height: auto; align-items: flex-start; }
  .site-header.menu-open .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .site-header.menu-open .nav { display: grid; order: 3; width: 100%; margin: 0; gap: 0; padding-top: 10px; border-top: 1px solid var(--border-200); }
  .site-header.menu-open .nav a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--border-200); }
  .site-header.menu-open .header-cta { display: inline-flex; order: 4; width: 100%; margin-left: 0; }
  .nav-list { display: grid; width: 100%; gap: 0; }
  .nav-list > li { display: block; }
  .nav-list .sub-menu { position: static; min-width: 0; padding: 0 0 0 16px; visibility: visible; opacity: 1; border: 0; box-shadow: none; }
  .mobile-social { display: block; padding: 16px 0; }
  .social-links--menu .social-link { border-color: var(--border-200); background: var(--surface-50); }
  .social-links--menu .social-link img { filter: none; }
  .footer-main { grid-template-columns: 3fr 2fr 2fr; }
  .footer-social-col { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 760px) {
  .site-header { top: 0; }
  .admin-bar .site-header { top: 0; }
  .header-inner { min-width: 0; gap: 16px; }
  .site-header .brand { min-width: 0; max-width: calc(100% - 78px); overflow: hidden; }
  .site-header .brand .custom-logo {
    width: auto;
    max-width: min(160px, calc(100vw - 116px));
    max-height: 38px;
    object-fit: contain;
  }
  .site-header .menu-button { flex: 0 0 auto; }
  .nav-list { display: grid; gap: 0; }
  .nav-list .sub-menu { position: static; min-width: 0; padding: 0 0 0 16px; visibility: visible; opacity: 1; border: 0; box-shadow: none; }
  .mobile-social { display: block; padding: 16px 0; }
  .social-links--menu .social-link { border-color: var(--border-200); background: var(--surface-50); }
  .social-links--menu .social-link img { filter: none; }
  .entry-content > .alignwide { width: calc(100vw - (2 * var(--page-gutter))); }
  .article-layout > *,
  .article-body,
  .entry-content { min-width: 0; max-width: 100%; }
  .entry-content .wp-block-table { margin-inline: 0; }
  .entry-content .wp-block-table.portauto-comparison-host { display: none; }
  .entry-content .portauto-table-scroll-host table,
  .entry-content table.portauto-responsive-table--scroll { min-width: 720px; }
  .entry-content .portauto-table-scroll-host[data-portauto-table-fallback="small-table"] table { min-width: max(560px, 100%); }
  .portauto-table-scroll-hint {
    display: block;
    position: sticky;
    left: 0;
    width: max-content;
    max-width: calc(100vw - (2 * var(--page-gutter)));
    margin: 0 0 10px;
    color: var(--text-500);
    font-size: 12px;
    line-height: 1.45;
  }
  .entry-content th,
  .entry-content td { min-width: 150px; word-break: normal; overflow-wrap: normal; }
  .entry-content th:first-child,
  .entry-content td:first-child { position: sticky; left: 0; z-index: 1; min-width: 132px; background: #fff; }
  .portauto-responsive-source[data-portauto-cardified="true"] { display: none; }
  .portauto-comparison-cards { display: grid; width: 100%; min-width: 0; gap: 12px; margin-block: 18px; overflow: hidden; }
  .portauto-comparison-card { width: 100%; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--border-200); background: #fff; box-sizing: border-box; }
  .portauto-comparison-card summary { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; cursor: pointer; list-style: none; }
  .portauto-comparison-card summary::-webkit-details-marker { display: none; }
  .portauto-comparison-card summary::after { content: "+"; color: var(--blue-700); font-size: 24px; line-height: 1; }
  .portauto-comparison-card[open] summary::after { content: "−"; }
  .portauto-comparison-card dl { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(0, 42%) minmax(0, 58%); margin: 0; border-top: 1px solid var(--border-200); }
  .portauto-comparison-card dt,
  .portauto-comparison-card dd { min-width: 0; max-width: 100%; margin: 0; padding: 11px 14px; border-bottom: 1px solid var(--border-200); white-space: normal; word-break: break-word; overflow-wrap: anywhere; box-sizing: border-box; }
  .portauto-comparison-card dt { color: var(--text-500); font-size: 13px; font-weight: 700; background: var(--surface-50); }
  .portauto-comparison-card dd { color: var(--text-900); font-size: 14px; }
  .portauto-comparison-card dt:last-of-type,
  .portauto-comparison-card dd:last-of-type { border-bottom: 0; }
  .text-link,
  .card-link,
  .article-card h3 a,
  .breadcrumbs a,
  .post-navigation a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
  .brand-entry { min-height: 150px; padding: 20px 12px; }
  .brand-logo-wrap { height: 58px; }
  .brand-logo { max-width: 120px; max-height: 52px; }
  .archive-grid { grid-template-columns: 1fr; }
  .footer-main,
  .footer-main--no-social { grid-template-columns: 1fr 1fr; }
  .footer-social-col { grid-column: 1 / -1; }
  .inquiry-dialog { max-height: calc(100vh - 16px); }
  .dialog-head { padding: 22px 18px; }
  .dialog-head h2 { font-size: 26px; }
  .inquiry-dialog .portauto-inquiry-form,
  .portauto-inquiry-form { padding: 24px 18px 28px; }
  .portauto-inquiry--compact .portauto-inquiry-form { padding: 20px 16px 22px; }
  .portauto-inquiry-form .form-row { grid-template-columns: 1fr; gap: 0; }
  .portauto-inquiry--compact .portauto-inquiry-form .form-row { grid-template-columns: 1fr; gap: 0; }
  .portauto-inquiry-form .form-field--full { grid-column: auto; }
  .search-form { display: grid; }
  .error-404-inner { grid-template-columns: 1fr; gap: 32px; }
  .post-navigation { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .filter-chip,
  .social-link,
  .dialog-close,
  .menu-button { transition: none; }
}

/* Keep primary navigation and the real Contact CTA usable when JavaScript is unavailable. */
@media (max-width: 1180px) {
  html.no-js .menu-button { display: none; }
  html.no-js .site-header { height: auto; align-items: flex-start; }
  html.no-js .site-header .header-inner { flex-wrap: wrap; gap: 16px; padding-block: 10px; }
  html.no-js .site-header .nav { display: grid; order: 3; width: 100%; margin: 0; gap: 0; padding-top: 10px; border-top: 1px solid var(--border-200); }
  html.no-js .site-header .nav a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--border-200); }
  html.no-js .site-header .header-cta { display: inline-flex; margin-left: auto; }
}

@media (max-width: 760px) {
  html.no-js .site-header .header-cta { order: 4; width: 100%; margin-left: 0; }
}
