/* ==========================================================================
   ATC pages.css: content templates (insights, articles, hubs, about, contact,
   resources, search, errors). Loads after atc.css; uses its tokens.
   Breakpoints: 639 / 899 / 1079.
   ========================================================================== */

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

/* ---------- Hero meta chips ---------- */
.pmeta { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 600; color: var(--on-dark-body); }
.pmeta svg { width: 16px; height: 16px; color: var(--red-300); flex: none; }
.pmeta + .pmeta::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.3); margin-right: 8px; }

/* ---------- Topic chips (filter) ---------- */
.topics--filter { margin: 0 0 var(--s7); gap: 10px; }
.v2 .topics--filter a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; background: var(--white); }
.v2 .topics--filter a b { font-size: .75rem; font-weight: 800; color: var(--ink-400); background: var(--surface); padding: 2px 8px; border-radius: var(--r-pill); transition: all .2s; }
.v2 .topics--filter a:hover { border-color: var(--ink-900); transform: translateY(-1px); }
.v2 .topics--filter a[aria-current="page"] { background: var(--dark-900); border-color: var(--dark-900); color: #fff; }
.v2 .topics--filter a[aria-current="page"] b { background: rgba(255,255,255,.14); color: #fff; }
.topics--filter a:focus-visible { outline: 3px solid rgba(227,43,43,.4); outline-offset: 2px; }

/* ---------- Insights lists ---------- */
.insights-section .posts { align-items: start; }
.post-row--plain { grid-template-columns: 1fr 44px; }
.post-list li:last-child .post-row { border-bottom: 0; }
.empty-note { padding: 48px 0; font-size: 1.0625rem; color: var(--ink-400); text-align: center; }

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.pgrid--after { margin-top: clamp(48px, 6vw, 72px); }
.pcard { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  text-decoration: none; color: var(--ink-500); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s; }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-3); border-color: transparent; color: var(--ink-500); }
.pcard:focus-visible { outline: 3px solid rgba(227,43,43,.4); outline-offset: 3px; }
.pcard__cat { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--red-600); }
.pcard h3 { margin: 0; font-size: 1.3125rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; color: var(--ink-900); transition: color .2s; }
.pcard:hover h3 { color: var(--red-600); }
.pcard p { margin: 0; font-size: .9375rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__foot { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .8125rem; color: var(--ink-400); }
.pcard__foot i { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-900); transition: all .3s var(--ease); }
.pcard__foot svg { width: 16px; height: 16px; }
.pcard:hover .pcard__foot i { background: var(--red-500); border-color: var(--red-500); color: #fff; transform: translateX(3px); }

/* ---------- Pagination (pills) ---------- */
.pagination-wrap { margin-top: clamp(40px, 5vw, 64px); }
.pagination-wrap .pagination { margin: 0; }
.pagination-wrap .pagination a, .pagination-wrap .pagination span { border-radius: var(--r-pill); min-width: 46px; min-height: 46px; transition: all .2s var(--ease); }
.pagination-wrap .pagination a:hover { background: var(--dark-900); border-color: var(--dark-900); color: #fff; transform: translateY(-1px); }
.pagination-wrap .pagination .dots { border-color: transparent; background: transparent; }
.pagination-wrap .pagination svg { width: 17px; height: 17px; }
.pagination-wrap .pagination .flip { transform: rotate(180deg); }
.pagination-wrap .pagination a:focus-visible { outline: 3px solid rgba(227,43,43,.4); outline-offset: 2px; }

/* ---------- Reading progress ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.read-progress i { display: block; height: 100%; background: var(--red-500); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 10px rgba(227,43,43,.5); }

/* ---------- Article layout ---------- */
.prose-section { padding-top: clamp(40px, 5vw, 72px); }
.prose-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 760px; }
.prose-solo .article-col { max-width: 760px; margin-inline: auto; }
.prose-grid .article-col { min-width: 0; }
@media (min-width: 1080px) {
  .prose-grid { grid-template-columns: minmax(0, 720px) 320px; gap: clamp(48px, 6vw, 88px); max-width: none; justify-content: center; align-items: start; }
  /* The aside column must span the article height or sticky has no room to travel. */
  .prose-grid > .article-aside { align-self: stretch; }
  /* Flex column capped at the viewport: the TOC shrinks and scrolls inside, the call card never overflows. */
  .article-aside__inner { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 20px; max-height: calc(100vh - var(--header-h) - 48px); }
  .article-aside__inner > * { flex: none; }
  .article-aside .toc { flex: 0 1 auto; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .toc-m { display: none; }
}
@media (max-width: 1079px) {
  .prose-grid { margin-inline: auto; }
  .article-aside .toc { display: none; }
}

/* ---------- Prose ---------- */
.article-col .prose { max-width: none; font-size: 1.0938rem; line-height: 1.75; color: var(--ink-500); }
@media (min-width: 640px) { .article-col .prose { font-size: 1.125rem; } }
.article-col .prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { position: relative; margin: 2.2em 0 .6em; padding-top: 22px; font-size: clamp(1.625rem, 1.3rem + 1vw, 1.875rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; color: var(--ink-900); scroll-margin-top: 100px; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--red-500); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.8em 0 .5em; font-size: 1.3125rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; color: var(--ink-900); scroll-margin-top: 100px; }
.prose h4 { margin: 1.5em 0 .4em; font-size: 1.0625rem; font-weight: 800; color: var(--ink-900); }
.prose strong { color: var(--ink-900); font-weight: 700; }
.prose a { color: var(--red-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(200,30,30,.4); transition: text-decoration-color .2s, color .2s; }
.prose a:hover { text-decoration-color: currentColor; color: var(--red-500); }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.prose li { margin-bottom: .55em; padding-left: .3em; }
.prose ul li::marker { color: var(--red-500); }
.prose ol li::marker { color: var(--red-600); font-weight: 800; }
.prose blockquote { margin: 2em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--red-500); font-size: clamp(1.1875rem, 1.05rem + .6vw, 1.4375rem); font-style: italic; font-weight: 500; line-height: 1.5; color: var(--ink-700); }
.prose blockquote p { margin: 0 0 .6em; }
.prose blockquote p:last-child { margin: 0; }
.prose blockquote cite { display: block; margin-top: .6em; font-size: .875rem; font-style: normal; font-weight: 700; color: var(--ink-400); }
.prose img { max-width: 100%; height: auto; border-radius: 16px; }
.prose figure { margin: 2em 0; }
.prose figcaption, .prose .wp-caption-text { margin-top: 10px; font-size: .8125rem; line-height: 1.5; color: var(--ink-400); text-align: center; }
.prose .wp-caption { max-width: 100%; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
/* Tables arrive wrapped in .table-scroll (atc_wrap_tables): the box scrolls, the table fills it. */
.prose .table-scroll { max-width: 100%; overflow-x: auto; margin: 2em 0; border: 1px solid var(--line); border-radius: 16px; -webkit-overflow-scrolling: touch; }
.prose .table-scroll > table { display: table; width: 100%; margin: 0; border: 0; border-radius: 0; }
.prose figure.wp-block-table { margin: 2em 0; }
.prose figure.wp-block-table .table-scroll { margin: 0; }
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; margin: 2em 0; border: 1px solid var(--line); border-radius: 16px; border-collapse: separate; border-spacing: 0; font-size: .9375rem; -webkit-overflow-scrolling: touch; }
.prose th, .prose td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; min-width: 96px; vertical-align: top; }
.prose thead th, .prose tr:first-child th { background: var(--surface); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--ink-400); }
.prose tbody th { color: var(--ink-900); font-weight: 700; }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover td, .prose tbody tr:hover th { background: #FBFBFC; }
.prose iframe, .prose video { max-width: 100%; border-radius: 16px; }
.prose .wp-block-button__link, .prose a.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: var(--r-pill); background: var(--red-500); color: #fff; font-weight: 700; text-decoration: none; }
.prose .wp-block-button__link:hover, .prose a.button:hover { background: var(--red-600); color: #fff; }

/* ---------- TOC ---------- */
.toc { padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.toc__title { margin: 0 0 12px; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--ink-400); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 8px 12px; margin-left: -12px; border-left: 2px solid transparent; border-radius: 0 10px 10px 0; font-size: .9063rem; line-height: 1.4; font-weight: 600; color: var(--ink-500); text-decoration: none; transition: all .2s; }
.toc a:hover { color: var(--ink-900); background: var(--surface); }
.toc a.is-active { color: var(--red-600); border-left-color: var(--red-500); background: var(--red-50); }
.toc a:focus-visible, .toc-m a:focus-visible { outline: 3px solid rgba(227,43,43,.4); outline-offset: 2px; }
.toc-m { margin: 0 0 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.toc-m summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-weight: 800; color: var(--ink-900); }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.toc-m[open] summary svg { transform: rotate(180deg); }
.toc-m ol { margin: 0; padding: 0 18px 14px 40px; display: grid; gap: 6px; }
.toc-m a { color: var(--ink-700); font-weight: 600; font-size: .9375rem; text-decoration: none; }
.toc-m a:hover { color: var(--red-600); }

.aside-cta { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 12px; padding: 26px; border-radius: var(--r-lg); background: var(--dark-900); color: var(--on-dark-body); }
.aside-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 100% 0%, rgba(227,43,43,.3), transparent 70%); }
.aside-cta__kicker { margin: 0; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--red-300); }
.aside-cta h2 { margin: 0; color: #fff; font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.aside-cta p { margin: 0 0 4px; font-size: .9375rem; }
@media (max-width: 1079px) { .article-aside { margin-top: 8px; } }

/* ---------- FAQ ---------- */
.atc-faq { margin-top: 3.2em; }
.atc-faq__title { position: relative; margin: 0 0 20px; padding-top: 22px; font-size: clamp(1.625rem, 1.3rem + 1vw, 1.875rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; color: var(--ink-900); }
.atc-faq__title::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--red-500); }
.atc-faq__list { display: grid; gap: 10px; }
.atc-faq__item { border: 1px solid var(--line); border-radius: 16px; background: var(--white); transition: box-shadow .25s, border-color .25s; }
.atc-faq__item:hover { border-color: #D3D5DA; }
.atc-faq__item[open] { box-shadow: var(--shadow-1); border-color: #D3D5DA; }
.atc-faq__q { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 1.0625rem; font-weight: 700; line-height: 1.35; color: var(--ink-900); border-radius: 16px; }
.atc-faq__q::-webkit-details-marker { display: none; }
.atc-faq__q::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1A' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s var(--ease), background-color .25s; }
.atc-faq__item[open] .atc-faq__q::after { transform: rotate(45deg); background-color: var(--red-50); }
.atc-faq__q:focus-visible { outline: 3px solid rgba(227,43,43,.4); outline-offset: 2px; }
.atc-faq__a { padding: 0 22px 20px; font-size: 1rem; line-height: 1.7; }
.atc-faq__a p { margin: 0 0 .8em; }
.atc-faq__a p:last-child { margin: 0; }

/* ---------- Keep reading, slim CTA ---------- */
.keep-list { max-width: 920px; }
.keep-list .post-row { padding-inline: 4px; }
.slim-cta-section { padding-top: clamp(40px, 5vw, 64px); }
.slim-cta { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-xl); background: var(--dark-900); color: var(--on-dark-body); }
.slim-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 100% 0%, rgba(227,43,43,.3), transparent 70%); }
.slim-cta h2 { margin: 0 0 6px; color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.slim-cta p { margin: 0; max-width: 52ch; }

/* ---------- Hub pages ---------- */
.hub-listings .lgrid { margin: 0; }
.ptable-wrap { margin-top: 3em; }
.ptable-wrap h2 { position: relative; margin: 0 0 20px; padding-top: 22px; font-size: clamp(1.625rem, 1.3rem + 1vw, 1.875rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; color: var(--ink-900); }
.ptable-wrap h2::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--red-500); }
.ptable__scroll { overflow-x: auto; }
.ptable__scroll table { min-width: 460px; }
.ptable__note { display: block; margin-top: 2px; font-size: .75rem; font-weight: 500; color: var(--ink-400); }
.ptable-notes { margin-top: 16px; font-size: .9375rem; }
@media (max-width: 639px) { .ptable th, .ptable td { padding: 14px 16px; } }

