:root {
  --blue-950: #08235a;
  --blue-900: #0a3275;
  --blue-800: #0753ad;
  --blue-700: #0874df;
  --blue-100: #e8f4ff;
  --blue-50: #f4f9ff;
  --ink: #15345f;
  --muted: #5d708b;
  --line: #d7e6f6;
  --surface: #fff;
  --canvas: #f4f8fd;
  --success: #13774f;
  --warning: #9c6500;
  --danger: #ad2d44;
  --shadow: 0 14px 38px rgba(8, 50, 117, .1);
  --footer-heading-color: #ffffff;
  --footer-body-color: #d6e5f5;
  --footer-link-color: #d6e5f5;
  --footer-link-hover-color: #ffffff;
  --footer-heading-weight: 800;
  --footer-body-line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
  font-synthesis: none;
  line-height: 1.55;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--canvas); color: var(--ink); }
body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; }
button, input, select { font: inherit; }
a { color: var(--blue-800); }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); border-radius: 9px; padding: 10px 14px; background: #fff; color: var(--blue-950); font-weight: 800; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.hidden { display: none !important; }

:where(a,button,input,select):focus-visible { outline: 3px solid #f4bd35; outline-offset: 3px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; padding: 10px 18px; background: var(--blue-700); color: #fff; font-weight: 800; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
.button:hover { transform: translateY(-1px); background: var(--blue-800); box-shadow: 0 9px 22px rgba(7,83,173,.22); }
.button:active { transform: none; }
.button.secondary { border-color: #b9d6f4; background: #fff; color: var(--blue-800); }
.button.ghost { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.1); color: #fff; }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.site-header { position: sticky; z-index: 50; top: 0; background: #fff; box-shadow: 0 2px 18px rgba(8,35,90,.09); }
.nav-row { min-height: 72px; display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; align-items: center; gap: 20px; }
.brand { display: flex; min-width: 0; align-items: center; gap: 11px; color: var(--blue-950); text-decoration: none; }
.brand-mark { width: 46px; height: 46px; display: grid; flex: 0 0 46px; place-items: center; border-radius: 14px; background: linear-gradient(140deg, var(--blue-800), #1ca8ef); color: #fff; font-size: 18px; font-weight: 900; box-shadow: 0 8px 20px rgba(7,83,173,.22); }
.brand span { min-width: 0; }
.brand-copy { display: flex; flex-direction: column-reverse; }
.brand strong, .brand small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand strong { color: var(--blue-950); font-size: 15px; letter-spacing: .01em; }
.brand small { color: var(--blue-800); font-size: 10px; font-weight: 800; letter-spacing: .045em; }
.main-nav { display: flex; align-items: center; gap: 3px; }
.main-nav a { min-height: 44px; display: inline-flex; align-items: center; border-radius: 9px; padding: 8px 10px; color: #29466d; font-size: 13px; font-weight: 750; text-decoration: none; }
.main-nav a[href="/admin/"] { display: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--blue-100); color: var(--blue-800); }
.admin-link { min-height: 42px; display: inline-flex; align-items: center; border-radius: 10px; padding: 8px 13px; background: var(--blue-800); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.menu-button { width: 44px; height: 44px; display: none; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--blue-950); cursor: pointer; }
.menu-button span, .menu-button::before, .menu-button::after { width: 21px; height: 2px; display: block; background: currentColor; content: ""; }
.menu-button span { margin: 5px 0; }

.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 48% 0, rgba(20,125,255,.52), transparent 34%), linear-gradient(115deg, #061d50, #073f9d 58%, #06194a); }
.hero-grid { min-height: 480px; display: grid; grid-template-columns: minmax(220px, .68fr) minmax(360px, 1.18fr) minmax(340px, .9fr); align-items: center; gap: 25px; padding-block: 44px; }
.hero-visual { align-self: end; filter: drop-shadow(0 22px 32px rgba(0,14,48,.35)); }
.hero-visual svg { width: 100%; height: auto; display: block; }
.hero-kicker { margin: 0 0 13px; color: #aee1ff; font-size: 13px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.hero h1 { max-width: 690px; margin: 0; font-size: clamp(35px, 4.35vw, 54px); line-height: 1.08; letter-spacing: -.035em; }
.hero-slogan { margin: 18px 0 7px; color: #ffd45b; font-size: clamp(18px, 2vw, 23px); font-weight: 850; }
.hero-description { max-width: 690px; margin: 0; color: #e6f3ff; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.hero-stats { border: 1px solid rgba(255,255,255,.27); border-radius: 23px; padding: 20px; background: rgba(255,255,255,.12); box-shadow: 0 25px 80px rgba(0,16,51,.24); backdrop-filter: blur(12px); }
.hero-stats-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.hero-stats h2 { margin: 0; font-size: 18px; }
.updated-at { color: #d4e8fb; font-size: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-card { min-height: 96px; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; padding: 13px; background: rgba(255,255,255,.1); }
.stat-card span, .stat-card strong, .stat-card small { display: block; }
.stat-card span { color: #d7ebff; font-size: 12px; }
.stat-card strong { margin: 4px 0 1px; color: #fff; font-size: 27px; }
.stat-card small { color: #b9d8f4; font-size: 11px; }
.hero-chart { min-height: 126px; margin-top: 13px; border-radius: 14px; padding: 10px; background: rgba(3,24,65,.26); }
.chart-empty { min-height: 105px; display: grid; place-items: center; color: #d6eaff; font-size: 13px; text-align: center; }
.skeleton { position: relative; overflow: hidden; color: transparent !important; background: rgba(255,255,255,.12); }
.skeleton::after { position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent); animation: shimmer 1.2s infinite; content: ""; }
@keyframes shimmer { to { transform: translateX(100%); } }

.section { position: relative; padding-block: 72px; background-image: radial-gradient(circle at 8% 12%, rgba(8,116,223,.055) 0 2px, transparent 2.5px); background-size: 28px 28px; }
.section.alt { background-color: #fff; background-image: linear-gradient(135deg, rgba(232,244,255,.48), transparent 36%); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head p { max-width: 650px; margin: 6px 0 0; color: var(--muted); }
.section h2 { position: relative; margin: 0; color: var(--blue-950); font-size: clamp(27px, 3vw, 38px); line-height: 1.2; }
.section h2::after { width: 48px; height: 4px; display: block; margin-top: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--blue-700), #44bde8); content: ""; }
.eyebrow { margin: 0 0 6px; color: var(--blue-700); font-size: 12px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-card { position: relative; min-height: 132px; display: grid; grid-template-columns: 45px 1fr; align-content: center; gap: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; padding: 17px; background: linear-gradient(145deg, #fff, #f7fbff); color: var(--ink); text-decoration: none; box-shadow: 0 10px 26px rgba(8,50,117,.08); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.quick-card::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--blue-700), #47bde7); content: ""; }
.quick-card:hover { transform: translateY(-3px); border-color: #8dc1f0; box-shadow: 0 15px 32px rgba(8,50,117,.13); }
.quick-card[aria-disabled="true"] { opacity: .72; cursor: default; box-shadow: none; }
.quick-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--blue-100); color: var(--blue-800); font-size: 21px; }
.quick-card strong, .quick-card small { display: block; }
.quick-card small { margin-top: 4px; color: var(--muted); }
.availability { display: inline-flex; margin-top: 7px; border-radius: 999px; padding: 3px 8px; background: #fff1ce; color: #805700; font-size: 10px; font-weight: 800; }

.service-rank-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.service-card { position: relative; min-width: 0; display: flex; min-height: 245px; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-top: 5px solid var(--blue-700); border-radius: 18px; padding: 20px; background: linear-gradient(165deg, #fff 55%, #f1f8ff); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .16s ease, border-color .16s ease; }
.service-card:hover { transform: translateY(-4px); border-color: #91c3ee; }
.rank { align-self: flex-start; border-radius: 999px; padding: 6px 10px; background: var(--blue-800); color: #fff; font-size: 11px; font-weight: 900; box-shadow: 0 7px 16px rgba(7,83,173,.2); }
.service-card h3 { margin: 16px 0 8px; color: var(--blue-700); font-size: 17px; line-height: 1.32; }
.service-card p { margin: 0; color: var(--muted); font-size: 13px; }
.service-counts { display: grid; gap: 3px; margin-top: auto; padding-top: 17px; color: #526a88; font-size: 11px; }
.service-cta { margin-top: 12px; color: var(--blue-800); font-size: 13px; font-weight: 850; }

.operations-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: 20px; padding: 22px; background: #fff; box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 4px; color: var(--blue-950); }
.panel > p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.donut-wrap { display: grid; grid-template-columns: minmax(160px, .8fr) 1.2fr; align-items: center; gap: 20px; }
.donut { width: min(220px, 100%); margin: auto; transform: rotate(-90deg); overflow: visible; }
.chart-legend { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chart-legend li { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; align-items: center; gap: 8px; color: #536984; font-size: 12px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--legend-color); }
.line-chart { width: 100%; min-height: 260px; }
.line-chart .grid { stroke: #dce9f5; stroke-width: 1; }
.line-chart .series { fill: none; stroke: var(--blue-700); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.line-chart .area { fill: rgba(8,116,223,.09); }
.line-chart circle { fill: #fff; stroke: var(--blue-700); stroke-width: 3; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: process; }
.process-step { position: relative; border: 1px solid var(--line); border-radius: 17px; padding: 22px; background: #fff; }
.process-step::before { counter-increment: process; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--blue-800); color: #fff; font-weight: 900; content: counter(process); }
.process-step h3 { margin: 16px 0 6px; }
.process-step p { margin: 0; color: var(--muted); font-size: 13px; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.news-card { min-height: 235px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; padding: 21px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.news-category { align-self: flex-start; border-radius: 999px; padding: 4px 8px; background: #e9f5ff; color: var(--blue-800); font-size: 10px; font-weight: 850; }
.news-card h3 { margin: 15px 0 8px; color: var(--blue-950); }
.news-card p { margin: 0; color: var(--muted); font-size: 13px; }
.news-card time, .news-card .news-state { margin-top: auto; padding-top: 16px; color: #6f8299; font-size: 11px; }
.news-card .read-more { margin-top: 9px; color: var(--blue-800); font-size: 13px; font-weight: 800; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 23px; }
.filter-button { min-height: 42px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: #fff; color: var(--ink); font-weight: 750; cursor: pointer; }
.filter-button[aria-pressed="true"] { border-color: var(--blue-800); background: var(--blue-800); color: #fff; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card { border: 1px solid var(--line); border-radius: 17px; padding: 20px; background: var(--blue-50); }
.feature-card span { font-size: 23px; }
.feature-card h3 { margin: 12px 0 5px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; }
.faq-list { display: grid; gap: 8px; }
.faq-item { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq-question { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; padding: 10px 14px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 800; text-align: left; cursor: pointer; }
.faq-answer { padding: 0 14px 13px; color: var(--muted); font-size: 13px; }

.page-hero { border-bottom: 1px solid var(--line); padding-block: 52px; background: linear-gradient(125deg, #e9f5ff, #fff); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { text-decoration: none; }
.page-hero h1 { margin: 0; color: var(--blue-950); font-size: clamp(33px, 4vw, 48px); line-height: 1.14; }
.page-hero p { max-width: 760px; margin: 12px 0 0; color: var(--muted); }
.page-layout { padding-block: 48px 75px; }
.notice { border: 1px solid #bad8f3; border-left: 5px solid var(--blue-700); border-radius: 13px; padding: 15px 17px; background: #eff8ff; color: #2b527b; }
.error-notice { border-color: #efb9c3; border-left-color: var(--danger); background: #fff2f4; color: #8b2638; }

.services-toolbar { display: flex; align-items: end; gap: 12px; margin-bottom: 22px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 750; }
.field input, .field select { min-height: 48px; width: 100%; border: 1px solid #b8cee7; border-radius: 11px; padding: 10px 12px; background: #fff; color: var(--ink); }
.services-toolbar .field:first-child { flex: 1; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.catalog-card { display: flex; min-height: 225px; flex-direction: column; border: 1px solid var(--line); border-radius: 17px; padding: 20px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 9px 26px rgba(8,50,117,.07); }
.catalog-card h2 { margin: 13px 0 7px; color: var(--blue-700); font-size: 18px; }
.catalog-card p { margin: 0; color: var(--muted); font-size: 13px; }
.catalog-card .service-cta { margin-top: auto; padding-top: 14px; }

.lookup-shell { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: start; gap: 22px; }
.lookup-card, .result-card { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: #fff; box-shadow: var(--shadow); }
.lookup-card { position: sticky; top: 118px; }
.lookup-card h2, .result-card h2 { margin: 0 0 7px; color: var(--blue-950); }
.lookup-form { display: grid; gap: 14px; margin-top: 20px; }
.lookup-form .button { width: 100%; border: 0; cursor: pointer; }
.field-help, .field-error { color: var(--muted); font-size: 12px; }
.field-error { color: var(--danger); font-weight: 700; }
.lookup-message { min-height: 240px; display: grid; align-content: center; justify-items: center; border: 1px dashed #b9cee3; border-radius: 18px; padding: 30px; color: var(--muted); text-align: center; }
.ticket-summary { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 17px 0 24px; }
.ticket-summary div { border-radius: 11px; padding: 11px 13px; background: var(--blue-50); }
.ticket-summary dt { color: var(--muted); font-size: 11px; }
.ticket-summary dd { margin: 4px 0 0; overflow-wrap: anywhere; font-weight: 800; }
.status-pill { display: inline-flex; border-radius: 999px; padding: 5px 10px; background: #e7f3ff; color: var(--blue-800); font-size: 12px; font-weight: 850; }
.status-pill.terminal { background: #fde8ec; color: var(--danger); }
.status-pill.attention { background: #fff2cf; color: var(--warning); }
.public-timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.public-timeline::before { position: absolute; z-index: 0; top: 18px; right: 9%; left: 9%; height: 3px; background: #d9e6f3; content: ""; }
.timeline-step { position: relative; z-index: 1; min-width: 0; text-align: center; }
.timeline-dot { width: 38px; height: 38px; display: grid; place-items: center; margin: 0 auto 10px; border: 4px solid #e6eef7; border-radius: 50%; background: #fff; color: #6f8297; font-size: 13px; font-weight: 900; }
.timeline-step.completed .timeline-dot { border-color: #d5f0e3; background: var(--success); color: #fff; }
.timeline-step.current .timeline-dot { border-color: #c9e4ff; background: var(--blue-700); color: #fff; }
.timeline-step.attention .timeline-dot { border-color: #ffe5a5; background: #d78b00; color: #fff; }
.timeline-step.terminal .timeline-dot { border-color: #f6d3da; background: var(--danger); color: #fff; }
.timeline-step strong, .timeline-step time, .timeline-step small { display: block; overflow-wrap: anywhere; }
.timeline-step strong { font-size: 12px; }
.timeline-step time, .timeline-step small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.history-list { display: grid; gap: 0; margin: 16px 0 0; padding: 0; list-style: none; }
.history-list li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; border-bottom: 1px solid #edf2f7; padding: 10px 2px; font-size: 12px; }
.history-list li::before { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--blue-700); content: ""; }
.history-list time { color: var(--muted); }
.lookup-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.lookup-actions button { cursor: pointer; }

.article { max-width: 820px; margin: auto; border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 46px); background: #fff; box-shadow: var(--shadow); }
.article h1 { margin-top: 0; color: var(--blue-950); line-height: 1.2; }
.article h2 { margin-top: 28px; font-size: 22px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; color: var(--muted); font-size: 12px; }
.article-body { color: #334e70; }
.article-body a { font-weight: 750; }

.site-footer { background: linear-gradient(145deg, #061b47, var(--blue-950) 58%, #073b80); color: #dbeaff; }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,.8fr) minmax(0,.8fr); align-items: start; gap: clamp(28px,5vw,72px); padding-block: 48px 34px; }
.footer-grid > section { align-self: start; }
.site-footer h2, .site-footer h3 { margin: 0 0 14px; color: var(--footer-heading-color); font-family: inherit; font-size: 17px; font-weight: var(--footer-heading-weight); line-height: 1.35; }
.site-footer p, .site-footer a { color: var(--footer-body-color); font-size: 14px; line-height: var(--footer-body-line-height); opacity: 1; }
.site-footer p { margin: 7px 0; }
.footer-school-name { font-weight: 750; }
.footer-links { display: grid; align-content: start; gap: 7px; }
.footer-links a { color: var(--footer-link-color); text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--footer-link-hover-color); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.footer-social { display: grid; grid-template-columns: 1fr; gap: 8px; }
.footer-social a,.footer-social button { min-height: 42px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; padding: 7px 10px; background: rgba(255,255,255,.07); color: #d7e8fa; font-size: 12px; font-weight: 750; text-align: left; text-decoration: none; }
.footer-social svg { width: 20px; height: 20px; flex: 0 0 20px; fill: currentColor; }
.footer-social span,.footer-social small { display: block; }.footer-social small { margin-top: 2px; color: #9db8d4; font-size: 9px; }
.footer-social button:disabled { opacity: .66; cursor: not-allowed; }
.site-footer small { display: block; margin-top: 10px; color: #9db8d4; }
.organization-groups { display: grid; gap: 28px; }
.organization-group h2 { margin: 0 0 14px; color: var(--blue-900); font-size: 21px; }
.organization-people { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 14px; }
.organization-person { min-width: 0; display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 15px; padding: 14px; background: #fff; box-shadow: 0 7px 20px rgba(8,43,96,.06); }
.organization-person img,.organization-person__placeholder { width: 76px; height: 92px; border-radius: 11px; object-fit: cover; }
.organization-person__placeholder { display: grid; place-items: center; background: linear-gradient(145deg,#e6f1ff,#d8edfa); color: var(--blue-800); font-size: 28px; font-weight: 900; }
.organization-person h3 { margin: 0; color: var(--blue-900); font-size: 16px; }.organization-person p { margin: 5px 0; color: var(--muted); }.organization-phone { color: var(--blue-700); font-weight: 750; }
.organization-empty { max-width: 850px; margin-inline: auto; }
.footer-map { display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 17px; margin-bottom: 30px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 17px; background: rgba(255,255,255,.065); }
.footer-map__visual { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 16px; background: radial-gradient(circle, #6fd5ff 0 5px, transparent 6px), linear-gradient(145deg, #0d72ca, #18a7d4); color: #fff; font-size: 30px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.footer-map h3, .footer-map p { margin: 0; }
.footer-map__link { display: inline-flex; min-height: 42px; align-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; padding: 8px 14px; font-weight: 800; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 16px 0; color: #afc6df; font-size: 12px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-button { display: grid; }
  .nav-row { grid-template-columns: 1fr auto auto; }
  .main-nav.open { position: fixed; z-index: 60; top: 72px; right: 0; bottom: 0; width: min(360px, 90vw); display: grid; align-content: start; gap: 4px; overflow: auto; padding: 18px; background: #fff; box-shadow: -20px 30px 60px rgba(8,35,90,.2); }
  .main-nav.open a { min-height: 48px; }
  .main-nav.open a[href="/admin/"] { display: inline-flex; }
  .hero-grid { grid-template-columns: minmax(220px,.72fr) 1.28fr; }
  .hero-visual { grid-row: 1 / 3; }
  .hero-stats { grid-column: 2; }
  .hero-stats { max-width: 760px; }
  .service-rank-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .section { padding-block: 52px; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-block: 48px; }
  .hero-visual { grid-row: auto; max-width: 420px; margin: auto; }
  .hero-stats { grid-column: auto; }
  .operations-grid, .lookup-shell { grid-template-columns: 1fr; }
  .lookup-card { position: static; }
  .service-rank-grid, .catalog-grid, .news-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-school { grid-column: 1 / -1; }
  .public-timeline { grid-template-columns: 1fr; gap: 12px; }
  .public-timeline::before { top: 20px; bottom: 20px; left: 18px; width: 3px; height: auto; }
  .timeline-step { min-height: 58px; display: grid; grid-template-columns: 38px 1fr; align-items: start; gap: 12px; text-align: left; }
  .timeline-dot { margin: 0; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 22px, 1180px); }
  .nav-row { min-height: 64px; gap: 8px; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; font-size: 15px; }
  .brand strong { font-size: 12px; }
  .brand small { font-size: 10px; }
  .admin-link { display: none; }
  .main-nav.open { top: 64px; }
  .hero h1 { font-size: 36px; }
  .hero-description { font-size: 15px; }
  .hero-actions .button { width: 100%; }
  .stat-grid, .quick-grid, .service-rank-grid, .catalog-grid, .news-grid, .feature-grid, .steps-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-school { grid-column: auto; }
  .footer-map { grid-template-columns: 54px 1fr; }
  .footer-map__visual { width: 54px; height: 54px; }
  .footer-map__link { grid-column: 1 / -1; justify-content: center; }
  .footer-bottom .container { flex-direction: column; gap: 7px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .donut-wrap { grid-template-columns: 1fr; }
  .services-toolbar { align-items: stretch; flex-direction: column; }
  .ticket-summary { grid-template-columns: 1fr; }
  .history-list li { grid-template-columns: 12px 1fr; }
  .history-list time { grid-column: 2; }
  .lookup-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* THMH UI polish: distinct school-form titles and aligned actions. */
body[data-page="school-forms"] #schoolFormCatalog .catalog-card:nth-child(17n + 1) h2 { color: #b4233c; }
body[data-page="school-forms"] #schoolFormCatalog .catalog-card:nth-child(17n + 2) h2 { color: #a23e12; }
body[data-page="school-forms"] #schoolFormCatalog .catalog-card:nth-child(17n + 3) h2 { color: #8a6100; }
body[data-page="school-forms"] #schoolFormCatalog .catalog-card:nth-child(17n + 4) h2 { color: #1d6b4f; }
body[data-page="school-forms"] #schoolFormCatalog .catalog-card:nth-child(17n + 5) h2 { color: #0b6b63; }
body[data-page="school-forms"] #schoolFormCatalog .catalog-card:nth-child(17n + 6) h2 { color: #075bd8; }
body[data-page="school-forms"] #schoolFormCatalog .catalog-card:nth-child(17n + 7) h2 { color: #2856a6; }
body[data-page="school-forms"] #schoolFormCatalog .catalog-card:nth-child(17n + 8) h2 { color: #4338ca; }
body[data-page="school-forms"] #schoolFormCatalog .catalog-card:nth-child(17n + 9) h2 { color: #5b3fa3; }
body[data-page="school-forms"] #schoolFormCatalog .catalog-card:nth-child(17n + 10) h2 { color: #7e22ce; }
body[data-page="school-forms"] #schoolFormCatalog .catalog-card:nth-child(17n + 11) h2 { color: #9f1d8b; }
body[data-page="school-forms"] #schoolFormCatalog .catalog-card:nth-child(17n + 12) h2 { color: #a62b55; }
body[data-page="school-forms"] #schoolFormCatalog .catalog-card:nth-child(17n + 13) h2 { color: #6b4f00; }
body[data-page="school-forms"] #schoolFormCatalog .catalog-card:nth-child(17n + 14) h2 { color: #355d1a; }
body[data-page="school-forms"] #schoolFormCatalog .catalog-card:nth-child(17n + 15) h2 { color: #006a7a; }
body[data-page="school-forms"] #schoolFormCatalog .catalog-card:nth-child(17n + 16) h2 { color: #2d4a75; }
body[data-page="school-forms"] #schoolFormCatalog .catalog-card:nth-child(17n) h2 { color: #4e3b63; }

body[data-page="school-forms"] #schoolFormCatalog .catalog-card {
  height: 100%;
  min-height: 318px;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(8, 50, 117, .075);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
body[data-page="school-forms"] #schoolFormCatalog .catalog-card:hover {
  transform: translateY(-3px);
  border-color: #b9d6f4;
  box-shadow: 0 17px 36px rgba(8, 50, 117, .11);
}
body[data-page="school-forms"] #schoolFormCatalog .catalog-card h2 {
  min-height: 3em;
  margin: 14px 0 10px;
  font-size: 18px;
  line-height: 1.42;
}
body[data-page="school-forms"] #schoolFormCatalog .catalog-card p {
  margin: 0 0 7px;
  color: var(--muted);
  line-height: 1.55;
}
body[data-page="school-forms"] #schoolFormCatalog .catalog-card p strong {
  color: #405a78;
}
body[data-page="school-forms"] #schoolFormCatalog .lookup-actions {
  width: 100%;
  display: flex;
  align-items: stretch;
  margin-top: auto;
  padding-top: 18px;
}
body[data-page="school-forms"] #schoolFormCatalog .lookup-actions > * {
  min-width: 0;
  flex: 1 1 138px;
}

@media (max-width: 760px) {
  body[data-page="school-forms"] #schoolFormCatalog .catalog-card {
    min-height: 0;
  }
  body[data-page="school-forms"] #schoolFormCatalog .catalog-card h2 {
    min-height: 0;
  }
  body[data-page="school-forms"] #schoolFormCatalog .lookup-actions > * {
    width: 100%;
    flex-basis: 100%;
  }
}


/* THMH UI polish: compact home sections and centered two-line footer. */
body[data-page="home"] .section {
  padding-block: 40px;
}
.footer-bottom .container {
  display: grid;
  justify-items: center;
  justify-content: stretch;
  gap: 4px;
  text-align: center;
}
.footer-bottom .container > span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  body[data-page="home"] .section { padding-block: 34px; }
}
@media (max-width: 760px) {
  body[data-page="home"] .section { padding-block: 28px; }
  .footer-bottom { padding-block: 14px; }
  .footer-bottom .container { gap: 5px; }
}

/* THMH UI pass: illustrated service cards for Top services and full service catalog. */
.service-rank-grid {
  gap: 18px;
  align-items: stretch;
}

#topServices .service-card,
body[data-page="services"] #serviceCatalog .catalog-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 428px;
  overflow: hidden;
  border: 1px solid #dbe7f6;
  border-radius: 28px;
  padding: 20px 26px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,255,.94));
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(8, 50, 117, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

#topServices .service-card::before,
body[data-page="services"] #serviceCatalog .catalog-card::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 14% 100%, rgba(122, 191, 255, .12), transparent 28%), radial-gradient(circle at 100% 0, rgba(8, 116, 223, .06), transparent 36%);
  content: "";
  pointer-events: none;
}

#topServices .service-card:hover,
body[data-page="services"] #serviceCatalog .catalog-card:hover {
  transform: translateY(-6px);
  border-color: #b9d6f4;
  box-shadow: 0 22px 48px rgba(8, 50, 117, .13);
}

#topServices .service-card .rank,
body[data-page="services"] #serviceCatalog .catalog-card .rank {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #0b80ff, #0b48dd);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(11, 72, 221, .22);
}

#topServices .service-card .rank::before,
body[data-page="services"] #serviceCatalog .catalog-card .rank::before {
  color: #ffd24d;
  content: "★";
}

#topServices .service-card .service-card__visual,
body[data-page="services"] #serviceCatalog .catalog-card .service-card__visual {
  position: relative;
  z-index: 1;
  min-height: 156px;
  display: grid;
  place-items: center;
  margin: 18px 0 16px;
}

#topServices .service-card .service-card__visual img,
body[data-page="services"] #serviceCatalog .catalog-card .service-card__visual img {
  width: min(150px, 72%);
  max-height: 152px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(38, 115, 219, .18));
}

#topServices .service-card .service-card__fallback,
body[data-page="services"] #serviceCatalog .catalog-card .service-card__fallback {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background: linear-gradient(145deg, #eef6ff, #d9ebff);
  color: var(--blue-800);
  font-size: 40px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(8, 116, 223, .08);
}

#topServices .service-card .service-card__body,
body[data-page="services"] #serviceCatalog .catalog-card .catalog-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
}

#topServices .service-card h3,
body[data-page="services"] #serviceCatalog .catalog-card h2 {
  min-height: 3.1em;
  margin: 0 0 14px;
  color: var(--blue-900) !important;
  font-size: 18px;
  line-height: 1.38;
}

#topServices .service-card p,
body[data-page="services"] #serviceCatalog .catalog-card p {
  margin: 0;
  color: #5c6f8b;
  font-size: 14px;
  line-height: 1.7;
}

#topServices .service-card .service-card__body p,
body[data-page="services"] #serviceCatalog .catalog-card .catalog-card__body p {
  flex: 1;
}

#topServices .service-card .service-cta,
body[data-page="services"] #serviceCatalog .catalog-card .service-cta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #dde7f4;
  color: var(--blue-800);
  font-size: 15px;
  font-weight: 850;
}

#topServices .service-card .service-cta__lead,
body[data-page="services"] #serviceCatalog .catalog-card .service-cta__lead {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#topServices .service-card .service-cta__lead::before,
body[data-page="services"] #serviceCatalog .catalog-card .service-cta__lead::before {
  color: #97abcb;
  font-size: 17px;
  content: "◷";
}

#topServices .service-card .service-cta__arrow,
body[data-page="services"] #serviceCatalog .catalog-card .service-cta__arrow {
  color: var(--blue-700);
  font-size: 26px;
  line-height: 1;
}

#topServices .service-card .service-counts {
  display: none;
}

body[data-page="services"] #serviceCatalog.catalog-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

body[data-page="services"] #serviceCatalog .catalog-card {
  min-height: 404px;
}

body[data-page="services"] #serviceCatalog .catalog-card h2 {
  font-size: 17px;
}

@media (max-width: 1180px) {
  body[data-page="services"] #serviceCatalog.catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  #topServices .service-card,
  body[data-page="services"] #serviceCatalog .catalog-card {
    min-height: 392px;
    padding: 18px 20px 22px;
    border-radius: 24px;
  }

  #topServices .service-card .service-card__visual,
  body[data-page="services"] #serviceCatalog .catalog-card .service-card__visual {
    min-height: 142px;
  }

  body[data-page="services"] #serviceCatalog.catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #topServices .service-card,
  body[data-page="services"] #serviceCatalog .catalog-card {
    min-height: auto;
    padding: 18px;
  }

  #topServices .service-card h3,
  body[data-page="services"] #serviceCatalog .catalog-card h2 {
    min-height: 0;
    font-size: 17px;
  }

  #topServices .service-card .service-card__visual,
  body[data-page="services"] #serviceCatalog .catalog-card .service-card__visual {
    min-height: 128px;
    margin: 16px 0 14px;
  }

  #topServices .service-card .service-card__visual img,
  body[data-page="services"] #serviceCatalog .catalog-card .service-card__visual img {
    width: min(138px, 68%);
  }

  body[data-page="services"] #serviceCatalog.catalog-grid {
    grid-template-columns: 1fr;
  }
}

/* THMH UI pass 3: compact home rhythm, balanced quick access and stable shared footer. */
body[data-page="home"] .section {
  padding-block: 36px;
}

body[data-page="home"] #truy-cap-nhanh {
  padding-bottom: 24px;
}

body[data-page="home"] #dich-vu {
  padding-top: 24px;
}

body[data-page="home"] .section-head {
  margin-bottom: 22px;
}

body[data-page="home"] .quick-grid {
  align-items: stretch;
  gap: 14px;
}

body[data-page="home"] .quick-card {
  min-height: 122px;
  height: 100%;
  grid-template-columns: 45px minmax(0, 1fr);
  align-items: center;
  align-content: center;
}

body[data-page="home"] .quick-card > span:last-child {
  min-width: 0;
}

body[data-page="home"] .quick-card strong,
body[data-page="home"] .quick-card small {
  overflow-wrap: anywhere;
}

.footer-bottom {
  padding-block: 15px;
  color: #c2d5e9;
  line-height: 1.5;
}

.footer-bottom .container {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 3px;
}

.footer-bottom .container > span {
  width: 100%;
  max-width: 920px;
  margin: 0;
  color: inherit;
  text-align: center;
  text-wrap: balance;
}

.footer-bottom .container > span:first-child {
  font-weight: 650;
}

@media (max-width: 980px) {
  body[data-page="home"] .section {
    padding-block: 30px;
  }

  body[data-page="home"] #truy-cap-nhanh {
    padding-bottom: 22px;
  }

  body[data-page="home"] #dich-vu {
    padding-top: 22px;
  }

  body[data-page="home"] .section-head {
    margin-bottom: 20px;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .section {
    padding-block: 24px;
  }

  body[data-page="home"] #truy-cap-nhanh {
    padding-bottom: 18px;
  }

  body[data-page="home"] #dich-vu {
    padding-top: 18px;
  }

  body[data-page="home"] .section-head {
    margin-bottom: 18px;
  }

  body[data-page="home"] .quick-card {
    min-height: 112px;
  }

  .footer-bottom {
    padding-block: 13px;
    font-size: 11.5px;
  }

  .footer-bottom .container {
    gap: 4px;
    padding-inline: 4px;
  }

  .footer-bottom .container > span {
    text-wrap: pretty;
  }
}

@media (max-width: 390px) {
  body[data-page="home"] .quick-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 15px;
  }

  body[data-page="home"] .quick-icon {
    width: 40px;
    height: 40px;
    font-size: 19px;
  }

  .footer-bottom .container > span {
    max-width: 330px;
  }
}

/* Final regression: preserve the service-group badge for non-ranked catalog cards. */
body[data-page="services"] #serviceCatalog .catalog-card .service-group-badge {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-bottom: 0;
  background: #e9f5ff;
  color: var(--blue-800);
  font-size: 10px;
  font-weight: 850;
}

/* THMH UI pass 5: uppercase home headings and sample-matched quick service access cards. */
body[data-page="home"] .section-head h2 {
  color: var(--blue-950);
  font-weight: 900;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

body[data-page="home"] #truy-cap-nhanh {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(59, 130, 246, .07), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  background-image:
    radial-gradient(circle at 8% 8%, rgba(59, 130, 246, .07), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

body[data-page="home"] #truy-cap-nhanh .section-head {
  margin-bottom: 34px;
}

body[data-page="home"] #truy-cap-nhanh .section-head h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
}

body[data-page="home"] #truy-cap-nhanh .section-head h2::after {
  width: 70px;
  height: 5px;
  margin-top: 14px;
  background: linear-gradient(90deg, #3478ef 0 72%, #7eb4ff 72% 88%, transparent 88%);
}

body[data-page="home"] #truy-cap-nhanh .section-head p {
  max-width: 760px;
  margin-top: 14px;
  color: #52657f;
  font-size: 17px;
  line-height: 1.65;
}

body[data-page="home"] #truy-cap-nhanh .eyebrow {
  margin-bottom: 10px;
  color: #4c607b;
  font-size: 13px;
  letter-spacing: .08em;
}

body[data-page="home"] #truy-cap-nhanh .quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 28px;
}

body[data-page="home"] #truy-cap-nhanh .quick-card {
  --quick-accent: #3478ef;
  --quick-soft: #eaf2ff;
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 300px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  align-items: center;
  gap: 24px 24px;
  overflow: hidden;
  border: 1px solid #dfe7f1;
  border-radius: 28px;
  padding: 30px 28px 28px;
  background: linear-gradient(145deg, #fff 0%, #fff 66%, #fbfdff 100%);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(22, 57, 104, .075);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body[data-page="home"] #truy-cap-nhanh .quick-card::before {
  position: absolute;
  z-index: -1;
  inset: auto auto 0 0;
  width: 58%;
  height: 82px;
  border-radius: 0 100% 0 0;
  background: var(--quick-soft);
  opacity: .92;
  content: "";
  clip-path: ellipse(82% 78% at 4% 100%);
}

body[data-page="home"] #truy-cap-nhanh .quick-card::after {
  position: absolute;
  z-index: -1;
  right: -55px;
  top: -72px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--quick-soft);
  opacity: .28;
  content: "";
}

body[data-page="home"] #truy-cap-nhanh .quick-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--quick-accent) 26%, #dfe7f1);
  box-shadow: 0 22px 44px rgba(22, 57, 104, .13);
}

body[data-page="home"] #truy-cap-nhanh .quick-card[aria-disabled="true"] {
  opacity: 1;
  cursor: default;
}

body[data-page="home"] #truy-cap-nhanh .quick-card[aria-disabled="true"]:hover {
  transform: none;
  box-shadow: 0 14px 34px rgba(22, 57, 104, .075);
}

body[data-page="home"] #truy-cap-nhanh .quick-icon {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--quick-accent) 16%, #fff);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff 0 22%, var(--quick-soft) 66%, #fff 100%);
  color: var(--quick-accent);
  font-size: 48px;
  line-height: 1;
  box-shadow: inset 0 0 0 7px rgba(255,255,255,.42), 0 10px 24px color-mix(in srgb, var(--quick-accent) 12%, transparent);
}

body[data-page="home"] #truy-cap-nhanh .quick-copy {
  display: contents;
}

body[data-page="home"] #truy-cap-nhanh .quick-copy strong {
  min-width: 0;
  align-self: center;
  color: #082b6c;
  font-size: clamp(20px, 1.65vw, 24px);
  font-weight: 850;
  line-height: 1.34;
  letter-spacing: -.018em;
  overflow-wrap: anywhere;
}

body[data-page="home"] #truy-cap-nhanh .quick-copy small {
  grid-column: 1 / -1;
  align-self: start;
  min-height: 3.5em;
  margin: 0;
  padding-right: 52px;
  color: #52657f;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

body[data-page="home"] #truy-cap-nhanh .quick-arrow {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--quick-accent) 18%, #fff);
  border-radius: 50%;
  background: color-mix(in srgb, var(--quick-soft) 82%, #fff);
  color: var(--quick-accent);
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
}

body[data-page="home"] #truy-cap-nhanh .availability {
  position: absolute;
  z-index: 2;
  left: 28px;
  bottom: 28px;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--quick-accent) 34%, #fff);
  border-radius: 999px;
  padding: 5px 12px;
  background: color-mix(in srgb, var(--quick-soft) 74%, #fff);
  color: var(--quick-accent);
  font-size: 12px;
  font-weight: 800;
}

body[data-page="home"] #truy-cap-nhanh .quick-card:nth-child(1),
body[data-page="home"] #truy-cap-nhanh .quick-card:nth-child(7) {
  --quick-accent: #ff405a;
  --quick-soft: #ffe8ec;
}

body[data-page="home"] #truy-cap-nhanh .quick-card:nth-child(2),
body[data-page="home"] #truy-cap-nhanh .quick-card:nth-child(6) {
  --quick-accent: #00aa9a;
  --quick-soft: #def8f4;
}

body[data-page="home"] #truy-cap-nhanh .quick-card:nth-child(3),
body[data-page="home"] #truy-cap-nhanh .quick-card:nth-child(8) {
  --quick-accent: #287cff;
  --quick-soft: #e7f0ff;
}

body[data-page="home"] #truy-cap-nhanh .quick-card:nth-child(4) {
  --quick-accent: #ff9100;
  --quick-soft: #fff0d9;
}

body[data-page="home"] #truy-cap-nhanh .quick-card:nth-child(5) {
  --quick-accent: #8654e8;
  --quick-soft: #eee6ff;
}

@media (max-width: 1080px) {
  body[data-page="home"] #truy-cap-nhanh .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] #truy-cap-nhanh .section-head {
    margin-bottom: 24px;
  }

  body[data-page="home"] #truy-cap-nhanh .section-head h2 {
    font-size: clamp(29px, 8vw, 38px);
  }

  body[data-page="home"] #truy-cap-nhanh .section-head p {
    font-size: 15px;
  }

  body[data-page="home"] #truy-cap-nhanh .quick-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body[data-page="home"] #truy-cap-nhanh .quick-card {
    min-height: 228px;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 18px;
    border-radius: 22px;
    padding: 22px 20px;
  }

  body[data-page="home"] #truy-cap-nhanh .quick-icon {
    width: 76px;
    height: 76px;
    font-size: 36px;
  }

  body[data-page="home"] #truy-cap-nhanh .quick-copy strong {
    font-size: 20px;
  }

  body[data-page="home"] #truy-cap-nhanh .quick-copy small {
    min-height: 0;
    padding-right: 44px;
    font-size: 14px;
  }

  body[data-page="home"] #truy-cap-nhanh .quick-arrow {
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  body[data-page="home"] #truy-cap-nhanh .availability {
    left: 20px;
    bottom: 20px;
  }
}

