/* Theluji Trainings — "the open book".
   Layout: an editorial page. A thin running head, wide margins, hairline rules and soft,
   rounded corners; sections read as numbered chapters; courses are an index, venues an atlas.
   Navy carries the page, gold marks the place like a bookmark ribbon. */
@font-face { font-family: "Gloock"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/gloock-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-sans-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #001941;
  --navy-ink: #071f4d;
  --navy-2: #173b7a;
  --gold: #feb20a;
  --gold-deep: #b97a00;
  --paper: #ffffff;
  --tint: #eef2f8;
  --rule: #d3dbe8;
  --rule-dark: rgba(255, 255, 255, .16);
  --ink: #0a1530;
  --body: #36435e;
  --muted: #66728c;
  --display: "Gloock", "Georgia", "Times New Roman", serif;
  --sans: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--body); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.display { font-family: var(--display); font-weight: 400; color: var(--ink); line-height: 1.06; letter-spacing: -.01em; text-wrap: balance; }
.display em { font-style: normal; color: var(--gold-deep); }
.mono { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.ic { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 6px; z-index: 100; padding: 8px 14px; border-radius: var(--r-sm); background: var(--gold); color: var(--navy); font-weight: 700; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.ribbon { display: block; width: 16px; height: 38px; background: var(--gold); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%); flex-shrink: 0; }

/* Buttons: rounded, typographic */
.btn { display: inline-flex; align-items: center; gap: .65em; padding: .95em 1.4em; border: 1.5px solid transparent; border-radius: var(--r);
  font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s; white-space: nowrap; }
.btn-navy, .btn-gold { box-shadow: 0 10px 24px -14px rgba(0, 25, 65, .6); }
.btn-navy:hover, .btn-gold:hover { transform: translateY(-1px); }
.btn .ic { transition: transform .25s; }
.btn:hover .ic { transform: translateX(4px); }
.btn-lg { padding: 1.1em 1.6em; font-size: 1rem; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--paper); }
.btn-navy { background: var(--navy); color: var(--paper); }
.btn-navy:hover { background: var(--navy-2); }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--paper); }
.btn-line-light { border-color: rgba(255, 255, 255, .5); color: var(--paper); }
.btn-line-light:hover { border-color: var(--gold); color: var(--gold); }
.btn[disabled] { opacity: .7; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: var(--navy); text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; padding-bottom: 2px; transition: background-size .3s; }
.text-link:hover { background-size: 100% 2px; }
.text-link .ic { color: var(--gold-deep); transition: transform .25s; }
.text-link:hover .ic { transform: translateX(3px); }

/* Running head + header */
.running-head { background: var(--navy); color: rgba(255, 255, 255, .7); }
.rh-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.rh-inner .mono { font-size: .68rem; }
.rh-tag b, .kicker b, .footer-base b { display: inline-block; width: 4px; height: 4px; margin: 0 .7em; vertical-align: middle; background: var(--gold); transform: rotate(45deg); }
.rh-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); text-decoration: none; }
.rh-link .ic { width: 13px; height: 13px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand img { height: 60px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { position: relative; padding: 6px 0; font-weight: 500; font-size: .98rem; color: var(--ink); text-decoration: none; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { padding: .8em 1.15em; font-size: .9rem; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 7px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); transition: transform .25s; }
.nav-open .nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: rgba(255, 255, 255, .78); }
.hero-grid-lines { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(90deg, var(--rule-dark) 1px, transparent 1px); background-size: calc(100% / 12) 100%; opacity: .45;
  mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding-top: 84px; padding-bottom: 40px; }
.kicker { display: flex; align-items: center; flex-wrap: wrap; color: var(--gold); margin-bottom: 26px; }
.hero h1 { color: var(--paper); font-size: clamp(3rem, 7.4vw, 6.4rem); line-height: .98; }
.hero h1 em { color: var(--gold); }
.hero-lead { max-width: 54ch; margin: 30px 0 36px; font-size: 1.16rem; }
.hero { background: radial-gradient(1100px 620px at 78% 42%, #0b2c66 0%, rgba(0, 25, 65, 0) 62%), linear-gradient(180deg, #001941 0%, #00122f 100%); }
.hero-copy { position: relative; z-index: 1; }
/* Live registration tag above the hero headline */
.hero-tag { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; max-width: 100%; margin-bottom: 26px; padding: 9px 18px 9px 16px; border: 1px solid rgba(254, 178, 10, .45); border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--paper); text-decoration: none; font-size: .92rem; transition: border-color .2s, background .2s, transform .2s; }
.hero-tag:hover { border-color: var(--gold); background: rgba(254, 178, 10, .12); transform: translateY(-1px); }
.hero-tag:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.hero-tag-state { display: inline-flex; align-items: center; margin: 0; color: var(--gold); font-size: .68rem; letter-spacing: .12em; }
.hero-tag-state .pulse { margin-right: 10px; }
.hero-tag-next { color: rgba(255, 255, 255, .88); }
.hero-tag-next b { font-weight: 600; color: var(--paper); }
.hero-tag-next i { margin: 0 .35em; font-style: normal; color: var(--gold); }
.hero-tag .ic { flex: none; width: 16px; height: 16px; color: var(--gold); transition: transform .2s; }
.hero-tag:hover .ic { transform: translateX(3px); }
@media (max-width: 560px) { .hero-tag { border-radius: 18px; padding: 10px 14px; } .hero-tag .ic { display: none; } }
/* Lighter pages: pause animation in sections that are not visible. */
.is-paused, .is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

/* A little life: the header settles as you scroll, cards lift on hover, buttons press. */
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.scrolled { box-shadow: 0 10px 28px -18px rgba(0, 25, 65, .5); }
.hero-stats dd { font-variant-numeric: tabular-nums; }
.btn { transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s, background-color .2s, border-color .2s, color .2s; }
.btn:active { transform: translateY(1px) scale(.985); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .format, .promise article, .values li, .sectors li { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease; }
  .format:hover, .promise article:hover, .values li:hover, .sectors li:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -24px rgba(0, 25, 65, .5); }
  .btn-gold:hover, .btn-navy:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(0, 25, 65, .55); }
}

/* Brochure download: a button on every course row, and a full button inside the course. */
.entry { position: relative; }
.en-dl { position: absolute; top: 17px; right: 46px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 1.5px solid #b4c0d4; border-radius: 999px; background: var(--paper); color: var(--navy); font: 600 .82rem var(--sans); cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.en-dl .ic { width: 16px; height: 16px; color: var(--gold-deep); transition: transform .25s, color .2s; }
.en-dl:hover, .en-dl:focus-visible { border-color: var(--navy); background: var(--navy); color: #fff; }
.en-dl:hover .ic, .en-dl:focus-visible .ic { color: var(--gold); transform: translateY(2px); }
.en-dl:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.entry .en-days { margin-right: 108px; }
.btn-brochure { border: 1.5px solid var(--navy); background: transparent; color: var(--navy); }
.btn-brochure .ic { color: var(--gold-deep); }
.btn-brochure:hover { background: var(--navy); color: #fff; }
.btn-brochure:hover .ic { color: var(--gold); }
@media (max-width: 640px) {
  .en-dl { width: 34px; padding: 0; justify-content: center; }
  .en-dl span { display: none; }
  .entry .en-days { margin-right: 44px; }
}
.kicker-line { display: inline-block; width: 34px; height: 2px; margin-right: 14px; background: var(--gold); }
.hero h1 .underlined { position: relative; display: inline-block; }
.hero h1 .underlined svg { position: absolute; left: 0; right: 0; bottom: -.08em; width: 100%; height: .2em; color: var(--gold); overflow: visible; }
.hero h1 .underlined path { stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.1s 1.1s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin: 44px 0 0; padding-top: 24px; border-top: 1px solid var(--rule-dark); }
.hero-stats div { padding: 0 32px; border-left: 1px solid var(--rule-dark); }
.hero-stats div:first-child { padding-left: 0; border-left: none; }
.hero-stats dt { color: rgba(255, 255, 255, .55); font-size: .66rem; }
.hero-stats dd { margin: 4px 0 0; font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--paper); }
.hero-stats dd span { margin-left: 10px; font-family: var(--sans); font-size: .85rem; color: var(--gold); vertical-align: middle; }
.hero-art { position: relative; }
.hero-float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-caption { display: flex; align-items: center; justify-content: center; margin-top: 18px; color: rgba(255, 255, 255, .7); font-size: .68rem; }
.hero-caption b { display: inline-block; width: 4px; height: 4px; margin: 0 .9em; background: var(--gold); transform: rotate(45deg); }
.pulse { position: relative; width: 8px; height: 8px; margin-right: 12px; border-radius: 50%; background: var(--gold); }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--gold); animation: ping 2.4s ease-out infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.book-fan { width: 100%; height: auto; overflow: visible; }
.book-fan .glow { animation: glow 5s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
.book-fan .ray { opacity: 0; animation: ray 3.6s ease-in-out infinite; animation-delay: calc(1.6s + var(--n) * .18s); }
@keyframes ray { 0%, 100% { opacity: .15; } 40%, 60% { opacity: 1; } }
.swoosh { stroke-dasharray: 760; stroke-dashoffset: 760; animation: draw 1.4s .9s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* Theluji: snow, drifting slowly through the hero */
.hero-snow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-snow i { position: absolute; top: -10px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 8px rgba(255, 255, 255, .5);
  animation: snow var(--t) linear infinite; animation-delay: calc(var(--d) * -1); }
@keyframes snow { from { transform: translate3d(0, -20px, 0); opacity: 0; } 10% { opacity: .8; } 90% { opacity: .5; } to { transform: translate3d(40px, 900px, 0); opacity: 0; } }
@media (max-width: 560px) {
  .hero-stats div { padding: 0 16px; }
  .hero-stats dd { font-size: 2rem; }
  .hero-stats dd span { display: block; margin: 6px 0 0; font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-float, .book-fan .glow, .pulse::after, .hero-snow i { animation: none; }
  .hero-snow { display: none; }
  .book-fan .ray { animation: none; opacity: .8; }
  .book-fan .turning { display: none; }
  .swoosh, .hero h1 .underlined path { animation: none; stroke-dashoffset: 0; }
}
/* Contents: four chapter cards along the foot of the hero */
.toc { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--rule-dark); }
.toc-title { grid-column: 1 / -1; padding-top: 18px; color: var(--gold); font-size: .66rem; }
.toc a { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; gap: 14px; align-items: center; padding: 28px 22px 30px; border-left: 1px solid var(--rule-dark); color: var(--paper); text-decoration: none; transition: background .25s; }
.toc a:first-of-type { border-left: none; padding-left: 0; }
.toc a::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.toc a:hover { background: rgba(255, 255, 255, .04); border-radius: 0 0 var(--r) var(--r); }
.toc a:hover::before { transform: scaleX(1); }
.toc-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); border: 1px solid rgba(254, 178, 10, .45); color: var(--gold); transition: background .25s, color .25s, border-color .25s; }
.toc-icon .ic { width: 20px; height: 20px; }
.toc a:hover .toc-icon { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.toc-text { display: grid; gap: 1px; min-width: 0; }
.toc-text .mono { color: var(--gold); font-size: .64rem; }
.toc-label { font-weight: 600; font-size: 1.02rem; white-space: nowrap; }
.toc-note { font-size: .8rem; color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc-arrow { width: 18px; height: 18px; color: var(--gold); transition: transform .25s; }
.toc a:hover .toc-arrow { transform: translateX(4px); }

/* Promise: Training, then Development, then Impact, joined as one path */
.promise { padding: 72px 0 80px; background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); border-bottom: 1px solid var(--rule); }
.promise-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.promise-grid > li { position: relative; display: flex; }
.promise article { position: relative; overflow: hidden; flex: 1; padding: 34px 32px 34px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 1px 0 rgba(0, 25, 65, .04); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
.promise article::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--gold); transform: scaleX(.18); transform-origin: left; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.promise article:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -22px rgba(0, 25, 65, .35); border-color: #c3cee2; }
.promise article:hover::before { transform: scaleX(1); }
.promise-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.promise-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--navy); color: var(--gold); box-shadow: 6px 6px 0 #ffe3a1; transition: background .3s, color .3s, box-shadow .3s; }
.promise-icon .ic { width: 26px; height: 26px; }
.promise article:hover .promise-icon { background: var(--gold); color: var(--navy); box-shadow: 6px 6px 0 var(--navy); }
.promise-step { color: var(--muted); font-size: .66rem; }
.promise h2 { font-size: 2.3rem; margin-bottom: 12px; }
.promise p { max-width: 36ch; }
.promise-points { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px dashed var(--rule); display: grid; gap: 9px; }
.promise-points li { display: flex; align-items: center; gap: 10px; font-size: .93rem; color: var(--ink); }
.promise-points .ic { width: 18px; height: 18px; padding: 3px; background: #fff3d4; color: var(--gold-deep); border-radius: 50%; stroke-width: 2.6; }
.promise-mark { position: absolute; right: -26px; bottom: -26px; color: var(--navy); opacity: .045; pointer-events: none; }
.promise-mark .ic { width: 150px; height: 150px; }
.promise-link { position: absolute; z-index: 2; top: 50%; right: -36px; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -14px; background: var(--gold); color: var(--navy); border-radius: 50%; box-shadow: 0 0 0 6px #f4f7fb; }
.promise-link .ic { width: 15px; height: 15px; stroke-width: 2.4; }

/* Chapters */
.chapter { padding: 110px 0; }
.chapter-tint { background: var(--tint); }
.chapter-navy { background: var(--navy); color: rgba(255, 255, 255, .75); }
.chapter-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); column-gap: 60px; align-items: end; margin-bottom: 56px; }
.chapter-meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-bottom: 22px; color: var(--muted); }
.chapter-no { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 10px; background: var(--gold); color: var(--navy); font-weight: 500; letter-spacing: 0; }
.chapter-head h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.chapter-lead { font-size: 1.12rem; max-width: 46ch; padding-bottom: 8px; }
.chapter-head.light h2 { color: var(--paper); }
.chapter-head.light h2 em { color: var(--gold); }
.chapter-head.light .chapter-meta { color: rgba(255, 255, 255, .6); }

