/*
 * UFM Library — Scientific Knowledge Interface
 * Layers: tokens → layout → components → utilities → responsive → dark mode.
 */
:root {
  --sci-blue: #0868f2;
  --sci-blue-deep: #003b86;
  --sci-cyan: #12aee8;
  --sci-emerald: #07977e;
  --sci-navy: #071d38;
  --sci-text: #18344f;
  --sci-muted: #627a93;
  --sci-bg: #ffffff;
  --sci-wash: #f4f8fc;
  --sci-surface: #ffffff;
  --sci-line: #d8e5f1;
  --sci-line-strong: #b9d0e4;
  --sci-shadow: 0 18px 46px rgba(9, 52, 98, .08);
  --sci-radius: 18px;
  --sci-max: 1280px;
  --blue: var(--sci-blue);
  --blue-700: #0757c9;
  --blue-soft: #eaf4ff;
  --ink: var(--sci-navy);
  --text: var(--sci-text);
  --muted: var(--sci-muted);
  --line: var(--sci-line);
  --line-strong: var(--sci-line-strong);
  --bg: var(--sci-bg);
  --surface: var(--sci-surface);
  --surface-2: var(--sci-wash);
  --max: var(--sci-max);
  --header-h: 76px;
}

:root[data-theme="dark"] {
  --sci-blue: #3c9cff;
  --sci-blue-deep: #8ec9ff;
  --sci-cyan: #44d4ff;
  --sci-emerald: #4bd3bb;
  --sci-navy: #f3f8ff;
  --sci-text: #d7e5f3;
  --sci-muted: #91a8bf;
  --sci-bg: #05111f;
  --sci-wash: #091929;
  --sci-surface: #0b1b2c;
  --sci-line: #193a57;
  --sci-line-strong: #285372;
  --sci-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  --blue: var(--sci-blue);
  --blue-700: #8ec9ff;
  --blue-soft: #0d2b48;
  --ink: var(--sci-navy);
  --text: var(--sci-text);
  --muted: var(--sci-muted);
  --line: var(--sci-line);
  --line-strong: var(--sci-line-strong);
  --bg: var(--sci-bg);
  --surface: var(--sci-surface);
  --surface-2: var(--sci-wash);
}

html { background: var(--sci-bg); }
body { overflow-x: clip; background: var(--sci-bg); color: var(--sci-text); font-family: Inter, Geist, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--sci-blue) 36%, transparent); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Shared scientific substrate */
.science-grid,
.science-hero::after,
.knowledge-section::before,
.site-footer::before {
  background-image: linear-gradient(color-mix(in srgb, var(--sci-blue) 8%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--sci-blue) 8%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
}
.science-section { width: min(var(--sci-max), calc(100% - 48px)); margin-inline: auto; }
.mobile-menu-toggle { display: none; }

/* Header */
.site-header { height: var(--header-h); background: color-mix(in srgb, var(--sci-bg) 94%, transparent); border-bottom: 1px solid var(--sci-line); backdrop-filter: blur(16px) saturate(130%); }
.header-inner { max-width: var(--sci-max); padding-inline: 24px; }
.brand { gap: 12px; }
.brand img { width: 188px; max-height: 48px; object-fit: contain; }
.brand-divider { height: 34px; background: var(--sci-line); }
.brand-copy { color: var(--sci-muted); font-size: 11px; line-height: 1.2; letter-spacing: .01em; font-weight: 650; }
.top-nav { height: 100%; gap: 2px; }
.top-nav > a { position: relative; min-height: 44px; border: 0; border-radius: 0; padding: 12px 13px; color: var(--sci-text); font-size: 13px; font-weight: 650; }
.top-nav > a::after { position: absolute; right: 13px; bottom: 2px; left: 13px; height: 2px; background: var(--sci-blue); transform: scaleX(0); transform-origin: center; transition: transform .22s ease; content: ""; }
.top-nav > a:hover, .top-nav > a.is-active { background: transparent; color: var(--sci-blue-deep); }
.top-nav > a:hover::after, .top-nav > a.is-active::after { transform: scaleX(1); }
.nav-icon-button { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--sci-navy); cursor: pointer; }
.nav-icon-button:hover { background: var(--sci-wash); color: var(--sci-blue); }
.nav-icon-button svg { width: 18px; height: 18px; stroke-width: 2; }

