/* Guides (articles). Prefix g- keeps these separate from page styles in pages.css. */

/* ---------- article header ---------- */
.g-hero { padding: 36px 0 40px; }
.g-hero .wrap { max-width: 1080px; }
.g-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); max-width: 20ch; margin: 6px 0 20px; }
.g-standfirst { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--graphite); max-width: 62ch; margin: 0 0 22px; }
.g-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: .86rem; color: var(--olive); }
.g-meta span { display: inline-flex; align-items: center; gap: 7px; }
.g-meta svg { width: 16px; height: 16px; color: var(--bronze); }
.g-cover { margin: 34px auto 0; max-width: 1080px; padding: 0 var(--gutter); }
.g-cover .ph { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 7; background: var(--sand); }
.g-cover img { width: 100%; height: 100%; object-fit: cover; }
.g-cover figcaption { font-size: .8rem; color: var(--olive); margin-top: 8px; }
@media (max-width: 699px) { .g-cover .ph { aspect-ratio: 4 / 3; border-radius: 12px; } }

/* ---------- layout ---------- */
.g-layout { display: grid; gap: 32px; max-width: 1080px; margin: 0 auto; padding: 48px var(--gutter) 96px; }
@media (min-width: 1000px) { .g-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 64px; padding-top: 64px; } }
.g-toc { font-size: .9rem; }
.g-toc-inner { position: sticky; top: calc(var(--header-h) + 28px); }
.g-toc p { font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--olive); margin: 0 0 12px; }
.g-toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--taupe); }
.g-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--graphite); text-decoration: none; line-height: 1.35; }
.g-toc a:hover { color: var(--charcoal); }
.g-toc a.active { color: var(--charcoal); border-left-color: var(--bronze-deep); font-weight: 600; }
.g-toc .g-toc-cta { margin-top: 22px; padding: 16px; background: var(--white); border: 1px solid var(--linen); border-radius: 12px; font-size: .86rem; }
.g-toc .g-toc-cta b { display: block; color: var(--charcoal); font: 400 1.1rem/1.2 var(--serif); margin-bottom: 6px; }
@media (max-width: 999px) {
  .g-toc-inner { position: static; }
  .g-toc details { border: 1px solid var(--taupe); border-radius: 12px; padding: 0 16px; background: var(--white); }
  .g-toc summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--charcoal); }
  .g-toc details ol { margin-bottom: 14px; }
  .g-toc .g-toc-cta { display: none; }
}
@media (min-width: 1000px) { .g-toc details > summary { display: none; } .g-toc details { display: block; } }

/* ---------- article body ---------- */
.g-body { max-width: 720px; min-width: 0; color: var(--graphite); font-size: 1.06rem; line-height: 1.78; }
.g-body > * + * { margin-top: 1.1em; }
.g-body h2 { font-size: clamp(1.75rem, 3vw, 2.3rem); line-height: 1.15; margin-top: 2.2em; scroll-margin-top: calc(var(--header-h) + 20px); }
.g-body h3 { font-size: 1.32rem; margin-top: 1.8em; }
.g-body h2 + *, .g-body h3 + * { margin-top: .7em; }
.g-body p { margin: 0; }
.g-body strong { color: var(--charcoal); }
.g-body ul, .g-body ol { padding-left: 1.3em; }
.g-body li { margin: .35em 0; }
.g-body li::marker { color: var(--bronze); }
.g-body a { font-weight: 500; }
.g-body figure { margin: 2em 0; }
.g-body figure .ph { border-radius: 12px; overflow: hidden; }
.g-body figure img { width: 100%; }
.g-body figcaption { font-size: .82rem; color: var(--olive); margin-top: 8px; line-height: 1.5; }

/* "In short" summary */
.g-takeaways { background: var(--white); border: 1px solid var(--linen); border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow); }
.g-takeaways h2 { font: 600 .74rem/1 var(--sans) !important; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze-deep); margin: 0 0 12px !important; }
.g-takeaways ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.g-takeaways li { margin: 0; padding-left: 26px; position: relative; color: var(--charcoal); line-height: 1.55; }
.g-takeaways li::before { content: ''; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border: 1px solid var(--bronze); border-radius: 50%; }

/* Good to know / warning */
.g-callout { border-left: 3px solid var(--bronze); background: var(--linen); border-radius: 0 12px 12px 0; padding: 16px 20px; font-size: .98rem; line-height: 1.65; }
.g-callout b:first-child { display: block; color: var(--charcoal); margin-bottom: 4px; }
.g-callout.warn { border-left-color: #A34A2A; background: #F6E9E1; }

/* In-article call to action */
.g-cta { display: grid; gap: 16px; align-items: center; background: var(--charcoal); color: #D9D2C6; border-radius: 16px; padding: 26px 26px; margin: 2.2em 0 !important; }
.g-cta b { display: block; color: var(--ivory); font: 400 1.45rem/1.2 var(--serif); margin-bottom: 6px; }
.g-cta p { font-size: .95rem; line-height: 1.55; }
.g-cta .btn { justify-self: start; }
@media (min-width: 700px) { .g-cta { grid-template-columns: 1fr auto; padding: 28px 32px; } }

/* Tables (comparisons, durations, prices) */
.g-table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.5; margin: 1.6em 0 !important; }
.g-table caption { text-align: left; font: 600 .74rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--olive); padding: 14px 12px 12px; }
.g-table th { text-align: left; font-weight: 600; color: var(--charcoal); background: var(--linen); padding: 11px 12px; vertical-align: bottom; }
.g-table td { padding: 11px 12px; border-bottom: 1px solid var(--linen); vertical-align: top; }
.g-table tr:last-child td { border-bottom: 0; }
.g-table td:first-child { color: var(--charcoal); font-weight: 500; }
.g-table .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--linen); border-radius: 12px; background: var(--white); }
.g-table-wrap .g-table { margin: 0 !important; min-width: 520px; }

