/* Buyer and Seller Guides: the print guides (Print/*/source/*-kit.html) rendered as web pages.
   build.py prefixes every print class with "g-", so these rules never touch the rest of the site. */

.g-cover { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.g-cover-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.g-cover h1 { margin-bottom: 0.4em; }
.g-sub { font-family: var(--font-heading); font-size: var(--step-lead); line-height: 1.42; color: var(--heading); max-width: 30ch; }
.g-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.g-cover-photo { margin: 0; }
.g-cover-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.g-cover-photo figcaption { margin-top: 0.6rem; font-size: var(--step-small); color: var(--muted); }
@media (max-width: 900px) { .g-cover-grid { grid-template-columns: 1fr; } .g-cover-photo { order: -1; } }

.g-eyebrow { font-family: var(--font); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }

/* Contents */
.g-toc { background: var(--field); color: var(--on-field); padding: clamp(2.5rem, 5vw, 4rem) 0; }
.g-toc .g-toc-title { color: var(--on-field); font-size: var(--step-lead); margin-bottom: 1.25rem; }
.g-toc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0 var(--gap); counter-reset: toc; }
.g-toc li { border-top: 1px solid rgba(239, 235, 225, 0.22); }
.g-toc a { display: block; padding: 0.8rem 0; text-decoration: none; font-family: var(--font-heading); font-size: 1.05rem; line-height: 1.3; }
.g-toc a span { display: block; font-family: var(--font); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre); margin-bottom: 0.25rem; }
.g-toc a:hover { color: #fff; text-decoration: underline; }
.g-toc :focus-visible { outline-color: #f6f1e4; }

/* Sections */
.g-sec { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.g-sec.g-tint { background: var(--wheat); }
.g-sec .wrap { max-width: 1240px; }
.g-sec h2 { font-size: clamp(1.9rem, 1.4rem + 1.9vw, 3rem); max-width: 22ch; }
.g-sec h3 { font-size: 1.3rem; margin-bottom: 0.45em; }
.g-sec h3:not(:first-child) { margin-top: 1.6rem; }
.g-rule { height: 2px; width: 4.5rem; background: var(--ochre); margin: 1.4rem 0 1.8rem; }
.g-lead { font-family: var(--font-heading); font-size: var(--step-lead); line-height: 1.45; color: var(--heading); max-width: 46ch; }
.g-muted { color: var(--muted); font-size: var(--step-small); }
.g-sec b, .g-sec strong { font-weight: 600; color: var(--heading); }
.g-sec ul { padding: 0; margin: 0; }

.g-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 2rem; align-items: start; }
.g-inner > .g-cols:first-of-type { margin-top: 0; }
.g-cols > * { min-width: 0; }
@media (max-width: 800px) { .g-cols { grid-template-columns: 1fr; } }

.g-panel { background: var(--surface); padding: clamp(1.25rem, 3vw, 2rem); margin-top: 2rem; }
.g-cols > .g-panel { margin-top: 0; }
.g-tint .g-panel { background: var(--bg); }
.g-panel.g-field, .g-tint .g-panel.g-field { background: var(--field); color: var(--on-field); }
.g-field h3, .g-field b { color: var(--on-field); }
.g-field :focus-visible { outline-color: #f6f1e4; }
.g-panel .g-cols { margin-top: 0.5rem; gap: 0 2rem; }
.g-note { border-left: 2px solid var(--accent); padding: 0.2rem 0 0.2rem 1rem; color: var(--muted); font-size: var(--step-small); margin-top: 1.5rem; }

.g-ticks, .g-dots { list-style: none; }
.g-ticks li, .g-dots li { position: relative; padding-left: 1.6rem; margin: 0; max-width: 60ch; }
.g-ticks li + li, .g-dots li + li { margin-top: 0.55rem; }
.g-ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.6rem; height: 0.6rem; border: 1.5px solid var(--accent); }
.g-dots li::before { content: ""; position: absolute; left: 0.15rem; top: 0.6em; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--ochre); }

.g-q { font-family: var(--font-heading); font-style: italic; font-size: 1.2rem; line-height: 1.4; color: var(--heading); margin-bottom: 0.6rem; }

.g-photo { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; margin-top: 2rem; }
.g-sec .wrap > .g-photo:first-child { margin: 0 0 clamp(2rem, 5vw, 3.5rem); }
.g-cols .g-photo { aspect-ratio: 16 / 10; margin-top: 0; }

/* Welcome letter */
.g-welcome .g-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.g-portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.g-side p { font-size: var(--step-small); color: var(--muted); margin-top: 1rem; }
.g-signoff { margin-top: 2rem; }
.g-name { font-family: var(--font-heading); font-style: italic; font-size: 1.6rem; color: var(--heading); margin: 0; }
.g-signoff .g-role { font-size: var(--step-small); color: var(--muted); }
@media (max-width: 800px) { .g-welcome .g-inner { grid-template-columns: 1fr; } .g-side { max-width: 20rem; } }

/* Team */
.g-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3.5rem); margin-top: 2.5rem; }
.g-person { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.g-person img { width: 8rem; aspect-ratio: 4 / 5; object-fit: cover; }
.g-person h3 { margin: 0 0 0.2rem; }
.g-person .g-role { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem; }
.g-contact { font-weight: 500; margin-top: 0.8rem; }
@media (max-width: 900px) { .g-people { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .g-person { grid-template-columns: 1fr; } }

/* Principles */
.g-principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem clamp(1.5rem, 4vw, 3rem); margin-top: 2.5rem; }
.g-principle { border-top: 2px solid var(--ochre); padding-top: 1rem; }
.g-principle .g-n { font-family: var(--font-heading); color: var(--accent); margin-bottom: 0.25rem; }
.g-principle h3 { margin: 0 0 0.4rem; }
@media (max-width: 700px) { .g-principles { grid-template-columns: 1fr; } }

/* Steps */
.g-steps { margin-top: 2rem; }
.g-step { display: grid; grid-template-columns: 4rem minmax(0, 16rem) minmax(0, 1fr); gap: 0.25rem 1.5rem; padding: 1.1rem 0; border-top: 1px solid rgba(34, 48, 30, 0.18); align-items: baseline; }
.g-step:last-child { border-bottom: 1px solid rgba(34, 48, 30, 0.18); }
.g-step .g-n { font-family: var(--font-heading); font-size: 1.9rem; line-height: 1; color: var(--accent); }
.g-step h3, .g-sec .g-step h3:not(:first-child) { margin: 0; font-size: 1.15rem; }
.g-step p { margin: 0; }
@media (max-width: 700px) { .g-step { grid-template-columns: 3rem minmax(0, 1fr); } .g-step p { grid-column: 2; } }

/* Tables */
.g-terms, .g-net { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.g-terms td, .g-net td { padding: 0.75rem 0; border-top: 1px solid rgba(34, 48, 30, 0.18); vertical-align: top; }
.g-terms td:first-child { width: 34%; font-weight: 600; color: var(--heading); padding-right: 1rem; }
.g-terms tr:last-child td, .g-net tr:last-child td { border-bottom: 1px solid rgba(34, 48, 30, 0.18); }
.g-net td.g-sign { width: 2.25rem; font-family: var(--font-heading); font-size: 1.2rem; color: var(--accent); line-height: 1.3; }
.g-net tr.g-total td { border-top: 2px solid var(--heading); border-bottom: 2px solid var(--heading); font-weight: 600; color: var(--heading); }
.g-net .g-sub { font-family: var(--font); font-size: var(--step-small); color: var(--muted); max-width: none; }

/* Communities */
.g-towns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 4vw, 3rem); margin-top: 2.5rem; }
.g-town img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 1rem; }
@media (max-width: 700px) { .g-towns { grid-template-columns: 1fr; } }

