/* Guides. Only the parts the landing page doesn't already have.
   Every color, font and shadow comes from the landing's own tokens in
   /realtor-assets/style.*.css, so these pages read as the same site. */

/* ---------- Page top: the landing's dusk sky, without the house ---------- */
.g-hero { position: relative; isolation: isolate; overflow: hidden; padding: 96px 0 70px; color: var(--stone);
  background: radial-gradient(130% 150% at 100% 100%, #e2b8a2 0%, #bd8a94 14%, #8a6480 30%, #5a3c59 48%, #3b2540 68%, #281a2c 100%); }
.g-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .22; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: #d4c4d3; }
.crumbs a { color: #f1e8f0; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-hidden] { opacity: .6; }
.g-hero h1 { margin-top: 18px; max-width: 15em; color: #fff; font-size: 40px; line-height: 1.03; }
.g-hero h1 em { font-style: italic; letter-spacing: -0.008em; color: var(--lav-2); }
.g-hero .lede { margin-top: 16px; max-width: 35em; font-size: 17px; line-height: 1.5; color: #e4dae2; }
.g-hero .lede b { color: #fff; font-weight: 600; }
.g-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: 13.5px; color: #cdbecc; }
.g-meta b { color: #fff; font-weight: 600; }
.g-meta span { display: inline-flex; align-items: center; gap: 7px; }
.g-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lav); }
@media (min-width: 900px) {
  .g-hero { padding: 150px 0 100px; }
  .g-hero h1 { font-size: 62px; }
  .g-hero .lede { font-size: 19.5px; }
}

/* ---------- Body ---------- */
.g-body { padding: 40px 0 56px; }
.g-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .g-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; } .g-body { padding: 64px 0 88px; } }
.g-article { max-width: 44rem; min-width: 0; }
.g-article > * + * { margin-top: 18px; }
.g-article h2 { margin-top: 52px; font-size: 30px; line-height: 1.08; scroll-margin-top: 100px; }
.g-article h2 + * { margin-top: 16px; }
.g-article h3 { margin-top: 30px; }
.g-article p, .g-article li { color: var(--ink-2); font-size: 17.5px; line-height: 1.62; }
.g-article p b, .g-article li b, .g-article strong { color: var(--ink); font-weight: 600; }
.g-article a { color: var(--plum); font-weight: 500; text-underline-offset: 3px; }
.g-article .dots li { position: relative; padding-left: 24px; }
.g-article .dots li + li { margin-top: 10px; }
.g-article .dots li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--lav); box-shadow: inset 0 0 0 1px rgba(76, 48, 76, .25); }
.g-article ol.nums { counter-reset: n; }
.g-article ol.nums li { position: relative; padding-left: 42px; counter-increment: n; }
.g-article ol.nums li + li { margin-top: 14px; }
.g-article ol.nums li::before { content: counter(n); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--plum); color: var(--stone-2); font: 600 14px/1 var(--sans); }
@media (min-width: 900px) { .g-article h2 { font-size: 37px; } }

/* The short answer: the landing's white card */
.g-answer { padding: 22px 22px 24px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(35, 22, 35, .05); }
.g-answer .kicker { margin-bottom: 10px; }
.g-answer p { color: var(--ink); font-size: 18.5px; line-height: 1.55; }
.g-answer p + p { margin-top: 10px; }
@media (min-width: 900px) { .g-answer { padding: 30px 32px 32px; } .g-answer p { font-size: 20px; } }

/* Contract text, quoted word for word */
.g-quote { padding: 18px 20px 16px; border-radius: 18px; background: var(--lav-mist); box-shadow: inset 3px 0 0 var(--lav); }
.g-quote blockquote { font: 400 17.5px/1.5 var(--serif); color: var(--ink); }
.g-quote figcaption { margin-top: 10px; color: var(--ink-3); font-size: 13.5px; font-weight: 600; letter-spacing: .01em; }

/* Heads-up box */
.g-note { padding: 16px 18px; border-radius: 18px; background: var(--stone-3); box-shadow: inset 0 0 0 1px var(--stone-line); }
.g-note p { font-size: 16.5px; }
.g-note b:first-child { color: var(--plum); }

