/* Student portal. Same brand language as the Study in Türkiye landing page (lp.css).
   Partner invite keeps portal.css, so the Partner Portal is not affected by this file. */
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/student/manrope-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/student/manrope-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/student/instrument-serif-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/student/instrument-serif-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/student/instrument-serif-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #0e1f3d; --navy-2: #16305c; --blue: #1f4e8c;
  --red: #c8102e; --red-d: #a20d25; --red-s: #fdf4f4;
  --gold: #c6a15b; --gold-t: #7f6126; --gold-soft: #f3e9d4;
  --ivory: #faf6ee; --paper: #fffdf9;
  --ink: #1a2233; --muted: #525c74; --line: rgba(14, 31, 61, .14); --edge: rgba(14, 31, 61, .32);
  --ok: #17613a; --ok-s: #e2f3e8;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: clamp(16px, 4vw, 40px);
  --lift: 0 34px 60px -44px rgba(14, 31, 61, .5);
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23c6a15b' stroke-width='1'%3E%3Cpath d='M44 12 66.600 21.400 76 44 66.600 66.600 44 76 21.400 66.600 12 44 21.400 21.400Z'/%3E%3Cpath d='M21.400 21.400H66.600V66.600H21.400Z'/%3E%3Cpath d='M44 12 76 44 44 76 12 44Z'/%3E%3Cpath d='M0 0 12 12M88 0 76 12M0 88 12 76M88 88 76 76'/%3E%3C/g%3E%3C/svg%3E");
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130' preserveAspectRatio='none'%3E%3Cpath d='M0 130V50C0 30 30 15 50 0c20 15 50 30 50 50v80z'/%3E%3C/svg%3E");
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%230e1f3d' stroke-width='1.6'/%3E%3C/svg%3E");
  scroll-behavior: smooth; scroll-padding-top: 84px; interpolate-size: allow-keywords;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body.sp { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; background: var(--ivory); color: var(--ink); font-family: Manrope, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.sp h1, .sp h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; color: var(--navy); margin: 0; text-wrap: balance; }