@media (max-width: 390px) {
  body[data-page="home"] #truy-cap-nhanh .quick-card {
    min-height: 218px;
    grid-template-columns: 68px minmax(0, 1fr);
    padding: 20px 17px;
  }

  body[data-page="home"] #truy-cap-nhanh .quick-icon {
    width: 66px;
    height: 66px;
    font-size: 31px;
  }

  body[data-page="home"] #truy-cap-nhanh .quick-copy strong {
    font-size: 18px;
  }
}

/* THMH UI pass 6: refined public-page typography and richer illustrated service cards. */
body[data-page="home"] .section-head h2 {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.14;
}

body[data-page="home"] .section-head p {
  font-size: 15px;
  line-height: 1.65;
}

body[data-page="home"] #truy-cap-nhanh .section-head {
  margin-bottom: 28px;
}

body[data-page="home"] #truy-cap-nhanh .section-head h2 {
  font-size: clamp(31px, 3.6vw, 44px);
  line-height: 1.12;
}

body[data-page="home"] #truy-cap-nhanh .section-head p {
  margin-top: 12px;
  font-size: 15px;
}

body[data-page="home"] #truy-cap-nhanh .quick-grid {
  gap: 22px;
}

body[data-page="home"] #truy-cap-nhanh .quick-card {
  min-height: 258px;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px 20px;
  border-radius: 26px;
  padding: 26px 24px 24px;
}