/* ---------- About ---------- */
.about-story .collage__b { border-color: #fff; }
.about-story .about2 > div:last-child .btn-row { margin-top: 28px; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.mv-card { padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.mv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.mv-card__ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--red-50); color: var(--red-600); margin-bottom: 18px; transition: all .3s var(--ease); }
.mv-card:hover .mv-card__ic { background: var(--red-500); color: #fff; transform: rotate(-6deg); }
.mv-card__ic svg { width: 24px; height: 24px; }
.mv-card h3 { margin: 0 0 8px; font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; }
.mv-card p { margin: 0; }

.ceo { position: relative; isolation: isolate; overflow: hidden; margin-top: var(--s7); display: grid; grid-template-columns: 152px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: var(--r-xl); background: var(--dark-900); color: var(--on-dark-body); }
.ceo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 0% 0%, rgba(227,43,43,.25), transparent 70%); }
.ceo .eyebrow { color: var(--red-300); }
.ceo h3 { margin: 0 0 16px; color: #fff; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.375rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.ceo__avatar { width: 152px; height: 152px; border-radius: 50%; display: grid; place-items: center; background: var(--red-500); color: #fff; font-size: 3rem; font-weight: 800; letter-spacing: -.02em; box-shadow: 0 0 0 8px rgba(255,255,255,.06), 0 24px 48px -16px rgba(227,43,43,.6); }
.ceo__roles { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ceo__roles li { padding: 7px 14px; border-radius: var(--r-pill); background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); font-size: .8125rem; font-weight: 600; color: #D5D7DB; }
.ceo p { margin: 0; max-width: 62ch; }

.about-values { position: relative; isolation: isolate; overflow: hidden; }
.about-values::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--glow); }
.about-values .about2 { align-items: start; }
.about-values .feats { margin: 0; }