/* 01 · Area index: a grid of cards */
.area-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.area-index li { display: flex; }
.area-index a { position: relative; overflow: hidden; flex: 1; display: flex; flex-direction: column; padding: 28px 28px 22px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--rule); text-decoration: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
.area-index a::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.area-index a:hover { transform: translateY(-5px); border-color: #c3cee2; box-shadow: 0 24px 46px -26px rgba(0, 25, 65, .4); }
.area-index a:hover::after { transform: scaleX(1); }
.ai-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.ai-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: var(--gold); box-shadow: 5px 5px 0 #ffe3a1; transition: background .3s, color .3s, box-shadow .3s; }
.ai-icon .ic { width: 24px; height: 24px; }
.area-index a:hover .ai-icon { background: var(--gold); color: var(--navy); box-shadow: 5px 5px 0 var(--navy); }
.ai-no { font-family: var(--display); font-size: 2.4rem; line-height: 1; letter-spacing: 0; color: var(--tint); -webkit-text-stroke: 1px #c9d3e4; transition: color .3s; }
.area-index a:hover .ai-no { color: #ffe3a1; -webkit-text-stroke-color: var(--gold); }
.ai-name { font-family: var(--display); font-size: 1.42rem; color: var(--ink); line-height: 1.15; margin-bottom: 8px; }
.ai-sum { flex: 1; font-size: .93rem; color: var(--muted); }
.ai-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--rule); }
.ai-count { display: inline-flex; align-items: center; gap: 8px; color: var(--navy-2); white-space: nowrap; }
.ai-count .ic { width: 15px; height: 15px; color: var(--gold-deep); }
.ai-go { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--rule); border-radius: 50%; transition: background .25s, border-color .25s; }
.ai-arrow { width: 16px; height: 16px; color: var(--navy); transition: transform .25s, color .25s; }
.area-index a:hover .ai-go { background: var(--navy); border-color: var(--navy); }
.area-index a:hover .ai-arrow { color: var(--gold); transform: translateX(2px); }

