@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-400.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-500.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-600.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-700.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/poppins-800.woff2') format('woff2'); }

/* ==========================================================================
   Lewra International University: static UI stylesheet
   Sections: tokens, base, header, footer, hero, layout, cards, forms, legal, responsive
   ========================================================================== */

/* Tokens. The designs come in two palettes; a page opts in with @section('theme', 'vivid'). */
:root, .theme-classic {
    --primary: #2f1b4d;
    --primary-2: #4b2a6e;
    --primary-grad: linear-gradient(135deg, #2f1b4d, #4f2c73);
    --accent: #b85c48;
    --accent-2: #a64e3b;
    --accent-grad: linear-gradient(180deg, #c26a55, #ab5340);
    --highlight: #c4492c;
    --icon: #c4583f;
    --soft: #f7f3f6;
    --soft-2: #f1ebf4;
    --hero-1: rgba(38, 21, 64, .98);
    --hero-2: rgba(38, 21, 64, .82);
    --footer: #2b1a47;
}
.theme-vivid {
    --primary: #4a0e78;
    --primary-2: #6a1b9a;
    --primary-grad: linear-gradient(135deg, #3f0a69, #6f1a9d);
    --accent: #f4511e;
    --accent-2: #e0440f;
    --accent-grad: linear-gradient(180deg, #ff6a2c, #ee4710);
    --highlight: #ef3e12;
    --icon: #4a0e78;
    --soft: #f8f5fd;
    --soft-2: #f1eafb;
    --hero-1: rgba(46, 8, 92, .98);
    --hero-2: rgba(60, 13, 110, .78);
    --footer: #2c0a52;
}
:root {
    --ink: #17102b;
    --body: #39324c;
    --muted: #6d6780;
    --line: #e9e4ef;
    --white: #fff;
    --radius: 14px;
    --radius-lg: 18px;
    --shadow: 0 4px 16px rgba(47, 27, 77, .07);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Poppins', system-ui, sans-serif; font-size: 15px; line-height: 1.55; color: var(--body); background: #fff; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg.lucide { width: 1.15em; height: 1.15em; flex: none; stroke-width: 1.9; }
.container { width: min(1240px, 100%); margin-inline: auto; padding-inline: 32px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Top bar */
.topbar { background: var(--primary-grad); color: #f2edf8; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 20px; }
.topbar-links, .topbar-contact { display: flex; align-items: center; }
.topbar-links a { padding: 0 14px; border-left: 1px solid rgba(255,255,255,.3); }
.topbar-links a:first-child { padding-left: 0; border: 0; }
.topbar-contact { gap: 28px; }
.topbar-contact a, .topbar-lang { display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 20px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; line-height: 1.08; color: var(--primary); flex: none; }
.brand img { width: 68px; height: 68px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 11px; color: var(--ink); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-link svg.lucide { width: 14px; height: 14px; }
.nav-link:hover { color: var(--accent); }
.nav-drop { position: absolute; top: 100%; left: 0; display: none; min-width: 230px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(47, 27, 77, .16); }
.nav-drop a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--ink); }
.nav-drop a:hover { background: var(--soft-2); color: var(--primary); }
.nav-drop a.active, .nav-drop a.active:hover { background: var(--primary-grad); color: #fff; font-weight: 500; }
.main-nav .nav-apply, .nav-toggle { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.icon-btn:hover { border-color: var(--primary); }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: var(--footer); color: #e9e2f3; font-size: 13.5px; }
.footer-skyline { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; max-width: 34%; object-fit: contain; object-position: right bottom; opacity: .9; pointer-events: none; }
.footer-in { position: relative; display: grid; grid-template-columns: auto auto auto 1fr; gap: 32px; padding-block: 30px 18px; align-items: center; }
.brand-light { color: #fff; font-weight: 500; font-size: 19px; }
.footer-col { padding-left: 32px; border-left: 1px solid rgba(255,255,255,.28); }
.footer-col strong { display: block; color: #fff; margin-bottom: 6px; font-weight: 600; }
.footer-address { display: flex; gap: 12px; }
.footer-contact { display: grid; gap: 7px; }
.footer-contact a { display: flex; align-items: center; gap: 12px; }
.footer-col a:hover { color: #fff; }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-row a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; }
.social-row a:hover { background: var(--accent); }
.footer-legal { position: relative; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 12px 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12.5px; color: #cfc4df; }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-right: 30%; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 22px; border: 1px solid transparent; border-radius: 9px; font-weight: 600; font-size: 14px; white-space: nowrap; background: none; }
.btn-accent { background: var(--accent-grad); color: #fff; }
.btn-primary { background: var(--primary-grad); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline-accent { border-color: var(--accent); color: var(--accent); background: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-soft { border-color: var(--line); color: var(--primary); background: var(--soft); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--highlight); font-weight: 600; font-size: 14px; }
.link:hover { text-decoration: underline; }
.link-primary { color: var(--primary); }
.arrow-circle { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; color: var(--highlight); background: #fff; }
.arrow-circle svg.lucide { width: 15px; height: 15px; }
.arrow-square { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; color: var(--primary); background: #fff; }

/* Page hero */
.hero { --hero-w: clamp(420px, 56%, 780px); position: relative; color: #fff; background-color: var(--footer); background-image: linear-gradient(90deg, var(--footer), transparent var(--hero-fade, 48%)), var(--img); background-repeat: no-repeat; background-size: var(--hero-w) 100%, var(--hero-w) auto; background-position: right top, right var(--pos-y, 40%); }
.hero-in { display: flex; flex-direction: column; justify-content: center; min-height: clamp(232px, 19vw, 300px); padding-block: 26px 34px; }
.hero h1 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); margin: 10px 0; max-width: 680px; text-shadow: 0 1px 14px rgba(20, 8, 40, .35); }
.hero p { max-width: 500px; font-size: 16px; color: #f1ecf7; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #f1ecf7; }
.breadcrumb svg.lucide { width: 14px; height: 14px; }
.breadcrumb a:hover { text-decoration: underline; }

/* Home hero */
.hero-home { --hero-w: clamp(780px, 72%, 1040px); --hero-fade: 58%; }
.hero-home .hero-in { min-height: 500px; align-items: flex-start; }
.hero-home h1 { font-size: clamp(32px, 4vw, 50px); max-width: 620px; margin-bottom: 16px; }
.hero-home p { font-size: 18px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 28px 0; }
.hero-points { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.hero-points div { display: flex; align-items: center; gap: 12px; font-size: 12.5px; line-height: 1.4; }
.hero-points strong { display: block; font-size: 14px; }
.hero-points svg.lucide { width: 34px; height: 34px; color: #ec9a80; stroke-width: 1.5; }
.dots { position: absolute; right: 64px; bottom: 26px; display: flex; gap: 8px; }

/* Sections and headings */
.section { padding-block: 34px; }
.section-tight { padding-block: 20px; }
.section-soft { background: var(--soft); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--highlight); font-weight: 600; font-size: 14.5px; margin-bottom: 4px; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; flex: none; }
.title { font-size: clamp(24px, 2.7vw, 34px); margin-bottom: 12px; font-weight: 800; letter-spacing: -.01em; }
.title-sm { font-size: clamp(20px, 2vw, 25px); margin-bottom: 8px; font-weight: 700; }
.lead { font-size: 15.5px; margin-bottom: 14px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.head-row .title, .head-row .title-sm, .head-row .lead { margin-bottom: 0; }

/* Layout helpers */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.g7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.g8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: var(--cols, 1fr 1fr); gap: 28px; align-items: var(--align, center); }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mt { margin-top: 18px; }
.mb { margin-bottom: 18px; }
.center { text-align: center; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.strong { font-weight: 600; color: var(--ink); }

/* Media */
.photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.photo-frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 260px; height: var(--h, 100%); }
.photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; border: 3px solid #fff; background: rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(3px); }
.play-caption { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px; color: #fff; font-size: 12.5px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.play-caption strong { display: block; font-size: 15px; }
.play-caption .play { position: static; margin: 0; width: 44px; height: 44px; background: var(--accent); }

/* Strip of icon + label items under a hero */
.strip { background: var(--soft); border-bottom: 1px solid var(--line); }
.strip-in { display: flex; justify-content: space-between; flex-wrap: wrap; padding-block: 16px; }
.strip-item { flex: 1 1 0; min-width: 130px; display: flex; align-items: center; gap: 12px; padding: 4px 16px; line-height: 1.3; font-size: 13.5px; border-left: 1px solid var(--line); }
.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-item svg.lucide { width: 36px; height: 36px; stroke-width: 1.5; color: var(--highlight); }
.strip-item strong { display: block; color: var(--ink); font-size: 14.5px; font-weight: 600; }
.strip-item strong.num { font-size: 21px; font-weight: 700; }
.strip-dark { background: var(--primary-grad); color: #fff; border: 0; }
.strip-dark .strip-item { border-color: rgba(255,255,255,.3); }
.strip-dark strong { color: #fff; }
.strip-dark svg.lucide { color: #ee9a7f; }

/* Lists */
.checks { display: grid; gap: 7px; margin-block: 8px 14px; }
.checks li { position: relative; padding-left: 30px; font-size: 14.5px; }
.checks li::before { content: ''; position: absolute; left: 3px; top: 2px; width: 15px; height: 8px; border-left: 3px solid var(--highlight); border-bottom: 3px solid var(--highlight); transform: rotate(-45deg) translate(1px, 3px); }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card-soft { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card-dark { background: var(--primary-grad); color: #f4eff9; border-radius: var(--radius); padding: 24px; }
.card-dark h2, .card-dark h3, .card-dark h4 { color: #fff; }
.card-dark svg.lucide, .card-dark svg.lucide.ic, .card-dark svg.lucide.ic-sm { color: #f09a7c; }
.theme-vivid .card-dark svg.lucide, .theme-vivid .card-dark svg.lucide.ic, .theme-vivid .card-dark svg.lucide.ic-sm { color: #fff; }
.card-dark .btn svg.lucide { color: inherit; }
.hl { color: #f2a083; }
svg.lucide.ic { width: 38px; height: 38px; color: var(--icon); stroke-width: 1.5; }
svg.lucide.ic-sm { width: 24px; height: 24px; color: var(--icon); }
.ic-box { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 13px; background: var(--soft-2); color: var(--primary); }
.ic-box svg.lucide { width: 28px; height: 28px; }
.ic-box-dark { background: var(--primary-grad); color: #fff; }
.ic-box-sm { width: 44px; height: 44px; border-radius: 11px; }
.ic-box-sm svg.lucide { width: 22px; height: 22px; }
.ic-round { border-radius: 50%; }

.feature { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.feature h3 { font-size: 16.5px; font-weight: 700; }
.feature p { font-size: 13px; color: var(--body); padding-bottom: 6px; }
.feature .arrow-circle { margin-top: auto; align-self: flex-end; }
.feature.active { background: var(--primary-grad); border-color: transparent; color: #f4eff9; }
.feature.active h3 { color: #fff; }
.feature.active p { color: #f0e9f7; }
.feature.active svg.lucide { color: #f09a7c; }
.theme-vivid .feature.active svg.lucide { color: #fff; }
.feature.active .arrow-circle svg.lucide { color: var(--highlight); }
.feature.active .arrow-circle { border: 0; }

.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 8px; text-align: center; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--ink); box-shadow: var(--shadow); }
.tile svg.lucide { width: 30px; height: 30px; color: var(--highlight); stroke-width: 1.5; }

.img-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.img-card > img { width: 100%; height: var(--h, 130px); object-fit: cover; }
.img-body { position: relative; display: flex; flex: 1; flex-direction: column; gap: 5px; padding: 14px; }
.img-body h3 { font-size: 15.5px; font-weight: 700; line-height: 1.25; }
.img-body p { font-size: 12.5px; }
.img-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; font-size: 12.5px; }
.badge-ic { display: grid; place-items: center; width: 48px; height: 48px; margin-top: -40px; margin-bottom: 4px; border-radius: 11px; border: 3px solid #fff; background: var(--accent-grad); color: #fff; }
.badge-ic svg.lucide { width: 24px; height: 24px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; background: var(--soft-2); color: var(--primary); width: fit-content; }
.pill svg.lucide { width: 14px; height: 14px; }
.pill-new { background: var(--accent); color: #fff; border-radius: 20px; }
.pill-green { background: #e3f6ea; color: #15803d; }
.pill-blue { background: #e1effd; color: #1d5fbf; }
.pill-orange { background: #fdeee3; color: #c2500f; }
.pill-gold { background: #fdf3d6; color: #a86b00; }
.pill-red { background: #fde4e1; color: #c62f1f; }
.ribbon { position: absolute; left: 10px; top: -24px; padding: 3px 12px; border: 2px solid #fff; border-radius: 8px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }

.list-row { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); }
.list-row:hover { border-color: var(--accent); }
.list-row > svg.lucide:last-child { margin-left: auto; color: var(--highlight); }
.date-chip { display: grid; place-items: center; flex: none; width: 48px; padding: 4px 0; border-radius: 9px; background: var(--soft-2); font-size: 12px; line-height: 1.1; }
.date-chip b { font-size: 19px; color: var(--ink); }
.row-text small { display: block; font-weight: 400; font-size: 12.5px; color: var(--body); }

/* CTA bands */
.cta { position: relative; display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; padding: 15px 30px; border-radius: var(--radius); background: var(--primary-grad); color: #f4eff9; overflow: hidden; }
.cta > svg.lucide { width: 40px; height: 40px; color: #f09a7c; stroke-width: 1.5; }
.cta h2 { color: #fff; font-size: 21px; font-weight: 700; }
.cta p { max-width: 400px; font-size: 13.5px; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.4); }
.promo { position: relative; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 18px 28px; border-radius: var(--radius); background: linear-gradient(90deg, var(--soft) 55%, var(--soft-2)); border: 1px solid var(--line); overflow: hidden; min-height: 80px; }
.promo > img { position: absolute; right: 0; top: 0; bottom: 0; width: 25%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.promo > *:not(img) { position: relative; }
.promo .title-sm { margin: 0; }
.promo .sep { padding-left: 24px; border-left: 1px solid var(--muted); max-width: 340px; font-size: 14px; }

/* Tab buttons */
.tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 68px; padding: 10px 6px; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: var(--soft); box-shadow: var(--shadow); }
.tab svg.lucide { width: 26px; height: 26px; color: var(--primary); }
.tab:hover { border-color: var(--primary); }
.tab.active { background: var(--primary-grad); color: #fff; border-color: transparent; }
.tab.active svg.lucide { color: #fff; }
.tabs-inline .tab { flex-direction: row; gap: 10px; min-height: 44px; font-size: 14px; }
.tabs-inline .tab svg.lucide { width: 20px; height: 20px; }
.tabs-auto { grid-auto-columns: auto; justify-content: start; }
.tabs-auto .tab { padding-inline: 26px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { padding: 11px 16px; text-align: left; background: var(--soft-2); color: var(--ink); font-weight: 600; font-size: 13px; }
td { padding: 11px 16px; border-top: 1px solid var(--line); color: var(--body); }
td strong { color: var(--ink); font-weight: 600; }
.total { display: inline-block; min-width: 100px; text-align: center; padding: 4px 10px; border-radius: 6px; background: #fbe6dd; color: var(--highlight); font-weight: 700; font-size: 14.5px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv:last-child { border: 0; }
.kv b { color: var(--ink); font-weight: 600; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; }
.pagination a.active { background: var(--primary-grad); color: #fff; border-color: transparent; }
.pagination .disabled { background: var(--soft); color: var(--muted); font-weight: 500; }
.pagination .dots-plain { border: 0; background: none; }

/* Forms */
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field label em { color: var(--accent); font-style: normal; }
.input, .select, .textarea { width: 100%; padding: 10px 14px; border: 1px solid #d9d2e4; border-radius: 9px; background: #fff; font-size: 14px; outline-color: var(--primary); }
.textarea { min-height: 90px; resize: vertical; }
.input-ic { position: relative; display: block; }
.input-ic .input { padding-left: 44px; }
.input-ic > svg.lucide:first-child { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink); pointer-events: none; }
.input-ic > svg.lucide:last-child:not(:first-child) { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink); }
.input-ic.has-end .input { padding-right: 44px; }
.search-bar { display: flex; gap: 14px; }
.search-bar .input-ic { flex: 1; }
.search-bar .input { min-height: 48px; font-size: 15.5px; }
.option { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 3px 0; }
.filter-card { padding: 0; overflow: hidden; }
.filter-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--soft-2); font-weight: 700; color: var(--ink); }
.filter-group { padding: 12px 16px; border-top: 1px solid var(--line); }
.filter-group h4 { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 6px; }
.result { display: grid; grid-template-columns: 170px 1fr auto; gap: 18px; align-items: center; padding: 14px; }
.result-right { grid-template-columns: auto 1fr 160px; }
.result-img { width: 100%; height: 106px; object-fit: cover; border-radius: 11px; }
.result h3 { font-size: 17.5px; color: var(--primary); margin: 4px 0; }
.result p { font-size: 13.5px; }
.result-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.result-meta svg.lucide { width: 14px; height: 14px; }
.result-meta span { display: inline-flex; align-items: center; gap: 5px; }
.store { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.1; box-shadow: var(--shadow); }
.store small { display: block; font-size: 10px; font-weight: 500; }
.app-band { background: var(--soft-2); padding: 14px 26px; }
.app-band h2 { margin: 0; font-size: 23px; }

/* Login heroes */
.login-hero { position: relative; color: #fff; background-image: linear-gradient(180deg, rgba(62, 12, 120, .97) 0%, rgba(70, 20, 140, .88) 58%, rgba(74, 24, 150, .05) 92%), url('../images/campus-peach.webp'); background-size: cover; background-position: center bottom; }
.login-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; padding-block: 22px 28px; min-height: 560px; }
.login-hero h1 { color: #fff; font-size: clamp(30px, 3.4vw, 44px); margin: 10px 0; }
.login-hero .lead { max-width: 500px; font-size: 16.5px; }
.login-point { display: flex; align-items: center; gap: 18px; margin-top: 14px; font-size: 14px; }
.login-point strong { display: block; font-size: 17.5px; }
.login-point .ic-box { background: #f3e8ff; }
.login-card { padding: 26px; border-radius: 18px; background: #fff; color: var(--body); box-shadow: 0 24px 60px rgba(30, 8, 70, .3); }
.login-card h2 { font-size: 25px; text-align: center; margin-top: 12px; }
.login-card .ic-box { margin-inline: auto; width: 66px; height: 66px; }
.or { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--ink); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Legal pages */
.legal { display: grid; grid-template-columns: 262px minmax(0, 1fr); gap: 32px; padding-block: 24px 40px; align-items: start; }
.side-card { padding: 0 10px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.side-title { display: flex; align-items: center; gap: 12px; padding: 16px 8px; font-size: 18px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.side-title svg.lucide { width: 30px; height: 30px; color: var(--primary); }
.side-nav a { display: flex; align-items: center; gap: 14px; padding: 10px; font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--line); }
.side-nav a:last-child { border-bottom: 0; }
.side-nav a svg.lucide { width: 20px; height: 20px; }
.side-nav a:hover { color: var(--primary-2); }
.side-nav a.active { justify-content: flex-start; border: 0; border-radius: 9px; background: var(--primary-grad); color: #fff; }
.side-nav a.active svg.lucide:last-child { margin-left: auto; }
.help-card { margin-top: 16px; padding: 20px; border-radius: var(--radius); background: var(--soft-2); font-size: 13px; }
.help-card h4 { font-size: 17px; margin-bottom: 4px; }
.help-card .row { align-items: flex-start; margin-bottom: 12px; }
.help-card svg.ic { flex: none; }
.legal-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.legal-date { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); }
.legal-intro { font-size: 15.5px; margin-bottom: 14px; color: var(--ink); }
.policy { display: flex; gap: 22px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.policy:last-child { border: 0; }
.policy h2 { font-size: 18.5px; margin-bottom: 2px; }
.policy p { font-size: 14px; }
.policy-card { display: flex; gap: 20px; padding: 18px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.policy-card h2 { font-size: 21px; margin-bottom: 8px; }
.ticks { display: grid; gap: 7px; font-size: 14px; }
.ticks li { display: flex; gap: 10px; }
.ticks svg.lucide { color: #fff; fill: var(--primary); margin-top: 2px; }
.toc a { display: flex; gap: 8px; padding: 8px 12px; font-size: 14.5px; color: var(--ink); border-bottom: 1px solid var(--line); }
.toc a.active { background: var(--soft-2); font-weight: 600; border-left: 4px solid var(--primary); }

/* Detail pages: articles, notices, events, profiles */
.pill-solid { background: var(--primary-grad); color: #fff; padding: 5px 14px; }
.pill-solid svg.lucide { color: #fff; }
.article-title { font-size: clamp(25px, 2.9vw, 36px); font-weight: 800; letter-spacing: -.01em; margin: 12px 0 8px; }
.article-meta { font-size: 13.5px; color: var(--ink); gap: 6px 20px; margin: 0; }
.article-meta svg.lucide { width: 17px; height: 17px; }
.article-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius); }
.article-body { display: grid; gap: 12px; margin-top: 14px; font-size: 14.5px; }
.quote { display: flex; gap: 18px; margin: 16px 0 0; padding: 16px 20px; background: var(--soft-2); border-left: 4px solid var(--primary-2); border-radius: 10px; font-size: 14.5px; color: var(--ink); }
.quote svg.lucide { width: 36px; height: 36px; color: var(--highlight); fill: var(--highlight); flex: none; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.thumbs-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 0; }
.thumbs img { width: 100%; height: 92px; object-fit: cover; border-radius: 10px; }
.thumb-more { position: relative; display: block; overflow: hidden; border-radius: 10px; }
.thumb-more img { filter: brightness(.4); }
.thumb-more span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-size: 12.5px; }
.thumb-more b { font-size: 24px; line-height: 1.1; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink); }
.prev-next .next { padding-left: 24px; text-align: right; border-left: 1px solid var(--line); }
.side-h { font-size: 17.5px; margin-bottom: 12px; }
.side-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); line-height: 1.3; }
.side-h + .side-item { border-top: 0; padding-top: 0; }
.side-item > img { width: 84px; height: 62px; object-fit: cover; border-radius: 9px; flex: none; }
.side-item .result-meta { margin-top: 4px; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-row a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; color: #fff; }
.card-dark .ic-box-glass { margin-inline: auto; width: 50px; height: 50px; background: rgba(255, 255, 255, .22); color: #fff; }
.profile-head { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.profile-head > img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: var(--radius); }
.tabs-joined { gap: 0; background: var(--soft); border: 1px solid var(--line); border-radius: 12px 12px 0 0; overflow: hidden; }
.tabs-joined .tab { border: 0; border-radius: 0; background: none; box-shadow: none; }
.tabs-joined .tab.active { background: var(--primary-grad); }
.timeline { display: grid; gap: 10px; }
.timeline li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 8px 28px; border-bottom: 1px solid var(--line); line-height: 1.3; }
.timeline li::before { content: ''; position: absolute; left: 3px; top: 12px; width: 13px; height: 13px; border-radius: 50%; background: var(--primary-2); }
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: 9px; top: 24px; bottom: -14px; width: 1px; background: var(--primary-2); }
.timeline .pill { flex: none; }

/* Listing pages: all events, albums, research centers, catalog */
.list-layout { --cols: 250px minmax(0, 1fr); --align: start; }
.view-toggle { display: inline-flex; flex: none; gap: 4px; }
.img-wrap { position: relative; display: block; }
.img-wrap > img { width: 100%; height: var(--h, 130px); object-fit: cover; display: block; }
.tag-status { position: absolute; left: 10px; top: 10px; padding: 3px 12px; border-radius: 20px; background: #eedcff; color: var(--primary-2); font-size: 12px; font-weight: 600; }
.tag-green { background: #16a34a; color: #fff; }
.tag-grey { background: #d6d3dc; color: #322c44; }
.tag-corner { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; }
.meta-stack { display: grid; gap: 4px; font-size: 12.5px; color: var(--ink); }
.meta-stack > span { display: flex; align-items: center; gap: 8px; }
.meta-stack svg.lucide { width: 15px; height: 15px; }
.img-foot .arrow-square { color: var(--primary-2); border-color: #d9c5ee; }
.book { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.book:last-child { border-bottom: 0; }
.book > img { width: 92px; height: 124px; object-fit: cover; border-radius: 7px; }
.book h3 { font-size: 17.5px; }

/* Forgot password */
.forgot { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 28px 40px; }
.forgot > img { width: 100%; padding-right: 20px; }
.forgot > div { padding-left: 40px; border-left: 1px solid var(--line); }

/* FAQ */
.faq-group { padding: 12px; margin-bottom: 16px; border-radius: var(--radius); background: var(--soft); }
.faq-group h2 { display: flex; align-items: center; gap: 12px; font-size: 17.5px; font-weight: 600; margin: 4px 0 12px; }
details.faq { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
details.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--primary); list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq[open] summary svg.lucide { transform: rotate(180deg); }
details.faq p { padding: 0 14px 12px; font-size: 13.5px; }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; font-size: 13px; }
.cal b { font-size: 11.5px; color: var(--ink); padding-bottom: 6px; font-weight: 600; }
.cal span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; color: var(--ink); }
.cal .off { color: var(--muted); }
.cal .today { background: var(--soft-2); }
.cal .on { background: var(--accent-grad); color: #fff; font-weight: 700; }
.count { display: grid; place-items: center; width: 56px; padding: 6px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); font-size: 11.5px; }
.count b { font-size: 21px; color: var(--ink); line-height: 1.1; }
.tag-over { position: absolute; left: 10px; top: 10px; padding: 3px 12px; border-radius: 8px; background: var(--primary-2); color: #fff; font-size: 13px; font-weight: 600; }

/* Gallery */
.gallery-a { display: grid; grid-template-columns: 1.65fr 1fr 1fr; grid-template-rows: 150px 150px; gap: 10px; }
.gallery-a > :first-child { grid-row: 1 / 3; }
.gallery-b { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gallery-b img { height: 140px; }
.gallery-a img, .gallery-b img { width: 100%; object-fit: cover; border-radius: 12px; }
.gallery-a img { height: 100%; }

/* Partner marks and map */
.partner { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.partner img { width: 100%; height: 34px; object-fit: contain; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 170px; height: 100%; }
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 9px; background: #fff; font-size: 13px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); line-height: 1.2; }
.map-pin svg.lucide { color: #e0321a; fill: #e0321a; stroke: #fff; width: 26px; height: 26px; }

/* 404 */
.err { position: relative; padding-block: 18px 90px; text-align: center; background: url('../images/skyline-light.webp') center bottom / 100% auto no-repeat, linear-gradient(180deg, var(--soft), #fff 40%); }
.err-art { width: min(560px, 100%); margin-inline: auto; mix-blend-mode: multiply; }
.err h1 { font-size: clamp(32px, 4.2vw, 50px); }
.err p { max-width: 640px; margin: 8px auto 20px; font-size: 18px; }
.err .search-bar { max-width: 700px; margin-inline: auto; padding: 6px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.err .search-bar .input { border: 0; }

/* Interactive states */
[hidden] { display: none !important; }
.arrow-circle, .arrow-square, .tag-corner, .input-btn, .view-toggle button, .dots button, .day-btn, .text-btn { cursor: pointer; padding: 0; font: inherit; }
.text-btn { border: 0; background: none; color: var(--primary-2); text-decoration: underline; font-weight: 600; }
.form-note, .filter-note { font-size: 13.5px; color: var(--primary); }
.form-note { margin-top: 8px; }
.filter-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 9px; background: var(--soft-2); }
.input-btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 7px; background: none; color: var(--ink); }
.input-btn svg.lucide { width: 20px; height: 20px; }
.input-btn:hover { background: var(--soft-2); }
.view-toggle button { display: grid; place-items: center; width: 42px; height: 38px; border: 0; border-radius: 9px; background: none; color: var(--primary); }
.view-toggle button.active { background: var(--primary-grad); color: #fff; }
.tag-corner { border: 0; }
[data-bookmark][aria-pressed="true"] svg.lucide { fill: currentColor; }
.day-btn { border: 0; background: #fff; padding: 3px 10px; }
.day-btn.active { background: var(--primary-grad); color: #fff; }
.dots button { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #fff; }
.dots button.active { background: #e8967c; }
.filter-group h4.is-toggle { cursor: pointer; }
.filter-group h4.is-toggle svg.lucide { transition: transform var(--fast) var(--ease); }
.filter-group.collapsed h4 { margin-bottom: 0; }
.filter-group.collapsed h4 svg.lucide { transform: rotate(180deg); }
.filter-group.collapsed > :not(h4) { display: none; }
.cal a { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; padding: 4px 2px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.is-filtered .gallery-a, .is-filtered .gallery-b { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; }
.is-filtered .gallery-a > :first-child { grid-row: auto; grid-column: auto; }
.is-filtered .gallery-a img, .is-filtered .gallery-b img { height: 170px; }
.view-list .list-layout .grid.g3 { grid-template-columns: minmax(0, 1fr); }
.view-list .list-layout .img-card { flex-direction: row; }
.view-list .list-layout .img-card > img, .view-list .list-layout .img-wrap { width: 240px; flex: none; }
.view-list .list-layout .img-card > img, .view-list .list-layout .img-wrap > img { height: 100%; min-height: 130px; }

/* Motion: quiet and consistent. Colour changes take --fast, surfaces take --slow.
   Hover movement is limited to pointer devices, and everything stops for prefers-reduced-motion. */
:root { --ease: cubic-bezier(.2, 0, 0, 1); --fast: 160ms; --slow: 280ms; }
[id] { scroll-margin-top: 100px; }

a, .nav-link, .tab, .icon-btn, .list-row, .side-nav a, .nav-drop a, .social-row a, .share-row a, .pagination a, .toc a, .store, .partner, .kv {
    transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.btn { transition: filter var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.btn:active { filter: brightness(.95); }
.btn svg.lucide-arrow-right, .link svg.lucide-arrow-right { transition: transform var(--fast) var(--ease); }
.input, .select, .textarea { transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(106, 27, 154, .12); outline: 0; }
.nav-link svg.lucide, details.faq summary svg.lucide { transition: transform var(--fast) var(--ease); }
.arrow-circle, .arrow-square { transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.card-link, .img-card, .feature { transition: box-shadow var(--slow) var(--ease), border-color var(--slow) var(--ease), transform var(--slow) var(--ease); }
.img-card > img, .img-wrap > img { transition: transform 500ms var(--ease); }
.img-wrap { overflow: hidden; }
.gallery-a img, .gallery-b img, .thumbs img { transition: filter var(--slow) var(--ease); }

/* Header: animated underline, soft dropdown, and a shadow once the page has scrolled */
.site-header { transition: box-shadow var(--slow) var(--ease); }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(47, 27, 77, .08); }
.nav-link { position: relative; border-bottom: 0; }
.nav-link::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--slow) var(--ease); }
.nav-link.active::after { transform: scaleX(1); }
.nav-drop { display: block; visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility var(--fast); }
.nav-drop::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { visibility: visible; opacity: 1; transform: none; }
.nav-item:hover > .nav-link svg.lucide { transform: rotate(180deg); }

@media (hover: hover) {
    .nav-link:hover::after { transform: scaleX(1); }
    .btn:hover { filter: brightness(1.05); box-shadow: 0 4px 12px rgba(47, 27, 77, .16); }
    .btn:hover svg.lucide-arrow-right, .link:hover svg.lucide-arrow-right { transform: translateX(3px); }
    .btn-outline:hover, .btn-outline-accent:hover, .btn-soft:hover { background: var(--soft-2); filter: none; box-shadow: none; }
    .card-link:hover, .img-card:hover, a.feature:hover { transform: translateY(-2px); border-color: #d9cfe8; box-shadow: 0 10px 24px rgba(47, 27, 77, .1); }
    .img-card:hover > img, .img-card:hover .img-wrap > img { transform: scale(1.03); }
    a:hover > .arrow-circle, a:hover .img-foot .arrow-circle, a:hover .img-foot .arrow-square, a.feature:hover .arrow-circle, a.card:hover > .arrow-square, a.card:hover > .arrow-circle, .side-item:hover .arrow-circle { background: var(--primary-2); border-color: var(--primary-2); color: #fff; }
    a.feature.active:hover .arrow-circle { background: #fff; border-color: #fff; color: var(--highlight); }
    .tab:not(.active):hover { background: var(--soft-2); }
    .side-item:hover strong, a.kv:hover span { color: var(--primary-2); }
    .list-row:hover { box-shadow: 0 6px 16px rgba(47, 27, 77, .09); }
    .pagination a:not(.active):hover { border-color: var(--primary-2); color: var(--primary-2); }
    .gallery-a img:hover, .gallery-b img:hover, .thumbs img:hover { filter: brightness(1.06); }
}

/* Sections below the fold fade in once. app.js adds .reveal, so content is never hidden without JavaScript. */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.main-nav.open { animation: menu-in var(--slow) var(--ease); }
details.faq[open] p { animation: fade-in var(--slow) var(--ease); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes fade-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* Go to top */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 12px; background: var(--primary-grad); color: #fff; box-shadow: 0 8px 20px rgba(47, 27, 77, .28); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease), visibility var(--slow), filter var(--fast) var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg.lucide { width: 22px; height: 22px; transition: transform var(--fast) var(--ease); }
@media (hover: hover) {
    .to-top:hover { filter: brightness(1.12); }
    .to-top:hover svg.lucide { transform: translateY(-2px); }
    .social-row a svg.lucide, .share-row a svg.lucide { transition: transform 600ms var(--ease); }
    .social-row a:hover svg.lucide, .share-row a:hover svg.lucide { transform: rotate(360deg); }
}
@media (max-width: 620px) {
    .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

/* Form controls: custom selects, date pickers, checkboxes, radios and validation */
.input::placeholder, .textarea::placeholder { color: #8b849b; }
input[type="search"]::-webkit-search-cancel-button { display: none; }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--ink); }
.input:hover:not(:focus), .textarea:hover:not(:focus) { border-color: #b9afca; }

input[type="checkbox"], input[type="radio"] { appearance: none; display: inline-grid; place-content: center; flex: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid #b9afca; background: #fff; cursor: pointer; transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
input[type="checkbox"] { border-radius: 5px; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]::before, input[type="radio"]::before { content: ''; background: #fff; transform: scale(0); transition: transform var(--fast) var(--ease); }
input[type="checkbox"]::before { width: 12px; height: 12px; clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 22%, 85% 8%, 39% 69%); }
input[type="radio"]::before { width: 8px; height: 8px; border-radius: 50%; }
input[type="checkbox"]:checked, input[type="radio"]:checked { background: var(--primary-2); border-color: var(--primary-2); }
input[type="checkbox"]:checked::before, input[type="radio"]:checked::before { transform: scale(1); }
input[type="checkbox"]:hover, input[type="radio"]:hover { border-color: var(--primary-2); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(106, 27, 154, .2); }
.option { cursor: pointer; }
.option-pill { padding: 7px 12px 7px 9px; border: 1px solid var(--line); border-radius: 9px; font-weight: 500; transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.option-pill:hover { border-color: #b9afca; }
.option-pill:has(:checked) { background: var(--soft-2); border-color: var(--primary-2); color: var(--primary); font-weight: 600; }

.cs, .dp { position: relative; display: block; width: 100%; min-width: 0; }
.cs-native { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cs-trigger, .dp-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; font-weight: 500; color: var(--ink); cursor: pointer; }
.cs-trigger.is-placeholder, .dp-trigger.is-placeholder { color: #8b849b; font-weight: 400; }
.cs-trigger .cs-value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cs-trigger svg.lucide { width: 18px; height: 18px; color: var(--muted); transition: transform var(--fast) var(--ease); }
.cs.is-open .cs-trigger svg.lucide { transform: rotate(180deg); }
.cs.is-open .cs-trigger, .dp.is-open .dp-trigger { border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(106, 27, 154, .12); }
.dp-trigger { justify-content: flex-start; }
.dp-trigger svg.lucide { width: 18px; height: 18px; color: var(--primary-2); }
.cs-list, .dp-panel { position: fixed; z-index: 60; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 14px 34px rgba(47, 27, 77, .18); animation: popup-in var(--fast) var(--ease); color: var(--ink); }
.cs-list { max-height: 264px; max-width: calc(100vw - 16px); padding: 6px; overflow-y: auto; scrollbar-width: thin; list-style: none; font-size: 14px; font-weight: 400; }
.cs-option { position: relative; padding: 8px 30px 8px 11px; border-radius: 7px; white-space: nowrap; cursor: pointer; }
.cs-option.is-active { background: var(--soft-2); }
.cs-option[aria-selected="true"] { color: var(--primary-2); font-weight: 600; }
.cs-option[aria-selected="true"]::after { content: ''; position: absolute; right: 11px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: currentColor; clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 22%, 85% 8%, 39% 69%); }
.dp-panel { width: 286px; padding: 12px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 13px; }
.dp-grid b { padding-bottom: 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.dp-day { aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; transition: background-color var(--fast) var(--ease); }
.dp-day:hover:not(:disabled) { background: var(--soft-2); }
.dp-day.is-today { box-shadow: inset 0 0 0 1px var(--primary-2); }
.dp-day.is-selected { background: var(--primary-2); color: #fff; font-weight: 600; }
.dp-day:disabled { color: #c9c4d2; cursor: not-allowed; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; }
@keyframes popup-in { from { opacity: 0; transform: translateY(-4px); } }

.is-invalid.input, .is-invalid.textarea, .textarea.is-invalid { border-color: #d92d20; background: #fff8f7; }
.is-invalid.input:focus, .is-invalid.textarea:focus, .cs-trigger.is-invalid:focus { border-color: #d92d20; box-shadow: 0 0 0 3px rgba(217, 45, 32, .15); }
.is-valid.input:not(:focus), .is-valid.textarea:not(:focus) { border-color: #16a34a; }
.input-ic:has(.is-invalid) > svg.lucide:first-child { color: #d92d20; }
.option.is-invalid input { border-color: #d92d20; }
.option.is-invalid { color: #b42318; }
.field-error { display: flex; align-items: flex-start; gap: 6px; flex-basis: 100%; margin-top: 2px; font-size: 12.5px; font-weight: 500; line-height: 1.35; color: #b42318; animation: fade-in var(--fast) var(--ease); }
.field-error::before { content: '!'; display: grid; place-items: center; flex: none; width: 15px; height: 15px; margin-top: 1px; border-radius: 50%; background: #d92d20; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.card-dark .field-error, .cta .field-error { color: #ffd9d4; }
.cta .field-error, .cta .form-note { order: 3; max-width: none; padding-left: 0; border-left: 0; }
.cta .form-note.is-success { padding: 9px 12px; }
.field-count { justify-self: end; font-size: 12px; color: var(--muted); }
.field-hint { font-size: 12.5px; color: #a15c07; }
.form-note.is-success { padding: 9px 12px; border-radius: 9px; background: #ecfdf3; color: #067647; font-weight: 500; flex-basis: 100%; }
.shake { animation: shake 360ms var(--ease); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading svg.lucide { opacity: 0; }
.btn.is-loading::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Panels with a tinted heading */
.panel { padding: 0; overflow: hidden; }
.panel-h { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: var(--soft); border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 700; color: var(--ink); }
.panel-h svg.lucide { flex: none; width: 26px; height: 26px; color: var(--primary); }
.panel-h-sm { padding: 10px 16px; font-size: 17px; }
.panel-h-sm svg.lucide { width: 22px; height: 22px; }
.panel-body { padding: 16px 18px; }
svg.lucide.ic-xs { flex: none; width: 18px; height: 18px; color: var(--primary); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Job application */
.job-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr) 220px; gap: 18px; align-items: start; }
.stepper { display: grid; grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); list-style: none; }
.stepper li { position: relative; }
.stepper li:not(:last-child)::after { content: ''; position: absolute; left: calc(50% + 16px); right: calc(-50% + 16px); top: 15px; height: 2px; background: var(--line); }
.stepper li:has(.is-done):not(:last-child)::after { background: var(--primary-2); }
.stepper button { display: grid; justify-items: center; gap: 6px; width: 100%; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--body); cursor: pointer; }
.stepper button:disabled { cursor: default; }
.stepper b { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #d9d2e4; border-radius: 50%; background: #fff; font-size: 13px; color: var(--ink); transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.stepper .is-current { font-weight: 600; color: var(--ink); }
.stepper .is-current b, .stepper .is-done b { background: var(--primary-grad); border-color: transparent; color: #fff; }
.job-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.job-actions .btn { min-width: 160px; justify-content: center; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field-label em { color: var(--accent); font-style: normal; }
.file-field { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px dashed #c9bddb; border-radius: 9px; background: var(--soft); font-size: 13.5px; cursor: pointer; transition: border-color var(--fast) var(--ease); }
.file-field:hover, .file-field:focus-within { border-color: var(--primary-2); }
.file-field.is-invalid { border-color: #d92d20; background: #fff8f7; }
.file-field svg.lucide { flex: none; width: 20px; height: 20px; color: var(--primary); }
.file-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-name { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.file-btn { flex: none; padding: 4px 12px; border: 1px solid var(--primary); border-radius: 7px; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--primary); }
.review-h { margin: 12px 0 2px; font-size: 14.5px; color: var(--primary); }
[data-review] .kv b { text-align: right; overflow-wrap: anywhere; }
.step-menu { padding: 0; overflow: hidden; list-style: none; }
.step-menu li + li { border-top: 1px solid var(--line); }
.step-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 0; background: #fff; font: inherit; font-size: 14px; text-align: left; color: var(--ink); cursor: pointer; transition: background-color var(--fast) var(--ease); }
.step-menu button:disabled { cursor: default; color: var(--body); }
.step-menu button:hover:not(:disabled) { background: var(--soft); }
.step-menu button.is-current { background: var(--soft-2); font-weight: 600; color: var(--primary); }
.step-menu svg.lucide { width: 20px; height: 20px; color: var(--primary); }
.dp-title { border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); }
button.dp-title { padding: 4px 8px; border-radius: 7px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
button.dp-title:hover { background: var(--soft-2); }
.dp-grid.dp-years { grid-template-columns: repeat(4, 1fr); max-height: 224px; overflow-y: auto; gap: 4px; scrollbar-width: thin; }
.dp-year { padding: 8px 0; border: 0; border-radius: 7px; background: none; color: var(--ink); cursor: pointer; font: inherit; }
.dp-year:hover { background: var(--soft-2); }
.dp-year.is-selected { background: var(--primary-2); color: #fff; font-weight: 600; }

/* Selects with a leading icon */
.input-ic > .cs .cs-trigger { padding-left: 44px; }
.input-ic > svg.lucide:first-child:has(+ .cs) { z-index: 1; }

/* Fee calculator */
.tip { display: inline-grid; place-items: center; flex: none; color: var(--muted); cursor: help; }
.tip svg.lucide { width: 16px; height: 16px; }
.fee-head { display: flex; align-items: center; gap: 16px; padding: 12px 16px; margin-bottom: 12px; border-radius: 10px; background: var(--soft-2); }
.fee-head .strong { display: block; font-size: 16.5px; line-height: 1.3; }
.fee-meta { display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 13.5px; }
.fee-meta span:not(:last-child)::after { content: '|'; margin-inline: 10px; color: var(--muted); }
.fee-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.fee-table th, .fee-table td { padding: 7px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.fee-table thead th { font-weight: 700; color: var(--ink); }
.fee-table th:last-child, .fee-table td:last-child { text-align: right; white-space: nowrap; }
.fee-table tfoot th, .fee-table tfoot td { padding-block: 13px; border: 0; background: var(--soft-2); font-weight: 700; color: var(--ink); }
.fee-table tfoot td { font-size: 22px; font-weight: 800; color: var(--primary); }
.fee-table td[data-fee-total] { white-space: nowrap !important; }
.fee-note { gap: 8px; margin-top: 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; }
[data-fee-result].is-updated .fee-table tfoot td { animation: fade-in var(--slow) var(--ease); }
.num-list { display: grid; gap: 10px; counter-reset: num; list-style: none; font-size: 14px; }
.num-list li { display: flex; align-items: center; gap: 12px; counter-increment: num; }
.num-list li::before { content: counter(num); display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-grad); color: #fff; font-size: 13px; font-weight: 600; }

/* Book details */
.book-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; align-items: start; }
.book-head { display: grid; grid-template-columns: 180px minmax(0, 1fr) 236px; gap: 22px; margin-bottom: 18px; align-items: start; }
.book-cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 8px 22px rgba(47, 27, 77, .22); }
.book-kv { justify-content: flex-start; padding-block: 5px; }
.book-kv > span:first-child { flex: 0 0 104px; }
.avail-card { padding: 14px 16px; border: 1px solid #d5efdf; border-radius: var(--radius); background: #f5fbf7; }
.book-tabs { margin-bottom: 8px; }
.book-tabs .tab { padding-inline: 18px; }
.toc { display: grid; gap: 0; list-style: decimal inside; font-size: 13.5px; }
.toc li { display: list-item; position: relative; padding: 5px 44px 5px 0; border-bottom: 1px solid var(--line); }
.toc li > span { display: inline; }
.toc li > span:last-child { position: absolute; right: 0; top: 5px; }
.book-lower { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.related-books { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding-inline: 10px; }
.book-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.book-strip::-webkit-scrollbar { display: none; }
.book-strip a { display: grid; gap: 6px; font-size: 12px; line-height: 1.25; color: var(--ink); scroll-snap-align: start; }
.book-strip img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; }
.book-strip span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.similar-book { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.25; }
.similar-book:last-child { border: 0; }
.similar-book img { width: 48px; height: 66px; object-fit: cover; border-radius: 4px; }
.similar-book small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--body); }
.similar-book > svg.lucide { width: 16px; height: 16px; color: var(--primary); }
.book-actions { display: grid; gap: 4px; padding-block: 8px; }
.book-actions button { display: flex; align-items: center; gap: 10px; padding: 4px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 13.5px; text-align: left; color: var(--ink); cursor: pointer; transition: background-color var(--fast) var(--ease); }
.book-actions button:hover { background: var(--soft); }
.book-actions .ic-box-sm { width: 34px; height: 34px; }
.book-actions .ic-box-sm svg.lucide { width: 18px; height: 18px; }

/* Portal guides */
.guide-layout [id], [data-step-top], [data-tour], [data-fee-result], #book-panels { scroll-margin-top: 96px; }
.guide-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.guide-menu { position: sticky; top: 96px; display: grid; gap: 2px; padding: 8px; }
.guide-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink); transition: background-color var(--fast) var(--ease); }
.guide-menu a:hover { background: var(--soft-2); }
.guide-menu a.active { background: var(--primary-grad); color: #fff; font-weight: 600; }
.guide-menu svg.lucide { flex: none; width: 21px; height: 21px; color: var(--primary); }
.guide-menu a.active svg.lucide { color: #fff; }
.guide-intro { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: center; }
.guide-tiles { grid-template-columns: repeat(var(--tiles), minmax(0, 1fr)); gap: 10px; }
.guide-tiles .tile { min-height: 92px; }
.guide-tiles .tile svg.lucide { color: var(--primary); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.guide-steps { display: grid; gap: 2px; list-style: none; }
.guide-steps button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 4px 6px; border: 0; border-radius: 7px; background: none; font: inherit; font-size: 13.5px; text-align: left; color: var(--ink); cursor: pointer; transition: background-color var(--fast) var(--ease); }
.guide-steps button:hover { background: var(--soft); }
.guide-steps b { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border: 1px solid #d9d2e4; border-radius: 50%; background: #fff; font-size: 12px; }
.guide-steps li.active button { background: var(--soft-2); font-weight: 600; color: var(--primary); }
.guide-steps li.active b { background: var(--primary-grad); border-color: transparent; color: #fff; }
.guide-steps p { padding: 4px 6px 8px 40px; }
.guide-video { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: #000; color: #fff; text-align: left; cursor: pointer; }
.guide-video img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: filter var(--slow) var(--ease); }
.guide-video:hover img { filter: brightness(.9); }
.guide-video-title { position: absolute; left: 14px; bottom: 14px; max-width: 44%; font-size: 15px; font-weight: 600; line-height: 1.25; text-shadow: 0 1px 8px rgba(0, 0, 0, .75); }
.guide-video-time { position: absolute; right: 10px; bottom: 10px; padding: 2px 7px; border-radius: 5px; background: rgba(0, 0, 0, .78); font-size: 12px; font-weight: 600; }

/* Portal sections */
.sections-layout { --cols: minmax(0, 1fr) 290px; --align: start; gap: 20px; }
.sections-grid { gap: 12px; }
.section-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); line-height: 1.3; }
.section-card strong { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.section-card small { display: block; margin-top: 3px; font-size: 12px; color: var(--body); }
.section-card > svg.lucide { width: 17px; height: 17px; color: var(--primary); }
.portal-how { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 10px 22px; }
.portal-how img { width: 100%; }

/* Virtual tour */
.tour-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; align-items: start; }
.tour-stage { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius); background: #17102b; touch-action: pan-y; user-select: none; }
.tour-stage.is-zoomed { cursor: grab; touch-action: none; }
.tour-stage.is-zoomed:active { cursor: grabbing; }
.tour-stage > img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--slow) var(--ease); }
.tour-stage:fullscreen { border-radius: 0; aspect-ratio: auto; }
.tour-label { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 22px; background: rgba(23, 16, 43, .78); color: #fff; font-size: 14px; font-weight: 600; }
.tour-label svg.lucide { width: 17px; height: 17px; }
.tour-btn { position: absolute; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 9px; background: rgba(23, 16, 43, .78); color: #fff; cursor: pointer; }
.tour-full { right: 14px; top: 14px; }
.tour-360 { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); padding: 12px 30px; border-radius: 50%; background: rgba(23, 16, 43, .5); color: #fff; font-size: 34px; font-weight: 700; pointer-events: none; transition: opacity var(--fast) var(--ease); }
.is-zoomed .tour-360 { opacity: 0; }
.tour-zoom { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); display: grid; overflow: hidden; border-radius: 19px; background: #fff; box-shadow: var(--shadow); }
.tour-zoom button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.tour-zoom button:hover { background: var(--soft-2); }
.tour-zoom svg.lucide { width: 18px; height: 18px; }
.tour-strip-wrap { position: absolute; left: 14px; right: 14px; bottom: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.tour-strip { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 19%); gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tour-strip::-webkit-scrollbar { display: none; }
.tour-strip button { padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; }
.tour-strip button.active { border-color: #fff; box-shadow: inset 0 0 0 1px var(--primary-2); }
.tour-strip img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tour-start { display: none; margin-top: 12px; }
.tour-place { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font: inherit; font-size: 14px; font-weight: 500; text-align: left; color: var(--ink); cursor: pointer; transition: background-color var(--fast) var(--ease); }
.tour-place:hover { background: var(--soft); }
.tour-place.active { background: var(--soft-2); border-color: transparent; font-weight: 600; color: var(--primary); }
.tour-place svg.lucide { flex: none; width: 20px; height: 20px; color: var(--primary); }
.tour-place svg.lucide:last-child { margin-left: auto; width: 16px; height: 16px; }
.tour-highlights { gap: 14px; }
.tour-highlights button { display: grid; gap: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); text-align: center; cursor: pointer; }
.tour-highlights img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border-radius: 9px; transition: filter var(--slow) var(--ease); }
.tour-highlights button:hover img { filter: brightness(1.06); }

/* Media kit */
.brand-assets { gap: 10px; }
.brand-asset { display: grid; justify-items: center; align-content: start; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; font-size: 13.5px; color: var(--ink); }
.brand-asset strong { font-weight: 700; line-height: 1.2; }
.brand-asset small { font-size: 12px; color: var(--body); }
.brand-mark { display: grid; place-items: center; width: 100%; height: 86px; margin-bottom: 8px; border-radius: 9px; }
.brand-mark img { max-height: 76px; width: auto; }
.brand-mark.is-dark { background: var(--primary-grad); }
.brand-mark img.is-mono { filter: brightness(0); }
.brand-type { font-size: 58px; font-weight: 500; color: var(--ink); line-height: 1; }
.swatches { grid-auto-flow: column; justify-content: center; gap: 6px; }
.swatches i { width: 26px; height: 26px; border-radius: 6px; }
.swatches i:nth-child(1) { background: #3f0a69; }
.swatches i:nth-child(2) { background: #7b1fa2; }
.swatches i:nth-child(3) { background: #fbc02d; }
.swatches i:nth-child(4) { background: #dcd6ec; }
.quick-dl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.25; }
.quick-dl:last-of-type { border: 0; }
.quick-dl small { display: block; font-size: 12px; color: var(--body); }
.quick-dl .btn { padding: 7px 10px; }
.quick-dl .form-note { grid-column: 1 / -1; margin: 0; }
.media-lower { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 16px; align-items: stretch; }
.media-res { gap: 10px; }
.media-res .img-wrap > img { height: auto; aspect-ratio: 3 / 2; border-radius: 9px; }
.media-res .play { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.usage-band { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 18px; padding: 14px 24px; border-radius: var(--radius); background: var(--soft-2); }
.usage-band p { padding-left: 22px; border-left: 2px solid var(--primary); }

/* Online admission form */
.admission-layout { grid-template-columns: 280px minmax(0, 1fr); }
.admission-side .guide-menu { position: static; }
.input-group { display: flex; }
.input-group > span { display: grid; place-items: center; flex: none; padding-inline: 16px; border: 1px solid #d9d2e4; border-right: 0; border-radius: 9px 0 0 9px; background: var(--soft); font-size: 14px; font-weight: 500; color: var(--ink); }
.input-group .input { flex: 1; min-width: 0; border-radius: 0 9px 9px 0; }
.input-group .field-error { flex-basis: 100%; }
.input-group { flex-wrap: wrap; }
.admission-actions { justify-content: space-between; align-items: flex-start; }
.admission-actions .btn { min-width: 0; }
.admission-actions .form-note { flex-basis: 100%; margin: 0; }

/* Photo album */
.album-stage { position: relative; overflow: hidden; aspect-ratio: 16 / 7.6; border-radius: var(--radius); background: #17102b; outline-offset: 2px; }
.album-stage > img { width: 100%; height: 100%; object-fit: cover; }
.album-stage:fullscreen { border-radius: 0; aspect-ratio: auto; }
.album-stage:fullscreen > img { object-fit: contain; }
.album-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--shadow); cursor: pointer; }
.album-nav svg.lucide { width: 20px; height: 20px; }
.album-prev { left: 18px; }
.album-next { right: 18px; }
.album-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 12px; border-radius: 8px; background: rgba(23, 16, 43, .78); color: #fff; font-size: 13.5px; font-weight: 500; }
.album-thumbs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.album-thumbs button { position: relative; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; }
.album-thumbs button.active { border-color: var(--primary-2); }
.album-thumbs img { display: block; width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.album-thumbs .thumb-more img { height: auto; }
.album-thumbs .form-note { grid-column: 1 / -1; }
.album-about { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-top: 14px; padding: 12px 16px; }
.album-zip { text-align: left; }
.album-zip small { display: block; font-size: 12px; font-weight: 400; color: var(--body); }
.album-zip svg.lucide { width: 24px; height: 24px; }

/* Resource details */
.resource-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr) 290px; gap: 20px; align-items: start; }
.resource-status { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.avail-line { gap: 8px; padding: 8px 12px; background: #e9f8ee; font-size: 16px; font-weight: 700; color: #15803d; }
.avail-line svg.lucide { width: 22px; height: 22px; color: #15803d; }
.resource-tabs { gap: 4px; margin-bottom: 8px; }
.resource-tabs .tab { min-height: 40px; padding-inline: 22px; }
.topic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; list-style: none; }
.topic-list li { display: flex; align-items: center; gap: 8px; }
.related-covers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.related-covers a { display: grid; align-content: start; gap: 4px; font-size: 11.5px; line-height: 1.25; color: var(--ink); }
.related-covers img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; margin-bottom: 4px; }
.related-covers small { font-size: 11px; color: var(--body); }
.access-note { align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 9px; background: #fdf6e3; }
.access-note svg.lucide { flex: none; width: 18px; height: 18px; color: #d48806; }
.book-actions > a { display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: 9px; font-size: 13.5px; color: var(--ink); transition: background-color var(--fast) var(--ease); }
.book-actions > a:hover { background: var(--soft); }

/* Industry partners */
.partner-stats { padding: 14px 24px; border-radius: var(--radius); background: var(--soft-2); }
.partner-stats > * + * { padding-left: 24px; border-left: 1px solid #d5c9e6; }
.partner-stats strong { display: block; font-size: 25px; font-weight: 800; line-height: 1.1; color: var(--ink); }
.partner-stats span { font-size: 13.5px; }
.partner-tools { flex: 1 1 420px; max-width: 490px; }
.partner-grid { gap: 12px; }
.partner-card { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); line-height: 1.3; min-width: 0; }
.partner-logo { display: flex; align-items: center; height: 44px; margin-bottom: 8px; }
.partner-logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.partner-card strong { font-size: 14px; font-weight: 700; color: var(--ink); }
.partner-card small { font-size: 12.5px; color: var(--body); }
.partner-foot { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: auto; padding: 8px 20px 0 0; }
.partner-foot svg.lucide { position: absolute; right: 0; bottom: 3px; width: 16px; height: 16px; color: var(--primary); }
.partner-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 16px 40px; border-radius: var(--radius); background: var(--primary-grad); color: #f4eff9; }
.partner-cta h2 { font-size: 23px; color: #fff; }
.ic-box-glass-lg { width: 62px; height: 62px; background: rgba(255, 255, 255, .22); color: #fff; }
.ic-box-glass-lg svg.lucide { width: 32px; height: 32px; }

/* Form results */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note.is-error { padding: 9px 12px; border-radius: 9px; background: #fef3f2; color: #b42318; font-weight: 500; flex-basis: 100%; }
.form-success { display: grid; justify-items: center; gap: 8px; padding: 28px 18px; text-align: center; outline: 0; animation: fade-in var(--slow) var(--ease); }
.form-success-ic { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 4px; border-radius: 50%; background: #16a34a; color: #fff; box-shadow: 0 0 0 8px #e8f8ee; }
.form-success-ic svg.lucide { width: 32px; height: 32px; stroke-width: 2.5; }
.form-success h3 { font-size: 23px; font-weight: 800; }
.form-success p { max-width: 460px; font-size: 14.5px; overflow-wrap: anywhere; }
.form-success-ref { padding: 8px 14px; border-radius: 9px; background: var(--soft-2); }
.form-success-ref b { color: var(--primary); }
.form-success .btn { margin-top: 6px; }

/* Print: legal pages' Print button */
@media print {
    .to-top, .topbar, .site-header, .site-footer, .side-col, .legal-toolbar .row, .hero .breadcrumb { display: none !important; }
    .legal { display: block; }
    .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1140px) {
    .topbar-contact { gap: 16px; }
    .header-actions .btn { display: none; }
    .nav-link { padding-inline: 8px; }
    .g6, .g7, .g8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-in { grid-template-columns: 1fr 1fr; }
    .footer-col:nth-child(3) { border: 0; padding-left: 0; }
}
@media (max-width: 960px) {
    .container { padding-inline: 16px; }
    .topbar { display: none; }
    .header-in { min-height: 66px; }
    .brand { font-size: 13.5px; }
    .brand img { width: 50px; height: 50px; }
    .site-footer .brand { font-size: 17px; }
    .site-footer .brand img { width: 62px; height: 62px; }
    .nav-toggle { display: grid; place-items: center; order: 3; width: 42px; height: 42px; padding: 0; border: 0; background: none; color: var(--primary); }
    .nav-toggle svg.lucide { width: 30px; height: 30px; }
    .header-actions { margin-left: auto; }
    .main-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - 70px); overflow-y: auto; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(47, 27, 77, .15); }
    .main-nav.open { display: flex; }
    .nav-link { display: flex; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--line); }
    .nav-link::after, .nav-drop::before { display: none; }
    .nav-item:hover > .nav-link svg.lucide { transform: none; }
    .nav-link.active { color: var(--accent); }
    .nav-drop { position: static; visibility: visible; opacity: 1; transform: none; min-width: 0; padding: 2px 0 6px 12px; border: 0; box-shadow: none; }
    .main-nav .nav-apply { display: inline-flex; margin-top: 12px; }
    .split, .legal, .login-in { grid-template-columns: minmax(0, 1fr); }
    .photo-frame { height: var(--h-sm, 240px); }
    .g3, .g4, .g5, .g6, .g7, .g8 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tabs { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; }
    .hero-in { min-height: 170px; padding-block: 16px 20px; }
    .hero h1 { font-size: 27px; max-width: 300px; }
    .hero p { font-size: 13.5px; max-width: 290px; }
    .hero-home .hero-in { min-height: 420px; }
    .hero-home h1 { max-width: 100%; font-size: 30px; }
    .hero-points, .dots { display: none; }
    .strip-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 0; }
    .strip-item { flex-direction: column; text-align: center; min-width: 0; padding: 4px 6px; gap: 5px; font-size: 12px; border-left: 1px solid var(--line); }
    .strip-item:nth-child(3n+1) { border-left: 0; }
    .strip-item:first-child { padding-left: 6px; }
    .strip-item strong { font-size: 13px; }
    .strip-item svg.lucide { width: 30px; height: 30px; }
    .cta, .promo { justify-content: flex-start; padding: 18px; gap: 12px; }
    .cta p, .promo .sep { padding-left: 0; border-left: 0; }
    .promo > img { opacity: .25; width: 50%; }
    .side-col { order: 2; }
    .list-layout { --cols: minmax(0, 1fr); }
    .forgot { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 12px; }
    .forgot > img { padding: 0; max-width: 320px; margin-inline: auto; }
    .forgot > div { padding: 0; border: 0; }
    .footer-legal nav { padding-right: 0; }
    .result, .result-right { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
    .result-right { grid-template-columns: auto minmax(0, 1fr); }
    .result-right .result-img { grid-column: 1 / -1; order: 3; height: 150px; }
    .result-img { height: 90px; }
    .result > .arrow-square { grid-column: 2; justify-self: end; }
    .result h3 { font-size: 15px; }
    .gallery-a { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .gallery-a > :first-child { grid-row: auto; grid-column: 1 / -1; }
    .gallery-a img { height: 130px; }
    .gallery-a > :first-child { height: 190px; }
    .gallery-b { grid-template-columns: 1fr 1fr; }
    .gallery-b img { height: 120px; }
    .is-filtered .gallery-a, .is-filtered .gallery-b { grid-template-columns: 1fr 1fr; }
    .is-filtered .gallery-a img, .is-filtered .gallery-b img { height: 130px; }
    .err { padding-bottom: 90px; }
    .err p { font-size: 15px; }
}
@media (max-width: 620px) {
    .g2, .g3, .g4, .g5 { grid-template-columns: minmax(0, 1fr); }
    .g2.keep, .g3.keep, .g4.keep, .g5.keep, .g6, .g7, .g8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .g3.keep3, .g4.keep3, .g6.keep3, .g8.keep3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tabs-auto .tab { padding-inline: 2px; gap: 5px; font-size: 12px; }
    .footer-in { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 22px; }
    .footer-col { border-left: 0; padding-left: 0; }
    .footer-skyline { opacity: .35; max-width: 70%; }
    .search-bar { flex-direction: column; }
    .policy, .policy-card { gap: 14px; }
    .ic-box { width: 44px; height: 44px; }
    .ic-box svg.lucide { width: 22px; height: 22px; }
    .row-between > .btn { width: 100%; }
    table { font-size: 12.5px; }
    th, td { padding: 9px 10px; }
    .login-card { padding: 18px; }
    .profile-head { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
    .thumbs, .thumbs-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .prev-next { grid-template-columns: minmax(0, 1fr); }
    .prev-next .next { padding-left: 0; text-align: left; border-left: 0; }
    .book-view { display: none; }
    .carousel { grid-auto-columns: 78%; }
    .view-list .list-layout .img-card > img, .view-list .list-layout .img-wrap { width: 120px; }
    .notice-row { flex-wrap: wrap; }
    .notice-row > div:nth-child(2) { flex: 1 1 calc(100% - 60px) !important; }
    .notice-row > div:nth-child(3) { display: flex; align-items: center; flex: 1 !important; flex-wrap: wrap; }
}

/* Bands that are also the page container: their padding replaces the container's, so set the width here. */
.container:is(.cta, .promo, .card-soft) { width: min(1176px, calc(100% - 64px)); }

@media (max-width: 960px) {
    .container:is(.cta, .promo, .card-soft) { width: calc(100% - 32px); }
    .breadcrumb { flex-wrap: wrap; row-gap: 2px; }

    /* Stat strips: even rows, never one item left alone */
    .strip-in { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .strip-item { grid-column: span 2; }
    .strip-in:has(> :nth-child(4):last-child) > .strip-item { grid-column: span 3; }
    .strip-in:has(> :nth-child(4):last-child) > :nth-child(3) { border-left: 0; }
    .strip-in:has(> :nth-child(4):last-child) > :nth-child(4) { border-left: 1px solid var(--line); }
    .strip-dark .strip-in:has(> :nth-child(4):last-child) > :nth-child(4) { border-color: rgba(255, 255, 255, .3); }
    .strip-in:has(> :nth-child(5):last-child) > :nth-child(n+4) { grid-column: span 3; }
    .strip-in:has(> :nth-child(7):last-child) > :nth-child(7) { grid-column: span 6; }

    /* Filter panel opens on demand */
    .filter-card .filter-head[role="button"] { cursor: pointer; }
    .filter-card .filter-head[role="button"]::after { content: ''; width: 8px; height: 8px; margin: -3px 4px 0 auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-135deg); transition: transform var(--fast) var(--ease); }
    .filter-card.is-collapsed .filter-head[role="button"]::after { transform: rotate(45deg); }
    .filter-card.is-collapsed > :not(.filter-head) { display: none; }

    /* Footer */
    .footer-skyline { opacity: .4; }
    .footer-legal { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
    .footer-legal nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 12px; }
    .footer-legal nav a { padding-block: 6px; }
    .footer-legal > span { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); }
}

@media (max-width: 620px) {
    .input, .select, .textarea { font-size: 16px; text-overflow: ellipsis; }
    .input::placeholder, .textarea::placeholder { text-overflow: ellipsis; }
    .btn { white-space: normal; text-align: center; }
    .option { padding-block: 6px; }
    .hero-actions .btn { flex: 1 1 auto; }

    /* Footer */
    .footer-legal nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-legal nav a { padding-block: 9px; }
    .social-row a { width: 40px; height: 40px; }

    /* Calls to action */
    .cta, .promo { flex-direction: column; align-items: stretch; gap: 12px; padding: 22px 20px; text-align: left; }
    .cta > :not(svg), .promo > :not(img, svg) { flex: none !important; width: 100%; max-width: none; }
    .cta > svg, .promo > svg { align-self: flex-start; }
    .cta h2 { font-size: 20px; }
    .cta form { flex-direction: column; align-items: stretch; gap: 10px; }
    .cta form > * { flex: none !important; width: 100%; }
    .cta form .field-error { order: 0; }
    .promo > img { opacity: .16; }

    /* Leadership */
    .leaders { gap: 10px; }
    .leaders .img-card { flex-direction: row; align-items: center; }
    .leaders .img-card > img { width: 92px; height: 92px; flex: none; }
    .leaders .img-body { min-width: 0; padding-block: 10px; }
    .leaders .strong { font-size: 15.5px; }

    /* Tabs scroll sideways in one row. Pairs stay side by side. */
    .tabs:not(:has(> :nth-child(2):last-child)) { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-block: 2px 6px; }
    .tabs::-webkit-scrollbar { display: none; }
    .tabs:not(.container, .tabs-joined):not(:has(> :nth-child(2):last-child)) { margin-inline: -16px; padding-inline: 16px; }
    .tabs:not(:has(> :nth-child(2):last-child)) > .tab { flex: 0 0 auto; min-width: 100px; max-width: 150px; scroll-snap-align: center; }
    .tabs-inline:not(:has(> :nth-child(2):last-child)) > .tab { min-width: 140px; font-size: 12.5px; }
    .tabs .tab { font-size: 12.5px; }
    .tabs-auto .tab { padding-inline: 14px; }
    .tabs-joined { padding-block: 0 !important; }

    /* Pagination fits one row, with arrows instead of Previous and Next */
    .pagination { gap: 4px; flex-wrap: nowrap; }
    .pagination a, .pagination span { min-width: 32px; padding: 0 2px; }
    .pagination .disabled, .pagination > a:last-child { font-size: 0; }
    .pagination svg.lucide { width: 18px; height: 18px; }
    .day-btn { padding: 7px 12px; }

    /* Cards */
    .grid:not(.g6, .keep) > .feature:has(> .arrow-circle) { padding-right: 58px; }
    .grid:not(.g6, .keep) > .feature > .arrow-circle { position: absolute; right: 14px; top: 50%; margin-top: -15px; }
    .steps .feature { flex-direction: row; align-items: center; gap: 12px; padding-block: 11px; }
    .steps .feature svg.ic { width: 30px; height: 30px; }
    .g5.keep > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .partner { flex-wrap: wrap; font-size: 13px; text-align: center; }
    .thumbs-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .thumbs-5 > * { grid-column: span 2; }
    .thumbs-5 > :nth-child(-n+2) { grid-column: span 3; }
    .row-between > .stack { width: 100%; justify-items: start !important; }
    .result-meta span { min-width: 0; overflow-wrap: anywhere; }
    td { white-space: normal !important; }

    /* Faculty profile: photo beside the name, everything else full width */
    .profile-head > div { display: contents; }
    .profile-head > img { grid-row: 1 / span 3; }
    .profile-head > div > :nth-child(-n+3) { grid-column: 2; margin: 0 !important; }
    .profile-head > div > :nth-child(n+4) { grid-column: 1 / -1; margin: 0; }
    .profile-head .article-title { font-size: 22px; }

    /* Fee and cookie tables become labelled rows */
    .table-stack thead { display: none; }
    .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; }
    .table-stack tr { padding: 10px 14px; border-top: 1px solid var(--line); }
    .table-stack tr:first-child { border-top: 0; }
    .table-stack td { padding: 3px 0; border: 0; text-align: left; font-size: 13.5px; }
    .table-stack td:first-child { padding-bottom: 6px; font-size: 14.5px; }
    .table-stack td[data-label] { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: baseline; }
    .table-stack td[data-label]::before { content: attr(data-label); font-size: 12.5px; font-weight: 600; color: var(--ink); }
    .table-stack .total { min-width: 0; width: fit-content; }
}

@media (max-width: 360px) {
    .g6.keep3, .g8.keep3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .g6 .img-foot > svg { display: none; }
    .strip-item strong.num { font-size: 18px; }
    .strip-item { overflow-wrap: anywhere; }
    .pagination { gap: 3px; }
    .pagination a, .pagination span { min-width: 28px; }
    .book { grid-template-columns: 70px minmax(0, 1fr); gap: 10px; }
    .book > img { width: 70px; height: 96px; }
    .book h3 { font-size: 15px; min-width: 0; }
    .profile-head { grid-template-columns: 84px minmax(0, 1fr); }
    .result-right { grid-template-columns: minmax(0, 1fr); }
    .tile { overflow-wrap: anywhere; }
}

@media (max-width: 620px) {
    .tile { font-size: 12px; padding-inline: 4px; }
}
@media (max-width: 360px) {
    h3, p, .card, .card-soft { overflow-wrap: anywhere; }
}

@media (min-width: 621px) and (max-width: 960px) {
    .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .app-band { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 16px; }
    .app-band-text { align-items: flex-start; }
    .app-band h2 { font-size: 19px; margin-bottom: 2px; }
    .app-stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .app-stores .store { justify-content: center; min-height: 50px; padding: 6px 8px; }
}
@media (max-width: 360px) {
    .app-stores { grid-template-columns: minmax(0, 1fr); }
}

/* Image focal points: which part of each photo stays visible when it's cropped.
   Values are object-position / background-position percentages. Add a line when adding a photo. */
.hero[style*="/campus-hero."] { --pos-y: 10%; }
.hero[style*="/campus-peach."] { --pos-x: 58%; --pos-y: 40%; }
.hero[style*="/students-laptop."] { --pos-y: 12%; }
.hero[style*="/admission-hero."] { --pos-y: 10%; }
.hero[style*="/campus-life-hero."] { --pos-y: 30%; }
.hero[style*="/career-fair-hero."] { --pos-y: 10%; }
.hero[style*="/career-woman."] { --pos-y: 12%; }
.hero[style*="/gallery-hero."] { --pos-y: 5%; }
.hero[style*="/events-hero."] { --pos-y: 15%; }
.hero[style*="/intl-hero."] { --pos-y: 18%; }
.hero[style*="/library-hero."] { --pos-x: 70%; --pos-y: 20%; }
.hero[style*="/research-hero."] { --pos-y: 35%; }
.hero[style*="/scholarship-hero."] { --pos-y: 56%; }
.hero[style*="/portal-hero."] { --pos-y: 8%; }
.hero[style*="/notice-board-hero."] { --pos-y: 60%; }
.hero[style*="/library-wide."] { --pos-y: 25%; }
.hero[style*="/guide-student-hero."] { --pos-y: 80%; --hero-fade: 22%; }
.hero[style*="/guide-faculty-hero."] { --pos-y: 80%; --hero-fade: 22%; }
.hero[style*="/portal-sections-hero."] { --pos-y: 70%; --hero-fade: 22%; }
.hero[style*="/media-hero."] { --pos-y: 25%; --hero-fade: 22%; }
.hero[style*="/resource-hero."] { --pos-y: 62%; --hero-fade: 22%; }
.hero[style*="/partners-hero."] { --pos-y: 26%; --hero-fade: 26%; }
img[src*="/students-laptop."] { object-position: 50% 15%; }
img[src*="/campus-peach."] { object-position: 55% 35%; }
img[src*="/campus-hero."] { object-position: 65% 15%; }
img[src*="/campus-courtyard."] { object-position: 55% 65%; }
img[src*="/guitar-lawn."] { object-position: 45% 45%; }
img[src*="/career-woman."] { object-position: 50% 15%; }
img[src*="/career-cv."] { object-position: 45% 15%; }
img[src*="/intl-group."] { object-position: 50% 40%; }
img[src*="/library-hero."] { object-position: 65% 20%; }
img[src*="/library-reader."] { object-position: 55% 35%; }
img[src*="/library-hub."] { object-position: 55% 55%; }
img[src*="/research-hero."] { object-position: 50% 25%; }
img[src*="/prog-cs."] { object-position: 40% 20%; }
img[src*="/fac-library."] { object-position: 50% 70%; }
img[src*="/fac-sports."] { object-position: 50% 60%; }
img[src*="/f-cs."] { object-position: 60% 50%; }
img[src*="/f-science."] { object-position: 50% 40%; }
img[src*="/f-health."] { object-position: 50% 60%; }
img[src*="/ev-convocation."] { object-position: 45% 25%; }
img[src*="/ev-football."] { object-position: 50% 40%; }
img[src*="/ev-symposium."] { object-position: 50% 30%; }
img[src*="/ev-workshop."] { object-position: 50% 30%; }
img[src*="/ev-orientation."] { object-position: 50% 15%; }
img[src*="/ev-dance."] { object-position: 50% 55%; }
img[src*="/ev-hackathon."] { object-position: 50% 35%; }
img[src*="/ev-careerfair."] { object-position: 50% 40%; }
img[src*="/ev-blood."] { object-position: 50% 45%; }
img[src*="/ev-summit."] { object-position: 35% 30%; }
img[src*="/ev-caps."] { object-position: 50% 25%; }
img[src*="/ev-study-group."] { object-position: 50% 60%; }
img[src*="/expo."] { object-position: 40% 20%; }
img[src*="/hack-winners."] { object-position: 50% 35%; }
img[src*="/ai-workshop."] { object-position: 40% 15%; }
img[src*="/admission-form."] { object-position: 60% 40%; }
img[src*="/news-group-students."] { object-position: 50% 15%; }
img[src*="/news-student-woman."] { object-position: 40% 15%; }
img[src*="/news-campus-group."] { object-position: 50% 35%; }
img[src*="/news-trophy."] { object-position: 65% 50%; }
img[src*="/press-ai-launch."] { object-position: 50% 70%; }
img[src*="/techfest-stage."] { object-position: 55% 35%; }
img[src*="/mou-signing."] { object-position: 50% 40%; }
img[src*="/handshake."] { object-position: 55% 65%; }
img[src*="/passport."] { object-position: 55% 50%; }
img[src*="/memorial."] { object-position: 50% 55%; }
img[src*="/notice-exam."] { object-position: 50% 45%; }
img[src*="/rc-ai."] { object-position: 40% 40%; }
img[src*="/rc-green."] { object-position: 60% 60%; }
img[src*="/rc-robotics."] { object-position: 55% 30%; }
img[src*="/digital-library."] { object-position: 35% 50%; }
img[src*="/calculator."] { object-position: 60% 45%; }
img[src*="/grad-cap."] { object-position: 60% 40%; }
img[src*="/leader-"], img[src*="/alumni-"], img[src*="/faculty-"] { object-position: 50% 12%; }
img[src*="/tf-laptop."] { object-position: 55% 10%; }
img[src*="/tf-seminar."] { object-position: 50% 45%; }
img[src*="/research-expo."] { object-position: 45% 15%; }
img[src*="/symposium-speaker."] { object-position: 50% 12%; }
img[src*="/career-talk."] { object-position: 50% 30%; }
img[src*="/rc-aidsc-lab."] { object-position: 55% 12%; }
img[src*="/rc-overview."] { object-position: 50% 30%; }
img[src*="/rc-health."] { object-position: 50% 25%; }
img[src*="/rc-sustain."] { object-position: 50% 65%; }
img[src*="/rc-business."] { object-position: 50% 25%; }
img[src*="/rc-social."] { object-position: 50% 30%; }
img[src*="/cover-"] { object-position: 50% 0; }

/* Keep the home text clear of the university name on the photo. */
@media (min-width: 961px) and (max-width: 1240px) {
    .hero-points { max-width: 460px; }
}
@media (min-width: 961px) and (max-width: 1100px) {
    .hero-home { --hero-fade: 66%; }
    .hero-home h1 { max-width: 500px; }
    .hero-home p { max-width: 420px; }
}

/* Tablets keep the side photo, with room for the text beside it. */
@media (min-width: 641px) and (max-width: 960px) {
    .hero-in { min-height: 210px; }
    .hero h1 { max-width: 420px; }
    .hero p { max-width: 350px; }
}

/* Small screens: the photo gets its own band above the text, so nothing has to be dimmed behind words. */
@media (max-width: 640px) {
    .hero:not(.hero-home) { background-image: none; }
    .hero:not(.hero-home)::before { content: ''; display: block; height: 46vw; background: linear-gradient(0deg, var(--footer), transparent 28%), var(--img-sm, var(--img)) var(--pos-x, 50%) var(--pos-y, 40%) / cover no-repeat; }
    .hero:not(.hero-home) .hero-in { min-height: 0; padding-block: 2px 22px; }
    .hero:not(.hero-home) h1, .hero:not(.hero-home) p { max-width: none; }
}
@media (max-width: 960px) {
    .hero-home { background-image: none; }
    .hero-home::before { content: ''; display: block; height: min(50vw, 340px); background: linear-gradient(0deg, var(--footer), transparent 28%), var(--img-sm, var(--img)) var(--pos-x, 50%) var(--pos-y, 40%) / cover no-repeat; }
    .hero-home .hero-in { min-height: 0; padding-block: 2px 26px; }
    .hero-home h1, .hero-home p { max-width: 640px; }
}

.card-top-img { width: 100%; height: 190px; object-fit: cover; }

/* When a photo goes full width, keep its shape instead of squeezing it into a short strip. */
@media (max-width: 960px) {
    .card-top-img { height: auto; aspect-ratio: 16 / 9; max-height: 340px; }
    .photo-frame { height: auto; min-height: 0 !important; aspect-ratio: 16 / 9; max-height: 400px; width: 100%; }
    .photo { height: auto !important; aspect-ratio: 16 / 9; max-height: 340px; }
    .img-card > img, .img-wrap > img { height: auto; aspect-ratio: 16 / 9; }
    .leaders .img-card > img { aspect-ratio: 1; }
    .split > .result-img, .result-right .result-img { height: auto !important; aspect-ratio: 16 / 9; max-height: 320px; }
    .gallery-a img, .gallery-b img, .is-filtered .gallery-a img, .is-filtered .gallery-b img { height: auto; aspect-ratio: 4 / 3; }
    .gallery-a > :first-child { height: auto; aspect-ratio: 16 / 9; }
    .is-filtered .gallery-a > :first-child { aspect-ratio: 4 / 3; }
    .view-list .list-layout .img-card > img, .view-list .list-layout .img-wrap > img { aspect-ratio: auto; height: 100%; }
}
@media (max-width: 620px) {
    .leaders .img-card > img { width: 92px; height: 92px; }
}

/* New pages: job application, fee calculator, book details, portal guides, portal sections, virtual tour, media kit */
@media (max-width: 1140px) {
    .job-layout { grid-template-columns: 250px minmax(0, 1fr); }
    .job-side { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .job-side .step-menu { display: none; }
    .book-layout { grid-template-columns: minmax(0, 1fr); }
    .book-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .book-head { grid-template-columns: 160px minmax(0, 1fr); }
    .book-avail { grid-column: 1 / -1; }
    .guide-layout { grid-template-columns: 200px minmax(0, 1fr); }
    .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-grid > :last-child { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guide-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .media-lower { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .media-lower > :first-child { grid-column: 1 / -1; }
    .sections-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-how { grid-template-columns: 140px minmax(0, 1fr); }
    .portal-how > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
    .job-layout { grid-template-columns: minmax(0, 1fr); }
    .job-side { display: contents; }
    .job-side > :first-child { order: -1; }
    .job-form { order: 0; }
    .job-details { order: 1; }
    .job-side > :last-child { order: 2; }
    .guide-layout { grid-template-columns: minmax(0, 1fr); }
    .guide-menu { display: none; }
    .guide-intro { grid-template-columns: minmax(0, 1fr); }
    .tour-layout { grid-template-columns: minmax(0, 1fr); }
    .tour-start { display: flex; }
    .sections-layout { --cols: minmax(0, 1fr); }
    .sections-grid { grid-template-columns: minmax(0, 1fr); }
    .book-lower { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
    .stepper { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .stepper li:not(:last-child)::after { left: 14px; right: auto; top: 30px; bottom: -14px; width: 2px; height: auto; }
    .stepper button { display: flex; align-items: center; gap: 12px; font-size: 14px; text-align: left; }
    .job-actions .btn { flex: 1 1 120px; min-width: 0; padding-inline: 10px; white-space: nowrap; }
    .media-res svg.lucide.ic-xs { display: none; }
    .job-side > :first-child { display: flex; }
    .fee-table th, .fee-table td { padding-inline: 8px; font-size: 13.5px; }
    .fee-table tfoot td { font-size: 18px; }
    .book-head { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
    .book-head > div:nth-child(2) { display: contents; }
    .book-head .article-title, .book-head .article-title ~ p, .book-head .article-title ~ .row { grid-column: 2; margin: 0; }
    .book-head > .book-cover { grid-row: 1 / span 3; }
    .book-kv { grid-column: 1 / -1; }
    .book-aside { grid-template-columns: minmax(0, 1fr); }
    .book-tabs .tab { padding-inline: 12px; }
    .guide-grid, .guide-grid > :last-child { grid-template-columns: minmax(0, 1fr); }
    .guide-grid > * { grid-column: auto !important; }
    .guide-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .guide-tiles .tile { padding-inline: 4px; font-size: 12px; }
    .portal-how { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 10px; }
    .portal-how img { max-width: 180px; margin-inline: auto; }
    .portal-how .btn { flex: 1 1 100%; justify-content: center; }
    .tour-stage { aspect-ratio: 4 / 3; }
    .tour-strip-wrap { display: none; }
    .tour-360 { top: 50%; font-size: 26px; padding: 8px 20px; }
    .media-lower { grid-template-columns: minmax(0, 1fr); }
    .media-lower > :first-child { grid-column: auto; }
    .usage-band { grid-template-columns: auto minmax(0, 1fr); padding: 14px; gap: 10px 12px; }
    .usage-band p { grid-column: 1 / -1; padding-left: 0; border: 0; }
}
/* The last menu's dropdown opens leftwards when the header fills the window, so it can't widen the page. */
@media (min-width: 961px) and (max-width: 1140px) {
    .nav-item:last-of-type .nav-drop { left: auto; right: 0; }
}

/* Last four pages: admission form, album, resource details, partners */
@media (max-width: 1240px) {
    .admission-layout { grid-template-columns: 240px minmax(0, 1fr); }
    .album-thumbs .thumb-more span { font-size: 0; }
    .album-thumbs .thumb-more b { font-size: 18px; }
    .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .resource-layout { grid-template-columns: 200px minmax(0, 1fr); }
    .resource-layout > aside:last-child { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 960px) {
    .admission-layout { grid-template-columns: minmax(0, 1fr); }
    .admission-side { order: 2; }
    .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .partner-tools { max-width: none; }
    .resource-layout > aside:last-child { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .resource-layout { grid-template-columns: minmax(0, 1fr); }
    .resource-left { grid-template-columns: 120px minmax(0, 1fr); }
    .resource-left .btn, .resource-left .form-note { grid-column: 1 / -1; }
    .resource-status { align-self: start; }
    .partner-stats { padding: 12px; gap: 12px; }
    .partner-stats > * + * { padding-left: 0; border-left: 0; }
}
@media (max-width: 620px) {
    .album-stage { aspect-ratio: 4 / 3; }
    .album-nav { width: 34px; height: 34px; margin-top: -17px; }
    .album-prev { left: 10px; }
    .album-next { right: 10px; }
    .album-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .album-thumbs button:nth-child(n+4):not(.thumb-more) { display: none; }
    .album-about { grid-template-columns: minmax(0, 1fr); }
    .album-zip { justify-content: center; }
    .topic-list { grid-template-columns: minmax(0, 1fr); }
    .related-covers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .partner-tools { flex-direction: column; align-items: stretch; flex-basis: 100%; }
    .partner-tools .cs { width: 100% !important; }
    .partner-grid { grid-template-columns: minmax(0, 1fr); }
    .partner-logo { height: 40px; }
    .partner-stats strong { font-size: 20px; }
    .partner-stats span { font-size: 12px; }
    .partner-stats svg.lucide.ic { width: 28px; height: 28px; }
    .partner-cta { grid-template-columns: minmax(0, 1fr); justify-items: start; padding: 16px; }
}
