/* Multi-page additions, Nov 23 2026. Builds on styles.css variables. */
[hidden] { display: none !important; }

/* skip link and focus */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--glow); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-family: var(--font-display); font-weight: 700; }
.skip-link:focus { left: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--glow); outline-offset: 3px;
}
.section--light a:focus-visible, .section--light2 a:focus-visible, .page-hero a:focus-visible { outline-color: var(--ember); }

/* header: utility row + wider breakpoint for the six-item nav */
.site-header { flex-wrap: wrap; row-gap: 0; }
.utility {
  order: -1; flex: 1 0 100%; display: flex; justify-content: flex-end; gap: 22px;
  margin: -6px 0 6px; padding-bottom: 6px; border-bottom: 1px solid rgba(167,158,147,.18);
}
.utility a, .nav .nav-util a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--stone); text-decoration: none;
}
.utility a:hover, .utility a:focus-visible { color: var(--glow); }
.nav .nav-util { display: none; }
.nav a[aria-current="page"] { color: var(--glow); }
.nav .nav-cta { color: var(--parchment); }
.site-header .brand img { max-height: 40px; width: auto; }

@media (max-width: 1240px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; margin-right: 12px; padding: 0 11px;
    background: transparent; border: 1px solid var(--stone-dark); border-radius: 8px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--parchment); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav a:not(.btn) { display: none; }
  .nav.is-open {
    position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 80px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-top: 1px solid var(--ink-2);
    padding: 8px 24px 20px; box-shadow: 0 18px 40px rgba(0,0,0,.45);
  }
  .nav.is-open a:not(.btn) { display: block; padding: 14px 0; font-size: 13px; border-bottom: 1px solid var(--ink-2); }
  .nav.is-open .nav-util { display: flex; flex-wrap: wrap; gap: 0 18px; padding-top: 8px; }
  .nav.is-open .nav-util a { border-bottom: 0; padding: 10px 0; }
  .nav.is-open a.btn { margin-top: 14px; text-align: center; }
  .nav:not(.is-open) a.btn { padding: 10px 14px; }
}
@media (max-width: 700px) { .utility { display: none; } }

/* page hero for inner pages */
.page-hero { background: var(--ink); color: var(--parchment); padding: 170px 0 70px; position: relative; overflow: hidden; }
.page-hero .section-inner { position: relative; z-index: 1; }
.page-hero .lede { color: var(--stone); max-width: 760px; }
.page-hero .h-section { color: var(--parchment); }
.page-hero--dark .world-bg { opacity: .45; }
@media (max-width: 700px) { .page-hero { padding-top: 130px; } }

