/* =====================================================================
   GITP Council – public pages (formal institutional design)
   Loaded after site.css. Navy, maroon and antique gold on ivory;
   Libre Baskerville headings, Source Sans 3 text.
   ===================================================================== */
body.pub { background: var(--white); }
.pub h1, .pub h2, .pub h3 { font-weight: 700; letter-spacing: -.005em; }
.pub h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); }
.pub h3 { font-size: 1.12rem; }
.kicker { font: 700 .78rem/1.2 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--crimson); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.on-dark .kicker, .kicker.light { color: var(--gold-bright); }
.rule { border: 0; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); margin: 0 0 22px; }

/* ---------- utility bar ---------- */
.utility { background: var(--navy-deep); color: #c3cbe0; font-size: .86rem; }
.utility .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; flex-wrap: wrap; }
.utility a { color: #e6eaf5; text-decoration: none; }
.utility a:hover { color: var(--gold-bright); }
.utility .u-left, .utility .u-right { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.utility .lang-toggle { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 4px; padding: 2px 10px; font: 600 .82rem var(--f-body); cursor: pointer; }
.utility .u-acc .btn { padding: 3px 12px; font-size: .82rem; }
@media (max-width: 760px) { .utility .u-hide { display: none; } }

/* ---------- masthead ---------- */
.masthead { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 10px rgba(14,33,72,.06); }
.masthead .wrap { width: min(1320px, 100% - 40px); display: flex; align-items: center; gap: 18px; min-height: 84px; }
.m-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); margin-right: auto; }
.m-brand img { width: 62px; height: 62px; flex: none; }
.m-brand .t1 { display: block; font: 700 1.08rem/1.2 var(--f-display); max-width: 330px; color: var(--navy); }
.m-brand .t2 { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--crimson); font-weight: 700; margin-top: 3px; }
.m-nav { display: flex; align-items: center; gap: 2px; }
.m-nav > a, .m-nav .dd > button { font: 600 .93rem var(--f-body); color: var(--navy); text-decoration: none; padding: 10px 9px; white-space: nowrap; border-radius: 4px; background: none; border: 0; cursor: pointer; position: relative; }
.m-nav > a:hover, .m-nav .dd > button:hover { color: var(--crimson); }
.m-nav > a[aria-current=page]::after, .m-nav .dd > button.cur::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--gold); }
.m-nav .dd { position: relative; }
.m-nav .caret { display: inline-block; margin-left: 5px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: -1px; }
.m-nav .dd-menu { position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: var(--shadow); padding: 6px; display: none; z-index: 50; }
.m-nav .dd:hover .dd-menu, .m-nav .dd:focus-within .dd-menu, .m-nav .dd.open .dd-menu { display: block; }
.m-nav .dd-menu a { display: block; padding: 9px 12px; color: var(--navy); text-decoration: none; border-radius: 4px; font-weight: 600; }
.m-nav .dd-menu a small { display: block; font-weight: 400; color: var(--muted); }
.m-nav .dd-menu a:hover { background: var(--paper); color: var(--crimson); }
.m-nav .btn { margin-left: 8px; }
.m-nav > a.btn { color: #fff; background: var(--crimson); padding: 9px 16px; }
.m-nav > a.btn:hover { color: #fff; background: var(--crimson-deep); }
.m-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; cursor: pointer; }
.m-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; }
@media (max-width: 1300px) {
  .m-toggle { display: block; }
  .m-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 20px 18px; border-bottom: 3px solid var(--gold); box-shadow: var(--shadow); max-height: calc(100vh - 120px); overflow: auto; }
  .m-nav.open { display: flex; }
  .m-nav > a, .m-nav .dd > button { padding: 12px 6px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; border-radius: 0; }
  .m-nav .dd-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .m-nav .caret { display: none; }
  .m-nav .btn { margin: 12px 0 0; }
  .m-nav > a[aria-current=page]::after { display: none; }
}
@media (max-width: 520px) { .m-brand img { width: 48px; height: 48px; } .m-brand .t1 { font-size: .98rem; } .masthead .wrap { min-height: 72px; } }

