:root {
  --ink: #14243A;
  --ink-2: #1F3350;
  --ivory: #F7F5F0;
  --paper: #FFFFFF;
  --yellow: #FDD756;
  --muted: #596579;
  --line: #E4E1DA;
  --good: #2F6B4F;
  --warn: #8A5A00;
  --blue: #3157A4;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --rail: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--ivory); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.signin-cover :focus-visible { outline-color: var(--yellow); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; background: var(--ink); color: var(--ivory); font-weight: 600; font-size: 16px; line-height: 1.25; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out; }
.btn:hover { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn.ghost { background: transparent; color: var(--ink); border-color: rgba(20, 36, 58, .35); }
.btn.ghost:hover { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn.small { min-height: 38px; padding: 0 18px; font-size: 14.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--ink); color: var(--ivory); border-color: transparent; }
.linkish { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 500; }

/* Preview notice */
.preview-note { background: var(--yellow); color: var(--ink); font-size: 13px; padding: 7px 16px; text-align: center; }

/* Sign-in */
.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.signin-cover { background: var(--ink); color: var(--ivory); padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.signin-cover .mark { width: 44px; }
.signin-cover h1 { font-size: clamp(40px, 5vw, 68px); max-width: 11ch; margin-top: 48px; }
.signin-cover p { color: #C9D0DA; max-width: 40ch; margin-top: 20px; font-size: 17px; }
.signin-cover .slashes { position: absolute; right: -60px; bottom: -40px; width: 340px; opacity: .08; }
.signin-cover small { color: #9AA6B6; font-size: 13px; }
/* Sign-in "Nuit": a photograph of France that changes, with the form on ivory */
.signin-cover { background: #0E1826; justify-content: flex-end; padding: 44px 48px; min-height: 100vh; }
.sc-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.8s ease; }
.sc-photo.on { opacity: 1; }
.sc-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 32, .42) 0%, rgba(10, 18, 32, .06) 30%, rgba(10, 18, 32, .62) 66%, rgba(10, 18, 32, .92) 100%); }
.signin-cover .mark { position: absolute; left: 48px; top: 40px; width: 40px; z-index: 1; }
.sc-text { position: relative; z-index: 1; }
.signin-cover h1 { margin-top: 0; font-size: clamp(38px, 4.4vw, 60px); max-width: 13ch; text-shadow: 0 1px 18px rgba(10, 18, 32, .5); }
.signin-cover p { color: rgba(255, 255, 255, .88); max-width: 44ch; }
.sc-credit { position: absolute; right: 14px; top: 12px; z-index: 1; font-size: 11px; color: rgba(255, 255, 255, .8); text-align: right; text-shadow: 0 1px 6px rgba(10, 18, 32, .7); }
.signin-panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.signin-box { width: 100%; max-width: 380px; }
.signin-box h2 { font-size: 30px; }
.signin-box > .muted { margin: 8px 0 28px; }
.provider { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; cursor: pointer; font-weight: 600; margin-bottom: 10px; transition: border-color .15s ease-out, color .15s ease-out; }
.provider:hover { border-color: var(--blue); color: var(--blue); }
.provider svg { width: 20px; height: 20px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.phone-row { display: grid; grid-template-columns: 112px 1fr; gap: 8px; margin-bottom: 12px; }
input.otp { display: block; margin: 16px 0; height: 58px; text-align: center; font-size: 26px; letter-spacing: .5em; padding-left: .5em; font-variant-numeric: tabular-nums; }
.fine { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* Form fields */
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field > em { display: block; font-style: normal; color: var(--muted); font-size: 13px; margin: -2px 0 8px; }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=number], select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(20, 36, 58, .12); }
textarea { min-height: 130px; resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.error { color: #A3361F; font-size: 14px; margin-top: 8px; }

/* Onboarding */
.onboard { max-width: 640px; margin: 0 auto; padding: 40px 20px 80px; }
.onboard header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.onboard header img { width: 30px; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 10px; }
.steps li { flex: 1; height: 4px; background: var(--line); border-radius: 2px; }
.steps li.on { background: var(--ink); }
.onboard h1 { font-size: 36px; margin: 18px 0 8px; }
.onboard .lede { color: var(--muted); margin-bottom: 30px; }
.onboard .actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }

/* App shell */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
/* Side panel "Ivoire": no colour block, only a fine line */
.rail { background: var(--ivory); color: var(--ink); padding: 24px 14px 20px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 26px; text-decoration: none; }
.logo-tile { display: grid; place-items: center; flex: none; }
.logo-tile img { width: 30px; display: block; }
.brand b { font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.1; }
.nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: #46536A; text-decoration: none; font-weight: 500; }
.nav a:hover { background: rgba(20, 36, 58, .05); color: var(--ink); }
.nav a[aria-current=page] { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(20, 36, 58, .3); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav .count { margin-left: auto; font-size: 12px; background: var(--ink); color: var(--ivory); border-radius: 999px; padding: 0 7px; font-weight: 700; }
.rail-foot { margin-top: auto; display: grid; gap: 14px; }
.rail-foot .ask { font-size: 13px; color: var(--muted); padding: 0 8px; }
.rail-foot .ask a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
.who { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.25; min-width: 0; }
.who .av { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--ivory); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.who small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.who > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.main { padding: 40px clamp(20px, 4vw, 56px) 80px; max-width: 1240px; width: 100%; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(30px, 3.4vw, 42px); }
.page-head p { color: var(--muted); margin-top: 8px; max-width: 64ch; }
.topbar, .tabbar { display: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ivory); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; text-decoration: none; flex: none; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; cursor: pointer; flex: none; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.icon-btn svg { width: 17px; height: 17px; }

/* Home */
.hello h1 { font-size: clamp(32px, 4vw, 48px); }
.hello p { color: var(--muted); margin-top: 8px; max-width: 62ch; }
.home-top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; margin-top: 26px; }
/* "Aube": soft washes of blue and red light on paper. Used for the next-step card and the checkout price box */
.nextup { background: radial-gradient(90% 120% at 108% -10%, rgba(0, 0, 145, .22), transparent 58%), radial-gradient(70% 90% at -8% 112%, rgba(225, 0, 15, .14), transparent 60%), radial-gradient(60% 70% at 60% 120%, rgba(0, 0, 145, .10), transparent 60%), #FBF9F5; color: var(--ink); border: 1px solid rgba(255, 255, 255, .9); border-radius: 24px; padding: 34px 30px 26px; display: flex; flex-direction: column; align-items: flex-start; position: relative; box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 18px 40px -22px rgba(20, 36, 58, .35); }
.nextup .k { font-size: 13.5px; font-weight: 600; }
.nextup h2 { font-size: clamp(34px, 4vw, 48px); margin: 10px 0 12px; max-width: 13ch; letter-spacing: -0.015em; }
.nextup .t { max-width: 44ch; margin-bottom: 24px; font-size: 16px; color: #3F4C61; }
.nextup .btn { min-height: 50px; }
.nextup .journey { width: 100%; margin-top: 30px; }
.nextup .journey li { border-top-color: rgba(20, 36, 58, .12); }
.nextup .journey li.done { border-top-color: var(--ink); }
.nextup .journey li.now { border-top-color: #000091; }
.index { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.index a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; min-height: 56px; text-decoration: none; border-top: 1px solid var(--line); }
.index li:first-child a { border-top: 0; }
.index a:hover { background: #FBFAF7; }
.index .n { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.index .go { width: 16px; height: 16px; color: var(--muted); flex: none; }
.index .lead { width: 20px; height: 20px; flex: none; }
.index small { display: block; font-size: 13px; color: var(--muted); }
.journey { list-style: none; padding: 0; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; }
.journey li { position: relative; height: 24px; border-top: 5px solid var(--line); border-radius: 3px; font-size: 0; cursor: help; outline-offset: 4px; }
/* The step's name appears when the pointer is on it, or when it is tapped */
.journey li::after { content: attr(data-step); position: absolute; bottom: calc(100% + 12px); left: 0; padding: 7px 11px; border-radius: 8px; background: var(--ink); color: var(--ivory); font-size: 12.5px; font-weight: 500; line-height: 1.2; white-space: nowrap; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .12s, transform .12s; pointer-events: none; z-index: 2; }
.journey li:nth-child(n+5)::after { left: auto; right: 0; }
.journey li:hover::after, .journey li:focus::after { opacity: 1; visibility: visible; transform: none; }
.journey li.done { border-color: var(--ink); color: var(--ink); }
.journey li.now { border-color: #000091; }.strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 38px 0 14px; }
.strip-head h2 { font-size: 24px; }
.strip-head a { font-size: 14px; font-weight: 500; white-space: nowrap; text-underline-offset: 3px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 42px) / 4); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.sug { scroll-snap-align: start; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-height: 172px; }
.sug:hover { border-color: var(--ink); }
.sug.is-partner, .school.is-partner { box-shadow: inset 0 4px 0 var(--yellow); }
.sug .sug-name { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.2; margin-top: 4px; }
.sug .where { font-size: 13px; color: var(--muted); }
.sug .fee { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 14px; }
.sug .fee span { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }

.grid-home { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 24px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.panel h2 { font-size: 22px; margin-bottom: 6px; }
.panel .muted { margin-bottom: 16px; }
.next { border-left: 4px solid var(--yellow); }
.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.mini-list li:first-child { border-top: 0; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--ivory); border: 1px solid var(--line); white-space: nowrap; }
.tag.en { background: #EAF1EC; border-color: #CFE0D5; color: var(--good); }
.tag.y { background: #FFF6D6; border-color: #F3E2A4; color: var(--ink); }
.tag.req { background: #FFF6D6; border-color: #F3E2A4; }
.tag.ok { background: #EAF1EC; border-color: #CFE0D5; color: var(--good); }
.tag.pub { background: #E8EDF5; border-color: #CCD6E6; color: var(--ink); }
.tag.partner { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.tag.top { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
.tag.mix { background: linear-gradient(90deg, #EAF1EC 50%, #EEF3F8 50%); border-color: #D5E0EC; color: var(--ink); }
.tag.ef { background: #EEF3F8; border-color: #D5E0EC; color: var(--ink); }
.prog .lnote { font-size: 12px; color: var(--ink); align-self: center; }
.prog .odds { font-size: 12px; color: var(--muted); align-self: center; }
.hint { margin: 4px 0 0; padding: 12px 16px; background: #FFF6D6; border: 1px solid #F3E2A4; border-radius: 8px; font-size: 14px; }
.tag.city { background: transparent; color: var(--muted); font-weight: 500; }
.tag.ca { background: #F4EEF8; border-color: #E2D5EC; color: #4B2A63; }
.row h3 .tag { margin-left: 6px; vertical-align: 2px; }
.sheet.public .tab { color: var(--ink-2); }
.prog .pname a { text-decoration: none; }
.prog .pname a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prog .fee { color: var(--ink); font-weight: 600; font-size: 12px; align-self: center; }
.prog .fee.none { color: var(--muted); font-weight: 400; }
select.compact { width: auto; min-height: 36px; padding: 6px 10px; font-size: 14px; }

/* Find schools */
.find-head { margin-bottom: 6px; }
.findbar { position: sticky; top: 0; z-index: 10; background: var(--ivory); padding: 12px 0 10px; box-shadow: 0 1px 0 var(--line); margin-bottom: 18px; }
.findbar-row { display: flex; gap: 8px; }
.searchbox { position: relative; flex: 1; min-width: 0; }
.searchbox svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.searchbox input { padding-left: 44px; border-radius: 999px; min-height: 48px; }
.filt { display: none; border-radius: 999px; min-height: 48px; background: var(--paper); padding: 0 16px; }
.filt svg { width: 18px; height: 18px; }
.filt .count { background: var(--ink); color: var(--ivory); border-radius: 999px; font-size: 12px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 6px; }
.quick { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick > * { flex: none; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); padding: 3px; }
.seg button { border: 0; background: none; padding: 0 14px; min-height: 32px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 500; white-space: nowrap; }
.seg button[aria-pressed=true] { background: var(--ink); color: var(--ivory); }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; min-height: 38px; padding: 0 14px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.chip svg { width: 14px; height: 14px; }
.chip.x { background: #E8EDF5; border-color: #CCD6E6; }
.chip.x::after { content: '\00d7'; font-size: 18px; line-height: 1; margin-right: -3px; color: var(--muted); }

.find-grid { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 28px; align-items: start; }
.fpanel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; position: sticky; top: 138px; max-height: calc(100vh - 158px); display: flex; flex-direction: column; overflow: hidden; }
.fpanel-head { display: none; align-items: center; justify-content: space-between; padding: 18px 20px 12px; }
.fpanel-head h2 { font-size: 26px; }
.fpanel-body { overflow-y: auto; padding: 4px 18px; overscroll-behavior: contain; }
.fgroup { border-top: 1px solid var(--line); }
.fgroup:first-child { border-top: 0; }
.fgroup summary { display: flex; align-items: center; gap: 10px; min-height: 52px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary > span:first-child { white-space: nowrap; }
.fgroup summary .fval { margin-left: auto; font-weight: 400; font-size: 13.5px; color: var(--muted); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fgroup summary svg { width: 15px; height: 15px; flex: none; color: var(--muted); transform: rotate(90deg); transition: transform .15s; }
.fgroup[open] summary svg { transform: rotate(-90deg); }
.fgroup[open] summary .fval { visibility: hidden; }
.fbody { padding: 2px 0 18px; }
.slider output { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.2; margin-bottom: 6px; }
.slider input[type=range] { display: block; width: 100%; height: 36px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.slider-ends { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.subjects { display: grid; gap: 6px; }
.subj { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; text-align: left; font-size: 14px; line-height: 1.25; }
.subj:hover { border-color: var(--ink); }
.subj-ic { width: 36px; height: 36px; flex: none; border-radius: 9px; background: var(--ivory); display: grid; place-items: center; }
.subj-ic svg { width: 20px; height: 20px; }
.subj[aria-pressed=true] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.subj[aria-pressed=true]::after { content: ''; margin-left: auto; flex: none; width: 7px; height: 13px; margin-right: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.subj[aria-pressed=true] .subj-ic { background: var(--ink); color: var(--ivory); }
.sm-note.lock { background: var(--paper); border-color: var(--line); border-left: 4px solid #000091; margin-bottom: 14px; }
.sm-note a { font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.need { margin: 14px 0; }
.need-acts { display: grid; gap: 8px; }
.fgroup .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fgroup .chip { white-space: normal; text-align: left; padding: 6px 14px; line-height: 1.25; }
.fpanel-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.fpanel-foot .go { display: none; }

.results { container-type: inline-size; min-width: 0; }
.result-line { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; margin: 0 0 12px; }
.result-line h2 { font-size: 22px; }
.quota { font-size: 14px; color: var(--muted); }
.quota b { color: var(--ink); }
.schools { display: grid; gap: 14px; margin-top: 14px; }
.school { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); }
.school-id { padding: 20px 18px 16px; }
.school-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.school h3 { font-size: 22px; margin-top: 10px; }
.school-name { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; letter-spacing: inherit; }
.school-name:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.school-city { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.school-facts { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; margin-top: 14px; font-size: 14px; }
.school-facts b { font-weight: 600; font-size: 16px; }
.school-facts span { color: var(--muted); }
.school-progs { border-top: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.school-foot { padding: 4px 18px 16px; margin-top: auto; }
.prog { list-style: none; padding: 0; margin: 0; }
.prog li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.prog li:first-child { border-top: 0; }
.prog .pname { font-size: 15px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.prog .meta { grid-column: 1; display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.prog .acts { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 6px; align-items: center; }
@container (min-width: 660px) {
  .school { grid-template-columns: minmax(230px, 34%) minmax(0, 1fr); }
  .school-progs { border-top: 0; border-left: 1px solid var(--line); }
}
.empty { text-align: center; padding: 56px 20px; background: var(--paper); border: 1px dashed var(--line); border-radius: 16px; margin-top: 14px; }
.empty h2 { font-size: 24px; margin-bottom: 8px; }
.more { display: flex; justify-content: center; margin-top: 24px; }
.about { margin-top: 28px; max-width: 76ch; }
.about .fine { margin-top: 8px; }

/* Panels that slide over the page: school details, filters on small screens, the More menu */
.scrim { position: fixed; inset: 0; background: rgba(20, 36, 58, .45); z-index: 30; }
.modal { position: fixed; z-index: 31; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--ivory); display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(20, 36, 58, .2); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 20px 14px; }
.modal-head h2 { font-size: 26px; overflow-wrap: anywhere; }
.modal-body { overflow-y: auto; flex: 1; padding: 0 20px 28px; overscroll-behavior: contain; }
html.sheet-modal { overflow: hidden; }
.sm-where { color: var(--muted); font-size: 14px; margin-top: 10px; }
.sm-where a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
.sm-note { background: #FFF6D6; border: 1px solid #F3E2A4; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-top: 14px; }
.sm-note b { font-weight: 600; }
.modal .seg { display: flex; margin: 18px 0 12px; }
.modal .seg button { flex: 1; min-height: 38px; padding: 0 8px; }
.sm-count { font-size: 14px; color: var(--muted); margin: 18px 0 10px; }
.modal .prog { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.modal .prog li { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
.modal .prog .acts { grid-row: auto; grid-column: 1; margin-top: 8px; }
.modal .prog .acts .btn { min-height: 40px; flex: 1; max-width: 220px; }
.menu { margin-bottom: 14px; }
.scrim.for-filters { display: none; }

/* Lists: applications, documents, tickets */
.rows { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 18px 22px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row h3 { font-family: var(--sans); font-size: 16px; font-weight: 600; }
.row p { font-size: 14px; color: var(--muted); }
.row .right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.track { display: flex; gap: 4px; margin-top: 10px; grid-column: 1 / -1; }
.track span { flex: 1; font-size: 11px; color: var(--muted); padding-top: 8px; border-top: 3px solid var(--line); }
.track span.on { border-color: var(--ink); color: var(--ink); }
.section-title { font-size: 22px; margin: 34px 0 12px; }
.upload input[type=file] { display: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.callout { background: var(--ink); color: var(--ivory); border-radius: 10px; padding: 24px; }
.callout h2 { font-size: 24px; margin-bottom: 8px; }
.callout p { color: #C9D0DA; margin-bottom: 18px; }
.callout .btn { background: var(--ivory); color: var(--ink); }
.callout .btn:hover { background: #fff; color: var(--blue); border-color: var(--blue); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--ivory); padding: 12px 18px; border-radius: 8px; font-size: 14px; z-index: 50; box-shadow: 0 8px 24px rgba(20, 36, 58, .25); max-width: calc(100% - 32px); }

/* Checkout and payments */
.buy-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.buy-grid .two { grid-template-columns: 1fr; }
.price-card { position: sticky; top: 24px; background: radial-gradient(90% 120% at 108% -10%, rgba(0, 0, 145, .22), transparent 58%), radial-gradient(70% 90% at -8% 112%, rgba(225, 0, 15, .14), transparent 60%), radial-gradient(60% 70% at 60% 120%, rgba(0, 0, 145, .10), transparent 60%), #FBF9F5; color: var(--ink); border: 1px solid rgba(255, 255, 255, .9); border-radius: 24px; padding: 30px 26px 22px; box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 18px 40px -22px rgba(20, 36, 58, .35); }
.price-card .k { font-size: 13.5px; font-weight: 600; }
.price-card .eur { font-family: var(--serif); font-size: 60px; line-height: 1; margin: 12px 0 10px; letter-spacing: -0.02em; }
.price-card .eur .cur { font-size: .5em; vertical-align: .62em; margin-right: 3px; letter-spacing: 0; }
.price-card .inr { font-size: 20px; font-weight: 600; margin-bottom: 22px; }
.price-card .inr span { display: block; font-size: 13px; font-weight: 400; color: #3F4C61; margin-top: 2px; }
.price-card .btn.pay { min-height: 52px; }
.price-card .fine { font-size: 13px; text-align: center; margin-top: 14px; }.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 6px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.check a { color: var(--ink); }
.paid { max-width: 640px; text-align: left; padding: 34px 32px; }
.paid .tick { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 22px; }
.paid h1 { font-size: 36px; margin: 16px 0 10px; }
.paid p { margin-bottom: 10px; }
.paid-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pgroup { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.pgroup summary { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 20px; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 21px; font-weight: 500; }
.pgroup summary::-webkit-details-marker { display: none; }
.pgroup summary small { margin-left: auto; font-family: var(--sans); font-size: 13.5px; color: var(--muted); font-weight: 400; }
.pgroup summary svg { width: 16px; height: 16px; flex: none; color: var(--muted); transform: rotate(90deg); transition: transform .15s; }
.pgroup[open] summary svg { transform: rotate(-90deg); }
.pgroup summary:hover { color: var(--blue); }
.pgroup .rows { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.buy-solo { max-width: 1040px; }
.buy-note { background: var(--yellow); color: var(--ink); border-radius: 8px; padding: 12px 14px; font-size: 14px; margin-bottom: 18px; }

/* Narrower screens: filters open as a panel instead of sitting beside the results */
@media (max-width: 1179px) {
  .find-grid { grid-template-columns: minmax(0, 1fr); }
  .filt { display: inline-flex; }
  .fpanel { display: none; }
  .fpanel.is-open { display: flex; position: fixed; z-index: 31; top: 0; right: 0; bottom: 0; width: min(420px, 100%); max-height: none; border: 0; border-radius: 0; background: var(--ivory); box-shadow: -12px 0 40px rgba(20, 36, 58, .2); }
  .fpanel-head { display: flex; }
  .fpanel-body { padding: 0 20px 12px; flex: 1; }
  .fpanel-foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); }
  .fpanel-foot .go { display: inline-flex; flex: 1; max-width: 260px; }
  .scrim.for-filters { display: block; }
  html.sheet-filters { overflow: hidden; }
}

/* Phones and tablets */
@media (max-width: 900px) {
  .signin { grid-template-columns: 1fr; }
  .signin-cover { padding: 28px 22px 34px; min-height: auto; }
  .signin-cover h1 { margin-top: 28px; font-size: 38px; }
  .signin-cover .slashes { width: 200px; }
  .signin-cover small { display: none; }
  .signin-cover { min-height: 46vh; padding: 22px 20px 54px; }
  .signin-cover .mark { left: 20px; top: 20px; width: 30px; }
  .signin-cover h1 { font-size: 32px; margin-top: 0; }
  .signin-cover p { display: none; }
  .sc-credit { font-size: 10px; max-width: 62%; }
  .signin-panel { background: var(--ivory); border-radius: 26px 26px 0 0; margin-top: -26px; position: relative; z-index: 2; padding: 30px 22px 40px; align-items: flex-start; }
  .shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .rail { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--ivory); color: var(--ink); border-bottom: 1px solid var(--line); }
  .topbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 36px; }
  .topbar-brand .logo-tile img { width: 26px; }
  .topbar .avatar { background: var(--ink); color: var(--ivory); }
  .topbar-brand b { font-family: var(--serif); font-weight: 500; font-size: 17px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--paper); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; padding: 2px 0; border: 0; background: none; cursor: pointer; text-decoration: none; font-size: 11px; font-weight: 500; color: var(--muted); }
  .tabbar .ic { width: 54px; height: 30px; border-radius: 999px; display: grid; place-items: center; }
  .tabbar svg { width: 21px; height: 21px; }
  .tabbar [aria-current=page], .tabbar .on { color: var(--ink); font-weight: 600; }
  .tabbar [aria-current=page] .ic, .tabbar .on .ic { background: var(--ink); color: var(--ivory); }
  .tabbar .count { position: absolute; top: 0; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--ivory); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
  .main { padding: 22px 16px 108px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 60; }
  .page-head { margin-bottom: 20px; }
  .grid-home, .two-col, .two, .buy-grid, .home-top { grid-template-columns: minmax(0, 1fr); }
  .home-top { gap: 14px; margin-top: 20px; }
  .nextup { padding: 28px 20px 22px; }
  .nextup .btn { width: 100%; }
  .strip { grid-auto-columns: 76%; margin: 0 -16px; padding: 0 16px 8px; scroll-padding-left: 16px; scrollbar-width: none; }
  .strip::-webkit-scrollbar { display: none; }
  .price-card { position: static; }
  .findbar { margin: 0 -16px 16px; padding: 10px 16px 10px; }
  .quick { margin: 0 -16px; padding: 10px 16px 2px; }
  .row { grid-template-columns: minmax(0, 1fr); padding: 16px 16px; }
  .row .right { justify-content: flex-start; }
  .panel, .callout { padding: 20px; border-radius: 16px; }
  .rows { border-radius: 16px; }
}
@media (max-width: 599px) {
  .modal, .fpanel.is-open { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 40px rgba(20, 36, 58, .2); }
  .fpanel.is-open { height: 92dvh; }
  .modal-head, .fpanel-head { padding-top: 26px; position: relative; }
  .modal-head::before, .fpanel-head::before { content: ''; position: absolute; top: 9px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: #CFCBC2; }
  .modal-body { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .modal .prog .acts .btn { max-width: none; }
  .fpanel-foot .go { max-width: none; }
  .filt > span:first-of-type { display: none; }
  .filt { padding: 0 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .scrim.enter { animation: fade .2s ease-out both; }
  .modal.enter, .fpanel.enter { animation: slide-x .26s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes slide-x { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes slide-y { from { transform: translateY(100%); } to { transform: none; } }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 599px) {
  .modal.enter, .fpanel.enter { animation-name: slide-y; }
}

/* Live mode: loading screen and the Catalyst sign-in frame */
.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--muted); text-align: center; padding: 24px; }
.boot img { width: 44px; height: auto; }
.df-login { margin: 8px 0 4px; }
.df-login iframe { width: 100% !important; height: 660px !important; border: 0; }
.auth-tabs { margin: 4px 0 18px; }