body[data-page="home"] #truy-cap-nhanh .quick-card::before {
  height: 72px;
}

body[data-page="home"] #truy-cap-nhanh .quick-card::after {
  right: -48px;
  top: -58px;
  width: 132px;
  height: 132px;
}

body[data-page="home"] #truy-cap-nhanh .quick-icon {
  width: 84px;
  height: 84px;
  font-size: 42px;
}

body[data-page="home"] #truy-cap-nhanh .quick-copy strong {
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.3;
}

body[data-page="home"] #truy-cap-nhanh .quick-copy small {
  min-height: 3.2em;
  padding-right: 50px;
  font-size: 14.5px;
  line-height: 1.58;
}

body[data-page="home"] #truy-cap-nhanh .quick-arrow {
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  font-size: 24px;
}

body[data-page="home"] #truy-cap-nhanh .availability {
  left: 24px;
  bottom: 24px;
  font-size: 11.5px;
}

#topServices .service-rank-grid,
body[data-page="services"] #serviceCatalog.catalog-grid {
  gap: 16px;
}

#topServices .service-card,
body[data-page="services"] #serviceCatalog .catalog-card {
  min-height: 352px;
  border-radius: 24px;
  padding: 18px 18px 20px;
}

#topServices .service-card .rank,
body[data-page="services"] #serviceCatalog .catalog-card .rank {
  padding: 7px 13px;
  font-size: 11px;
}