.reg-row { display: grid; grid-template-columns: 1fr auto; gap: var(--s6); align-items: center; }
.reg-row h2 { margin-bottom: .3em; }
.reg-row p { margin: 0; max-width: 52ch; }
.reg-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.reg-chips li { display: flex; align-items: center; gap: 14px; min-width: 240px; padding: 16px 22px 16px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.reg-chips li:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.reg-chip__ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--red-50); color: var(--red-600); }
.reg-chip__ic svg { width: 22px; height: 22px; }
.reg-chips small { display: block; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--ink-400); }
.reg-chips b { display: block; font-size: 1.125rem; font-weight: 800; color: var(--ink-900); font-variant-numeric: tabular-nums; }

/* ---------- Contact ---------- */
.nap-section { position: relative; z-index: 3; padding-block: 0 var(--section-y); margin-top: -36px; }
.nap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.nap__card { position: relative; height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-3); text-decoration: none; color: var(--ink-500); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.nap__card:hover { transform: translateY(-5px); color: var(--ink-500); }
.nap__card:focus-visible { outline: 3px solid rgba(227,43,43,.4); outline-offset: 3px; }
.nap__ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; background: var(--dark-900); color: #fff; transition: all .3s var(--ease); }
.nap__ic svg { width: 24px; height: 24px; }
.nap__card:hover .nap__ic { background: var(--red-500); transform: rotate(-6deg); }
.nap__card small { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--ink-400); }
.nap__card strong { font-size: 1.1875rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.35; color: var(--ink-900); overflow-wrap: anywhere; }
.nap__mail { font-size: 1.0625rem !important; }
.nap__go { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: .9063rem; font-weight: 700; color: var(--red-600); }
.nap__go svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.nap__card:hover .nap__go svg { transform: translateX(4px); }
.nap__hours { align-self: flex-start; margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--r-pill); background: #E8F5EE; color: var(--success); font-size: .8125rem; font-weight: 700; }
.nap__hours .dot, .nap__hours .dot::after { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); }
.nap__hours .dot { position: relative; flex: none; }
.nap__hours .dot::after { content: ""; position: absolute; inset: 0; opacity: .5; animation: atcpulse 2s infinite; }

