/* Home Buying Costs additions to the portfolio design system (24 Oct 2026).
   custom.css and cards.css are the shared system; this file only adds the homebuying pages built on it. */

/* Secondary line inside a card sits above the card's stretched link (cards.css) so it stays clickable. */
.sp-panel .sp-kit__alt, .sp-card .sp-kit__alt, .sp-panel .sp-kit__alt a, .sp-card .sp-kit__alt a { position: relative; z-index: 2; }
.sp-panel .sp-reassure { margin: .5rem 0 .75rem; }

/* Homepage hero: natural height on phones too (the calculator sits further down). */
@media (max-width: 767px) { .hh--hb { min-height: 0; padding-top: 36px; padding-bottom: 32px; } }
.hh--hb .hh__title { max-width: 14ch; }
.hh__reassure a { color: #1B6B6B; text-decoration: underline; text-underline-offset: 3px; }

/* Full-width band inside the 980px wrap; main clips the overflow so nothing scrolls sideways. */
.hb-main--bleed { overflow-x: clip; }
.hb-bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.hb-wrap { max-width: 980px; margin: 0 auto; padding: 1.25rem 1.25rem 1.75rem; }
.hb-sec-h { font-family: 'HBSerifF', 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.5rem; line-height: 1.25; letter-spacing: -.015em; color: #1A1A18; margin: 0 0 .5rem; }
@media (min-width: 768px) { .hb-sec-h { font-size: 1.875rem; } }
.hb-sec-lede { color: #6B6860; font-size: 1rem; line-height: 1.6; margin: 0 0 2rem; max-width: 40rem; }

/* Your buying journey */
.hb-journey { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; counter-reset: step; }
@media (min-width: 900px) { .hb-journey { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hb-journey > li { position: relative; background: #fff; border: 1px solid #E8E6E1; border-radius: 14px; padding: 1.1rem 1.1rem 1.15rem; margin: 0; }
.hb-journey__n { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: #E8F5F5; color: #1B6B6B; font-size: .8125rem; font-weight: 700; margin-bottom: .6rem; }
.hb-journey h3 { font-family: 'HBSerifF', 'Fraunces', Georgia, serif; font-size: 1.0625rem; font-weight: 600; color: #1A1A18; margin: 0 0 .35rem; line-height: 1.3; }
.hb-journey p { font-size: .875rem; line-height: 1.5; color: #6B6860; margin: 0 0 .6rem; }
.hb-journey ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.hb-journey ul li { margin: 0; }
.hb-journey ul a { font-size: .875rem; font-weight: 500; color: #1B6B6B; text-decoration: none; }
.hb-journey ul a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Homepage FAQ: white accordion boxes on <details> */
.hb-faq details { background: #fff; border: 1px solid #E8E6E1; border-radius: .75rem; margin: 0 0 .5rem; overflow: hidden; }
.hb-faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 500; color: #1A1A18; font-size: .9375rem; }
.hb-faq summary::-webkit-details-marker { display: none; }
.hb-faq summary:hover { background: #F5F4F0; }
.hb-faq summary svg { flex-shrink: 0; color: #9C9890; transition: transform .2s ease; }
.hb-faq details[open] summary svg { transform: rotate(180deg); }
.hb-faq details p { margin: 0; padding: 0 1.5rem 1.25rem; font-size: .875rem; line-height: 1.7; color: #6B6860; }

/* /check: one-question-per-card assessment pattern */
.hbk-step[hidden] { display: none !important; }
.hbk-q { background: #fff; border: 1px solid #E8E6E1; border-radius: .75rem; padding: 1rem; }
.hbk-q legend, .hbk-q .hbk-qh { font-family: 'HBSerifF', 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.125rem; line-height: 1.35; color: #1A1A18; margin: 0 0 .75rem; padding: 0; }
.hbk-q { min-width: 0; margin: 0 0 .75rem; }
.hbk-q legend { float: left; width: 100%; }
.hbk-q legend ~ * { clear: both; }
.hbk-num { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #9C9890; font-weight: 500; margin: 0 0 .5rem; }
.hbk-opts { display: grid; gap: .6rem; }
.hbk-opt { position: relative; display: block; }
.hbk-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hbk-opt span { display: block; width: 100%; text-align: left; border: 1px solid #E8E6E1; border-radius: .5rem; padding: .7rem 1rem; font-size: .875rem; font-weight: 500; color: #1A1A18; background: #fff; cursor: pointer; transition: all .15s ease; }
.hbk-opt span small { display: block; font-size: .75rem; font-weight: 400; color: #9C9890; margin-top: .1rem; }
.hbk-opt span:hover, .hbk-opt input:checked + span { border-color: #1B6B6B; background: #E8F5F5; }
.hbk-opt input:checked + span { color: #1B6B6B; }
.hbk-opt input:focus-visible + span { outline: 3px solid rgba(27,107,107,.38); outline-offset: 2px; }
.hbk-price { display: flex; align-items: center; border: 1px solid #D4D1C9; border-radius: .5rem; background: #fff; padding: 0 .9rem; max-width: 22rem; }
.hbk-price:focus-within { border-color: #1B6B6B; box-shadow: 0 0 0 3px rgba(27,107,107,.15); }
.hbk-price b { color: #9C9890; font-weight: 500; margin-right: .35rem; }
.hbk-price input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; box-shadow: none !important; padding: .8rem 0; font-size: 16px; background: transparent; }
.hbk-help { font-size: .75rem; color: #9C9890; margin: .5rem 0 0; }
.hbk-err { font-size: .8125rem; color: #C53030; margin: .5rem 0 0; }
.hbk-next { margin-top: .9rem; }
.hbk-nojs-submit { margin-top: 1rem; }
.js .hbk-nojs-submit { display: none; }
.hbk-back { display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; color: #6B6860; background: none; border: 0; padding: 0; margin: 0 0 .5rem; cursor: pointer; }
.hbk-back:hover { color: #1B6B6B; }
.hbk-progress { height: 6px; background: #E8E6E1; border-radius: 999px; overflow: hidden; }
.hbk-progress > div { height: 100%; background: #1B6B6B; border-radius: 999px; transition: width .4s ease; }

/* /check result */
.hbk-res-total { font-family: 'HBSerifF', 'Fraunces', Georgia, serif; font-size: clamp(2.25rem, 1.6rem + 2.5vw, 3rem); font-weight: 500; letter-spacing: -.02em; color: #1B6B6B; line-height: 1.05; margin: .25rem 0 .5rem; font-variant-numeric: tabular-nums; }
.hbk-table { width: 100%; border-collapse: collapse; font-size: .9375rem; margin: .75rem 0 0; }
.hbk-table td { padding: .6rem .25rem; border-bottom: 1px solid #E8E6E1; color: #6B6860; vertical-align: top; }
.hbk-table td:last-child { text-align: right; white-space: nowrap; color: #1A1A18; font-variant-numeric: tabular-nums; }
.hbk-table tr.hbk-sum td { font-weight: 700; color: #1A1A18; border-top: 2px solid #D4D1C9; border-bottom: 0; }
.hbk-table tr.hbk-sum td:last-child { color: #1B6B6B; }
.hbk-table small { display: block; font-size: .75rem; color: #9C9890; }
.hbk-check { list-style: none; margin: 0; padding: 0; }
.hbk-check li { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid #E8E6E1; font-size: .9375rem; line-height: 1.5; color: #1A1A18; margin: 0; }
.hbk-check li:last-child { border-bottom: 0; }
.hbk-check .hbk-box { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin-top: .15rem; border: 1.5px solid #B9D3D1; border-radius: 4px; background: #fff; }
.hbk-check a { color: #1B6B6B; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.hbk-check small { display: block; color: #6B6860; font-size: .8125rem; }

/* Product pages (portfolio product-page structure) */
.pk-eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #7A5A33; }
.pk-h1 { font-size: clamp(2.125rem, 1.45rem + 2.1vw, 3.375rem); line-height: 1.08; font-weight: 500; letter-spacing: -.025em; color: #1C2928; text-wrap: balance; margin: 0; }
.pk-intro { font-size: 1.0625rem; line-height: 1.55; color: #667370; }
@media (min-width: 640px) { .pk-intro { font-size: 1.125rem; } }
.pk-h2 { font-family: 'HBSerifF', 'Fraunces', Georgia, serif; font-size: 1.5rem; line-height: 1.25; font-weight: 600; letter-spacing: -.015em; color: #1C2928; margin: 0; }
@media (min-width: 640px) { .pk-h2 { font-size: 1.875rem; } }
.pk-muted { color: #667370; font-size: .9375rem; line-height: 1.55; }
.pk-link { color: #667370; text-underline-offset: 3px; }
.pk-link:hover { color: #176C69; text-decoration: underline; }
.pk-focus:focus-visible { outline: 3px solid rgba(23,108,105,.35); outline-offset: 3px; }
.pk-cover img { border-radius: 4px; border: 1px solid rgba(28,41,40,.10); box-shadow: 0 1px 2px rgba(28,41,40,.06), 0 18px 40px -22px rgba(28,41,40,.45); }
.pk-buy { background: #fff; border: 1px solid #E4E6E3; border-radius: 16px; padding: 1.375rem; box-shadow: 0 1px 2px rgba(28,41,40,.04), 0 16px 40px -28px rgba(28,41,40,.35); max-width: 36rem; }
@media (min-width: 640px) { .pk-buy { padding: 1.75rem 1.875rem; } }
.pk-buy__title { font-family: 'HBSerifF', 'Fraunces', Georgia, serif; font-size: 1.3rem; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: #1C2928; margin: 0; }
.pk-buy__size { margin: .3rem 0 1.05rem; font-size: .875rem; font-weight: 500; letter-spacing: .01em; color: #7A5A33; }
.pk-buy__price { white-space: nowrap; }
.pk-buy__thumb { float: right; width: 84px; margin: 0 0 .5rem 1rem; padding: 0; border: 0; background: none; }
.pk-buy__list { clear: both; list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; font-size: 1rem; line-height: 1.5; color: #46524F; }
.pk-buy__list li { display: flex; gap: .7rem; align-items: flex-start; margin: 0; }
.pk-buy__name { font-weight: 500; color: #1C2928; }
.pk-buy__bonus { margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid #EEF0ED; font-size: .9375rem; line-height: 1.5; color: #667370; }
.pk-buy__btn { margin-top: 1.25rem; min-height: 56px; font-size: 1.0625rem; }
.pk-buy__reassure { margin: .85rem 0 0; text-align: center; font-size: .875rem; color: #46524F; }
.pk-buy__fit { margin: .25rem 0 0; text-align: center; font-size: .8125rem; color: #667370; }
@media (max-width: 639px) { .pk-intro { font-size: 1rem; line-height: 1.5; } .pk-buy { padding: 1.25rem; } .pk-buy__size { margin-bottom: .8rem; } .pk-buy__list { gap: .4rem; font-size: .9375rem; line-height: 1.4; } .pk-buy__bonus { margin-top: .85rem; padding-top: .75rem; font-size: .875rem; } .pk-buy__btn { margin-top: 1rem; } }
@media (min-width: 1024px) { .pk-buy { padding: 1.375rem 1.625rem; } .pk-buy__list { gap: .45rem; font-size: .96875rem; line-height: 1.45; } .pk-buy__btn { margin-top: 1rem; min-height: 52px; } }
.pk-page { display: block; width: 100%; text-align: left; padding: 0; border: 0; background: none; cursor: zoom-in; font: inherit; color: inherit; }
.pk-page img { display: block; width: 100%; height: auto; border-radius: 4px; border: 1px solid #E4E6E3; background: #fff; box-shadow: 0 1px 2px rgba(28,41,40,.05), 0 10px 24px -18px rgba(28,41,40,.35); }
.pk-page__cap { display: block; margin-top: .75rem; font-size: .9375rem; line-height: 1.45; font-weight: 600; color: #1C2928; }
.pk-callout { border-left: 2px solid #B58A57; padding: .25rem 0 .25rem 1.25rem; }
.pk-callout__title { font-size: 1.0625rem; font-weight: 600; color: #1C2928; margin: 0 0 .35rem; font-family: 'DM Sans', system-ui, sans-serif; }
.pk-callout p { font-size: .9375rem; line-height: 1.6; color: #46524F; margin: 0; }
.pk-grid { display: grid; gap: .875rem; }
@media (min-width: 640px) { .pk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pk-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pk-tile { background: #fff; border: 1px solid #E4E6E3; border-radius: 14px; padding: 1.1rem 1.2rem; }
.pk-tile h3 { font-size: 1rem; font-weight: 600; color: #1C2928; margin: 0 0 .35rem; font-family: 'DM Sans', system-ui, sans-serif; }
.pk-tile p { font-size: .9rem; line-height: 1.55; color: #667370; margin: 0; }
.pk-tile ul { list-style: none; margin: 0; padding: 0; }
.pk-tile li { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; line-height: 1.5; color: #46524F; margin: .2rem 0; }
.pk-tile .pg { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #176C69; margin-bottom: .2rem; }
.pk-faq details { background: #fff; border: 1px solid #E4E6E3; border-radius: 12px; margin: 0 0 .5rem; }
.pk-faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; color: #1C2928; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.pk-faq summary::-webkit-details-marker { display: none; }
.pk-faq summary::after { content: "+"; color: #9C9890; font-weight: 400; font-size: 1.25rem; line-height: 1; }
.pk-faq details[open] summary::after { content: "\2212"; }
.pk-faq details p { margin: 0; padding: 0 1.25rem 1.1rem; font-size: .9375rem; line-height: 1.6; color: #667370; }
.pk-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; border-top: 1px solid #E4E6E3; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); padding: .625rem 1rem calc(.625rem + env(safe-area-inset-bottom, 0px)); transform: translateY(110%); transition: transform .2s ease; }
.pk-sticky.on { transform: none; }
@media (min-width: 1024px) { .pk-sticky { display: none; } }
@media (prefers-reduced-motion: reduce) { .pk-sticky { transition: none; } }
html.cc-open .pk-sticky { bottom: var(--cc-h, 88px); }
.pk-zoom { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; }
.pk-zoom::backdrop { background: rgba(15,20,20,.88); }
.pk-zoom__in { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .75rem; box-sizing: border-box; }
.pk-zoom img { max-height: 84vh; max-width: 100%; width: auto; height: auto; border-radius: 6px; background: #fff; box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); }
.pk-zoom__bar { display: flex; align-items: center; gap: .6rem; margin-top: .75rem; flex-wrap: wrap; justify-content: center; }
.pk-zoom__bar button { padding: .5rem 1rem; border-radius: 999px; background: rgba(255,255,255,.92); color: #1A1A18; font-size: .875rem; font-weight: 600; border: 0; cursor: pointer; }
.pk-zoom__cap { color: #fff; font-size: .875rem; min-width: 10rem; text-align: center; margin: 0; }