#topServices .service-card .service-card__visual,
body[data-page="services"] #serviceCatalog .catalog-card .service-card__visual {
  min-height: 108px;
  margin: 14px 0 14px;
}

#topServices .service-card .service-card__visual img,
body[data-page="services"] #serviceCatalog .catalog-card .service-card__visual img {
  width: min(136px, 66%);
  max-height: 108px;
  filter: drop-shadow(0 10px 18px rgba(38, 115, 219, .16));
}

#topServices .service-card h3,
body[data-page="services"] #serviceCatalog .catalog-card h2 {
  min-height: 2.75em;
  margin: 0 0 10px;
  font-size: 16.5px;
  line-height: 1.34;
}

#topServices .service-card p,
body[data-page="services"] #serviceCatalog .catalog-card p {
  font-size: 13.5px;
  line-height: 1.58;
}

#topServices .service-card .service-cta,
body[data-page="services"] #serviceCatalog .catalog-card .service-cta {
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  font-size: 13.5px;
}

#topServices .service-card .service-cta__lead,
body[data-page="services"] #serviceCatalog .catalog-card .service-cta__lead {
  gap: 8px;
}

#topServices .service-card .service-cta__lead::before,
body[data-page="services"] #serviceCatalog .catalog-card .service-cta__lead::before {
  font-size: 15px;
}

#topServices .service-card .service-cta__arrow,
body[data-page="services"] #serviceCatalog .catalog-card .service-cta__arrow {
  font-size: 22px;
}

@media (max-width: 1080px) {
  body[data-page="home"] #truy-cap-nhanh .quick-card {
    min-height: 236px;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .section-head h2,
  body[data-page="home"] #truy-cap-nhanh .section-head h2 {
    font-size: clamp(28px, 8vw, 34px);
  }

  body[data-page="home"] #truy-cap-nhanh .quick-card {
    min-height: 210px;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 18px;
  }

  body[data-page="home"] #truy-cap-nhanh .quick-icon {
    width: 72px;
    height: 72px;
    font-size: 35px;
  }

  body[data-page="home"] #truy-cap-nhanh .quick-copy strong {
    font-size: 18px;
  }

  body[data-page="home"] #truy-cap-nhanh .quick-copy small {
    padding-right: 42px;
    font-size: 13.5px;
  }

  #topServices .service-card,
  body[data-page="services"] #serviceCatalog .catalog-card {
    min-height: 320px;
    padding: 16px;
  }

  #topServices .service-card .service-card__visual,
  body[data-page="services"] #serviceCatalog .catalog-card .service-card__visual {
    min-height: 96px;
    margin: 12px 0;
  }

  #topServices .service-card .service-card__visual img,
  body[data-page="services"] #serviceCatalog .catalog-card .service-card__visual img {
    width: min(124px, 64%);
    max-height: 98px;
  }

  #topServices .service-card h3,
  body[data-page="services"] #serviceCatalog .catalog-card h2 {
    font-size: 16px;
  }
}

/* THMH UI pass 7: compact, theme-ready homepage hero without duplicate mini chart. */
body[data-page="home"] .hero {
  --hero-season-image: none;
  --hero-season-position: center;
  isolation: isolate;
  min-height: 0;
}

body[data-page="home"] .hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: var(--hero-season-image);
  background-position: var(--hero-season-position);
  background-size: cover;
  opacity: .24;
  content: "";
  pointer-events: none;
}

body[data-page="home"] .hero-grid {
  position: relative;
  z-index: 1;
  min-height: 360px;
  grid-template-columns: minmax(170px, .52fr) minmax(380px, 1.18fr) minmax(280px, .72fr);
  gap: 24px;
  padding-block: 26px;
}

body[data-page="home"] .hero-visual {
  width: min(290px, 100%);
  justify-self: end;
  align-self: end;
}

body[data-page="home"] .hero h1 {
  max-width: 650px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
}

body[data-page="home"] .hero-slogan {
  margin-top: 14px;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.4;
}

body[data-page="home"] .hero-description {
  max-width: 620px;
  font-size: 15.5px;
  line-height: 1.55;
}

body[data-page="home"] .hero-actions {
  gap: 10px;
  margin-top: 20px;
}

body[data-page="home"] .hero-actions .button {
  min-height: 44px;
  padding: 9px 16px;
}

body[data-page="home"] .hero-stats {
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 18px 52px rgba(0, 16, 51, .21);
}

body[data-page="home"] .hero-stats-head {
  align-items: center;
  margin-bottom: 10px;
}

body[data-page="home"] .hero-stats-head .eyebrow {
  margin-bottom: 3px;
  font-size: 10px;
}

body[data-page="home"] .hero-stats h2 {
  font-size: 16px;
}

body[data-page="home"] .updated-at {
  max-width: 92px;
  font-size: 10px;
  line-height: 1.35;
  text-align: right;
}

body[data-page="home"] .hero-stats .stat-grid {
  gap: 8px;
}

body[data-page="home"] .hero-stats .stat-card {
  min-height: 78px;
  border-radius: 13px;
  padding: 10px 11px;
}

body[data-page="home"] .hero-stats .stat-card span {
  font-size: 10.5px;
}

body[data-page="home"] .hero-stats .stat-card strong {
  margin: 2px 0 0;
  font-size: 23px;
}

body[data-page="home"] .hero-stats .stat-card small {
  font-size: 9.5px;
  line-height: 1.35;
}

body[data-page="home"] .hero .hero-chart {
  display: none;
}

@media (max-width: 1080px) {
  body[data-page="home"] .hero-grid {
    min-height: 0;
    grid-template-columns: minmax(180px, .58fr) minmax(0, 1.42fr);
    gap: 20px;
    padding-block: 30px;
  }

  body[data-page="home"] .hero-visual {
    grid-row: 1 / 3;
    width: min(260px, 100%);
  }

  body[data-page="home"] .hero-stats {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 28px;
  }

  body[data-page="home"] .hero-visual {
    grid-row: auto;
    width: min(230px, 72vw);
    justify-self: center;
    order: 2;
  }

  body[data-page="home"] .hero-grid > div {
    order: 1;
  }

  body[data-page="home"] .hero-stats {
    grid-column: auto;
    order: 3;
  }

  body[data-page="home"] .hero h1 {
    font-size: clamp(32px, 10vw, 42px);
  }

  body[data-page="home"] .hero-actions .button {
    width: 100%;
  }
}

/* THMH icon pass: smaller, icon-first artwork for public service cards */
#topServices .service-card .service-card__visual,
body[data-page="services"] #serviceCatalog .catalog-card .service-card__visual {
  min-height: 86px;
  margin: 10px 0 12px;
}

#topServices .service-card .service-card__visual img,
body[data-page="services"] #serviceCatalog .catalog-card .service-card__visual img {
  width: min(104px, 54%);
  max-height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(31, 93, 185, 0.12));
}

@media (max-width: 760px) {
  #topServices .service-card .service-card__visual img,
  body[data-page="services"] #serviceCatalog .catalog-card .service-card__visual img {
    width: min(96px, 52%);
    max-height: 76px;
  }
}

/* THMH quick-access compact pass: tighter cards and refined student profile icon. */
body[data-page="home"] #truy-cap-nhanh {
  padding-block: 28px 20px;
}

body[data-page="home"] #truy-cap-nhanh .section-head {
  margin-bottom: 22px;
}

body[data-page="home"] #truy-cap-nhanh .section-head h2 {
  font-size: clamp(29px, 3.2vw, 40px);
}

body[data-page="home"] #truy-cap-nhanh .section-head p {
  margin-top: 9px;
  font-size: 14px;
}

body[data-page="home"] #truy-cap-nhanh .quick-grid {
  gap: 16px;
}

body[data-page="home"] #truy-cap-nhanh .quick-card {
  min-height: 206px;
  grid-template-columns: 70px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 14px 16px;
  border-radius: 22px;
  padding: 20px 18px 18px;
}

body[data-page="home"] #truy-cap-nhanh .quick-card::before {
  width: 54%;
  height: 58px;
}

body[data-page="home"] #truy-cap-nhanh .quick-card::after {
  right: -42px;
  top: -48px;
  width: 112px;
  height: 112px;
}

body[data-page="home"] #truy-cap-nhanh .quick-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 31px;
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.42), 0 8px 18px color-mix(in srgb, var(--quick-accent) 10%, transparent);
}

body[data-page="home"] #truy-cap-nhanh .quick-icon--student svg {
  width: 46px;
  height: 46px;
  display: block;
}

body[data-page="home"] #truy-cap-nhanh .quick-copy strong {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.28;
}

body[data-page="home"] #truy-cap-nhanh .quick-copy small {
  min-height: 2.9em;
  padding-right: 40px;
  font-size: 13px;
  line-height: 1.5;
}

body[data-page="home"] #truy-cap-nhanh .quick-arrow {
  right: 16px;
  bottom: 16px;
  width: 38px;
  height: 38px;
  font-size: 21px;
}

body[data-page="home"] #truy-cap-nhanh .availability {
  left: 18px;
  bottom: 18px;
  padding: 4px 10px;
  font-size: 10.5px;
}

@media (max-width: 1080px) {
  body[data-page="home"] #truy-cap-nhanh .quick-card {
    min-height: 190px;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] #truy-cap-nhanh {
    padding-block: 24px 18px;
  }

  body[data-page="home"] #truy-cap-nhanh .quick-grid {
    gap: 12px;
  }

  body[data-page="home"] #truy-cap-nhanh .quick-card {
    min-height: 172px;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px 14px;
    border-radius: 20px;
    padding: 17px 16px;
  }

  body[data-page="home"] #truy-cap-nhanh .quick-icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }

  body[data-page="home"] #truy-cap-nhanh .quick-icon--student svg {
    width: 40px;
    height: 40px;
  }

  body[data-page="home"] #truy-cap-nhanh .quick-copy strong {
    font-size: 17px;
  }

  body[data-page="home"] #truy-cap-nhanh .quick-copy small {
    min-height: 0;
    padding-right: 36px;
    font-size: 12.5px;
  }

  body[data-page="home"] #truy-cap-nhanh .quick-arrow {
    right: 14px;
    bottom: 14px;
    width: 34px;
    height: 34px;
    font-size: 19px;
  }
}

/* THMH public service cards — borrowed visual architecture from the legacy THMX portal. */
#topServices.service-rank-grid,
body[data-page="services"] #serviceCatalog.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