.mapbox { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(340px, 42vw, 480px); border-radius: var(--r-xl); background: var(--dark-950); box-shadow: var(--shadow-3); }
.mapbox__art { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 50% at 62% 48%, rgba(227,43,43,.28), transparent 70%),
    linear-gradient(112deg, transparent 0 41%, rgba(255,255,255,.11) 41% 41.8%, transparent 41.8% 100%),
    linear-gradient(0deg, transparent 0 56%, rgba(255,255,255,.1) 56% 58%, transparent 58% 100%),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--dark-900); }
.mapbox__pin { position: absolute; left: 62%; top: 48%; width: 56px; height: 56px; margin: -56px 0 0 -28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--red-500); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(227,43,43,.2), 0 18px 32px -8px rgba(227,43,43,.6); }
.mapbox__pin svg { width: 24px; height: 24px; color: #fff; transform: rotate(45deg); }
.mapbox__card { position: absolute; left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); max-width: 360px; display: grid; gap: 6px; justify-items: start; padding: 22px; border-radius: 20px; background: rgba(20,20,20,.72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border: 1px solid rgba(255,255,255,.12); color: var(--on-dark-body); }
.mapbox__card strong { color: #fff; font-size: 1.125rem; font-weight: 800; }
.mapbox__card span { font-size: .9063rem; line-height: 1.5; margin-bottom: 8px; }
.mapbox__card small { font-size: .75rem; color: var(--on-dark-muted); }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapbox.is-loaded .mapbox__art, .mapbox.is-loaded .mapbox__card { display: none; }

/* ---------- Resources ---------- */
.resource-body .prose h2, .resource-body .prose h3 { margin-top: 2em; }
.res-list { list-style: none; margin: 1.2em 0 2em !important; padding: 0 !important; display: grid; gap: 12px; }
.res-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 18px; margin: 0 !important; padding: 16px 18px !important; background: var(--white); border: 1px solid var(--line); border-radius: 18px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .25s; }
.res-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: transparent; }
.res-row--text { grid-template-columns: 1fr; background: var(--surface); }
.res-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--red-50); color: var(--red-600); transition: all .3s var(--ease); }
.res-ic--map { background: var(--dark-900); color: #fff; }
.res-ic svg { width: 24px; height: 24px; }
.res-row:hover .res-ic { background: var(--red-500); color: #fff; transform: rotate(-6deg); }
.res-t b { display: block; font-size: 1.0625rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; color: var(--ink-900); }
.res-t small { display: block; margin-top: 2px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ink-400); }
.prose a.res-go { text-decoration: none; color: var(--ink-900); }
.prose a.res-go:hover { color: #fff; }
.res-go svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.res-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.res-row:hover .res-go:first-child { background: var(--ink-900); color: #fff; }
.res-go:hover svg { transform: translateX(3px); }
@media (max-width: 639px) {
  .res-row { grid-template-columns: 44px 1fr; gap: 14px; }
  .res-ic { width: 44px; height: 44px; border-radius: 14px; }
  .res-btns { grid-column: 1 / -1; }
  .res-go { flex: 1; }
}

/* ---------- Search ---------- */
.err__search { display: flex; align-items: center; gap: 8px; max-width: 560px; padding: 6px; border-radius: var(--r-pill); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); transition: border-color .2s, background .2s; }
.err__search:focus-within { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
.err__search input { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border: 0; background: transparent; color: #fff; font: inherit; font-size: 1rem; outline: 0; -webkit-appearance: none; appearance: none; }
.err__search input::placeholder { color: var(--on-dark-muted); }
.err__search--light { background: var(--surface); border-color: var(--line); margin-bottom: var(--s7); max-width: 640px; }
.err__search--light:focus-within { background: var(--white); border-color: var(--ink-900); box-shadow: 0 0 0 4px rgba(26,26,26,.08); }
.err__search--light input { color: var(--ink-900); }
.err__search--light input::placeholder { color: var(--ink-400); }
.search-h { margin: var(--s7) 0 var(--s5); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.srows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.srow { position: relative; display: grid; grid-template-columns: 1fr 44px; column-gap: 20px; align-items: center; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink-500); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .25s; }
.srow:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: transparent; color: var(--ink-500); }
.srow:focus-visible { outline: 3px solid rgba(227,43,43,.4); outline-offset: 3px; }
.srow__type { grid-column: 1; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--red-600); }
.srow h3 { grid-column: 1; margin: 4px 0; font-size: 1.1875rem; font-weight: 800; line-height: 1.3; color: var(--ink-900); transition: color .2s; }
.srow:hover h3 { color: var(--red-600); }
.srow p { grid-column: 1; margin: 0; font-size: .9375rem; }
.srow__go { grid-column: 2; grid-row: 1 / span 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-900); transition: all .3s var(--ease); }
.srow__go svg { width: 17px; height: 17px; }
.srow:hover .srow__go { background: var(--red-500); border-color: var(--red-500); color: #fff; transform: translateX(3px); }

/* ---------- Error pages ---------- */
.err { position: relative; isolation: isolate; overflow: hidden; margin-top: -80px; padding: 176px 0 112px; min-height: min(100vh, 880px); display: flex; align-items: center; background: var(--dark-950); color: var(--on-dark-body); }
.err::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 60% at 85% 10%, rgba(227,43,43,.22), transparent 65%), radial-gradient(50% 50% at 0% 100%, rgba(227,43,43,.1), transparent 70%); }
.err::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6;
  background: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); }