.narrow { max-width: 820px; }
.h-sub { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); color: var(--ink); margin: 40px 0 12px; line-height: 1.15; }
.h-sub.small { font-size: 21px; }
.h-sub .count { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--stone-dark); margin-left: 10px; vertical-align: middle; }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin: 0 0 6px; color: var(--ink); }
.section--light p, .section--light2 p, .section--light li, .section--light2 li { font-size: 18px; line-height: 1.6; color: #3d3428; }
.fine, .section--light .fine, .section--light2 .fine { font-size: 15px; color: #5a5044; line-height: 1.55; }
.text-link { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.section--dark .text-link { color: var(--glow); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }
.cta-row.small { margin: 14px 0 0; }
.btn--small { font-size: 14px; padding: 9px 16px; }
.section--light .btn--ghost, .section--light2 .btn--ghost { color: var(--ink); border-color: var(--ink); }
.hero-cta-row { flex-wrap: wrap; }

/* values */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 30px 0; }
.value { background: #fffaf2; border: 1px solid var(--parchment-3); border-radius: 14px; padding: 24px; }
.value h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin: 0 0 8px; color: var(--ink); }
.value p { font-size: 17px !important; margin: 0; }
@media (max-width: 980px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }

/* degree level cards on home */
.level-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0; }
.level-card { display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: 14px; background: var(--ink); color: var(--parchment); text-decoration: none; transition: transform .25s var(--ease); }
.level-card:hover { transform: translateY(-3px); }
.level-card .num { font-family: var(--font-display); font-weight: 800; font-size: 54px; color: var(--glow); line-height: 1; }
.level-card .what { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.level-card .sub { color: var(--stone); font-size: 16px; }
@media (max-width: 800px) { .level-cards { grid-template-columns: 1fr; } }

/* three steps */
.steps3 { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; margin: 30px 0; }
.steps3 li { counter-increment: s; position: relative; padding: 22px 22px 22px 70px; border: 1px solid rgba(255,196,107,.35); border-radius: 14px; }
.steps3 li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%; background: var(--ember); color: var(--ink); font-family: var(--font-display); font-weight: 800; display: grid; place-items: center; }
.steps3 b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--parchment); }
.steps3 span { color: var(--stone); font-size: 16px; }
.steps3--light li { border-color: var(--parchment-3); background: #fffaf2; }
.steps3--light b { color: var(--ink); }
.steps3--light span { color: #3d3428; }
@media (max-width: 800px) { .steps3 { grid-template-columns: 1fr; } }

.steps-list { padding-left: 22px; }
.steps-list li { margin-bottom: 12px; }

/* deadlines */
.deadlines { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.deadlines li { background: var(--ink); color: var(--parchment); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; }
.deadlines .term { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.deadlines .date { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--glow); }
.section--light .deadlines li { color: var(--parchment); }
@media (max-width: 560px) { .deadlines { grid-template-columns: 1fr; } }

/* fee table */
.table-wrap { overflow-x: auto; }
table.fees { width: 100%; border-collapse: collapse; font-size: 17px; background: #fffaf2; border-radius: 12px; overflow: hidden; }
table.fees caption { text-align: left; font-size: 15px; color: #5a5044; padding-bottom: 10px; caption-side: top; }
table.fees th, table.fees td { padding: 12px 14px; border-bottom: 1px solid var(--parchment-3); text-align: left; }
table.fees td { font-family: var(--font-mono); font-size: 15px; }
table.fees thead th { background: var(--ink); color: var(--parchment); font-family: var(--font-display); }
table.fees tfoot th, table.fees tfoot td { font-weight: 700; background: var(--parchment-2); }

/* estimator */
.estimator { background: #fffaf2; border: 1px solid var(--parchment-3); border-radius: 16px; padding: clamp(18px, 3vw, 32px); }
.estimator .h-sub { margin-top: 0; }
.estimator small { display: block; font-size: 14px; color: #5a5044; margin-top: 4px; }
.est-out dl { margin: 20px 0 0; display: grid; gap: 0; }
.est-out dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--parchment-3); }
.est-out dt { font-size: 17px; color: #3d3428; }
.est-out dd { margin: 0; font-family: var(--font-mono); font-size: 16px; color: var(--ink); }
.est-out .sub dt, .est-out .sub dd { font-weight: 700; }
.est-out .grand { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 6px; }
.est-out .grand dt { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink); }
.est-out .grand dd { font-size: 22px; font-weight: 700; color: var(--ink); }
.est-dr { background: var(--parchment-2); padding: 14px; border-radius: 10px; }

/* program directory */
.prog-filter { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: end; margin-bottom: 10px; }
.prog-filter .fine { grid-column: 1 / -1; margin: 0; }
.level-pick { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.level-pick legend { font-size: 15px; color: #5a5044; margin-bottom: 6px; padding: 0; }
.level-pick label { font-size: 17px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
@media (max-width: 720px) { .prog-filter { grid-template-columns: 1fr; } }
.prog-level[hidden] { display: none; }
details.program { background: #fffaf2; border: 1px solid var(--parchment-3); border-radius: 12px; margin: 10px 0; }
details.program[hidden] { display: none; }
details.program summary { cursor: pointer; padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; list-style: none; }
details.program summary::-webkit-details-marker { display: none; }
details.program summary::after { content: "+"; margin-left: auto; font-family: var(--font-display); font-size: 22px; color: var(--ember); }
details.program[open] summary::after { content: "–"; }
details.program .abbr { font-family: var(--font-mono); font-size: 13px; color: var(--ink); background: var(--parchment-2); padding: 3px 8px; border-radius: 6px; min-width: 52px; text-align: center; }
details.program .pname { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); }
details.program .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone-dark); }
.program-body { padding: 0 18px 18px; }
.program-body .src { font-size: 14px !important; color: #5a5044 !important; }
.program-body .pending { font-style: italic; }

.notice { background: var(--parchment-2); border-left: 4px solid var(--ember); border-radius: 10px; padding: 6px 22px 14px; margin: 34px 0; }
.notice .h-sub { margin-top: 18px; }
.checks-list { padding-left: 22px; }

/* inner-page FAQ uses the existing .faq look */
.section--light .faq, .section--light2 .faq { margin-bottom: 10px; }

/* footer tweaks */
.site-footer .footer-col h2 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin: 0 0 12px; font-weight: 500; }
.footer-give { margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  .level-card { transition: none; }
}

/* consent line: keep the Privacy Notice link inside the sentence */
.choice.consent { display: block; position: relative; padding-left: 28px; }
.choice.consent input { position: absolute; left: 0; top: 0; margin-top: 4px; }
