.edition-line { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-family: var(--font-mono); font-size: .61rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2.5rem; padding: 3rem 0 3.75rem; align-items: center; }
.hero h1 { font: 400 clamp(3.6rem, 5.7vw, 5.5rem)/1.02 var(--font-serif); letter-spacing: -.055em; margin: 1.15rem 0 1.65rem; }
.hero-year { display: block; color: var(--accent-primary); font-style: italic; }
.hero-description { color: var(--text-secondary); font-size: .95rem; max-width: 435px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.9rem; }
.registration-note { margin-top: 1rem; font-size: .7rem; color: var(--text-muted); }
.geometry-figure { color: var(--accent-primary); border-block: 1px solid var(--border-color); padding: 1rem 0; margin-top: .5rem; }
.figure-heading { display: flex; gap: 1rem; justify-content: space-between; font: .55rem var(--font-mono); letter-spacing: .07em; }
.geometry { display: block; width: 100%; height: auto; margin: 1rem 0; }
.geometry-figure figcaption { font: .62rem var(--font-mono); letter-spacing: .03em; color: var(--text-muted); display: flex; gap: 1.2rem; }
.geometry-figure figcaption span { color: var(--accent-primary); }
.contest-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--border-color); padding: 1.5rem 0; }
.contest-facts > div { padding: .3rem 1.8rem; border-right: 1px solid var(--border-color); }
.contest-facts > div:first-child { padding-left: 0; }
.contest-facts > div:last-child { padding-right: 0; border: 0; }
.contest-facts dt { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .35rem; }
.contest-facts dd { font: 400 1.15rem/1.35 var(--font-serif); }
.editorial-section { padding: 4.5rem 0; border-bottom: 1px solid var(--border-color); }
.section-number { display: block; color: var(--accent-primary); font: .62rem var(--font-mono); letter-spacing: .09em; }
.editorial-section h2, .preparation-section h2 { font: 400 clamp(2rem, 3vw, 3rem)/1.12 var(--font-serif); letter-spacing: -.035em; margin-top: 1rem; }
.about-section { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
.section-label { padding-top: .5rem; }
.about-copy { max-width: 690px; }
.about-copy h2 { margin-top: 0; font-size: clamp(2.3rem, 4vw, 3.5rem); }
.about-copy p { margin-top: 1.25rem; color: var(--text-secondary); font-size: .95rem; max-width: 590px; }
.about-copy .text-link { margin-top: 1.5rem; }
.section-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; }
.timezone-switch { display: inline-flex; border: 1px solid var(--border-color); border-radius: 3px; padding: 3px; }
.timezone-switch button { font-size: .7rem; padding: .55rem .85rem; border: 0; background: transparent; color: var(--text-secondary); min-height: 40px; cursor: pointer; border-radius: 2px; }
.timezone-switch button[aria-pressed="true"] { background: var(--text-primary); color: var(--bg-surface); }
.schedule-caption { font-size: .75rem; color: var(--text-muted); margin-bottom: 1.4rem; }
.schedule-table-wrap { overflow-x: auto; }
.schedule-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .85rem; }
.schedule-table thead { border-block: 1px solid var(--border-color); }
.schedule-table th, .schedule-table td { padding: 1.2rem .8rem; }
.schedule-table th:first-child { padding-left: 0; }
.schedule-table thead th { font-size: .6rem; color: var(--text-muted); letter-spacing: .1em; }
.schedule-table tbody tr { border-bottom: 1px solid var(--border-color); }
.schedule-table tbody th { font-size: .85rem; text-transform: none; letter-spacing: normal; font-weight: 500; }
.schedule-table td { color: var(--text-secondary); }
.schedule-table td:nth-child(3) { font-family: var(--font-mono); font-size: .75rem; white-space: nowrap; }
.schedule-table td:last-child { font-size: .75rem; }
.schedule-dot { display: inline-block; width: 5px; height: 5px; margin-right: .8rem; border-radius: 50%; background: var(--text-muted); vertical-align: middle; }
.exam-row .schedule-dot { background: var(--accent-primary); }
.schedule-footnote { margin-top: 1.1rem; color: var(--text-muted); font-size: .72rem; max-width: 740px; }
.format-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 2.5rem; gap: 2rem; }
.format-grid article { border-top: 1px solid var(--border-color); padding-top: 1.3rem; }
.format-index { font: italic 1.6rem var(--font-serif); color: var(--accent-primary); }
.format-grid h3 { font: 400 1.3rem/1.3 var(--font-serif); margin: 1rem 0 .75rem; }
.format-grid p { font-size: .82rem; color: var(--text-secondary); line-height: 1.85; }
.preparation-section { display: grid; grid-template-columns: 1.3fr 1fr; gap: 5rem; background: var(--bg-subtle); margin-block: 3.5rem 0; padding: 3.5rem; align-items: center; }
.preparation-copy > p { color: var(--text-secondary); font-size: .9rem; margin-top: 1.2rem; }
.preparation-copy .archive-note { font-size: .72rem; color: var(--text-muted); }
.past-paper { color: var(--text-primary); background: var(--bg-surface); border: 1px solid var(--border-color); border-top: 3px solid var(--accent-primary); padding: 1.5rem; display: flex; flex-direction: column; text-decoration: none; transition: border-color .15s; }
.past-paper:hover { border-color: var(--accent-primary); }
.paper-meta { font: .58rem var(--font-mono); letter-spacing: .05em; color: var(--text-muted); display: flex; justify-content: space-between; gap: 1rem; }
.paper-meta > span { font-size: 1rem; color: var(--accent-primary); }
.paper-year { font: 400 4.5rem/1.3 var(--font-serif); letter-spacing: -.06em; margin: .8rem 0 .3rem; }
.paper-name { font: 400 1.35rem var(--font-serif); }
.paper-detail { font-size: .7rem; color: var(--text-muted); margin: .5rem 0 1.5rem; }
.paper-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .72rem; padding-top: .85rem; border-top: 1px solid var(--border-color); color: var(--accent-primary); }
.paper-bottom > span { color: var(--text-muted); }
.faq-section { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; }
.faq-list { border-top: 1px solid var(--border-color); }
.faq-list details { border-bottom: 1px solid var(--border-color); }
.faq-list summary { cursor: pointer; padding: 1.2rem 1.8rem 1.2rem 0; font-size: .9rem; position: relative; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: .25rem; color: var(--accent-primary); font-size: 1.15rem; top: .95rem; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { font-size: .83rem; color: var(--text-secondary); padding-bottom: 1.3rem; padding-right: 1.5rem; }
.closing-note { padding: 4.5rem 0; text-align: center; }
.closing-note h2 { font: 400 clamp(2.2rem, 4vw, 3.5rem)/1.2 var(--font-serif); letter-spacing: -.04em; margin: .8rem 0 1.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1050px) { .hero { gap: 1rem; } .format-grid { gap: 1.25rem; } .contest-facts > div { padding-inline: 1.25rem; } .preparation-section { gap: 2.5rem; padding: 2.5rem; } }
@media (max-width: 760px) {
  .edition-line { font-size: .52rem; }
  .edition-line span:first-child { max-width: 160px; }
  .edition-line span:last-child { text-align: right; }
  .hero { grid-template-columns: 1fr; padding-top: 2rem; gap: 2.5rem; }
  .hero h1 { font-size: clamp(3.2rem, 10vw, 4.8rem); }
  .hero-description { max-width: 470px; }
  .geometry-figure { width: 100%; max-width: 460px; margin-inline: auto; }
  .contest-facts { grid-template-columns: 1fr 1fr; padding: 0; }
  .contest-facts > div { padding: 1.25rem !important; }
  .contest-facts > div:nth-child(even) { border-right: 0; }
  .contest-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--border-color); }
  .contest-facts > div:nth-child(odd) { padding-left: 0 !important; }
  .editorial-section { padding-block: 3rem; }
  .about-section, .faq-section { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-copy h2 { margin-top: .5rem; }
  .schedule-table { min-width: 0; }
  .schedule-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .schedule-table tbody { display: block; border-top: 1px solid var(--border-color); }
  .schedule-table tbody tr { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding-block: 1.1rem; }
  .schedule-table tbody th { grid-column: 1 / -1; padding: 0 0 .4rem; }
  .schedule-table tbody td { padding: .15rem 0; }
  .schedule-table tbody td:last-child { grid-column: 1 / -1; }
  .format-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .preparation-section { grid-template-columns: minmax(0, 1fr); padding: 1.5rem; margin-top: 2rem; }
  .closing-note { padding-block: 3.5rem; }
}
@media (max-width: 380px) { .hero-actions { align-items: flex-start; flex-direction: column; gap: 1rem; } .contest-facts dd { font-size: 1rem; } .format-grid { grid-template-columns: 1fr; } }
/* Compact Past Papers Archive with Year Tabs */
.past-papers-wrapper { display: flex; flex-direction: column; gap: .85rem; min-width: 0; }
.paper-year-tabs { display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 1px solid var(--border-color); padding-bottom: .65rem; }
.paper-year-tab { font: .7rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: .35rem .7rem; border: 1px solid var(--border-color); background: var(--bg-surface); color: var(--text-secondary); border-radius: 2px; cursor: pointer; transition: all .15s; }
.paper-year-tab:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.paper-year-tab[aria-selected="true"] { background: var(--text-primary); color: var(--bg-surface); border-color: var(--text-primary); }
.past-papers-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: .85rem; max-height: 310px; overflow-y: auto; padding-right: .25rem; scrollbar-width: thin; }
/* Scale down card proportions when inside the multi-paper archive */
.past-papers-list .past-paper { padding: .9rem 1.1rem; }
.paper-body-row { display: flex; align-items: center; gap: .9rem; margin: .45rem 0 .65rem; }
.past-papers-list .paper-year { font: 400 2.2rem/1 var(--font-serif); letter-spacing: -.05em; color: var(--accent-primary); margin: 0; padding-right: .85rem; border-right: 1px solid var(--border-color); flex-shrink: 0; }
.paper-title-group { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.past-papers-list .paper-name { font: 600 .98rem/1.2 var(--font-serif); color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.past-papers-list .paper-detail { font-size: .7rem; color: var(--text-muted); margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.past-papers-list .paper-bottom { padding-top: .5rem; font-size: .68rem; }