.sp h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.06; }
.sp h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.12; outline: 0; }
.sp h3 { margin: 0; color: var(--navy); font-size: 17px; font-weight: 700; line-height: 1.35; }
.sp p { margin: 0 0 12px; }
.sp ul { margin: 8px 0 12px; padding-left: 20px; }
.sp li { margin-bottom: 5px; }
.sp a { color: var(--blue); text-underline-offset: 3px; }
.sp a:hover { color: var(--navy); }
.sp :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.sp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sp-skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff !important; transform: translateY(-160%); }
.sp-skip:focus { transform: none; }
.sp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--pad); }
.sp-small { font-size: 14px; line-height: 1.55; color: var(--muted); }
.sp-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 14px !important; color: var(--red); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sp-kicker::before { content: ""; flex: none; width: 34px; height: 1px; background: currentColor; }
.sp-eyebrow { margin: 0 0 10px !important; color: var(--gold); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* Header */
.sp-header { position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--pad); background: #fff; border-bottom: 1px solid var(--line); }
.sp-logo { display: flex; align-items: center; flex: none; min-height: 44px; }
.sp-logo img { display: block; width: auto; height: 46px; }
.sp-header-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); font-size: 14.5px; font-weight: 700; }
.sp-header-nav a, .sp-header-out { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--navy); font: inherit; text-decoration: none; cursor: pointer; }
.sp-header-nav a::after, .sp-header-out::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
.sp-header-nav a:hover::after, .sp-header-out:hover::after, .sp-header-nav a[aria-current]::after { transform: scaleX(1); }
.sp-header-nav form { margin: 0; }
.sp-draft { background: var(--gold); color: #241b05; font-size: 13px; font-weight: 700; line-height: 1.35; text-align: center; padding: 6px 16px; }
.sp-main { flex: 1; outline: 0; }
.sp-footer { padding: 22px var(--pad) calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.sp-footer p { margin: 0; }

/* Buttons */
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 12px 24px; border: 1px solid transparent; border-radius: 3px; background: none; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.sp-btn:active { transform: translateY(1px); }
.sp-btn-block { display: flex; width: 100%; }
.sp-btn-sm { min-height: 44px; padding: 8px 16px; font-size: 14.5px; }
.sp-btn-primary, .sp a.sp-btn-primary { background: var(--red); color: #fff; box-shadow: 0 14px 30px -14px rgba(200, 16, 46, .75); }
.sp-btn-primary:hover, .sp a.sp-btn-primary:hover { background: var(--red-d); color: #fff; }
.sp-btn-navy { background: var(--navy); color: #fff; }
.sp-btn-navy:hover { background: var(--blue); }
.sp-btn-outline, .sp a.sp-btn-outline { border-color: var(--edge); background: #fff; color: var(--navy); }
.sp-btn-outline:hover, .sp a.sp-btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.sp-btn:disabled { background: #c9ced8; border-color: transparent; color: #4a5266; box-shadow: none; cursor: not-allowed; }
.sp-btn:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.sp-arrow { flex: none; transition: transform .25s var(--ease); }
.sp-btn:hover .sp-arrow { transform: translateX(4px); }
.sp-btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.sp-btn.is-busy::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: sp-spin .7s linear infinite; }
.sp-btn-outline.is-busy::after { border-color: var(--line); border-top-color: var(--navy); }
.sp-link { display: inline; padding: 0; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sp-link:hover { color: var(--navy); }

/* Forms */
.sp-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.sp-wide { grid-column: 1 / -1; }
.sp-field > label, .sp-field > legend { display: block; margin: 0 0 6px; padding: 0; color: var(--navy); font-size: 14px; font-weight: 700; line-height: 1.35; }
.sp input:not([type=radio]):not([type=checkbox]):not([type=file]), .sp select, .sp textarea { display: block; width: 100%; min-height: 52px; padding: 12px 13px; border: 1px solid var(--edge); border-radius: 3px; background-color: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.sp select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: var(--chevron); background-repeat: no-repeat; background-position: right 14px center; background-size: 13px 8px; }
.sp textarea { min-height: 96px; line-height: 1.5; resize: vertical; }
.sp input:hover, .sp select:hover, .sp textarea:hover { border-color: var(--navy); }
.sp input:focus, .sp select:focus, .sp textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(198, 161, 91, .4); }
.sp-req { margin-left: 6px; color: var(--red-d); font-size: 11.5px; font-style: normal; font-weight: 700; }
.sp-later { margin-left: 6px; color: var(--muted); font-size: 11.5px; font-style: normal; font-weight: 600; }
.sp-hint { margin: 6px 0 0 !important; color: var(--muted); font-size: 13px; line-height: 1.4; }
.sp-error { display: flex; gap: 7px; align-items: flex-start; margin: 7px 0 0 !important; color: var(--red-d); font-size: 14px; font-weight: 600; line-height: 1.4; animation: sp-rise .25s var(--ease); }
.sp-error::before { content: "!"; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--red-d); color: #fff; font-size: 12px; font-weight: 800; line-height: 18px; text-align: center; }
.sp-error-block { padding: 12px 14px; background: var(--red-s); border-left: 3px solid var(--red); }
.has-error input:not([type=radio]):not([type=checkbox]), .has-error select, .has-error textarea { border-color: var(--red-d); background-color: var(--red-s); }
.sp-choices { display: flex; gap: 10px; }
.sp-choice { flex: 1 1 0; max-width: 200px; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border: 1px solid var(--edge); border-radius: 3px; background: #fff; font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s; }
.sp-choice:hover { border-color: var(--navy); }
.sp-choice:has(input:checked) { border-color: var(--red); background: var(--red-s); box-shadow: inset 3px 0 0 var(--red); }
.sp-choice input, .sp-check input { flex: none; appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid rgba(14, 31, 61, .55); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.sp-choice input { border-radius: 50%; }
.sp-choice input:checked { border-color: var(--red); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 12px var(--red); }
.sp-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 3px; background: #fff; font-size: 15px; line-height: 1.5; cursor: pointer; transition: border-color .2s, background-color .2s; }
.sp-check:hover { border-color: var(--navy); }
.sp-check:has(input:checked) { border-color: var(--ok); background: #f6fbf8; }
.sp-check input { margin-top: 1px; border-radius: 3px; }
.sp-check input:checked { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.500 3.200 3.200L13 4.800' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 16px no-repeat; }
.sp-checks { margin-top: 14px; }

/* Sign-in */
.sp-auth { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100%; }
.sp-auth-shell .sp-main { display: flex; flex-direction: column; }
.sp-auth-side { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 48px 32px; background: var(--navy); }
.sp-auth-side::before { content: ""; position: absolute; inset: 0; background: var(--tile) 0 0 / 88px; opacity: .09; }
.sp-auth-arch { position: relative; width: min(74%, 420px); aspect-ratio: 10 / 13; -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; }
.sp-auth-arch img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp .sp-auth-word { position: relative; margin: 0; color: #fff; font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.sp-auth-form { align-self: center; justify-self: center; width: 100%; max-width: 540px; padding: clamp(32px, 6vw, 72px) var(--pad); animation: sp-rise .45s var(--ease); }
.sp-auth-form h1 { font-size: clamp(34px, 3.6vw, 46px); margin-bottom: 16px; }
.sp-lead { color: var(--muted); font-size: 17px; }
.sp-auth-form form { margin-top: 24px; display: grid; gap: 18px; }
.sp-auth-note { margin: 20px 0 0 !important; color: var(--muted); font-size: 14px; line-height: 1.55; }
.sp .sp-auth-email { margin: 0; color: var(--navy); font-weight: 700; overflow-wrap: anywhere; }
.sp input.sp-code { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .4em; text-align: center; padding-left: calc(13px + .4em); min-height: 68px; }

/* Bands */
.sp-band { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px) 0 clamp(30px, 4vw, 52px); background: var(--navy); color: #fff; }
.sp-band::before { content: ""; position: absolute; inset: 0; background: var(--tile) 0 0 / 88px; opacity: .08; }
.sp-band .sp-wrap { position: relative; }
.sp-band h1 { color: #fff; }
.sp-band-slim h1 { max-width: 22em; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; }

/* Wizard */
.sp-wizard-grid { display: grid; grid-template-columns: 276px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 56px; }
.sp-wizard { --overlap: 0px; }
.sp-rail { position: sticky; top: 16px; margin-top: 28px; padding: 22px 20px 16px; background: var(--paper); border: 1px solid var(--line); }
.sp-rail-now, .sp-rail-bar { display: none; }
.sp-steps { list-style: none; margin: 0; padding: 0; }
.sp-steps li { position: relative; margin: 0; }
.sp-steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: -4px; width: 1px; background: var(--line); }
.sp-steps li.is-done:not(:last-child)::after { background: var(--navy); }
.sp-steps button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 6px; border: 0; border-radius: 3px; background: none; color: var(--muted); font: inherit; font-size: 14.5px; font-weight: 600; line-height: 1.3; text-align: left; cursor: pointer; transition: color .2s, background-color .2s; }
.sp-steps button:hover { color: var(--navy); background: var(--ivory); }
.sp-step-dot { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--edge); border-radius: 50%; background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; transition: background-color .3s, border-color .3s, color .3s, transform .3s var(--ease); }
.sp-steps .is-done .sp-step-dot { border-color: var(--navy); background: var(--navy); color: #fff; }
.sp-steps .is-attention .sp-step-dot { border-color: var(--gold-t); background: var(--gold-soft); color: var(--gold-t); }
.sp-steps .is-current button { color: var(--navy); font-weight: 700; }
.sp-steps .is-current .sp-step-dot { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 16, 46, .16); }
.sp-steps .is-current:not(.is-done) .sp-step-dot { background: var(--red); color: #fff; }
.sp-rail-note { margin: 12px 0 0 !important; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; }
.sp-panel { margin-top: 28px; padding: clamp(22px, 3.4vw, 44px); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--lift); animation: sp-rise .35s var(--ease); }
.sp-step-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.sp-saved { flex: none; min-height: 20px; margin: 0 !important; color: var(--ok); font-size: 13px; font-weight: 700; }
.sp-saved svg { vertical-align: -1px; animation: sp-pop .3s var(--ease); }
.sp-step-intro { margin: 8px 0 0 !important; color: var(--muted); }
.sp-step-intro + .sp-grid { margin-top: 22px; }
.sp-group { margin: 30px 0 14px !important; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 15px !important; }
.sp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.sp-reveal { animation: sp-rise .3s var(--ease); }
.sp-left { margin: 26px 0 0 !important; padding: 12px 14px; background: var(--ivory); border-left: 3px solid var(--gold); font-size: 14.5px; }
.sp-left summary { color: var(--navy); font-weight: 700; cursor: pointer; }
.sp-left ul { margin-bottom: 8px; }
.sp-left .sp-small { margin: 0; }
.sp-left-done { background: var(--ok-s); border-left-color: var(--ok); color: var(--ok); font-weight: 700; }
.sp-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.sp-nav .sp-btn-primary:only-child { margin-left: auto; }

/* Packages */
.sp-packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0 0; padding: 0; border: 0; }
.sp-pack { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 18px; border: 1px solid var(--edge); border-radius: 3px; background: #fff; color: var(--ink); cursor: pointer; transition: background-color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.sp-pack:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 18px 30px -24px rgba(14, 31, 61, .55); }
.sp-pack input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sp-pack:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.sp-pack-mark { position: absolute; top: 18px; right: 18px; width: 24px; height: 24px; border: 1.5px solid var(--edge); border-radius: 50%; background: #fff; transition: border-color .2s, background-color .2s; }
.sp-pack-no { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sp-pack strong { padding-right: 30px; color: var(--navy); font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.16; }
.sp-pack-sub { flex: 1; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.sp-pack-price { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--navy); font-size: 14px; font-weight: 700; line-height: 1.35; }
.sp-pack.is-selected, .sp-pack:has(input:checked) { border-color: var(--navy); background: var(--navy); }
.sp-pack.is-selected strong, .sp-pack:has(input:checked) strong { color: #fff; }
.sp-pack.is-selected .sp-pack-sub, .sp-pack:has(input:checked) .sp-pack-sub { color: rgba(255, 255, 255, .82); }
.sp-pack.is-selected .sp-pack-no, .sp-pack:has(input:checked) .sp-pack-no, .sp-pack.is-selected .sp-pack-price, .sp-pack:has(input:checked) .sp-pack-price { color: var(--gold); }
.sp-pack.is-selected .sp-pack-price, .sp-pack:has(input:checked) .sp-pack-price { border-top-color: rgba(255, 255, 255, .2); }
.sp-pack.is-selected .sp-pack-mark, .sp-pack:has(input:checked) .sp-pack-mark { border-color: var(--gold); background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8.500 3.200 3.200L13 4.800' fill='none' stroke='%230e1f3d' stroke-width='2'/%3E%3C/svg%3E") center / 16px no-repeat; }
.sp-pack-compare { margin: 12px 0 0 !important; }
.sp-pack-detail { margin-top: 18px; padding: 20px 22px; background: var(--ivory); border-left: 3px solid var(--gold); font-size: 15px; }
.sp-pack-detail h3 { margin: 14px 0 4px; font-size: 15px; }
.sp-pack-detail-price { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 14px 0 8px !important; padding-top: 12px; border-top: 1px solid var(--line); color: var(--navy); }
.sp-note { margin: 18px 0 !important; padding: 14px 16px; background: var(--gold-soft); border-left: 3px solid var(--gold); color: var(--ink); font-size: 15px; }
.sp-note .sp-small { margin: 6px 0 0; color: #4b4128; }
.sp-note-warn { background: var(--red-s); border-left-color: var(--red); }
.sp-note-ok { background: var(--ok-s); border-left-color: var(--ok); }
.sp-gaps { list-style: none; margin: 8px 0 0 !important; padding: 0 !important; }
.sp-gaps li { margin: 0 0 6px; }

/* Upload centre */
.sp-docs-head { margin-top: 18px; }
.sp-meter { display: grid; gap: 8px; margin-bottom: 12px; }
.sp-meter-text { color: var(--navy); font-size: 14.5px; font-weight: 700; }
.sp-meter-bar { display: block; height: 6px; overflow: hidden; background: rgba(14, 31, 61, .1); }
.sp-meter-bar i { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.sp-tip { margin: 0 !important; padding: 12px 14px; background: var(--ivory); border-left: 3px solid var(--gold); font-size: 14px; line-height: 1.5; }
.sp-docgroups { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.sp-docs-later { margin-top: 28px; }
.sp-docs-later h3 { margin: 0 0 4px; color: var(--navy); }
.sp-docs-later .sp-small { margin: 0; }
.sp-docgroup { min-width: 0; border: 1px solid var(--line); background: #fff; }
.sp-docgroup[open] { border-color: var(--edge); }
.sp-docgroup > summary { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; list-style: none; cursor: pointer; transition: background-color .2s; }
.sp-docgroup > summary::-webkit-details-marker { display: none; }
.sp-docgroup > summary:hover { background: var(--ivory); }
.sp-docgroup > summary::after { content: ""; flex: none; width: 13px; height: 8px; background: var(--chevron) center / contain no-repeat; transition: transform .3s var(--ease); }
.sp-docgroup[open] > summary::after { transform: rotate(180deg); }
.sp-docgroup-letter { flex: none; display: grid; place-items: center; width: 34px; height: 34px; background: var(--navy); color: #fff; font-family: var(--serif); font-size: 19px; line-height: 1; }
.sp-docgroup-name { flex: 1; min-width: 0; color: var(--navy); font-weight: 700; line-height: 1.3; }
.sp-docgroup-count { flex: none; padding: 2px 9px; background: var(--ivory); color: var(--muted); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.sp-docgroup-count.is-ok { background: var(--ok-s); color: var(--ok); }
.sp-docgroup-count.is-bad { background: var(--red-s); color: var(--red-d); }
.sp-docgroup::details-content { height: 0; overflow: clip; transition: height .3s var(--ease), content-visibility .3s allow-discrete; }
.sp-docgroup[open]::details-content { height: auto; }
.sp-docgroup-body { padding: 4px 14px 14px; }
.sp-docgroup-body > .sp-small { margin: 4px 0 12px; }
.sp-doc { position: relative; padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); background: var(--paper); transition: border-color .2s, background-color .2s, box-shadow .3s; scroll-margin-top: 96px; }
.sp-doc:last-child { margin-bottom: 0; }
.sp-doc-rejected { border-color: var(--red); background: var(--red-s); box-shadow: inset 3px 0 0 var(--red); }
.sp-doc.is-flash { box-shadow: inset 3px 0 0 var(--red), 0 0 0 3px rgba(200, 16, 46, .28); }
.sp-doc.is-dragging { border-color: var(--navy); border-style: dashed; background: var(--ivory); }
.sp-doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 12px; flex-wrap: wrap; }
.sp-doc-name { min-width: 0; flex: 1 1 220px; }
.sp-doc-name strong { display: block; color: var(--navy); line-height: 1.35; }
.sp-tag { display: inline-block; margin-top: 4px; padding: 1px 8px; background: var(--ivory); color: var(--muted); font-size: 12px; font-weight: 600; }
.sp-tag-submission { background: var(--red-s); color: var(--red-d); font-weight: 700; }
.sp-status { flex: none; padding: 3px 9px; background: rgba(14, 31, 61, .07); color: var(--muted); font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.sp-status-uploaded, .sp-status-approved { background: var(--ok-s); color: var(--ok); }
.sp-status-under_review { background: #e4edf8; color: #1a4478; }
.sp-status-rejected { background: var(--red-d); color: #fff; }
.sp-status-pending { background: var(--gold-soft); color: #5e4718; }
.sp .sp-comment { margin: 10px 0 0; padding: 10px 12px; background: #fff; border-left: 3px solid var(--red); font-size: 14.5px; }
.sp .sp-comment-note { border-left-color: var(--line); }
.sp .sp-files { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
.sp-files li { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 6px; }
.sp-files a { min-width: 0; display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.sp-files img { flex: none; width: 44px; height: 44px; object-fit: cover; border-radius: 3px; }
.sp-file-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; background: var(--ivory); border: 1px solid var(--line); color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.sp .sp-scanning { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.sp-spin { width: 15px; height: 15px; border: 2px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: sp-spin .8s linear infinite; }
.sp-doc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.sp-doc-actions label { position: relative; margin: 0; cursor: pointer; }
.sp-doc-actions form { margin: 0; }
.sp-doc-actions .sp-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.sp-camera { display: none !important; }
.sp-drop-hint { color: var(--muted); font-size: 13px; }
.sp-upload { display: grid; gap: 6px; margin-top: 12px; }
.sp-upload .sp-meter-bar i { transition: transform .2s linear; }
.sp-upload-text { color: var(--navy); font-size: 13.5px; font-weight: 700; }

/* Review */
.sp-glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 18px 0; background: var(--line); border: 1px solid var(--line); }
.sp-glance > div { padding: 12px 14px; background: var(--paper); }
.sp-glance > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sp-glance dt { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.sp-glance dd { margin: 2px 0 0; color: var(--navy); font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.sp-reviews { display: grid; gap: 8px; }
.sp-review { position: relative; border: 1px solid var(--line); background: #fff; }
.sp-review summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 54px; padding: 10px 70px 10px 14px; color: var(--navy); font-weight: 700; cursor: pointer; }
.sp-review summary em { font-size: 12.5px; font-style: normal; }
.sp-review summary .is-ok { color: var(--ok); }
.sp-review summary .is-open { color: var(--red-d); }
.sp-review dl { margin: 0; padding: 0 14px 12px; }
.sp-review dl > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2px 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.sp-review dt { color: var(--muted); }
.sp-review dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.sp-review-edit { position: absolute; top: 5px; right: 14px; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.sp-disclose { margin-top: 12px; padding: 2px 14px; border: 1px solid var(--line); background: #fff; font-size: 14.5px; }
.sp-disclose summary { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--navy); font-weight: 700; cursor: pointer; }
.sp-disclose summary::before { content: "▸"; transition: transform .2s; }
.sp-disclose[open] summary::before { transform: rotate(90deg); }
.sp-disclose .sp-small { margin: 6px 0 0; }

/* Dashboard */
.sp-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin: 22px 0 0; }
.sp-facts > div { min-width: 0; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .22); }
.sp-facts dt { color: var(--gold); font-size: 12.5px; font-weight: 700; }
.sp-facts dd { margin: 3px 0 0; color: #fff; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.sp-tabs { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.sp-tabs .sp-wrap { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.sp-tabs .sp-wrap::-webkit-scrollbar { display: none; }
.sp-tabs a { position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 52px; color: var(--muted); font-size: 14.5px; font-weight: 700; text-decoration: none; transition: color .2s; }
.sp-tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
.sp-tabs a:hover, .sp-tabs a.is-here { color: var(--navy); }
.sp-tabs a.is-here::after { transform: scaleX(1); }
.sp-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red-d); color: #fff; font-size: 11.5px; font-weight: 800; }
.sp-dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-auto-flow: dense; gap: 22px; align-items: start; padding-block: 26px 56px; }
.sp-dash-full { grid-column: 1 / -1; margin: 0 !important; }
.sp-dash-side { grid-column: 2; position: sticky; top: 72px; display: grid; gap: 22px; }
.sp-dash-main { grid-column: 1; display: grid; gap: 22px; min-width: 0; }
.sp-card { min-width: 0; padding: clamp(20px, 2.6vw, 30px); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--lift); scroll-margin-top: 72px; }
.sp-card h2 { margin-bottom: 12px; }
.sp-card h3 { margin: 16px 0 8px; }
.sp-dash-side h2 { font-size: 27px; }
.sp-action { padding: clamp(20px, 2.6vw, 30px); background: #fff; border: 1px solid var(--red); border-top-width: 3px; animation: sp-rise .4s var(--ease); }
.sp-action ul { list-style: none; margin: 14px 0 0; padding: 0; }
.sp-action li { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.sp-action li strong { color: var(--navy); }
.sp-action li p { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.sp-action .sp-btn { flex: none; }
.sp .sp-track { list-style: none; margin: 4px 0 10px; padding: 0; }
.sp-track li { position: relative; margin: 0; padding: 7px 0 7px 26px; color: var(--muted); font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.sp-track li::before { content: ""; position: absolute; z-index: 1; left: 3px; top: 12px; width: 11px; height: 11px; border: 1.5px solid var(--edge); border-radius: 50%; background: var(--paper); }
.sp-track li:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: -13px; width: 1px; background: var(--line); }
.sp-track .is-done { color: var(--ok); }
.sp-track .is-done::before { border-color: var(--ok); background: var(--ok); }
.sp-track .is-done:not(:last-child)::after { background: var(--ok); }
.sp-track .is-current { color: var(--navy); font-weight: 800; }
.sp-track .is-current::before { left: 1px; top: 10px; width: 15px; height: 15px; border: 0; background: var(--red); box-shadow: 0 0 0 4px rgba(200, 16, 46, .16); }
.sp-track-toggle { display: none; min-height: 40px; font-size: 14px; }
.sp .sp-appts { list-style: none; margin: 0; padding: 0; }
.sp-appts li { display: grid; gap: 1px; margin: 0; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.sp-appts strong { color: var(--navy); }
.sp-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sp-table th { padding: 8px 10px; border-bottom: 1px solid var(--edge); color: var(--navy); font-size: 13px; text-align: left; }
.sp-table td { padding: 10px; border-bottom: 1px solid var(--line); }
.sp-inline-form { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.sp .sp-inline-form select { flex: 1 1 260px; width: auto; }

/* Done and error pages */
.sp-done { display: grid; place-items: center; padding: clamp(24px, 6vw, 72px) var(--pad); }
.sp-done-card { width: 100%; max-width: 680px; padding: clamp(26px, 5vw, 52px); background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--red); box-shadow: var(--lift); animation: sp-rise .45s var(--ease); }
.sp-done-card h1 { margin-bottom: 16px; font-size: clamp(32px, 4vw, 46px); }
.sp-done-mark { display: grid; place-items: center; width: 68px; height: 88px; margin-bottom: 18px; padding-top: 16px; background: var(--navy); color: var(--gold); -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; }
.sp-done-tick { stroke-dasharray: 44; stroke-dashoffset: 44; animation: sp-draw .6s .25s var(--ease) forwards; }
.sp-done-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.sp-copy { margin-left: 8px; font-size: 13px; }
.sp-reading { max-width: 860px; padding-block: 32px 56px; }
.sp-reading h1 { margin-bottom: 18px; }
.sp-legal { line-height: 1.75; }

.sp-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60; pointer-events: none; max-width: calc(100vw - 32px); padding: 12px 18px; background: var(--navy); color: #fff; font-size: 14.5px; font-weight: 600; box-shadow: 0 20px 40px -18px rgba(5, 12, 26, .6); transform: translateX(-50%); animation: sp-toast .35s var(--ease); }

@keyframes sp-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes sp-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes sp-spin { to { transform: rotate(360deg); } }
@keyframes sp-draw { to { stroke-dashoffset: 0; } }
@keyframes sp-toast { from { opacity: 0; transform: translate(-50%, 12px); } }

@media (max-width: 1023px) {
  .sp-wizard-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-inline: 0; padding-bottom: 0; }
  .sp-rail { z-index: 20; top: 0; margin: 0; padding: 10px var(--pad) 2px; border-width: 0 0 1px; background: #fff; }
  .sp-rail-now { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px !important; color: var(--navy); font-size: 15px; font-weight: 700; line-height: 1.3; }
  .sp-rail-now span { flex: none; color: var(--muted); font-size: 13px; font-weight: 600; }
  .sp-rail-bar { display: block; height: 3px; background: var(--line); }
  .sp-rail-bar i { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transition: transform .45s var(--ease); }
  .sp-steps { display: flex; justify-content: space-between; margin-inline: -6px; }
  .sp-steps li:not(:last-child)::after { display: none; }
  .sp-steps button { justify-content: center; width: 44px; min-height: 46px; padding: 0; }
  .sp-steps button:hover { background: none; }
  .sp-step-dot { width: 28px; height: 28px; }
  .sp-step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sp-rail-note { display: none; }
  .sp-panel { margin: 0; padding: 22px var(--pad) 0; border-width: 0; box-shadow: none; }
  .sp-nav { position: sticky; bottom: 0; z-index: 15; margin: 22px calc(var(--pad) * -1) 0; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 253, 249, .96); box-shadow: 0 -10px 24px -18px rgba(14, 31, 61, .45); }
  .sp-nav .sp-btn-primary { flex: 1; }
  .sp-dash { grid-template-columns: minmax(0, 1fr); }
  .sp-dash-side { position: static; grid-column: auto; }
  .sp-dash-main { grid-column: auto; }
  .sp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
  html.js .sp-track:not(.is-open) .is-far { display: none; }
  .sp-track-toggle { display: inline-flex; align-items: center; }
}
@media (max-width: 860px) {
  .sp-auth { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .sp-auth-side { flex-direction: row; justify-content: flex-start; padding: 20px var(--pad); }
  .sp-auth-arch { display: none; }
  .sp .sp-auth-word { font-size: 24px; }
  .sp-auth-form { align-self: start; padding-top: 28px; }
}
@media (max-width: 700px), (pointer: coarse) {
  .sp-camera { display: inline-flex !important; }
  .sp-drop-hint { display: none; }
}
@media (max-width: 700px) {
  .sp-logo img { height: 38px; }
  .sp-header-help { display: none !important; }
  .sp-header { padding-block: 6px; }
  .sp-grid, .sp-packs, .sp-glance { grid-template-columns: minmax(0, 1fr); }
  .sp-choice { max-width: none; }
  .sp-step-head { align-items: flex-start; }
  .sp-doc-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-doc-actions .sp-btn { width: 100%; min-height: 48px; padding-inline: 8px; }
  .sp-doc-actions form { grid-column: 1 / -1; }
  .sp-docgroup > summary { padding-inline: 12px; }
  .sp-docgroup-body { padding-inline: 10px; }
  .sp-action li { flex-direction: column; align-items: stretch; }
  .sp-review dl > div { grid-template-columns: minmax(0, 1fr); }
  .sp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sp-table table, .sp-table tbody, .sp-table tr, .sp-table td { display: block; width: 100%; }
  .sp-table tr { padding: 6px 0; border-top: 1px solid var(--edge); }
  .sp-table td { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border: 0; text-align: right; }
  .sp-table td::before { content: attr(data-label); flex: none; max-width: 45%; color: var(--muted); text-align: left; }
  .sp-done-actions .sp-btn { flex: 1 1 100%; }
}
@media (max-width: 360px) {
  .sp-header-nav { gap: 12px; font-size: 13.5px; }
  .sp-logo img { height: 32px; }
  .sp-facts { grid-template-columns: minmax(0, 1fr); }
  .sp-choices { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .sp *, .sp *::before, .sp *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .sp-spin, .sp-btn.is-busy::after { animation-duration: 1.6s !important; }
}