/* Hero */
.science-hero { position: relative; overflow: hidden; min-height: 570px; border-bottom: 1px solid var(--sci-line); background: var(--sci-bg); }
.science-hero::after { position: absolute; inset: 0; opacity: .55; mask-image: linear-gradient(to bottom, #000 0, transparent 72%); pointer-events: none; content: ""; }
.science-grid { position: absolute; inset: 0; opacity: .38; pointer-events: none; }
.science-grid::before { position: absolute; inset: 60px 8% auto auto; width: 280px; height: 180px; border-top: 1px solid color-mix(in srgb, var(--sci-blue) 32%, transparent); border-right: 1px solid color-mix(in srgb, var(--sci-blue) 32%, transparent); clip-path: polygon(0 30%, 34% 30%, 34% 0, 100% 0, 100% 100%, 72% 100%, 72% 72%, 0 72%); content: ""; }
.hero-canvas { position: relative; z-index: 1; width: min(var(--sci-max), calc(100% - 48px)); height: 470px; margin-inline: auto; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; }
.hero-copy { position: relative; z-index: 2; max-width: 640px; padding: 42px 0 34px; }
.hero-kicker { width: fit-content; margin: 0 0 17px; padding: 4px 8px; border: 1px solid color-mix(in srgb, var(--sci-blue) 28%, transparent); color: var(--sci-blue); font-size: 10px; line-height: 1; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.hero-copy h1 { margin: 0; color: var(--sci-navy); font-size: clamp(50px, 5.2vw, 76px); line-height: .98; letter-spacing: -.058em; text-wrap: balance; }
.hero-copy h1 span { color: var(--sci-blue); }
.hero-lead { margin: 20px 0 25px; color: var(--sci-text); font-size: 15px; line-height: 1.62; }
.hero-search { position: relative; width: min(590px, 100%); min-height: 58px; display: grid; grid-template-columns: 22px minmax(0, 1fr) 48px; align-items: center; gap: 10px; padding: 5px 5px 5px 18px; border: 1px solid var(--sci-line-strong); border-radius: 12px; background: var(--sci-surface); box-shadow: 0 14px 36px rgba(5, 71, 148, .11); }
.hero-search::after { position: absolute; inset: -1px; border: 1px solid transparent; border-radius: inherit; pointer-events: none; transition: border-color .2s ease, box-shadow .2s ease; content: ""; }
.hero-search:focus-within::after { border-color: var(--sci-blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sci-blue) 12%, transparent); }
.hero-search > svg { width: 20px; color: var(--sci-muted); }
.hero-search input { min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; color: var(--sci-navy); font-size: 14px; cursor: text; }
.hero-search input::placeholder { color: var(--sci-muted); opacity: 1; }
.hero-search button { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 9px; background: var(--sci-blue); color: #fff; cursor: pointer; }
.hero-search button:hover { background: #0058d8; }
.hero-search button svg { width: 19px; }
.search-prompts { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 12px; color: var(--sci-muted); font-size: 11px; }
.search-prompts button { min-height: 29px; padding: 5px 10px; border: 1px solid var(--sci-line); border-radius: 999px; background: var(--sci-wash); color: var(--sci-text); font-size: 11px; cursor: pointer; }
.search-prompts button:hover { border-color: var(--sci-blue); color: var(--sci-blue-deep); }
.hero-architecture { position: absolute; z-index: 0; top: 0; right: -7%; bottom: 0; width: 68%; overflow: hidden; }
.hero-architecture::before { position: absolute; inset: 0; background: linear-gradient(90deg, var(--sci-bg) 0%, transparent 27%), linear-gradient(0deg, var(--sci-bg) 0%, transparent 22%), url('../img/library-campus-science.webp') 58% center / cover no-repeat; content: ""; }
.hero-quote { position: absolute; z-index: 1; right: 9%; bottom: 50px; padding-left: 16px; border-left: 2px solid var(--sci-blue); color: #fff; font-size: 15px; line-height: 1.25; text-shadow: 0 1px 8px rgba(0, 30, 70, .45); }
.hero-quote strong { display: inline-block; margin-top: 5px; font-size: 21px; }
.hero-path { position: relative; z-index: 3; width: min(var(--sci-max), calc(100% - 48px)); height: 100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--sci-bg); }
.hero-path a { position: relative; min-width: 0; display: grid; grid-template-columns: 42px 26px minmax(0, 1fr); grid-template-rows: 24px 20px; align-content: center; gap: 0 8px; padding: 16px 24px; border-right: 1px solid var(--sci-line); color: var(--sci-text); text-decoration: none; }
.hero-path a:first-child { border-left: 1px solid var(--sci-line); }
.hero-path a > span { grid-row: 1 / 3; align-self: center; color: color-mix(in srgb, var(--sci-blue) 36%, var(--sci-muted)); font-size: 25px; font-weight: 300; }
.hero-path a > svg { width: 22px; height: 22px; color: var(--sci-blue); }
.hero-path a strong { align-self: center; color: var(--sci-navy); font-size: 13px; }
.hero-path a small { grid-column: 2 / 4; color: var(--sci-muted); font-size: 10px; }
.hero-path a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--sci-blue); transform: scaleX(0); transition: transform .2s ease; content: ""; }
.hero-path a:hover::after { transform: scaleX(1); }

/* Section headings and common guides */
.common-guides { padding: 70px 0 64px; background: var(--sci-bg); }
.science-heading { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(260px, 1fr) auto; align-items: end; gap: 22px; margin-bottom: 28px; }
.science-heading > div { display: flex; align-items: center; gap: 10px; }
.science-heading > div > span { color: var(--sci-blue); font-size: 24px; font-weight: 300; }
.science-heading h2 { margin: 0; color: var(--sci-navy); font-size: clamp(28px, 3vw, 39px); line-height: 1.06; letter-spacing: -.035em; }
.science-heading > p { margin: 0; color: var(--sci-muted); font-size: 13px; }
.science-heading > a { display: inline-flex; align-items: center; gap: 7px; color: var(--sci-blue); font-size: 12px; font-weight: 760; text-decoration: none; }
.knowledge-count { color: var(--sci-blue); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.guide-rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--sci-line); border-bottom: 1px solid var(--sci-line); }
.guide-rail-item { position: relative; min-width: 0; min-height: 205px; display: flex; flex-direction: column; padding: 24px 18px; border-right: 1px solid var(--sci-line); color: var(--sci-text); text-decoration: none; transition: background .2s ease, transform .2s ease; }
.guide-rail-item:first-child { border-left: 1px solid var(--sci-line); }
.guide-rail-item > span { width: 39px; height: 39px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 10px; background: var(--sci-wash); color: var(--sci-blue); }
.guide-rail-item > span svg { width: 20px; }
.guide-rail-item strong { color: var(--sci-navy); font-size: 15px; line-height: 1.3; }
.guide-rail-item small { margin-top: 7px; color: var(--sci-muted); font-size: 11px; line-height: 1.5; }
.guide-rail-item > i, .guide-rail-item > svg:last-child { position: absolute; right: 15px; bottom: 15px; width: 15px; color: var(--sci-muted); opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.guide-rail-item:hover { z-index: 1; background: var(--sci-wash); transform: translateY(-3px); }
.guide-rail-item:hover > svg:last-child { opacity: 1; transform: translate(2px, -2px); }

/* Knowledge map */
.knowledge-section { position: relative; overflow: hidden; padding: 72px 0 88px; border-top: 1px solid var(--sci-line); background: var(--sci-wash); }
.knowledge-section::before { position: absolute; inset: 0; opacity: .5; mask-image: linear-gradient(90deg, #000, transparent 70%); content: ""; }
.knowledge-section .science-section { position: relative; z-index: 1; }
.knowledge-map { min-height: 500px; display: grid; grid-template-columns: 310px minmax(0, 1fr); border-top: 1px solid var(--sci-line-strong); border-bottom: 1px solid var(--sci-line-strong); background: color-mix(in srgb, var(--sci-bg) 90%, transparent); }
.knowledge-nav { position: relative; padding: 18px 0; border-right: 1px solid var(--sci-line-strong); }
.knowledge-nav::before { position: absolute; top: 48px; bottom: 48px; left: 29px; width: 1px; background: var(--sci-line-strong); content: ""; }
.knowledge-nav-item { position: relative; width: 100%; min-height: 76px; display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 18px 8px 0; border: 0; background: transparent; color: var(--sci-muted); text-align: left; cursor: pointer; }
.knowledge-nav-item::after { position: absolute; right: -1px; top: 18px; bottom: 18px; width: 2px; background: var(--sci-blue); transform: scaleY(0); transition: transform .2s ease; content: ""; }
.knowledge-node { position: relative; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; justify-self: center; border: 1px solid var(--sci-line-strong); border-radius: 50%; background: var(--sci-bg); color: var(--sci-muted); transition: color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.knowledge-node svg { width: 16px; height: 16px; }
.knowledge-nav-item strong { display: block; font-size: 13px; }
.knowledge-nav-item small { display: block; margin-top: 3px; font-size: 10px; }
.knowledge-nav-item:hover, .knowledge-nav-item.is-active { color: var(--sci-blue-deep); }
.knowledge-nav-item.is-active::after { transform: scaleY(1); }
.knowledge-nav-item.is-active .knowledge-node { border-color: var(--sci-blue); color: var(--sci-blue); box-shadow: 0 0 0 5px color-mix(in srgb, var(--sci-blue) 10%, transparent); }
.knowledge-stage { min-width: 0; padding: 34px 38px; }
.knowledge-panel > header { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; padding-bottom: 23px; border-bottom: 1px solid var(--sci-line); }
.knowledge-panel > header > span { color: var(--sci-blue); font-size: 28px; line-height: 1; font-weight: 300; }
.knowledge-panel h3 { margin: 0; color: var(--sci-navy); font-size: 24px; line-height: 1.1; }
.knowledge-panel header p { margin: 6px 0 0; color: var(--sci-muted); font-size: 12px; }
.knowledge-articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.knowledge-articles a { position: relative; min-width: 0; min-height: 140px; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-content: start; gap: 7px 9px; padding: 19px 18px; border-right: 1px solid var(--sci-line); border-bottom: 1px solid var(--sci-line); color: var(--sci-text); text-decoration: none; }
.knowledge-articles a:nth-child(3n) { border-right: 0; }
.knowledge-articles a > span { grid-row: 1 / 3; color: var(--sci-blue); font-size: 11px; font-weight: 800; }
.knowledge-articles a strong { color: var(--sci-navy); font-size: 13px; line-height: 1.35; }
.knowledge-articles a small { grid-column: 2; color: var(--sci-muted); font-size: 10px; line-height: 1.45; }
.knowledge-articles a > svg { position: absolute; right: 12px; bottom: 12px; width: 14px; color: var(--sci-blue); opacity: 0; transform: translateX(-4px); transition: .2s ease; }
.knowledge-articles a:hover { background: color-mix(in srgb, var(--sci-blue) 5%, transparent); }
.knowledge-articles a:hover > svg { opacity: 1; transform: translateX(0); }
.knowledge-mobile { display: none; }

/* Closing panel and footer */
.knowledge-closing { padding: 72px 0; background: #061a30; color: #d9e9f8; }
.closing-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; border: 1px solid #173e60; }
.closing-quote { min-height: 260px; padding: 38px; border-right: 1px solid #173e60; background-image: radial-gradient(circle at 85% 15%, rgba(29, 144, 255, .22), transparent 32%), linear-gradient(rgba(26, 93, 145, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(26, 93, 145, .18) 1px, transparent 1px); background-size: auto, 24px 24px, 24px 24px; }
.closing-quote > svg { width: 30px; color: var(--sci-cyan); }
.closing-quote p { max-width: 470px; margin: 26px 0 18px; color: #f1f7fd; font-size: clamp(24px, 3vw, 36px); line-height: 1.18; letter-spacing: -.035em; }
.closing-quote span { color: #72bdfd; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.closing-stats { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.closing-stats > div { min-height: 180px; display: grid; justify-items: center; align-content: center; padding: 22px; border-right: 1px solid #173e60; text-align: center; }
.closing-stats > div:last-child { border-right: 0; }
.closing-stats svg { width: 26px; color: var(--sci-cyan); }
.closing-stats strong { margin-top: 12px; color: #fff; font-size: 28px; line-height: 1; }
.closing-stats span { margin-top: 8px; color: #8faec7; font-size: 11px; }
.science-tip { position: relative; grid-column: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 18px; padding: 22px 28px; border-top: 1px solid #173e60; }
.science-tip > div { display: flex; align-items: center; gap: 8px; color: #65caff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.science-tip > div svg { width: 17px; }
.science-tip p { grid-column: 1; margin: 0; color: #d9e9f8; font-size: 13px; }
.science-tip a { grid-column: 1; width: fit-content; display: inline-flex; align-items: center; gap: 7px; color: #68c8ff; font-size: 12px; font-weight: 750; text-decoration: none; }
.science-tip button { grid-column: 2; grid-row: 1 / 4; align-self: center; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #214d70; border-radius: 50%; background: transparent; color: #68c8ff; cursor: pointer; }
.science-tip button svg { width: 17px; }
.site-footer { position: relative; overflow: hidden; padding: 0; border-top: 0; background: var(--sci-bg); }
.site-footer::before { position: absolute; inset: 0; opacity: .5; content: ""; }
.site-footer .footer-inner { position: relative; z-index: 1; width: min(var(--sci-max), calc(100% - 48px)); min-height: 360px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 30px; margin: auto; padding: 55px 0 34px; }
.footer-brand strong { color: var(--sci-navy); font-size: 31px; letter-spacing: -.035em; }
.footer-brand > p { margin: 6px 0 25px; color: var(--sci-text); font-size: 15px; }
.footer-social { display: flex; align-items: center; gap: 10px; }
.footer-social a { min-width: 68px; min-height: 70px; display: grid; place-items: center; align-content: center; gap: 7px; color: var(--sci-blue); font-size: 10px; text-decoration: none; }
.footer-social a:hover { background: var(--sci-wash); }
.footer-social svg { width: 22px; height: 22px; }
.footer-campus { align-self: stretch; background: linear-gradient(90deg, var(--sci-bg), transparent 32%), linear-gradient(0deg, var(--sci-bg), transparent 34%), url('../img/library-campus-science.webp') 68% center / cover no-repeat; opacity: .8; }
.site-footer .site-credit { grid-column: 1 / -1; width: 100%; margin: 0 !important; padding-top: 16px; border-top: 1px solid var(--sci-line); color: var(--sci-muted); font-size: 11px; }

/* Search modal */
.search-is-open { overflow: hidden; }
.search-modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 32px 18px; background: rgba(2, 15, 30, .74); backdrop-filter: blur(10px); }
.search-modal-panel { width: min(760px, 100%); max-height: min(760px, calc(100dvh - 64px)); overflow: hidden; display: flex; flex-direction: column; margin: 0; border: 1px solid #285678; border-radius: 17px; background: #061a30; box-shadow: 0 30px 100px rgba(0, 0, 0, .45); color: #dcebf8; }
.search-modal-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 23px 24px 16px; }
.search-modal-head p { margin: 0 0 4px; color: #66c9ff; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.search-modal-head h2 { margin: 0; color: #fff; font-size: 25px; letter-spacing: -.03em; }
.search-modal-head button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #8badc7; cursor: pointer; }
.search-modal-head button:hover { background: #102d47; color: #fff; }
.modal-search-form { min-height: 58px; display: grid; grid-template-columns: 22px minmax(0, 1fr) 48px; align-items: center; gap: 10px; margin: 0 24px; padding: 4px 4px 4px 17px; border: 1px solid #3b6c90; border-radius: 11px; background: #fff; }
.modal-search-form > svg { width: 20px; color: #64809a; }
.modal-search-form input { min-width: 0; height: 46px; border: 0; outline: 0; background: #fff; color: #09213d; font-size: 14px; }
.modal-search-form button { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 8px; background: #0874ff; color: #fff; cursor: pointer; }
.modal-search-form button svg { width: 18px; }
.search-filter-row { display: flex; gap: 7px; overflow-x: auto; padding: 14px 24px; scrollbar-width: thin; }
.search-filter-row button { flex: 0 0 auto; min-height: 34px; padding: 7px 12px; border: 1px solid #234967; border-radius: 999px; background: #0a2137; color: #a8bfd2; font-size: 11px; font-weight: 700; cursor: pointer; }
.search-filter-row button.is-active { border-color: #fff; background: #fff; color: #0a2137; }
.modal-search-results { min-height: 180px; overflow: auto; margin: 0 24px; border: 1px solid #1c405d; border-radius: 12px; background: #fff; }
.modal-search-results > a { min-height: 78px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 26px; gap: 13px; align-items: center; padding: 12px 14px; border-bottom: 1px solid #e3ecf3; color: #19354f; text-decoration: none; }
.modal-search-results > a:last-child { border-bottom: 0; }
.modal-search-results > a:hover, .modal-search-results > a[aria-selected="true"] { background: #eef6ff; }
.search-result-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: #eaf4ff; color: #0868f2; }
.search-result-icon svg { width: 18px; }
.search-result-copy { min-width: 0; display: grid; gap: 2px; }
.search-result-copy small { color: #668096; font-size: 9px; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.search-result-copy strong { overflow: hidden; color: #0b2540; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.search-result-copy span { overflow: hidden; color: #6a8093; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.search-result-copy mark { padding: 0 1px; background: #cfeaff; color: #0056b6; }
.modal-search-results > a > b { color: #8aa0b4; font-size: 11px; }
.search-no-result { min-height: 190px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 30px; color: #6b8195; text-align: center; }
.search-no-result svg { width: 27px; color: #1687f5; }
.search-no-result strong { color: #173550; font-size: 14px; }
.search-no-result span { font-size: 12px; }
.search-all-link { width: fit-content; display: inline-flex; align-items: center; gap: 7px; margin: 16px 24px 20px; color: #69c8ff; font-size: 12px; font-weight: 750; text-decoration: none; }

/* Home feedback popup */
.feedback-is-open { overflow: hidden; }
.feedback-float-trigger { position: fixed; right: 24px; bottom: 24px; z-index: 250; min-height: 48px; display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 13px; border: 1px solid #176ce4; border-radius: 999px; background: #096ded; box-shadow: 0 14px 32px rgba(5, 67, 150, .28); color: #fff; font-family: inherit; font-size: 13px; font-weight: 780; cursor: pointer; }
.feedback-float-trigger svg { width: 19px; height: 19px; }
.feedback-float-trigger:hover { background: #075fcf; transform: translateY(-2px); }
.feedback-popup { position: fixed; inset: 0; z-index: 520; display: grid; place-items: center; padding: 28px 18px; background: rgba(2, 15, 30, .74); backdrop-filter: blur(10px); }
.feedback-popup[hidden] { display: none; }
.feedback-popup-panel { width: min(520px, 100%); max-height: calc(100dvh - 56px); overflow: auto; border: 1px solid #285678; border-radius: 18px; background: #fff; box-shadow: 0 30px 100px rgba(0, 0, 0, .42); }
.feedback-popup-head { display: flex; justify-content: space-between; gap: 18px; padding: 20px 22px 16px; border-bottom: 1px solid #d9e6f1; background: #061a30; color: #fff; }
.feedback-popup-head > div { display: flex; min-width: 0; align-items: center; gap: 12px; }
.feedback-popup-mark { width: 40px; height: 40px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 12px; background: #0c4c93; color: #7bd4ff; }
.feedback-popup-mark svg { width: 22px; height: 22px; }
.feedback-popup-head p { margin: 0 0 3px; color: #7bd4ff; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.feedback-popup-head h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.feedback-popup-head > button { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #a4c2da; cursor: pointer; }
.feedback-popup-head > button:hover { background: #103450; color: #fff; }
.feedback-popup-head > button svg { width: 20px; }
.feedback-popup-body { display:grid; gap:12px; padding: 20px 22px 22px; }
.feedback-popup-lead { margin: 0 0 6px; color: var(--sci-muted); font-size: 14px; line-height: 1.55; }
.feedback-popup form { display: grid; gap: 8px; }
.feedback-popup label { color: var(--sci-navy); font-size: 12px; font-weight: 760; }
.feedback-popup label span { color: #cc3051; }
.feedback-popup label small { color: var(--sci-muted); font-size: 11px; font-weight: 500; }
.feedback-popup :is(select, input, textarea) { width: 100%; border: 1px solid #c3d7e8; border-radius: 9px; background: #fff; color: var(--sci-text); font: inherit; font-size: 14px; line-height: 1.45; }
.feedback-popup :is(select, input) { min-height: 42px; padding: 9px 11px; }
.feedback-popup textarea { min-height: 122px; padding: 11px; resize: vertical; }
.feedback-popup :is(select, input, textarea):focus { outline: 3px solid rgba(7, 116, 255, .15); border-color: #0874ff; }
.feedback-popup-note { display: flex; align-items: flex-start; gap: 7px; margin: 4px 0 2px; color: var(--sci-muted); font-size: 11px; line-height: 1.45; }
.feedback-popup-note svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--sci-blue); }
.feedback-popup-submit { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; border: 1px solid #0874ff; border-radius: 9px; background: #0874ff; color: #fff; font-family: inherit; font-size: 13px; font-weight: 780; text-decoration:none; cursor: pointer; }
.feedback-popup-submit:hover { background: #0560d4; }
.feedback-popup-submit svg { width: 17px; }
.feedback-popup-guide { display: inline-flex; width:max-content; align-items: center; gap: 6px; margin-top: 2px; color: var(--sci-blue-deep); font-size: 12px; font-weight: 740; text-decoration: none; }
.feedback-popup-guide:hover { color: var(--sci-blue); }
.feedback-popup-guide svg { width: 15px; }
.feedback-prepared { display: grid; justify-items: center; text-align: center; }
.feedback-prepared-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #def6ea; color: #08795f; }
.feedback-prepared-icon svg { width: 25px; height: 25px; }
.feedback-prepared h3 { margin: 13px 0 5px; color: var(--sci-navy); font-size: 21px; }
.feedback-prepared > p { max-width: 370px; margin: 0 0 15px; color: var(--sci-muted); font-size: 14px; line-height: 1.55; }
.feedback-prepared textarea { min-height: 145px; margin-bottom: 12px; text-align: left; }
.feedback-prepared-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
.feedback-prepared-actions :is(button, a) { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #b8cee0; border-radius: 9px; background: #fff; color: var(--sci-blue-deep); font: inherit; font-size: 12px; font-weight: 760; text-decoration: none; cursor: pointer; }
.feedback-prepared-actions a { border-color: #0874ff; background: #0874ff; color: #fff; }
.feedback-prepared-actions svg { width: 16px; }
.feedback-edit-button { margin-top: 14px; border: 0; background: transparent; color: var(--sci-muted); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }

/* Article reading surface */
.reading-progress { z-index: 150; height: 3px; background: linear-gradient(90deg, var(--sci-blue), var(--sci-cyan)); }
.guide-page { position: relative; max-width: none; padding: 32px 24px 96px; background: var(--sci-bg); }
.guide-page::before { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(color-mix(in srgb, var(--sci-blue) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--sci-blue) 5%, transparent) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(to bottom, #000, transparent 420px); pointer-events: none; content: ""; }
.guide-shell { position: relative; z-index: 1; max-width: var(--sci-max); grid-template-columns: 220px minmax(0, 760px) 210px; gap: 36px; }
.guide-category-nav, .guide-onpage { top: calc(var(--header-h) + 28px); }
.guide-category-nav { padding-right: 20px; border-right: 1px solid var(--sci-line); }
.side-eyebrow { color: var(--sci-blue); font-size: 9px; letter-spacing: .14em; }
.side-group-title { font-size: 18px; line-height: 1.25; }
.side-nav a { border-left: 1px solid var(--sci-line); border-radius: 0; padding: 10px 10px 10px 14px; color: var(--sci-muted); font-size: 12px; }
.side-nav a:hover { background: transparent; color: var(--sci-blue-deep); }
.side-nav a.is-active { border-left: 2px solid var(--sci-blue); background: color-mix(in srgb, var(--sci-blue) 5%, transparent); color: var(--sci-navy); }
.article-breadcrumb { overflow: hidden; display: flex; gap: 8px; align-items: center; margin-bottom: 34px; color: var(--sci-muted); font-size: 10px; white-space: nowrap; }
.article-breadcrumb a { color: var(--sci-blue-deep); text-decoration: none; }
.article-breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; }
.article-header { position: relative; max-width: 720px; padding-bottom: 32px; }
.article-index { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; color: var(--sci-muted); }
.article-index strong { color: var(--sci-blue); font-size: 22px; font-weight: 520; }
.article-index span { font-size: 11px; }
.article-meta { margin: 0 0 8px; color: var(--sci-blue-deep); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.article-header h1 { max-width: 680px; font-size: clamp(42px, 5vw, 67px); line-height: 1.01; letter-spacing: -.052em; }
.article-header > p { max-width: 650px; margin-top: 16px; color: var(--sci-muted); font-size: 16px; }
.article-header-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.article-guide-cta, .article-share { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px; border: 1px solid var(--sci-blue); border-radius: 8px; background: var(--sci-blue); color: #fff; font-size: 12px; font-weight: 760; text-decoration: none; cursor: pointer; }
.article-share { border-color: var(--sci-line-strong); background: var(--sci-bg); color: var(--sci-blue-deep); }
.article-body { max-width: 70ch; padding-top: 18px; border-top: 1px solid var(--sci-line); color: var(--sci-text); font-size: 16px; line-height: 1.78; }
.article-body > p:first-child { color: var(--sci-text); font-size: 18px; line-height: 1.7; }
.article-body h2 { scroll-margin-top: calc(var(--header-h) + 30px); margin-top: 54px; padding-top: 14px; border-top: 1px solid var(--sci-line); color: var(--sci-navy); font-size: 29px; letter-spacing: -.025em; }
.article-body h3 { color: var(--sci-navy); font-size: 21px; }
.guide-onpage { padding-left: 18px; border-left: 1px solid var(--sci-line); }
.guide-onpage > p { color: var(--sci-navy); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.guide-onpage a { padding: 8px 0 8px 10px; border-left: 1px solid var(--sci-line); color: var(--sci-muted); font-size: 11px; line-height: 1.4; }
.guide-onpage a.is-active { border-left: 2px solid var(--sci-blue); color: var(--sci-blue-deep); transform: translateX(0); }
.article-pager { border-top: 1px solid var(--sci-line); }
.article-pager a { border: 1px solid var(--sci-line); border-radius: 10px; background: transparent; }
.guide-flow { position: relative; z-index: 1; }
.guide-current-step { border-radius: 16px; box-shadow: none; }

/* Search page */
.search-page { min-height: 70vh; background: var(--sci-wash); }
.search-page h1 { color: var(--sci-navy); font-size: clamp(42px, 6vw, 68px); letter-spacing: -.05em; }
.search-form-page { border-radius: 11px; background: var(--sci-bg); box-shadow: var(--sci-shadow); }
.result-list { border-top: 1px solid var(--sci-line); }
.result-item { border-radius: 0; border-width: 0 0 1px; background: transparent; box-shadow: none; }
.result-item:hover { background: var(--sci-bg); }

/* Motion */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.knowledge-panel.is-active { animation: science-panel-in .32s cubic-bezier(.22,1,.36,1) both; }
@keyframes science-panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Targeted reading-surface refinements */
.guide-shell { max-width: min(1360px, calc(100% - 48px)); grid-template-columns: 210px minmax(0, 880px) 190px; gap: 28px; }
.article-header, .article-body { max-width: none; }
.kb-db-hub { width: 100%; margin: 0 0 42px; }
.kb-db-intro { gap: 28px; padding: 30px 32px 22px; }
.kb-db-panel { padding: 32px; }
.kb-db-media { margin: 24px 0; }
.kb-db-media-placeholder { min-height: 154px; display: grid; place-items: center; align-content: center; gap: 8px; border: 1px dashed var(--sci-line-strong); border-radius: 14px; background: linear-gradient(135deg, var(--sci-wash), var(--sci-bg)); color: var(--sci-blue); text-align: center; }
.kb-db-media-placeholder svg { width: 34px; height: 34px; }
.kb-db-media-placeholder span { color: var(--sci-navy); font-size: 14px; font-weight: 800; }
.kb-db-media-placeholder small { color: var(--sci-muted); font-size: 12px; }
.kb-db-media-placeholder code { padding: 5px 8px; border: 1px solid var(--sci-line); border-radius: 6px; background: #fff; color: var(--sci-blue-deep); font-size: 11px; }
.kb-db-media > img { width: 100%; max-height: 420px; display: block; border: 1px solid var(--sci-line); border-radius: 14px; object-fit: contain; background: var(--sci-wash); }
.kb-db-media figcaption { margin-top: 8px; color: var(--sci-muted); font-size: 12px; line-height: 1.45; }
.kb-db-media-help { margin: -10px 0 24px; border: 1px solid var(--sci-line); border-radius: 10px; background: #fff; color: var(--sci-muted); font-size: 12px; }
.kb-db-media-help summary { padding: 11px 14px; color: var(--sci-blue-deep); font-weight: 750; cursor: pointer; }
.kb-db-media-help ol { margin: 0; padding: 0 18px 14px 34px; line-height: 1.65; }
.kb-db-media-help code { color: var(--sci-blue-deep); font-size: .95em; }
.kb-mistake-list { display: grid; gap: 12px; margin: 26px 0 38px; }
.kb-mistake-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 17px 18px; border: 1px solid var(--sci-line); border-radius: 12px; background: #fff; }
.kb-mistake-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--sci-wash); color: var(--sci-blue); font-size: 11px; font-weight: 800; }
.article-body .kb-mistake-item h3 { margin: 1px 0 6px; color: var(--sci-navy); font-size: 17px; line-height: 1.35; }
.article-body .kb-mistake-item p { margin: 0; color: var(--sci-muted); font-size: 14px; line-height: 1.6; }
.article-body .kb-mistake-item p strong { color: var(--sci-blue-deep); }
.kb-booking-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0 36px; }
.kb-booking-gallery figure { margin: 0; padding: 12px; border: 1px solid var(--sci-line); border-radius: 16px; background: var(--sci-wash); }
.kb-booking-image { overflow: hidden; aspect-ratio: 16 / 10; display: grid; place-items: center; border-radius: 11px; background: var(--sci-bg); }
.kb-booking-image img { width: 100%; height: 100%; object-fit: contain; }
.kb-booking-gallery figcaption { padding: 10px 2px 2px; color: var(--sci-muted); font-size: 12px; line-height: 1.45; }
.kb-service-highlight { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; margin: 28px 0 38px; padding: 22px; border: 1px solid color-mix(in srgb, var(--sci-blue) 25%, var(--sci-line)); border-radius: 18px; background: linear-gradient(120deg, var(--sci-wash), var(--sci-bg)); }
.kb-service-highlight-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--sci-bg); color: var(--sci-blue); }
.kb-service-highlight-icon svg { width: 28px; height: 28px; }
.kb-service-highlight h2 { margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: 25px !important; }
.kb-service-highlight p { margin: 7px 0 0; }
.article-pager { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.article-pager > div { min-width: 0; }
.article-pager a { min-height: 76px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 14px 16px; border-color: var(--sci-line-strong); transition: border-color .2s, background .2s, transform .2s; }
.article-pager a:hover { border-color: var(--sci-blue); background: var(--sci-wash); transform: translateY(-2px); }
.article-pager div:last-child a { align-items: flex-end; }
.article-pager small { display: inline-flex; align-items: center; gap: 6px; color: var(--sci-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

/* Document status guide */
.kb-status-questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 26px 0 20px; border: 1px solid var(--sci-line-strong); border-radius: 18px; overflow: hidden; background: var(--sci-bg); }
.kb-status-questions > div { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 14px; min-height: 142px; padding: 24px; }
.kb-status-questions > div + div { border-left: 1px solid var(--sci-line); }
.kb-status-questions svg { grid-row: 1 / 3; width: 28px; height: 28px; margin-top: 4px; color: var(--sci-blue); }
.kb-status-questions h2 { margin: 0 !important; padding: 0 !important; border: 0 !important; color: var(--sci-navy); font-size: 21px !important; letter-spacing: -.02em; }
.kb-status-questions p { grid-column: 2; margin: 7px 0 0; color: var(--sci-muted); font-size: 14px; line-height: 1.55; }
.kb-status-callout { margin-top: 0; }
.kb-status-platforms { margin: 42px 0; border: 1px solid var(--sci-line-strong); border-radius: 20px; overflow: hidden; background: var(--sci-bg); }
.kb-status-platforms-head { padding: 28px 30px 20px; background: var(--sci-wash); }
.kb-status-platforms-head h2 { margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: 28px !important; }
.kb-status-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--sci-line); border-bottom: 1px solid var(--sci-line); background: var(--sci-bg); }
.kb-status-tab { min-height: 64px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px; border: 0; border-right: 1px solid var(--sci-line); background: transparent; color: var(--sci-muted); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background .2s ease, color .2s ease; }
.kb-status-tab:last-child { border-right: 0; }
.kb-status-tab svg { width: 19px; height: 19px; }
.kb-status-tab:hover, .kb-status-tab.is-active { background: color-mix(in srgb, var(--sci-blue) 7%, transparent); color: var(--sci-blue-deep); }
.kb-status-tab.is-active { box-shadow: inset 0 -3px 0 var(--sci-blue); }
.kb-status-tab:focus-visible { position: relative; z-index: 1; outline: 3px solid color-mix(in srgb, var(--sci-blue) 35%, transparent); outline-offset: -3px; }
.kb-status-panel { padding: 30px; }
.kb-status-panel > header { max-width: 730px; }
.kb-status-panel h3 { margin: 0; color: var(--sci-navy); font-size: 25px; letter-spacing: -.025em; }
.kb-status-panel h4 { margin: 0; color: var(--sci-navy); font-size: 18px; }
.kb-status-panel > header > p:not(.kb-video-label) { margin: 8px 0 0; color: var(--sci-muted); }
.kb-status-result-image { margin: 24px 0; padding: 14px; border: 1px solid var(--sci-line); border-radius: 15px; background: var(--sci-wash); }
.kb-status-result-image img { display: block; width: 100%; height: auto; border-radius: 8px; }
.kb-status-result-image figcaption, .kb-status-media-grid figcaption, .kb-status-mobile-layout figcaption { margin-top: 10px; color: var(--sci-muted); font-size: 12px; line-height: 1.45; }
.kb-status-media-grid { display: grid; gap: 18px; }
.kb-status-media-grid > article { display: grid; grid-template-columns: minmax(220px, .76fr) minmax(0, 1.24fr); gap: 22px; align-items: start; padding: 22px; border: 1px solid var(--sci-line); border-radius: 16px; background: var(--sci-bg); }
.kb-status-media-grid > article > div > p:not(.kb-video-label) { margin: 8px 0 0; color: var(--sci-muted); font-size: 14px; line-height: 1.58; }
.kb-status-media-grid figure { margin: 0; }
.kb-status-media-grid figure > img { display: block; width: 100%; height: auto; border: 1px solid var(--sci-line); border-radius: 10px; background: var(--sci-wash); }
.kb-status-file-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kb-status-panel > .kb-callout { margin: 22px 0 0; }
.kb-status-note { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; color: var(--sci-muted); font-size: 13px; line-height: 1.5; }
.kb-status-note svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; color: var(--sci-blue); }
.kb-status-steps { display: grid; gap: 0; margin: 24px 0; padding: 0; list-style: none; border-top: 1px solid var(--sci-line); }
.kb-status-steps li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--sci-line); }
.kb-status-steps li > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--sci-wash); color: var(--sci-blue); font-size: 12px; font-weight: 800; }
.kb-status-steps strong { color: var(--sci-navy); font-size: 15px; }
.kb-status-steps p { margin: 4px 0 0; color: var(--sci-muted); font-size: 14px; line-height: 1.55; }
.kb-status-mobile-layout { display: grid; grid-template-columns: minmax(200px, .7fr) minmax(0, 1.3fr); gap: 28px; align-items: start; margin-top: 24px; }
.kb-status-mobile-layout figure { margin: 0; padding: 12px; border: 1px solid var(--sci-line); border-radius: 15px; background: var(--sci-wash); }
.kb-status-mobile-layout figure > img { display: block; width: 100%; height: auto; border-radius: 9px; }
.kb-status-choice-grid { display: grid; gap: 14px; }
.kb-status-choice-grid article { position: relative; padding: 20px 20px 20px 62px; border: 1px solid var(--sci-line); border-radius: 15px; background: var(--sci-bg); }
.kb-status-choice-grid article > svg { position: absolute; top: 22px; left: 20px; width: 25px; height: 25px; color: var(--sci-blue); }
.kb-status-choice-grid article p { margin: 6px 0; color: var(--sci-muted); font-size: 14px; line-height: 1.55; }
.kb-status-choice-grid article strong { color: var(--sci-blue-deep); font-size: 12px; line-height: 1.45; }
.article-body > h2#chon-buoc-tiep-theo { margin-top: 54px; }
.kb-status-outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0 36px; }
.kb-status-outcomes article { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 13px; padding: 19px; border: 1px solid var(--sci-line); border-radius: 16px; background: var(--sci-bg); }
.kb-status-outcome-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; }
.kb-status-outcome-icon svg { width: 22px; height: 22px; }
.kb-status-outcome-icon--print { background: #e8f4fe; color: #0a6ebd; }
.kb-status-outcome-icon--unknown { background: #fff4d8; color: #a16207; }
.kb-status-outcome-icon--none { background: #fcebed; color: #b4232d; }
.kb-status-outcome-icon--digital { background: #e3f5ed; color: #08795f; }
.kb-status-outcomes h3 { margin: 0; color: var(--sci-navy); font-size: 16px; line-height: 1.35; }
.kb-status-outcomes p { margin: 6px 0 0; color: var(--sci-muted); font-size: 13px; line-height: 1.5; }
.kb-status-next-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--sci-line-strong); border-bottom: 1px solid var(--sci-line-strong); }
.kb-status-next-links a { min-height: 84px; display: grid; grid-template-columns: 25px minmax(0, 1fr) 17px; align-items: center; gap: 9px; padding: 15px; border-right: 1px solid var(--sci-line); color: var(--sci-navy); font-size: 13px; font-weight: 800; text-decoration: none; }
.kb-status-next-links a:last-child { border-right: 0; }
.kb-status-next-links a:hover { background: var(--sci-wash); color: var(--sci-blue); }
.kb-status-next-links svg { width: 18px; height: 18px; color: var(--sci-blue); }
.kb-status-next-links svg:last-child { width: 15px; height: 15px; }

@media (max-width: 1100px) {
  .hero-copy h1 { font-size: clamp(49px, 6.4vw, 68px); }
  .hero-canvas { grid-template-columns: 1.05fr .95fr; }
  .hero-architecture { right: -17%; width: 70%; }
  .guide-rail { grid-template-columns: repeat(3, 1fr); }
  .guide-rail-item:nth-child(3) { border-right: 1px solid var(--sci-line); }
  .guide-rail-item:nth-child(n+4) { border-top: 1px solid var(--sci-line); }
  .guide-shell { grid-template-columns: 190px minmax(0, 1fr); max-width: calc(100% - 32px); }
  .guide-onpage { display: none; }
  .kb-status-media-grid > article { grid-template-columns: 1fr; }
  .kb-status-mobile-layout { grid-template-columns: minmax(210px, .75fr) minmax(0, 1.25fr); }
}

@media (max-width: 820px) {
  :root { --header-h: 68px; }
  .header-inner { position: relative; padding-inline: 16px; }
  .brand img { width: 142px; }
  .brand-divider, .brand-copy { display: none; }
  .mobile-menu-toggle { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--sci-navy); cursor: pointer; }
  .mobile-menu-toggle svg { width: 21px; }
  .top-nav { position: absolute; top: calc(100% + 1px); right: 12px; left: 12px; height: auto; display: none; grid-template-columns: 1fr 1fr; gap: 2px; padding: 10px; border: 1px solid var(--sci-line); border-radius: 13px; background: var(--sci-bg); box-shadow: var(--sci-shadow); }
  .top-nav.is-open { display: grid; }
  .top-nav > a { min-height: 46px; padding: 12px; border-radius: 8px; }
  .top-nav > a:nth-child(n) { width: auto; display: flex; justify-content: flex-start; padding: 12px; font-size: 13px; }
  .top-nav > a::after { display: none; }
  .top-nav > a:hover { background: var(--sci-wash); }
  .nav-icon-button { justify-self: start; }
  .science-section, .hero-canvas, .hero-path, .site-footer .footer-inner { width: min(100% - 32px, var(--sci-max)); }
  .science-hero { min-height: auto; }
  .hero-canvas { height: 600px; display: block; }
  .hero-copy { max-width: 580px; padding-top: 45px; }
  .hero-copy h1 { font-size: clamp(46px, 10vw, 66px); }
  /* Keep the campus image visually centered on narrow screens; the previous
     negative right offset made the focal area drift too far to the right. */
  .hero-architecture { top: 325px; right: 0; bottom: 0; width: 74%; }
  .hero-architecture::before { background: linear-gradient(90deg, var(--sci-bg) 0%, transparent 28%), linear-gradient(0deg, var(--sci-bg) 0%, transparent 15%), url('../img/library-campus-science.webp') 65% center / cover no-repeat; }
  .hero-quote { right: 10px; bottom: 28px; font-size: 12px; }
  .hero-quote strong { font-size: 16px; }
  .hero-path { height: auto; grid-template-columns: repeat(2, 1fr); }
  .hero-path a { min-height: 84px; padding: 13px 14px; border-bottom: 1px solid var(--sci-line); }
  .hero-path a:nth-child(3) { border-left: 1px solid var(--sci-line); }
  .science-heading { grid-template-columns: 1fr auto; align-items: center; gap: 8px 16px; }
  .science-heading > p { grid-column: 1 / -1; grid-row: 2; }
  .science-heading > a, .knowledge-count { grid-column: 2; grid-row: 1; }
  .guide-rail { grid-template-columns: repeat(2, 1fr); }
  .guide-rail-item { min-height: 176px; }
  .guide-rail-item:nth-child(n+3) { border-top: 1px solid var(--sci-line); }
  .guide-rail-item:nth-child(2n) { border-right: 1px solid var(--sci-line); }
  .knowledge-map { display: none; }
  .knowledge-mobile { position: relative; display: grid; border-top: 1px solid var(--sci-line-strong); }
  .knowledge-mobile::before { position: absolute; top: 26px; bottom: 26px; left: 21px; width: 1px; background: var(--sci-line-strong); content: ""; }
  .knowledge-accordion { position: relative; border-bottom: 1px solid var(--sci-line); }
  .knowledge-accordion summary { min-height: 74px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 32px; align-items: center; gap: 10px; padding: 10px 4px 10px 0; color: var(--sci-text); cursor: pointer; list-style: none; }
  .knowledge-accordion summary::-webkit-details-marker { display: none; }
  .knowledge-accordion summary > span:nth-child(2) strong { display: block; color: var(--sci-navy); font-size: 13px; }
  .knowledge-accordion summary > span:nth-child(2) small { display: block; margin-top: 3px; color: var(--sci-muted); font-size: 10px; }
  .knowledge-accordion summary > svg { width: 17px; color: var(--sci-muted); transition: transform .2s ease; }
  .knowledge-accordion[open] summary > svg { transform: rotate(180deg); }
  .knowledge-accordion[open] .knowledge-node { border-color: var(--sci-blue); color: var(--sci-blue); }
  .knowledge-accordion .knowledge-articles { grid-template-columns: 1fr 1fr; margin-left: 44px; padding-bottom: 16px; }
  .knowledge-articles a:nth-child(3n) { border-right: 1px solid var(--sci-line); }
  .knowledge-articles a:nth-child(2n) { border-right: 0; }
  .closing-grid { grid-template-columns: 1fr; }
  .closing-quote { border-right: 0; border-bottom: 1px solid #173e60; }
  .science-tip { grid-column: 1; }
  .site-footer .footer-inner { min-height: 340px; grid-template-columns: 1fr 1fr; }
  .guide-page { padding-inline: 16px; }
  .guide-shell { display: block; }
  .guide-category-nav { display: none; }
  .article-breadcrumb { margin-bottom: 24px; }
  .article-header h1 { font-size: clamp(39px, 10vw, 55px); }
  .mobile-onpage { border-radius: 10px; background: var(--sci-wash); }
  .kb-db-intro { align-items: start; }
  .kb-db-panel { padding: 24px; }
  .kb-booking-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-pager div:last-child a { align-items: flex-start; }
  .kb-status-platforms { margin-inline: 0; }
  .kb-status-panel { padding: 24px; }
  .kb-status-questions > div { padding: 20px; }
  .kb-status-mobile-layout { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .science-section, .hero-canvas, .hero-path, .site-footer .footer-inner { width: min(100% - 28px, var(--sci-max)); }
  .hero-canvas { height: 600px; }
  .hero-copy { padding-top: 34px; }
  .hero-copy h1 { font-size: clamp(39px, 10.7vw, 48px); }
  .hero-lead { font-size: 13px; }
  .hero-search { grid-template-columns: 20px minmax(0, 1fr) 44px; min-height: 54px; padding-left: 13px; }
  .hero-search button { width: 44px; height: 44px; }
  .search-prompts { flex-wrap: nowrap; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; scrollbar-width: none; }
  .search-prompts::-webkit-scrollbar { display: none; }
  .search-prompts > span, .search-prompts button { flex: 0 0 auto; white-space: nowrap; }
  .hero-architecture { top: 355px; right: -14px; width: 86%; }
  .hero-path a { grid-template-columns: 31px minmax(0, 1fr); grid-template-rows: 22px 18px; gap: 0 7px; }
  .hero-path a > span { display: none; }
  .hero-path a > svg { grid-row: 1 / 3; align-self: center; }
  .hero-path a small { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .common-guides, .knowledge-section { padding-block: 54px; }
  .science-heading { grid-template-columns: 1fr; }
  .science-heading h2 { font-size: 29px; }
  .science-heading > a, .knowledge-count { display: none; }
  .guide-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-right: 1px solid var(--sci-line); }
  .guide-rail::-webkit-scrollbar { display: none; }
  .guide-rail-item { flex: 0 0 68vw; min-height: 185px; border-top: 0 !important; scroll-snap-align: start; }
  .knowledge-accordion .knowledge-articles { grid-template-columns: 1fr; }
  .knowledge-articles a, .knowledge-articles a:nth-child(3n), .knowledge-articles a:nth-child(2n) { min-height: 96px; border-right: 0; }
  .closing-quote { min-height: 230px; padding: 28px 24px; }
  .closing-quote p { font-size: 24px; }
  .closing-stats { grid-template-columns: 1fr; }
  .closing-stats > div { min-height: 115px; grid-template-columns: 34px 52px 1fr; justify-items: start; align-items: center; align-content: center; gap: 8px; border-right: 0; border-bottom: 1px solid #173e60; text-align: left; }
  .closing-stats svg { grid-row: 1 / 3; }
  .closing-stats strong { margin: 0; font-size: 24px; }
  .closing-stats span { grid-column: 2 / 4; margin: 0; }
  .science-tip { padding: 20px; }
  .site-footer .footer-inner { min-height: 430px; grid-template-columns: 1fr; padding-top: 42px; }
  .footer-campus { min-height: 180px; order: 2; }
  .site-footer .site-credit { order: 3; }
  .footer-social { overflow-x: auto; }
  .search-modal { padding: 0; }
  .search-modal-panel { width: 100%; max-height: 100dvh; min-height: 100dvh; border: 0; border-radius: 0; }
  .search-modal-head { padding: 18px 16px 13px; }
  .modal-search-form { margin-inline: 16px; }
  .search-filter-row { padding-inline: 16px; }
  .modal-search-results { margin-inline: 16px; }
  .search-result-copy span { display: none; }
  .search-all-link { margin-inline: 16px; }
  .feedback-float-trigger { right: 16px; bottom: 16px; min-height: 46px; padding-inline: 13px; }
  .feedback-popup { padding: 14px; }
  .feedback-popup-panel { max-height: calc(100dvh - 28px); border-radius: 16px; }
  .feedback-popup-head { padding: 16px 17px 14px; }
  .feedback-popup-body { padding: 17px; }
  .feedback-popup-head h2 { font-size: 20px; }
  .feedback-popup textarea { min-height: 104px; }
  .article-header-actions { display: flex; }
  .article-guide-cta { width: auto; flex: 1 1 auto; }
  .article-share:only-child { width: fit-content; }
  .article-share span { display: inline; }
  .article-body { font-size: 16px; line-height: 1.72; }
  .article-body > p:first-child { font-size: 17px; }
  .article-body h2 { font-size: 27px; }
  .kb-db-intro { display: grid; padding: 22px 18px 18px; }
  .kb-db-panel { padding: 18px; }
  .kb-db-head { display: grid; }
  .kb-db-head .kb-btn { width: fit-content; }
  .kb-mistake-item { grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 15px; }
  .kb-mistake-number { width: 30px; height: 30px; }
  .kb-booking-gallery { grid-template-columns: 1fr; }
  .kb-service-highlight { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 18px; }
  .kb-service-highlight-icon { width: 44px; height: 44px; border-radius: 13px; }
  .kb-status-questions { grid-template-columns: 1fr; }
  .kb-status-questions > div { min-height: 0; padding: 18px; }
  .kb-status-questions > div + div { border-top: 1px solid var(--sci-line); border-left: 0; }
  .kb-status-platforms { border-radius: 16px; }
  .kb-status-platforms-head, .kb-status-panel { padding: 20px 18px; }
  .kb-status-platforms-head h2 { font-size: 24px !important; }
  .kb-status-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .kb-status-tabs::-webkit-scrollbar { display: none; }
  .kb-status-tab { flex: 0 0 auto; min-width: 118px; min-height: 57px; font-size: 12px; }
  .kb-status-tab:last-child { border-right: 1px solid var(--sci-line); }
  .kb-status-panel h3 { font-size: 23px; }
  .kb-status-result-image { padding: 9px; }
  .kb-status-media-grid > article { gap: 16px; padding: 16px; }
  .kb-status-file-pair { grid-template-columns: 1fr; }
  .kb-status-mobile-layout { gap: 18px; }
  .kb-status-choice-grid article { padding: 18px 16px 18px 57px; }
  .kb-status-choice-grid article > svg { top: 20px; left: 17px; }
  .kb-status-outcomes { grid-template-columns: 1fr; }
  .kb-status-next-links { grid-template-columns: 1fr; }
  .kb-status-next-links a { min-height: 62px; border-right: 0; border-bottom: 1px solid var(--sci-line); }
  .kb-status-next-links a:last-child { border-bottom: 0; }
}

:root[data-theme="dark"] .hero-architecture::before {
  filter: brightness(.42) saturate(1.35) contrast(1.08);
  background: linear-gradient(90deg, var(--sci-bg) 0%, transparent 29%), linear-gradient(0deg, var(--sci-bg) 0%, transparent 20%), url('../img/library-campus-science.webp') 58% center / cover no-repeat;
}
:root[data-theme="dark"] .hero-quote { color: #fff; }
:root[data-theme="dark"] .footer-campus { filter: brightness(.55) saturate(1.2); }
:root[data-theme="dark"] .kb-table-wrap thead th { background: #0c3f6a; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