.err__inner { width: 100%; }
.err__code { margin: 0 0 8px; font-size: clamp(6.5rem, 2rem + 22vw, 17rem); font-weight: 800; letter-spacing: -.05em; line-height: .85; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.2); user-select: none; }
.err h1 { margin: 0 0 12px; color: #fff; font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.err__text { margin: 0 0 32px; max-width: 52ch; font-size: 1.125rem; }
.err .err__search { margin-bottom: 28px; }
.err__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.err__links--light { margin-top: 20px; justify-content: center; }
.err__links a svg { transition: transform .25s var(--ease); }
.err__links a:hover svg { transform: translateX(3px); }
@media (max-width: 899px) { .err { margin-top: -64px; padding: 132px 0 96px; } }

/* ---------- Breakpoints ---------- */
@media (max-width: 1079px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .insights-section .posts { grid-template-columns: 1fr; }
  .reg-row { grid-template-columns: 1fr; }
  .nap { grid-template-columns: 1fr; }
  .nap-section { margin-top: -24px; }
}
@media (max-width: 899px) {
  .mv-grid { grid-template-columns: 1fr; }
  .ceo { grid-template-columns: 1fr; }
  .ceo__avatar { width: 112px; height: 112px; font-size: 2.25rem; }
  .slim-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 639px) {
  .pgrid { grid-template-columns: 1fr; }
  .pcard { padding: 24px; }
  .post-row { grid-template-columns: 44px 1fr 40px; gap: 14px; }
  .post-row--plain { grid-template-columns: 1fr 40px; }
  .post-row__n { font-size: 1.875rem; }
  .reg-chips li { min-width: 0; width: 100%; }
  .slim-cta .btn-row, .slim-cta .btn { width: 100%; }
  .err__search { flex-wrap: nowrap; }
  .err__search .btn { padding: 0 18px; }
  .mapbox__card { right: 16px; max-width: none; }
  .mapbox__pin { left: 50%; top: 34%; }
  .err__links--light { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard, .nap__card, .res-row, .srow, .mv-card, .reg-chips li { transition: none; }
  .pcard:hover, .nap__card:hover, .res-row:hover, .srow:hover, .mv-card:hover, .reg-chips li:hover { transform: none; }
  .read-progress i { transition: none; }
  .nap__hours .dot::after { animation: none; }
}

/* ---------- Mobile polish pass ---------- */
@media (max-width: 639px) {
  .post-row { grid-template-columns: 44px minmax(0, 1fr) 40px; }
  .post-row--plain { grid-template-columns: minmax(0, 1fr) 40px; }
}
@media (max-width: 899px) {
  .pcard__cat, .prose thead th, .prose tr:first-child th, .toc__title, .aside-cta__kicker,
  .reg-chips small, .nap__card small, .srow__type { font-size: .75rem; }
}

/* ---------- Hub pages: /prices/, /area-guides/, /documentation/ ---------- */
.pp-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s7); }
.pp-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink-900); font-weight: 700; font-size: .9375rem; text-decoration: none; transition: background .15s, border-color .15s; }
.pp-jump a:hover { background: #fff; border-color: var(--red-500); color: var(--red-600); }
.pp-jump .pp-jump__guide { background: none; border-color: transparent; color: var(--red-600); }
.pp-area { margin-bottom: clamp(40px, 6vw, 72px); scroll-margin-top: 96px; }
.pp-area__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s3) var(--s5); margin-bottom: var(--s5); }
.pp-area__head h2 { margin: 0 0 .25em; }
.pp-area__head p { margin: 0; max-width: 60ch; }
.pp-more { margin: 0 0 var(--s7); }
.pp-empty { max-width: 640px; margin-bottom: var(--s7); }
.pp .cta-band { margin-top: var(--s5); }

