/* Free guides and tools under /guides/ (calculator, HSC rules and times, provisions template, invigilator checklist).
   Loaded after MarketingFlat.css; reuses the Resources page header and hero. */

.guide-card {
    margin-top: 2rem;
    padding: clamp(1.25rem, 4vw, 2.25rem);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(236, 245, 255, 0.97));
    color: rgb(10, 61, 145);
    font-family: var(--font-ui);
    line-height: 1.55;
}
.guide-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: rgb(10, 61, 145);
}
.guide-card h3 {
    margin: 1.4rem 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
}
.guide-card p { margin: 0 0 0.8rem; }
.guide-card ul, .guide-card ol { margin: 0 0 0.8rem; padding-left: 1.3rem; }
.guide-card li { margin: 0.3rem 0; }
.guide-card a { color: #0a55c4; font-weight: 600; }
.guide-note {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 0 0 1.5px #dbe7f8;
    font-size: 0.92rem;
    color: rgba(10, 61, 145, 0.8);
}

/* Checklists: square boxes so a printed copy can be ticked by hand */
.guide-checklist { list-style: none; padding-left: 0 !important; }
.guide-checklist li { position: relative; padding-left: 1.9rem; }
.guide-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid #0a55c4;
    border-radius: 4px;
    background: #fff;
}

/* Tables */
.guide-table-wrap { overflow-x: auto; margin: 0 0 1rem; border-radius: 16px; box-shadow: inset 0 0 0 1.5px #dbe7f8; background: #fff; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.guide-table th, .guide-table td { padding: 0.6rem 0.8rem; text-align: left; border-bottom: 1px solid #e3ecf9; vertical-align: top; }
.guide-table th { background: #eef4ff; font-weight: 700; white-space: nowrap; }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.guide-table--blank td { height: 2.4rem; }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.calc-field { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.calc-field input, .calc-field select {
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 96, 143, 0.28);
    background: #fff;
    color: rgb(10, 61, 145);
    font: inherit;
    font-weight: 600;
}
.calc-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; font-weight: 600; }
.calc-result {
    margin-top: 1.5rem;
    padding: 1.25rem 1.4rem;
    border-radius: 20px;
    background: linear-gradient(160deg, #0a55c4, #0a3d91);
    color: #fff;
}
.calc-result-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.calc-result-main strong { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-result dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.75rem; margin: 0; }
.calc-result dt { font-size: 0.8rem; color: #9cc4ff; font-weight: 600; }
.calc-result dd { margin: 0.15rem 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }

.guide-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.guide-cta {
    margin-top: 2rem;
    padding: 1.4rem 1.6rem;
    border-radius: 24px;
    background: linear-gradient(160deg, #0a55c4, #0a3d91);
    color: #fff;
    font-family: var(--font-ui);
}
.guide-cta h2 { margin: 0 0 0.4rem; font-size: 1.2rem; font-weight: 800; color: #fff; }
.guide-cta p { margin: 0 0 1rem; color: rgba(255, 255, 255, 0.86); }
.guide-cta .marketing-row-action { background: #fff; color: #0a55c4; }
.guide-cta .marketing-row-action:hover { background: #e9f1fe; }

/* Printable pages: just the content, on white */
@media print {
    html body.front-page-body.about-us-page { background: #fff !important; background-image: none !important; }
    .site-logo, .front-page-header, .guide-cta, .guide-actions, .guide-no-print, .pricing-hero .pricing-eyebrow { display: none !important; }
    .guide-card { margin: 0; padding: 0; background: #fff; border-radius: 0; color: #000; }
    .guide-card h2, .guide-card a { color: #000; }
    .guide-table-wrap { box-shadow: none; border: 1px solid #999; border-radius: 0; }
    .guide-table th { background: #eee; }
    .guide-table th, .guide-table td { border-bottom: 1px solid #999; }
    .guide-checklist li::before { border-color: #000; }
    .front-utility-main { padding-top: 0 !important; margin-top: 0 !important; }
}

/* Provisions template: label/answer pairs get even columns; wide tables shrink to fit a printed page */
.guide-kv th { width: 18%; }
.guide-kv td { width: 32%; }
@media print {
    .guide-table-wrap { overflow: visible; }
    .guide-table { font-size: 0.75rem; }
    .guide-table th { white-space: normal; }
}