/* ---------- ticker ---------- */
.ticker { background: var(--crimson); color: #fff; border-bottom: 2px solid var(--gold); }
.ticker .wrap { display: flex; align-items: stretch; min-height: 42px; }
.ticker-label { flex: none; background: var(--gold); color: var(--navy-deep); font: 700 .8rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; padding: 0 16px; position: relative; }
.ticker-label::after { content: ""; position: absolute; right: -14px; top: 0; bottom: 0; border-left: 14px solid var(--gold); border-top: 21px solid transparent; border-bottom: 21px solid transparent; }
.ticker-view { overflow: hidden; flex: 1; position: relative; margin-left: 22px; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-track { display: inline-flex; gap: 0; white-space: nowrap; height: 100%; align-items: center; animation: tick var(--tick-dur, 40s) linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.paused .ticker-track { animation-play-state: paused; }
.ticker-track a, .ticker-track span.item { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 0 28px; position: relative; }
.ticker-track a:hover { text-decoration: underline; color: #fff; }
.ticker-track .dup { display: contents; }
.ticker-track .item::before { content: "◆"; position: absolute; left: -6px; color: var(--gold-bright); font-size: .6rem; top: 50%; transform: translateY(-50%); }
.ticker-track .new { background: var(--gold-bright); color: var(--navy-deep); font-size: .68rem; font-weight: 700; padding: 2px 6px; border-radius: 3px; margin-right: 8px; letter-spacing: .06em; vertical-align: 2px; }
.ticker-pause { flex: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 0 12px; font-size: .9rem; opacity: .85; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; flex-wrap: wrap; white-space: normal; } .ticker-track .dup { display: none; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: var(--navy); color: #dfe5f3; padding: 46px 0 40px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 92% 20%, rgba(184,137,43,.22), transparent 38%),
  repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 10px; }
.page-hero p { max-width: 70ch; margin: 0; font-size: 1.08rem; }
.crumbs { font-size: .85rem; margin-bottom: 12px; color: #aab4cf; }
.crumbs a { color: var(--gold-bright); text-decoration: none; }

/* ---------- home hero ---------- */
.h-hero { background: var(--navy); color: #dfe5f3; position: relative; overflow: hidden; }
.h-hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 80% 30%, rgba(184,137,43,.25), transparent 42%),
  radial-gradient(circle at 10% 90%, rgba(122,27,44,.45), transparent 45%),
  repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 16px); }
.h-hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; padding: 64px 0 70px; }
.h-hero h1 { color: #fff; font-size: clamp(2rem, 4.3vw, 3.2rem); line-height: 1.12; margin: 0 0 18px; }
.h-hero h1 em { font-style: italic; color: var(--gold-bright); font-weight: 400; }
.h-hero .lede { font-size: 1.15rem; max-width: 56ch; margin-bottom: 26px; }
.h-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.h-hero .motto { margin-top: 26px; font: italic 400 1rem var(--f-display); color: var(--gold-bright); }
.next-card { background: rgba(255,255,255,.06); border: 1px solid rgba(217,178,90,.45); border-radius: 6px; padding: 26px; backdrop-filter: blur(2px); }
.next-card .seal { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.14); }
.next-card .seal img { width: 70px; height: 70px; }
.next-card .seal b { display: block; font: 700 1.05rem var(--f-display); color: #fff; }
.next-card .seal span { font-size: .88rem; }
.next-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.next-card li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.next-card .dt { background: var(--gold); color: var(--navy-deep); text-align: center; border-radius: 4px; padding: 6px 0; font-weight: 700; line-height: 1.1; }
.next-card .dt small { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.next-card .dt b { font-size: 1.25rem; }
.next-card li a { color: #fff; font-weight: 600; text-decoration: none; }
.next-card li a:hover { color: var(--gold-bright); }
.next-card li span { display: block; font-size: .85rem; color: #aab4cf; }
@media (max-width: 900px) { .h-hero .wrap { grid-template-columns: 1fr; padding: 44px 0 50px; gap: 30px; } }

/* ---------- quick links ---------- */
.quick { position: relative; z-index: 2; margin-top: -34px; }
.quick .grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 6px; overflow: hidden; }
.quick a { padding: 22px 22px 20px; text-decoration: none; color: var(--navy); border-right: 1px solid var(--line); display: block; transition: background .15s; }
.quick a:last-child { border-right: 0; }
.quick a:hover { background: var(--paper); }
.quick .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-pale); color: var(--crimson); margin-bottom: 10px; }
.quick b { display: block; font: 700 1.02rem var(--f-display); }
.quick span { font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .quick .grid { grid-template-columns: 1fr 1fr; } .quick a:nth-child(2) { border-right: 0; } .quick a:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- sections ---------- */
.sec { padding: 72px 0; }
.sec.tint { background: var(--paper); }
.sec.navy { background: var(--navy); color: #dfe5f3; }
.sec.navy h2, .sec.navy h3 { color: #fff; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 8px 0 0; color: var(--muted); max-width: 64ch; }
.sec.navy .sec-head p { color: #b9c2da; }
.more { font-weight: 700; text-decoration: none; color: var(--crimson); white-space: nowrap; }
.more::after { content: " →"; }
.empty { grid-column: 1 / -1; border: 1px dashed #c9c2ae; background: #fffdf7; padding: 26px; border-radius: 6px; color: var(--muted); text-align: center; }
.empty b { color: var(--navy); display: block; margin-bottom: 4px; font-family: var(--f-display); }

/* ---------- programme cards ---------- */
.prog-two { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.pcard-top { padding: 26px 28px 22px; background: var(--navy); color: #dfe5f3; position: relative; }
.pcard.gitp .pcard-top { background: var(--crimson); }
.pcard-top .award { font: 700 .74rem var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); }
.pcard-top h3 { color: #fff; font-size: 1.35rem; margin: 6px 0 8px; }
.pcard-top .code { position: absolute; right: 22px; top: 20px; font: 700 1.6rem var(--f-display); color: rgba(255,255,255,.18); }
.pcard-top p { margin: 0; font-size: .98rem; }
.pcard dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-bottom: 1px solid var(--line); }
.pcard dl div { padding: 14px 28px; border-top: 1px solid var(--line); }
.pcard dl div:nth-child(odd) { border-right: 1px solid var(--line); }
.pcard dt { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pcard dd { margin: 2px 0 0; font-weight: 700; color: var(--navy); }
.pcard .pbody { padding: 22px 28px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.pcard .pbody p { margin: 0; }
.pcard .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.pathline { margin-top: 26px; display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; text-align: center; color: var(--navy); font-weight: 600; }
.pathline .pill { background: #fff; border: 1px solid var(--gold); border-radius: 999px; padding: 8px 18px; }
.pathline .arrow { color: var(--gold); font-size: 1.4rem; }
@media (max-width: 900px) { .prog-two { grid-template-columns: 1fr; } }

/* ---------- batch & session cards ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 960px) { .cards3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards3, .cards2 { grid-template-columns: 1fr; } }
.bcard, .scard { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.bcard .bhead { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.datebox { flex: none; width: 66px; text-align: center; border: 1px solid var(--gold); border-radius: 4px; overflow: hidden; background: #fff; }
.datebox small { display: block; background: var(--navy); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .1em; padding: 3px 0; text-transform: uppercase; }
.datebox b { display: block; font: 700 1.45rem/1.3 var(--f-display); color: var(--navy); }
.datebox span { display: block; font-size: .72rem; color: var(--muted); padding-bottom: 3px; }
.bcard h3, .scard h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.bcard .prog-tag, .scard .prog-tag { font-size: .74rem; font-weight: 700; letter-spacing: .08em; color: var(--crimson); text-transform: uppercase; }
.bcard .bbody, .scard .sbody { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; font-size: .95rem; }
.meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.meta li { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.meta li b { color: var(--muted); font-weight: 600; font-size: .88rem; }
.bcard .acts, .scard .acts { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.st { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 3px; letter-spacing: .04em; text-transform: uppercase; }
.st.open { background: #e3f3ea; color: var(--ok); }
.st.closing_soon { background: #fff3d6; color: var(--warn); }
.st.upcoming { background: #eef0f5; color: var(--navy-soft); }
.st.full, .st.closed { background: #fde7e5; color: var(--bad); }
.st.members { background: var(--gold-pale); color: #6d4f0c; }
.st.openall { background: #e5ecfa; color: var(--navy); }
.scard .poster { aspect-ratio: 16/8; background: var(--navy) center/cover no-repeat; position: relative; }
.scard .poster.ph { display: grid; place-items: center; color: var(--gold-bright); font: italic 400 1.05rem var(--f-display); background-image: radial-gradient(circle at 80% 20%, rgba(184,137,43,.35), transparent 50%), repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px); }
.scard .when { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--navy); }
.note-line { font-size: .88rem; color: var(--muted); margin-top: 14px; }

/* ---------- about ---------- */
.about-two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .about-two { grid-template-columns: 1fr; gap: 30px; } }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 26px 0; }
.vm div { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 20px 22px; border-radius: 4px; }
.vm h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--crimson); }
.vm p { margin: 0; }
@media (max-width: 640px) { .vm { grid-template-columns: 1fr; } }
.obj { list-style: none; padding: 0; margin: 0; counter-reset: o; display: grid; gap: 10px; }
.obj li { counter-increment: o; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.obj li::before { content: counter(o, decimal-leading-zero); font: 700 1.05rem var(--f-display); color: var(--gold); border-bottom: 2px solid var(--gold); padding-bottom: 2px; text-align: center; }
.message { background: var(--navy); color: #dfe5f3; border-radius: 6px; padding: 30px 30px 26px; position: relative; }
.message::before { content: "“"; position: absolute; right: 18px; top: -10px; font: 700 7rem/1 var(--f-display); color: rgba(217,178,90,.25); }
.message h3 { color: #fff; }
.message p.kicker { font: 700 .78rem/1.2 var(--f-body); font-style: normal; }
.message p { font: italic 400 1.02rem/1.75 var(--f-display); }
.signer { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); }
.mono { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy-deep); font: 700 1.25rem var(--f-display); flex: none; overflow: hidden; }
.mono img { width: 100%; height: 100%; object-fit: cover; }
.signer b { display: block; color: #fff; font-family: var(--f-display); }
.signer span { font-size: .88rem; color: var(--gold-bright); }
.gov { list-style: none; padding: 0; margin: 0; }
.gov li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); position: relative; }
.gov li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }

/* ---------- faculty ---------- */
.fac-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .fac-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .fac-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 340px) { .fac-grid { grid-template-columns: 1fr; } }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; text-align: left; padding: 0; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.fcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.fcard .ph { aspect-ratio: 1/1; background: var(--paper); position: relative; overflow: hidden; }
.fcard .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fcard .ph .mono { width: 100%; height: 100%; border-radius: 0; font-size: 2.6rem; background: linear-gradient(160deg, var(--navy), var(--navy-soft)); color: var(--gold-bright); }
.fcard .area { position: absolute; left: 0; bottom: 0; background: var(--crimson); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; text-transform: uppercase; }
.fcard .fb { padding: 14px 16px 16px; border-top: 3px solid var(--gold); }
.fcard b { display: block; font: 700 1rem/1.3 var(--f-display); color: var(--navy); }
.fcard span { display: block; font-size: .88rem; color: var(--muted); margin-top: 3px; }
.fstrip { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.fstrip .fcard { flex: 0 0 200px; scroll-snap-align: start; }
.lead-card { display: grid; grid-template-columns: 160px 1fr; gap: 26px; align-items: center; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 6px; padding: 26px; margin-bottom: 34px; }
.lead-card .mono { width: 160px; height: 160px; font-size: 3rem; }
@media (max-width: 600px) { .lead-card { grid-template-columns: 1fr; } }
.fac-modal { width: min(760px, 94vw); padding: 0; }
.fac-modal .fm { display: grid; grid-template-columns: 240px 1fr; }
.fac-modal .fm-ph { background: var(--paper); }
.fac-modal .fm-ph img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 240px; }
.fac-modal .fm-b { padding: 28px 30px; }
.fac-modal dl { margin: 14px 0 0; display: grid; gap: 10px; }
.fac-modal dt { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fac-modal dd { margin: 0; }
@media (max-width: 640px) { .fac-modal .fm { grid-template-columns: 1fr; } .fac-modal .fm-ph img { max-height: 280px; } }

/* ---------- tables (papers, calendar) ---------- */
.tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
.tbl th, .tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .86rem; letter-spacing: .02em; }
.tbl tbody tr:nth-child(even) { background: #fcfbf7; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl tfoot td, .tbl tfoot th { background: var(--gold-pale); font-weight: 700; color: var(--navy); }
.tbl .code { font-weight: 700; color: var(--crimson); white-space: nowrap; }
.tbl .topics { color: var(--muted); font-size: .86rem; display: block; margin-top: 3px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }

/* ---------- tabs ---------- */
.ptabs { display: flex; gap: 0; border-bottom: 2px solid var(--line); margin-bottom: 30px; flex-wrap: wrap; }
.ptabs button { background: none; border: 0; padding: 14px 22px; font: 700 1rem var(--f-body); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.ptabs button small { display: block; font-weight: 400; font-size: .82rem; }
.ptabs button[aria-selected=true] { color: var(--navy); border-bottom-color: var(--gold); }
.facts-row { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-radius: 6px; background: #fff; margin-bottom: 30px; }
.facts-row div { padding: 16px 18px; border-right: 1px solid var(--line); }
.facts-row div:last-child { border-right: 0; }
.facts-row dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.facts-row dd { margin: 3px 0 0; font: 700 1.05rem var(--f-display); color: var(--navy); }
@media (max-width: 900px) { .facts-row { grid-template-columns: repeat(3, 1fr); } .facts-row div:nth-child(3) { border-right: 0; } .facts-row div:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .facts-row { grid-template-columns: 1fr 1fr; } .facts-row div { border-bottom: 1px solid var(--line); } .facts-row div:nth-child(odd) { border-right: 1px solid var(--line); } .facts-row div:nth-child(even) { border-right: 0; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ticklist li { padding-left: 28px; position: relative; }
.ticklist li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--gold); }
.timeline li { padding: 0 0 18px 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--crimson); }
.timeline b { color: var(--navy); }
.timeline .w { display: block; font-size: .82rem; font-weight: 700; color: var(--crimson); letter-spacing: .04em; text-transform: uppercase; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 24px 26px; }
.box h3 { margin-top: 0; }

/* ---------- membership ---------- */
.mcat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .mcat { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .mcat { grid-template-columns: 1fr; } }
.mcard { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 6px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.mcard:nth-child(2) { border-top-color: var(--crimson); }
.mcard:nth-child(3) { border-top-color: var(--gold); }
.mcard:nth-child(4) { border-top-color: var(--navy-soft); }
.mcard h3 { margin: 0; }
.mcard p { margin: 0; color: var(--muted); font-size: .94rem; }
.mcard .ticklist { font-size: .93rem; }
.mcard .btn { margin-top: auto; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 0 18px 0 0; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold-bright); font: 700 1.1rem var(--f-display); margin-bottom: 10px; }
.steps li::after { content: ""; position: absolute; left: 48px; right: 8px; top: 20px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps b { display: block; color: var(--navy); }
.steps span { font-size: .92rem; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; gap: 20px; } .steps li::after { display: none; } }
.radio-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; border: 0; padding: 0; margin: 0; }
.radio-cards legend { font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .95rem; }
.radio-cards label { border: 1px solid #c5cbd8; border-radius: 6px; padding: 12px; cursor: pointer; flex-direction: row !important; align-items: center; gap: 8px !important; font-size: .92rem !important; }
.radio-cards label:has(input:checked) { border-color: var(--navy); background: var(--paper); box-shadow: inset 0 0 0 1px var(--navy); }
.radio-cards input { width: auto !important; }
@media (max-width: 760px) { .radio-cards { grid-template-columns: 1fr 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 6px; padding: 30px; box-shadow: var(--shadow); }
.form h4 { margin: 8px 0 0; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--crimson); font-family: var(--f-body); }
.form .req::after { content: " *"; color: var(--crimson); }
.form .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.ok-panel { text-align: center; padding: 20px 10px; }
.ok-panel .tick { width: 64px; height: 64px; border-radius: 50%; background: #e3f3ea; color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; font-size: 2rem; }
.ok-panel .linkbox { background: var(--paper); border: 1px dashed var(--gold); border-radius: 6px; padding: 14px; margin: 14px 0; word-break: break-all; }

/* ---------- calendar ---------- */
.cal-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.cal-tools select { padding: 9px 12px; border: 1px solid #c5cbd8; border-radius: 6px; font: inherit; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: 600 .9rem var(--f-body); cursor: pointer; color: var(--navy); }
.chips button[aria-pressed=true] { background: var(--navy); color: #fff; border-color: var(--navy); }
.cal-month { margin-bottom: 28px; }
.cal-month h3 { font-size: 1.15rem; border-bottom: 2px solid var(--gold); padding-bottom: 6px; margin-bottom: 0; }
.due { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.due .d { text-align: center; line-height: 1.1; }
.due .d b { display: block; font: 700 1.5rem var(--f-display); color: var(--navy); }
.due .d small { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.due .t b { color: var(--navy); }
.due .t span { display: block; font-size: .88rem; color: var(--muted); }
.law { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 3px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.law.gst { background: #e5ecfa; color: var(--navy); }
.law.it { background: #f9e6ea; color: var(--crimson); }
.law.tds { background: var(--gold-pale); color: #6d4f0c; }
.due.past { opacity: .5; }
.due.today { background: #fffbea; }
.mini-cal .due { grid-template-columns: 58px 1fr auto; padding: 10px 0; }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 30px 16px 0; font-weight: 700; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: #343a4f; }

/* ---------- contact / enquiry ---------- */
.contact-cards { display: grid; gap: 14px; }
.ccard { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; }
.ccard .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-bright); }
.ccard b { display: block; color: var(--navy); }
.ccard a { font-weight: 600; }
.map { border: 0; width: 100%; height: 260px; border-radius: 6px; filter: grayscale(.2); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(100deg, var(--crimson), #5a1322); color: #f6e9ec; padding: 46px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; }
.cta-band .acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.foot { background: var(--navy-deep); color: #b9c2da; padding: 56px 0 0; border-top: 4px solid var(--gold); font-size: .95rem; }
.foot .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; }
.foot h4 { color: #fff; font: 700 .82rem var(--f-body); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: #e1e6f2; text-decoration: none; }
.foot a:hover { color: var(--gold-bright); }
.foot .fbrand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.foot .fbrand img { width: 56px; height: 56px; }
.foot .fbrand b { color: #fff; font: 700 1rem/1.25 var(--f-display); }
.foot .social { display: flex; gap: 10px; margin-top: 14px; }
.foot .social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; }
.foot .base { margin-top: 44px; padding: 18px 0 calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 900px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot .cols { grid-template-columns: 1fr; } }
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.wa-float:hover { background: #18834a; color: #fff; }

/* ---------- simulators page tweaks ---------- */
.pub .sim-chapters { margin-top: 10px; }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #18834a; color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