/* Phase timeline */
.g-steps { list-style: none; padding: 0 !important; margin: 1.6em 0 !important; position: relative; }
.g-steps::before { content: ''; position: absolute; left: 24px; top: 8px; bottom: 8px; width: 1px; background: var(--taupe); }
.g-steps li { position: relative; padding: 0 0 26px 64px; margin: 0; }
.g-steps .when { position: absolute; left: 0; top: 0; width: 50px; height: 50px; border: 1px solid var(--bronze); border-radius: 50%; background: var(--ivory); display: grid; place-items: center; font: 600 .66rem/1.1 var(--sans); text-align: center; color: var(--bronze-deep); letter-spacing: .02em; }
.g-steps b { display: block; color: var(--charcoal); font: 400 1.22rem/1.25 var(--serif); margin-bottom: 4px; }
.g-steps p { font-size: .98rem; line-height: 1.65; }

/* Printable checklist */
.g-check { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.g-check li { margin: 0; display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 14px 16px; background: var(--white); border: 1px solid var(--linen); border-radius: 12px; line-height: 1.55; }
.g-check li::before { content: ''; width: 20px; height: 20px; border: 1.5px solid var(--bronze); border-radius: 5px; margin-top: 3px; }
.g-check b { color: var(--charcoal); }

/* Two-option comparison cards */
.g-compare { display: grid; gap: 14px; margin: 1.6em 0 !important; }
@media (min-width: 640px) { .g-compare { grid-template-columns: 1fr 1fr; } }
.g-compare > div { background: var(--white); border: 1px solid var(--linen); border-radius: 14px; padding: 22px; font-size: .96rem; line-height: 1.6; }
.g-compare h3 { margin: 0 0 10px !important; font-size: 1.3rem; }
.g-compare ul { padding-left: 1.1em; margin: 0; }

/* Article footer */
.g-updated { font-size: .86rem; color: var(--olive); border-top: 1px solid var(--taupe); padding-top: 18px; margin-top: 2.6em !important; }
.g-faq { margin-top: 2.4em !important; }
.g-faq details { background: var(--white); border: 1px solid var(--linen); border-radius: 12px; padding: 0 18px; margin-top: 10px; }
.g-faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--charcoal); list-style: none; display: flex; justify-content: space-between; gap: 14px; line-height: 1.4; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: '+'; color: var(--bronze-deep); font-size: 1.3rem; line-height: 1; flex: none; }
.g-faq details[open] summary::after { content: '–'; }
.g-faq details p { margin: 0 0 16px; font-size: .98rem; line-height: 1.7; }

/* Guides hub */
.g-hub-feature { display: grid; gap: 0; border-radius: 18px; overflow: hidden; background: var(--white); border: 1px solid var(--linen); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
@media (min-width: 900px) { .g-hub-feature { grid-template-columns: 1.1fr 1fr; } }
.g-hub-feature .ph { aspect-ratio: 16 / 10; overflow: hidden; }
.g-hub-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.g-hub-feature:hover img { transform: scale(1.03); }
.g-hub-feature .txt { padding: 30px 30px 32px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.g-hub-feature h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.g-hub-grid { display: grid; gap: 16px; margin-top: 18px; }
@media (min-width: 700px) { .g-hub-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .g-hub-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .g-hub-grid { grid-template-columns: repeat(4, 1fr); } }
.g-hub-card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--white); border: 1px solid var(--linen); text-decoration: none; color: var(--graphite); transition: border-color .2s, transform .2s; }
.g-hub-card:hover { border-color: var(--bronze); transform: translateY(-2px); }
.g-hub-card .ph { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand); }
.g-hub-card img { width: 100%; height: 100%; object-fit: cover; }
.g-hub-card .txt { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.g-hub-card .cat { font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--olive); }
.g-hub-card h3 { font-size: 1.32rem; }
.g-hub-card p { margin: 0; font-size: .92rem; }
.g-hub-card .link-arrow { margin-top: auto; align-self: flex-start; }

@media print {
  .site-header, .site-footer, .g-toc, .g-cta, .mobile-bar, .draft-note, .cta-band { display: none !important; }
  .g-layout { display: block; padding: 0; }
  .g-check li { break-inside: avoid; }
}