.hubgrid { list-style: none; margin: 0 0 var(--s7); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: var(--s5); }
.hubgrid > li { display: flex; }
.hubcard { flex: 1; }
.hubcard__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(227,43,43,.1); color: var(--red-600); }
.hubcard__ic svg { width: 24px; height: 24px; }
.hubcard h2 { margin: 0; font-size: 1.3125rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; color: var(--ink-900); transition: color .2s; }
.hubcard:hover h2 { color: var(--red-600); }
.hubcard p { display: block; -webkit-line-clamp: unset; }
.hubcard__go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9375rem; color: var(--red-600); }
.hubcard__go svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.hubcard:hover .hubcard__go svg { transform: translateX(4px); }
.hubgrid + .cta-band { margin-top: 0; }

.ag-feature { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); margin-bottom: clamp(32px, 5vw, 56px); padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); background: var(--dark-900); color: var(--on-dark-body); text-decoration: none; transition: transform .25s var(--ease); }
.ag-feature:hover { transform: translateY(-2px); color: var(--on-dark-body); }
.ag-feature__t { display: flex; flex-direction: column; gap: 4px; }
.ag-feature__t small { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--red-300); }
.ag-feature__t b { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.15; }
.ag-feature__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.ag-feature__go svg { width: 18px; height: 18px; color: var(--red-300); transition: transform .2s var(--ease); }
.ag-feature:hover .ag-feature__go svg { transform: translateX(4px); }
.ag-feature:focus-visible { outline: 3px solid var(--red-300); outline-offset: 3px; }
.ag-city { margin-bottom: clamp(40px, 6vw, 72px); }
.ag-city__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s5); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
.ag-city__head h2 { margin: 0; }
.ag-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.ag-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); overflow: hidden; transition: box-shadow .2s, transform .2s var(--ease), border-color .2s; }
.ag-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: transparent; }
.ag-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.ag-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ag-card:hover .ag-card__img img { transform: scale(1.04); }
.ag-card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.ag-card__a { font-size: 1.1875rem; font-weight: 800; line-height: 1.25; color: var(--ink-900); text-decoration: none; }
.ag-card__a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ag-card__a:focus-visible { outline: none; }
.ag-card__a:focus-visible::after { outline: 3px solid var(--red-500); outline-offset: -3px; border-radius: inherit; }
.ag-card:hover .ag-card__a { color: var(--red-600); }
.ag-card__meta { font-size: .875rem; color: var(--ink-500); }
.ag-card__meta em { font-style: normal; font-weight: 700; color: var(--red-600); }
.ag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ag-chips a { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: .8125rem; font-weight: 600; color: var(--ink-900); text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.ag-chips a:hover { background: #fff; border-color: var(--red-500); color: var(--red-600); }
.ag-chips a b { font-weight: 700; color: var(--ink-400); }
@media (max-width: 899px) { .ag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .ag-grid { grid-template-columns: 1fr; } }
