/* ══════════════════════════════════════════════════════════════════════════
   Printable guides (guides/*.html). On screen: A4 sheets on the midnight page with a toolbar.
   In print (and in the PDFs, which are printed from these pages): just the sheets, ink-friendly.
   ══════════════════════════════════════════════════════════════════════════ */
.g-intro { text-align: center; padding: 48px 0 20px; }
.g-intro h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin: 16px auto 12px; max-width: 860px; }
.g-intro p { color: var(--pt-cream); opacity: .9; max-width: 680px; margin: 0 auto; line-height: 1.6; }
.g-tools { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.g-sheets { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 24px 16px 40px; }

.g-sheet {
    --ink: #2a2350; --soft: #5f5a80; --teal: #2f9e86; --pink: #e05a85; --amber: #d98a06; --line: #d9d5ea; --wash: #f6f3fd;
    width: 210mm; min-height: 297mm; max-width: 100%; box-sizing: border-box; padding: 16mm 16mm 14mm;
    background: #fff; color: var(--ink); border-radius: 6px; box-shadow: 0 24px 50px rgba(5, 3, 20, .45);
    font-family: 'Outfit', system-ui, sans-serif; font-size: 10pt; line-height: 1.45; position: relative;
    display: flex; flex-direction: column;
}
.g-sheet h1, .g-sheet h2, .g-sheet h3, .g-sheet h4 { font-family: 'Epilogue', 'Outfit', sans-serif; color: var(--ink); letter-spacing: -0.01em; }
.g-sheet h1 { font-size: 22pt; line-height: 1.1; margin: 0 0 4mm; }
.g-sheet h2 { font-size: 13.5pt; margin: 5mm 0 2mm; color: var(--teal); }
.g-sheet h3 { font-size: 11.5pt; margin: 4mm 0 1.5mm; }
.g-sheet p { margin: 0 0 2.5mm; }
.g-sheet ul, .g-sheet ol { margin: 0 0 3mm; padding-left: 5.5mm; }
.g-sheet ul { list-style: disc; }
.g-sheet ol { list-style: decimal; }
.g-sheet ol.g-steps { list-style: none; }
.g-sheet li { margin-bottom: 1.2mm; }
.g-sheet strong { color: var(--ink); }
.g-sheet a { color: var(--teal); }
.g-head { display: flex; justify-content: space-between; align-items: center; gap: 6mm; padding-bottom: 4mm; margin-bottom: 5mm; border-bottom: 2px solid var(--line); }
.g-brand { display: flex; align-items: center; gap: 3mm; font-family: 'Epilogue', sans-serif; font-weight: 800; font-size: 11pt; color: var(--ink); }
.g-brand svg { width: 9mm; height: 9mm; }
.g-brand small { display: block; font-size: 6.5pt; letter-spacing: .2em; color: var(--amber); font-weight: 700; }
.g-kicker { font-family: 'Epilogue', sans-serif; font-size: 7.5pt; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.g-lede { font-size: 11.5pt; color: var(--soft); margin-bottom: 4mm; }
.g-foot { margin-top: auto; padding-top: 4mm; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 7.5pt; color: var(--soft); }
.g-box { background: var(--wash); border-radius: 4mm; padding: 3.2mm 4.5mm; margin: 2.5mm 0; break-inside: avoid; }
.g-box h3:first-child, .g-box h2:first-child { margin-top: 0; }
.g-tip { border-left: 3px solid var(--amber); background: #fff8e8; border-radius: 0 3mm 3mm 0; padding: 3mm 4mm; margin: 3mm 0; font-size: 9.5pt; break-inside: avoid; }
.g-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; }
.g-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; }
.g-book { border: 1.5px solid var(--line); border-radius: 4mm; padding: 3.5mm 4mm; break-inside: avoid; }
.g-book h3 { margin: 0 0 1mm; color: var(--ink); }
.g-book .g-meta { font-size: 8pt; color: var(--soft); margin-bottom: 2mm; }
.g-book ul { margin-bottom: 0; }
.g-tag { display: inline-block; font-size: 7pt; font-weight: 700; padding: .6mm 2.2mm; border-radius: 3mm; background: #e7f6f1; color: var(--teal); margin-right: 1.5mm; }
.g-tag.free { background: #fdeef3; color: var(--pink); }
.g-table { width: 100%; border-collapse: collapse; margin: 2mm 0 3mm; font-size: 9pt; }
.g-table th, .g-table td { border: 1px solid var(--line); padding: 1.6mm 2.4mm; text-align: left; vertical-align: top; }
.g-table th { background: var(--wash); font-family: 'Epilogue', sans-serif; font-size: 9pt; }
.g-write { display: block; border-bottom: 1.5px dashed #b9b3d6; height: 9mm; margin-bottom: 1mm; }
.g-field { display: flex; align-items: flex-end; gap: 3mm; margin: 3.5mm 0; font-size: 11.5pt; }
.g-field span { flex: 1; border-bottom: 1.5px dashed #b9b3d6; height: 7mm; }
.g-draw { flex: 1; min-height: 95mm; border: 2px dashed #b9b3d6; border-radius: 5mm; display: flex; align-items: flex-start; justify-content: center; padding-top: 3mm; color: #aaa3cc; font-family: 'Epilogue', sans-serif; margin-top: 3mm; }
.g-full-img { flex: 1; display: flex; align-items: center; justify-content: center; }
.g-full-img img, .g-full-img svg { max-width: 100%; max-height: 230mm; }
.g-stars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; margin: 3mm 0; }
.g-star { border: 1.5px solid var(--line); border-radius: 4mm; padding: 3mm; text-align: center; break-inside: avoid; }
.g-star svg { width: 22mm; height: 22mm; display: block; margin: 0 auto 1.5mm; }
.g-star strong { display: block; font-size: 9pt; line-height: 1.25; min-height: 9mm; }
.g-star small { display: block; color: var(--soft); font-size: 7.5pt; margin-top: 1.5mm; }
.g-cert { margin-top: 4mm; border: 2.5px solid var(--amber); border-radius: 5mm; padding: 4mm 6mm; text-align: center; }
.g-cert h3 { margin: 0 0 1mm; font-size: 14pt; color: var(--amber); }
.g-steps { counter-reset: s; list-style: none; padding: 0; }
.g-steps > li { counter-increment: s; position: relative; padding-left: 10mm; margin-bottom: 3mm; }
.g-steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 7mm; height: 7mm; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; font-size: 9pt; display: grid; place-items: center; }
.g-rubric td:first-child { width: 34%; font-weight: 600; }
.g-small { font-size: 8.5pt; color: var(--soft); }

@media screen and (max-width: 860px) {
    .g-sheet { width: 100%; min-height: 0; padding: 7% 6%; font-size: 10pt; }
    .g-cols, .g-cols-3, .g-stars { grid-template-columns: 1fr; }
}

@page { size: A4; margin: 0; }
@media print {
    html, body { background: #fff !important; }
    .pt-topbar, .pt-header, .pt-footer, .g-intro, .g-tools, .skip-link, .cookie-banner { display: none !important; }
    body { padding: 0 !important; margin: 0 !important; }
    main, .g-sheets { padding: 0 !important; gap: 0 !important; display: block !important; }
    .g-sheet { width: 210mm; height: 297mm; min-height: 297mm; max-width: none; box-shadow: none; border-radius: 0; margin: 0; page-break-after: always; break-after: page; overflow: hidden; }
    .g-sheet:last-child { page-break-after: auto; break-after: auto; }
}
