/* =========================================================
   IT Sothorn Design System — "Campus Service Gateway" (2026)
   Ivory surfaces, navy service accent, restrained gold
   wayfinding. IBM Plex Sans Thai for Thai, Manrope for Latin.
   ========================================================= */
:root {
  --font-heading: 'IBM Plex Sans Thai', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans Thai', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-latin: 'Manrope', 'IBM Plex Sans Thai', sans-serif;

  /* Ground & ink */
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface-muted: #f0f3f7;
  --surface-offset: #e8edf3;
  --line: #e2e7ee;
  --line-strong: #cdd6e1;
  --ink: #172a45;
  --ink-2: #34465e;
  --ink-3: #57667a;

  /* Brand */
  --brand: #173d67;
  --brand-strong: #0b2a4e;
  --brand-soft: #e7eef7;
  --navy: #102943;
  --navy-2: #0c2035;
  --on-navy: #f8fafd;
  --on-navy-muted: #c5d2e2;
  --gold: #b88a3a;
  --gold-bright: #e2be77;
  --gold-ink: #956b26;
  --gold-soft: #f4ead7;

  /* Status */
  --ok: #316b59;
  --ok-soft: #e7f0eb;
  --warn: #9a5b13;
  --danger: #ab3333;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 4px rgba(23, 42, 69, 0.04);
  --shadow: 0 8px 28px rgba(23, 42, 69, 0.07);
  --shadow-lg: 0 24px 72px rgba(16, 41, 67, 0.16);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* legacy aliases (kept so older markup keeps working) */
  --cloud-blue-500: var(--brand);
  --cloud-blue-600: var(--brand-strong);
  --primary-mcu-gold: var(--gold);
}

/* ---------- Browser surfaces ---------- */
::selection { background-color: var(--gold-soft); color: var(--brand-strong); }

html {
  overflow-x: clip;
  max-width: 100vw;
  scroll-padding-top: 6.5rem;
  accent-color: var(--brand);
  caret-color: var(--brand);
}

body {
  overflow-x: clip;
  max-width: 100vw;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background-color: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
p { overflow-wrap: break-word; text-wrap: pretty; }

a { text-underline-offset: 3px; }

.tabular-nums { font-variant-numeric: tabular-nums; }

button, a, input, select, textarea { touch-action: manipulation; }

:focus-visible {
  outline: 2px solid var(--brand) !important;
  outline-offset: 2px !important;
  border-radius: 6px;
}

::placeholder { color: #6c798b; opacity: 1; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #c6cfdb; border-radius: 9999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }
html { scrollbar-color: #c3cad6 var(--bg); }

img, video { max-width: 100%; }

/* ---------- Skip link ---------- */
.skip-to-content {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background-color: var(--ink);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: translateY(-250%);
  transition: transform 0.2s var(--ease-out);
  text-decoration: none;
}
.skip-to-content:focus { transform: translateY(0); outline: 3px solid var(--gold) !important; }

/* =========================================================
   Components (use these in every page)
   ========================================================= */

/* Container */
.container-page { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container-page { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container-page { padding-inline: 2rem; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 2.25rem; padding: 0.4rem 0.8rem; font-size: 0.8125rem; }
.btn-lg { min-height: 3.25rem; padding: 0.8rem 1.5rem; font-size: 1rem; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-muted); color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #9f1239; }
.btn-on-dark { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.18); }
.btn-on-dark:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.32); }

/* Surfaces */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 1.25rem; }
@media (min-width: 640px) { .card-pad { padding: 1.75rem; } }
.card-link { transition: border-color 0.15s ease, box-shadow 0.2s ease; }
.card-link:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }

/* Page header band (inner pages) */
.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.page-head-inner { padding-block: 2rem 1.75rem; }
@media (min-width: 1024px) { .page-head-inner { padding-block: 2.75rem 2.25rem; } }
.page-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  line-height: 1.25;
  color: var(--ink);
}
.page-lead { margin-top: 0.5rem; max-width: 65ch; color: var(--ink-3); font-size: 1rem; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 0.75rem; }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

.section-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.25rem, 1rem + 0.9vw, 1.625rem); line-height: 1.3; color: var(--ink); }
.section-lead { color: var(--ink-3); margin-top: 0.25rem; font-size: 0.9375rem; }

