/* DateTimeHQ guides. Loaded on guide pages only. Builds on style.css tokens. */
.guide { max-width: 46rem; }
.guide h1 { margin-bottom: .6rem; }
.guide h2 { margin-top: 0; }
.guide p, .guide li { color: var(--ink-2); }
.guide .g-section, .guide .g-body { margin-top: 2.5rem; scroll-margin-top: 1rem; }
.guide .g-section > h2, .guide .g-body > h2 { margin-bottom: .6rem; }
.g-byline { margin: 0 0 1.5rem; font-size: .95rem; color: var(--muted); }
.g-byline a { color: var(--muted); }
.g-small-h { font-size: .8rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.g-label { margin: 0 0 .4rem; font-size: .8rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--red-deep); }

/* Answer box and key points */
.g-answer { background: var(--paper); border: 1px solid var(--rule); border-left: 5px solid var(--red); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 0 0 1.5rem; }
.g-answer-text { margin: 0; font-size: 1.18rem; line-height: 1.55; color: var(--ink); font-weight: 520; }
.g-key { margin: 0 0 1.75rem; }
.g-key ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; counter-reset: key; }
.g-key li { counter-increment: key; position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: .85rem 1rem .85rem 3rem; font-size: .975rem; line-height: 1.45; color: var(--ink); }
.g-key li::before { content: counter(key); position: absolute; left: .85rem; top: .8rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 750; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.g-key li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 600px) { .g-key ul { grid-template-columns: 1fr; } }

/* Table of contents */
.g-toc { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1rem; }
.g-toc-h { font-size: .8rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 0 .4rem; }
.g-toc ol { margin: 0; padding-left: 1.25rem; columns: 2; column-gap: 2rem; }
.g-toc li { break-inside: avoid; padding: .15rem 0; }
.g-toc a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: .2em; }
.g-toc a:hover { text-decoration-color: var(--red); }
@media (max-width: 600px) { .g-toc ol { columns: 1; } }

