/* ------------------------------------------------------------------
   AIA Strathfield · Year 11 2027 Subject Marketplace
   Palette from the Academy crest: deep navy, sky, and the gold of the
   "Advancement · Determination" ribbon. No external fonts or scripts.
------------------------------------------------------------------- */
:root {
  --navy: #123b63;
  --navy-deep: #0b2846;
  --blue: #2f6fae;
  --sky: #dce9f5;
  --sky-light: #eef4fa;
  --paper: #f7f9fc;
  --white: #ffffff;
  --ink: #1b2a3a;
  --muted: #5b6b7c;
  --line: #d3dde8;
  --gold: #c89b2a;
  --gold-soft: #f4e8c6;
  --green: #2c7a4b;
  --red: #a63a3a;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(18, 59, 99, .06), 0 8px 24px rgba(18, 59, 99, .08);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; color: var(--navy-deep); margin: 0 0 .4em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 0; }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.05rem; font-family: var(--body); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); font-size: .8rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { color: var(--navy-deep); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy-deep); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Eyebrow / labels ------------------------------------------------ */
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: .6rem; }
.eyebrow.gold { color: var(--gold); }

/* Header ---------------------------------------------------------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-deep); min-width: 0; }
.brand > span { display: block; line-height: 1.25; }
.brand img { width: 46px; height: 42px; object-fit: contain; }
.brand .b1 { white-space: nowrap; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.brand .b2 { font-family: var(--display); font-size: 1.05rem; font-weight: 600; line-height: 1.2; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: nowrap; flex-shrink: 0; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 6px; font-size: .92rem; white-space: nowrap; font-weight: 500; }
.nav a:hover { background: var(--sky-light); color: var(--navy); }
.nav a[aria-current="page"], .nav a.active { background: var(--navy); color: var(--white); }
.nav a.ext { color: var(--gold); font-weight: 700; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font: inherit; cursor: pointer; }
@media (max-width: 940px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; padding-bottom: 12px; }
  .nav.open { display: flex; }
  .site-header .wrap { flex-wrap: wrap; }
  .brand { flex: 1 1 0; }
  .brand .b1 { white-space: normal; font-size: .6rem; }
  .brand .b2 { font-size: .95rem; }
}

/* Section sub-navigation ----------------------------------------- */
.subnav { background: var(--navy); color: var(--white); }
.subnav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav a { color: rgba(255,255,255,.82); text-decoration: none; padding: 12px 14px; font-size: .9rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--white); }
.subnav a.active { color: var(--white); border-bottom-color: var(--gold); font-weight: 600; }

/* Hero ----------------------------------------------------------- */
.hero { background: var(--navy-deep); color: var(--white); padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 6vw, 72px); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -8%; top: -30%; width: 46vw; height: 160%; background: radial-gradient(closest-side, rgba(200,155,42,.22), transparent 70%); pointer-events: none; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero p.lead { font-size: 1.2rem; color: rgba(255,255,255,.82); max-width: 58ch; margin-bottom: 0; }
.hero .eyebrow { color: var(--gold); }
.hero.compact { padding: clamp(28px, 4vw, 48px) 0; }
.hero.compact h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: none; }

