/* Pacific Peak article template v2 (2026-10-05).
   Modeled on expert cost-guide pages (Angi, NerdWallet, This Old House) and clean company blogs
   (Stripe, Intercom): navy header band with title, summary and byline; white reading column;
   sticky side rail with the section list and a price card; no photo between paragraphs.
   Loaded only by pages whose <body> has class "ax". Shapes: cards 12px, photos 16px, buttons 12px. */

body.ax { background: #fff; }
body.ax .nav, body.ax .nav.scrolled { background: rgba(255, 255, 255, 0.95); border-bottom-color: #E3E7EB; }

/* ---------- header band ---------- */
.ax-head { background: var(--navy-deep, #102744); color: #fff; padding: clamp(28px, 4vw, 52px) 0 clamp(36px, 5vw, 64px); }
.ax-head-in { max-width: 1164px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ax-crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 14px; color: rgba(242, 238, 229, 0.72); margin: 0 0 18px; }
.ax-crumbs a { color: rgba(242, 238, 229, 0.86); text-decoration: underline; text-decoration-color: rgba(242, 238, 229, 0.35); text-underline-offset: 3px; }
.ax-crumbs a:hover { color: #fff; }
.ax-crumbs .sep { color: rgba(242, 238, 229, 0.4); }
.ax-head h1 { font-family: var(--sans); font-stretch: 100%; text-transform: none; font-weight: 700; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -0.02em; color: #fff; margin: 0 0 16px; max-width: 20ch; }
.ax-dek { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: rgba(242, 238, 229, 0.86); margin: 0 0 26px; max-width: 56ch; }
.ax-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 22px; border-top: 1px solid rgba(242, 238, 229, 0.16); }
.ax-person { display: flex; align-items: center; gap: 12px; }
.ax-av { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: #fff; color: var(--navy, #1A3A5C); font-weight: 800; font-size: 15px; letter-spacing: 0.02em; }
.ax-av img { width: 28px; height: auto; display: block; }
.ax-av.ax-av-initials { background: #F2B48F; color: #102744; }
.ax-person small { display: block; font-size: 13px; color: rgba(242, 238, 229, 0.66); line-height: 1.3; }
.ax-person b, .ax-person a { display: block; font-size: 15px; font-weight: 600; color: #fff; line-height: 1.35; text-decoration: none; }
.ax-person a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ax-date { font-size: 14px; color: rgba(242, 238, 229, 0.72); line-height: 1.4; }
.ax-date b { color: #fff; font-weight: 600; }
.ax-photo { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.6); }
.ax-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- layout ---------- */
.ax-wrap { max-width: 1164px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) clamp(16px, 4vw, 40px) clamp(48px, 6vw, 88px); }
.ax-grid { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 64px; justify-content: center; align-items: start; }
.ax-main { min-width: 0; font-size: 18px; line-height: 1.65; color: #26231E; }
.ax-rail { position: sticky; top: 104px; display: grid; gap: 18px; }

/* ---------- prose ---------- */
.ax-main :where(p, ul, ol, figure) { margin: 0; }
.ax-main > * + * { margin-top: 1.1em; }
.ax-main h2 { font-family: var(--sans); font-stretch: 100%; text-transform: none; font-weight: 700; font-size: clamp(25px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.018em; color: var(--ink); margin: 2.1em 0 0.5em; scroll-margin-top: 100px; }
.ax-main h3 { font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); margin: 1.7em 0 0.35em; }
.ax-main h2 + p, .ax-main h3 + p { margin-top: 0; }
.ax-main a:not([class]) { color: #A64517; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ax-main a:not([class]):hover { color: var(--ink); }
.ax-main strong { color: var(--ink); font-weight: 650; }
.ax-main ul, .ax-main ol { padding-left: 1.4em; }
.ax-main li { margin: 0.45em 0; padding-left: 0.2em; }
.ax-main ul li::marker { color: var(--navy, #1A3A5C); }
.ax-main ol li::marker { color: var(--navy, #1A3A5C); font-weight: 700; }

/* short answer box (replaces the old TL;DR) */
.ax-key { border: 1px solid #DCE1E6; border-radius: 12px; padding: 22px 26px 24px; background: #fff; box-shadow: 0 6px 20px -12px rgba(16, 39, 68, 0.25); }
.ax-key-h { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--navy, #1A3A5C); margin: 0 0 8px !important; }
.ax-key-h::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: #BC4E1B; }
.ax-key p { font-size: 17px; line-height: 1.6; }

/* figures sit at column width, never mid-paragraph banners */
.ax-main .article-figure { width: auto; left: auto; transform: none; position: static; margin: 2em 0; background: #F6F8FA; border: 1px solid #E3E7EB; border-radius: 12px; overflow: hidden; }
.ax-main .article-figure figcaption { font-style: normal; font-size: 14.5px; color: #5B6470; padding: 12px 18px 14px; border-top: 1px solid #E3E7EB; }

/* callout */
.ax-main .callout { background: #F3F6F9; border: 1px solid #DCE4EC; border-radius: 12px; padding: 24px 28px; margin-top: 2em; }
.ax-main .callout h3 { margin-top: 0; font-size: 19px; }

/* worked examples get a quiet card each */
.ax-ex { border-top: 1px solid #E3E7EB; padding-top: 4px; }

/* FAQ accordion (answers stay in the HTML, matching the FAQPage schema) */
.ax-faq { border-top: 1px solid #E3E7EB; margin-top: 0 !important; }
.ax-faq:last-of-type { border-bottom: 1px solid #E3E7EB; }
.ax-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; }
.ax-faq summary::-webkit-details-marker { display: none; }
.ax-faq summary h3 { margin: 0; font-size: 18.5px; font-weight: 650; line-height: 1.35; }
.ax-faq summary::after { content: ""; flex: none; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%231A3A5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 50% 50% / 16px 16px; transition: transform 180ms ease; }
.ax-faq[open] summary::after { transform: rotate(180deg); }
.ax-faq summary:hover h3 { color: #A64517; }
.ax-faq summary:focus-visible { outline: 3px solid #BC4E1B; outline-offset: 2px; border-radius: 6px; }
.ax-faq > div { padding: 0 2px 20px; }
.ax-faq > div p { font-size: 17px; }

/* reviewer box */
.ax-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 2.6em !important; padding: 24px; border-radius: 12px; background: #F3F6F9; border: 1px solid #DCE4EC; }
.ax-author .ax-av { width: 56px; height: 56px; font-size: 18px; }
.ax-author h2 { font-size: 18px; margin: 0 0 4px; letter-spacing: -0.01em; }
.ax-author p { font-size: 15.5px; line-height: 1.55; color: #3D434B; }

/* sources */
.ax-sources { margin-top: 2.4em !important; padding-top: 22px; border-top: 1px solid #E3E7EB; font-size: 15px; line-height: 1.6; color: #4A515A; }
.ax-sources h2 { font-size: 17px; margin: 0 0 8px; }
.ax-sources ul { margin-top: 6px; }
.ax-sources p + p { margin-top: 0.8em; }

/* ---------- rail ---------- */
.ax-toc { border: 1px solid #E3E7EB; border-radius: 12px; padding: 18px 18px 14px; background: #fff; }
.ax-toc-h { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.ax-toc ol { list-style: none; margin: 0; padding: 0; }
.ax-toc a { display: block; padding: 7px 10px; margin: 1px 0; border-radius: 8px; font-size: 14.5px; line-height: 1.35; color: #4A515A; text-decoration: none; }
.ax-toc a:hover { color: var(--ink); background: #F3F6F9; }
.ax-toc a.is-on { color: var(--navy, #1A3A5C); font-weight: 650; background: #EAF0F6; }
.ax-cta { border-radius: 12px; padding: 22px 20px; background: var(--navy-deep, #102744); color: #fff; }
.ax-cta h2 { font-size: 19px; font-weight: 700; line-height: 1.25; color: #fff; margin: 0 0 6px; letter-spacing: -0.01em; }
.ax-cta p { font-size: 14.5px; line-height: 1.5; color: rgba(242, 238, 229, 0.82); margin: 0 0 14px; }
.ax-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; background: #BC4E1B; color: #fff; font-weight: 700; font-size: 15.5px; text-decoration: none; transition: background 150ms ease; }
.ax-btn:hover { background: #A64517; color: #fff; }
.ax-cta-alt { display: block; margin-top: 12px; font-size: 14px; color: rgba(242, 238, 229, 0.82); text-align: center; }
.ax-cta-alt a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ax-btn:focus-visible, .ax-toc a:focus-visible, .ax-cta-alt a:focus-visible { outline: 3px solid #F2B48F; outline-offset: 2px; }

/* mobile section list, shown only when the rail is hidden */
.ax-toc-m { display: none; border: 1px solid #E3E7EB; border-radius: 12px; }
.ax-toc-m summary { cursor: pointer; padding: 14px 16px; font-size: 15px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.ax-toc-m summary::-webkit-details-marker { display: none; }
.ax-toc-m summary::after { content: ""; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%231A3A5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 50% 50% / 16px 16px; }
.ax-toc-m[open] summary::after { transform: rotate(180deg); }
.ax-toc-m ol { margin: 0; padding: 0 16px 12px 34px; font-size: 15.5px; }
.ax-toc-m a { color: #4A515A; text-decoration: none; }

/* ---------- related ---------- */
.ax-related { background: #F3F6F9; border-top: 1px solid #E3E7EB; padding: clamp(44px, 6vw, 72px) 0; }
.ax-related-in { max-width: 1164px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.ax-related h2 { font-family: var(--sans); font-stretch: 100%; text-transform: none; font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.018em; color: var(--ink); margin: 0 0 24px; }
.ax-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ax-card { display: block; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #E3E7EB; text-decoration: none; color: var(--ink); transition: transform 160ms ease, box-shadow 160ms ease; }
.ax-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -18px rgba(16, 39, 68, 0.35); }
.ax-card-img { aspect-ratio: 3 / 2; overflow: hidden; background: #E3E7EB; }
.ax-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ax-card-b { padding: 16px 18px 20px; }
.ax-card-b small { display: block; font-size: 13px; color: #5B6470; margin-bottom: 6px; }
.ax-card-b b { display: block; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.ax-card-b span { display: inline-block; margin-top: 10px; font-size: 14.5px; font-weight: 600; color: #A64517; }

/* ---------- quiz inside the reading column ---------- */
.ax-main .rrq { border-radius: 24px; padding: clamp(28px, 4vw, 44px) 0; margin: 2.4em 0 0; }
.ax-main .rrq-wrap { padding: 0 clamp(16px, 3vw, 32px); }
.ax-main .rrq-h { font-size: clamp(25px, 2.6vw, 32px); color: #fff; margin: 0 0 10px; }
.ax-main .rrq-qh { margin: 0; }
.ax-main .rrq-qh + .rrq-qsub { margin-top: 8px; }
.ax-main .rrq-v { color: #fff; margin: 14px 0 10px; font-size: clamp(28px, 3.4vw, 38px); }
.ax-main .rrq-notes { padding-left: 0; }
.ax-main .rrq-sub { margin: 0 0 24px; }
.ax-main .rrq a:not([class]) { color: inherit; }
.ax-main .rrq-notes a { color: #F2B48F; }
.ax-main .rrq-fine a { color: var(--ink); }
@media (max-width: 860px) { .ax-main .rrq-opts-age { grid-template-columns: 1fr 1fr 1fr; } .ax-main .rrq-opts-age .rrq-opt:nth-child(n+4) { grid-column: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ax-grid { grid-template-columns: minmax(0, 720px); }
  .ax-rail { display: none; }
  .ax-toc-m { display: block; }
}
@media (max-width: 900px) {
  .ax-head-in { grid-template-columns: 1fr; }
  .ax-photo { display: none; }
  .ax-head h1 { max-width: none; }
}
@media (max-width: 760px) {
  .ax-cards { grid-template-columns: 1fr; }
  .ax-card { display: grid; grid-template-columns: 120px 1fr; }
  .ax-card-img { aspect-ratio: auto; height: 100%; }
}
@media (max-width: 640px) {
  .ax-main { font-size: 17px; }
  .ax-main .rrq { margin-left: calc(-1 * clamp(16px, 4vw, 40px)); margin-right: calc(-1 * clamp(16px, 4vw, 40px)); border-radius: 0; }
  .ax-main .rrq-opts-age { grid-template-columns: 1fr 1fr; }
  .ax-main .rrq-opts-age .rrq-opt:last-child { grid-column: 1 / -1; }
  .ax-meta { gap: 14px 20px; }
  .ax-key { padding: 18px 18px 20px; }
  .ax-author { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .ax-card, .ax-faq summary::after { transition: none; } }

/* tables (10 posts): own scroll box so wide comparisons never push the page sideways */
.ax-table { margin-top: 1.4em; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #E3E7EB; border-radius: 12px; }
.ax-main table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.ax-main thead th { background: #F3F6F9; color: var(--ink); font-weight: 700; font-size: 14px; text-align: left; padding: 12px 14px; border-bottom: 1px solid #DCE4EC; vertical-align: bottom; white-space: nowrap; }
.ax-main tbody th, .ax-main tbody td { padding: 12px 14px; border-bottom: 1px solid #E3E7EB; color: #3D434B; text-align: left; vertical-align: top; }
.ax-main tbody tr:last-child th, .ax-main tbody tr:last-child td { border-bottom: 0; }
.ax-main tbody th, .ax-main tbody td:first-child { color: var(--ink); font-weight: 600; }
.ax-note { font-size: 14px; color: #5B6470; }
.ax-main .ax-table + .ax-note { margin-top: 8px; }
@media (max-width: 640px) {
  .ax-main table { font-size: 14px; }
  .ax-main thead th, .ax-main tbody th, .ax-main tbody td { padding: 10px 11px; }
}

/* ---------- blog home (/insights/) ---------- */
.axi [hidden] { display: none !important; }
.axi-head .ax-head-in { align-items: start; }
.axi-byline { font-size: 14.5px; color: rgba(242, 238, 229, 0.72); margin: 0; }
.axi-byline a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(242, 238, 229, 0.4); }
.axi-start { background: #fff; color: var(--ink); border-radius: 16px; padding: 22px 22px 20px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.axi-start h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 4px; color: var(--ink); }
.axi-start > p { font-size: 14.5px; color: #5B6470; margin: 0 0 12px; }
.axi-start ol { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid #E3E7EB; }
.axi-start li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid #E3E7EB; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15.5px; }
.axi-start li a small { font-weight: 500; font-size: 13px; color: #5B6470; white-space: nowrap; }
.axi-start li a:hover span { color: #A64517; }
.axi-start li a:focus-visible { outline: 3px solid #BC4E1B; outline-offset: 2px; border-radius: 6px; }

.axi-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border: 1px solid #E3E7EB; border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; transition: box-shadow 160ms ease, transform 160ms ease; }
.axi-feature:hover { box-shadow: 0 22px 44px -24px rgba(16, 39, 68, 0.4); transform: translateY(-2px); }
.axi-feature-img { min-height: 100%; background: #E3E7EB; }
.axi-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 3 / 2; }
.axi-feature-b { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.axi-tag { align-self: flex-start; margin: 0; padding: 5px 12px; border-radius: 999px; background: #FDEBDF; color: #A64517; font-size: 13px; font-weight: 700; }
.axi-feature h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.18; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
.axi-feature p { font-size: 16.5px; line-height: 1.55; color: #3D434B; margin: 0; }
.axi-feature small { font-size: 14px; color: #5B6470; }
.axi-more { font-weight: 700; color: #A64517; font-size: 15.5px; }

.axi-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: clamp(40px, 5vw, 64px); }
.axi-h { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.018em; margin: 0; color: var(--ink); }
.axi-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.axi-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #DCE1E6; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 140ms ease, border-color 140ms ease; }
.axi-chip span { font-weight: 500; color: #5B6470; font-size: 13px; }
.axi-chip:hover { border-color: var(--navy, #1A3A5C); }
.axi-chip[aria-pressed="true"] { background: var(--navy-deep, #102744); border-color: var(--navy-deep, #102744); color: #fff; }
.axi-chip[aria-pressed="true"] span { color: rgba(242, 238, 229, 0.75); }
.axi-chip:focus-visible, .axi-reset:focus-visible, .axi-feature:focus-visible, .ax-card:focus-visible { outline: 3px solid #BC4E1B; outline-offset: 3px; }
.axi-count { font-size: 14px; color: #5B6470; margin: 14px 0 18px; }
.axi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.axi-card .ax-card-b p { font-size: 15px; line-height: 1.5; color: #4A515A; margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.axi-empty { margin: 24px 0; font-size: 16px; }
.axi-reset { background: none; border: 0; padding: 0; font: inherit; color: #A64517; text-decoration: underline; cursor: pointer; }

.axi-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: clamp(48px, 6vw, 80px); padding: clamp(26px, 4vw, 44px); border-radius: 16px; background: var(--navy-deep, #102744); color: #fff; }
.axi-cta h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.015em; margin: 0 0 6px; color: #fff; }
.axi-cta p { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(242, 238, 229, 0.82); max-width: 52ch; }
.axi-cta-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.axi-cta-btns .ax-btn { padding: 0 24px; min-height: 52px; }
.axi-call { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(242, 238, 229, 0.45); }
.axi-call:hover { text-decoration-color: #fff; }

@media (max-width: 1000px) { .axi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .axi-head .axi-start { max-width: 520px; }
  .axi-feature { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .axi-grid { grid-template-columns: 1fr; gap: 14px; }
  .axi-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * clamp(16px, 4vw, 40px)); padding: 2px clamp(16px, 4vw, 40px) 6px; scrollbar-width: none; }
  .axi-chips::-webkit-scrollbar { display: none; }
  .axi-chip { flex: none; }
  .axi-card .ax-card-b p { -webkit-line-clamp: 2; font-size: 14.5px; }
  .axi-cta-btns { width: 100%; }
  .axi-cta-btns .ax-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .axi-feature { transition: none; } }