/* 02 · Formats: four cards, each with a small moving scene */
.formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.format { position: relative; overflow: hidden; border-radius: var(--r-lg); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); color: var(--body); text-decoration: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
.format:hover { transform: translateY(-6px); border-color: #c3cee2; box-shadow: 0 26px 50px -28px rgba(0, 25, 65, .45); }
.format-stage { position: relative; display: block; height: 148px; overflow: hidden; background: radial-gradient(circle at 80% 20%, #0f3a80 0%, rgba(15, 58, 128, 0) 60%), var(--navy);
  background-image: radial-gradient(circle at 80% 20%, #0f3a80 0%, rgba(15, 58, 128, 0) 60%), radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.2px); background-size: auto, 14px 14px; }
.format-icon { position: absolute; left: 24px; bottom: -1px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px 14px 0 0; background: var(--gold); color: var(--navy); transition: transform .3s; }
.format-icon .ic { width: 26px; height: 26px; }
.format:hover .format-icon { transform: translateY(-4px); }
.format-body { flex: 1; display: flex; flex-direction: column; padding: 24px 24px 22px; }
.format-tag { color: var(--gold-deep); font-size: .64rem; margin-bottom: 8px; }
.format-title { font-size: 1.65rem; margin-bottom: 10px; }
.format-text { font-size: .95rem; }
.format-facts { display: grid; gap: 8px; margin: 18px 0 20px; padding-top: 16px; border-top: 1px dashed var(--rule); }
.format-facts span { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--ink); }
.format-facts .ic { width: 16px; height: 16px; color: var(--navy-2); }
.format-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-weight: 600; color: var(--navy); background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; padding-bottom: 2px; transition: background-size .3s; }
.format-cta .ic { width: 16px; height: 16px; color: var(--gold-deep); transition: transform .25s; }
.format:hover .format-cta { background-size: 100% 2px; }
.format:hover .format-cta .ic { transform: translateX(4px); }

/* Scenes */
.week { position: absolute; right: 22px; top: 26px; display: flex; gap: 6px; }
.week i { display: grid; place-items: center; width: 30px; height: 36px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .6); font: 500 .7rem var(--mono); font-style: normal;
  animation: day 5s infinite; animation-delay: calc(var(--n) * .35s); }
@keyframes day { 0%, 8% { background: transparent; color: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .25); } 14%, 70% { background: var(--gold); color: var(--navy); border-color: var(--gold); } 80%, 100% { background: transparent; color: rgba(255, 255, 255, .6); border-color: rgba(255, 255, 255, .25); } }
.team { position: absolute; right: 22px; top: 30px; display: flex; }
.team i { position: relative; width: 34px; height: 44px; margin-left: -6px; animation: join 4.8s infinite; animation-delay: calc(var(--n) * .3s); }
.team i::before { content: ""; position: absolute; left: 9px; top: 0; width: 16px; height: 16px; border-radius: 50%; background: #dfe6f3; }
.team i::after { content: ""; position: absolute; left: 2px; top: 19px; width: 30px; height: 22px; border-radius: 15px 15px 4px 4px; background: #8fa9d8; }
.team i:nth-child(3)::after { background: var(--gold); }
@keyframes join { 0% { opacity: 0; transform: translateY(10px); } 12%, 75% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(-4px); } }
.live { position: absolute; right: 22px; top: 22px; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: var(--paper); font-size: .62rem; }
.live b { width: 7px; height: 7px; border-radius: 50%; background: #ff5a4e; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.bars { position: absolute; right: 22px; top: 62px; display: flex; align-items: flex-end; gap: 5px; height: 44px; }
.bars i { width: 6px; height: 100%; border-radius: 3px; background: var(--gold); transform-origin: bottom; animation: eq 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--n) * -.23s); }
.bars i:nth-child(even) { background: #8fa9d8; }
@keyframes eq { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
.talk { position: absolute; right: 22px; top: 20px; width: 128px; display: grid; gap: 7px; }
.talk i { display: block; height: 22px; border-radius: 11px 11px 11px 3px; background: #dfe6f3; width: 78%; opacity: 0; animation: say 6s infinite; }
.talk i:nth-child(2) { justify-self: end; width: 62%; background: var(--gold); border-radius: 11px 11px 3px 11px; animation-delay: 1s; }
.talk i:nth-child(3) { width: 90%; animation-delay: 2s; }
@keyframes say { 0% { opacity: 0; transform: translateY(8px) scale(.9); } 8%, 70% { opacity: 1; transform: none; } 82%, 100% { opacity: 0; } }


/* 03 · Journey: four stations on one track, with a light that keeps travelling along it */
.journey { --node: 72px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.journey::before { content: ""; position: absolute; top: calc(var(--node) / 2 - 1px); left: calc(var(--node) / 2); right: calc((100% - 84px) / 4 - var(--node) / 2); height: 2px; background: repeating-linear-gradient(90deg, #b9c5da 0 8px, transparent 8px 14px); }
.journey::after { content: ""; position: absolute; top: calc(var(--node) / 2 - 2px); left: 0; width: 160px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, rgba(254, 178, 10, 0), var(--gold) 70%, #fff 100%); box-shadow: 0 0 14px rgba(254, 178, 10, .7); animation: travel 5.5s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes travel { from { left: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } to { left: calc(100% - (100% - 84px) / 4 - 124px); opacity: 0; } }
.journey li { position: relative; z-index: 1; display: flex; flex-direction: column; }
.jr-node { position: relative; display: grid; place-items: center; width: var(--node); height: var(--node); border-radius: 50%; background: var(--navy); color: var(--gold); box-shadow: 0 0 0 8px var(--paper); transition: transform .3s cubic-bezier(.2, .8, .2, 1), background .3s, color .3s; }
.jr-node .ic { width: 28px; height: 28px; }
.jr-ring { position: absolute; inset: -7px; border-radius: 50%; border: 2px dashed rgba(254, 178, 10, .7); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.journey li:last-child .jr-node { background: var(--gold); color: var(--navy); }
.journey li:last-child .jr-ring { border-color: var(--navy); }
/* Each station lights up in turn as the light passes it */
.jr-node::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(254, 178, 10, .55); animation: station 5.5s infinite; animation-delay: calc(var(--n) * 1.25s); }
@keyframes station { 0% { box-shadow: 0 0 0 0 rgba(254, 178, 10, .55); } 18% { box-shadow: 0 0 0 16px rgba(254, 178, 10, 0); } 100% { box-shadow: 0 0 0 16px rgba(254, 178, 10, 0); } }
.journey li:hover .jr-node { transform: scale(1.08); }
.jr-card { position: relative; flex: 1; margin-top: 30px; padding: 26px 24px 24px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--rule); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
.jr-card::before { content: ""; position: absolute; left: calc(var(--node) / 2 - 8px); top: -9px; width: 16px; height: 16px; background: var(--paper); border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); border-radius: 4px 0 0 0; transform: rotate(45deg); }
.journey li:hover .jr-card { transform: translateY(-5px); border-color: #c3cee2; box-shadow: 0 24px 46px -26px rgba(0, 25, 65, .4); }
.jr-no { position: absolute; right: 18px; top: 10px; font-family: var(--display); font-size: 3.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px #d3dbe8; transition: -webkit-text-stroke-color .3s; }
.journey li:hover .jr-no { -webkit-text-stroke-color: var(--gold); }
.tl-no { color: var(--gold-deep); }
.journey h3 { font-size: 1.5rem; margin: 10px 0 10px; padding-right: 56px; }
.journey p { font-size: .96rem; }
.jr-chip { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 18px; padding: 6px 14px 6px 8px; border-radius: 999px; background: #fff6df; color: var(--navy); font-size: .84rem; font-weight: 600; }
.jr-chip .ic { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--gold); color: var(--navy); stroke-width: 3; }

/* 04 · Atlas strip */
/* 04 · Atlas: a dot map beside the venue list */
#venues { position: relative; overflow: hidden; background: radial-gradient(800px 560px at 22% 60%, #0b2c66 0%, rgba(0, 25, 65, 0) 65%), linear-gradient(180deg, #001941 0%, #00122f 100%); }
.home-atlas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.atlas-map { position: relative; }
.dot-map { width: 100%; height: auto; display: block; overflow: visible; }
.dot-map .land circle { fill: rgba(143, 169, 216, .38); }
.dot-map .route { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 3 7; opacity: .75; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.dot-map .pin-dot { fill: var(--gold); stroke: var(--navy); stroke-width: 2.5; transition: r .25s; }
.dot-map .hub .pin-dot { fill: var(--paper); stroke: var(--gold); stroke-width: 3; }
.dot-map .pin-ping { fill: none; stroke: var(--gold); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ping-map 2.8s ease-out infinite; animation-delay: calc(var(--n) * .35s); }
@keyframes ping-map { from { transform: scale(.6); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.dot-map text { fill: rgba(255, 255, 255, .82); font: 600 15px var(--sans); paint-order: stroke; stroke: #001941; stroke-width: 4px; stroke-linejoin: round; transition: fill .25s; }
.dot-map.focus .pin:not(.on) { opacity: .35; }
.dot-map .pin { transition: opacity .25s; }
.dot-map .pin.on text { fill: var(--gold); }
.dot-map .pin.on .pin-dot { r: 9; }
.map-key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: rgba(255, 255, 255, .6); font-size: .64rem; }
.map-key span { display: inline-flex; align-items: center; gap: 8px; }
.map-key i { width: 10px; height: 10px; border-radius: 50%; }
.k-hub { background: var(--paper); box-shadow: 0 0 0 2px var(--gold); }
.k-pin { background: var(--gold); }
.map-key .ic { width: 14px; height: 14px; color: var(--gold); }
.atlas-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-dark); }
.atlas-list li { border-bottom: 1px solid var(--rule-dark); }
.atlas-list a { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 18px; gap: 16px; align-items: center; padding: 15px 14px 15px 0; text-decoration: none; transition: background .25s, padding .3s cubic-bezier(.2, .8, .2, 1); }
.atlas-list a::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--gold); transform: scaleY(0); transition: transform .3s; }
.atlas-list a:hover, .atlas-list a:focus-visible { background: rgba(255, 255, 255, .05); padding-left: 16px; border-radius: var(--r); }
.atlas-list a:hover::before, .atlas-list a:focus-visible::before { transform: scaleY(1); }
.al-no { color: rgba(255, 255, 255, .4); font-size: .66rem; }
.al-place { display: grid; min-width: 0; }
.al-city { color: var(--paper); font-size: 1.5rem; line-height: 1.15; }
.al-country { color: rgba(255, 255, 255, .5); font-size: .62rem; margin-top: 2px; }
.al-time { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--rule-dark); background: rgba(255, 255, 255, .03); }
.al-time .clock::before { display: none; }
.dn { display: inline-grid; color: var(--gold); }
.dn .ic { width: 16px; height: 16px; grid-area: 1 / 1; transition: opacity .3s; }
.dn-moon { opacity: 0; color: #c7d4ee; }
.dn.night .dn-sun { opacity: 0; }
.dn.night .dn-moon { opacity: 1; }
.dn-sun { animation: spin 18s linear infinite; }
.al-arrow { width: 16px; height: 16px; color: var(--gold); opacity: .5; transition: transform .25s, opacity .25s; }
.atlas-list a:hover .al-arrow { opacity: 1; transform: translateX(3px); }

.clock { color: var(--gold); font-size: .78rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.clock::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: currentColor; vertical-align: middle; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* End page: gold, the place the book is marked */
.end-page { position: relative; overflow: hidden; color: var(--body); background: var(--tint); border-top: 1px solid var(--rule); }
.end-page::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(0, 25, 65, .09) 1px, transparent 1.2px); background-size: 16px 16px; mask-image: linear-gradient(90deg, transparent 30%, #000); }
.end-page .wrap { position: relative; }
.end-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: end; padding-top: 96px; padding-bottom: 96px; }
.end-page h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); color: var(--ink); }
.end-page h2 em { color: var(--gold-deep); }
.end-page p { font-size: 1.12rem; margin-bottom: 28px; }
.end-page .btn-gold { background: var(--navy); color: var(--paper); }
.end-page .btn-gold:hover { background: var(--navy-2); }
.end-page .btn-line-light { border-color: var(--navy); color: var(--navy); }
.end-page .btn-line-light:hover { background: var(--navy); color: var(--paper); }

/* Page hero */
.page-hero { background: var(--navy); color: rgba(255, 255, 255, .78); border-bottom: 6px solid var(--gold); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: end; padding-top: 56px; padding-bottom: 72px; }
.crumbs { display: flex; gap: 10px; margin-bottom: 40px; color: rgba(255, 255, 255, .55); }
.crumbs a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--gold); }
.page-hero h1 { color: var(--paper); font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1; }
.page-hero h1 em { color: var(--gold); }
.page-lead { font-size: 1.12rem; padding-bottom: 10px; border-left: 2px solid var(--gold); padding-left: 22px; }

/* Course index */
.index-section { padding: 72px 0 110px; }
.index-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 64px; align-items: start; }
.index-side { position: sticky; top: 104px; }
.find { display: flex; align-items: center; gap: 10px; padding: 4px 14px; border: 1.5px solid var(--rule); border-radius: var(--r); background: #fbfcfe; transition: border-color .2s, box-shadow .2s, background .2s; }
.find:focus-within { border-color: var(--navy); background: var(--paper); box-shadow: 0 0 0 4px rgba(254, 178, 10, .25); }
.find .ic { color: #8a96ad; width: 19px; height: 19px; transition: color .2s; }
.find:focus-within .ic { color: var(--gold-deep); }
.find input { flex: 1; min-width: 0; border: none; outline: none; background: none; font: inherit; font-size: 1rem; color: var(--ink); padding: 8px 0; }
.find-count { margin: 12px 0 28px; color: var(--muted); }
.index-toc { display: grid; border-top: 1px solid var(--rule); }
.index-toc a { display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 10px 0 10px 4px; border-bottom: 1px solid var(--rule); font-size: .93rem; color: var(--body); text-decoration: none; transition: color .2s, box-shadow .2s, padding .2s; }
.index-toc a .mono { color: var(--muted); padding-top: 3px; }
.index-toc a:hover { color: var(--navy); }
.index-toc a.current { color: var(--navy); font-weight: 600; box-shadow: inset 3px 0 0 var(--gold); padding-left: 12px; background: var(--tint); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.index-toc a.dim { opacity: .35; }
/* The Venues button lands the navy "Where we train" section just under the sticky header. */
#venues { scroll-margin-top: 78px; }
.nav a.in-view:not([aria-current="page"]) { color: var(--navy); }
.nav a.in-view:not([aria-current="page"])::after { transform: scaleX(1); }
.index-area { scroll-margin-top: 110px; margin-bottom: 72px; }
.ia-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: end; padding-bottom: 18px; border-bottom: 2px solid var(--navy); }
.ia-no { font-family: var(--display); font-size: 3.4rem; line-height: .8; color: var(--gold-deep); letter-spacing: 0; text-transform: none; }
.ia-head h2 { font-size: 2.2rem; }
.ia-head p { margin-top: 6px; color: var(--muted); }
.ia-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r); background: var(--navy); color: var(--gold); }
.ia-icon .ic { width: 22px; height: 22px; }
.entries { list-style: none; margin: 0; padding: 0; }
.entry { border-bottom: 1px solid var(--rule); }
.entry summary { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 26px; gap: 16px; align-items: center; padding: 20px 0; cursor: pointer; list-style: none; transition: padding .2s; }
.entry summary::-webkit-details-marker { display: none; }
.entry summary:hover { padding-left: 8px; }
.en-no { color: var(--muted); }
.en-title { font-family: var(--display); font-size: 1.32rem; color: var(--ink); line-height: 1.2; }
.en-days { color: var(--navy-2); white-space: nowrap; }
.en-toggle { position: relative; width: 28px; height: 28px; border: 1.5px solid var(--navy); border-radius: 50%; transition: background .2s; }
.en-toggle::before, .en-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--navy); transform: translate(-50%, -50%); transition: transform .25s; }
.en-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .en-toggle { background: var(--navy); }
details[open] .en-toggle::before, details[open] .en-toggle::after { background: var(--gold); }
details[open] .en-toggle::after { transform: translate(-50%, -50%) rotate(0); }
.entry-body { display: grid; gap: 14px; padding: 0 0 26px 62px; }
.entry-body p { max-width: 60ch; }
.en-formats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); }
.en-formats li { display: inline-flex; align-items: center; gap: 6px; }
.en-formats .ic { width: 14px; height: 14px; color: var(--navy-2); }
.tailor { display: flex; align-items: center; gap: 18px; padding: 0 20px 0 18px; margin-top: 18px; min-height: 66px; border-radius: var(--r); background: var(--tint); text-decoration: none; color: var(--body); transition: background .2s; }
.tailor:hover { background: #e3e9f3; }
.tailor .ribbon { align-self: flex-start; }
.tailor span:not(.ribbon) { flex: 1; padding: 14px 0; }
.tailor b { color: var(--navy); }
.tailor .ic { color: var(--gold-deep); }
.no-results { padding: 48px 0; border-top: 2px solid var(--navy); }
.no-results .mono { color: var(--gold-deep); margin-bottom: 12px; }
.no-results h2 { font-size: 2.4rem; margin-bottom: 12px; }
.no-results p:not(.mono) { margin-bottom: 24px; }

/* Venues atlas */
.atlas { border-top: 2px solid var(--navy); }
.atlas-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) minmax(0, 1.2fr) 260px 220px; gap: 28px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 110px; transition: background .2s; }
.atlas-row:hover { background: var(--tint); border-radius: var(--r-lg); }
.at-no { color: var(--muted); }
.at-place h2 { font-size: 2.3rem; }
.at-place .mono { color: #8a5b00; margin-top: 6px; }
.at-facts { display: grid; gap: 8px; margin: 0; }
.at-facts div { display: flex; justify-content: space-between; gap: 12px; }
.at-facts dt { color: var(--muted); }
.at-facts dd { margin: 0; color: var(--ink); white-space: nowrap; }
.at-facts .clock { color: var(--navy-2); }
.margin-note { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 56px; padding: 0 32px 0 28px; min-height: 140px; border-radius: var(--r-lg); background: var(--tint); }
.margin-note .ribbon { align-self: flex-start; height: 52px; width: 20px; }
.margin-note > div { flex: 1; min-width: 260px; padding: 28px 0; }
.margin-note h2 { font-size: 1.9rem; margin-bottom: 8px; }

/* About */
.essay { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 72px; align-items: start; }
.essay-text p { font-size: 1.18rem; margin-bottom: 1.1em; max-width: 62ch; }
.dropcap::first-letter { float: left; font-family: var(--display); font-size: 5.2em; line-height: .78; padding: .08em .1em 0 0; color: var(--gold-deep); }
.pull { margin: 0; padding: 8px 0 8px 32px; border-left: 4px solid var(--gold); border-radius: 2px; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; }
.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mv article { padding: 8px 48px 8px 0; }
.mv article + article { padding: 8px 0 8px 48px; border-left: 1px solid var(--rule); }
.mv .mono { color: var(--gold-deep); margin-bottom: 18px; }
.mv h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.15; }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--navy); }
.values li { padding: 30px 24px 8px; border-left: 1px solid var(--rule); }
.values li:first-child { border-left: none; padding-left: 0; }
.v-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r); background: var(--navy); color: var(--gold); margin-bottom: 18px; }
.v-icon .ic { width: 20px; height: 20px; }
.values h3 { font-size: 1.55rem; margin-bottom: 8px; }
.values p { font-size: .96rem; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
.two-col .chapter-head { grid-template-columns: 1fr; margin-bottom: 32px; }
.two-col .chapter-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.approach { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.approach li { position: relative; padding-left: 30px; }
.approach li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.approach b { color: var(--ink); }
.sectors { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.sectors li { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.s-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--navy); border-radius: var(--r); color: var(--navy); flex-shrink: 0; }
.s-icon .ic { width: 19px; height: 19px; }
.sectors h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.sectors p { font-size: .95rem; color: var(--muted); }

/* Contact: a letter with notes in the margin */
.letter-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr); gap: 64px; align-items: start; }
.letter { position: relative; padding: 48px 48px 44px; border: 1px solid var(--rule); border-top: 6px solid var(--navy); border-radius: 20px; box-shadow: 0 30px 60px -40px rgba(0, 25, 65, .35); background: var(--paper); }
.letter-salute { font-size: 2rem; margin-bottom: 34px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 22px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field.span-2 { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: .7rem; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: var(--r); background: #fbfcfe; font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b4c0d4; }
.field input::placeholder, .field textarea::placeholder { color: #a3adc0; }
.field input:-webkit-autofill { -webkit-box-shadow: inset 0 0 0 60px #fbfcfe; -webkit-text-fill-color: var(--ink); }
.field select { cursor: pointer; -webkit-appearance: none; appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b97a00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background-color: var(--paper); box-shadow: 0 0 0 4px rgba(254, 178, 10, .25); }
.field.invalid input, .field.invalid textarea { border-color: #c2410c; background-color: #fffafa; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: center; gap: 8px; margin-top: 26px; font-size: .9rem; color: var(--muted); }
.consent .ic { color: var(--gold-deep); }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.form-status { font-size: .95rem; font-weight: 600; }
.form-status.error { color: #b42318; }
.form-done { position: relative; padding: 20px 0 10px; }
.form-done .ribbon { position: absolute; top: -50px; right: 0; height: 64px; width: 24px; }
.form-done .mono { color: var(--gold-deep); margin-bottom: 14px; }
.form-done h2 { font-size: 2.4rem; margin-bottom: 14px; }
.form-done p:not(.mono) { margin-bottom: 22px; max-width: 48ch; }
.margin { display: grid; gap: 40px; padding-top: 6px; }
.margin-h { color: var(--gold-deep); margin-bottom: 16px; }
.footnotes { margin: 0; padding: 0; list-style: none; counter-reset: fn; display: grid; gap: 16px; }
.footnotes li { position: relative; padding-left: 34px; counter-increment: fn; font-size: .97rem; }
.footnotes li::before { content: counter(fn); position: absolute; left: 0; top: 0; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--gold-deep); }
.footnotes b { color: var(--ink); }
.direct { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.direct li { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.direct .mono { color: var(--muted); font-size: .68rem; }
.direct b { color: var(--ink); overflow-wrap: anywhere; }
.margin-navy { position: relative; padding: 30px 26px 28px; border-radius: var(--r-lg); background: var(--navy); color: rgba(255, 255, 255, .78); }
.margin-navy .ribbon { position: absolute; top: 0; right: 22px; }
.margin-navy h2 { color: var(--paper); font-size: 1.7rem; margin-bottom: 10px; padding-right: 30px; }

/* 404 */
.notfound .mono { color: var(--gold-deep); margin-bottom: 18px; }
.notfound h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); max-width: 16ch; margin-bottom: 18px; }
.notfound .chapter-lead { margin-bottom: 30px; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .7); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding: 80px 0 56px; border-bottom: 1px solid var(--rule-dark); }
.footer-statement { font-family: var(--display); font-size: clamp(2.4rem, 5.6vw, 4.8rem); line-height: 1; color: var(--paper); }
.footer-statement em { font-style: normal; color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1.2fr; gap: 40px; padding: 52px 0; }
.footer-brand img { width: 200px; }
.footer-h { color: var(--gold); margin-bottom: 18px; font-size: .7rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-contact li { display: grid; gap: 2px; color: var(--paper); }
.footer-contact .mono { color: rgba(255, 255, 255, .5); font-size: .66rem; }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--rule-dark); border-radius: 50%; transition: background .2s, color .2s, border-color .2s; color: var(--paper); }
.socials a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.socials .ic { width: 16px; height: 16px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid var(--rule-dark); color: rgba(255, 255, 255, .5); font-size: .68rem; }

/* Motion: everything is visible at rest; JS only adds the entrance */
/* Entrance uses an animation, not a transition, so hover lifts keep working afterwards. */
.js .rise:not(.in) { opacity: 0; }
.js .rise.in { animation: rise .7s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* Responsive */
@media (max-width: 1100px) {
  .home-atlas { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .atlas-map { max-width: 560px; }
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .values li:nth-child(4) { border-left: none; padding-left: 0; }
  .atlas-row { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr); }
  .at-note { grid-column: 2 / -1; grid-row: 2; }
  .at-facts { grid-column: 3; grid-row: 1; }
  .atlas-row .text-link { grid-column: 2 / -1; justify-self: start; }
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc-title { grid-column: 1 / -1; padding-bottom: 6px; }
  .toc a:nth-of-type(odd) { border-left: none; padding-left: 0; }
  .toc a { border-top: 1px solid var(--rule-dark); }
}
@media (max-width: 920px) {
  .nav { position: fixed; inset: 114px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(24px, env(safe-area-inset-left, 0px)) 24px; background: var(--paper); border-bottom: 1px solid var(--rule); transform: translateY(-140%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 18px; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .hero-layout, .chapter-head, .page-hero-grid, .end-grid, .essay, .two-col, .letter-layout, .index-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-layout { padding-top: 56px; }
  .hero-art { max-width: 520px; }
  .chapter-head { row-gap: 18px; }
  .formats, .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey { row-gap: 44px; }
  .journey::before, .journey::after { display: none; }
  .promise-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 620px; }
  .promise-link { top: auto; right: auto; bottom: -34px; left: 50%; margin: 0 0 0 -14px; transform: rotate(90deg); }
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc a:nth-of-type(3) { border-left: none; padding-left: 0; }
  .toc a:nth-of-type(n+3) { border-top: 1px solid var(--rule-dark); }
  .area-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-side { position: static; }
  .index-toc { display: none; }
  .mv { grid-template-columns: minmax(0, 1fr); }
  .mv article + article { border-left: none; border-top: 1px solid var(--rule); padding: 32px 0 0; margin-top: 32px; }
  .chapter { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
  .rh-tag { display: none; }
  .header-inner { min-height: 70px; }
  .brand img { height: 50px; }
  .nav { inset: 104px 0 auto 0; }
  .formats, .journey, .values, .form-grid, .footer-grid, .toc, .area-index { grid-template-columns: minmax(0, 1fr); }
  .values li { border-left: none !important; padding-left: 0 !important; border-top: 1px solid var(--rule); }
  .promise { padding: 56px 0 60px; }
  .promise article { padding: 28px 24px; }
  .al-no { display: none; }
  .atlas-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .al-arrow { display: none; }
  .al-city { font-size: 1.3rem; }
  .toc a { border-left: none !important; padding: 18px 0; }
  .toc a + a { border-top: 1px solid var(--rule-dark); }
  .area-index a { padding: 24px 22px 20px; }
  .entry summary { grid-template-columns: minmax(0, 1fr) auto 26px; }
  .en-no { display: none; }
  .entry-body { padding-left: 0; }
  .atlas-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .at-no { display: none; }
  .at-note, .at-facts, .atlas-row .text-link { grid-column: auto; grid-row: auto; }
  .letter { padding: 30px 20px; }
  .field.span-2 { grid-column: auto; }
  .chapter { padding: 64px 0; }
  .index-section { padding-top: 48px; }
  .end-grid { padding-top: 72px; padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .swoosh { stroke-dashoffset: 0; }
  .js .rise { opacity: 1; transform: none; }
}
.atlas-row > .text-link { justify-self: end; }

/* ── Course outline dialog ─────────────────────────────────────────────────────── */
.od-lock { overflow: hidden; }
.outline-dialog { width: 100%; max-width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: none; background: transparent; color: var(--body); overflow: visible; }
.outline-dialog::backdrop { background: rgba(0, 12, 34, .66); backdrop-filter: blur(5px); }
.outline-dialog[open] .od-panel { animation: od-in .5s cubic-bezier(.2, .8, .2, 1) backwards; }
.outline-dialog[open]::backdrop { animation: od-fade .35s ease both; }
@keyframes od-in { from { opacity: 0; transform: translateY(28px) scale(.97); } }
@keyframes od-fade { from { opacity: 0; } }
.od-panel { position: relative; border-radius: 18px; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border-top: 5px solid var(--gold); box-shadow: 0 40px 90px -20px rgba(0, 12, 34, .55); }

.od-close { position: absolute; border-radius: 10px; z-index: 3; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); color: var(--paper); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .3s; }
.od-close:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: rotate(90deg); }
.od-close .ic { width: 18px; height: 18px; }

.od-head { position: relative; overflow: hidden; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 26px; align-items: center; padding: 34px 72px 32px 36px; background: radial-gradient(120% 140% at 0% 0%, #0c2c63 0%, var(--navy) 55%); color: rgba(255, 255, 255, .75); }
.od-head::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000); mask-image: linear-gradient(90deg, transparent 20%, #000); pointer-events: none; }
.od-head::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(rgba(254, 178, 10, .2), transparent 65%); pointer-events: none; }
.od-sheet { position: relative; width: 72px; height: 92px; padding: 22px 12px 0; background: var(--paper); box-shadow: 8px 8px 0 rgba(254, 178, 10, .9); transform: rotate(-6deg); animation: od-sheet 5s ease-in-out infinite; }
.od-sheet i { display: block; height: 4px; margin-bottom: 7px; background: #d9e0ec; border-radius: 2px; }
.od-sheet i:nth-of-type(1) { width: 70%; background: var(--navy); }
.od-sheet i:nth-of-type(3) { width: 85%; }
.od-sheet i:nth-of-type(5) { width: 55%; }
.od-sheet-ribbon { position: absolute; top: -4px; right: 10px; width: 12px; height: 22px; background: var(--gold); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%); }
.od-sheet-icon { position: absolute; right: -14px; bottom: -14px; display: grid; place-items: center; width: 34px; height: 34px; background: var(--navy-2); color: var(--gold); border: 2px solid var(--paper); border-radius: 50%; }
.od-sheet-icon .ic { width: 16px; height: 16px; }
@keyframes od-sheet { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-5px); } }
.od-head-text { position: relative; z-index: 1; min-width: 0; }
.od-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--gold); font-size: .68rem; }
.od-kicker::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.od-head h2 { color: var(--paper); font-size: clamp(1.45rem, 3.4vw, 1.9rem); line-height: 1.12; }
.od-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0 0; padding: 0; font-size: .66rem; color: rgba(255, 255, 255, .7); }
.od-meta li { display: inline-flex; align-items: center; gap: 7px; }
.od-meta .ic { width: 14px; height: 14px; color: var(--gold); }

.od-body { padding: 28px 36px 30px; }
.od-note { display: flex; border-radius: 12px; gap: 14px; align-items: flex-start; margin: 0 0 26px; padding: 16px 18px; background: var(--tint); border-left: 3px solid var(--gold); font-size: .93rem; line-height: 1.55; }
.od-note b { color: var(--ink); }
.od-note-icon { display: grid; border-radius: 9px; place-items: center; flex-shrink: 0; width: 38px; height: 38px; background: var(--navy); color: var(--gold); box-shadow: 4px 4px 0 #ffe3a1; }
.od-note-icon .ic { width: 18px; height: 18px; }

.od-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.od-field { display: grid; gap: 7px; min-width: 0; }
.od-field label { display: flex; align-items: center; gap: 6px; min-height: 22px; line-height: 1.2; font-weight: 600; font-size: .9rem; color: var(--ink); }
.req { font-style: normal; color: #c2410c; font-weight: 700; }
.od-input { position: relative; }
.od-input .ic { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: #8a96ad; pointer-events: none; transition: color .2s; }
.od-input input { width: 100%; padding: 13px 14px 13px 44px; border: 1.5px solid var(--rule); border-radius: 12px; background: #fbfcfe; font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.od-input input::placeholder { color: #a3adc0; }
.od-input input:hover { border-color: #b4c0d4; }
.od-input input:focus { outline: none; border-color: var(--navy); background: var(--paper); box-shadow: 0 0 0 4px rgba(254, 178, 10, .25); }
/* Keep autofilled boxes white instead of the browser's blue. */
.od-input input:-webkit-autofill { -webkit-box-shadow: inset 0 0 0 60px #fbfcfe; -webkit-text-fill-color: var(--ink); }
.od-input input:-webkit-autofill:focus { -webkit-box-shadow: inset 0 0 0 60px #fff, 0 0 0 4px rgba(254, 178, 10, .25); }
.od-input:focus-within .ic { color: var(--gold-deep); }
.od-field.ok .od-input .ic { color: var(--navy-2); }
.od-err { display: flex; align-items: center; gap: 6px; margin: 0; max-height: 0; overflow: hidden; opacity: 0; color: #b42318; font-size: .82rem; font-weight: 500; transition: max-height .25s, opacity .25s; }
.od-err .ic { width: 14px; height: 14px; }
.od-field.invalid .od-err { max-height: 40px; opacity: 1; }
.od-field.invalid input { border-color: #c2410c; background: #fffafa; }
.od-field.invalid input:focus { box-shadow: 0 0 0 4px rgba(194, 65, 12, .14); }
.od-field.invalid .od-input .ic { color: #c2410c; }

/* Phone: country code picker in front of the number */
.tel-code { position: relative; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; color: var(--ink); transition: background .2s; }
.tel-code select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font: inherit; font-size: 1rem; }
.tel-show { font-size: .95rem; white-space: nowrap; }
.tel-show b { margin-right: 3px; font: 500 .72rem var(--mono); letter-spacing: .06em; color: var(--muted); }
.tel-code .ic { width: 14px; height: 14px; color: var(--gold-deep); transition: transform .2s; }
.tel-code:hover .ic { transform: translateY(1px); }
.tel-code:not(.enhanced):focus-within, .tel-btn:focus-visible, .tel-code.open .tel-btn { background: #fff6dd; }
.tel-code.enhanced select { display: none; }
.tel-btn { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; height: 100%; padding: 0; border: none; border-radius: inherit; background: transparent; color: inherit; font: inherit; cursor: pointer; transition: background .2s; }
.tel-btn:focus-visible { outline: none; }
.tel-code.open .tel-btn .ic { transform: rotate(180deg); }
.od-tel .tel-code { position: absolute; border-radius: 11px 0 0 11px; z-index: 1; left: 1.5px; top: 1.5px; bottom: 1.5px; width: 112px; padding: 0 12px 0 14px; justify-content: space-between; border-right: 1.5px solid var(--rule); }
.od-tel .tel-code.enhanced { padding: 0; }
.od-tel .tel-btn { padding: 0 12px 0 14px; }
.od-tel .tel-code.open { z-index: 5; }
.od-input .tel-code .ic { position: static; margin: 0; width: 14px; height: 14px; color: var(--gold-deep); }
.od-tel input { padding-left: 128px; }
.od-field.invalid .od-tel .tel-code { border-right-color: #f1c4b4; }
.tel-line { display: flex; align-items: stretch; border: 1.5px solid var(--rule); border-radius: var(--r); background: #fbfcfe; transition: border-color .2s, box-shadow .2s, background .2s; }
.tel-line:hover { border-color: #b4c0d4; }
.tel-line:focus-within { border-color: var(--navy); background: var(--paper); box-shadow: 0 0 0 4px rgba(254, 178, 10, .25); }
.tel-line .tel-code { padding: 0 12px 0 14px; border-right: 1.5px solid var(--rule); border-radius: 11px 0 0 11px; }
.tel-line .tel-code.enhanced { padding: 0; }
.tel-line .tel-btn { padding: 0 12px 0 14px; }

/* Searchable country list */
.tel-pop { position: fixed; z-index: 60; width: 310px; padding: 8px; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 24px 50px -18px rgba(0, 25, 65, .45); color: var(--ink); text-align: left; animation: tel-in .18s ease-out both; }
.tel-pop.up { animation-name: tel-up; }
@keyframes tel-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes tel-up { from { opacity: 0; transform: translateY(6px); } }
.tel-code .tel-search { position: relative; display: block; margin: 0 0 6px; }
.tel-code .tel-pop .ic { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: #8a96ad; }
.tel-code .tel-search input { width: 100%; padding: 10px 12px 10px 38px; border: 1.5px solid var(--rule); border-radius: 10px; background: #f6f8fc; box-shadow: none; font: inherit; font-size: .95rem; color: var(--ink); }
.tel-code .tel-search input:focus { outline: none; border-color: var(--navy); background: var(--paper); box-shadow: 0 0 0 3px rgba(254, 178, 10, .25); }
.tel-code .tel-search input::-webkit-search-cancel-button { cursor: pointer; }
.tel-code .tel-search:focus-within .ic { color: var(--gold-deep); }
.tel-list { list-style: none; max-height: 232px; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.tel-group { padding: 10px 10px 4px; color: var(--muted); font: 500 .62rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.tel-list [role="option"] { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 16px; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; font-size: .92rem; line-height: 1.3; cursor: pointer; }
.tel-list [role="option"] b { font: 500 .7rem var(--mono); letter-spacing: .06em; color: var(--muted); }
.tel-list [role="option"] span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tel-list [role="option"] em { font-style: normal; color: var(--muted); font-size: .86rem; }
.tel-list .active { background: var(--tint); }
.tel-list .current { font-weight: 600; }
.tel-list .current em { color: var(--navy-2); }
.tel-code .tel-list .ic { position: static; margin: 0; width: 16px; height: 16px; color: var(--gold-deep); stroke-width: 2.6; }
.tel-empty { margin: 0; padding: 18px 10px; color: var(--muted); font-size: .9rem; text-align: center; }
.field .tel-line input, .field .tel-line input:hover, .field .tel-line input:focus { flex: 1; min-width: 0; border: none; background: transparent; box-shadow: none; }

.od-status { margin: 18px 0 0; font-size: .92rem; font-weight: 600; color: #b42318; }
.od-status:empty { display: none; }
.od-submit { width: 100%; margin-top: 22px; border-radius: 12px; box-shadow: 0 10px 24px -12px rgba(0, 25, 65, .55); transition: background .2s, transform .2s, box-shadow .2s; }
.od-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(0, 25, 65, .6); }
.od-submit .ic { transition: transform .3s; }
.od-submit:hover .ic { transform: translate(3px, -3px); }
.od-submit[disabled] { cursor: progress; opacity: .85; }
.od-spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .3); border-top-color: var(--gold); border-radius: 50%; animation: od-spin .7s linear infinite; }
.od-submit.busy .od-spin { display: block; }
.od-submit.busy .ic { display: none; }
@keyframes od-spin { to { transform: rotate(360deg); } }
.od-privacy { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.od-privacy .ic { color: var(--gold-deep); }

.od-done { text-align: center; padding-top: 34px; }
.od-done:focus { outline: none; }
.od-done .od-kicker { justify-content: center; color: var(--gold-deep); }
.od-done .od-kicker::after { content: ""; width: 24px; height: 2px; background: currentColor; }
.od-done h2 { font-size: 2.3rem; margin-bottom: 12px; }
.od-done-lead { max-width: 44ch; margin: 0 auto 22px; }
.od-done-lead b { color: var(--ink); overflow-wrap: anywhere; }
.od-envelope { position: relative; width: 150px; margin: 0 auto 22px; }
.od-envelope svg { display: block; width: 150px; height: 112px; overflow: visible; }
.env-back { fill: var(--navy-2); }
.env-letter rect { fill: var(--paper); stroke: var(--rule); }
.env-letter path { stroke: #c9d3e4; stroke-width: 4; stroke-linecap: round; }
.env-letter path:first-of-type { stroke: var(--gold); }
.env-front { fill: var(--navy); }
.env-flap { fill: none; stroke: rgba(254, 178, 10, .85); stroke-width: 2; stroke-linejoin: round; }
.od-badge { position: absolute; right: -8px; top: 4px; display: grid; place-items: center; width: 46px; height: 46px; background: var(--gold); color: var(--navy); border: 4px solid var(--paper); border-radius: 50%; box-shadow: 0 6px 18px rgba(185, 122, 0, .35); }
.od-badge .ic { width: 22px; height: 22px; stroke-width: 3; }
.od-done:not([hidden]) .env-letter { animation: env-letter .9s cubic-bezier(.2, .8, .2, 1) .1s both; }
.od-done:not([hidden]) .od-envelope svg { animation: env-fly 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.od-done:not([hidden]) .od-badge { animation: od-pop .5s cubic-bezier(.3, 1.6, .5, 1) .75s both; }
.od-envelope::after { content: ""; position: absolute; right: -8px; top: 4px; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; pointer-events: none; }
.od-done:not([hidden]) .od-envelope::after { animation: ping 1.6s ease-out 1.1s 2; }
@keyframes env-letter { from { transform: translateY(-34px); opacity: 0; } 40% { opacity: 1; } }
@keyframes env-fly { from { transform: translateY(16px) scale(.9); opacity: 0; } }
@keyframes od-pop { from { transform: scale(0) rotate(-40deg); } }
.od-tips { list-style: none; border-radius: 14px; display: grid; gap: 10px; max-width: 420px; margin: 0 auto 26px; padding: 18px 20px; background: var(--tint); text-align: left; font-size: .9rem; }
.od-tips li { display: flex; align-items: center; gap: 12px; }
.od-tips .ic { border-radius: 8px; width: 28px; height: 28px; padding: 6px; flex-shrink: 0; background: var(--paper); color: var(--gold-deep); border: 1px solid var(--rule); }
.od-actions .btn { border-radius: 12px; }
.od-actions { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .outline-dialog { max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .od-panel { max-height: calc(100dvh - 20px); }
  .od-head { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 28px 64px 24px 22px; }
  .od-sheet { display: none; }
  .od-body { padding: 22px 20px 24px; }
  .od-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .od-note { padding: 14px; gap: 12px; font-size: .88rem; }
  .od-done h2 { font-size: 1.9rem; }
  .od-close { top: 12px; right: 12px; }
}

/* ── Header: sign in ───────────────────────────────────────────────────────────── */
.nav-signin { padding: .72em 1.05em; font-size: .9rem; gap: .5em; border-color: var(--rule); color: var(--navy); }
.nav-signin .ic { width: 17px; height: 17px; color: var(--gold-deep); transition: transform .25s; }
.nav-signin:hover { border-color: var(--navy); background: var(--navy); color: var(--paper); }
.nav-signin:hover .ic { color: var(--gold); transform: translateX(2px); }
.nav-signin[aria-current] { border-color: var(--navy); }
@media (max-width: 1180px) and (min-width: 921px) {
  .nav { gap: 20px; }
  .nav-cta .ic { display: none; }
}
@media (max-width: 920px) {
  .nav-signin { margin-top: 18px; justify-content: center; }
  .nav-signin + .nav-cta { margin-top: 10px; }
}

/* ── Course entries: dates and actions ───────────────────────────────────────────── */
.en-dates { padding: 14px 16px; background: var(--tint); border-radius: var(--r); }
.en-dates-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--gold-deep); font-size: .66rem; }
.en-dates-h .ic { width: 14px; height: 14px; }
.en-dates ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.en-dates li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 8px 12px; background: var(--paper); border-radius: var(--r-sm); font-size: .93rem; }
.en-dates li b { color: var(--ink); min-width: 150px; }
.en-venue { display: inline-flex; align-items: center; gap: 6px; color: var(--body); }
.en-venue .ic { width: 14px; height: 14px; color: var(--navy-2); }
.en-fee { margin-left: auto; color: var(--navy); font-weight: 600; }
.en-dates li.full { opacity: .6; }
.en-full { padding: 2px 8px; border-radius: 999px; background: #fde8e4; color: #b42318; font-size: .62rem; }
.en-ondemand { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--tint); border-radius: var(--r); font-size: .93rem; }
.en-ondemand .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--gold-deep); }
.en-ondemand b { color: var(--ink); }
.en-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 4px; }
.en-register { padding: .8em 1.3em; font-size: .92rem; }
.en-register .ic { width: 17px; height: 17px; color: var(--gold); }
.btn.en-register:hover .ic { transform: rotate(-8deg); }

/* ── Registration dialog ─────────────────────────────────────────────────────────── */
.rg-ticket { padding-top: 26px; }
.rg-stub { position: absolute; left: 0; right: 0; bottom: 22px; border-top: 2px dashed #c9d3e4; }
.rg-dates { margin: 0 0 22px; padding: 0; border: none; min-width: 0; }
.rg-dates legend { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 0; font-weight: 600; font-size: .9rem; color: var(--ink); }
.rg-options { display: grid; gap: 8px; }
.rg-option { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 16px; border: 1.5px solid var(--rule); border-radius: var(--r); background: #fbfcfe; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.rg-option:hover { border-color: #b4c0d4; }
.rg-option input { position: absolute; opacity: 0; pointer-events: none; }
.rg-radio { width: 20px; height: 20px; border: 2px solid #b4c0d4; border-radius: 50%; transition: border-color .2s, box-shadow .2s; }
.rg-option:has(input:checked) { border-color: var(--navy); background: var(--paper); box-shadow: 0 0 0 4px rgba(254, 178, 10, .2); }
.rg-option:has(input:checked) .rg-radio { border-color: var(--navy); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 10px var(--gold); }
.rg-option:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.rg-when { display: grid; min-width: 0; }
.rg-when b { color: var(--ink); font-size: .98rem; }
.rg-when span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .86rem; }
.rg-when .ic { width: 13px; height: 13px; color: var(--navy-2); }
.rg-price { font-weight: 600; color: var(--navy); font-size: .92rem; white-space: nowrap; }
.rg-option.is-full { cursor: not-allowed; opacity: .55; }
.rg-option.is-next .rg-when b { font-weight: 600; }
.rg-dates.invalid .rg-option { border-color: #f1c4b4; }
.rg-dates.invalid .od-err { max-height: 40px; opacity: 1; margin-top: 8px; }
.od-field.span-2 { grid-column: 1 / -1; }
.od-field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: var(--r); background: #fbfcfe; font: inherit; font-size: .98rem; color: var(--ink); resize: vertical; transition: border-color .2s, box-shadow .2s, background .2s; }
.od-field textarea:focus { outline: none; border-color: var(--navy); background: var(--paper); box-shadow: 0 0 0 4px rgba(254, 178, 10, .25); }
.od-field textarea::placeholder { color: #a3adc0; }
.rg-stepper { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; border: 1.5px solid var(--rule); border-radius: var(--r); background: #fbfcfe; overflow: hidden; }
.rg-stepper button { border: none; background: transparent; font: 600 1.2rem var(--sans); color: var(--navy); cursor: pointer; transition: background .2s; }
.rg-stepper button:hover { background: var(--tint); }
.rg-stepper input { width: 100%; padding: 12px 0; border: none; border-left: 1.5px solid var(--rule); border-right: 1.5px solid var(--rule); background: transparent; text-align: center; font: 600 1rem var(--sans); color: var(--ink); -moz-appearance: textfield; }
.rg-stepper input::-webkit-inner-spin-button, .rg-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.rg-stepper input:focus { outline: none; background: var(--paper); }
.rg-stepper:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(254, 178, 10, .25); }
.rg-confirm { position: relative; width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--tint); }
.rg-confirm .od-badge { left: 50%; top: 50%; right: auto; width: 60px; height: 60px; margin: -30px 0 0 -30px; }
.rg-confirm .od-badge .ic { width: 28px; height: 28px; }
.rg-done:not([hidden]) .rg-confirm .od-badge { animation: od-pop .55s cubic-bezier(.3, 1.6, .5, 1) .15s both; }
.rg-pass { max-width: 420px; margin: 0 auto 22px; border-radius: 16px; overflow: hidden; border: 1px solid var(--rule); text-align: left; }
.rg-pass-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--navy); color: rgba(255, 255, 255, .7); }
.rg-pass-top .mono { font-size: .64rem; }
.rg-pass-top b { color: var(--gold); font: 500 1.05rem var(--mono); letter-spacing: .06em; }
.rg-pass dl { margin: 0; padding: 6px 18px; border-top: 2px dashed var(--rule); }
.rg-pass dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 8px 0; }
.rg-pass dl div + div { border-top: 1px solid var(--tint); }
.rg-pass dt { color: var(--muted); font-size: .64rem; padding-top: 3px; }
.rg-pass dd { margin: 0; color: var(--ink); font-weight: 600; font-size: .94rem; }
.rg-done .od-tips b { color: var(--ink); overflow-wrap: anywhere; }

/* ── Sign in ─────────────────────────────────────────────────────────────────────── */
.signin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 114px); }
.signin-art { position: relative; overflow: hidden; display: flex; align-items: center; padding: 64px max(48px, 6vw); background: radial-gradient(900px 600px at 30% 40%, #0b2c66 0%, rgba(0, 25, 65, 0) 62%), linear-gradient(180deg, #001941 0%, #00122f 100%); color: rgba(255, 255, 255, .78); }
.signin-glow { position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(rgba(254, 178, 10, .22), transparent 65%); }
.signin-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px); background-size: 20px 20px; -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000); mask-image: linear-gradient(120deg, transparent 30%, #000); }
.signin-art-copy { position: relative; z-index: 1; max-width: 480px; }
.signin-quote { margin: 0 0 34px; color: var(--paper); font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1.05; }
.signin-quote em { color: var(--gold); }
.signin-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.signin-points li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--rule-dark); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.signin-points .ic { width: 22px; height: 22px; margin-top: 2px; color: var(--gold); }
.signin-points b { color: var(--paper); }
.signin-snow { position: absolute; inset: 0; pointer-events: none; }
.signin-snow i { position: absolute; top: -10px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: rgba(255, 255, 255, .5); animation: snow var(--t) linear infinite; animation-delay: calc(var(--d) * -1); }
.signin-panel { display: grid; place-items: center; padding: 56px 24px; background: linear-gradient(180deg, var(--tint), #fff); }
.signin-card { width: 100%; max-width: 460px; display: grid; gap: 18px; padding: 22px 36px 34px; background: var(--paper); border: 1px solid var(--rule); border-top: 5px solid var(--gold); border-radius: 20px; box-shadow: 0 40px 80px -40px rgba(0, 25, 65, .4); }
.signin-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: var(--gold); box-shadow: 5px 5px 0 #ffe3a1; }
.signin-badge .ic { width: 24px; height: 24px; }
.signin-card h1 { font-size: 2.4rem; }
.signin-card h1 em { color: var(--gold-deep); }
.signin-lead { margin-top: -8px; color: var(--muted); font-size: .96rem; }
.signin-card .od-submit { margin-top: 4px; }
.si-pass input { padding-right: 48px; }
.si-eye { position: absolute; right: 6px; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; margin-top: -19px; padding: 0; border: none; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.si-eye:hover { background: var(--tint); color: var(--navy); }
.od-input .si-eye .ic { position: static; margin: 0; }
.si-hide, .si-eye[aria-pressed="true"] .si-show { display: none; }
.si-eye[aria-pressed="true"] .si-hide { display: block; }
.signin-help { display: flex; gap: 10px; align-items: flex-start; padding-top: 16px; border-top: 1px dashed var(--rule); color: var(--muted); font-size: .88rem; }
.signin-help .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--gold-deep); }
.signin-help a { color: var(--navy); font-weight: 600; }

/* ── Client portal ───────────────────────────────────────────────────────────────── */
.portal-hero { background: radial-gradient(900px 500px at 80% 30%, #0b2c66 0%, rgba(0, 25, 65, 0) 62%), var(--navy); color: rgba(255, 255, 255, .78); border-bottom: 6px solid var(--gold); }
.portal-hero-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-top: 64px; padding-bottom: 56px; }
.portal-hero h1 { color: var(--paper); font-size: clamp(2.6rem, 5vw, 4.2rem); }
.portal-hero h1 em { color: var(--gold); }
.portal-lead { margin-top: 12px; max-width: 48ch; }
.portal-me { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--rule-dark); border-radius: 16px; background: rgba(255, 255, 255, .04); }
.portal-me > span:nth-child(2) { display: grid; }
.portal-me b { color: var(--paper); }
.portal-me span span { font-size: .85rem; color: rgba(255, 255, 255, .6); }
.portal-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 700; }
.portal-me .btn { padding: .6em 1em; font-size: .85rem; background: transparent; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.portal-h { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 1.1rem; color: var(--ink); }
.portal-h .ic { color: var(--gold-deep); }
.portal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.portal-card { padding: 22px 24px; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--paper); }
.pc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pc-ref { color: var(--gold-deep); }
.portal-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.pc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: .94rem; }
.pc-meta .ic, .pc-meta span .ic { width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; color: var(--navy-2); }
.pc-foot { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--rule); color: var(--muted); font-size: .64rem; }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--navy); font-size: .78rem; font-weight: 600; }
.pill-new { background: #fff3d4; color: #8a5b00; }
.pill-confirmed, .pill-paid, .pill-completed { background: #e3f4ea; color: #1d6b3d; }
.pill-invoiced { background: #e5ecfb; color: #173b7a; }
.pill-cancelled { background: #fde8e4; color: #b42318; }
.portal-empty { display: grid; justify-items: start; gap: 14px; padding: 30px; border: 1.5px dashed var(--rule); border-radius: var(--r-lg); }
.portal-empty > .ic { width: 30px; height: 30px; color: var(--gold-deep); }
.portal-mini { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 8px; }
.portal-mini li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--tint); border-radius: var(--r); font-size: .94rem; }
.portal-mini b { color: var(--ink); }
.portal-mini .mono { color: var(--muted); font-size: .62rem; white-space: nowrap; padding-top: 3px; }
.portal-note { margin-bottom: 28px; color: var(--muted); }
.portal-help .btn { margin-top: 16px; }

@media (max-width: 920px) {
  .signin { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .signin-art { padding: 48px 24px; }
  .signin-quote { font-size: 2.1rem; margin-bottom: 22px; }
  .portal-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .signin-art { display: none; }
  .signin-panel { padding: 32px 14px 48px; }
  .signin-card { padding: 30px 22px 26px; }
  .rg-option { grid-template-columns: 22px minmax(0, 1fr); }
  .rg-price { grid-column: 2; }
  .en-fee { margin-left: 0; }
}

/* ── Sign in / create account tabs ──────────────────────────────────────────────── */
.si-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 6px; background: var(--tint); border-radius: 14px; }
.si-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border: none; border-radius: 11px; background: transparent; color: var(--body); font: 600 .92rem var(--sans); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.si-tabs button .ic { width: 17px; height: 17px; color: var(--gold-deep); }
.si-tabs button:hover { color: var(--navy); }
.si-tabs button[aria-selected="true"] { background: var(--paper); color: var(--navy); box-shadow: 0 6px 16px -10px rgba(0, 25, 65, .45); }
.si-pane { display: grid; gap: 18px; animation: si-in .3s ease both; }
.si-pane[hidden] { display: none; }
@keyframes si-in { from { opacity: 0; transform: translateY(6px); } }
.si-switch { padding: 0; border: none; background: none; color: var(--navy); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
@media (max-width: 560px) { .si-tabs button { padding: 10px 6px; font-size: .86rem; gap: 6px; white-space: nowrap; } .signin-card { padding: 18px 20px 26px; } }
.su-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 2px; }
.su-meter i { height: 5px; border-radius: 999px; background: var(--tint); transition: background .25s; }
.su-meter[data-score="1"] i:nth-child(-n+1) { background: #e8a33c; }
.su-meter[data-score="2"] i:nth-child(-n+2) { background: var(--gold); }
.su-meter[data-score="3"] i:nth-child(-n+3) { background: #2f9e62; }
.su-meter[data-score="4"] i { background: #1d6b3d; }
.su-meter-text { margin: 0; color: var(--muted); font-size: .82rem; }

/* ── Portal: notices and the confirm-email step ─────────────────────────────────── */
.portal-banner { display: flex; align-items: flex-start; gap: 12px; margin: 36px 0 -60px; padding: 16px 20px; border-radius: 16px; background: #e3f4ea; color: #1d4d33; }
.portal-banner .ic { width: 22px; height: 22px; margin-top: 1px; color: #1d6b3d; }
.portal-banner b { color: #123b27; }
.portal-banner.warn { background: #fff3d4; color: #6b4700; }
.portal-banner.warn .ic { color: var(--gold-deep); }
.portal-verify { background: linear-gradient(180deg, #fffaf0, #fff); border-style: solid; border-color: #f5dfa8; }
.portal-verify .btn { margin-top: 4px; }
.portal-verify .portal-note { margin: 0; }
@media (max-width: 560px) {
  .portal-banner { margin-bottom: -40px; }
}

/* ── Sign in: forgot link, divider and the account cards ─────────────────────────── */
.si-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.si-label-row label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.si-forgot { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: none; border-radius: 999px; background: transparent; color: var(--navy-2); font: 600 .84rem var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.si-forgot .ic { width: 14px; height: 14px; color: var(--gold-deep); }
.si-forgot:hover { background: #fff3d4; color: var(--navy); }
.si-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; }
.si-or::before, .si-or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.si-cta { display: grid; grid-template-columns: 46px minmax(0, 1fr) 34px; gap: 14px; align-items: center; width: 100%; padding: 14px 14px 14px 14px; border: 1.5px solid var(--rule); border-radius: 16px; background: linear-gradient(135deg, #fbfcfe 0%, #f3f6fb 100%); text-align: left; font: inherit; cursor: pointer; transition: border-color .25s, box-shadow .25s, transform .25s, background .25s; }
.si-cta:hover { border-color: var(--navy); background: var(--paper); transform: translateY(-2px); box-shadow: 0 18px 32px -22px rgba(0, 25, 65, .55); }
.si-cta-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--navy); color: var(--gold); box-shadow: 4px 4px 0 #ffe3a1; transition: background .25s, color .25s, box-shadow .25s; }
.si-cta-icon .ic { width: 21px; height: 21px; }
.si-cta:hover .si-cta-icon { background: var(--gold); color: var(--navy); box-shadow: 4px 4px 0 var(--navy); }
.si-cta-text { display: grid; gap: 2px; min-width: 0; }
.si-cta-text b { color: var(--ink); font-size: 1rem; }
.si-cta-text span { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.si-cta-go { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--rule); border-radius: 50%; color: var(--navy); transition: background .25s, border-color .25s, color .25s; }
.si-cta-go .ic { width: 16px; height: 16px; transition: transform .25s; }
.si-cta:hover .si-cta-go { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.si-cta:hover .si-cta-go .ic { transform: translateX(2px); }
.si-small { display: flex; align-items: center; gap: 8px; margin: -4px 0 0; color: var(--muted); font-size: .84rem; }
.si-small .ic { width: 15px; height: 15px; color: var(--gold-deep); }
.si-sent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #e3f4ea; color: #1d4d33; font-size: .92rem; }
.si-sent .ic { width: 20px; height: 20px; margin-top: 2px; color: #1d6b3d; }
.si-sent b { color: #123b27; overflow-wrap: anywhere; }
.si-sent[hidden] { display: none; }

/* Sign in: the opening book from the home page, centred above the heading */
.signin-book { width: min(300px, 72%); margin: 0 auto 30px; }
.signin-art { padding-top: 48px; padding-bottom: 48px; }
@media (max-width: 920px) { .signin-book { width: min(220px, 60%); margin-bottom: 20px; } }

/* Number boxes: no up/down arrows anywhere; type the value. */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }

/* ── Outline dialog: "ready" screen ───────────────────────────────────────────── */
.od-ready { padding: 0; text-align: left; }
.od-ready:focus { outline: none; }
.od-ready-head { padding: 30px 72px 26px 36px; background: radial-gradient(120% 140% at 0% 0%, #0c2c63 0%, var(--navy) 60%, var(--navy-ink) 100%); color: var(--paper); }
.od-ready-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: #ffc94d; font-size: .68rem; }
.od-ready-check { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--navy); animation: od-pop .5s cubic-bezier(.3, 1.6, .5, 1) .1s both; }
.od-ready-check .ic { width: 17px; height: 17px; stroke-width: 3; }
.od-ready-head h2 { color: var(--paper); font-size: clamp(1.7rem, 4vw, 2.2rem); line-height: 1.12; margin: 0 0 10px; }
.od-ready-lead { margin: 0; color: #c3cde0; font-size: .98rem; line-height: 1.55; }
.od-ready-lead b { color: var(--paper); overflow-wrap: anywhere; }
.od-ready-main { display: grid; gap: 14px; padding: 24px 36px 28px; }
.od-file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 14px; background: var(--tint); }
.od-file[hidden] { display: none; }
.od-file-ic { display: grid; place-items: end center; flex-shrink: 0; width: 40px; height: 48px; padding-bottom: 5px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); color: #b3261e; font-size: .62rem; font-weight: 800; letter-spacing: .04em; }
.od-file-text { display: grid; flex: 1; min-width: 0; gap: 2px; }
.od-file-text b { color: var(--ink); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-file-text span { color: var(--muted); font-size: .82rem; }
.od-file-again { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 6px; color: var(--navy); font-weight: 700; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.od-file-again .ic { width: 16px; height: 16px; }
.od-file-again:hover { color: var(--gold-deep); }
.od-next-label { margin: 8px 0 -2px; color: var(--muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.od-next { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); color: var(--navy); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.od-next:hover { border-color: var(--navy); transform: translateY(-1px); box-shadow: 0 10px 24px -16px rgba(11, 31, 75, .5); }
.od-next-main { border: 2px solid var(--gold); background: #fffaf0; }
.od-next-ic { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; background: var(--navy); color: var(--gold); }
.od-next-ic .ic { width: 20px; height: 20px; }
.od-next-text { display: grid; flex: 1; min-width: 0; gap: 2px; }
.od-next-text b { color: var(--ink); font-size: .98rem; }
.od-next-text span { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.od-next > .ic { flex-shrink: 0; width: 18px; height: 18px; transition: transform .2s; }
.od-next:hover > .ic { transform: translateX(3px); }
.od-ready-back { justify-self: center; min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.od-ready-back:hover { color: var(--navy); text-decoration: underline; }
@media (max-width: 600px) {
  .od-ready-head { padding: 26px 60px 22px 20px; }
  .od-ready-main { padding: 20px 20px 24px; }
  .od-file { flex-wrap: wrap; }
  .od-file-text { flex-basis: calc(100% - 60px); }
  .od-next { padding: 14px; gap: 12px; }
}

/* ── Enquiry form (short) ── */
.letter.enq { padding: 36px 40px 32px; }
.enq-head { display: flex; align-items: flex-start; gap: 20px; }
.enq-badge { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--navy); color: var(--gold); box-shadow: 6px 6px 0 rgba(254, 178, 10, .9); }
.enq-badge .ic { width: 26px; height: 26px; }
.enq-kicker { margin: 0 0 6px; color: var(--gold-deep); }
.enq-title { margin: 0; font-size: 2.15rem; line-height: 1.05; }
.enq-lead { margin: 10px 0 0; max-width: 52ch; color: var(--body, #36435e); }
.enq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; margin-top: 26px; }
.enq-field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.enq-field.span-2 { grid-column: 1 / -1; }
.enq-field > label { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.enq-field .req { color: #c2410c; font-style: normal; }
.enq-input { position: relative; }
.enq-input > .ic { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: #8a96ad; pointer-events: none; transition: color .2s; }
.enq-input:focus-within > .ic { color: var(--gold-deep); }
.enq-input input, .enq-field textarea { width: 100%; padding: 13px 14px 13px 44px; border: 1.5px solid var(--rule); border-radius: 12px; background: #fbfcfe; font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.enq-field textarea { min-height: 116px; padding: 14px 15px; line-height: 1.55; resize: vertical; }
.enq-input input::placeholder, .enq-field textarea::placeholder { color: #a3adc0; }
.enq-input input:hover, .enq-field textarea:hover { border-color: #b4c0d4; }
.enq-input input:focus, .enq-field textarea:focus { outline: none; border-color: var(--navy); background-color: var(--paper, #fff); box-shadow: 0 0 0 4px rgba(254, 178, 10, .25); }
.enq-input input:-webkit-autofill { -webkit-box-shadow: inset 0 0 0 60px #fbfcfe; -webkit-text-fill-color: var(--ink); }
.enq-field.invalid .enq-input input, .enq-field.invalid textarea, .enq-field.invalid .tel-line { border-color: #c2410c; background-color: #fffafa; }
.enq-field .tel-line { min-height: 50px; border-radius: 12px; }
.enq-field .tel-line > input { flex: 1; min-width: 0; width: auto; padding: 13px 14px; border: 0; border-radius: 0 12px 12px 0; background: transparent; box-shadow: none; font: inherit; font-size: 1rem; color: var(--ink); }
.enq-field .tel-line > input:focus { outline: none; box-shadow: none; }
.enq-field .tel-line > input::placeholder { color: #a3adc0; }
.enq-err { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .84rem; font-weight: 600; color: #b42318; }
.enq-err[hidden] { display: none; }
.enq-err .ic { flex: none; width: 15px; height: 15px; }
.enq-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.enq-consent { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: .88rem; color: var(--muted); }
.enq-consent .ic { flex: none; color: var(--gold-deep); }
.enq-spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .3); border-top-color: var(--gold); border-radius: 50%; animation: enq-spin .7s linear infinite; }
#sendBtn.busy .enq-spin { display: inline-block; }
#sendBtn.busy > .ic { display: none; }
@keyframes enq-spin { to { transform: rotate(360deg); } }
.enq-done-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; }
.enq-done-actions .text-link { border: 0; background-color: transparent; cursor: pointer; font: inherit; font-weight: 600; }

.direct a { color: inherit; text-decoration: none; }
.direct a:hover b { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.direct .direct-wa { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .85rem; font-weight: 600; color: var(--gold-deep); }
.direct .direct-wa .ic { width: 15px; height: 15px; }

@media (max-width: 640px) {
  .letter.enq { padding: 26px 20px 24px; }
  .enq-head { gap: 14px; }
  .enq-badge { width: 46px; height: 46px; box-shadow: 4px 4px 0 rgba(254, 178, 10, .9); }
  .enq-title { font-size: 1.7rem; }
  .enq-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .enq-spin { animation-duration: 2s; } }

/* ── Registration: one decision at a time ── */
.rg-steps { padding: 16px 36px 0; }
.rg-steps[hidden] { display: none; }
.rg-steps ol { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.rg-steps li { display: flex; align-items: center; gap: 6px; }
.rg-steps li + li::before { content: ""; width: 22px; height: 2px; margin-right: 4px; border-radius: 2px; background: var(--rule); }
.rg-steps li.on::before, .rg-steps li.done::before { background: var(--navy-2); }
.rg-steps button { display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px 4px 4px; border: 0; border-radius: 999px; background: transparent; font: 600 .82rem var(--sans); color: var(--muted); cursor: default; transition: background .2s; }
.rg-steps li.on button, .rg-steps li.done button { color: var(--navy); }
.rg-steps li.done button { cursor: pointer; }
.rg-steps li.done button:hover { background: var(--tint, #eef2f8); }
.rg-sn { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tint, #eef2f8); font: 600 .72rem var(--mono); color: var(--muted); }
.rg-steps li.on .rg-sn { background: var(--navy); color: var(--gold); }
.rg-steps li.done .rg-sn { background: var(--gold); color: var(--navy); }
.rg-q { margin: 0 0 16px; font: 600 1.18rem var(--sans); color: var(--ink); }
.rg-venues, .rg-datelist { display: grid; gap: 10px; }
.rg-venue, .rg-date { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 14px 16px; border: 1.5px solid var(--rule); border-radius: var(--r); background: #fbfcfe; font: inherit; text-align: left; color: var(--ink); cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s, transform .2s; }
.rg-venue:hover:not(:disabled), .rg-date:hover:not(:disabled) { border-color: var(--navy); background: var(--paper); box-shadow: 0 10px 22px -16px rgba(0, 25, 65, .5); transform: translateY(-1px); }
.rg-venue:focus-visible, .rg-date:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.rg-venue > .ic, .rg-date > .ic { flex: none; width: 18px; height: 18px; color: var(--gold-deep); transition: transform .2s; }
.rg-venue:hover > .ic, .rg-date:hover > .ic { transform: translateX(3px); }
.rg-venue:disabled, .rg-date:disabled { cursor: not-allowed; opacity: .55; }
.rg-venue-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: var(--gold); }
.rg-venue-ic .ic { width: 20px; height: 20px; }
.rg-venue-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.rg-venue-text b { font-size: 1rem; }
.rg-venue-text span { font-size: .86rem; color: var(--muted); }
.rg-venue-next { border-style: dashed; background: transparent; }
.rg-venue-next .rg-venue-ic { background: var(--tint, #eef2f8); color: var(--navy); }
.rg-month { margin: 12px 0 0; color: var(--gold-deep); }
.rg-month:first-child { margin-top: 0; }
.rg-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 12px; padding: 4px 8px 4px 2px; border: 0; border-radius: 8px; background: none; font: 600 .88rem var(--sans); color: var(--navy-2); cursor: pointer; }
.rg-back .ic { width: 16px; height: 16px; }
.rg-back:hover { background: var(--tint, #eef2f8); }
.rg-summary { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 12px 14px; border-radius: 12px; background: #fff3d4; }
.rg-summary-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: var(--gold); }
.rg-summary-ic .ic { width: 17px; height: 17px; }
.rg-summary-text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.rg-summary-text b { font-size: .95rem; color: var(--ink); overflow-wrap: anywhere; }
.rg-summary-text span { font-size: .86rem; color: #6d4a00; }
.rg-change { flex: none; padding: 6px 12px; border: 1.5px solid rgba(109, 74, 0, .35); border-radius: 999px; background: transparent; font: 600 .8rem var(--sans); color: #6d4a00; cursor: pointer; transition: background .2s; }
.rg-change:hover { background: rgba(185, 122, 0, .14); }
.rg-people { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.rg-people label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.rg-people .rg-stepper { width: 156px; grid-template-columns: 42px minmax(0, 1fr) 42px; }
.rg-more { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule); }
.rg-more summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--navy-2); list-style: none; }
.rg-more summary::-webkit-details-marker { display: none; }
.rg-more summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--tint, #eef2f8); font-weight: 600; transition: transform .2s; }
.rg-more[open] summary::before { content: "\2212"; }
.rg-more summary span { font-weight: 400; font-size: .78rem; color: #6b778f; }
.rg-more .od-grid { margin-top: 16px; }
@media (max-width: 640px) {
  .rg-steps { padding: 14px 20px 0; }
  .rg-steps button { font-size: .78rem; }
  .rg-people { flex-wrap: wrap; }
  .rg-summary { flex-wrap: wrap; }
}

/* Registration: the other people attending */
.rg-extra { margin-top: 18px; padding: 16px 16px 4px; border: 1px solid var(--rule); border-radius: 14px; background: #f8fafd; }
.rg-extra[hidden] { display: none; }
.rg-extra-h { margin: 0; font-weight: 600; font-size: .95rem; color: var(--ink); }
.rg-extra-note { margin: 4px 0 14px; font-size: .86rem; color: var(--muted); }
.rg-xp { margin-bottom: 14px; padding-top: 12px; border-top: 1px dashed var(--rule-2, #d3dbe8); }
.rg-xp:first-child { padding-top: 0; border-top: 0; }
.rg-xp-h { margin: 0 0 10px; color: var(--gold-deep); }
