:root {
  --ink: #1a1a1a;
  --text: #343434;
  --muted: #595959;
  --paper: #ffffff;
  --surface: #f5f7f6;
  --line: #cbd5d2;
  --teal: #007f74;
  --teal-dark: #005c54;
  --orange: #c45100;
  --yellow: #ffd45a;
  --blue: #2458a6;
  --pink: #b52655;
  --danger: #b42318;
  --success: #17663a;
  --focus: #ffbf00;
  --content: 1600px;
  --radius: 8px;
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; }
html.font-sm { font-size: 16px; }
html.font-lg { font-size: 20px; }
body { margin: 0; overflow-x: hidden; color: var(--text); background: var(--paper); font-size: 1rem; line-height: 1.65; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--ink);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: #fff; }
.utility-band { color: #fff; background: var(--teal-dark); }
.utility-bar, .brand-row, .main-nav, .content-shell, .footer-grid, .copyright {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding-inline: 24px;
}
.utility-bar { min-height: 40px; display: flex; align-items: center; justify-content: flex-end; gap: 24px; font-size: .9rem; }
.access-key { margin-right: auto; font-weight: 800; }
.utility-links, .font-controls { display: flex; align-items: center; gap: 12px; }
.utility-links a, .utility-button { color: #fff; }
.utility-button { padding: 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.font-controls button {
  min-width: 32px;
  min-height: 32px;
  border: 1px solid rgba(255,255,255,.7);
  color: #fff;
  background: transparent;
  border-radius: 4px;
}
.font-controls button[aria-pressed="true"] { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }

.brand-row { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-row:has(.test-environment-warning) { flex-wrap: wrap; padding-block: 12px; }
.test-environment-warning { margin: 0; padding: 6px 16px; border: 3px solid #d40000; background: #fff; color: #d40000; font-size: 32px; font-weight: 900; line-height: 1.25; letter-spacing: 0; text-shadow: 2px 2px 2px #bdbdbd; }
@media (max-width: 760px) {
  .brand-row .test-environment-warning { order: 3; flex-basis: 100%; font-size: 24px; text-align: center; }
  .brand-row:has(.test-environment-warning) { gap: 12px; }
}
.brand { display: flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; }
.brand img { width: 92px; height: 72px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.45rem; }
.brand small { color: var(--muted); font-family: Arial, sans-serif; font-size: .9rem; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-search { padding: 8px 0; font-weight: 700; }
.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid var(--teal-dark);
  color: var(--teal-dark);
  background: #fff;
  border-radius: 4px;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { position: absolute; left: 0; content: ""; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

.main-nav { display: flex; align-items: stretch; min-height: 52px; border-top: 1px solid var(--line); }
.main-nav > a, .nav-group > button {
  display: flex;
  min-height: 52px;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  color: var(--ink);
  background: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav > a:hover, .main-nav > a[aria-current="page"], .nav-group > button:hover, .nav-group > button[aria-expanded="true"], .nav-group > button[aria-current="page"] {
  color: #fff;
  background: var(--teal-dark);
}
.nav-group { position: relative; }
.nav-group > button::after { width: 8px; height: 8px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; transform: rotate(45deg) translateY(-2px); }
.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 224px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  background: #fff;
  box-shadow: 0 12px 24px rgba(0,0,0,.14);
}
.nav-submenu-right { right: 0; left: auto; }
.nav-group.open .nav-submenu { display: grid; }
.nav-submenu a { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.nav-submenu a:hover, .nav-submenu a[aria-current="page"] { color: #fff; background: var(--teal-dark); }

main { min-height: 68vh; }
.content-shell { padding-top: 40px; padding-bottom: 64px; }
.breadcrumbs { margin: 0 0 24px; color: var(--muted); font-size: .94rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { margin-right: 8px; content: "/"; }
.page-heading { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 4px solid var(--ink); }
.page-heading .en-title { display: block; margin-bottom: 4px; color: var(--teal-dark); font-family: Arial, sans-serif; font-size: .9rem; font-weight: 800; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--ink); line-height: 1.25; letter-spacing: 0; }
h1, h2, h3, p, a, button, td, th { overflow-wrap: anywhere; }
h1 { margin-bottom: 12px; font-size: 2.5rem; }
h2 { margin-bottom: 12px; font-size: 1.5rem; }
h3 { margin-bottom: 8px; font-size: 1.14rem; }
p { margin-top: 0; }
.lead { max-width: 800px; margin-bottom: 0; color: var(--muted); font-size: 1.12rem; }

.home-hero { position: relative; min-height: 520px; overflow: hidden; color: #fff; background: var(--teal-dark); }
.home-hero::after { position: absolute; inset: auto 0 0; height: 12px; background: var(--yellow); content: ""; }
.hero-inner { position: relative; z-index: 2; width: min(100%, var(--content)); min-height: 520px; margin-inline: auto; padding: 64px 48% 64px 24px; display: flex; flex-direction: column; justify-content: center; }
.hero-kicker { margin-bottom: 8px; color: var(--yellow); font-weight: 800; }
.home-hero h1 { max-width: 680px; color: #fff; font-size: 3.25rem; }
.home-hero .lead { color: #fff; }
.hero-sports { position: absolute; right: max(24px, calc((100vw - var(--content)) / 2 + 24px)); bottom: 12px; z-index: 1; display: flex; width: 44%; max-width: 560px; min-height: 430px; align-items: flex-end; justify-content: center; gap: 8px; }
.hero-sports img { width: 18%; max-height: 360px; object-fit: contain; filter: brightness(0) invert(1); opacity: .92; }
.hero-actions, .toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-actions .button.secondary { color: #fff; border-color: #fff; background: transparent; }

.banner-carousel { position: relative; overflow: hidden; border-bottom: 12px solid var(--yellow); background: #111; }
.banner-viewport { width: 100%; }
.banner-slide { position: relative; width: 100%; }
.banner-slide[hidden] { display: none; }
.banner-link { position: relative; display: block; width: 100%; color: #fff; text-decoration: none; }
.banner-link img { display: block; width: 100%; height: clamp(300px, 31vw, 590px); object-fit: cover; object-position: center; }
.banner-caption { position: absolute; left: max(24px, calc((100vw - var(--content)) / 2 + 24px)); bottom: 28px; max-width: min(680px, calc(100% - 430px)); padding: 14px 18px; border-left: 6px solid var(--yellow); color: #fff; background: rgba(20, 27, 26, .9); font-size: 1.35rem; font-weight: 800; }
.banner-controls { position: absolute; right: max(24px, calc((100vw - var(--content)) / 2 + 24px)); bottom: 28px; z-index: 2; display: flex; min-height: 44px; align-items: center; gap: 8px; padding: 6px; background: rgba(20, 27, 26, .9); }
.banner-controls button { min-width: 40px; min-height: 40px; border: 1px solid rgba(255,255,255,.8); border-radius: 4px; color: #fff; background: transparent; }
.banner-controls button:hover, .banner-controls button[aria-current="true"], .banner-controls button[aria-pressed="true"] { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.banner-arrow { font-size: 1.75rem; line-height: 1; }
.banner-indicators { display: flex; align-items: center; gap: 6px; }
.banner-indicators button { min-width: 14px; min-height: 14px; width: 14px; height: 14px; padding: 0; border-radius: 50%; }
.banner-pause { padding: 6px 10px; font-size: .9rem; font-weight: 700; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 2px solid var(--teal-dark);
  border-radius: 4px;
  color: #fff;
  background: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.button:hover { color: #fff; background: #004a44; transform: translateY(-1px); }
.button.secondary { color: var(--teal-dark); background: #fff; }
.button.secondary:hover { color: #fff; background: var(--teal-dark); }
.button.danger { border-color: var(--danger); background: var(--danger); }
.button.small { min-height: 36px; padding: 5px 12px; font-size: .92rem; }

.home-band { padding: 56px 0; }
.home-band.surface { background: var(--surface); }
.band-inner { width: min(100%, var(--content)); margin-inline: auto; padding-inline: 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading p { margin: 0; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-link { min-height: 176px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); background: #fff; text-decoration: none; }
.service-link:hover { color: #fff; background: var(--teal-dark); }
.service-link .number { display: block; margin-bottom: 16px; color: var(--orange); font-family: Arial, sans-serif; font-size: .88rem; font-weight: 800; }
.service-link:hover .number { color: var(--yellow); }
.service-link strong { display: block; margin-bottom: 8px; font-size: 1.2rem; }
.service-link span:last-child { display: block; color: var(--muted); }
.service-link:hover span:last-child { color: #fff; }

.news-list { margin: 0; padding: 0; border-top: 2px solid var(--ink); list-style: none; }
.news-item { display: grid; grid-template-columns: 128px 96px 1fr auto; gap: 16px; align-items: center; padding: 18px 8px; border-bottom: 1px solid var(--line); }
.news-item a { color: var(--ink); font-weight: 700; text-decoration: none; }
.news-item a:hover { color: var(--teal-dark); text-decoration: underline; }
.tag { display: inline-flex; width: fit-content; padding: 3px 10px; border-radius: 999px; color: #fff; background: var(--blue); font-size: .88rem; font-weight: 700; }
.tag.important { background: var(--danger); }
.tag.system { background: var(--teal-dark); }

.filter-panel { margin-bottom: 32px; padding: 24px; border: 1px solid var(--line); border-left: 6px solid var(--teal); background: var(--surface); }
.filter-grid, .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: grid; gap: 8px; }
.field > span, legend { color: var(--ink); font-weight: 800; }
.required { color: var(--danger); }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #777;
  border-radius: 4px;
  background: #fff;
}
textarea { min-height: 128px; resize: vertical; }
input:invalid:not(:placeholder-shown) { border: 2px solid var(--danger); }
.hint { margin: 0; color: var(--muted); font-size: .9rem; }
.full { grid-column: 1 / -1; }
fieldset { margin: 0; padding: 16px; border: 1px solid var(--line); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; border-bottom: 2px solid var(--line); }
.tab-button { min-height: 44px; padding: 9px 16px; border: 0; border-bottom: 4px solid transparent; color: var(--ink); background: #fff; font-weight: 800; }
.tab-button:hover, .tab-button[aria-selected="true"] { color: var(--teal-dark); border-bottom-color: var(--teal); background: #eef8f6; }
.tab-panel { min-height: 240px; }
.segmented-control { display: inline-flex; margin: 0 0 20px; border: 1px solid var(--teal-dark); border-radius: 4px; overflow: hidden; }
.segmented-control button { min-width: 96px; min-height: 44px; padding: 8px 16px; border: 0; border-right: 1px solid var(--teal-dark); color: var(--teal-dark); background: #fff; font-weight: 800; }
.segmented-control button:last-child { border-right: 0; }
.segmented-control button[aria-pressed="true"] { color: #fff; background: var(--teal-dark); }
.norm-supplement { margin-top: 32px; }
.norm-usage { margin-top: 0; }
.norm-panel { padding-top: 8px; }
.norm-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.norm-panel-heading h2 { margin: 0 0 8px; }
.norm-panel-heading p { margin: 0; color: var(--muted); }
.norm-panel-heading .segmented-control { flex: 0 0 auto; margin: 0; }
.norm-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 12px; padding: 0; list-style: none; }
.norm-legend li { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.norm-legend span { width: 28px; height: 18px; border: 2px solid #29332f; }
.norm-table-region { margin-bottom: 24px; }
.norm-table { min-width: 720px; }
.norm-table-basic, .norm-table-levels { min-width: 1400px; }
.norm-table th, .norm-table td { min-width: 64px; padding: 10px 8px; text-align: center; }
.norm-table thead th { color: #fff; border-right: 1px solid rgba(255, 255, 255, .35); }
.norm-table tbody th { position: sticky; left: 0; z-index: 1; min-width: 80px; color: #fff; background: var(--teal-dark); }
.norm-table thead .norm-improve { background: #174a8b; }
.norm-table thead .norm-developing { background: #8a4300; }
.norm-table thead .norm-middle { background: #17663f; }
.norm-table thead .norm-bronze { background: #743600; }
.norm-table thead .norm-silver { background: #4b3a75; }
.norm-table thead .norm-gold { background: #675300; }
.norm-table tbody .norm-improve, .norm-legend .norm-improve { color: var(--ink); background: #d6e5ff; }
.norm-table tbody .norm-developing, .norm-legend .norm-developing { color: var(--ink); background: #ffd7a3; }
.norm-table tbody .norm-middle, .norm-legend .norm-middle { color: var(--ink); background: #c8ead5; }
.norm-table tbody .norm-bronze, .norm-legend .norm-bronze { color: var(--ink); background: #efbd96; }
.norm-table tbody .norm-silver, .norm-legend .norm-silver { color: var(--ink); background: #ded4f5; }
.norm-table tbody .norm-gold, .norm-legend .norm-gold { color: var(--ink); background: #ffe88f; }
.norm-legend .norm-improve { border-color: #174a8b; }
.norm-legend .norm-developing { border-color: #8a4300; }
.norm-legend .norm-middle { border-color: #17663f; }
.norm-legend .norm-bronze { border-color: #743600; }
.norm-legend .norm-silver { border-color: #4b3a75; }
.norm-legend .norm-gold { border-color: #675300; }
.norm-table tbody tr:hover th, .norm-table tbody tr:hover td { box-shadow: inset 0 3px 0 #1e2a27, inset 0 -3px 0 #1e2a27; }
.norm-level-row th { font-size: .92rem; }
.norm-sources { margin-top: 32px; padding: 20px 24px; border-left: 5px solid var(--teal); background: var(--surface); }
.norm-sources h3 { margin-top: 0; }
.norm-sources li { margin-bottom: 8px; }
.content-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
.anchor-nav { align-self: start; border-top: 4px solid var(--teal); background: var(--surface); }
.anchor-nav h2 { padding: 16px; margin: 0; font-size: 1.1rem; }
.anchor-nav a { display: block; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.anchor-nav a:hover { color: #fff; background: var(--teal-dark); }
.prose { max-width: 840px; }
.prose section { margin-bottom: 40px; scroll-margin-top: 24px; }
.prose h2 { padding-left: 16px; border-left: 6px solid var(--yellow); }
.prose li { margin-bottom: 8px; }
.content-figure { width: min(100%, 720px); margin: 0 0 24px; }
.content-figure img { display: block; width: 100%; max-height: 420px; border: 1px solid var(--line); object-fit: contain; background: var(--surface); }
.instruction-content { max-width: none; }
.instruction-layout, .testing-layout { display: block; }
.instruction-layout > .tabs, .testing-layout > .tabs { position: static; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; border-top: 0; border-bottom: 2px solid var(--line); background: transparent; }
.instruction-layout > .tabs .tab-button, .testing-layout > .tabs .tab-button { width: auto; min-height: 44px; padding: 8px 16px; border-bottom: 4px solid transparent; text-align: center; }
.instruction-layout > .tabs .tab-button:hover, .testing-layout > .tabs .tab-button:hover { border-bottom-color: var(--teal); }
.instruction-layout > .tabs .tab-button[aria-selected="true"], .testing-layout > .tabs .tab-button[aria-selected="true"] { color: var(--teal-dark); border-bottom-color: var(--teal); background: #eef8f6; }
.instruction-page-title { margin: 0 0 28px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.instruction-content h3 { margin-top: 28px; }
.instruction-intro { display: grid; grid-template-columns: minmax(240px, 38%) minmax(0, 1fr); align-items: start; gap: 28px; }
.instruction-figure { margin: 0 0 20px; }
.instruction-figure img { display: block; width: 100%; max-height: 360px; border: 1px solid var(--line); background: var(--surface); object-fit: contain; }
.instruction-figure figcaption { padding: 8px 10px; color: var(--muted); background: var(--surface); font-size: .9rem; }
.instruction-numbered { display: grid; gap: 12px; padding: 0; list-style: none; counter-reset: instruction-item; }
.instruction-numbered li { position: relative; min-height: 48px; padding: 14px 18px 14px 68px; border-left: 3px solid var(--yellow); background: var(--surface); counter-increment: instruction-item; }
.instruction-numbered li::before { position: absolute; top: 12px; left: 16px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: var(--teal-dark); font-weight: 800; content: counter(instruction-item); }
.instruction-numbered p { margin: 6px 0 0; }
.instruction-exercises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.instruction-exercises article { overflow: hidden; border: 1px solid var(--line); background: #fff; }
.instruction-exercises article > div { padding: 0 16px 16px; }
.instruction-exercises h4 { margin: 0 0 8px; }
.instruction-exercises .instruction-figure { aspect-ratio: 4 / 3; margin: 0 0 16px; background: var(--surface); }
.instruction-exercises .instruction-figure img { height: 100%; max-height: none; border: 0; }
.testing-content { max-width: none; }
.testing-page-title { margin: 0 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.testing-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.testing-section { margin-bottom: 24px; }
.testing-section h2 { margin: 0 0 12px; padding-left: 16px; border-left: 6px solid var(--yellow); font-size: 1.25rem; }
.testing-section ul { margin: 0; padding-left: 24px; }
.testing-formula { padding: 16px; border: 1px solid var(--teal); background: #eef8f6; font-weight: 800; text-align: center; }
.testing-method { margin-top: 40px; }
.testing-steps { display: grid; gap: 16px; padding: 0; list-style: none; counter-reset: testing-step; }
.testing-steps > li { position: relative; min-height: 56px; padding: 16px 16px 16px 72px; border-left: 3px solid var(--yellow); background: var(--surface); counter-increment: testing-step; }
.testing-steps > li::before { position: absolute; top: 12px; left: 16px; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: #fff; background: var(--teal-dark); content: counter(testing-step); font-weight: 800; }
.testing-steps figure { width: min(100%, 680px); margin: 16px 0 0; }
.testing-steps img { display: block; width: 100%; max-height: 420px; border: 1px solid var(--line); background: #fff; object-fit: contain; }
.testing-video { margin-top: 40px; }
.testing-video-frame { width: min(100%, 900px); aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); background: #111; }
.testing-video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.testing-video > p { margin: 12px 0 0; }
.suggestion-layout { display: block; }
.suggestion-layout > .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; border-bottom: 2px solid var(--line); }
.suggestion-layout > .tabs .tab-button { width: auto; min-height: 48px; padding: 10px 20px; border-bottom: 4px solid transparent; }
.suggestion-layout > .tabs .tab-button:hover { border-bottom-color: var(--teal); }
.suggestion-layout > .tabs .tab-button[aria-selected="true"] { color: var(--teal-dark); border-bottom-color: var(--teal); background: #e9f5f2; }
.suggestion-panel-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 32px; align-items: end; margin-bottom: 20px; }
.suggestion-panel-heading h2 { grid-column: 1; margin: 0; font-size: 1.8rem; }
.suggestion-panel-heading > p:last-child { grid-column: 1; margin: 8px 0 0; color: var(--muted); }
.suggestion-kicker { grid-column: 1; margin: 0 0 4px; color: var(--teal-dark); font-size: .82rem; font-weight: 900; letter-spacing: 0; }
.suggestion-legend { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0 0 16px; padding: 0; list-style: none; }
.suggestion-legend li { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.suggestion-legend li > span { width: 28px; height: 18px; border: 1px solid #4c5b57; }
.suggestion-legend .level-improve > span { background: #dcecf8; }
.suggestion-legend .level-standard > span { background: #dff2ec; }
.suggestion-legend .level-excellent > span { background: #ffefad; }
.suggestion-table-region { overflow: auto; max-height: none; border: 1px solid var(--line); background: #fff; }
.suggestion-table { min-width: 1080px; table-layout: fixed; }
.suggestion-table caption { color: #fff; background: var(--teal-dark); font-size: 1.1rem; }
.suggestion-table th, .suggestion-table td { padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; vertical-align: top; }
.suggestion-table thead th { position: sticky; top: 0; z-index: 4; color: #fff; background: #263b37; }
.suggestion-table thead th:nth-child(1), .suggestion-table tbody th[scope="rowgroup"] { width: 92px; }
.suggestion-table thead th:nth-child(2), .suggestion-table tbody th[scope="row"] { width: 150px; }
.suggestion-table thead .level-improve { color: #fff; background: #315d9c; }
.suggestion-table thead .level-standard { color: #fff; background: #176d61; }
.suggestion-table thead .level-excellent { color: #1a1a1a; background: #ffd45a; }
.suggestion-table thead small { display: block; margin-top: 2px; font-weight: 500; }
.suggestion-table tbody th { color: var(--ink); background: #f0f4f3; }
.suggestion-table tbody th[scope="rowgroup"] { font-size: 1.05rem; }
.suggestion-table td.level-improve { background: #f0f6fc; }
.suggestion-table td.level-standard { background: #edf8f5; }
.suggestion-table td.level-excellent { background: #fff9df; }
.suggestion-table .suggestion-shared-actions { background: #fff; }
.suggestion-group + .suggestion-group tr:first-child > * { border-top: 4px solid #8ba09b; }
.suggestion-action h3 { margin: 0 0 6px; color: var(--ink); font-size: 1rem; }
.suggestion-action p { margin: 0 0 10px; }
.suggestion-shared-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.suggestion-media-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.suggestion-media { display: inline-grid; gap: 4px; width: min(100%, 180px); margin: 4px 0 0; color: var(--teal-dark); font-size: .85rem; font-weight: 800; text-align: center; }
.suggestion-media img { width: 100%; aspect-ratio: 4 / 3; border: 1px solid #9eaaa7; background: #fff; object-fit: contain; }
.suggestion-table td.is-related, .suggestion-table th.is-related { box-shadow: inset 0 0 0 2px #54736b; }
.suggestion-table td.is-selected { position: relative; z-index: 1; box-shadow: inset 0 0 0 4px var(--orange); }
.suggestion-formula { margin: 24px 0; padding: 20px 24px; border-left: 6px solid var(--blue); background: #eef4ff; }
.suggestion-formula h2 { margin: 0 0 8px; font-size: 1.2rem; }
.suggestion-formula p { margin: 0; font-weight: 700; }
.suggestion-safety ol { margin-bottom: 0; }
.callout { margin: 24px 0; padding: 20px 24px; border-left: 6px solid var(--orange); background: #fff5e8; }
.callout.info { border-color: var(--blue); background: #eef4ff; }
.callout.success { border-color: var(--success); background: #edf8f1; }
.callout h2, .callout h3 { color: var(--ink); }

.table-region { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; min-width: 720px; border-collapse: collapse; background: #fff; }
caption { padding: 12px 16px; color: var(--ink); background: var(--surface); font-weight: 800; text-align: left; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #fff; background: var(--teal-dark); }
tbody tr:nth-child(even) { background: #f7faf9; }
.table-action { white-space: nowrap; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.info-card { padding: 24px; border: 1px solid var(--line); border-top: 5px solid var(--teal); border-radius: var(--radius); background: #fff; }
.info-card:nth-child(3n+2) { border-top-color: var(--orange); }
.info-card:nth-child(3n+3) { border-top-color: var(--blue); }
.info-card p:last-child { margin-bottom: 0; }
.link-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; gap: 16px; padding: 16px; color: var(--ink); text-decoration: none; }
.link-list a:hover { color: #fff; background: var(--teal-dark); }
.external-note { color: var(--muted); font-size: .88rem; }
.link-list a:hover .external-note { color: #fff; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 32px; padding: 0; counter-reset: steps; list-style: none; }
.steps li { position: relative; padding: 56px 16px 16px; border-top: 4px solid var(--line); text-align: center; }
.steps li::before { position: absolute; top: -20px; left: calc(50% - 20px); display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: #fff; background: var(--teal-dark); counter-increment: steps; content: counter(steps); font-weight: 800; }
.application-menu { display: grid; width: min(100%, 1040px); min-height: 50vh; align-content: start; justify-items: center; gap: 28px; margin-inline: auto; padding-top: 32px; }
.application-menu-actions { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.application-menu-action, .application-menu-dropdown > summary {
  display: grid;
  min-height: 64px;
  place-items: center;
  padding: 12px 20px;
  border: 2px solid var(--teal-dark);
  border-radius: 4px;
  color: var(--teal-dark);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.application-menu-action:hover, .application-menu-dropdown > summary:hover { color: #fff; background: var(--teal-dark); }
.application-menu-dropdown { position: relative; }
.application-menu-dropdown > summary { list-style-position: inside; }
.application-menu-dropdown[open] > summary { color: #fff; background: var(--teal-dark); }
.application-menu-dropdown ul { position: absolute; z-index: 10; width: 100%; margin: 6px 0 0; padding: 6px 0; border: 1px solid var(--line); background: #fff; box-shadow: 0 8px 20px rgba(20, 35, 31, .16); list-style: none; }
.application-menu-dropdown li { margin: 0; }
.application-menu-dropdown li a { display: block; min-height: 44px; padding: 10px 16px; color: var(--ink); text-decoration: none; }
.application-menu-dropdown li a:hover { color: #fff; background: var(--teal-dark); }
.application-menu-dropdown .application-menu-divider { margin: 6px 0; border-top: 1px solid var(--line); }
.application-guide-link { color: var(--teal-dark); font-weight: 800; text-align: center; }
.application-guide-link .external-note { display: block; margin-top: 2px; }
.application-form-steps { display: grid; width: min(100%, 900px); grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 auto 28px; padding: 0; list-style: none; }
.application-form-steps li { display: flex; min-height: 64px; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 4px solid var(--line); color: var(--muted); font-weight: 800; }
.application-form-steps li span { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 2px solid currentColor; border-radius: 50%; }
.application-form-steps li.active { border-color: var(--teal-dark); color: var(--teal-dark); background: #eef8f6; }
.application-form-panel { width: min(100%, 900px); margin-inline: auto; padding: 32px; border-top: 6px solid var(--teal-dark); background: var(--surface); }
.application-form-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px 24px; align-items: start; }
.application-field-row { display: contents; }
.application-field-label { min-height: 44px; padding-top: 10px; color: var(--ink); font-weight: 800; }
.application-field-control { min-width: 0; }
.application-field-control textarea { min-height: 112px; }
.application-field-control input[readonly], .application-field-control select:disabled { color: #4c5753; background: #eef1f0; opacity: 1; }
.application-phone-fields { display: grid; grid-template-columns: minmax(72px, 96px) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.application-form-actions { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }
.application-otp-button { width: 100%; }
.application-dialog { width: min(calc(100% - 32px), 620px); max-height: min(82vh, 720px); padding: 0; border: 0; border-radius: 6px; color: var(--ink); background: #fff; box-shadow: 0 24px 64px rgba(0, 0, 0, .28); }
.application-dialog::backdrop { background: rgba(12, 22, 20, .64); }
.application-dialog-panel { overflow-y: auto; max-height: min(82vh, 720px); padding: 28px 30px; }
.application-dialog h2 { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 3px solid var(--teal-dark); font-size: 1.45rem; }
.application-dialog ol { padding-left: 24px; }
.application-dialog li { margin-bottom: 8px; }
.application-dialog hr { margin: 20px 0; border: 0; border-top: 1px solid var(--line); }
.application-dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.application-dialog-error { margin: 16px 0 0; color: var(--danger); font-weight: 800; }
.application-dialog-highlight { color: var(--teal-dark); overflow-wrap: anywhere; }
.application-dialog .field { margin-top: 4px; }
.application-dialog .hint { margin: 10px 0 0; }
.application-dialog-upload .callout { margin: 20px 0 0; }
.application-confirm-owner { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 800; }
.application-confirm-owner input { width: 22px; min-height: 22px; margin-top: 2px; }
.assessment-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 32px; padding: 0; list-style: none; }
.assessment-steps li { display: flex; min-height: 56px; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 4px solid var(--line); color: var(--muted); font-weight: 700; }
.assessment-steps li span { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 2px solid currentColor; border-radius: 50%; }
.assessment-steps li.active { border-color: var(--teal-dark); color: var(--teal-dark); background: #eef8f6; }
.assessment-steps li.finished { border-color: var(--success); color: var(--success); }
.assessment-steps li.finished span { color: #fff; background: var(--success); }
.assessment-workspace { width: min(100%, 1200px); margin-inline: auto; padding: 32px; border-top: 6px solid var(--teal-dark); background: var(--surface); }
.assessment-stage-title { margin-bottom: 24px; color: var(--ink); font-size: 1.5rem; font-weight: 800; }
.assessment-basic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.assessment-sex-field { grid-column: 1 / -1; }
.assessment-sex-options { display: flex; gap: 12px; }
.assessment-sex-options label { position: relative; min-width: 104px; }
.assessment-sex-options input { position: absolute; opacity: 0; pointer-events: none; }
.assessment-sex-options span { display: grid; min-height: 48px; place-items: center; border: 2px solid var(--teal-dark); color: var(--teal-dark); background: #fff; font-weight: 800; }
.assessment-sex-options input:checked + span { color: #fff; background: var(--teal-dark); }
.assessment-sex-options input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 2px var(--ink); }
.assessment-unit-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.assessment-unit-input.has-prefix { grid-template-columns: auto minmax(0, 1fr) auto; }
.assessment-unit-input > span { display: grid; min-width: 56px; place-items: center; padding: 0 12px; border: 1px solid #777; background: #fff; }
.assessment-unit-input > span:first-child { border-right: 0; }
.assessment-unit-input:not(.has-prefix) > span { border-left: 0; }
.assessment-unit-input.has-prefix > span:last-child { border-left: 0; }
.assessment-actions { justify-content: center; }
.assessment-stage-grid, .assessment-result-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }
.assessment-profile, .assessment-result-profile { padding: 24px; border-top: 6px solid var(--yellow); background: #fff; }
.assessment-profile dl, .assessment-result-profile dl { margin: 0; }
.assessment-profile dl div, .assessment-result-profile dl div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.assessment-profile dt, .assessment-result-profile dt { color: var(--muted); font-size: .9rem; font-weight: 700; }
.assessment-profile dd, .assessment-result-profile dd { margin: 4px 0 0; color: var(--ink); font-weight: 800; }
.assessment-score-entry { min-width: 0; padding: 24px; background: #fff; }
.assessment-summary { padding: 12px 16px; border-left: 4px solid var(--yellow); background: var(--surface); font-weight: 700; }
.input-with-unit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.input-with-unit > span { display: grid; min-width: 52px; place-items: center; padding: 0 10px; border: 1px solid #777; border-left: 0; background: var(--surface); }
.compact-fieldset { padding: 12px 16px 16px; }
.duration-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 180px)); gap: 16px; }
.duration-fields label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; }
.form-panel { padding: 32px; border: 1px solid var(--line); background: #fff; }
.result-panel { margin-top: 24px; padding: 24px; border: 2px solid var(--teal); background: #eef8f6; }
.application-inquiry-sheet { min-width: 0; }
.application-inquiry-form { display: grid; gap: 18px; max-width: 760px; margin-inline: auto; }
.application-inquiry-form .toolbar { justify-content: center; }
.application-inquiry-header { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 3px solid var(--ink); }
.application-inquiry-header h2 { margin: 0; overflow-wrap: anywhere; }
.application-status-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 28px 0; padding: 0; list-style: none; }
.application-status-steps li { min-height: 48px; padding: 12px; border-bottom: 4px solid var(--line); color: var(--muted); text-align: center; font-weight: 800; }
.application-status-steps li.complete { border-color: var(--success); color: var(--success); }
.application-status-steps li.current { border-color: var(--orange); color: var(--ink); background: #fff5e8; }
.application-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.application-detail-list div { min-width: 0; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.application-detail-list dt { color: var(--muted); font-size: .9rem; font-weight: 800; }
.application-detail-list dd { margin: 6px 0 0; overflow-wrap: anywhere; color: var(--ink); }
.application-edit-panel, .application-supplement { margin-top: 28px; }
.application-edit-panel summary { min-height: 44px; padding: 12px 16px; border-left: 5px solid var(--teal); background: #fff; cursor: pointer; font-weight: 800; }
.application-edit-panel .form-panel, .application-supplement .form-panel { margin-top: 12px; }
.application-progress-notice { margin: 0 0 24px; }
.application-supplement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.application-supplement-grid article { min-width: 0; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.application-supplement-grid h4 { margin: 0 0 10px; }
.application-supplement-grid p { min-height: 27px; margin: 0 0 14px; color: var(--muted); }
.application-value-button { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--teal-dark); background: #fff; text-align: left; font: inherit; font-weight: 800; cursor: pointer; }
.application-value-button:hover, .application-value-button:focus-visible { border-color: var(--teal); background: #eef8f6; }
.application-downloads, .application-actions { padding-top: 4px; }
.application-print-sheet { display: none; }
.application-print-sheet h1 { margin: 14px 0 4px; font-size: 15pt; line-height: 1.5; text-align: center; }
.application-print-header { display: flex; justify-content: space-between; padding-bottom: 2px; border-bottom: 1px solid #818181; color: #666; font-size: 9pt; }
.application-print-date { margin: 0 0 6px; text-align: right; }
.application-print-sheet table { width: 100%; table-layout: fixed; border-collapse: collapse; line-height: 1.35; }
.application-print-sheet th, .application-print-sheet td { padding: 5px; border: 1px solid #000; vertical-align: middle; text-align: left; }
.application-print-sheet th { width: 16%; background: #eee; text-align: center; }
.application-print-sheet tr:first-child th, .application-print-sheet tr:nth-child(8) th { width: auto; font-weight: 800; }
.application-print-reasons { display: grid; gap: 3px; min-height: 42mm; margin: 0; padding: 0; align-content: start; list-style: none; }
.application-print-check { display: inline-grid; width: 16px; height: 16px; margin-right: 7px; place-items: center; border: 1px solid #000; font-size: 12px; line-height: 1; }
.application-print-signature td { height: 18mm; vertical-align: bottom; text-align: right; }
.application-print-notes { margin: 0; padding-left: 20px; }
.application-print-notes li { margin-bottom: 2px; }
.application-print-sheet footer { margin-top: 6px; color: #666; font-size: 8.5pt; }
.application-print-sheet footer p { margin: 0; padding: 4px; border: 1px solid #818181; line-height: 1.35; }
.application-print-sheet footer span { display: block; margin-top: 2px; text-align: center; }
.preserve-lines { white-space: pre-line; }
.assessment-result { margin-top: 24px; padding: 32px; border-top: 6px solid var(--teal-dark); background: var(--surface); }
.assessment-result-content { display: grid; gap: 24px; min-width: 0; }
.assessment-result-item { padding: 24px; background: #fff; }
.assessment-result-item h3 { margin-bottom: 12px; }
.assessment-result-value { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.assessment-result-value strong { color: var(--teal-dark); font-size: 1.2rem; }
.assessment-result-value span { color: var(--muted); }
.assessment-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 4px; margin-top: 16px; }
.assessment-level { display: grid; min-height: 72px; place-items: center; align-content: center; gap: 4px; padding: 8px; border: 2px solid transparent; color: var(--ink); text-align: center; }
.assessment-level.level-1 { background: #dce8f7; }
.assessment-level.level-2 { background: #d9eee9; }
.assessment-level.level-3 { background: #fff2b8; }
.assessment-level.level-4 { background: #ffd779; }
.assessment-level.level-5 { background: #ffb85c; }
.assessment-level.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 2px #fff; }
.assessment-level strong { display: block; padding: 2px 6px; color: #fff; background: var(--ink); font-size: .8rem; }
.result-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.result-metrics div { padding: 16px; border-left: 4px solid var(--teal); background: #fff; }
.result-metrics strong { display: block; color: var(--ink); font-size: 1.5rem; }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; }
.pagination button { min-width: 44px; min-height: 44px; border: 1px solid var(--teal-dark); color: var(--teal-dark); background: #fff; border-radius: 4px; }
.pagination button[aria-current="page"] { color: #fff; background: var(--teal-dark); }

.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.login-aside { padding: 24px; border-top: 6px solid var(--yellow); background: var(--surface); }
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.sitemap-group { border-top: 5px solid var(--teal); }
.sitemap-group h2 { padding-top: 16px; }
.sitemap-group ul { padding-left: 24px; }
.sitemap-group li { margin-bottom: 8px; }

.site-footer { position: relative; overflow: hidden; padding-top: 32px; color: #fff; background: #202b29; }
.footer-accent { position: absolute; right: 24px; top: 8px; display: flex; width: 320px; height: 120px; gap: 8px; opacity: .12; }
.footer-accent img { width: 20%; object-fit: contain; filter: brightness(0) invert(1); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; padding-top: 24px; padding-bottom: 32px; }
.footer-grid section:first-child { display: flex; gap: 16px; }
.footer-logo { width: 92px; height: 72px; object-fit: contain; }
.footer-grid h2 { color: #fff; font-size: 1.12rem; }
.footer-grid a { color: #fff; }
.footer-grid p { margin-bottom: 8px; color: #e8efed; }
.aa-badge { display: inline-block; margin-top: 8px; }
.aa-badge img { width: 88px; }
.copyright { display: flex; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; border-top: 1px solid #53635f; font-size: .9rem; }
.copyright p { margin: 0; }
.copyright a { color: #fff; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: min(420px, calc(100vw - 48px)); padding: 16px 20px; border-left: 6px solid var(--yellow); color: #fff; background: var(--ink); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) {
  .menu-toggle { display: inline-flex; }
  .header-search { display: none; }
  .main-nav { display: none; padding: 8px 24px 16px; flex-direction: column; }
  .main-nav.open { display: flex; }
  .main-nav > a, .nav-group > button { width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .nav-submenu, .nav-submenu-right { position: static; min-width: 0; border-top-width: 2px; box-shadow: none; }
  .nav-submenu a { padding-left: 32px; }
  .hero-inner { padding-right: 40%; }
  .hero-sports { width: 38%; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .utility-bar, .brand-row, .main-nav, .content-shell, .footer-grid, .copyright, .band-inner { padding-inline: 16px; }
  .utility-bar { justify-content: space-between; gap: 8px; }
  .access-key, .utility-links a:nth-child(2), .utility-button { display: none; }
  .utility-links { margin-right: auto; }
  .brand-row { min-height: 80px; }
  .brand { min-width: 0; gap: 8px; }
  .brand img { width: 72px; height: 56px; flex: 0 0 72px; }
  .brand strong { font-size: 1.05rem; }
  .brand small { font-size: .74rem; }
  h1 { font-size: 2rem; }
  .home-hero { min-height: 600px; }
  .hero-inner { min-height: 600px; padding: 48px 16px 260px; justify-content: flex-start; }
  .home-hero h1 { font-size: 2.5rem; }
  .hero-sports { right: 16px; bottom: 12px; width: calc(100% - 32px); max-width: none; min-height: 240px; }
  .hero-sports img { max-height: 220px; }
  .banner-link img { height: clamp(240px, 58vw, 420px); }
  .banner-caption { left: 16px; right: 16px; bottom: 76px; max-width: none; font-size: 1.05rem; }
  .banner-controls { right: 16px; bottom: 16px; }
  .banner-pause { font-size: .82rem; }
  .home-band { padding: 40px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .service-grid, .filter-grid, .form-grid, .card-grid, .result-metrics, .sitemap-grid, .footer-grid, .login-layout { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; gap: 24px; }
  .instruction-intro, .instruction-exercises, .testing-facts { grid-template-columns: 1fr; }
  .instruction-layout > .tabs, .testing-layout > .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .instruction-layout > .tabs .tab-button, .testing-layout > .tabs .tab-button { min-width: 0; }
  .suggestion-layout > .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .suggestion-layout > .tabs .tab-button { min-width: 0; padding-inline: 8px; }
  .suggestion-panel-heading { display: block; }
  .suggestion-shared-action-grid { grid-template-columns: 1fr; }
  .norm-panel-heading { align-items: stretch; flex-direction: column; }
  .norm-panel-heading .segmented-control { align-self: flex-start; }
  .anchor-nav { position: static; }
  .news-item { grid-template-columns: 104px 1fr; gap: 8px 12px; }
  .news-item a { grid-column: 1 / -1; }
  .news-item .news-arrow { display: none; }
  .steps { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .application-menu { min-height: 0; padding-top: 16px; }
  .application-menu-actions { grid-template-columns: 1fr; }
  .application-menu-dropdown ul { position: static; }
  .application-form-steps { grid-template-columns: 1fr; }
  .application-form-panel { padding: 22px 16px; }
  .application-form-grid { grid-template-columns: 1fr; gap: 6px; }
  .application-field-label { min-height: 0; padding-top: 12px; }
  .application-form-actions { align-items: stretch; flex-direction: column-reverse; }
  .application-form-actions .button { width: 100%; }
  .application-dialog-panel { padding: 22px 18px; }
  .application-dialog-actions { align-items: stretch; flex-direction: column-reverse; }
  .application-dialog-actions .button { width: 100%; }
  .assessment-steps { grid-template-columns: 1fr; }
  .assessment-workspace, .assessment-result { padding: 20px 16px; }
  .assessment-basic-grid, .assessment-stage-grid, .assessment-result-layout { grid-template-columns: 1fr; }
  .assessment-sex-field { grid-column: auto; }
  .assessment-score-entry, .assessment-profile, .assessment-result-profile, .assessment-result-item { padding: 16px; }
  .assessment-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duration-fields { grid-template-columns: 1fr; }
  .application-status-steps, .application-detail-list, .application-supplement-grid { grid-template-columns: 1fr; }
  .application-inquiry-header { align-items: stretch; flex-direction: column; }
  .application-status-steps li { text-align: left; }
  .form-panel { padding: 20px 16px; }
  .full { grid-column: auto; }
  .footer-accent { display: none; }
  .copyright { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .font-controls span { display: none; }
  .utility-links a { font-size: .85rem; }
  .brand strong { max-width: 168px; font-size: .94rem; }
  .brand small { display: none; }
  .menu-toggle span:last-child { display: none; }
  .home-hero h1 { font-size: 2.1rem; }
  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

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

.cms-text-default { color: #212529 !important; }
.cms-text-red { color: #9f1c1c !important; }
.cms-text-blue { color: #005a9c !important; }
.cms-text-green { color: #006b4f !important; }

.cms-rich-content {
  max-width: 100%;
  margin: 24px 0 40px;
  overflow-x: auto;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.cms-rich-content > :first-child { margin-top: 0; }
.cms-rich-content > :last-child { margin-bottom: 0; }

.cms-rich-content h1,
.cms-rich-content h2,
.cms-rich-content h3,
.cms-rich-content h4,
.cms-rich-content h5,
.cms-rich-content h6 {
  margin: 1.4em 0 .55em;
  padding-left: 0;
  border-left: 0;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: 0;
}

.cms-rich-content h1 { font-size: 2.25rem; }
.cms-rich-content h2 { font-size: 1.8rem; }
.cms-rich-content h3 { font-size: 1.5rem; }
.cms-rich-content h4 { font-size: 1.25rem; }
.cms-rich-content h5 { font-size: 1.1rem; }
.cms-rich-content h6 { font-size: 1rem; }

.cms-rich-content p,
.cms-rich-content ul,
.cms-rich-content ol,
.cms-rich-content blockquote,
.cms-rich-content pre,
.cms-rich-content table { margin: 0 0 1rem; }

.cms-rich-content ul,
.cms-rich-content ol { padding-inline-start: 2rem; }
.cms-rich-content li { margin-bottom: .35rem; }
.cms-rich-content blockquote { padding: .25rem 0 .25rem 1rem; border-left: 4px solid var(--teal); color: var(--muted); }
.cms-rich-content pre { overflow: auto; padding: 1rem; background: var(--surface); }
.cms-rich-content code { font-family: Consolas, "Courier New", monospace; }
.cms-rich-content table { width: 100%; border-collapse: collapse; }
.cms-rich-content th,
.cms-rich-content td { padding: .75rem; border: 1px solid var(--line); vertical-align: top; }
.cms-rich-content th { background: var(--surface); text-align: left; }
.cms-rich-content a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }

.cms-align-left { text-align: left; }
.cms-align-center { text-align: center; }
.cms-align-right { text-align: right; }
.cms-align-justify { text-align: justify; }
.cms-font-small { font-size: .875rem; }
.cms-font-normal { font-size: 1rem; }
.cms-font-large { font-size: 1.5rem; }
.cms-font-xlarge { font-size: 2.25rem; }

@media print {
  @page { size: A4; margin: 0; }
  .utility-band, .main-nav, .header-actions, .site-footer, .hero-actions, .banner-controls, .filter-panel, .pagination, .toast { display: none !important; }
  .site-header { border: 0; }
  .content-shell { width: 100%; padding: 0; }
  a { color: #000; text-decoration: underline; }
  body.application-printing { margin: 0; color: #000; background: #fff; font-size: 10pt; }
  body.application-printing .site-header,
  body.application-printing #main > .content-shell > :not(#inquiryResult) { display: none !important; }
  body.application-printing #main,
  body.application-printing #inquiryResult,
  body.application-printing .application-inquiry-sheet { margin: 0; padding: 0; border: 0; background: #fff; }
  body.application-printing .application-inquiry-sheet > :not(.application-print-sheet) { display: none !important; }
  body.application-printing .application-print-sheet { display: block; width: 210mm; min-height: 297mm; margin: 0; padding: 10mm; box-shadow: none; }
}
