/* IMSOG page styles. Tokens live in chrome.css. Same language as Past Papers and the timetable:
   warm paper, Changa One headlines, orange for action, deep green for the one set piece per page. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: .005em; }
h4 { font: 700 17px/1.3 var(--f-body); margin: 0; }
p { margin: 0; }
a { color: var(--orange-text); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--f-data); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--sx-max); margin: 0 auto; padding-inline: 16px; }
.narrow { max-width: 820px; }
@media (min-width: 720px) { .wrap { padding-inline: 28px; } }
.section { padding-block: 56px; }
.section + .section { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 42px); }
.section-head p { color: var(--muted); max-width: 60ch; margin-top: 8px; }
.eyebrow { font: 700 12.5px/1 var(--f-body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.accent { color: var(--orange-text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 11px 20px; font: 700 15px/1.1 var(--f-body); cursor: pointer; border: 1.5px solid var(--ink); background: transparent; text-decoration: none; color: var(--ink); white-space: nowrap; transition: filter .15s, background .15s; }
.btn:hover { background: var(--surface-2); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { filter: brightness(1.2); }
.btn.orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.orange:hover { filter: brightness(1.06); }
.btn.light { border-color: color-mix(in oklab, var(--on-green) 50%, transparent); color: var(--on-green); }
.btn.light:hover { background: color-mix(in oklab, var(--on-green) 12%, transparent); }
.btn.sm { padding: 7px 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.arrow { text-decoration: none; font-weight: 700; color: var(--orange-text); white-space: nowrap; }
.arrow::after { content: " →"; }
.chip { display: inline-block; font: 700 11.5px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px 4px; border-radius: 5px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip.orange { background: var(--orange); color: #fff; }
.chip.line { background: none; border: 1.5px solid currentColor; padding: 3.5px 6.5px 2.5px; }

/* Page header (same shape as the apps' masthead) */
.pagehead { padding-block: 48px 30px; }
.pagehead .eyebrow { margin-bottom: 14px; display: block; }
.pagehead h1 { font-size: clamp(38px, 7vw, 68px); }
.pagehead h1 em { font-style: normal; color: var(--orange-text); }
.pagehead .lede { margin-top: 16px; font-size: 18.5px; color: var(--muted); max-width: 62ch; }
.pagehead .btn-row { margin-top: 24px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }

/* Hero */
.hero { padding-block: 40px 56px; display: grid; gap: 40px; grid-template-columns: 1.05fr 1fr; align-items: center; }
.hero h1 { font-size: clamp(42px, 7.2vw, 84px); }
.hero h1 em { font-style: normal; color: var(--orange-text); }
.hero .lede { font-size: 19px; color: var(--muted); margin-top: 18px; max-width: 48ch; }
.hero .btn-row { margin-top: 28px; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1 / .92; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.hero-art img:first-child { grid-row: span 2; border-radius: 22px 22px 22px 120px; }
.hero-art img:last-child { border-radius: 22px 90px 22px 22px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 28px; } .hero-art { aspect-ratio: 1.3; } }

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: 14px 38px; margin-top: 30px; }
.stats div { display: grid; }
.stats b { font: 400 34px/1 var(--f-display); }
.stats span { font-size: 14px; color: var(--muted); }