#topServices .service-card.service-card--legacy,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy {
  --service-accent: #2f80ed;
  --service-soft: #eef7ff;
  position: relative;
  min-width: 0;
  min-height: 128px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas:
    "icon body"
    "icon action";
  column-gap: 13px;
  row-gap: 6px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--service-accent) 28%, #d8e7f5);
  border-top: 4px solid var(--service-accent);
  border-radius: 16px;
  padding: 14px 14px 12px;
  background:
    radial-gradient(circle at 96% 10%, color-mix(in srgb, var(--service-accent) 11%, transparent), transparent 32%),
    linear-gradient(150deg, #ffffff 0%, var(--service-soft) 145%);
  color: #10265f;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(10, 88, 170, .06), inset 0 1px 0 rgba(255,255,255,.92);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, filter .16s ease;
}

#topServices .service-card.service-card--legacy::before,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy::before {
  position: absolute;
  right: -24px;
  bottom: -38px;
  width: 112px;
  height: 78px;
  border-radius: 55% 0 0 0;
  background: color-mix(in srgb, var(--service-accent) 9%, transparent);
  content: "";
  pointer-events: none;
}

#topServices .service-card.service-card--legacy:hover,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--service-accent) 48%, #d8e7f5);
  box-shadow: 0 14px 28px rgba(10, 88, 170, .11), inset 0 1px 0 #fff;
}

#topServices .service-card.service-tone-teal,
body[data-page="services"] #serviceCatalog .service-tone-teal { --service-accent:#13b8ad; --service-soft:#effcf9; }
#topServices .service-card.service-tone-sky,
body[data-page="services"] #serviceCatalog .service-tone-sky { --service-accent:#39a7f0; --service-soft:#eff8ff; }
#topServices .service-card.service-tone-amber,
body[data-page="services"] #serviceCatalog .service-tone-amber { --service-accent:#f4a21a; --service-soft:#fff9ec; }
#topServices .service-card.service-tone-violet,
body[data-page="services"] #serviceCatalog .service-tone-violet { --service-accent:#8b6de9; --service-soft:#f7f3ff; }
#topServices .service-card.service-tone-rose,
body[data-page="services"] #serviceCatalog .service-tone-rose { --service-accent:#ec6f9d; --service-soft:#fff3f8; }
#topServices .service-card.service-tone-cyan,
body[data-page="services"] #serviceCatalog .service-tone-cyan { --service-accent:#21b5cc; --service-soft:#effcff; }
#topServices .service-card.service-tone-green,
body[data-page="services"] #serviceCatalog .service-tone-green { --service-accent:#39ad70; --service-soft:#f1fcf5; }
#topServices .service-card.service-tone-orange,
body[data-page="services"] #serviceCatalog .service-tone-orange { --service-accent:#f18439; --service-soft:#fff5ed; }
#topServices .service-card.service-tone-indigo,
body[data-page="services"] #serviceCatalog .service-tone-indigo { --service-accent:#6475df; --service-soft:#f2f4ff; }
#topServices .service-card.service-tone-blue,
body[data-page="services"] #serviceCatalog .service-tone-blue { --service-accent:#2f80ed; --service-soft:#eef7ff; }

#topServices .service-card.service-card--legacy .service-card__visual,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .service-card__visual {
  grid-area: icon;
  min-height: 0;
  display: grid;
  place-items: center;
  align-self: center;
  margin: 0;
}

#topServices .service-card.service-card--legacy .service-card__icon-frame,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .service-card__icon-frame {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--service-accent) 30%, #dce9f6);
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 28%, #fff 0 20%, transparent 21%),
    linear-gradient(145deg, #ffffff 0%, color-mix(in srgb, var(--service-accent) 11%, white) 100%);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--service-accent) 12%, transparent), inset 0 0 0 5px rgba(255,255,255,.45);
}

#topServices .service-card.service-card--legacy .service-card__legacy-icon,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .service-card__legacy-icon {
  display: grid;
  place-items: center;
  font-size: 31px;
  line-height: 1;
  filter: drop-shadow(0 3px 4px rgba(15,23,42,.13));
}

#topServices .service-card.service-card--legacy .service-card__body,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .catalog-card__body {
  grid-area: body;
  min-width: 0;
  display: block;
  align-self: center;
}

#topServices .service-card.service-card--legacy h3,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy h2 {
  min-height: 0;
  margin: 0;
  color: #10265f !important;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: -.008em;
  overflow-wrap: break-word;
}

#topServices .service-card.service-card--legacy p,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy p {
  margin: 5px 0 0;
  color: #60728b;
  font-size: 12px;
  line-height: 1.38;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#topServices .service-card.service-card--legacy .service-cta,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .service-cta {
  grid-area: action;
  width: max-content;
  min-width: 108px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--service-accent) 32%, #d8e6ef);
  border-radius: 999px;
  background: color-mix(in srgb, var(--service-accent) 10%, white);
  color: color-mix(in srgb, var(--service-accent) 76%, #173b62);
  font-size: 11.5px;
  line-height: 1;
  font-weight: 850;
}

#topServices .service-card.service-card--legacy .service-cta__lead::before,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .service-cta__lead::before {
  display: none;
}

#topServices .service-card.service-card--legacy .service-cta__arrow,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .service-cta__arrow {
  font-size: 17px;
  line-height: .8;
}

#topServices .service-card.service-card--legacy .rank,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .rank,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .service-group-badge {
  position: absolute;
  z-index: 3;
  right: 10px;
  top: 8px;
  left: auto;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--service-accent) 24%, white);
  border-radius: 999px;
  background: color-mix(in srgb, var(--service-accent) 11%, white);
  color: color-mix(in srgb, var(--service-accent) 78%, #173b62);
  font-size: 9.5px;
  line-height: 1;
  font-weight: 900;
  box-shadow: none;
}

#topServices .service-card.service-card--legacy .rank::before,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .rank::before {
  color: #f5b400;
  content: "★";
}

/* Press feedback for every public interactive control. */
:where(
  button,
  a.button,
  .button,
  .brand,
  .main-nav a,
  .admin-link,
  .footer-links a,
  .footer-social a,
  .hero-actions a,
  .quick-card,
  .service-card,
  .catalog-card,
  .news-card,
  .school-form-card,
  .faq-question,
  .read-more,
  [role="button"]
) {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .13s cubic-bezier(.2,.8,.2,1), box-shadow .13s ease, filter .13s ease !important;
}

:where(
  button,
  a.button,
  .button,
  .brand,
  .main-nav a,
  .admin-link,
  .footer-links a,
  .footer-social a,
  .hero-actions a,
  .quick-card,
  .service-card,
  .catalog-card,
  .news-card,
  .school-form-card,
  .faq-question,
  .read-more,
  [role="button"]
):active,
:where(
  button,
  a.button,
  .button,
  .brand,
  .main-nav a,
  .admin-link,
  .footer-links a,
  .footer-social a,
  .hero-actions a,
  .quick-card,
  .service-card,
  .catalog-card,
  .news-card,
  .school-form-card,
  .faq-question,
  .read-more,
  [role="button"]
).is-pressing {
  transform: translateY(1px) scale(.985) !important;
  filter: saturate(1.05) brightness(.98) !important;
  box-shadow: 0 4px 10px rgba(10,88,170,.12), inset 0 2px 7px rgba(15,23,42,.07) !important;
}

@media (max-width: 980px) {
  #topServices.service-rank-grid,
  body[data-page="services"] #serviceCatalog.catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  #topServices.service-rank-grid,
  body[data-page="services"] #serviceCatalog.catalog-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  #topServices .service-card.service-card--legacy,
  body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy {
    min-height: 116px;
    grid-template-columns: 62px minmax(0, 1fr);
    column-gap: 11px;
    border-radius: 14px;
    padding: 12px;
  }

  #topServices .service-card.service-card--legacy .service-card__icon-frame,
  body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .service-card__icon-frame {
    width: 56px;
    height: 56px;
    border-radius: 15px;
  }

  #topServices .service-card.service-card--legacy .service-card__legacy-icon,
  body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .service-card__legacy-icon {
    font-size: 27px;
  }

  #topServices .service-card.service-card--legacy h3,
  body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy h2 {
    font-size: 14px;
  }

  #topServices .service-card.service-card--legacy p,
  body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy p {
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(button, a.button, .button, .brand, .main-nav a, .admin-link, .footer-links a, .footer-social a, .hero-actions a, .quick-card, .service-card, .catalog-card, .news-card, .school-form-card, .faq-question, .read-more, [role="button"]) {
    transition: none !important;
  }
}

/* THMH service-card ratio pass + work-schedule preview UI. */
#topServices.service-rank-grid,
body[data-page="services"] #serviceCatalog.catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

#topServices .service-card.service-card--legacy,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy {
  min-height: 206px;
  grid-template-columns: 68px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "icon badge"
    "icon body"
    "icon action";
  column-gap: 16px;
  row-gap: 8px;
  padding: 18px 16px 16px;
  border-radius: 22px;
}

#topServices .service-card.service-card--legacy .service-card__visual,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .service-card__visual {
  align-self: start;
  padding-top: 4px;
}

#topServices .service-card.service-card--legacy .service-card__icon-frame,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .service-card__icon-frame {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

#topServices .service-card.service-card--legacy .service-card__body,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .catalog-card__body {
  align-self: start;
  min-height: 0;
}

#topServices .service-card.service-card--legacy h3,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy h2 {
  display: -webkit-box;
  min-height: 0;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#topServices .service-card.service-card--legacy p,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy p {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.45;
  -webkit-line-clamp: 4;
}

#topServices .service-card.service-card--legacy .service-cta,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .service-cta {
  grid-area: action;
  justify-self: start;
  align-self: end;
  min-width: 112px;
  margin-top: 2px;
}

#topServices .service-card.service-card--legacy .rank,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .rank,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .service-group-badge {
  position: static;
  grid-area: badge;
  justify-self: end;
  align-self: start;
  max-width: 100%;
  white-space: nowrap;
}

body[data-page="services"] #serviceCatalog .service-preview-notice {
  grid-column: 1 / -1;
  border-style: dashed;
  background: #f5fbff;
}

body[data-page="services"] #serviceCatalog .service-card--preview {
  border-style: dashed;
}

body[data-page="services"] #serviceCatalog .service-preview-badge {
  color: #0f766e;
  background: #ecfdf5;
  border-color: #99f6e4;
}

@media (max-width: 1180px) {
  #topServices.service-rank-grid,
  body[data-page="services"] #serviceCatalog.catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #topServices.service-rank-grid,
  body[data-page="services"] #serviceCatalog.catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  #topServices.service-rank-grid,
  body[data-page="services"] #serviceCatalog.catalog-grid {
    grid-template-columns: 1fr;
  }

  #topServices .service-card.service-card--legacy,
  body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy {
    min-height: 174px;
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 13px;
    padding: 15px 14px;
    border-radius: 18px;
  }

  #topServices .service-card.service-card--legacy .service-card__icon-frame,
  body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .service-card__icon-frame {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  #topServices .service-card.service-card--legacy h3,
  body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy h2 {
    font-size: 15px;
  }

  #topServices .service-card.service-card--legacy p,
  body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy p {
    font-size: 12px;
    -webkit-line-clamp: 3;
  }
}

.work-schedule-preview {
  width: min(100% - 32px, 1260px);
  margin: 28px auto 0;
  display: grid;
  gap: 20px;
}

.preview-only-banner,
.work-status-panel,
.work-calendar-panel,
.work-approval-panel {
  border: 1px solid #d7e7f5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(8, 50, 117, .07);
}

.preview-only-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-style: dashed;
  background: linear-gradient(135deg, #effcf9, #f7fbff);
  color: #0f5e57;
}

.preview-only-banner strong {
  font-size: 14px;
  font-weight: 900;
}

.preview-only-banner span {
  color: #587087;
  font-size: 13px;
}

.work-status-panel,
.work-calendar-panel,
.work-approval-panel {
  padding: 22px;
}

.preview-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.preview-section-head p {
  margin: 0 0 4px;
  color: #0f8f83;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.preview-section-head h2 {
  margin: 0;
  color: #10265f;
  font-size: 24px;
  line-height: 1.2;
}

.preview-section-head--actions {
  align-items: center;
}

.work-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.work-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 850;
}