/* Layout ---------------------------------------------------------- */
main { padding: clamp(28px, 5vw, 56px) 0 clamp(48px, 7vw, 80px); }
.section { margin-bottom: clamp(36px, 6vw, 64px); }
.section > h2 { padding-bottom: .35em; border-bottom: 2px solid var(--gold); display: inline-block; margin-bottom: 1rem; }
.prose { max-width: 70ch; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* Cards ----------------------------------------------------------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.pathway { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border-top: 6px solid var(--gold); transition: transform .18s ease, box-shadow .18s ease; min-height: 260px; }
.pathway:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(18,59,99,.16); color: var(--ink); }
.pathway .num { font-family: var(--display); font-size: 2.6rem; color: var(--gold); line-height: 1; margin-bottom: 10px; }
.pathway h3 { font-size: 1.5rem; }
.pathway p { color: var(--muted); flex: 1; }
.pathway .go { color: var(--navy); font-weight: 600; }
.pathway .go::after { content: " →"; }
.pathway.soon { border-top-color: var(--line); }
.pathway.soon .num { color: var(--muted); }
.edval { display: flex; align-items: center; gap: 24px; background: var(--navy); color: var(--white); border-color: var(--navy); border-top: 6px solid var(--gold); text-decoration: none; margin-top: 24px; }
.edval:hover { background: var(--navy-deep); color: var(--white); }
.edval .num { font-family: var(--display); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.edval h3 { color: var(--white); margin-bottom: 4px; }
.edval p { color: rgba(255,255,255,.8); margin: 0; }
.edval .go { margin-left: auto; white-space: nowrap; background: var(--gold); color: var(--navy-deep); font-weight: 700; padding: 10px 18px; border-radius: 6px; }
@media (max-width: 620px) { .edval { flex-direction: column; align-items: flex-start; } .edval .go { margin-left: 0; } }

/* Subject "ticket" cards ------------------------------------------ */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.ticket { display: grid; grid-template-columns: 76px 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.ticket:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(18,59,99,.15); color: var(--ink); }
.ticket .stub { background: var(--sky); border-right: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 8px; }
.ticket .stub b { font-family: var(--display); font-size: 2rem; color: var(--navy); line-height: 1; }
.ticket .stub span { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ticket.common .stub { background: var(--gold-soft); }
.ticket .body { padding: 14px 16px; }
.ticket h3 { font-size: 1.15rem; margin: 0 0 4px; }
.ticket .group { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.ticket .tag { display: inline-block; margin-top: 8px; font-size: .72rem; padding: 3px 8px; border-radius: 999px; background: var(--sky-light); color: var(--navy); }
.ticket .tag.new { background: #e4f3e9; color: var(--green); }

/* Status chips ---------------------------------------------------- */
.chip { display: inline-block; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--sky-light); color: var(--navy); }
.chip.new { background: #e4f3e9; color: var(--green); }
.chip.gold { background: var(--gold-soft); color: #7a5a10; }

/* Facts table on subject pages ----------------------------------- */
.facts { display: grid; grid-template-columns: 160px 1fr; gap: 8px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 28px; }
.facts dt { font-weight: 700; color: var(--navy); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 2px 0; } .facts dd { margin-bottom: 10px; } }

.callout { background: var(--sky-light); border-left: 5px solid var(--blue); border-radius: 6px; padding: 16px 20px; margin: 0 0 1.4em; }
.callout.gold { background: var(--gold-soft); border-left-color: var(--gold); }
.callout.plain { background: var(--white); border-left-color: var(--line); }
.callout p:last-child { margin-bottom: 0; }
.callout .eyebrow { margin-bottom: .3rem; }

/* Tables ---------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 1.4em; font-size: .97rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sky); color: var(--navy-deep); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; width: 110px; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 700; background: var(--sky-light); }

/* Two-column Y11/Y12 -------------------------------------------- */
.years { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.years .card { padding: 20px 22px; }
.years .card h3 { display: flex; align-items: baseline; gap: 10px; }
.years .card h3 small { font-family: var(--body); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
@media (max-width: 700px) { .years { grid-template-columns: 1fr; } }

/* Timeline ------------------------------------------------------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.timeline li { position: relative; padding: 18px 16px 8px 0; border-top: 3px solid var(--sky); }
.timeline li::before { content: ""; position: absolute; top: -8px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); border: 3px solid var(--paper); }
.timeline .when { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.timeline .what { font-size: .95rem; }
@media (max-width: 820px) { .timeline { grid-template-columns: 1fr; } .timeline li { border-top: 0; border-left: 3px solid var(--sky); padding: 4px 0 14px 20px; } .timeline li::before { top: 6px; left: -8px; } }

/* Pattern builder (signature interaction) ----------------------- */
.builder { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.builder-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
@media (max-width: 800px) { .builder-grid { grid-template-columns: 1fr; } }
.builder fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.builder legend { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin-bottom: 8px; }
.builder label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 6px; cursor: pointer; background: var(--paper); }
.builder label.fixed { background: var(--gold-soft); border-color: var(--gold-soft); cursor: default; }
.builder label:has(input:checked) { border-color: var(--blue); background: var(--sky-light); }
.builder input { width: 18px; height: 18px; accent-color: var(--navy); }
.builder label .u { margin-left: auto; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.builder .summary { background: var(--navy-deep); color: var(--white); border-radius: var(--radius); padding: 22px; position: sticky; top: 90px; }
.builder .summary .big { font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--gold); }
.builder .summary .big small { font-size: 1rem; color: rgba(255,255,255,.7); font-family: var(--body); margin-left: 6px; }
.builder .summary ul { list-style: none; padding: 0; margin: 14px 0 0; font-size: .9rem; }
.builder .summary li { padding: 6px 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; gap: 8px; }
.builder .summary li::before { content: "○"; color: rgba(255,255,255,.5); }
.builder .summary li.ok::before { content: "●"; color: #7bd39a; }
.builder .summary li.warn::before { content: "!"; color: var(--gold); font-weight: 700; }
.builder .note { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* Slides / decks -------------------------------------------------- */
.deck-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.btn { font: inherit; font-weight: 600; font-size: .92rem; border: 1px solid var(--navy); background: var(--navy); color: var(--white); padding: 8px 14px; border-radius: 6px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--navy-deep); color: var(--white); }
.btn.ghost { background: var(--white); color: var(--navy); }
.btn.ghost:hover { background: var(--sky-light); }
.btn:disabled { opacity: .4; cursor: default; }
.deck-count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; }
.deck { display: grid; gap: 16px; }
.slide { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px 22px; box-shadow: var(--shadow); position: relative; }
.slide::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--gold); border-radius: var(--radius) 0 0 var(--radius); }
.slide .n { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.slide h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.slide.title { background: var(--navy-deep); color: var(--white); border-color: var(--navy-deep); }
.slide.title h3 { color: var(--white); font-size: 2rem; }
.slide.title .n { color: var(--gold); }
.slide.title li { color: rgba(255,255,255,.85); }
.slide ul { margin-bottom: 0; }
.deck.single .slide { display: none; }
.deck.single .slide.current { display: block; min-height: 380px; }
.deck.single .slide.current h3 { font-size: 1.9rem; }
.deck.single .slide.current li { font-size: 1.12rem; margin-bottom: .55em; }
.deck-source { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* Image slide viewer ---------------------------------------------- */
.viewer { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.viewer .stage { position: relative; background: var(--navy-deep); border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.viewer .stage img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
.viewer .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; border-radius: 8px; background: rgba(11,40,70,.55); color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.viewer .arrow.prev { left: 10px; } .viewer .arrow.next { right: 10px; }
.viewer .stage:hover .arrow, .viewer:focus-within .arrow { opacity: 1; }
.viewer .arrow:disabled { opacity: 0 !important; cursor: default; }
.viewer .deck-controls { margin: 12px 0 0; }
.viewer .deck-hint { font-size: .82rem; color: var(--muted); margin-left: auto; }
.viewer .thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.viewer .thumb { position: relative; padding: 0; border: 2px solid var(--line); border-radius: 6px; background: var(--white); cursor: pointer; overflow: hidden; }
.viewer .thumb img { display: block; width: 100%; height: auto; }
.viewer .thumb span { position: absolute; left: 6px; bottom: 6px; font-size: .7rem; font-weight: 700; background: var(--navy-deep); color: var(--white); padding: 1px 6px; border-radius: 999px; }
.viewer .thumb.current { border-color: var(--gold); }
.viewer:fullscreen { background: var(--navy-deep); padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.viewer:fullscreen .stage img { max-height: 84vh; }
.viewer:fullscreen .deck-controls { justify-content: center; color: var(--white); }
.viewer:fullscreen .deck-count, .viewer:fullscreen .deck-hint { color: rgba(255,255,255,.8); }
.viewer:fullscreen .thumbs, .viewer:fullscreen .deck-source { display: none; }
.transcript { margin-top: 18px; }
.transcript summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 10px 0; }
.transcript > div { margin-top: 10px; }

/* Placeholder for department decks not yet supplied -------------- */
.pending { border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px; background: var(--white); }
.pending .eyebrow { color: var(--muted); }

/* Prev/next subject ---------------------------------------------- */
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; font-weight: 600; }
.pager a span { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pager a.next { text-align: right; margin-left: auto; }

/* Contacts ------------------------------------------------------ */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contacts .card { padding: 18px 20px; }
.contacts .card b { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--navy-deep); }
.contacts .card span { color: var(--muted); font-size: .92rem; }

/* Footer -------------------------------------------------------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 28px 0; font-size: .88rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }
.site-footer a { color: var(--muted); }

/* Print --------------------------------------------------------- */
@media print {
  .site-header, .subnav, .deck-controls, .pager, .site-footer, .nav-toggle, .builder .summary, .viewer .arrow, .viewer .thumbs { display: none !important; }
  .transcript { display: block; } .transcript[open] summary { display: none; }
  .deck.single .slide { display: block !important; }
  body { background: #fff; font-size: 11pt; }
  .hero { background: #fff; color: #000; padding: 0 0 12pt; }
  .hero h1 { color: #000; }
  .card, .slide, .ticket, table { box-shadow: none; break-inside: avoid; }
}