/* Interactive blocks */
.g-block { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.5rem); margin: 1.5rem 0; }
.g-block h2, .g-block h3 { margin: 0 0 .6rem; font-size: 1.25rem; }
.g-block > p:last-child { margin-bottom: 0; }
.g-trytool { background: var(--ink); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 2.5rem 0 0; color: #fff; }
.g-trytool p { color: #DDE3EF; margin: 0 0 .5rem; }
.g-trytool .g-label { color: #FF8478; }
.g-trytool-name { font-size: 1.35rem; font-weight: 750; }
.g-trytool-name a { color: #fff; }
.g-trytool .btn { background: #fff; color: var(--ink); border-color: #fff; display: inline-block; text-decoration: none; line-height: 1.8; margin-top: .4rem; }
.g-trytool .btn:hover { background: var(--wash); color: var(--ink); }
.g-callout { border-radius: var(--radius); padding: .85rem 1.1rem; margin: 1.25rem 0; border: 1px solid var(--rule); background: #F7F9FC; }
.g-callout p { margin: 0; }
.g-callout-title { font-weight: 750; color: var(--ink) !important; font-size: .95rem; }
.g-callout-legal, .g-callout-medical, .g-callout-warning { background: #FDF3F2; border-color: #F0C6C3; }
.g-callout-tip { background: #EEF6F0; border-color: #BEE3C7; }

/* Mini calculator panel (embedded in a guide) */
.g-calc .g-calc-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end; }
.g-calc .field { flex: 1 1 8rem; }
.g-calc .field.wide { flex: 2 1 12rem; }
.g-calc-out { margin: 1rem 0 0; padding: .85rem 1rem; background: var(--wash); border-radius: 8px; font-size: 1.1rem; color: var(--ink); min-height: 3.4rem; }
.g-calc-out strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.g-calc-out .sub { display: block; font-size: .95rem; color: var(--muted); margin-top: .15rem; }
.g-calc h3 + p { margin-top: 0; }
.g-calc .g-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 640px) { .g-calc .g-cols { grid-template-columns: 1fr; } }

/* Checklist */
.g-check-list { list-style: none; margin: 0; padding: 0; }
.g-check-list li { padding: .45rem 0; border-bottom: 1px solid var(--wash); }
.g-check-list label { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; color: var(--ink); }
.g-check-list input { flex: none; width: 1.3rem; height: 1.3rem; margin-top: .15rem; accent-color: var(--red); }
.g-check-list input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.g-check-bar { height: .5rem; background: var(--wash); border-radius: 999px; overflow: hidden; margin: .25rem 0 .75rem; }
.g-check-fill { display: block; height: 100%; width: var(--p, 0%); background: var(--red); transition: width .2s ease; }
.g-check-prog { margin: .75rem 0 0; font-weight: 650; color: var(--ink) !important; }
.g-check-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.g-small-btn { min-height: 2.5rem; padding: .35rem .9rem; font-size: .95rem; }

/* Quiz */
.g-qs { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.g-q { counter-increment: q; padding: 1.1rem 0; border-top: 1px solid var(--wash); }
.g-q:first-child { border-top: 0; padding-top: .25rem; }
.g-q-text { margin: 0 0 .6rem; font-weight: 650; color: var(--ink) !important; }
.g-q-text::before { content: counter(q) ". "; color: var(--red-deep); }
.g-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.g-opts li { padding: 0; }
.g-quiz:not(.is-js) .g-opts li { padding: .3rem 0 .3rem 2.2rem; position: relative; }
.g-quiz:not(.is-js) .g-opts li::before { content: attr(data-letter); position: absolute; left: 0; font-weight: 750; color: var(--muted); }
.g-opt { display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--field); border-radius: 8px; padding: .6rem .8rem; min-height: 3rem; cursor: pointer; }
.g-opt:hover:not(:disabled) { border-color: var(--ink-2); background: var(--wash); }
.g-opt:disabled { cursor: default; }
.g-opt-key { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--wash); display: flex; align-items: center; justify-content: center; font-weight: 750; font-size: .9rem; }
.g-opt-text { flex: 1; }
.g-mark { flex: none; font-size: .8rem; font-weight: 750; letter-spacing: .02em; text-transform: uppercase; }
.g-opt.is-right { border-color: #2C8A4B; background: #EAF6EE; }
.g-opt.is-right .g-mark { color: #1E6B3A; }
.g-opt.is-wrong { border-color: var(--red); background: #FBEAE9; }
.g-opt.is-wrong .g-mark { color: var(--red-deep); }
.g-fb { margin: .7rem 0 0; padding: .7rem .9rem; border-radius: 8px; font-size: .975rem; }
.g-fb[hidden] { display: none; }
.g-fb.ok { background: #EAF6EE; color: #1E4E31 !important; }
.g-fb.no { background: #FBEAE9; color: #6E1D18 !important; }
.g-q-answer { margin-top: .6rem; }
.g-q-answer[hidden] { display: none; }
.g-q-answer summary { font-weight: 650; cursor: pointer; }
.g-quiz-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: .5rem; }
.g-score { margin: 0; font-weight: 750; font-size: 1.15rem; color: var(--ink) !important; }
.g-score[hidden], .g-retry[hidden] { display: none; }

/* Stepper */
.g-steps { margin: 0; padding-left: 1.4rem; }
.g-step { padding: .4rem 0; }
.g-step-title { margin: 0 0 .2rem; font-weight: 700; color: var(--ink) !important; }
.g-stepper.is-js .g-steps { list-style: none; padding: 0; }
.g-stepper.is-js .g-step { background: var(--wash); border-radius: 8px; padding: 1rem 1.1rem; min-height: 8.5rem; }
.g-stepper.is-js .g-step[hidden] { display: none; }
.g-step-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .9rem; }
.g-step-count { margin: 0 0 0 auto; font-weight: 650; color: var(--muted) !important; }
.g-step code, .guide code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--wash); padding: .05em .35em; border-radius: 4px; font-size: .95em; }

/* Myth or fact */
.g-myth { border-top: 1px solid var(--wash); padding: .85rem 0; }
.g-myth:first-of-type { border-top: 0; }
.g-myth p { margin: 0; }
.g-tag { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: .1rem .5rem; border-radius: 4px; margin-right: .35rem; }
.g-tag-myth { background: #FBEAE9; color: var(--red-deep); }
.g-tag-fact { background: #EAF6EE; color: #1E6B3A; }
.g-myth-claim { color: var(--ink) !important; font-weight: 600; }
.g-myths.is-js .g-myth-claim { margin-bottom: .5rem; }
.g-myth-fact { margin-top: .5rem; }
.g-myth-fact[hidden] { display: none; }

/* Compare switch */
.g-panel h4 { margin: 1rem 0 .4rem; font-size: 1.05rem; }
.g-compare.is-js .g-panel h4 { display: none; }
.g-compare.is-js .g-seg { margin: .25rem 0 .5rem; flex-wrap: wrap; }
.g-panel[hidden] { display: none; }
.g-panel table { width: 100%; }

/* Charts */
.g-chart { margin: 1.5rem 0; padding: 1rem; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.g-chart figcaption { margin-top: .75rem; font-size: .9rem; color: var(--muted); }
.g-clock svg { display: block; width: 100%; max-width: 26rem; height: auto; margin: 0 auto; }
.g-clock .clock-out.am, .g-clock .clock-in.am { fill: #E6ECF8; }
.g-clock .clock-out.pm, .g-clock .clock-in.pm { fill: #F9E3E1; }
.g-clock .clock-in.am { fill: #F1F4FB; }
.g-clock .clock-in.pm { fill: #FCF0EF; }
.g-clock path { stroke: #fff; stroke-width: 2; }
.g-clock path.clock-out.mark, .g-clock path.clock-in.mark { fill: var(--red); }
.g-clock text.mark { fill: #fff; }
.g-clock .clock-n24 { font-size: 17px; font-weight: 750; fill: var(--ink); font-variant-numeric: tabular-nums; }
.g-clock .clock-n12 { font-size: 13px; font-weight: 600; fill: var(--ink-2); }
.g-clock .clock-core { fill: var(--ink); }
.g-clock .clock-mid { font-size: 17px; font-weight: 750; fill: #fff; }
.g-clock .clock-sub { font-size: 11.5px; fill: #C9D1E2; }
.g-gantt-rows { list-style: none; margin: 0; padding: 0; }
.g-gantt-row { margin: 0 0 .85rem; }
.g-gantt-name { margin: 0 0 .25rem; font-size: .95rem; color: var(--ink) !important; }
.g-gantt-name span { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: .35rem; }
.g-gantt-track { position: relative; height: 1.1rem; background: var(--wash); border-radius: 4px; }
.g-gantt-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.g-gantt-bar { position: absolute; top: 0; bottom: 0; background: var(--ink); border-radius: 4px; min-width: 4px; }
.g-gantt-now { position: absolute; top: -.2rem; bottom: -.2rem; border-left: 2px dashed var(--ink-2); }
.g-gantt-axis { position: relative; height: 1.4rem; margin-top: .25rem; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.g-gantt-axis span { position: absolute; transform: translateX(-50%); }
.g-data-toggle { margin-top: .6rem; }
.g-data-toggle summary { cursor: pointer; font-weight: 650; font-size: .95rem; }

/* Tables inside guides: wrap for small screens */
.g-table-wrap { overflow-x: auto; margin: 1rem 0; }
.g-table-wrap .ref-table { margin: 0; min-width: 28rem; }
.guide .ref-table td:last-child, .guide .ref-table th:last-child { text-align: left; }
.g-sources p, .g-sources li { font-size: .95rem; }
.g-sources ul { margin: 0; padding-left: 1.2rem; }
.g-related { margin-top: 2.5rem; }
.g-btn-link { text-decoration: none; }

/* Hub */
.g-hub-group { margin: 2rem 0 0; }
.g-hub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.g-hub-card { display: block; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.3rem; color: var(--ink); text-decoration: none; }
.g-hub-card:hover { border-color: var(--ink-2); }
.g-hub-card strong { display: block; font-size: 1.2rem; font-weight: 750; letter-spacing: -.01em; }
.g-hub-card span { display: block; color: var(--muted); font-size: .975rem; margin-top: .25rem; }
.g-hub-card .meta { font-size: .85rem; margin-top: .5rem; }

/* Print: only the checklist being printed */
@media print {
  body.g-printing-active * { visibility: hidden; }
  .g-printing, .g-printing * { visibility: visible; }
  .g-printing { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
  .g-check-btns, .g-check-bar { display: none !important; }
}
.g-sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