/* A run of days, Effective Date to the last option day */
.g-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; }
.g-days li { padding: 10px 8px 9px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1px rgba(35, 22, 35, .08); text-align: center; line-height: 1.2; }
.g-days li + li { margin-top: 0; }
.g-days .dw { display: block; color: var(--ink-3); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.g-days .dd { display: block; margin-top: 3px; color: var(--ink); font: 400 22px/1.1 var(--serif); }
.g-days .dn { display: block; margin-top: 4px; color: var(--ink-3); font-size: 12px; }
.g-days .eff { background: var(--stone-3); }
.g-days .wkd { background: var(--lav-mist); }
.g-days .hol { background: #f6e3df; box-shadow: inset 0 0 0 1px rgba(163, 53, 44, .25); }
.g-days .end { background: var(--plum); box-shadow: none; }
.g-days .end .dw, .g-days .end .dn { color: var(--lav-2); }
.g-days .end .dd { color: #fff; }
@media (min-width: 620px) { .g-days { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.g-days-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px !important; color: var(--ink-3); font-size: 13.5px; }
.g-days-key i { display: inline-block; width: 11px; height: 11px; margin-right: 6px; border-radius: 4px; vertical-align: -1px; }

/* A Cevano text thread, the landing's iMessage look */
.g-thread { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px 20px; border-radius: 26px; background: var(--white); box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(35, 22, 35, .05); font-family: var(--ios); }
.g-thread > * + * { margin-top: 0; }
.g-thread .stamp { align-self: center; margin-bottom: 4px; color: var(--ios-label); font-size: 12px; }
.g-thread .stamp b { font-weight: 600; }
.bub { max-width: 84%; padding: 9px 14px; border-radius: 20px; font-size: 16px; line-height: 1.36; letter-spacing: -0.01em; }
.bub.r { align-self: flex-start; background: var(--ios-gray); color: #000; }
.bub.s { align-self: flex-end; background: var(--ios-bubble); color: #fff; }
.bub span { display: block; }
.bub .gap { height: 8px; }
.g-thread .cap { align-self: center; margin-top: 8px; color: var(--ink-3); font: 500 13px/1.4 var(--sans); text-align: center; }

/* Side column */
.g-aside { display: grid; gap: 18px; align-content: start; }
@media (min-width: 1000px) { .g-aside { position: sticky; top: 100px; } }
.g-toc { padding: 18px 20px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(35, 22, 35, .05); }
.g-toc p { color: var(--ink-3); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.g-toc ol { margin-top: 8px; }
.g-toc a { display: block; padding: 6px 0; color: var(--ink-2); font-size: 15px; line-height: 1.35; text-decoration: none; }
.g-toc a:hover { color: var(--plum); }
.g-pitch { padding: 22px 20px; border-radius: 22px; color: var(--stone); background: radial-gradient(120% 120% at 100% 100%, #8a6480 0%, #5a3c59 40%, #2f1d2f 100%); box-shadow: var(--shadow-2); }
.g-pitch h2 { color: #fff; font-size: 25px; line-height: 1.08; }
.g-pitch h2 em { font-style: italic; color: var(--lav-2); }
.g-pitch p { margin-top: 10px; color: #e4dae2; font-size: 15.5px; line-height: 1.5; }
.g-pitch .btn { margin-top: 16px; width: 100%; }

/* Related and hub cards */
.g-more { padding: 48px 0 56px; background: var(--stone-3); box-shadow: inset 0 1px 0 var(--stone-line); }
.g-cards { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 700px) { .g-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .g-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.g-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 22px; border-radius: 22px; background: var(--white); color: inherit; text-decoration: none; box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(35, 22, 35, .05); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
a.g-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(76, 48, 76, .18); }
.g-card .t { color: var(--plum); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.g-card h3 { font: 400 23px/1.12 var(--serif); letter-spacing: -0.012em; }
.g-card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.g-card .go { margin-top: auto; padding-top: 6px; color: var(--plum); font-size: 15px; font-weight: 600; }
.g-card.soon { background: transparent; box-shadow: inset 0 0 0 1px var(--stone-line); }
.g-card.soon h3 { color: var(--ink-2); }
.g-card.soon .t { color: var(--ink-3); }

/* Hub clusters */
.g-cluster + .g-cluster { margin-top: 56px; }
.g-cluster > p { max-width: 40em; margin-top: 10px; color: var(--ink-2); font-size: 17px; }

/* ---------- Calculator ---------- */
.calc { display: grid; gap: 18px; padding: 20px; border-radius: 26px; background: var(--white); box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(35, 22, 35, .05); }
.calc > * + * { margin-top: 0; }
@media (min-width: 760px) { .calc { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 28px; } }
.calc-form { display: grid; gap: 16px; align-content: start; }
.calc-form label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 15px; font-weight: 600; }
.calc-form input { width: 100%; min-height: 52px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--stone-2); box-shadow: inset 0 0 0 1px var(--stone-line); font-size: 17px; }
.calc-form input:focus { outline: 3px solid var(--plum); outline-offset: 1px; }
.calc-form .hint { margin-top: 6px; color: var(--ink-3); font-size: 13.5px; line-height: 1.4; }
.calc-tries { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-tries button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--lav-mist); color: var(--plum); font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(76, 48, 76, .14); }
.calc-tries button:hover { background: var(--lav-soft); }
.calc-out { display: grid; gap: 14px; align-content: start; }
.calc-out > * + * { margin-top: 0; }
.calc-big { padding: 18px 20px; border-radius: 20px; background: var(--plum); color: var(--stone); }
.calc-big .k { color: var(--lav-2); font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.calc-big .v { margin-top: 6px; color: #fff; font: 400 32px/1.08 var(--serif); letter-spacing: -0.015em; }
.calc-big .s { margin-top: 8px; color: #e4dae2; font-size: 15.5px; line-height: 1.45; }
.calc-row { padding: 14px 16px; border-radius: 16px; background: var(--stone-3); box-shadow: inset 0 0 0 1px var(--stone-line); }
.calc-row .k { color: var(--ink-3); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.calc-row .v { margin-top: 4px; color: var(--ink); font-size: 18px; font-weight: 600; }
.calc-row .s { margin-top: 4px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.calc-flag { padding: 14px 16px; border-radius: 16px; background: #f8e9e6; box-shadow: inset 0 0 0 1px rgba(163, 53, 44, .22); color: #6e231d; font-size: 15.5px; line-height: 1.45; }
.calc-flag b { color: var(--alert); }
.calc-src { color: var(--ink-3); font-size: 13.5px; line-height: 1.45; }
.calc-err { color: var(--alert); font-size: 15px; font-weight: 600; }


/* A note from the field: the one opinionated aside each page carries */
.g-field { position: relative; padding: 18px 20px 18px 22px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow-1), inset 3px 0 0 var(--plum); }
.g-field .kicker { margin-bottom: 6px; }
.g-field p { font-size: 17px; }
.g-field p + p { margin-top: 8px; }

/* Who checked the page, and when */
.g-byline { margin-top: 40px !important; padding-top: 16px; border-top: 1px solid var(--stone-line); color: var(--ink-3) !important; font-size: 14.5px !important; }
.g-byline a { color: var(--plum); }
.g-placeholder { padding: 1px 6px; border-radius: 6px; background: #f6e3df; color: #6e231d; font-weight: 600; }
.g-checked { margin-top: 14px !important; }

/* Deadline tables: which clock is open */
.g-table { overflow-x: auto; border-radius: 18px; background: var(--white); box-shadow: var(--shadow-1), inset 0 0 0 1px rgba(35, 22, 35, .05); }
.g-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.g-table th, .g-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--stone-line); }
.g-table th { color: var(--ink-3); font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.g-table tr:last-child td { border-bottom: 0; }
.g-table td b { color: var(--ink); }
.g-table td { color: var(--ink-2); }

/* ---------- Draft marker (mock only, never shipped) ---------- */
.draft-pill { position: fixed; right: 12px; bottom: 12px; z-index: 80; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: #1d1220; color: #f1e8f0; font: 600 13px/1 var(--sans); text-decoration: none; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.draft-pill i { width: 8px; height: 8px; border-radius: 50%; background: #f0b44c; }

/* ---------- Review page ---------- */
.rv pre { overflow-x: auto; padding: 16px 18px; border-radius: 16px; background: #1d1220; color: #efe6ee; font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.rv table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rv th, .rv td { padding: 10px 8px; border-bottom: 1px solid var(--stone-line); text-align: left; vertical-align: top; }
.rv th { color: var(--ink-3); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; }
.rv td code { font-size: 13.5px; }
.rv .tbl { overflow-x: auto; }

/* ---------- Source link under each form quote ---------- */
.g-src { display: inline-block; margin-top: 6px; color: var(--ink-2); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.g-src:hover { color: var(--ink); }

/* ---------- Phones: the join button stays in reach ----------
   The landing hides the header button under 900 px. On a guide, with no
   hero button to scroll past, show it, and add a bar at the bottom once
   the reader is into the page. */
@media (max-width: 899px) {
  .nav .btn { display: inline-flex; margin-left: 4px; padding-left: 14px; padding-right: 14px; }
  .nav-links a.text:not(.wide) { padding-left: 10px; padding-right: 10px; }
  .g-stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(35, 22, 35, .92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
  .g-stickybar .btn { width: 100%; max-width: 420px; justify-content: center; }
  body.g-scrolled .g-stickybar { transform: none; visibility: visible; transition: transform .25s ease; }
  body.g-scrolled.g-at-cta .g-stickybar { transform: translateY(110%); visibility: hidden; }
}
@media (min-width: 900px) { .g-stickybar { display: none; } }

/* ---------- Calculator: what to do with the result ---------- */
.calc-next { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.calc-next[hidden] { display: none; }
.g-formlink { margin-top: 18px; }
