﻿@charset "UTF-8";
/* Quiz Centre public site theme (paper / moss / amber; Fraunces + Public Sans).
   Loaded last in Views/Shared/_Layout.cshtml so it restyles the legacy public views too. */

:root {
    --ink: #1B2620;
    --paper: #F4F1E6;
    --paper-dim: #ECE7D8;
    --moss: #22302A;
    --moss-deep: #182620;
    --amber: #D8A73E;
    --amber-deep: #A9791F;
    --line: #D7D0BC;
    --line-dark: #3B4B43;
    --max: 960px;
    --wide: 960px;
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

html, body { font-family: var(--sans); }

body {
    background: var(--paper);
    color: var(--ink);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

#main-wrapper { background: none !important; padding: 0; min-height: 100vh; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--ink);
}

a { color: var(--moss); }
a:hover { color: var(--amber-deep); }

:focus-visible { outline: 2px solid var(--amber-deep); outline-offset: 2px; }

.headerpadding { padding-top: 0 !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }

/* Legacy Bootstrap containers follow the same width */
.container { max-width: var(--wide) !important; }

/* ---------- Header ---------- */

.site-header {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.site-header .nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.site-header .brand-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.site-header .logo {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.site-header .logo-mark-link { display: block; line-height: 0; flex: 0 0 auto; }
.site-header .logo-mark { width: 40px; height: 40px; border-radius: 8px; display: block; }

.site-header .strapline {
    font-size: 14px;
    color: #5B6058;
    font-style: italic;
    font-family: var(--serif);
}

.nav-toggle-checkbox { position: absolute; opacity: 0; pointer-events: none; }

.nav-toggle-label {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    margin: 0;
}

.nav-toggle-label span { display: block; width: 22px; height: 2px; background: var(--ink); }

.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }

.nav-links a {
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
    white-space: nowrap;
}

.nav-links a:hover { color: var(--amber-deep); }

.nav-links .nav-admin {
    background: var(--amber);
    color: var(--moss-deep);
    padding: 7px 14px;
    border-radius: 3px;
}

.nav-links .nav-admin:hover { background: #E9BC5C; color: var(--moss-deep); }

/* Laptop/desktop: brand on the first row, navigation on a second, smaller row */
@media (min-width: 701px) {
    /* the logo spans both rows (rowspan 2): brand on row 1, menu on row 2 */
    .site-header .nav-wrap {
        display: grid;
        /* row heights are fixed so the logo (rows 1+2 plus the gap = 62px) is exactly the full height */
        grid-template-columns: 62px 1fr;
        grid-template-rows: 34px 22px;
        column-gap: 16px;
        row-gap: 6px;
        justify-content: start;
        align-items: center;
    }
    .site-header .logo-mark-link { grid-column: 1; grid-row: 1 / span 2; align-self: stretch; }
    .site-header .logo-mark { width: 62px; height: 62px; }
    .site-header .brand-row { grid-column: 2; grid-row: 1; line-height: 34px; }
    .site-header .brand-row .logo, .site-header .brand-row .strapline { line-height: 34px; }
    .nav-links { grid-column: 2; grid-row: 2; gap: 26px; line-height: 22px; }
    .nav-links a { font-size: 13px; }
}

@media (max-width: 700px) {
    .nav-toggle-label { display: flex; }
    .site-header .brand-row { flex: 1 1 auto; }

    .nav-links {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 8px;
        border-top: 1px solid var(--line);
    }

    .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .nav-toggle-checkbox:checked ~ .nav-links { display: flex; }
    .site-header .strapline { display: none; }
}

/* ---------- Buttons ---------- */

.cta, .btn.btnPurple, .btn.orangeButton, .btn.greenButton, .btn.btn-primary, .btn.btn-success {
    display: inline-block;
    background: var(--moss);
    color: var(--paper);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid var(--moss);
    transition: background 0.15s ease, color 0.15s ease;
    margin-top: 0;
}

.cta:hover, .btn.btnPurple:hover, .btn.greenButton:hover, .btn.btn-primary:hover, .btn.btn-success:hover {
    background: var(--moss-deep);
    border-color: var(--moss-deep);
    color: var(--paper);
}

.btn.orangeButton { background: var(--amber); border-color: var(--amber); color: var(--moss-deep); }
.btn.orangeButton:hover { background: #E9BC5C; border-color: #E9BC5C; color: var(--moss-deep); }

.btn.grayButton, .btn.btn-secondary:not(.orangeButton) {
    background: transparent;
    color: var(--moss);
    border: 1px solid var(--moss);
    border-radius: 3px;
    font-weight: 600;
}

.btn.grayButton:hover, .btn.btn-secondary:not(.orangeButton):hover { background: var(--paper-dim); color: var(--moss); }

.cta { margin-top: 30px; padding: 15px 26px; }

.cta-secondary {
    display: inline-block;
    margin-top: 30px;
    margin-left: 14px;
    color: var(--moss);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    font-size: 16px;
}

/* ---------- Hero ---------- */

.hero { padding: 64px 0 56px; }
.hero h1 { font-size: 40px;   }
.hero .sub { margin-top: 22px;   font-size: 18px; color: #34403A; max-width: 60ch; }
.hero .sub strong { font-weight: 600; color: var(--ink); }
.hero .promise { margin-top: 18px; max-width: 60ch; font-size: 17px; color: #34403A; padding-left: 16px; border-left: 3px solid var(--amber); }
.hero .promise em { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.12em; color: var(--ink); }
.hero-actions { margin-top: 34px; }
.hero-note { margin-top: 14px; font-size: 14px; color: #6B7168; }

/* ---------- Home sections ---------- */

.compare-section, .diff-section {
    padding: 56px 0;
    background: var(--paper-dim);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.compare-section h2, .steps-section h2, .diff-section h2, .faq-section h2 { font-size: 28px; margin-bottom: 34px; }
.faq-section h2 { margin-bottom: 30px; }

.compare-columns, .diff-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.compare-col h3, .diff-col h3 { font-size: 16px; font-style: italic; margin-bottom: 16px; }
.compare-col.old h3, .diff-col.old h3 { color: #8B8578; }
.compare-col.new h3, .diff-col.new h3 { color: var(--amber-deep); }

.flow-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--serif); font-size: 16px; margin-bottom: 14px; }
.flow-mini .step { white-space: nowrap; }
.flow-mini .arrow { color: #A6A18E; font-family: var(--sans); font-size: 14px; }
.flow-mini .step.highlight { color: var(--amber-deep); font-weight: 600; }
.flow-mini .step.fade { color: #A6A18E; font-style: italic; }
.compare-col .col-caption { font-size: 15px; color: #56594F;   }
.compare-col .col-caption a { font-weight: 600; text-underline-offset: 3px; }

.steps-section, .faq-section { padding: 56px 0; }

.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps .num { font-family: var(--serif); font-size: 15px; color: var(--amber-deep); padding-top: 3px; flex: 0 0 auto; min-width: 20px; }
.steps .text { font-size: 16.5px; color: #29332D; }
.steps .text strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 3px; }

.diff-col ul { list-style: none; margin: 0; padding: 0; }
.diff-col li { position: relative; padding: 9px 0 9px 20px; font-size: 15px; line-height: 1.4; border-top: 1px solid var(--line); }
.diff-col li:last-child { border-bottom: 1px solid var(--line); }
.diff-col li::before { content: "–"; position: absolute; left: 0; }
.diff-col.old li { color: #7C7A6B; }
.diff-col.new li { color: var(--ink); font-weight: 500; }
.diff-col.new li::before { content: "✓"; color: var(--amber-deep); }

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 28px 18px 0;
    position: relative;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 500;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 2px; top: 16px; font-family: var(--sans); font-size: 20px; color: var(--amber-deep); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { padding: 0 28px 20px 0; font-size: 15.5px; color: #47504A;  margin: 0; }

.placeholder-section { padding: 48px 0; border-top: 1px solid var(--line); }
.placeholder-section h2 { font-size: 26px; margin-bottom: 14px; }
.placeholder-section .body { max-width: 50ch; font-size: 16px; color: #34403A; }
.placeholder-section .body a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.final-cta { background: var(--moss); color: var(--paper); padding: 64px 0; }
.final-cta h2 { font-size: 30px; max-width: 14ch; color: var(--paper); }
.final-cta h3 { font-size: 22px; max-width: 18ch; color: var(--paper); }
.final-cta .cta-block + .cta-block { margin-top: 44px; padding-top: 40px; border-top: 1px solid rgba(244, 241, 230, 0.16); }
.final-cta .cta { background: var(--amber); border-color: var(--amber); color: var(--moss-deep); }
.final-cta .cta:hover { background: #E9BC5C; border-color: #E9BC5C; color: var(--moss-deep); }

/* ---------- Footer ---------- */

.site-footer { padding: 32px 0 48px; font-size: 14px; color: #6B7168; border-top: 1px solid var(--line); }
.site-footer .foot-row { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.site-footer a { color: #6B7168; text-decoration: underline; text-underline-offset: 2px; }
.site-footer a:hover { color: var(--amber-deep); }

/* ---------- Legacy inner pages (forms, cards, quiz screens) ---------- */

.steps1 {
    color: var(--ink) !important;
    background: #FBF9F1 !important;
    border: 1px solid var(--line);
    border-radius: 3px;
    filter: none !important;
    padding: 32px !important;
}

form label, .steps1 label { color: var(--ink); }

form .form-control, form .form-select, .form-control, .form-select {
    background-color: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 3px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--amber-deep);
    box-shadow: 0 0 0 2px rgba(216, 167, 62, 0.3);
}

.alternatesection { background: var(--paper) !important; }
section.section { background: var(--paper-dim); }

.field-validation-error { color: #A8321F; }
.input-validation-error { border-color: #A8321F; }

.quizbox, .stepbox, .subscriptionbox, .clubquizbox, .type-box {
    background: #FBF9F1;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 3px;
    box-shadow: none;
}

.quizbox .card-header, .stepbox .card-header, .subscriptionbox .card-header, .clubquizbox .card-header { background: transparent; }
.quizbox:hover, .stepbox:hover, .subscriptionbox:hover { background: var(--moss); color: var(--paper); }
.quizbox:hover .card-header, .stepbox:hover .card-header, .subscriptionbox:hover .card-header { background: transparent; color: var(--paper); }
.stepbox .card-header .step-circle { background: var(--moss); }

.questionOptions { border-color: var(--moss); color: var(--moss); }
.selectedOptions, .selectedOptions:hover { border-color: var(--amber); background: var(--amber); color: var(--moss-deep); }
.spanRightAnswer { color: #2F6B3F; }
.spanWrongAnswer { color: #A8321F; }
.currentquestion, .totalquestions { font-family: var(--serif); }

.badge-customize, .badge-randomize { background-color: var(--moss); }

.text-white { color: var(--ink) !important; }
.final-cta .text-white, .btn .text-white { color: var(--paper) !important; }

/* ---------- Responsive ---------- */

@media (min-width: 700px) {
    .hero h1 { font-size: 52px; }
    .steps-section h2, .diff-section h2, .compare-section h2, .faq-section h2 { font-size: 32px; }
    .final-cta h2 { font-size: 36px; }
    .final-cta h3 { font-size: 26px; }
}

@media (max-width: 560px) {
    .compare-columns { grid-template-columns: 1fr; gap: 28px; }
    .diff-columns { grid-template-columns: 1fr; gap: 8px; }
    .diff-col.old { order: 2; margin-top: 6px; }
    .diff-col.new { order: 1; }
}

@media (max-width: 520px) {
    body { font-size: 16px; }
    .hero { padding: 44px 0 40px; }
    .hero h1 { font-size: 32px; max-width: none; }
    .cta, .cta-secondary { display: block; margin-left: 0; text-align: center; }
    .cta-secondary { margin-top: 14px; }
    .steps1 { padding: 22px !important; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ---------- Research page ---------- */

.curve-section { padding: 8px 0 48px; }
.curve-section h2 { font-size: 24px; max-width: 16ch; margin-bottom: 10px; }
.curve-intro { font-size: 15.5px; color: #34403A; max-width: 52ch; margin-bottom: 22px; }
.curve-chart { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 20px 16px 8px; }
.curve-caption { margin-top: 12px; font-size: 14px; color: #5B6058; max-width: 46ch; }
.sources-note { padding: 44px 0 64px; }
.sources-note h2 { font-size: 22px; margin-bottom: 14px; }
.sources-note p { max-width: 56ch; font-size: 15.5px; color: #47504A; }