.work-status--draft { color: #475569; background: #f1f5f9; border-color: #cbd5e1; }
.work-status--pending { color: #9a5d00; background: #fff8e1; border-color: #f9d37a; }
.work-status--supplement { color: #9a3412; background: #fff1e8; border-color: #fdba74; }
.work-status--approved { color: #166534; background: #ecfdf3; border-color: #86efac; }
.work-status--rejected { color: #b91c1c; background: #fff1f2; border-color: #fda4af; }
.work-status--cancelled { color: #52525b; background: #f4f4f5; border-color: #d4d4d8; }

.preview-helper,
.work-week-label,
.preview-action-message {
  margin: 12px 0 0;
  color: #60728b;
  font-size: 13px;
  line-height: 1.5;
}

.work-week-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.work-week-controls button {
  min-height: 38px;
  padding: 8px 12px;
}

.work-week-label {
  margin: -4px 0 14px;
  font-weight: 750;
}

.work-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.work-day {
  min-width: 0;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid #dce8f3;
  border-radius: 16px;
  background: #fbfdff;
}

.work-day--today {
  border-color: #58b9ae;
  box-shadow: 0 0 0 3px rgba(19, 184, 173, .12);
}

.work-day header {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-bottom: 1px solid #e4edf6;
  background: #f5f9fd;
}

.work-day--today header {
  background: #ecfbf8;
}

.work-day header strong {
  color: #10265f;
  font-size: 13px;
}

.work-day header span {
  color: #64748b;
  font-size: 12px;
}

.work-day header em {
  width: max-content;
  border-radius: 999px;
  padding: 3px 7px;
  background: #0f8f83;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.work-day__events {
  padding: 10px;
}

.work-day__empty {
  margin: 0;
  color: #94a3b8;
  font-size: 11.5px;
  line-height: 1.45;
  text-align: center;
}

.work-event {
  width: 100%;
  display: grid;
  gap: 4px;
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 9px;
  background: #ecfdf3;
  color: #166534;
  text-align: left;
  cursor: pointer;
}

.work-event small {
  font-size: 9px;
  font-weight: 900;
}

.work-event strong {
  font-size: 12px;
  line-height: 1.3;
}

.work-event span {
  font-size: 10.5px;
}

.work-approval-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: 18px;
}

.work-approval-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.work-approval-summary > div {
  border: 1px solid #e0eaf4;
  border-radius: 14px;
  padding: 12px;
  background: #fbfdff;
}

.work-approval-summary__wide {
  grid-column: 1 / -1;
}

.work-approval-summary dt {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.work-approval-summary dd {
  margin: 5px 0 0;
  color: #10265f;
  font-size: 13px;
  font-weight: 750;
}

.work-approval-actions {
  border: 1px solid #e0eaf4;
  border-radius: 16px;
  padding: 16px;
  background: #f8fbff;
}

.work-approval-actions label {
  display: block;
  margin-bottom: 7px;
  color: #10265f;
  font-size: 13px;
  font-weight: 850;
}

.work-approval-actions textarea,
.work-directory-search {
  width: 100%;
  border: 1px solid #cfe0ef;
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
  color: #10265f;
  font: inherit;
}

.work-approval-actions .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.work-approval-actions .danger {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.work-directory-search {
  margin-bottom: 8px;
}

.work-directory-status {
  display: block;
  margin-top: 7px;
  color: #6b7f95;
  font-size: 12px;
  line-height: 1.4;
}

.work-schedule-preview-mode .turnstile-card {
  display: none !important;
}

.work-schedule-preview-mode .form-section__grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.work-schedule-preview-mode .field[data-key="hoTen"],
.work-schedule-preview-mode .field[data-key="boPhan"],
.work-schedule-preview-mode .field[data-key="donViTrieuTap"],
.work-schedule-preview-mode .field[data-key="donViTrieuTapKhac"] {
  grid-column: span 3;
}

.work-schedule-preview-mode .field[data-key="boPhanKhac"] {
  grid-column: 4 / -1;
}

.work-schedule-preview-mode .field[data-key="thoiGianBatDau"],
.work-schedule-preview-mode .field[data-key="thoiGianKetThuc"],
.work-schedule-preview-mode .field[data-key="caNgay"] {
  grid-column: span 2;
}

.work-schedule-preview-mode .field[data-key="mucDichLyDo"],
.work-schedule-preview-mode .field[data-key="ghiChuBoSung"],
.work-schedule-preview-mode .field[data-key="tepDinhKem"] {
  grid-column: 1 / -1;
}

.work-schedule-all-day .field[data-key="thoiGianBatDau"],
.work-schedule-all-day .field[data-key="thoiGianKetThuc"] {
  background: #f5fbf9;
  border-radius: 14px;
  padding: 10px;
}

.work-event-dialog {
  width: min(620px, calc(100% - 24px));
  border: 0;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 24px 70px rgba(15,23,42,.25);
}

.work-event-dialog::backdrop {
  background: rgba(15,23,42,.48);
}

.work-event-dialog form {
  padding: 18px;
}

.work-event-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.work-event-dialog__head p {
  margin: 0 0 3px;
  color: #0f8f83;
  font-size: 11px;
  font-weight: 900;
}

.work-event-dialog__head h2 {
  margin: 0;
  color: #10265f;
}

.work-event-dialog__head button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  padding: 0;
}

.work-event-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.work-event-details > div {
  border: 1px solid #e0eaf4;
  border-radius: 12px;
  padding: 11px;
}

.work-event-details dt {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.work-event-details dd {
  margin: 4px 0 0;
  color: #10265f;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .work-week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-approval-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .work-schedule-preview {
    width: min(100% - 20px, 1260px);
    margin-top: 18px;
  }

  .preview-only-banner,
  .preview-section-head,
  .preview-section-head--actions {
    align-items: stretch;
    flex-direction: column;
  }

  .work-status-panel,
  .work-calendar-panel,
  .work-approval-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .work-week-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .work-week-grid,
  .work-approval-summary,
  .work-event-details {
    grid-template-columns: 1fr;
  }

  .work-schedule-preview-mode .form-section__grid {
    grid-template-columns: 1fr;
  }

  .work-schedule-preview-mode .field[data-key] {
    grid-column: 1 / -1 !important;
  }

  .work-approval-actions .actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* THMH UI pass: Top 1-4, 18-service catalog and public weekly work calendar. */
#topServices.service-rank-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body[data-page="services"] #serviceCatalog.catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

#topServices .service-card.service-card--legacy,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy {
  min-height: 206px;
  grid-template-columns: 68px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "meta meta"
    "icon body"
    "icon action";
  column-gap: 14px;
  row-gap: 10px;
  padding: 14px 16px 16px;
  border-radius: 21px;
}

#topServices .service-card__meta,
body[data-page="services"] #serviceCatalog .service-card__meta {
  grid-area: meta;
  min-width: 0;
  min-height: 23px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#topServices .service-card.service-card--legacy .rank,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .rank,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .service-group-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0;
  padding: 5px 9px;
  font-size: 10px;
  line-height: 1.05;
  white-space: normal;
  text-align: center;
}

#topServices .service-card.service-card--legacy .service-card__visual,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .service-card__visual {
  align-self: start;
  padding-top: 2px;
}

#topServices .service-card.service-card--legacy .service-card__icon-frame,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .service-card__icon-frame {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

#topServices .service-card.service-card--legacy h3,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy h2 {
  min-height: 2.55em;
  font-size: 15.5px;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#topServices .service-card.service-card--legacy p,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy p {
  margin-top: 7px;
  font-size: 12.4px;
  line-height: 1.48;
  -webkit-line-clamp: 4;
}

#topServices .service-card.service-card--legacy .service-cta,
body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .service-cta {
  min-width: 116px;
  min-height: 34px;
  padding: 8px 13px;
  font-size: 11.7px;
}

body[data-page="services"] #serviceCatalog .service-card--ui-only {
  --service-accent: #0f8f83;
  --service-soft: #effcf9;
}

.home-work-calendar {
  padding-block: 34px;
}

.home-work-calendar__head {
  align-items: flex-end;
}

.home-work-calendar__panel {
  padding: 20px;
  border-radius: 22px;
}

.home-work-calendar__panel .preview-section-head h3 {
  margin: 0;
  color: #10265f;
  font-size: 20px;
  line-height: 1.2;
}

.home-work-calendar__panel .work-day {
  min-height: 148px;
}

.home-work-calendar__panel .work-day header {
  padding: 10px;
}

.home-work-calendar__panel .work-day__events {
  padding: 9px;
}

@media (max-width: 1180px) {
  body[data-page="services"] #serviceCatalog.catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  #topServices.service-rank-grid,
  body[data-page="services"] #serviceCatalog.catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-work-calendar__head {
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  #topServices.service-rank-grid,
  body[data-page="services"] #serviceCatalog.catalog-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #topServices .service-card.service-card--legacy,
  body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy {
    min-height: 180px;
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 12px;
    padding: 13px 14px 14px;
    border-radius: 18px;
  }

  #topServices .service-card.service-card--legacy .service-card__icon-frame,
  body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy .service-card__icon-frame {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  #topServices .service-card.service-card--legacy h3,
  body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy h2 {
    min-height: 0;
    font-size: 15px;
  }

  #topServices .service-card.service-card--legacy p,
  body[data-page="services"] #serviceCatalog .catalog-card.service-card--legacy p {
    font-size: 12px;
    -webkit-line-clamp: 3;
  }

  .home-work-calendar {
    padding-block: 26px;
  }

  .home-work-calendar__panel {
    padding: 15px;
    border-radius: 18px;
  }
}


/* UI9 — Khảo sát phụ huynh và lớp nhận diện thống nhất */
.survey-promotion-section{padding-block:clamp(18px,3vw,34px);background:linear-gradient(180deg,#f7fbff 0%,#eef8ff 100%)}
.survey-promotion-card{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);align-items:center;gap:clamp(24px,5vw,64px);padding:clamp(24px,4vw,48px);border:1px solid rgba(21,91,165,.14);border-radius:30px;background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(237,249,255,.98));box-shadow:0 24px 70px rgba(11,66,126,.14)}
.survey-promotion-card::before{content:"";position:absolute;inset:auto -70px -95px auto;width:280px;height:280px;border-radius:50%;background:radial-gradient(circle,rgba(52,180,139,.18),transparent 68%)}
.survey-promotion-visual{position:relative;z-index:1}.survey-community-art{width:100%;aspect-ratio:760/520;background:url("/assets/b5b/survey-community.svg") center/contain no-repeat;filter:drop-shadow(0 18px 24px rgba(15,70,125,.12))}
.survey-promotion-copy{position:relative;z-index:1}.survey-promotion-copy h2{margin:.3rem 0 .8rem;font-size:clamp(1.65rem,3vw,2.55rem);line-height:1.12;color:#0d4d8c}.survey-promotion-copy>p:not(.eyebrow){max-width:66ch;font-size:clamp(1rem,1.5vw,1.13rem);line-height:1.75;color:#38566e}
.survey-promotion-meta{display:flex;flex-wrap:wrap;gap:8px 18px;margin:18px 0;color:#536d82;font-size:.92rem}.survey-promotion-meta span{display:inline-flex;align-items:center;gap:7px}.survey-promotion-meta span::before{content:"";width:7px;height:7px;border-radius:50%;background:#26a57f}
.survey-promotion-button{min-width:210px;justify-content:center;background:linear-gradient(135deg,#0f68b9,#168eaa);box-shadow:0 12px 25px rgba(15,104,185,.25)}
.survey-page-main{background:linear-gradient(180deg,#f4faff 0%,#fff 45%,#f4faf7 100%)}
.survey-page-hero{padding:clamp(36px,6vw,78px) 0 30px;background:radial-gradient(circle at 12% 15%,rgba(44,159,225,.14),transparent 32%),radial-gradient(circle at 88% 18%,rgba(47,181,135,.14),transparent 28%)}
.survey-page-hero__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.9fr);align-items:center;gap:clamp(28px,5vw,72px)}
.survey-page-hero__copy h1{margin:.3rem 0 1rem;font-size:clamp(2rem,4.5vw,3.8rem);line-height:1.05;color:#0a4a89}.survey-page-hero__copy>p:not(.eyebrow){font-size:clamp(1.05rem,1.8vw,1.22rem);line-height:1.75;color:#3a5870}.survey-page-period{margin-top:18px;display:inline-flex;padding:10px 15px;border-radius:999px;background:#fff;border:1px solid rgba(12,94,160,.13);box-shadow:0 8px 20px rgba(10,74,137,.08);color:#285b78;font-weight:700}
.survey-page-illustration{margin:0}.survey-page-illustration .survey-community-art{filter:drop-shadow(0 22px 34px rgba(10,74,137,.14))}
.survey-embed-section{padding-top:18px}.survey-embed-card{overflow:hidden;border:1px solid rgba(13,91,77,.14);border-radius:28px;background:#fff;box-shadow:0 28px 80px rgba(18,70,110,.13)}
.survey-embed-card__head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:26px 28px;border-bottom:1px solid #e8f0f5;background:linear-gradient(135deg,#fbfdff,#f2fbf7)}.survey-embed-card__head h2{margin:.15rem 0 .4rem;color:#124e80}.survey-embed-card__head p{margin:0;color:#5c7180}
.survey-frame-wrap{position:relative;min-height:720px;background:#f5f7f9}.survey-frame-wrap iframe{display:block;width:100%;min-height:850px;border:0;background:#fff}.survey-loading{position:absolute;inset:0;display:grid;place-content:center;text-align:center;color:#456375}.survey-loading span{width:42px;height:42px;margin:0 auto 13px;border:4px solid #d7e7ef;border-top-color:#1780bd;border-radius:50%;animation:surveySpin .8s linear infinite}.survey-privacy-note{margin:0;padding:16px 28px;border-top:1px solid #e8f0f5;background:#fbfcfd;color:#657988;font-size:.91rem}
.survey-unavailable{padding:52px 30px;text-align:center;border:1px solid #dfeaf0;border-radius:28px;background:#fff;box-shadow:0 20px 60px rgba(18,70,110,.1)}.survey-unavailable>span{display:block;font-size:3.4rem}.survey-unavailable h2{color:#154f7e}
@keyframes surveySpin{to{transform:rotate(360deg)}}
@media(max-width:800px){.survey-promotion-card,.survey-page-hero__grid{grid-template-columns:1fr}.survey-promotion-visual{max-width:420px;margin:auto}.survey-promotion-copy{text-align:center}.survey-promotion-copy>p:not(.eyebrow){margin-inline:auto}.survey-promotion-meta{justify-content:center}.survey-page-hero__copy{text-align:center}.survey-page-period{justify-content:center}.survey-page-illustration{max-width:500px;margin:auto}.survey-embed-card__head{display:block}.survey-embed-card__head .button{margin-top:16px;width:100%}.survey-frame-wrap iframe{min-height:780px}}


/* UI9-R1: Tin tức công khai */
.article-lead{font-size:1.08rem;color:#526985;margin:-.25rem 0 1rem}.article-time{display:block;color:#687b91;margin-bottom:1.25rem}.article-cover{display:block;width:100%;max-height:520px;object-fit:cover;border-radius:20px;margin:1rem 0 1.5rem}.article-body{line-height:1.8}.article-body h2,.article-body h3{color:#123b72;margin-top:1.6em}.article-body a{color:#075ec7;text-decoration:underline}.article-actions{display:flex;gap:12px;margin-top:2rem;padding-top:1.25rem;border-top:1px solid #dce7f4}.notice>button{margin-top:12px}

/* TOP4-2 final workflow polish */
.quick-icon--image{display:grid;place-items:center;overflow:hidden}.quick-icon--image img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.quick-card--party{--quick-accent:#d71920;--quick-soft:#fff0f1}.quick-card--party .quick-icon{color:#d71920;background:#fff0f1;border-color:#ffc3c6}.quick-card--party .availability,.quick-card--party .quick-arrow{color:#d71920;border-color:#ffc3c6;background:#fff5f5}
.news-showcase{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,.85fr);gap:20px}.news-showcase__main,.news-showcase__side{min-width:0}.news-showcase__side{display:grid;gap:12px;align-content:start}.news-card--media{display:grid;grid-template-columns:132px minmax(0,1fr);gap:14px;padding:12px;border:1px solid #d9e5f1;border-radius:18px;background:#fff;text-decoration:none;color:inherit;transition:.2s ease}.news-card--media:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(13,52,92,.12)}.news-card--main{display:block;padding:0;overflow:hidden;height:100%}.news-card--main .news-card__copy{padding:18px 20px 22px}.news-card--main h3{font-size:clamp(1.15rem,2vw,1.65rem);margin:.4rem 0}.news-media{aspect-ratio:16/9;border-radius:13px;overflow:hidden;background:#e9f3fb}.news-card--main .news-media{border-radius:0}.news-media img,.news-media iframe,.news-media video{display:block;width:100%;height:100%;object-fit:cover;border:0}.news-card__copy{min-width:0}.news-card__copy h3{margin:.25rem 0 .4rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.news-card__copy p{margin:.4rem 0;color:#50677e}.news-card__copy time{display:block;font-size:.82rem;color:#657d91;margin-top:.35rem}.service-card--external .service-cta__arrow{transform:rotate(-45deg)}.service-card--external.is-disabled{opacity:.62;cursor:not-allowed}.linked-school-forms{margin:0 0 20px;padding:18px;border:1px solid #cfe0ef;border-radius:18px;background:#f8fcff}.linked-school-forms h3{margin:0 0 4px}.linked-school-forms>p{margin:0 0 14px;color:#5d7287}.linked-school-form-list{display:grid;gap:10px}.linked-school-form-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px;border:1px solid #dce8f3;border-radius:14px;background:#fff}.linked-school-form-row div:first-child{display:grid;gap:4px}.linked-school-form-row small{color:#687e91}.linked-school-form-row .actions{margin:0;flex-wrap:nowrap}.file-upload--top4{border:1px solid #cbdde9;border-radius:15px;padding:14px;background:#fbfdff}.file-source-input,.camera-source-input,.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.file-icon-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.file-icon-button{display:grid;place-items:center;width:52px;height:52px;padding:0!important;border-radius:14px!important;font-size:1.35rem}.file-action-status{font-size:.85rem;color:#5d7287}.file-selection{margin-top:10px}.ticket-success{white-space:normal}.ticket-home-button{display:inline-flex;margin-top:12px;background:#0662dd!important;color:#fff!important}.academic-context-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.school-form-validity{font-size:.86rem;color:#667c90}
@media(max-width:850px){.news-showcase{grid-template-columns:1fr}.news-showcase__side{grid-template-columns:1fr}.academic-context-grid{grid-template-columns:1fr}.linked-school-form-row{align-items:flex-start;flex-direction:column}.linked-school-form-row .actions{width:100%;flex-wrap:wrap}.news-card--media{grid-template-columns:112px minmax(0,1fr)}}
@media(max-width:520px){.news-card--media{grid-template-columns:96px minmax(0,1fr);gap:10px}.file-icon-button{width:48px;height:48px}}

/* TOP4-2 upload icon controls */
.public-upload-actions{display:flex;gap:12px;align-items:center;margin:10px 0}.public-upload-icon{display:inline-grid;place-items:center;width:58px;height:58px;border:1px solid #bcd5e8;border-radius:15px;background:#f5faff;color:#0759c7;font-size:1.45rem;box-shadow:0 6px 18px rgba(13,75,122,.08)}.public-upload-icon:hover,.public-upload-icon:focus-visible{border-color:#1473e6;background:#eaf3ff;transform:translateY(-1px)}.public-selected-files{display:grid;gap:7px;margin:9px 0;color:#607987}.public-selected-file{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #d9e7ed;border-radius:10px;padding:8px 10px;background:#fff}.public-selected-file button{min-width:34px;min-height:34px;padding:4px 9px}.public-selected-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}


/* TOP4-4 UAT1 public polish */
.quick-card--party .quick-icon--image img{width:54px;height:42px;object-fit:contain;filter:drop-shadow(0 4px 6px rgba(130,20,20,.18))}
.quick-icon--supplement{font-size:2rem}
body[data-page="home"] #tin-tuc .section-head p,
body[data-page="home"] #truy-cap-nhanh .section-head p,
body[data-page="home"] #dich-vu .section-head p,
body[data-page="home"] #lich-cong-tac .section-head p,
body[data-page="home"] #quy-trinh .section-head p,
body[data-page="home"] #tinh-nang .section-head p,
body[data-page="home"] #faq .section-head p{display:none}
body[data-page="home"] #tin-tuc{padding-block:44px}
body[data-page="home"] #homeNews{gap:12px}
body[data-page="home"] #homeNews .news-feature-card{min-height:410px}
body[data-page="home"] #homeNews .news-feature-card img,body[data-page="home"] #homeNews .news-feature-media{max-height:270px}
body[data-page="home"] #homeNews .news-side-card{min-height:112px;padding:12px;gap:10px}
body[data-page="home"] #homeNews .news-side-card img,body[data-page="home"] #homeNews .news-side-media{width:108px;height:78px;object-fit:cover}
@media(max-width:760px){body[data-page="home"] #tin-tuc{padding-block:32px}body[data-page="home"] #homeNews .news-feature-card{min-height:auto}body[data-page="home"] #homeNews .news-side-card img,body[data-page="home"] #homeNews .news-side-media{width:88px;height:70px}}


/* TOP4-4 UAT2: immediate values for every public chart. */
.chart-floating-tooltip {
  position: fixed;
  z-index: 99999;
  max-width: min(300px,calc(100vw - 24px));
  transform: translate(-50%,-100%);
  pointer-events: none;
  opacity: 0;
  border-radius: 9px;
  padding: 7px 10px;
  background: rgba(3,43,91,.96);
  color: #fff;
  box-shadow: 0 8px 24px rgba(3,31,67,.24);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  transition: opacity .08s ease;
}
.chart-floating-tooltip.visible { opacity: 1; }
.line-chart circle,[data-chart-tooltip].donut-segment { cursor: help; outline: none; transition: r .12s ease,stroke-width .12s ease; }
.line-chart circle:hover,.line-chart circle:focus { r: 7; }
.donut circle[data-chart-tooltip]:hover,.donut circle[data-chart-tooltip]:focus { stroke-width: 21; }

/* TOP5: trạng thái tiếp nhận, BotAI UI-only và sinh hoạt CLB. */
.public-intake-banner{position:relative;z-index:30;padding:11px 20px;background:#fff0e8;color:#8a321d;border-bottom:1px solid #f1c2b5;text-align:center;font-weight:800}.public-intake-banner[hidden]{display:none}
.bot-ai-launcher{position:fixed;right:20px;bottom:20px;z-index:80;border:0;border-radius:999px;padding:12px 18px;background:#0b7766;color:#fff;font-weight:850;box-shadow:0 12px 32px rgba(7,61,52,.28);cursor:pointer}.bot-ai-panel{position:fixed;right:20px;bottom:76px;z-index:80;width:min(340px,calc(100vw - 32px));border:1px solid #cfe4df;border-radius:18px;padding:16px;background:#fff;box-shadow:0 22px 55px rgba(7,39,59,.22)}.bot-ai-panel[hidden]{display:none}.bot-ai-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.bot-ai-head div{display:grid}.bot-ai-head strong{color:#08235a;font-size:17px}.bot-ai-head small{color:#60746f}.bot-ai-head button{border:0;background:transparent;color:#526663;font-size:25px;cursor:pointer}.bot-ai-panel nav{display:grid;gap:8px;margin:13px 0}.bot-ai-panel nav a{border-radius:10px;padding:10px 12px;background:#edf8f5;color:#0b6658;font-weight:750;text-decoration:none}.bot-ai-panel>small{display:block;color:#6c7d79;line-height:1.45}
.club-page-main{min-height:65vh;background:#f6faf9}.club-page-hero{padding:64px 0 50px;background:linear-gradient(135deg,#08235a,#0b7766);color:#fff}.club-page-hero h1{margin:7px 0 12px;color:#fff;font-size:clamp(32px,5vw,56px)}.club-page-hero p{max-width:720px}.club-month-tabs{display:grid;grid-template-columns:repeat(8,minmax(72px,1fr));gap:8px;margin-bottom:18px}.club-month-tabs button{border:1px solid #bcd9d2;border-radius:11px;padding:11px 7px;background:#fff;color:#135e53;font-weight:800;cursor:pointer}.club-month-tabs button.active{border-color:#0b7766;background:#0b7766;color:#fff}.club-form-host{overflow:hidden;border:1px solid #d3e5e1;border-radius:18px;background:#fff;box-shadow:0 16px 40px rgba(8,50,61,.08)}.club-form-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid #e0ece9}.club-form-head h2{margin:4px 0 0;color:#08235a}.club-form-host iframe{display:block;width:100%;min-height:980px;border:0}.club-form-empty{display:grid;justify-items:center;gap:8px;padding:70px 20px;text-align:center}.club-form-empty span{font-size:40px}.club-form-empty h2{margin:0;color:#08235a}.club-form-empty p{margin:0;color:#647975}.club-form-host .survey-privacy-note{margin:0;padding:13px 20px;border-top:1px solid #e0ece9}
@media (max-width:820px){.club-month-tabs{grid-template-columns:repeat(4,1fr)}.club-form-head{align-items:flex-start;flex-direction:column}.bot-ai-launcher{right:14px;bottom:14px}.bot-ai-panel{right:16px;bottom:70px}}

/* TOP5 R4 addendum: năm tin mới nhất theo bố cục cố định 1+4. */
.news-showcase{min-height:510px;overflow:hidden}.news-showcase__main,.news-showcase__side-list{opacity:1}.news-showcase.is-switching .news-showcase__main,.news-showcase.is-switching .news-showcase__side-list{animation:newsShowcaseFade .24s ease}.news-showcase__side{display:flex;min-width:0;flex-direction:column;gap:10px}.news-showcase__side-list{display:grid;min-width:0;min-height:0;flex:1;grid-template-rows:repeat(4,minmax(0,1fr));gap:10px}.news-showcase__side-list .news-card--media{height:100%;min-height:0;grid-template-columns:minmax(108px,34%) minmax(0,1fr)}.news-showcase__side-list .news-media{min-height:0}.news-slider-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px}.news-slider-button{display:grid;width:40px;height:40px;place-items:center;border:1px solid #bfd6e5;border-radius:999px;padding:0;background:#fff;color:#0a587e;font-size:24px;line-height:1;cursor:pointer}.news-slider-button:disabled{opacity:.38;cursor:not-allowed}.news-slider-status{min-width:120px;color:#526d7f;font-size:.86rem;font-weight:800;text-align:center}@keyframes newsShowcaseFade{from{opacity:.25}to{opacity:1}}
.bot-ai-launcher{display:flex;align-items:center;gap:0;border-radius:20px 20px 6px 20px;padding:7px 9px 7px 7px}.bot-ai-robot{display:grid;width:42px;height:42px;place-items:center;border:2px solid rgba(255,255,255,.75);border-radius:50%;background:#fff;color:#0b7766;font-size:24px;box-shadow:0 5px 14px rgba(7,61,52,.18)}.bot-ai-bubble{position:relative;margin-left:8px;border-radius:12px 12px 12px 3px;padding:8px 11px;background:#fff;color:#0b6658;font-size:13px;font-weight:900}.bot-ai-bubble::before{position:absolute;left:-6px;bottom:2px;width:9px;height:9px;background:#fff;content:"";transform:rotate(45deg)}
@media(prefers-reduced-motion:reduce){.news-showcase.is-switching .news-showcase__main,.news-showcase.is-switching .news-showcase__side-list{animation:none}.news-slider-button,.news-card--media{transition:none}}
@media(max-width:850px){.news-showcase{min-height:0;overflow:visible}.news-showcase__side{min-width:0}.news-showcase__side-list{grid-template-rows:none}.news-showcase__side-list .news-card--media{grid-template-columns:112px minmax(0,1fr)}}

/* TOP5 FINAL UAT: compact homepage news without changing the approved 1+4 layout. */
body[data-page="home"] #tin-tuc{padding-block:30px}
body[data-page="home"] #tin-tuc .section-head{margin-bottom:12px}
body[data-page="home"] #tin-tuc .section-head p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body[data-page="home"] #homeNews.news-showcase{min-height:330px;gap:12px}
body[data-page="home"] #homeNews .news-card--main .news-media{max-height:180px;aspect-ratio:16/8.1}
body[data-page="home"] #homeNews .news-card--main .news-card__copy{padding:13px 16px 15px}
body[data-page="home"] #homeNews .news-card--main h3{font-size:clamp(1.05rem,1.7vw,1.38rem)}
body[data-page="home"] #homeNews .news-showcase__side{gap:7px}
body[data-page="home"] #homeNews .news-showcase__side-list{gap:7px}
body[data-page="home"] #homeNews .news-showcase__side-list .news-card--media{min-height:62px;gap:9px;padding:7px;grid-template-columns:86px minmax(0,1fr)}
body[data-page="home"] #homeNews .news-showcase__side-list .news-card__copy p{display:none}
body[data-page="home"] #homeNews .news-showcase__side-list :is(.news-category,.read-more){display:none}
body[data-page="home"] #homeNews .news-showcase__side-list .news-card__copy h3{font-size:.9rem;line-height:1.25}
body[data-page="home"] #homeNews .news-showcase__side-list .news-card__copy time{margin-top:2px;font-size:.72rem}
body[data-page="home"] #homeNews .news-slider-button{width:34px;height:34px}
@media(max-width:850px){body[data-page="home"] #tin-tuc{padding-block:30px}body[data-page="home"] #homeNews.news-showcase{min-height:0}body[data-page="home"] #homeNews .news-card--main .news-media{max-height:220px}body[data-page="home"] #homeNews .news-showcase__side-list .news-card--media{grid-template-columns:88px minmax(0,1fr)}}
@media(max-width:520px){body[data-page="home"] #tin-tuc{padding-block:24px}body[data-page="home"] #homeNews .news-card--main .news-card__copy{padding:12px}body[data-page="home"] #homeNews .news-showcase__side-list .news-card--media{grid-template-columns:76px minmax(0,1fr)}}

/* TOP5 R5: trạng thái biểu đồ ổn định, tra cứu và thông báo tiếp nhận. */
.donut-percent-label{fill:#fff;font-size:8px;font-weight:900;letter-spacing:-.3px;paint-order:stroke;stroke:rgba(5,37,63,.34);stroke-width:1.2px;pointer-events:none;text-anchor:middle;dominant-baseline:central}
.lookup-card{overflow:hidden;border-color:#cfe3df;background:linear-gradient(180deg,#fff 0%,#f8fcfb 100%)}
.lookup-card::before{content:"";display:block;height:5px;margin:-24px -24px 22px;background:linear-gradient(90deg,#12a58b,#0b4d7a)}
.lookup-card>p{color:#607a75}.lookup-form{display:grid;gap:14px}.lookup-form .form-grid{gap:13px}.lookup-form .field{padding:12px;border:1px solid #dceae7;border-radius:13px;background:#fff}.lookup-form .field:focus-within{border-color:#14a289;box-shadow:0 0 0 3px rgba(20,162,137,.1)}.lookup-form .field label{color:#164d45}.lookup-form .field input{margin-top:6px;border-color:#d1e0dd;background:#fbfdfd}.lookup-form>.button{min-height:46px;justify-content:center}.lookup-message{min-height:260px;border:1px dashed #b8d8d1;border-radius:20px;padding:26px;background:linear-gradient(145deg,#f5fbfa,#fff);color:#4f6e68;box-shadow:0 14px 34px rgba(9,73,67,.06)}
.reception-page{min-height:68vh;background:#f5faf9}.reception-hero{background:linear-gradient(130deg,#08235a 0%,#0a5d68 58%,#0b816d 100%);color:#fff}.reception-hero h1{color:#fff}.reception-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:22px;align-items:start}.reception-card,.reception-contact{border:1px solid #d2e5e1;border-radius:20px;padding:26px;background:#fff;box-shadow:0 16px 38px rgba(8,50,61,.08)}.reception-card{min-height:260px}.reception-state{display:flex;align-items:center;gap:15px;padding-bottom:18px;border-bottom:1px solid #e3eeec}.reception-state-icon{display:grid;width:48px;height:48px;place-items:center;flex:0 0 auto;border-radius:50%;background:#e8f6f3;color:#08725f;font-size:22px;font-weight:900}.reception-state h2{margin:3px 0 0;color:#08235a}.reception-state--error .reception-state-icon{background:#fff0ec;color:#b64128}.reception-state--empty .reception-state-icon{background:#fff8df;color:#9a6b00}.reception-notice{margin:24px 0;white-space:pre-wrap;color:#294d47;font-size:17px;line-height:1.75}.reception-contact{position:sticky;top:112px}.reception-contact h2{margin:5px 0 18px;color:#08235a}.reception-contact dl{display:grid;gap:0;margin:0}.reception-contact dl>div{padding:12px 0;border-bottom:1px solid #e4eeec}.reception-contact dt{color:#6a817c;font-size:12px;font-weight:850;text-transform:uppercase}.reception-contact dd{margin:4px 0 0;color:#214943;overflow-wrap:anywhere}.reception-contact dd a{color:#08725f}.reception-contact .actions{display:grid;margin-top:20px}.reception-contact .button{justify-content:center}
@media(max-width:820px){.reception-layout{grid-template-columns:1fr}.reception-contact{position:static}.lookup-message{min-height:180px}}
.legal-page{max-width:900px;border:1px solid #d6e6e2;border-radius:20px;padding:clamp(22px,4vw,42px);background:#fff;box-shadow:0 15px 38px rgba(8,50,61,.07)}.legal-page h2{margin:30px 0 8px;color:#08235a;font-size:clamp(20px,2.7vw,25px)}.legal-page p{color:#385b55;line-height:1.75}.legal-page .legal-updated{margin-top:0;color:#0b7766;font-weight:800}

/* TOP5 FINAL: desktop-only Standard/Wide layout preference; no CSS zoom or global font scaling. */
.layout-mode-control{display:none}
@media (min-width:1024px){
  html[data-public-layout="wide"] .container{width:min(1600px,calc(100% - 48px))}
  html[data-public-layout="wide"] body .next-shell,
  html[data-public-layout="wide"] body .form-shell,
  html[data-public-layout="wide"] body .guide-shell{width:min(1560px,calc(100% - 48px));max-width:none}
  .layout-mode-control{position:fixed;z-index:46;left:20px;bottom:20px;display:grid;grid-template-columns:auto auto auto;align-items:center;gap:4px;border:1px solid #c8dce9;border-radius:14px;padding:5px;background:rgba(255,255,255,.96);box-shadow:0 12px 34px rgba(8,50,117,.16);backdrop-filter:blur(10px)}
  .layout-mode-control>span{padding:0 7px;color:#526b80;font-size:11px;font-weight:800}
  .layout-mode-control button{min-height:34px;border:0;border-radius:9px;padding:6px 10px;background:transparent;color:#28506f;font-size:12px;font-weight:850;cursor:pointer}
  .layout-mode-control button[aria-pressed="true"]{background:#0b6fc7;color:#fff;box-shadow:0 5px 14px rgba(11,111,199,.2)}
}

/* TOP5_001 UI refinement — homepage news and process flow */
body[data-page="home"] #homeNews.news-showcase{
  min-height:470px;
  grid-template-columns:minmax(0,1.62fr) minmax(330px,.88fr);
  gap:14px;
}
body[data-page="home"] #homeNews .news-showcase__main{height:100%;}
body[data-page="home"] #homeNews .news-card--main{
  display:grid;
  min-height:470px;
  height:100%;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:minmax(360px,1fr) auto;
  border:1px solid #d7e5f1;
  border-radius:20px;
  background:#fff;
  box-shadow:0 16px 38px rgba(13,52,92,.08);
}
body[data-page="home"] #homeNews .news-card--main .news-media{
  position:relative;
  min-height:340px;
  max-height:none;
  height:100%;
  aspect-ratio:auto;
  border-radius:0;
  background:#e8f2fb;
}
body[data-page="home"] #homeNews .news-card--main .news-media :is(img,video,iframe){width:100%;height:100%;object-fit:cover;}
body[data-page="home"] #homeNews .news-card__media-badge{
  position:absolute;
  z-index:2;
  top:14px;
  left:14px;
  margin:0;
  border:1px solid rgba(255,255,255,.72);
  background:rgba(255,255,255,.92);
  box-shadow:0 7px 20px rgba(7,42,79,.12);
  backdrop-filter:blur(8px);
}
body[data-page="home"] #homeNews .news-card--main .news-card__copy{
  display:grid;
  grid-template-columns:minmax(0,1fr) max-content;
  grid-template-areas:"heading date" "summary action";
  align-items:center;
  column-gap:24px;
  row-gap:8px;
  padding:16px 20px 18px;
}
body[data-page="home"] #homeNews .news-card__heading{grid-area:heading;margin:0;font-size:clamp(1.1rem,1.8vw,1.42rem);line-height:1.25;}
body[data-page="home"] #homeNews .news-card__heading a{color:#082b63;text-decoration:none;}
body[data-page="home"] #homeNews .news-card__heading a:hover{text-decoration:underline;text-underline-offset:4px;}
body[data-page="home"] #homeNews .news-card__summary{grid-area:summary;min-width:0;margin:0;color:#536d82;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
body[data-page="home"] #homeNews .news-card__date{grid-area:date;align-self:start;margin:3px 0 0;color:#687f91;font-size:.82rem;white-space:nowrap;}
body[data-page="home"] #homeNews .news-card__action{grid-area:action;align-self:end;justify-self:end;white-space:nowrap;}
body[data-page="home"] #homeNews .news-showcase__side-list .news-card--media{min-height:88px;}

.process-flow{
  display:grid;
  grid-template-columns:minmax(0,1fr) 46px minmax(0,1fr) 46px minmax(0,1fr) 46px minmax(0,1fr);
  align-items:center;
  gap:0;
  counter-reset:none;
}
.process-flow .process-step{
  position:relative;
  display:flex;
  min-width:0;
  min-height:310px;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  border:1px solid #d8e7f5;
  border-radius:26px;
  padding:28px 22px 24px;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
  box-shadow:0 16px 36px rgba(16,70,126,.09);
  text-align:center;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.process-flow .process-step:hover{transform:translateY(-4px);border-color:#b8d5f1;box-shadow:0 22px 46px rgba(16,70,126,.14);}
.process-flow .process-step::before{display:none;content:none;}
.flow-step-number{
  position:absolute;
  top:18px;
  left:18px;
  display:grid;
  width:48px;
  height:48px;
  place-items:center;
  border:7px solid #e7f1ff;
  border-radius:50%;
  background:#1268d8;
  color:#fff;
  box-shadow:0 5px 15px rgba(18,104,216,.24);
  font-size:1.12rem;
  font-weight:900;
}
.flow-step-icon{display:grid;width:104px;height:104px;margin:34px auto 12px;place-items:center;color:#1670db;}
.flow-step-icon svg{display:block;width:100%;height:100%;}
.process-flow .process-step h3{margin:4px 0 8px;color:#082b63;font-size:clamp(1.08rem,1.7vw,1.38rem);}
.flow-step-accent{width:42px;height:4px;margin:0 0 13px;border-radius:999px;background:linear-gradient(90deg,#3cb3f2,#1769d2);}
.process-flow .process-step p{margin:0;color:#526a7e;font-size:.92rem;line-height:1.65;}
.process-connector{position:relative;z-index:2;display:grid;place-items:center;color:#1570dc;}
.process-connector::before,.process-connector::after{position:absolute;top:50%;width:16px;border-top:2px dotted #73abe7;content:"";}
.process-connector::before{right:50%;}.process-connector::after{left:50%;}
.process-connector>span{display:grid;width:40px;height:40px;place-items:center;border:1px solid #9cc5f1;border-radius:50%;background:#fff;box-shadow:0 8px 18px rgba(18,104,216,.13);font-size:1.45rem;font-weight:900;}

@media(max-width:1050px){
  .process-flow{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
  .process-connector{display:none;}
  .process-flow .process-step{min-height:290px;}
}
@media(max-width:850px){
  body[data-page="home"] #homeNews.news-showcase{min-height:0;grid-template-columns:1fr;}
  body[data-page="home"] #homeNews .news-card--main{min-height:0;grid-template-rows:auto auto;}
  body[data-page="home"] #homeNews .news-card--main .news-media{min-height:0;aspect-ratio:16/9;}
}
@media(max-width:620px){
  body[data-page="home"] #homeNews .news-card--main .news-card__copy{grid-template-columns:1fr;grid-template-areas:"heading" "date" "summary" "action";gap:7px;padding:14px;}
  body[data-page="home"] #homeNews .news-card__date{margin:0;white-space:normal;}
  body[data-page="home"] #homeNews .news-card__action{justify-self:start;}
  .process-flow{grid-template-columns:1fr;}
  .process-flow .process-step{min-height:0;padding:24px 22px;}
  .flow-step-icon{width:92px;height:92px;margin-top:30px;}
}
@media(prefers-reduced-motion:reduce){.process-flow .process-step{transition:none}.process-flow .process-step:hover{transform:none}}