/* Cards and grids */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.card h3 { font-size: 24px; }
.card p { color: var(--muted); }
.card .btn-row, .card .arrow { margin-top: auto; padding-top: 6px; }
a.card { text-decoration: none; color: inherit; transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: var(--ink); }
.card.media { padding: 0; overflow: hidden; }
.card.media .media-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card.media .media-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
a.card.media:hover .media-img img { transform: scale(1.03); }
.card.media .card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card.media h3 { font-size: 22px; }
.card .meta { font-size: 14px; color: var(--muted); }
.quick { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.quick a { display: grid; gap: 4px; align-content: start; padding: 18px 20px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.quick a:hover { border-color: var(--ink); transform: translateY(-2px); }
.quick b { font: 400 22px/1.1 var(--f-display); }
.quick b::after { content: " →"; color: var(--orange-text); }
.quick span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
@media (max-width: 900px) { .quick { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .quick { grid-template-columns: 1fr; } }

/* The green set piece */
.panel { background: var(--green); color: var(--on-green); border-radius: 26px; padding: clamp(26px, 5vw, 56px); }
.panel h2, .panel h3 { color: var(--on-green); }
.panel p, .panel li { color: var(--on-green-muted); }
.panel a:not(.btn) { color: var(--on-green); }
.panel .eyebrow { color: var(--on-green-muted); }
.panel-split { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 860px) { .panel-split { grid-template-columns: 1fr; } }
.quotes { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; }
.quotes blockquote { margin: 0; }
.quotes p { font: italic 400 21px/1.5 "Noto Serif", Georgia, serif; color: var(--on-green); }
.quotes cite { display: block; margin-top: 12px; font: 600 14px var(--f-body); font-style: normal; color: var(--on-green-muted); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* Feature list (perks, how it works) */
.features { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.features > div { background: var(--surface); padding: 22px; }
.features h3 { font-size: 21px; margin-bottom: 6px; }
.features p { color: var(--muted); font-size: 15px; }
.features .n { font: 400 15px var(--f-display); color: var(--orange-text); display: block; margin-bottom: 10px; }

/* Split text + image */
.split { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
.split img { border-radius: 22px; width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
/* image fills the full height of the text column (top of the label to the bottom of the buttons) */
.split.fill { align-items: stretch; }
.split.fill img { aspect-ratio: auto; height: 0; min-height: 100%; }
@media (max-width: 860px) { .split.fill img { height: auto; aspect-ratio: 4 / 3; min-height: 0; } }
.split p + p { margin-top: 12px; }
.split .prose { color: var(--muted); font-size: 17px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Prose (blog posts, bylaw, club pages) */
.prose { font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 30px; margin-top: 1.6em; }
.prose h3 { font-size: 23px; margin-top: 1.5em; }
.prose h4, .prose h5 { font: 700 18px/1.3 var(--f-body); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li > ol, .prose li > ul { margin-top: .5em; }
.prose img { border-radius: 16px; margin-block: 1.4em; }
.prose blockquote { margin-inline: 0; padding-left: 18px; border-left: 3px solid var(--orange); color: var(--muted); }
.prose a { word-break: break-word; }
.bylaw ol { counter-reset: item; list-style: none; padding-left: 0; }
.bylaw ol > li { counter-increment: item; position: relative; padding-left: 2.6em; }
.bylaw ol > li::before { content: counters(item, ".") "."; position: absolute; left: 0; font: 600 14.5px/1.9 var(--f-data); color: var(--orange-text); }
.bylaw > ol > li { padding-top: 1.2em; border-top: 1px solid var(--line); margin-top: 1.4em; }
.bylaw ol ol > li { padding-left: 3.4em; }

/* Article */
.article-head { padding-block: 40px 28px; }
.article-head h1 { font-size: clamp(34px, 6vw, 58px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; color: var(--muted); font-size: 15px; }
.article-cover { border-radius: 24px; width: 100%; max-height: 520px; object-fit: cover; }

/* Accordion */
.acc { border-top: 1.5px solid var(--ink); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font: 700 18px/1.35 var(--f-body); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font: 400 28px/1 var(--f-body); color: var(--orange-text); transition: rotate .2s; }
.acc details[open] summary::after { rotate: 45deg; }
.acc .acc-body { padding: 0 0 24px; color: var(--muted); max-width: 72ch; }
.acc .acc-body.prose { color: var(--ink); font-size: 16px; }

/* People */
.people { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.person { display: grid; grid-template-columns: 52px 1fr; gap: 4px 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.person .av { grid-row: span 3; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: var(--on-green); display: grid; place-items: center; font: 400 19px var(--f-display); }
.person .av.tba { background: var(--surface-2); color: var(--muted); }
.person .role { font-size: 13.5px; color: var(--muted); line-height: 1.3; }
.person .name { font-weight: 700; line-height: 1.25; }
.person .name.tba { color: var(--muted); font-weight: 500; font-style: italic; }
.person a { font-size: 14px; }
.archive { display: grid; gap: 10px; align-content: start; }
.archive table { width: 100%; border-collapse: collapse; font-size: 15px; }
.archive th, .archive td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.archive th { font-weight: 500; color: var(--muted); width: 50%; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tabs button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Link lists (resources) */
.linkgroup h3 { font-size: 24px; margin-bottom: 8px; }
.linklist { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.linklist li { border-bottom: 1px solid var(--line); }
.linklist a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 2px; text-decoration: none; color: var(--ink); }
.linklist a:hover b { color: var(--orange-text); }
.linklist b { font-weight: 700; }
.linklist span { grid-column: 1; color: var(--muted); font-size: 15px; }
.linklist i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; color: var(--orange-text); font-weight: 700; }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist label { display: grid; grid-template-columns: 28px 1fr; gap: 4px 14px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.checklist input { appearance: none; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 8px; margin: 0; grid-row: span 2; display: grid; place-items: center; cursor: pointer; background: var(--paper); }
.checklist input:checked { background: var(--ok); border-color: var(--ok); }
.checklist input:checked::after { content: ""; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; rotate: 45deg; translate: 0 -2px; }
.checklist b { font-size: 17px; }
.checklist span { color: var(--muted); font-size: 15px; }
.checklist label:has(input:checked) b { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--muted); }
.progress { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.progress .bar { flex: 1; max-width: 260px; height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--ok); width: 0; transition: width .25s; }

/* Glossary */
.glossary { width: 100%; border-collapse: collapse; }
.glossary th, .glossary td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.glossary thead th { font: 700 12px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid var(--ink); }
.glossary td:first-child { font-weight: 700; font-size: 17px; white-space: nowrap; }
.glossary td:nth-child(2) { color: var(--muted); font-family: var(--f-data); font-size: 14px; }
@media (max-width: 640px) {
  .glossary thead { display: none; }
  .glossary tr { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .glossary td { border: 0; padding: 0; }
  .glossary td:nth-child(2) { align-self: center; }
  .glossary td:nth-child(3) { grid-column: 1 / -1; }
}

/* Forms */
.form { display: grid; gap: 16px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 34px); box-shadow: var(--shadow); }
.form-card h2 { font-size: 30px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 20px; }
.row2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: 14.5px; }
.field small { color: var(--muted); font-size: 13.5px; }
.field input:not([type=checkbox]), .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); background: var(--paper); border-radius: 12px; padding: 12px 14px; font-size: 16px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in oklab, var(--orange) 30%, transparent); }
.field input[type=file] { padding: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); flex: none; }
.hp { position: absolute; left: -9999px; }
.form-status { border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.ok { background: var(--ok-bg); color: var(--ok); }
.form-status.bad { background: var(--bad-bg); color: var(--bad); }
.form-status.info { background: var(--surface-2); color: var(--ink); font-weight: 500; }

/* Notices */
.notice { border-radius: 16px; padding: 16px 18px; background: var(--surface-2); color: var(--ink); font-size: 15px; }
.notice b { display: block; margin-bottom: 2px; }

/* Gallery + lightbox */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.gallery button { padding: 0; border: 0; background: var(--surface-2); border-radius: 14px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgb(8 8 6 / .88); }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 12px; }
.lightbox form { position: fixed; top: 14px; right: 14px; }
.lightbox .close { width: 44px; height: 44px; border-radius: 999px; border: 0; background: #fff; color: #111; font-size: 24px; cursor: pointer; }

/* Club + shop details */
.facts { margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.facts div { background: var(--surface); padding: 14px 18px; display: grid; gap: 2px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.two-col { display: grid; gap: 40px; grid-template-columns: 1.6fr 1fr; align-items: start; }
.two-col aside { position: sticky; top: 90px; display: grid; gap: 16px; }
/* Contact: form and side column start and end on the same line */
.ct-cols { align-items: stretch; }
.ct-cols aside { position: static; display: flex; flex-direction: column; }
.ct-cols aside .card { flex: 1; }
@media (max-width: 900px) { .two-col aside > .btn[href="#join"] { display: none; } }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .two-col aside { position: static; } }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.filters button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.empty { color: var(--muted); padding: 30px 0; }
.date-tile { display: inline-grid; justify-items: center; background: var(--orange); color: #fff; border-radius: 12px; padding: 8px 12px; line-height: 1; }
.date-tile b { font: 400 26px var(--f-display); }
.date-tile span { font: 700 12px var(--f-body); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }

/* Members-only login page (Past Papers) */
.mo-panel { display: grid; gap: 14px; align-content: start; }
.mo-btn { padding: 15px 28px; font-size: 17px; }
.mo-btn svg { width: 22px; height: 22px; }
.mo-small { font-size: 14px; }
.mo-msg { background: var(--on-green); color: #221c14; border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.mo-msg a { color: #b3421b !important; }

/* Shop: floating product with a live picker, reasons, order form + FAQ */
:root { --stage: #f1ebe0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --stage: #e6e0d6; } }
:root[data-theme="dark"] { --stage: #e6e0d6; }
.sh-a { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-top: 36px; padding-bottom: 56px; }
.sh-stage { position: relative; background: var(--stage); border-radius: 28px; aspect-ratio: 1; display: grid; place-items: center; perspective: 900px; }
.sh-img { width: 88%; mix-blend-mode: multiply; animation: shfloat 5s ease-in-out infinite; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, opacity .2s; }
.sh-img.swap { opacity: 0; }
@keyframes shfloat { 50% { translate: 0 -10px; } }
.sh-badge { position: absolute; top: 22px; right: 22px; width: 88px; height: 88px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font: 400 22px var(--f-display); rotate: 12deg; box-shadow: 0 8px 20px rgb(0 0 0 / .18); }
.sh-badge b { font: 400 32px var(--f-display); margin-left: 1px; }
.sh-stage .sh-note { position: absolute; left: 20px; bottom: 16px; color: #b3421b; }
.sh-note svg { scale: 1 -1; translate: 0 -8px; }
.sh-note[hidden] { display: none; }
.sh-buy h1 { font-size: clamp(38px, 5vw, 60px); }
.sh-buy h1 em { font-style: normal; color: var(--orange-text); }
.sh-buy .lede { margin-top: 14px; }
.sh-tabs { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 24px 0 4px; }
.sh-tabs button { text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 16px; padding: 14px 16px; cursor: pointer; display: grid; gap: 3px; align-content: start; color: var(--ink); font: inherit; }
.sh-tabs button span { font-size: 13.5px; color: var(--muted); }
.sh-tabs button[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sh-lbl { font-size: 14px; color: var(--muted); margin: 16px 0 8px; } .sh-lbl b { color: var(--ink); }
.sh-sw { display: flex; gap: 10px; }
.sh-sw button { width: 40px; height: 40px; border-radius: 50%; background: var(--c); border: 1.5px solid var(--line); cursor: pointer; outline-offset: 3px; transition: scale .15s; }
.sh-sw button:hover { scale: 1.08; } .sh-sw button[aria-checked="true"] { outline: 2.5px solid var(--ink); }
.sh-sz { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-sz button { min-width: 48px; padding: 9px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 700 14px var(--f-body); cursor: pointer; }
.sh-sz button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sh-big { padding: 15px 30px; font-size: 17px; }
.sh-small { font-size: 13.5px; margin-top: 10px; }
.sh-why { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.sh-why > div[hidden] { display: none; }
.sh-why > div { background: var(--peach); border-radius: 20px; padding: 22px; }
.sh-why h2 { font: 400 21px/1.2 var(--f-display); } .sh-why p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.sh-end { display: grid; gap: 40px; grid-template-columns: 1.1fr 1fr; align-items: start; }
.row3 { display: grid; gap: 12px; grid-template-columns: 1.6fr 1fr 1fr; }
.sh-faq details { border-bottom: 1px solid var(--line); padding: 14px 2px; }
.sh-faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.sh-faq summary::-webkit-details-marker { display: none; }
.sh-faq summary::after { content: "+"; font: 400 22px/1 var(--f-display); color: var(--orange-text); } .sh-faq details[open] summary::after { content: "–"; }
.sh-faq p { margin-top: 8px; color: var(--muted); }
.sh-heart { color: var(--orange); }
@media (prefers-reduced-motion: reduce) { .sh-img { animation: none; transition: opacity .2s; } }
@media (max-width: 860px) { .sh-a, .sh-end, .sh-why { grid-template-columns: 1fr; } .sh-a { padding-top: 20px; } }
@media (max-width: 560px) { .sh-tabs, .row3 { grid-template-columns: 1fr; } .sh-badge { width: 70px; height: 70px; top: 14px; right: 14px; font-size: 18px; } .sh-badge b { font-size: 26px; } }

/* Past Papers / timetable wrapper pages */
.app-strip { border-bottom: 1px solid var(--line); background: var(--surface); }
.app-strip .wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding-block: 12px; font-size: 14.5px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* Home hero: green banner with polaroids */
.hc-outer { padding-block: 24px 48px; }
.hc { background: var(--green); color: var(--on-green); border-radius: 28px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; overflow: hidden; }
.hc .eyebrow { color: var(--on-green-muted); }
.hc h1 { font-size: clamp(42px, 6.8vw, 80px); margin-top: 14px; color: var(--on-green); }
.hc h1 em { font-style: normal; color: var(--orange); }
.hc .lede { font-size: 18px; color: var(--on-green-muted); margin-top: 16px; max-width: 50ch; }
.hc .btn-row { margin-top: 26px; }
.hc-stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 30px; padding-top: 20px; border-top: 1px solid color-mix(in oklab, var(--on-green) 20%, transparent); }
.hc-stats div { display: grid; }
.hc-stats b { font: 400 32px/1 var(--f-display); color: var(--on-green); }
.hc-stats span { font-size: 14px; color: var(--on-green-muted); }
.hc-art { position: relative; height: clamp(360px, 38vw, 480px); }
.hc-polaroid { position: absolute; margin: 0; background: var(--polaroid); padding: 12px 12px 0; border-radius: 6px; box-shadow: 0 18px 40px rgb(0 0 0 / .35); width: 58%; transition: rotate .3s, translate .3s; }
.hc-polaroid img { width: 100%; aspect-ratio: 3 / 3.6; object-fit: cover; border-radius: 2px; filter: var(--photo-dim); }
.hc-polaroid figcaption { font: 600 24px/1 "Caveat", cursive; color: #2b2a26; text-align: center; padding: 12px 0 14px; }
.hc-left { left: 0; top: 0; rotate: -5deg; z-index: 1; }
.hc-right { right: 0; bottom: 0; rotate: 4deg; }
.hc-polaroid:hover { rotate: 0deg; translate: 0 -6px; z-index: 3; }
@media (max-width: 860px) { .hc { grid-template-columns: 1fr; } .hc-art { height: 380px; } .hc-polaroid { width: 56%; } }

/* ---- Warm, hand-made touches ---- */
/* Polaroid: white frame, handwritten caption, a little tilt (set --tilt) */
.polaroid { margin: 0; background: var(--polaroid); padding: 12px 12px 0; border-radius: 6px; box-shadow: 0 16px 36px rgb(40 25 5 / .22); rotate: var(--tilt, -3deg); transition: rotate .3s, translate .3s; }
.polaroid img { width: 100%; aspect-ratio: var(--ratio, 1 / 1.05); object-fit: cover; border-radius: 2px; filter: var(--photo-dim); }
.polaroid figcaption { font: 700 24px/1.1 var(--f-hand); color: #2b2a26; text-align: center; padding: 12px 6px 14px; }
.polaroid:hover { rotate: 0deg; translate: 0 -6px; }
.pagehead.with-polaroid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.pagehead.with-polaroid .polaroid { max-width: 340px; justify-self: center; }
@media (max-width: 860px) { .pagehead.with-polaroid { grid-template-columns: 1fr; } .pagehead.with-polaroid .polaroid { max-width: 300px; } }

/* Polaroid wall (events) */
.wall { display: grid; gap: 40px 32px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); padding: 10px 6px; }
.wall a { text-decoration: none; color: inherit; }
.wall .polaroid { --ratio: 4 / 3.3; }
.wall a:nth-child(3n+1) .polaroid { --tilt: -2.5deg; }
.wall a:nth-child(3n+2) .polaroid { --tilt: 1.8deg; }
.wall a:nth-child(3n) .polaroid { --tilt: -1deg; }
.wall .polaroid figcaption span { display: block; font: 500 13px/1.4 var(--f-body); color: #6b6152; margin-top: 4px; }

/* Handwritten note */
.scribble { font: 700 25px/1.1 var(--f-hand); color: var(--orange-text); display: inline-flex; align-items: center; gap: 6px; rotate: -3deg; text-wrap: balance; }
.scribble svg { width: 38px; height: 30px; flex: none; }
.panel .scribble, .hc .scribble { color: var(--sun); }

/* Peach panel: the warm alternative to the green set piece */
.panel.peach { background: var(--peach); color: var(--ink); position: relative; }
.panel.peach h2, .panel.peach h3 { color: var(--ink); }
.panel.peach p, .panel.peach li { color: var(--muted); }
.panel.peach li b { color: var(--ink) !important; }
.panel.peach .eyebrow { color: var(--orange-text); }
.panel.peach .btn.light { border-color: var(--ink); color: var(--ink); }
.panel .sx-meander { color: color-mix(in oklab, var(--on-green) 35%, transparent); margin: -6px 0 30px; }
.hc-note { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .polaroid:hover, .hc-polaroid:hover { rotate: var(--tilt, -3deg); translate: none; } }

/* Quote card: tap or swipe to switch between the Greek original and English. A crossfade, no 3D. */
.quote-card { cursor: pointer; touch-action: pan-y; -webkit-tap-highlight-color: transparent; background: var(--quote-bg); color: var(--quote-ink); border: 1px solid var(--quote-line, transparent); border-radius: 26px; padding: clamp(28px, 5vw, 60px) clamp(24px, 6vw, 80px); display: grid; gap: 22px; position: relative; overflow: hidden; }
.quote-card::before { content: "“"; position: absolute; right: clamp(10px, 4vw, 48px); top: -40px; font: 400 240px/1 "Noto Serif", Georgia, serif; color: var(--quote-mark, color-mix(in oklab, var(--quote-ink) 10%, transparent)); pointer-events: none; }
.quote-flip { all: unset; display: block; cursor: pointer; touch-action: pan-y; border-radius: 14px; }
.quote-flip:focus-visible { outline: 3px solid var(--quote-accent); outline-offset: 8px; }
.qf-inner { display: grid; max-width: 780px; }
.qf-face { grid-area: 1 / 1; font: italic 500 clamp(22px, 3.2vw, 34px)/1.45 "Noto Serif", Georgia, serif; text-wrap: pretty; transition: opacity .45s ease, transform .45s ease, filter .45s ease; }
.qf-back { opacity: 0; transform: translateX(28px); filter: blur(4px); pointer-events: none; }
.quote-card.is-en .qf-front { opacity: 0; transform: translateX(-28px); filter: blur(4px); }
.quote-card.is-en .qf-back { opacity: 1; transform: none; filter: none; }
.quote-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.quote-cite { font: 600 15px var(--f-body); color: var(--quote-muted); }
.quote-card .scribble { color: var(--quote-accent); rotate: -4deg; }
.quote-card .scribble svg { width: 30px; height: 26px; transition: rotate .45s; }
.quote-card.is-en .scribble svg { rotate: 180deg; }
.quote-aside { font: 600 22px/1.2 var(--f-hand); color: var(--quote-muted); max-width: 40ch; }
.qn-en { display: none; }
.quote-card.is-en .qn-en { display: inline; }
.quote-card.is-en .qn-el { display: none; }
@media (prefers-reduced-motion: reduce) { .qf-face, .quote-card .scribble svg { transition: none; } }

/* Event page: facts and a polaroid photo wall */
.ev-facts { display: grid; gap: 12px; margin: 22px 0 0; }
.ev-facts div { display: grid; gap: 2px; }
.ev-facts dt { font: 700 12px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ev-facts dd { margin: 0; font-weight: 600; }
.ev-wall { display: grid; gap: 36px 30px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); padding: 8px; }
.ev-wall button.polaroid { border: 0; cursor: zoom-in; padding: 12px; aspect-ratio: auto; border-radius: 6px; overflow: visible; max-width: none; background: var(--polaroid, #fdfbf6); }
.ev-wall button.polaroid img { aspect-ratio: 4 / 3; }
.ev-wall button.polaroid:nth-child(4n+1) { --tilt: -3deg; }
.ev-wall button.polaroid:nth-child(4n+2) { --tilt: 2deg; }
.ev-wall button.polaroid:nth-child(4n+3) { --tilt: -1.5deg; }
.ev-wall button.polaroid:nth-child(4n) { --tilt: 2.5deg; }
.ev-wall button.polaroid:hover img { transform: none; }

/* Clubs page: cards with photo, leads and a Join link */
.cm-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.cm-card { display: grid; grid-template-columns: 116px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.cm-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.cm-card img { width: 116px; height: 100%; min-height: 128px; object-fit: cover; border-radius: 12px; }
.cm-card > div { display: grid; gap: 3px; align-content: start; padding-block: 4px; }
.cm-card .meta { font-size: 12.5px; color: var(--muted); }
.cm-card h3 { font-size: 21px; margin-bottom: 4px; }
.cm-lead { font-size: 14px; color: var(--muted); }
.cm-lead b { color: var(--ink); font-weight: 600; }
.cm-card .arrow { margin-top: 6px; }

/* Elections: timeline and role cards */
.el-time { list-style: none; margin: 0; padding: 8px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.el-time::before { content: ""; position: absolute; left: 8px; right: 8px; top: 16px; height: 3px; background: var(--line); }
.el-time li { position: relative; padding-right: 18px; display: grid; gap: 2px; align-content: start; }
.el-time .dot { width: 17px; height: 17px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); margin-bottom: 12px; position: relative; }
.el-time li.now .dot { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 5px color-mix(in oklab, var(--orange) 25%, transparent); }
.el-time b { font: 400 22px var(--f-display); }
.el-time em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--orange-text); text-transform: uppercase; letter-spacing: .06em; }
.el-time p { color: var(--muted); font-size: 15px; }
.el-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.el-role { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.el-role summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.el-role summary::-webkit-details-marker { display: none; }
.el-role summary b { font: 400 21px var(--f-display); }
.el-role summary span { grid-column: 1; color: var(--muted); font-size: 14.5px; }
.el-role summary i { grid-column: 2; grid-row: 1; font: 400 26px/1 var(--f-body); font-style: normal; color: var(--orange-text); transition: rotate .2s; }
.el-role[open] summary i { rotate: 45deg; }
.el-role[open] { border-color: var(--ink); }
.el-body { font-size: 15px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.el-body h3 { font-size: 16px !important; margin-top: 1em !important; font-family: var(--f-body); font-weight: 700; }
.el-body h3:first-child { display: none; }
.el-body h3:first-child + p { display: none; }
@media (max-width: 760px) { .el-time { grid-template-columns: 1fr 1fr; gap: 22px; } .el-time::before { display: none; } }

/* Council: org chart */
.cc-org { display: grid; gap: 22px; justify-items: center; }
.cc-node { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 4px; text-align: center; justify-items: center; align-content: start; box-shadow: var(--shadow); }
.cc-role { font: 400 20px/1.15 var(--f-display); }
.cc-name { font-weight: 700; }
.cc-name.tba { color: var(--muted); font-style: italic; font-weight: 500; }
.cc-mail { font-size: 14.5px; color: var(--orange-text); }
.cc-top { width: min(100%, 360px); } .cc-top .cc-node { width: 100%; }
.cc-node.big { background: var(--green); border-color: var(--green); color: var(--on-green); }
.cc-node.big .cc-role { font-size: 26px; }
.cc-node.big .cc-name.tba { color: var(--on-green-muted); }
.cc-node.big .cc-mail { color: var(--on-green); }
.cc-vps { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); width: 100%; }
.cc-bottom { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; width: 100%; max-width: 760px; }
.cc-node.soft { background: var(--peach); border: 0; box-shadow: none; }
.cc-elect { margin: 28px auto 0; max-width: 760px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; border: 1.5px dashed color-mix(in oklab, var(--muted) 55%, transparent); border-radius: 18px; padding: 14px 14px 14px 22px; }
.cc-elect p { margin: 0; color: var(--muted); }
.cc-people { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14.5px; color: var(--muted); }
.cc-people b { color: var(--ink); }
.cc-colh { font: 700 13px var(--f-body) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 860px) { .cc-vps, .cc-bottom { grid-template-columns: 1fr; } }