/* Forms */
.field-label { display: block; font-family: var(--font-heading); font-weight: 500; font-size: 0.875rem; color: var(--ink); margin-bottom: 0.375rem; }
.field-hint { font-size: 0.8125rem; color: var(--ink-3); margin-top: 0.375rem; }
.field-input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field-input:hover { border-color: #b4bdcb; }
.field-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 61, 103, 0.15); }
.field-input:user-invalid { border-color: var(--danger); }
.field-input:disabled { background: var(--surface-muted); color: var(--ink-3); }
textarea.field-input { min-height: 7rem; resize: vertical; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.55rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; line-height: 1.5; border: 1px solid transparent; white-space: nowrap; }
.badge-neutral { background: var(--surface-muted); color: var(--ink-2); border-color: var(--line); }
.badge-brand { background: var(--brand-soft); color: var(--brand-strong); border-color: #cddbec; }
.badge-gold { background: var(--gold-soft); color: var(--gold-ink); border-color: #e9d6b1; }
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: #cbe0d4; }
.badge-warn { background: #fff7ed; color: var(--warn); border-color: #fde3c4; }
.badge-danger { background: #fff1f3; color: var(--danger); border-color: #fecdd6; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th { text-align: left; font-family: var(--font-heading); font-weight: 600; font-size: 0.8125rem; color: var(--ink-3); background: var(--surface-muted); padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-2); }
.data-table tbody tr:hover { background: #fafbfc; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Alerts */
.alert { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.875rem 1rem; border-radius: var(--radius); border: 1px solid; font-size: 0.9375rem; }
.alert-info { background: var(--brand-soft); border-color: #cddbec; color: var(--brand-strong); }
.alert-ok { background: #ecfdf3; border-color: #c6f0d5; color: #14532d; }
.alert-warn { background: #fff7ed; border-color: #fde3c4; color: #7c2d12; }
.alert-danger { background: #fff1f3; border-color: #fecdd6; color: #881337; }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--ink-3); }
.empty-state i { font-size: 2rem; color: #b4bdcb; margin-bottom: 0.75rem; display: block; }

/* Icon tile (small, used in lists) */
.icon-tile { width: 2.75rem; height: 2.75rem; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 1.05rem; }
.icon-tile-gold { background: var(--gold-soft); color: var(--gold-ink); }

/* =========================================================
   Site chrome — utility bar, header, footer
   ========================================================= */
.utility-bar { background: var(--navy); color: var(--on-navy-muted); font-size: 0.8125rem; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.25rem; }
.utility-info { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.utility-info .dot { width: 5px; height: 5px; border-radius: 9999px; background: var(--gold-bright); flex-shrink: 0; }
.utility-info span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.utility-links { display: flex; align-items: center; gap: 1.25rem; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.utility-links a, .utility-links button { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.25rem; color: var(--on-navy); text-decoration: none; cursor: pointer; }
.utility-links a:hover, .utility-links button:hover { color: var(--gold-bright); }
.utility-links i { font-size: 0.75rem; color: var(--on-navy-muted); }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 6rem; }
.brand { display: flex; align-items: center; gap: 0.875rem; min-width: 0; text-decoration: none; color: var(--ink); }
.brand img { width: auto; height: 5rem; object-fit: contain; flex-shrink: 0; }
.brand-title { display: block; font-weight: 700; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--brand-strong); }
.brand-sub { display: block; font-size: 0.875rem; color: var(--ink-3); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.header-nav { display: flex; align-items: center; gap: 1.5rem; font-size: 0.9375rem; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 0.375rem;
  min-height: 2.75rem; color: var(--ink); white-space: nowrap; cursor: pointer;
  text-decoration: none; background: none; border: 0; padding: 0;
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--brand); }
.nav-link.is-active { color: var(--brand); }
.nav-link.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.25rem; height: 2px; background: var(--gold); }
.nav-link .fa-chevron-down { font-size: 0.625rem; color: var(--ink-3); transition: transform 0.2s ease; }

.nav-dropdown-panel {
  position: absolute; left: -1rem; top: 100%; padding-top: 0.5rem; width: 21rem; z-index: 50;
  opacity: 0; visibility: hidden; transform: translateY(4px); pointer-events: none;
  transition: opacity 0.16s ease, transform 0.2s var(--ease-out), visibility 0.16s;
}
.nav-group:hover > .nav-dropdown-panel,
.nav-group:focus-within > .nav-dropdown-panel,
.nav-group > button[aria-expanded="true"] + .nav-dropdown-panel {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
.nav-group:hover > button .fa-chevron-down,
.nav-group > button[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
.nav-menu { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.375rem; }
.nav-item { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.625rem 0.75rem; border-radius: var(--radius-md); color: var(--ink); text-decoration: none; }
.nav-item:hover, .nav-item.is-active { background: var(--surface-muted); }
.nav-item i { width: 1.25rem; text-align: center; margin-top: 0.3rem; color: var(--brand); }
.nav-item-title { font-weight: 500; font-size: 0.9375rem; line-height: 1.4; }
.nav-item-desc { font-size: 0.8125rem; color: var(--ink-3); line-height: 1.45; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.icon-btn {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-md);
  color: var(--ink-3); background: none; border: 0; cursor: pointer; text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { background: var(--surface-muted); color: var(--ink); }
.menu-btn { display: none; }

.mobile-drawer { border-top: 1px solid var(--line); background: var(--surface); max-height: calc(100dvh - 5rem); overflow-y: auto; }
.mobile-drawer-inner { padding-block: 0.75rem 1.5rem; display: grid; gap: 1rem; }
.drawer-group-label { display: block; font-size: 0.8125rem; color: var(--ink-3); padding: 0 0.75rem 0.25rem; }
.drawer-link {
  display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md); color: var(--ink); text-decoration: none; font-size: 0.9375rem;
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
}
.drawer-link i { width: 1.25rem; text-align: center; color: var(--brand); }
.drawer-link:hover { background: var(--surface-muted); }
.drawer-link.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

@media (max-width: 1100px) {
  .header-nav { gap: 1.1rem; font-size: 0.875rem; }
  .brand-sub { display: none; }
  .brand img { height: 4.25rem; }
  .brand-title { font-size: 1.125rem; white-space: nowrap; }
}
@media (max-width: 1023px) {
  .header-nav, .header-actions .hide-mobile { display: none; }
  .menu-btn { display: inline-grid; }
  .header-inner { min-height: 5rem; }
  .brand-sub { display: block; }
  .brand img { height: 4rem; }
}
@media (max-width: 640px) {
  .utility-info .hide-sm, .utility-links .hide-sm { display: none; }
  .brand { gap: 0.625rem; }
  .header-inner { min-height: 4.5rem; }
  .brand img { height: 3.5rem; }
  .brand-title { font-size: 1.0625rem; }
  .brand-sub { font-size: 0.75rem; }
  .header-actions .btn { display: none; }
}

/* Footer */
.site-footer { background: var(--surface); color: var(--ink-3); border-top: 1px solid var(--line); padding-block: 2.75rem 1.25rem; }
.site-footer a { color: var(--ink-3); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 2.5rem; }
.footer-description { font-size: 0.9375rem; margin-top: 1rem; max-width: 40ch; }
.footer-heading { font-size: 0.9375rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.footer-links { display: grid; }
.footer-links a { display: flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; font-size: 0.9375rem; }
.footer-links a .fa-arrow-up-right-from-square { font-size: 0.6875rem; opacity: 0.7; }
.footer-contact { font-size: 0.9375rem; display: grid; gap: 0.5rem; font-variant-numeric: tabular-nums; }
.footer-contact p { display: flex; gap: 0.6rem; align-items: baseline; }
.footer-contact i { width: 1rem; color: var(--brand); font-size: 0.8125rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; font-size: 0.8125rem; }
.footer-stats { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.footer-stats b { color: var(--ink); font-weight: 600; }
.footer-stats .live { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ok); }
.footer-stats .live::before { content: ''; width: 6px; height: 6px; border-radius: 9999px; background: currentColor; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* Dark page band (inner pages: news, booking, downloads, personnel, survey) */
.hero-band { background-color: var(--navy); color: var(--on-navy); position: relative; isolation: isolate; }
.hero-band::after { content: ''; position: absolute; inset: auto 0 0 0; height: 1px; background: rgba(226, 190, 119, 0.45); z-index: -1; }

/* =========================================================
   Home — service gateway
   ========================================================= */
.home-hero { background: var(--surface); padding-block: 3rem 4rem; }
.home-hero-grid { display: grid; grid-template-columns: 1.06fr 1fr; gap: 4rem; align-items: center; }
.home-hero h1 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.45; color: var(--ink); text-wrap: balance; }
.home-hero h1 .accent { color: var(--brand); display: block; }
.nw { white-space: nowrap; }
.home-hero .intro { margin-top: 1rem; max-width: 46ch; color: var(--ink-3); font-size: 1.0625rem; }

.searchbox { display: flex; gap: 0.5rem; align-items: center; margin-top: 1.5rem; padding: 0.5rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 36rem; }
.searchbox > i { margin-left: 0.6rem; color: var(--ink-3); }
.searchbox input { min-width: 0; flex: 1; border: 0; background: transparent; min-height: 2.75rem; outline: none; font-size: 1rem; color: var(--ink); }
.searchbox:focus-within { outline: 2px solid var(--brand); outline-offset: 3px; }
.searchbox input:focus-visible { outline: none !important; }
.search-hints { display: flex; gap: 0.25rem 0.5rem; align-items: center; flex-wrap: wrap; margin-top: 0.25rem; font-size: 0.8125rem; color: var(--ink-3); }
.search-hints a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: 0.25rem; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.search-hints a:hover { color: var(--brand); text-decoration-color: currentColor; }

.hero-visual { position: relative; padding-bottom: 1rem; }
.hero-visual .stage { position: relative; aspect-ratio: 1.29; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); isolation: isolate; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.7s var(--ease-out), visibility 0.7s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75); }
.hero-slide::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(12, 32, 53, 0.88)); pointer-events: none; }
.hero-slide-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 90% at 80% 10%, #1d4a78 0%, var(--navy) 55%, var(--navy-2) 100%); }
.hero-slide-fallback img { width: 34%; height: auto; object-fit: contain; filter: none; opacity: 0.9; }
.hero-slide figcaption { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 3.75rem; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; color: var(--on-navy); }
.hero-slide figcaption b { display: block; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; text-wrap: balance; }
.hero-slide figcaption span { display: block; margin-top: 0.4rem; font-size: 0.875rem; color: var(--on-navy-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-slide figcaption a { flex-shrink: 0; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 9999px; background: rgba(248, 250, 253, 0.14); color: var(--on-navy); transition: background-color 0.15s ease; }
.hero-slide figcaption a:hover { background: var(--on-navy); color: var(--navy); }
.hero-slide a.stretched::before { content: ''; position: absolute; inset: 0; }
.visual-tag { position: absolute; top: 1rem; left: 1rem; z-index: 2; background: rgba(250, 251, 253, 0.95); color: var(--navy); padding: 0.4rem 0.75rem; font-size: 0.8125rem; font-weight: 600; border-radius: var(--radius-sm); }
.hero-dots { position: absolute; top: 1rem; right: 1rem; z-index: 2; display: flex; gap: 0.25rem; }
.hero-dots button { width: 1.75rem; height: 1.75rem; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.hero-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 9999px; background: rgba(248, 250, 253, 0.55); transition: width 0.3s var(--ease-out), background-color 0.2s ease; }
.hero-dots button[aria-current="true"]::before { width: 20px; background: var(--gold-bright); }
.visual-note { position: absolute; bottom: 0; right: -1rem; z-index: 3; display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1.25rem; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow); font-size: 0.9375rem; color: var(--ink); }
.visual-note > i { color: var(--gold-ink); }
.visual-note small { display: block; font-size: 0.8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.quick-section { position: relative; z-index: 3; margin-top: -1.5rem; }
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1rem 0; }
.quick-link { display: flex; align-items: center; gap: 1rem; min-height: 4rem; padding: 0.75rem 1.5rem; border-right: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color 0.15s ease; }
.quick-link:last-child { border-right: 0; }
.quick-link > i:first-child { width: 1.5rem; font-size: 1.25rem; color: var(--brand); text-align: center; }
.quick-link strong { display: block; font-weight: 500; font-size: 0.9375rem; line-height: 1.4; }
.quick-link small { display: block; margin-top: 0.15rem; font-family: var(--font-latin); font-size: 0.8125rem; color: var(--ink-3); }
.quick-link .arrow { margin-left: auto; font-size: 0.75rem; color: var(--ink-3); transition: transform 0.2s var(--ease-out), color 0.15s ease; }
.quick-link:hover { background: var(--surface-muted); }
.quick-link:hover .arrow { transform: translateX(3px); color: var(--brand); }

.home-section { padding-block: 4rem; }
.home-section.on-surface { background: var(--surface); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.section-heading h2 { font-size: clamp(1.5rem, 1.22rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.4; color: var(--ink); }
.section-heading p { margin-top: 0.4rem; color: var(--ink-3); font-size: 0.9375rem; }
.text-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-size: 0.9375rem; font-weight: 500; color: var(--brand); text-decoration: none; white-space: nowrap; }
.text-link i { font-size: 0.75rem; transition: transform 0.2s var(--ease-out); }
.text-link:hover { color: var(--gold-ink); }
.text-link:hover i { transform: translateX(3px); }

.service-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.group-label { font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 0.75rem; }
.group-tabs { display: flex; flex-direction: column; gap: 0.5rem; }
.group-tab { display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0.75rem 1rem; border-radius: var(--radius-md); font-size: 0.9375rem; color: var(--ink-3); text-align: left; background: none; border: 0; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.group-tab i:first-child { width: 1.1rem; text-align: center; }
.group-tab .arrow { margin-left: auto; font-size: 0.6875rem; opacity: 0.7; }
.group-tab:hover { background: var(--surface-offset); color: var(--ink); }
.group-tab[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.service-aside-note { margin-top: 1.5rem; padding: 1rem; background: var(--surface-offset); border-radius: var(--radius-md); }
.service-aside-note p { font-size: 0.8125rem; color: var(--ink-3); }
.service-aside-note .text-link { font-size: 0.875rem; min-height: 2.25rem; }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.service-card { position: relative; display: flex; flex-direction: column; min-height: 11.5rem; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.2s ease; }
.service-card[hidden] { display: none; }
.service-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.service-card-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.service-card-head i { font-size: 1.25rem; color: var(--brand); width: 1.5rem; text-align: center; }
.service-card .mini-label { font-family: var(--font-latin); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.service-card h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.45; margin-bottom: 0.4rem; }
.service-card p { color: var(--ink-3); font-size: 0.9375rem; padding-right: 1.5rem; }
.service-card .card-arrow { position: absolute; right: 1.25rem; bottom: 1.25rem; font-size: 0.75rem; color: var(--ink-3); transition: transform 0.2s var(--ease-out), color 0.15s ease; }
.service-card:hover .card-arrow { transform: translateX(3px); color: var(--brand); }
.service-card:hover h3 { color: var(--brand); }

.status-strip { margin-top: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding: 1rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.status-figures { display: flex; align-items: center; gap: 0.5rem 2rem; flex-wrap: wrap; font-size: 0.9375rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.status-figures > i { color: var(--ok); }
.status-figures b { color: var(--ink); font-weight: 600; margin-left: 0.25rem; }

.news-layout { display: grid; grid-template-columns: 1fr 1.04fr; gap: 2.5rem; }
.news-feature { display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg); color: var(--ink); text-decoration: none; height: 100%; transition: background-color 0.15s ease; }
.news-feature:hover { background: var(--surface-muted); }
.news-feature .thumb { aspect-ratio: 16 / 8; background: var(--surface-offset); overflow: hidden; }
.news-feature .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.news-feature:hover .thumb img { transform: scale(1.02); }
.news-feature .news-copy { padding: 1.5rem; }
.news-meta { display: flex; gap: 0.25rem 0.75rem; align-items: center; flex-wrap: wrap; font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 0.6rem; font-variant-numeric: tabular-nums; }
.news-meta .cat { color: var(--gold-ink); font-weight: 500; }
.news-feature h3 { font-size: clamp(1.125rem, 1.04rem + 0.35vw, 1.35rem); font-weight: 600; line-height: 1.5; margin-bottom: 0.6rem; text-wrap: balance; }
.news-feature p { color: var(--ink-3); font-size: 0.9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-feature .text-link { margin-top: 0.5rem; }
.news-items { display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: 4.25rem 1fr 1rem; gap: 1.25rem; align-items: start; padding-block: 1.25rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.news-item:first-child { padding-top: 0.25rem; }
.news-item:last-child { border-bottom: 0; }
.news-item .thumb { width: 4.25rem; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-offset); display: grid; place-items: center; color: var(--ink-3); }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item h3 { font-size: 1rem; font-weight: 500; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.15s ease; }
.news-item .news-meta { margin-bottom: 0.25rem; }
.news-item > i { margin-top: 0.5rem; font-size: 0.75rem; color: var(--ink-3); }
.news-item:hover h3 { color: var(--brand); }

.knowledge-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: start; }
.knowledge-intro h2 { font-size: clamp(1.5rem, 1.22rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.45; margin-bottom: 1rem; color: var(--ink); }
.knowledge-intro p { color: var(--ink-3); max-width: 42ch; }
.knowledge-intro .btn { margin-top: 1.5rem; }
.guide-list { border-top: 1px solid var(--line); }
.guide { border-bottom: 1px solid var(--line); }
.guide summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.75rem; min-height: 4.75rem; padding-block: 1rem; font-size: 1rem; font-weight: 500; color: var(--ink); }
.guide summary::-webkit-details-marker { display: none; }
.guide summary > i:first-child { width: 1.25rem; text-align: center; color: var(--brand); }
.guide summary .chevron { margin-left: auto; font-size: 0.8125rem; color: var(--ink-3); transition: transform 0.25s var(--ease-out); }
.guide[open] summary .chevron { transform: rotate(45deg); }
.guide summary:hover { color: var(--brand); }
.guide-content { padding: 0 2rem 1.5rem; color: var(--ink-3); font-size: 0.9375rem; }
.guide-content p + p { margin-top: 0.6rem; }
.guide-content code { font-size: 0.875em; background: var(--surface-muted); padding: 0.1em 0.35em; border-radius: 4px; color: var(--ink); }

.support-panel { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; padding: 2.5rem 3rem; background: var(--navy); color: var(--on-navy); border-radius: var(--radius-lg); }
.support-panel h2 { font-size: clamp(1.5rem, 1.22rem + 1vw, 2rem); font-weight: 500; line-height: 1.4; }
.support-panel p { margin-top: 0.6rem; color: var(--on-navy-muted); font-size: 0.9375rem; max-width: 52ch; }
.support-actions { display: grid; gap: 0.75rem; width: min(100%, 24rem); }
.btn-on-navy { background: var(--on-navy); color: var(--navy); }
.btn-on-navy:hover { background: var(--on-navy-muted); }
.track-form { display: flex; gap: 0.5rem; padding: 0.35rem; border-radius: var(--radius-md); background: rgba(248, 250, 253, 0.08); border: 1px solid rgba(248, 250, 253, 0.18); }
.track-form:focus-within { border-color: var(--gold-bright); }
.track-form input { flex: 1; min-width: 0; min-height: 2.5rem; padding-inline: 0.75rem; background: transparent; border: 0; outline: none; color: var(--on-navy); font-size: 0.9375rem; }
.track-form input::placeholder { color: #a9b9cc; }
.track-form input:focus-visible { outline: none !important; }
.track-form button { min-height: 2.5rem; padding-inline: 1rem; border-radius: var(--radius-sm); background: rgba(248, 250, 253, 0.14); color: var(--on-navy); font-size: 0.875rem; font-weight: 500; border: 0; cursor: pointer; white-space: nowrap; }
.track-form button:hover { background: rgba(248, 250, 253, 0.24); }

@media (max-width: 1100px) {
  .home-hero-grid { gap: 2rem; }
  .quick-link { padding: 0.75rem 1rem; }
  .quick-link .arrow { display: none; }
  .service-layout { grid-template-columns: 190px 1fr; }
  .knowledge-layout { gap: 2rem; }
}
@media (max-width: 900px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .hero-visual .stage { aspect-ratio: 1.65; }
  .visual-note { right: 0.75rem; }
  .quick-section { margin-top: 0; }
  .quick-links { grid-template-columns: repeat(2, 1fr); padding: 0; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
  .quick-link { min-height: 5rem; padding: 1rem; }
  .quick-link:nth-child(2) { border-right: 0; }
  .quick-link:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .service-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .group-tabs { display: grid; grid-template-columns: repeat(2, 1fr); }
  .group-tab .arrow, .group-label, .service-aside-note { display: none; }
  .news-layout, .knowledge-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .support-panel { grid-template-columns: 1fr; padding: 1.75rem; gap: 1.5rem; }
  .support-actions { width: 100%; }
  .home-section { padding-block: 2.5rem; }
  .home-hero { padding-block: 2rem 2.5rem; }
}
@media (max-width: 560px) {
  .home-hero h1 { font-size: 1.875rem; }
  .quick-link { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .quick-link > i:first-child { text-align: left; }
  .service-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .service-card { min-height: 0; padding: 1.25rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 0.25rem; margin-bottom: 1.25rem; }
  .hero-slide figcaption span, .visual-note small { display: none; }
  .visual-note { padding: 0.5rem 0.75rem; font-size: 0.8125rem; }
  .guide-content { padding: 0 0.5rem 1.25rem; }
  .news-item { grid-template-columns: 3.5rem 1fr; gap: 1rem; }
  .news-item .thumb { width: 3.5rem; }
  .news-item > i { display: none; }
}

/* =========================================================
   Legacy class remaps (older markup inherits the new look)
   ========================================================= */
.glass-nav { background: rgba(255,255,255,0.95); border-bottom: 1px solid var(--line); }
.glass-card { background: var(--surface); border: 1px solid var(--line); }
.glass-dark-panel { background: var(--navy-2); border: 1px solid rgba(255,255,255,0.1); }
.bg-gradient-mcu { background: var(--navy); }
.bg-gradient-cloud { background: var(--brand); }
.bg-gradient-cloud:hover { background: var(--brand-strong); }
.bg-gradient-orange-gold { background: var(--gold); }
.bg-hero-pattern { background-color: var(--navy); }
.bg-cloud-grid {
  background-size: 28px 28px;
  background-image: linear-gradient(to right, rgba(15,23,42,0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(15,23,42,0.05) 1px, transparent 1px);
}
.hover-lift { transition: border-color 0.15s ease, box-shadow 0.2s ease; }
.hover-lift:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }

.pulse-dot { position: relative; display: inline-flex; }
.pulse-dot::before { content: ''; position: absolute; inset: 0; border-radius: 9999px; background-color: inherit; animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite; opacity: 0.6; }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.animate-fadeIn { animation: fadeIn 0.3s var(--ease-out) both; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.scroll-mask-gradient { mask-image: linear-gradient(to right, black 90%, transparent 100%); -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%); }

.quick-pill { cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.quick-pill:hover { background-color: var(--brand-soft); color: var(--brand-strong); border-color: #b9c9f7; }

.hero-pill-dot { cursor: pointer; height: 6px; width: 18px; border-radius: 9999px; background-color: rgba(255,255,255,0.25); transition: width 0.3s var(--ease-out), background-color 0.2s ease; border: 0; padding: 0; }
.hero-pill-dot:hover:not(.is-active) { background-color: rgba(255,255,255,0.5); }
.hero-pill-dot.is-active { width: 36px; background: var(--gold); }

/* Tailwind v4-name fallbacks (CDN is v3) */
.w-13 { width: 3.25rem; } .h-13 { height: 3.25rem; }
.w-15 { width: 3.75rem; } .h-15 { height: 3.75rem; }
.w-76 { width: 19rem; }
.pb-18 { padding-bottom: 4.5rem; } .pb-22 { padding-bottom: 5.5rem; }
.z-45 { z-index: 45; }
.shadow-2xs { box-shadow: var(--shadow-sm); }
.shadow-xs { box-shadow: var(--shadow-sm); }
.backdrop-blur-xs { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.bg-white\/98 { background-color: rgba(255,255,255,0.98); }
.bg-slate-950\/98 { background-color: rgba(2,6,23,0.98); }

/* =========================================================
   Long-form reading (.prose)
   ========================================================= */
.prose { color: var(--ink-2); line-height: 1.85; font-size: 1.0625rem; max-width: 72ch; }
.prose.max-w-none { max-width: none; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-family: var(--font-heading); color: var(--ink); font-weight: 700; font-size: 1.5rem; line-height: 1.35; margin-top: 2em; margin-bottom: 0.6em; }
.prose h3 { font-family: var(--font-heading); color: var(--ink); font-weight: 600; font-size: 1.25rem; line-height: 1.4; margin-top: 1.6em; margin-bottom: 0.5em; }
.prose h4 { font-family: var(--font-heading); color: var(--ink); font-weight: 600; font-size: 1.0625rem; margin-top: 1.4em; margin-bottom: 0.4em; }
.prose p { margin-top: 1em; margin-bottom: 1em; }
.prose ul { list-style: disc; padding-left: 1.5em; margin: 1em 0; }
.prose ol { list-style: decimal; padding-left: 1.5em; margin: 1em 0; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--brand-strong); }
.prose blockquote { color: var(--ink); background: var(--surface-muted); padding: 1rem 1.25rem; border-radius: var(--radius); margin: 1.5em 0; border: 1px solid var(--line); }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.875em; background: var(--surface-muted); color: var(--ink); padding: 0.15em 0.4em; border-radius: 6px; border: 1px solid var(--line); }
.prose pre { background: var(--navy); color: #e8edf6; padding: 1.25rem; border-radius: var(--radius); overflow-x: auto; font-size: 0.875rem; line-height: 1.65; margin: 1.5em 0; }
.prose pre code { background: transparent; color: inherit; padding: 0; border: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.9375rem; display: block; overflow-x: auto; }
.prose th { background: var(--surface-muted); color: var(--ink); font-family: var(--font-heading); font-weight: 600; text-align: left; padding: 0.7rem 1rem; border: 1px solid var(--line); }
.prose td { padding: 0.7rem 1rem; border: 1px solid var(--line); vertical-align: top; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* =========================================================
   Mobile & print
   ========================================================= */
@media screen and (max-width: 640px) {
  input[type="text"], input[type="email"], input[type="password"], input[type="number"],
  input[type="tel"], input[type="search"], input[type="date"], input[type="datetime-local"],
  select, textarea { font-size: 16px !important; }
}

@media print {
  .no-print, .site-header, .site-footer { display: none !important; }
  body { background: #fff; color: #000; }
}

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

/* ITSKILL (itskill.php) */
.itskill-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line-strong); }
.itskill-tab {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.5rem 0.25rem; margin-bottom: -1px;
  font-family: var(--font-heading); font-weight: 500; font-size: 0.875rem; color: var(--ink-3);
  text-decoration: none; text-align: center; border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.itskill-tab:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.itskill-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.itskill-tab.is-active { color: var(--brand-strong); font-weight: 700; border-bottom-color: var(--gold); }
.itskill-tab i { display: none; }
@media (min-width: 640px) {
  .itskill-tabs { gap: 0.5rem; }
  .itskill-tab { flex: 0 1 auto; padding-inline: 1.25rem; font-size: 1rem; }
  .itskill-tab i { display: inline; }
}

.itskill-next { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
.itskill-next-date { margin-top: 0.75rem; font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); line-height: 1.2; color: var(--brand-strong); }
@media (min-width: 900px) { .itskill-next { grid-template-columns: 5fr 7fr; gap: 3rem; align-items: start; } }

.itskill-steps { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.itskill-step { position: relative; display: flex; gap: 0.875rem; padding-bottom: 1.25rem; color: var(--ink-2); }
.itskill-step:last-child { padding-bottom: 0; }
.itskill-step:not(:last-child)::before { content: ''; position: absolute; left: 0.9375rem; top: 2rem; bottom: 0; width: 2px; background: var(--line-strong); }
.itskill-step-mark {
  flex: none; display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 9999px;
  background: var(--surface); border: 2px solid var(--line-strong); color: var(--ink-3); font-weight: 700; font-size: 0.8125rem;
}
.itskill-step.is-done .itskill-step-mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.itskill-step.is-done:not(:last-child)::before { background: var(--ok); }
.itskill-step.is-current .itskill-step-mark { background: var(--brand); border-color: var(--brand); color: #fff; }
.itskill-step-label { display: block; font-family: var(--font-heading); font-weight: 600; color: var(--ink); }
.itskill-step-when { display: block; font-size: 0.9375rem; color: var(--ink-3); }

.itskill-table tr.is-next, .itskill-table tbody tr.is-next:hover, .itskill-table tr.is-next td { background: var(--gold-soft); }
.itskill-table tr.is-past td { color: var(--ink-3); }
@media (max-width: 719px) {
  .itskill-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .itskill-table, .itskill-table tbody, .itskill-table tr, .itskill-table td { display: block; width: 100%; }
  .itskill-table tr { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
  .itskill-table tbody tr:last-child { border-bottom: 0; }
  .itskill-table td, .itskill-table tbody tr td { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; border: 0; text-align: right; }
  .itskill-table td::before { content: attr(data-label); flex: none; max-width: 55%; text-align: left; font-weight: 600; color: var(--ink-3); }
}

.itskill-lookup { max-width: 44rem; margin-top: 1.75rem; }
.itskill-lookup-row { display: flex; flex-direction: column; gap: 0.625rem; }
.itskill-lookup-row .btn { flex: none; }
@media (min-width: 480px) { .itskill-lookup-row { flex-direction: row; } .itskill-lookup-row .field-input { max-width: 18rem; } }
.itskill-field-error { margin-top: 0.5rem; font-size: 0.875rem; color: var(--danger); }
.itskill-result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; }
@media (min-width: 640px) { .itskill-result { padding: 1.5rem; } }
.itskill-result-title { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--ok); }
.itskill-facts { display: grid; gap: 0.5rem; margin-top: 0.875rem; }
.itskill-facts > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; }
.itskill-facts dt { color: var(--ink-3); }
.itskill-facts dd { margin: 0; color: var(--ink); font-weight: 500; }
#lookup-result:focus-visible { outline: none !important; }