/* Reviews and questions */
.g-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 2rem; }
.g-review { background: var(--surface); padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.g-tint .g-review { background: var(--bg); }
.g-review p:first-child { font-family: var(--font-heading); font-style: italic; font-size: 1.1rem; line-height: 1.5; color: var(--heading); }
.g-by { margin-top: 1rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.g-inner > .g-eyebrow:not(:first-child) { margin-top: 3rem; }
.g-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem clamp(1.5rem, 4vw, 3rem); }
.g-faq h3 { font-size: 1.15rem; }
@media (max-width: 900px) { .g-reviews { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .g-faq { grid-template-columns: 1fr; } }

/* Next step */
.g-back { background: var(--field); color: var(--on-field); padding: clamp(4rem, 9vw, 8rem) 0; }
.g-back .wrap { max-width: 1240px; }
.g-back h2 { color: var(--on-field); }
.g-back .g-eyebrow { color: var(--ochre); }
.g-back .g-lead { color: var(--on-field); }
.g-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 18rem)); gap: 2rem; margin-top: 2.5rem; }
.g-card h3 { color: var(--on-field); margin-bottom: 0.2rem; }
.g-card .g-role { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; color: var(--ochre); margin-bottom: 0.6rem; }
.g-back a { color: var(--on-field); }
.g-back a:hover { color: #fff; }
.g-back .btn-light { color: var(--ink); }
.g-back .btn-light:hover { color: var(--accent); }
.g-back :focus-visible { outline-color: #f6f1e4; }
.g-pdf { font-weight: 600; text-decoration: underline; }
.g-fine { margin-top: 3rem; font-size: var(--step-small); color: var(--on-field-muted); max-width: 80ch; }
@media (max-width: 560px) { .g-cards { grid-template-columns: 1fr; } }
