:root {
  --teal-900: #4b2b20;
  --teal-800: #df4e16;
  --teal-700: #f26522;
  --teal-100: #ffe3c3;
  --teal-50: #fff5df;
  --coral: #2679b9;
  --coral-dark: #17629b;
  --coral-soft: #e5f2fb;
  --amber: #f26522;
  --amber-soft: #fff0cf;
  --cream: #fff0cf;
  --paper: #fff8e9;
  --white: #ffffff;
  --ink: #4b2b20;
  --muted: #74584c;
  --line: #eedfca;
  --focus: #1773b5;
  --shadow-sm: 0 7px 20px rgba(99, 65, 35, 0.1);
  --shadow-lg: 0 22px 60px rgba(99, 65, 35, 0.16);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --content: 1240px;
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  scroll-padding-bottom: 112px;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 8% 8%, rgba(255, 191, 87, 0.18) 0 110px, transparent 112px),
    radial-gradient(circle at 94% 27%, rgba(38, 121, 185, 0.08) 0 140px, transparent 142px);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

body.large-text {
  font-size: 19px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button,
input,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  scroll-margin-block: 112px;
}

:where(button, select, summary, [role="button"], [role="tab"], [role="checkbox"]) {
  min-inline-size: 24px;
  min-block-size: 24px;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--teal-900);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  font-weight: 900;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 850;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 12px 18px;
  color: var(--white);
  background: var(--teal-900);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  width: min(calc(100% - 40px), var(--content));
  min-height: 78px;
  padding: 10px 24px;
  margin: 0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 10px 32px rgba(95, 61, 30, 0.1);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand-mark,
.brand-mascot {
  display: inline-grid;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: var(--white);
  border: 2px solid #ffbb78;
  border-radius: 50%;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 5px 13px rgba(242, 101, 34, 0.17);
  overflow: hidden;
}

.brand-mascot img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  transform: translateY(5px) scale(1.2);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--teal-900);
  font-size: 1.08rem;
  line-height: 1.3;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav a {
  padding: 10px 14px;
  color: var(--teal-900);
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 750;
}

.desktop-nav a:hover {
  color: var(--teal-700);
  background: var(--teal-50);
}

.desktop-nav a::after {
  display: block;
  width: 0;
  height: 3px;
  margin: 3px auto -3px;
  background: var(--teal-700);
  border-radius: 99px;
  transition: width 0.18s ease;
  content: "";
}

.desktop-nav a:hover::after {
  width: 26px;
}

.accessibility-tools {
  display: flex;
  gap: 8px;
}

.header-utilities {
  display: grid;
  justify-self: end;
  justify-items: end;
  gap: 3px;
}

.visit-counter {
  min-height: 1em;
  margin: 0 2px 0 0;
  color: #000;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 7px 11px;
  color: var(--teal-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 750;
}

.tool-button:hover,
.tool-button[aria-pressed="true"] {
  color: var(--white);
  background: var(--teal-700);
  border-color: var(--teal-700);
}

main {
  overflow: clip;
}

.hero,
.section,
.quick-guide {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  min-height: 650px;
  margin-top: 28px;
  background: linear-gradient(135deg, #ff6b21 0%, #ff8129 100%);
  border: 1px solid #ff8a3d;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hero-copy {
  align-self: center;
  padding: clamp(38px, 6vw, 80px);
}

.hero .eyebrow,
.hero h1,
.hero .lead,
.hero .hero-search label,
.hero .trust-row,
.hero .trust-row strong {
  color: var(--white);
}

.hero .eyebrow {
  letter-spacing: 0.2em;
  opacity: 0.86;
}

.mobile-title-break {
  display: none;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--coral-dark);
  font-size: 0.79rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.hero-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-900);
  font-size: 0.91rem;
  font-weight: 800;
}

.search-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 16px;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.search-control:focus-within {
  border-color: var(--teal-700);
}

.search-control > span {
  color: var(--teal-700);
  font-size: 1.35rem;
}

.search-control input {
  width: 100%;
  min-width: 0;
  height: 48px;
  background: transparent;
  border: 0;
  outline: 0;
}

.primary-button,
.secondary-button,
.ghost-button,
.light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 19px;
  border-radius: 12px;
  font-weight: 850;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button {
  color: var(--white);
  background: var(--teal-700);
  border: 1px solid var(--teal-700);
  box-shadow: 0 8px 20px rgba(15, 92, 87, 0.2);
}

.primary-button:hover,
.secondary-button:hover,
.light-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: var(--teal-800);
}

.secondary-button {
  color: var(--teal-700);
  background: var(--white);
  border: 1px solid var(--teal-700);
}

.secondary-button:hover,
.secondary-button.is-active {
  color: var(--white);
  background: var(--teal-700);
}

.ghost-button {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
}

.ghost-button:hover {
  color: var(--teal-700);
  background: var(--teal-50);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 0.88rem;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.trust-row span + span::before {
  width: 5px;
  height: 5px;
  margin-right: 8px;
  background: var(--coral);
  border-radius: 50%;
  content: "";
}

.trust-row strong {
  color: var(--teal-900);
  font-size: 1rem;
}

.hero-picture {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
}

.hero-picture::after {
  display: none;
}

.hero-picture img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 44px 24px 12px;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(137, 54, 15, 0.18));
}

.mascot-stage {
  background:
    radial-gradient(circle at 83% 9%, rgba(255, 203, 116, 0.62) 0 116px, transparent 118px),
    radial-gradient(circle at 22% 90%, rgba(255, 188, 94, 0.55) 0 140px, transparent 142px);
}

.stage-dot {
  position: absolute;
  z-index: 1;
  display: block;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.dot-one {
  top: 25%;
  left: 8%;
  width: 34px;
  height: 34px;
}

.dot-two {
  right: 13%;
  bottom: 20%;
  width: 55px;
  height: 55px;
}

.hero-picture figcaption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--coral-dark);
  background: rgba(255, 253, 249, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.hero-picture figcaption span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  color: var(--white);
  background: var(--coral);
  border-radius: 50%;
  place-items: center;
}

.quick-guide {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: center;
  gap: 28px;
  padding: 40px 0 10px;
}

.quick-guide h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.need-chips {
  display: flex;
  gap: 9px;
  padding-block: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.need-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--teal-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 750;
}

.need-chip:hover,
.need-chip.is-active {
  color: var(--white);
  background: var(--teal-700);
  border-color: var(--teal-700);
}

.section {
  padding-block: clamp(65px, 9vw, 110px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading > p:last-child {
  color: var(--muted);
}

.split-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.split-heading > div {
  max-width: 760px;
}

.centered {
  margin-inline: auto;
  text-align: center;
}

.directory-tools {
  margin-bottom: 22px;
  background: #fff7e8;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.filter-tabs {
  display: flex;
  gap: 7px;
  padding: 12px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.filter-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 800;
}

.filter-tab span {
  display: inline-grid;
  min-width: 27px;
  height: 24px;
  padding-inline: 5px;
  color: var(--muted);
  background: var(--teal-50);
  border-radius: 999px;
  place-items: center;
  font-size: 0.72rem;
}

.filter-tab:hover,
.filter-tab.is-active {
  color: var(--white);
  background: var(--teal-700);
}

.filter-tab.is-active span {
  color: var(--teal-900);
  background: var(--white);
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.5fr) minmax(180px, 0.8fr) minmax(170px, 0.65fr) auto;
  align-items: end;
  gap: 12px;
  padding: 18px;
}

.field span {
  display: block;
  margin-bottom: 5px;
  color: var(--teal-900);
  font-size: 0.78rem;
  font-weight: 850;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.83rem;
}

.result-toolbar p {
  margin-bottom: 0;
}

#resultCount {
  color: var(--teal-900);
  font-size: 0.95rem;
  font-weight: 850;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.device-card {
  position: relative;
  display: flex;
  min-height: 365px;
  padding: 22px;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 0 rgba(15, 92, 87, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.device-card:hover {
  border-color: #9fc6ba;
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.device-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 15px;
}

.device-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  color: var(--coral-dark);
  background: var(--coral-soft);
  border: 1px solid #c5e0f2;
  border-radius: 15px;
  place-items: center;
  font-size: 1.5rem;
}

.favorite-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  place-items: center;
  font-size: 1.4rem;
}

.favorite-button:hover,
.favorite-button.is-favorite {
  color: var(--amber);
  background: var(--amber-soft);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.system-badge,
.code-badge,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
}

.system-badge.disability {
  color: #1e538a;
  background: #e8f2ff;
}

.system-badge.ltc {
  color: #7e431c;
  background: #fff0df;
}

.system-badge.smart {
  color: #563981;
  background: #f0e9fb;
}

.code-badge,
.tag {
  color: var(--muted);
  background: #eef1f0;
}

.device-card h3 {
  margin-bottom: 9px;
}

.device-card h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.device-card h3 a:focus-visible {
  outline: none;
}

.device-card:has(h3 a:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.device-card > p {
  display: -webkit-box;
  margin-bottom: 18px;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 0.89rem;
}

.card-subsidy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.card-subsidy span {
  color: var(--muted);
}

.card-subsidy strong {
  color: var(--coral-dark);
  font-size: 0.94rem;
}

.text-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  color: var(--teal-700);
  font-weight: 850;
}

.text-link:hover {
  color: var(--coral-dark);
}

.card-link {
  margin-top: 13px;
  font-size: 0.85rem;
}

.link-button {
  padding: 0;
  background: transparent;
  border: 0;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.empty-state {
  padding: 65px 20px;
  color: var(--muted);
  background: var(--teal-50);
  border: 1px dashed #9fc6ba;
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-state > span {
  display: block;
  margin-bottom: 10px;
  color: var(--teal-700);
  font-size: 2.3rem;
}

.subsidy-section {
  position: relative;
}

.subsidy-section::before {
  position: absolute;
  z-index: -1;
  inset: 18% -50vw 0;
  background: #fff0cf;
  content: "";
}

.subsidy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.subsidy-card {
  position: relative;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal-700);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.subsidy-card.ltc {
  border-top-color: var(--coral);
}

.subsidy-card.smart {
  border-top-color: #7654a4;
}

.subsidy-number {
  position: absolute;
  top: 6px;
  right: 18px;
  color: rgba(15, 92, 87, 0.09);
  font-size: 4.2rem;
  font-weight: 950;
  line-height: 1;
}

.subsidy-card > p:not(.eyebrow) {
  color: var(--muted);
}

.subsidy-card ul {
  padding-left: 1.25rem;
  margin-bottom: 20px;
}

.subsidy-card li + li {
  margin-top: 5px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 14px;
}

.notice.important {
  color: #663b13;
  background: var(--amber-soft);
  border: 1px solid #ebce8c;
}

.notice > span {
  display: inline-grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: var(--white);
  background: var(--amber);
  border-radius: 50%;
  place-items: center;
  font-weight: 900;
}

.notice p {
  margin-bottom: 0;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: none;
}

.process-list li {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 15px;
  padding: 24px 25px 24px 0;
}

.process-list li + li {
  padding-left: 25px;
  border-left: 1px solid var(--line);
}

.process-list li > span {
  display: inline-grid;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: var(--coral);
  border-radius: 50% 50% 50% 14px;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 900;
}

.process-list h3 {
  margin-bottom: 7px;
}

.process-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.light-button {
  color: var(--teal-900);
  background: var(--white);
  border: 1px solid var(--white);
  white-space: nowrap;
}

.site-footer {
  padding: 64px max(24px, calc((100vw - var(--content)) / 2)) 22px;
  color: #d9e8e5;
  background: #4b2b20;
}

.center-contact {
  padding: clamp(26px, 4vw, 42px);
  margin-bottom: 46px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
}

.contact-action-row {
  display: flex;
  gap: 12px;
  margin: -4px 0 22px;
  flex-wrap: wrap;
}

.contact-primary-action,
.contact-secondary-action {
  display: inline-flex;
  min-height: 58px;
  padding: 10px 18px;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-weight: 850;
}

.contact-primary-action {
  min-width: 238px;
  color: #4b2b20;
  background: #ffd29b;
}

.contact-primary-action > span:first-child {
  font-size: 1.35rem;
}

.contact-primary-action small,
.contact-primary-action strong {
  display: block;
}

.contact-primary-action small {
  font-size: 0.68rem;
}

.contact-primary-action strong {
  font-size: 1.06rem;
}

.contact-secondary-action {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.contact-secondary-action:hover {
  color: #4b2b20;
  background: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 18px;
  align-items: stretch;
}

.contact-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 30px;
  margin-bottom: 25px;
  align-items: end;
}

.contact-heading .eyebrow {
  grid-column: 1 / -1;
  color: #ffc98c;
}

.contact-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
}

.contact-heading > p:last-child {
  max-width: 430px;
  margin: 0;
  color: #d7c6bc;
  font-size: 0.86rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  font-style: normal;
}

.contact-map {
  display: grid;
  margin: 0;
  background: #fff8ed;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  overflow: hidden;
}

.contact-map img {
  width: 100%;
  height: 100%;
  min-height: 244px;
  object-fit: contain;
  background: #fff;
}

.contact-map figcaption {
  display: grid;
  gap: 3px;
  padding: 14px 16px 16px;
  color: #5f4639;
  font-size: 0.78rem;
}

.contact-map figcaption strong {
  color: #4b2b20;
  font-size: 0.86rem;
}

.contact-map figcaption a {
  margin-top: 5px;
  color: #9a451f;
  font-weight: 850;
}

.contact-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  min-height: 103px;
  padding: 17px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 17px;
}

.contact-item > span {
  display: grid;
  width: 42px;
  height: 42px;
  color: #542c1e;
  background: #ffd29b;
  border-radius: 13px;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 900;
}

.contact-item strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 0.82rem;
}

.contact-item p {
  margin: 0;
  color: #e1d1c8;
  font-size: 0.8rem;
  line-height: 1.65;
}

.contact-item a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-item a:hover {
  color: #ffd29b;
}

.contact-hours {
  grid-column: span 2;
}

.center-education-section {
  padding-inline: max(24px, calc((100vw - var(--content)) / 2));
  background: #fff7e8;
}

.center-topic-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  margin-top: 30px;
}

.center-topic-card {
  display: flex;
  min-height: 265px;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid #ead9c0;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  flex-direction: column;
}

.center-topic-card > span {
  color: #d45b27;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.center-topic-card h3 {
  margin: 14px 0 8px;
  color: var(--teal-900);
  font-size: 1rem;
  line-height: 1.45;
}

.center-topic-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.79rem;
}

.center-topic-card a {
  margin-top: auto;
  color: #a24720;
  font-size: 0.78rem;
  font-weight: 850;
}

.ability-hint {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  background: #d8c4a8;
  border: 1px solid #d8c4a8;
  border-radius: 18px;
  overflow: hidden;
}

.ability-hint > div {
  padding: 18px 20px;
  background: #fffdf8;
}

.ability-hint strong {
  color: var(--teal-900);
  font-size: 0.86rem;
}

.ability-hint p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.77rem;
}

.ability-hint .ability-note {
  grid-column: 1 / -1;
  padding: 10px 16px;
  margin: 0;
  color: #6d4c3d;
  background: #ffe2b9;
  font-size: 0.73rem;
  font-weight: 750;
}

@media (max-width: 1080px) {
  .center-topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-map img { max-height: 390px; }
}

@media (max-width: 780px) {
  .center-topic-grid,
  .ability-hint { grid-template-columns: 1fr; }
  .center-topic-card { min-height: 0; }
  .ability-hint .ability-note { grid-column: auto; }
  .contact-action-row { display: grid; }
  .contact-primary-action,
  .contact-secondary-action { width: 100%; }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 1fr;
  gap: 60px;
  padding-bottom: 42px;
}

.brand-footer strong,
.brand-footer small {
  color: var(--white);
}

.brand-footer + p {
  max-width: 490px;
  margin-top: 20px;
  color: #b8cdca;
}

.site-footer h2 {
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0;
}

.site-footer p {
  margin-bottom: 10px;
}

.footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  color: #9eb8b4;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.78rem;
}

.bottom-nav {
  display: none;
}

/* Detail pages */
.detail-body {
  background: var(--cream);
}

.detail-main {
  width: min(calc(100% - 40px), var(--content));
  margin: 30px auto 90px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.83rem;
}

.breadcrumbs a:hover {
  color: var(--teal-700);
  text-decoration: underline;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: center;
  gap: 45px;
  padding: clamp(30px, 5vw, 62px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.detail-hero h1 {
  max-width: 850px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.5vw, 3.9rem);
}

.detail-hero .lead {
  margin-bottom: 20px;
}

.detail-visual {
  display: grid;
  min-height: 230px;
  color: var(--teal-700);
  background: linear-gradient(145deg, var(--teal-50), var(--cream));
  border: 1px solid #cfe3dc;
  border-radius: 50% 50% 18% 50%;
  place-items: center;
  font-size: 6.5rem;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 7px 11px;
  color: var(--teal-700);
  background: var(--white);
  border: 1px solid #b6d2ca;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 800;
}

.detail-action:hover,
.detail-action[aria-pressed="true"] {
  color: var(--white);
  background: var(--teal-700);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 24px;
  margin-top: 24px;
}

.detail-content,
.detail-sidebar > * {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.detail-content {
  padding: clamp(25px, 4vw, 48px);
}

.content-section + .content-section {
  padding-top: 38px;
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.content-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.65rem;
}

.section-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: var(--teal-700);
  background: var(--teal-50);
  border-radius: 11px;
  place-items: center;
  font-size: 1.05rem;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.education-block {
  padding: 20px;
  background: #fafcfb;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.education-block h3 {
  font-size: 1.02rem;
}

.education-block ul,
.plain-list {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.education-block li + li,
.plain-list li + li {
  margin-top: 7px;
}

.safety-box {
  margin-top: 16px;
  padding: 20px;
  color: #703d1f;
  background: var(--coral-soft);
  border-left: 5px solid var(--coral);
  border-radius: 0 13px 13px 0;
}

.safety-box h3 {
  color: #703d1f;
}

.subsidy-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.subsidy-table th,
.subsidy-table td {
  padding: 13px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.subsidy-table th {
  color: var(--teal-900);
  background: var(--teal-50);
}

.subsidy-table strong {
  color: var(--coral-dark);
}

.official-detail {
  margin-top: 18px;
}

.official-detail summary {
  color: var(--teal-700);
  cursor: pointer;
  font-weight: 850;
}

.official-detail div {
  padding: 16px 18px;
  margin-top: 10px;
  color: var(--muted);
  background: var(--teal-50);
  border-radius: 12px;
  white-space: pre-line;
}

.detail-sidebar {
  position: sticky;
  top: 105px;
  display: grid;
  gap: 14px;
}

.sidebar-card {
  padding: 22px;
}

.sidebar-card h2,
.sidebar-card h3 {
  font-size: 1.15rem;
}

.fact-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.fact-list div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.fact-list dt {
  color: var(--muted);
  font-size: 0.79rem;
}

.fact-list dd {
  margin: 0;
  color: var(--teal-900);
  font-size: 0.85rem;
  font-weight: 750;
}

.sidebar-card .primary-button,
.sidebar-card .secondary-button {
  width: 100%;
}

.sidebar-card .secondary-button + .secondary-button,
.sidebar-card .primary-button + .secondary-button {
  margin-top: 8px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-card {
  padding: 16px;
  background: #fafcfb;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.related-card small {
  display: block;
  color: var(--muted);
}

.related-card:hover {
  border-color: var(--teal-700);
}

.toast {
  position: fixed;
  z-index: 999;
  right: 24px;
  bottom: 24px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--teal-900);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

.not-found {
  width: min(calc(100% - 40px), 720px);
  padding: 70px 25px;
  margin: 70px auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}

body.high-contrast {
  --teal-900: #000000;
  --teal-800: #000000;
  --teal-700: #004d40;
  --teal-100: #ffffff;
  --teal-50: #ffffff;
  --coral: #9f2500;
  --coral-dark: #831e00;
  --coral-soft: #ffffff;
  --amber: #764700;
  --amber-soft: #fff7c2;
  --cream: #ffffff;
  --paper: #ffffff;
  --ink: #000000;
  --muted: #292929;
  --line: #000000;
}

body.high-contrast .site-header,
body.high-contrast .hero-picture figcaption {
  background: #ffffff;
}

body.high-contrast .device-card,
body.high-contrast .subsidy-card,
body.high-contrast .detail-content,
body.high-contrast .detail-sidebar > * {
  border-width: 2px;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 0.75fr;
  }

  .hero-copy {
    padding: 44px;
  }

  .device-grid,
  .subsidy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .process-list li:nth-child(4) {
    border-top: 1px solid var(--line);
  }

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

  .detail-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  body {
    padding-bottom: 74px;
  }

  .site-header {
    min-height: 70px;
    padding: 8px 16px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small,
  .tool-label {
    display: none;
  }

  .tool-button {
    min-width: 40px;
    padding: 7px;
    justify-content: center;
  }

  .hero,
  .section,
  .quick-guide,
  .detail-main {
    width: min(calc(100% - 24px), var(--content));
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: 12px;
  }

  .hero-copy {
    padding: 34px 24px;
  }

  .hero-picture {
    min-height: 310px;
  }

  .hero-picture::after {
    inset: 0 0 auto;
    width: auto;
    height: 15%;
    background: linear-gradient(180deg, var(--cream), transparent);
  }

  .hero-picture img {
    object-position: 67% center;
  }

  .search-control {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .search-control .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .trust-row {
    gap: 10px 16px;
  }

  .quick-guide {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 35px;
  }

  .section {
    padding-block: 62px;
  }

  .split-heading,
  .result-toolbar,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .split-heading {
    display: flex;
  }

  .filter-row {
    grid-template-columns: 1fr 1fr;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .device-grid,
  .subsidy-grid,
  .footer-grid,
  .education-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .device-card {
    min-height: 330px;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li,
  .process-list li + li,
  .process-list li:nth-child(3),
  .process-list li:nth-child(4) {
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .process-list li:first-child {
    border-top: 0;
  }

  .site-footer {
    padding: 52px 22px 28px;
  }

  .footer-grid {
    gap: 28px;
  }

  .bottom-nav {
    position: fixed;
    z-index: 120;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 7px 8px max(7px, env(safe-area-inset-bottom));
    background: rgba(255, 253, 249, 0.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -7px 22px rgba(20, 64, 60, 0.1);
    backdrop-filter: blur(15px);
  }

  .bottom-nav a {
    display: grid;
    gap: 1px;
    min-height: 52px;
    color: var(--teal-900);
    border-radius: 10px;
    place-items: center;
    font-size: 0.69rem;
    font-weight: 800;
  }

  .bottom-nav a span {
    color: var(--teal-700);
    font-size: 1.22rem;
    line-height: 1;
  }

  .detail-main {
    margin-top: 16px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 22px;
  }

  .detail-visual {
    min-height: 170px;
    font-size: 4.8rem;
  }

  .detail-content {
    padding: 24px 19px;
  }

  .detail-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 470px) {
  h1 {
    font-size: 2.2rem;
  }

  .mobile-title-break {
    display: inline;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .search-field {
    grid-column: auto;
  }

  .filter-row .ghost-button {
    width: 100%;
  }

  .hero-picture figcaption {
    right: 12px;
    bottom: 12px;
    left: 12px;
    justify-content: center;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  body:not(.high-contrast) {
    --teal-900: #000000;
    --teal-800: #000000;
    --teal-700: #004d40;
    --teal-100: #ffffff;
    --teal-50: #ffffff;
    --coral: #9f2500;
    --coral-dark: #831e00;
    --coral-soft: #ffffff;
    --amber: #764700;
    --amber-soft: #fff7c2;
    --cream: #ffffff;
    --paper: #ffffff;
    --ink: #000000;
    --muted: #292929;
    --line: #000000;
  }
}

@media (forced-colors: active) {
  :focus-visible {
    outline-color: Highlight;
  }
}

@media print {
  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .site-header,
  .bottom-nav,
  .site-footer,
  .detail-actions,
  .detail-sidebar,
  .related-section,
  .breadcrumbs {
    display: none !important;
  }

  .detail-main,
  .detail-layout {
    display: block;
    width: 100%;
    margin: 0;
  }

  .detail-hero,
  .detail-content {
    padding: 16px 0;
    border: 0;
    box-shadow: none;
  }

  .detail-visual {
    display: none;
  }

  .content-section {
    break-inside: avoid;
  }
}

/* 2026-09：臺東縣輔具資源中心線上服務入口 */
html:has(body[data-font="standard"]) { font-size: 100%; }
html:has(body[data-font="large"]) { font-size: 118.75%; }
html:has(body[data-font="xlarge"]) { font-size: 118.75%; }
body[data-font] { font-size: 1rem; }
body[data-font="xlarge"] .desktop-nav { display: none; }
body[data-font="xlarge"] .site-header { grid-template-columns: 1fr auto; }

.font-size-switcher {
  display: inline-flex;
  padding: 3px;
  background: #fff7e9;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.font-size-switcher button {
  display: inline-grid;
  min-width: 46px;
  min-height: 38px;
  padding: 4px 7px;
  color: var(--teal-900);
  background: transparent;
  border: 0;
  border-radius: 9px;
  place-items: center;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.05;
}
.font-size-switcher button span { font-size: .48rem; font-weight: 750; }
.font-size-switcher button[aria-pressed="true"] { color: #fff; background: var(--teal-700); }

.service-hero { grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); min-height: 720px; }
.service-hero .hero-copy { padding: clamp(34px, 5vw, 66px); }
.service-hero h1 { margin-bottom: 15px; font-size: clamp(2.65rem, 5vw, 4.4rem); }
.service-hero h1 span,
.service-hero h1 small { display: block; color: #fff; }
.service-hero h1 small { max-width: 680px; margin-top: 8px; font-size: clamp(1.05rem, 2vw, 1.6rem); font-weight: 750; line-height: 1.5; letter-spacing: 0; }
.service-hero .lead { margin-bottom: 20px; }
.hero-service-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero-service-actions a { display: grid; grid-template-columns: 36px 1fr; gap: 0 10px; min-width: 0; padding: 13px; color: #4b2b20; background: rgba(255,255,255,.95); border: 1px solid rgba(255,255,255,.8); border-radius: 15px; box-shadow: 0 8px 18px rgba(88,45,18,.11); }
.hero-service-actions a:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(88,45,18,.18); }
.hero-service-actions a > span { grid-row: 1 / 3; display: grid; width: 36px; height: 36px; color: #fff; background: var(--coral); border-radius: 11px; place-items: center; font-weight: 900; }
.hero-service-actions strong { overflow-wrap: anywhere; font-size: .9rem; line-height: 1.35; }
.hero-service-actions small { color: var(--muted); font-size: .66rem; line-height: 1.4; }
.service-hero .hero-picture { min-width: 0; min-height: 100%; }
.service-hero .hero-picture img { max-height: 690px; padding: 70px 22px 32px; object-position: center bottom; }
.service-hero .hero-picture figcaption { z-index: 3; }

.four-methods { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.four-methods .finder-method { grid-template-columns: 48px 1fr; min-width: 0; min-height: 126px; padding: 22px 18px; }
.four-methods .finder-method > span { grid-row: 1 / 3; display: grid; width: 48px; height: 48px; color: #d84e18; background: #fff3dd; border-radius: 15px; place-items: center; font-size: 1.35rem; }
.four-methods .finder-method.is-active > span { color: var(--teal-700); background: #fff; }
.four-methods .finder-method strong { font-size: 1rem; overflow-wrap: anywhere; }
.wizard-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding-bottom: 14px; margin-bottom: 16px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .8rem; }
.wizard-status span { display: inline-flex; padding: 5px 11px; color: #fff; background: var(--teal-700); border-radius: 999px; font-weight: 850; }
.wizard-status strong { color: var(--teal-900); }
.wizard-options { display: grid; gap: 12px; }
.wizard-options.need-options { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wizard-options.three-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wizard-options.four-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wizard-options button { display: grid; min-width: 0; min-height: 112px; padding: 18px; text-align: left; background: #fffaf2; border: 2px solid #ead8bf; border-radius: 17px; align-content: center; }
.wizard-options button:hover { background: #fff0d8; border-color: var(--teal-700); transform: translateY(-2px); }
.wizard-options button > span { color: var(--coral-dark); font-size: 1.45rem; }
.wizard-options button strong { display: block; margin-top: 4px; overflow-wrap: anywhere; font-size: .95rem; }
.wizard-options button small { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.wizard-back { min-height: 44px; padding: 8px 14px; margin-top: 18px; color: #9c491f; background: #fff1dc; border: 1px solid #ecc69a; border-radius: 999px; font-weight: 850; }
.wizard-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.wizard-actions .wizard-back { margin-top: 0; }
.wizard-disclaimer { padding: 12px 15px; margin: 18px 0 0; color: #6f594d; background: #f3eee6; border-radius: 12px; font-size: .76rem; }
.inline-results { padding-top: 34px; margin-top: 30px; border-top: 1px solid var(--line); }
.result-count { color: var(--teal-900); font-weight: 850; }
.compact-guide-card { min-height: 350px; }

.eligibility-section { width: 100%; padding-inline: max(20px, calc((100% - var(--content)) / 2)); background: #fff0d4; }
.eligibility-section > .section-heading { max-width: 760px; }
.wizard-shell { padding: clamp(22px, 5vw, 44px); background: #fff; border: 1px solid #edd7b8; border-radius: 27px; box-shadow: var(--shadow-lg); }
.eligibility-consent-pending { max-width: 640px; margin: 0 auto; text-align: center; }
.eligibility-consent-pending strong { color: var(--teal-900); font-size: 1.08rem; }
.eligibility-consent-pending p { margin: 7px 0 0; color: var(--muted); }
.eligibility-privacy-dialog { width: min(680px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; color: var(--ink); background: #fff; border: 0; border-radius: 24px; box-shadow: 0 30px 90px rgba(25, 39, 38, .38); overflow: auto; }
.eligibility-privacy-dialog::backdrop { background: rgba(24, 35, 34, .76); backdrop-filter: blur(3px); }
.eligibility-privacy-content { padding: clamp(24px, 5vw, 40px); }
.eligibility-privacy-icon { display: grid; width: 52px; height: 52px; margin-bottom: 17px; color: #fff; background: var(--teal-700); border-radius: 50%; place-items: center; font-size: 1.35rem; font-weight: 900; }
.eligibility-privacy-content h2 { margin: 5px 0 14px; color: var(--teal-900); font-size: clamp(1.55rem, 4vw, 2.15rem); line-height: 1.25; }
.eligibility-privacy-content p { color: var(--muted); }
.eligibility-privacy-content ul { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.eligibility-privacy-content li { padding: 13px 15px; background: #f2faf7; border: 1px solid #cfe5dd; border-radius: 13px; line-height: 1.65; }
.eligibility-privacy-content li strong { color: var(--teal-800); }
.eligibility-privacy-note { padding-top: 15px; border-top: 1px solid var(--line); font-size: .88rem; }
.eligibility-privacy-actions { display: flex; gap: 12px; margin-top: 24px; justify-content: flex-end; }
.eligibility-privacy-actions button { min-width: 128px; }
.eligibility-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.eligibility-results article { padding: 22px; background: #fffaf1; border: 1px solid var(--line); border-radius: 18px; }
.eligibility-results article > span { display: inline-flex; padding: 4px 9px; color: #fff; background: #3a846b; border-radius: 999px; font-size: .7rem; font-weight: 850; }
.eligibility-results h3 { margin: 13px 0 7px; font-size: 1.1rem; }
.eligibility-results p { color: var(--muted); font-size: .82rem; }
.eligibility-results a { color: var(--coral-dark); font-size: .78rem; font-weight: 850; }

.calculator-section { width: 100%; padding-inline: max(20px, calc((100% - var(--content)) / 2)); background: #e9f4fb; }
.review-stamp { flex: 0 0 auto; padding: 9px 13px; text-align: center; color: #17689e; background: #fff; border: 1px solid #b8d9ed; border-radius: 12px; font-size: .7rem; }
.calculator-layout { display: grid; grid-template-columns: minmax(330px, .76fr) minmax(0, 1.24fr); gap: 18px; align-items: start; }
.calculator-controls,
.calculator-results { min-width: 0; padding: 24px; background: #fff; border: 1px solid #cfe1ec; border-radius: 24px; box-shadow: var(--shadow-sm); }
.calculator-results { position: sticky; top: 106px; }
.calc-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-settings label,
.calc-add > label { display: grid; gap: 5px; color: var(--teal-900); font-size: .74rem; font-weight: 850; }
.calc-settings input,
.calc-settings select,
.calc-add input { width: 100%; min-width: 0; height: 46px; padding: 0 11px; background: #fffaf2; border: 1px solid var(--line); border-radius: 10px; }
.calc-add { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.calc-add > div:first-of-type { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.calc-add > div:first-of-type button { min-height: 46px; padding: 0 16px; color: #fff; background: var(--teal-700); border: 0; border-radius: 10px; font-weight: 850; }
.calc-suggestions { display: grid; max-height: 310px; margin-top: 10px; overflow: auto; }
.calc-suggestions > button { display: grid; grid-template-columns: 35px 1fr auto; gap: 0 9px; padding: 10px; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line); align-items: center; }
.calc-suggestions > button:hover { background: #fff5e5; }
.calc-suggestions > button > span { grid-row: 1 / 3; display: grid; width: 35px; height: 35px; padding: 4px; background: #eaf5fc; border-radius: 9px; place-items: center; }
.calc-suggestions strong { overflow-wrap: anywhere; font-size: .82rem; }
.calc-suggestions small { color: var(--muted); font-size: .62rem; }
.calc-suggestions b { grid-column: 3; grid-row: 1 / 3; color: var(--teal-700); font-size: .7rem; }
.calc-selected { padding-top: 18px; }
.calc-selected > h3 { font-size: .95rem; }
.calc-item { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); align-items: start; }
.calc-item > span { display: grid; width: 38px; height: 38px; padding: 4px; background: #eaf5fc; border-radius: 10px; place-items: center; }
.calc-item strong { display: block; overflow-wrap: anywhere; font-size: .84rem; }
.calc-item label { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 6px; color: var(--muted); font-size: .67rem; align-items: center; }
.calc-item input { width: 120px; min-width: 0; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; }
.calc-item > button { padding: 5px 8px; color: #a13f30; background: #fff0ed; border: 0; border-radius: 8px; font-size: .65rem; font-weight: 800; }
.calc-empty { padding: 25px; text-align: center; color: var(--muted); }
.calc-empty img { width: 115px; height: 90px; object-fit: contain; }
.calc-result-head { display: flex; justify-content: space-between; gap: 15px; align-items: start; }
.calc-result-head h3 { margin: 0; }
.calc-result-head button,
#copyCalcResult { min-height: 40px; padding: 8px 12px; color: #17689e; background: #eaf5fc; border: 1px solid #b8d9ed; border-radius: 10px; font-weight: 850; }
.calc-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.calc-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: .72rem; }
.calc-table th,
.calc-table td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.calc-table thead th { color: #fff; background: var(--teal-900); }
.calc-table tbody th { min-width: 135px; }
.calc-table td { min-width: 150px; }
.calc-table td strong,
.calc-table td small,
.calc-table tbody th small { display: block; margin-top: 4px; }
.calc-table td small,
.calc-table tbody th small { color: var(--muted); font-weight: 500; line-height: 1.45; }
.calc-table .ltc-code-breakdown { padding: 7px 0; border-top: 1px dashed var(--line); color: var(--ink); }
.calc-table .ltc-code-breakdown:first-of-type { margin-top: 8px; }
.compare-label { display: inline-flex; padding: 4px 7px; color: #fff; background: #3a846b; border-radius: 999px; font-size: .63rem; font-weight: 850; }
.plan-compare { padding: 17px; margin-top: 16px; background: #f3f8fb; border-radius: 14px; }
.plan-compare h4 { margin: 0 0 10px; }
.plan-compare > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.plan-compare article { padding: 11px; background: #fff; border: 1px solid #dbe7ee; border-radius: 10px; }
.plan-compare small,
.plan-compare strong,
.plan-compare span { display: block; overflow-wrap: anywhere; }
.plan-compare small { color: var(--muted); font-size: .61rem; }
.plan-compare strong { margin-top: 5px; font-size: .86rem; }
.plan-compare span { margin-top: 3px; color: var(--muted); font-size: .64rem; }
.plan-compare > p { margin: 10px 0 0; color: var(--muted); font-size: .65rem; }
.calc-warning { padding: 13px 15px; margin-top: 14px; color: #7c3f22; background: #fff0d5; border-left: 5px solid var(--teal-700); border-radius: 10px; font-size: .7rem; }
.calc-warning p { margin: 4px 0 0; }
.calc-duplicate-note { padding: 12px 14px; margin: 14px 0 0; color: #7c3f22; background: #fff0d5; border-left: 5px solid var(--coral); border-radius: 10px; font-size: .82rem; line-height: 1.55; }

.education-tabs { display: flex; gap: 8px; padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.education-tabs button { flex: 1; min-height: 46px; padding: 8px 12px; color: var(--teal-900); background: transparent; border: 0; border-radius: 10px; font-weight: 850; }
.education-tabs button.is-active { color: #fff; background: var(--teal-700); }
.education-library-panel { padding-top: 18px; }
.resource-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.resource-card-grid a { display: grid; min-height: 180px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 19px; box-shadow: var(--shadow-sm); align-content: end; }
.resource-card-grid a:hover { transform: translateY(-2px); border-color: var(--teal-700); }
.resource-card-grid span { width: max-content; padding: 4px 8px; color: #fff; background: var(--coral); border-radius: 999px; font-size: .68rem; font-weight: 850; }
.resource-card-grid strong { margin-top: 12px; font-size: 1.08rem; }
.resource-card-grid small { margin-top: 5px; color: var(--muted); }
.language-intro { display: flex; gap: 18px; padding: 20px; background: #fff0d6; border-radius: 18px; align-items: center; }
.language-intro img { width: 90px; height: 75px; object-fit: contain; }
.language-intro h3,
.language-intro p { margin-bottom: 4px; }
.language-intro p { color: var(--muted); }
.language-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.language-grid a { display: grid; min-width: 0; padding: 17px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 15px; place-items: center; }
.language-grid a > span { display: grid; width: 36px; height: 36px; color: #fff; background: #d7472b; border-radius: 50%; place-items: center; }
.language-grid strong { margin-top: 8px; overflow-wrap: anywhere; }
.language-grid small { color: var(--muted); font-size: .65rem; }
.smart-entry { display: flex; justify-content: space-between; gap: 25px; padding-inline: clamp(28px,6vw,70px); color: #fff; background: linear-gradient(135deg,#17689f,#3191c9); border-radius: 28px; align-items: center; }
.smart-entry > div { display: flex; gap: 20px; align-items: center; }
.smart-entry > div > span { font-size: 3rem; }
.smart-entry h2,
.smart-entry .eyebrow { color: #fff; }
.smart-entry h2 { margin-bottom: 5px; }
.smart-entry p { margin-bottom: 0; }
.application-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.application-links a { padding: 10px 14px; color: var(--teal-700); background: #fff; border: 1px solid var(--teal-700); border-radius: 10px; font-weight: 850; }
.other-resources { display: flex; flex-wrap: wrap; gap: 9px 18px; width: min(calc(100% - 40px), var(--content)); padding: 18px 0; margin: 0 auto; color: #f8d8c8; border-top: 1px solid rgba(255,255,255,.15); align-items: center; }
.other-resources a { text-decoration: underline; }

.feedback-fab { position: fixed; right: 18px; bottom: 24px; z-index: 180; display: flex; gap: 9px; min-height: 58px; padding: 7px 14px 7px 7px; color: #4b2b20; background: #fff; border: 2px solid #f4a76b; border-radius: 999px; box-shadow: 0 12px 30px rgba(75,43,32,.22); align-items: center; }
.feedback-fab img { width: 45px; height: 45px; object-fit: contain; }
.feedback-fab strong,
.feedback-fab small { display: block; }
.feedback-fab strong { font-size: .78rem; }
.feedback-fab small { color: var(--muted); font-size: .56rem; }
.helper-shell { position: fixed; left: 18px; bottom: 24px; z-index: 190; }
.helper-toggle { display: flex; gap: 8px; min-height: 58px; padding: 6px 14px 6px 6px; color: #fff; background: var(--teal-900); border: 0; border-radius: 999px; box-shadow: 0 12px 30px rgba(75,43,32,.27); align-items: center; }
.helper-toggle img { width: 46px; height: 46px; padding: 2px; object-fit: contain; background: #fff; border-radius: 50%; }
.helper-toggle strong,
.helper-toggle small { display: block; text-align: left; }
.helper-toggle strong { font-size: .78rem; }
.helper-toggle small { color: #f3cbb7; font-size: .55rem; }
.helper-panel { position: absolute; left: 0; bottom: 70px; width: min(390px, calc(100vw - 36px)); max-height: min(640px, calc(100vh - 120px)); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 22px 60px rgba(75,43,32,.28); overflow: hidden; }
.helper-panel[hidden] { display: none; }
.helper-panel header { display: flex; justify-content: space-between; gap: 12px; padding: 15px 17px; color: #fff; background: linear-gradient(135deg,var(--teal-900),#77442f); align-items: center; }
.helper-panel header small,
.helper-panel header strong { display: block; }
.helper-panel header small { color: #f2c9b7; font-size: .56rem; }
.helper-panel header button { width: 36px; height: 36px; color: #fff; background: rgba(255,255,255,.15); border: 0; border-radius: 50%; font-size: 1.25rem; }
.helper-messages { display: grid; gap: 8px; max-height: 230px; padding: 15px; overflow-y: auto; background: #fffaf2; }
.helper-message { width: fit-content; max-width: 88%; padding: 10px 12px; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 3px; font-size: .72rem; line-height: 1.55; }
.helper-message.user { justify-self: end; color: #fff; background: var(--coral-dark); border-color: var(--coral-dark); border-radius: 14px 14px 3px 14px; }
.helper-message a { display: inline; color: var(--teal-700); text-decoration: underline; font-weight: 850; }
.helper-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 15px; }
.helper-quick button { min-height: 38px; padding: 7px; color: var(--teal-900); background: #fff3df; border: 1px solid #efd0a8; border-radius: 9px; font-size: .63rem; font-weight: 800; }
.helper-form { padding: 0 15px; }
.helper-form > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.helper-form > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
.helper-form input { width: 100%; min-width: 0; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; }
.helper-form button { padding: 0 13px; color: #fff; background: var(--teal-700); border: 0; border-radius: 9px; font-weight: 850; }
.helper-safety { padding: 9px 15px 13px; margin: 0; color: var(--muted); font-size: .55rem; }

@media (max-width: 1160px) {
  .desktop-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .four-methods { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wizard-options.need-options { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .language-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 780px) {
  html:has(body[data-font="large"]) { font-size: 112.5%; }
  html:has(body[data-font="xlarge"]) { font-size: 112.5%; }
  .site-header { top: 6px; width: calc(100% - 16px); min-height: 66px; padding: 7px 9px; margin-top: 6px; border-radius: 17px; }
  .brand { gap: 7px; min-width: 0; }
  .brand-mascot { flex: 0 0 auto; width: 40px; height: 40px; }
  .brand strong { overflow-wrap: anywhere; font-size: .78rem; }
  .brand small { font-size: .55rem; }
  .accessibility-tools { gap: 4px; }
  .header-utilities { gap: 2px; }
  .visit-counter { margin-right: 1px; font-size: .75rem; }
  .font-size-switcher { padding: 2px; }
  .font-size-switcher button { min-width: 34px; min-height: 34px; padding: 3px; font-size: .66rem; }
  .font-size-switcher button span { display: none; }
  .tool-button { min-width: 36px; min-height: 36px; padding: 5px; }
  .tool-label { display: none; }
  .service-hero { grid-template-columns: 1fr; min-height: 0; }
  .service-hero .hero-copy { padding: 30px 19px 20px; }
  .service-hero h1 { font-size: clamp(2rem,12vw,3rem); }
  .service-hero h1 small { font-size: .95rem; }
  .hero-service-actions { grid-template-columns: 1fr; }
  .hero-service-actions a { min-height: 68px; }
  .service-hero .hero-picture { min-height: 270px; }
  .service-hero .hero-picture img { width: 100%; height: 270px; max-height: 270px; padding: 5px 30px 0; object-position: center bottom; }
  .service-hero .hero-picture figcaption { right: 10px; bottom: 10px; max-width: calc(100% - 20px); }
  .four-methods { grid-template-columns: 1fr; }
  .four-methods .finder-method { min-height: 98px; }
  .wizard-options.need-options,
  .wizard-options.three-options,
  .wizard-options.four-options,
  .eligibility-results,
  .resource-card-grid,
  .language-grid { grid-template-columns: 1fr; }
  .wizard-options button { min-height: 88px; }
  .calculator-layout { grid-template-columns: 1fr; }
  .calculator-results { position: static; }
  .calc-settings { grid-template-columns: 1fr; }
  .plan-compare > div { grid-template-columns: 1fr; }
  .resource-card-grid a { min-height: 140px; }
  .language-intro { align-items: flex-start; }
  .smart-entry { align-items: stretch; flex-direction: column; }
  .smart-entry > div { align-items: flex-start; }
  .smart-entry .light-button { width: 100%; }
  .feedback-fab { right: 10px; bottom: 158px; min-width: 52px; min-height: 52px; padding: 4px; }
  .feedback-fab img { width: 42px; height: 42px; }
  .feedback-fab span { display: none; }
  .helper-shell { right: 10px; bottom: 88px; left: auto; }
  .helper-toggle { min-width: 54px; min-height: 54px; padding: 4px; }
  .helper-toggle img { width: 46px; height: 46px; }
  .helper-toggle span { display: none; }
  .helper-panel { right: 0; bottom: 68px; left: auto; width: calc(100vw - 20px); max-height: calc(100vh - 180px); }
  body:has(.helper-panel:not([hidden])) .feedback-fab { opacity: 0; pointer-events: none; }
  .bottom-nav { min-height: 72px; padding-bottom: max(5px, env(safe-area-inset-bottom)); }
  .bottom-nav a { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 360px) {
  .site-header { grid-template-columns: minmax(0,1fr) auto; }
  .brand strong { font-size: .68rem; }
  .brand small { display: none; }
  .font-size-switcher button { min-width: 31px; }
  .tool-button { display: none; }
  .service-hero .hero-copy { padding-inline: 15px; }
  .finder-panel,
  .wizard-shell,
  .calculator-controls,
  .calculator-results { padding: 17px 13px; }
  .calc-add > div:first-of-type { grid-template-columns: 1fr; }
  .calc-add > div:first-of-type button { width: 100%; }
  .language-intro { display: block; }
  .language-intro img { float: right; width: 70px; height: 58px; }
}

@media print {
  .feedback-fab,
  .helper-shell,
  .bottom-nav,
  .font-size-switcher,
  .visit-counter { display: none !important; }
}

/* 2026-09：大項式導覽與整合衛教頁 */
.finder-hero {
  min-height: 590px;
}

.finder-hero .hero-copy {
  padding: clamp(42px, 7vw, 82px);
}

.finder-hero h1 {
  max-width: 790px;
  font-size: clamp(2.5rem, 4.1vw, 3.5rem);
}

.finder-hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 28px;
}

.hero-actions .primary-button,
.hero-actions .secondary-button {
  display: inline-flex;
  min-height: 52px;
  padding-inline: 25px;
  align-items: center;
  justify-content: center;
}

.compact-heading {
  max-width: 720px;
  margin-inline: auto;
}

.finder-section {
  padding-top: 86px;
}

.finder-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.finder-method {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 15px;
  min-height: 142px;
  padding: 27px 26px;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.finder-method:hover {
  transform: translateY(-3px);
  border-color: #efb27e;
}

.finder-method.is-active {
  color: #fff;
  background: linear-gradient(135deg, #de4b15, #f57c28);
  border-color: #e8561c;
  box-shadow: 0 18px 38px rgba(214, 78, 20, 0.24);
}

.finder-method > span:not(.method-number) {
  grid-row: 1 / 3;
  display: grid;
  width: 54px;
  height: 54px;
  color: #d84e18;
  background: #fff3dd;
  border-radius: 17px;
  place-items: center;
  font-size: 1.65rem;
  font-weight: 900;
}

.finder-method.is-active > span:not(.method-number) {
  color: #df4e16;
  background: #fff;
}

.finder-method strong {
  align-self: end;
  font-size: 1.26rem;
  line-height: 1.3;
}

.finder-method small {
  align-self: start;
  color: var(--muted);
  font-size: 0.86rem;
}

.finder-method.is-active small {
  color: rgba(255, 255, 255, 0.84);
}

.method-number {
  position: absolute;
  top: 12px;
  right: 15px;
  display: grid;
  width: 25px;
  height: 25px;
  color: #b76942;
  background: #fff3df;
  border-radius: 50%;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 900;
}

.finder-method.is-active .method-number {
  color: #b54213;
  background: #fff;
}

.finder-panel {
  scroll-margin-top: 116px;
  padding: clamp(26px, 5vw, 48px);
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.finder-panel[hidden] {
  display: none;
}

.panel-intro {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 25px;
}

.panel-intro h3 {
  margin: 7px 0 4px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.panel-intro p {
  margin: 0;
  color: var(--muted);
}

.panel-step {
  color: var(--teal-800);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.large-search {
  max-width: 900px;
}

.large-search > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.large-search > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: #fffaf1;
  border: 2px solid #ebd8bb;
  border-radius: 18px;
}

.large-search > div:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(23, 115, 181, 0.12);
}

.large-search > div > span {
  padding-left: 12px;
  color: var(--teal-700);
  font-size: 1.6rem;
}

.large-search input {
  min-width: 0;
  min-height: 54px;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 1.05rem;
}

.large-search .primary-button {
  min-height: 50px;
  padding-inline: 25px;
}

.suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.suggestion-row button {
  padding: 6px 12px;
  color: #8d421f;
  background: #fff2dc;
  border: 1px solid #f4d4a8;
  border-radius: 999px;
  font-weight: 750;
}

.suggestion-row button:hover {
  color: #fff;
  background: var(--teal-700);
  border-color: var(--teal-700);
}

.need-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.need-card {
  display: grid;
  gap: 7px;
  min-height: 155px;
  padding: 20px 15px;
  text-align: center;
  background: #fffaf2;
  border: 1px solid #ead8bf;
  border-radius: 18px;
  place-items: center;
}

.need-card > span {
  display: grid;
  width: 48px;
  height: 48px;
  color: #1876b4;
  background: #e8f4fc;
  border-radius: 15px;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 900;
}

.need-card strong {
  align-self: end;
  font-size: 0.98rem;
  line-height: 1.4;
}

.need-card small {
  align-self: start;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.need-card:hover,
.need-card.is-active {
  background: #fff0d7;
  border-color: #e96a2b;
  box-shadow: 0 10px 25px rgba(131, 73, 33, 0.12);
}

.category-browser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.browse-category {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 14px;
  min-height: 104px;
  padding: 18px 20px;
  text-align: left;
  background: #fffaf2;
  border: 1px solid #ead8bf;
  border-radius: 18px;
  align-items: center;
}

.browse-category:hover,
.browse-category.is-active {
  background: #fff1db;
  border-color: var(--teal-700);
  transform: translateY(-1px);
}

.browse-number {
  color: #c37d53;
  font-size: 0.76rem;
  font-weight: 900;
}

.browse-icon {
  display: grid;
  width: 46px;
  height: 46px;
  color: #176ba5;
  background: #e3f2fc;
  border-radius: 14px;
  place-items: center;
  font-size: 1.3rem;
}

.browse-category strong,
.browse-category small {
  display: block;
}

.browse-category strong {
  line-height: 1.4;
}

.browse-category small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.browse-category em {
  color: #a1532e;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.category-note {
  padding: 15px 18px;
  margin: 18px 0 0;
  color: #6e584b;
  background: #f7f3eb;
  border-radius: 13px;
  font-size: 0.82rem;
}

.category-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  align-items: center;
  font-size: .72rem;
}

.category-breadcrumb button {
  padding: 4px 0;
  color: var(--teal-700);
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 850;
}

.category-breadcrumb strong {
  color: var(--ink);
  line-height: 1.45;
}

.cns-subcategory-grid,
.cns-device-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cns-subcategory-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  min-height: 176px;
  padding: 18px;
  text-align: left;
  color: var(--ink);
  background: #fffaf2;
  border: 2px solid #ead8bf;
  border-radius: 18px;
  box-shadow: 0 7px 18px rgba(75,43,32,.05);
  align-content: center;
}

.cns-subcategory-card:hover,
.cns-subcategory-card:focus-visible {
  border-color: var(--teal-700);
  box-shadow: 0 10px 24px rgba(31,115,95,.1);
  transform: translateY(-2px);
}

.cns-subcategory-number {
  display: grid;
  width: 42px;
  height: 42px;
  color: var(--teal-800);
  background: #e5f2eb;
  border-radius: 12px;
  place-items: center;
  font-size: .7rem;
  font-weight: 950;
}

.cns-subcategory-card > span:nth-child(2) {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.cns-subcategory-card small {
  color: var(--coral-dark);
  font-size: .61rem;
  font-weight: 900;
}

.cns-subcategory-card strong {
  line-height: 1.45;
}

.cns-subcategory-card em {
  color: var(--muted);
  font-size: .66rem;
  font-style: normal;
}

.cns-subcategory-card > b {
  grid-column: 1 / -1;
  display: flex;
  padding-top: 11px;
  color: var(--teal-700);
  border-top: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  font-size: .66rem;
}

.category-source-note {
  padding: 16px 18px;
  margin: 20px 0 0;
  color: var(--muted);
  background: #f4f1eb;
  border-radius: 13px;
  font-size: .68rem;
  line-height: 1.65;
}

.category-source-note strong { color: var(--teal-900); }

.cns-device-card {
  display: grid;
  min-width: 0;
  min-height: 282px;
  padding: 19px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  align-content: start;
}

.cns-device-card-head {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
  justify-content: space-between;
}

.cns-device-card > .cns-context-label {
  margin: 0 0 7px;
  color: var(--coral-dark);
  font-size: .75rem;
  font-weight: 850;
}

.cns-device-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.45;
}

.cns-device-card h4 a:hover,
.cns-device-card h4 a:focus-visible { color: var(--teal-700); }

.cns-display-summary {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.6;
}

.cns-display-meta {
  display: grid;
  gap: 5px;
  padding: 0;
  margin: 0 0 16px;
  list-style: none;
}

.cns-display-meta li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.5;
}

.cns-display-meta li::before {
  position: absolute;
  top: .62em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--teal-700);
  border-radius: 50%;
  content: "";
}

.cns-device-card > .text-link {
  margin-top: auto;
  padding-top: 18px;
  font-size: .8rem;
}

.variant-comparison-status {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  min-height: 48px;
  padding: 12px 14px;
  margin: 0 0 18px;
  color: var(--muted);
  background: #eef7fc;
  border: 1px solid #b8d9ed;
  border-radius: 12px;
  align-items: center;
  font-size: .82rem;
  line-height: 1.55;
}

.variant-comparison-status strong { color: var(--teal-900); }
.variant-comparison-status span { color: var(--muted); }
.variant-comparison-status a { margin-left: auto; color: #17689e; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }

.finder-results {
  padding-top: 54px;
  outline: none;
  scroll-margin-top: 118px;
}

.result-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  align-items: end;
}

.result-heading h3 {
  margin: 5px 0 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.result-heading > p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.result-actions {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.result-actions > p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.mini-change-button {
  display: inline-flex;
  gap: 6px;
  padding: 7px 11px;
  color: #9a4824;
  background: #fff3df;
  border: 1px solid #efc99d;
  border-radius: 999px;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 850;
}

.mini-change-button:hover {
  color: #fff;
  background: var(--teal-700);
  border-color: var(--teal-700);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 24px;
  background: #fff;
  border: 1px solid #eadbc6;
  border-radius: 21px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.guide-card::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #f26522, #ffad51, #2b84bd);
  content: "";
}

.guide-card:hover {
  border-color: #efaa77;
  box-shadow: 0 15px 38px rgba(95, 61, 30, 0.14);
  transform: translateY(-2px);
}

.guide-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.category-orb {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 5px;
  color: #176fa8;
  background: #e8f4fc;
  border-radius: 15px;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 900;
}

.guide-card .badge-row {
  min-height: 28px;
  margin-top: 14px;
}

.guide-category-label {
  margin: 11px 0 3px;
  color: #a44b24;
  font-size: 0.74rem;
  font-weight: 850;
}

.guide-card h3 {
  margin-bottom: 8px;
  font-size: 1.32rem;
}

.guide-card h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.guide-card > p:not(.guide-category-label) {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.guide-card-meta {
  display: grid;
  gap: 3px;
  padding: 13px 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.guide-card-meta span:first-child {
  color: var(--teal-900);
}

.guide-card-meta span:last-child {
  color: var(--muted);
}

.guide-card .favorite-button,
.guide-card .card-link {
  position: relative;
  z-index: 2;
}

/* 大項衛教頁 */
.detail-main {
  width: min(calc(100% - 40px), var(--content));
  margin: 28px auto 0;
}

.detail-shell {
  padding-bottom: 90px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumbs a:hover {
  color: var(--teal-700);
  text-decoration: underline;
}

.group-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.45fr);
  gap: 34px;
  padding: clamp(35px, 6vw, 70px);
  background: linear-gradient(135deg, #fff1d5, #fff8e9 58%, #eaf5fc);
  border: 1px solid #f0d9b7;
  border-radius: 31px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.group-hero::before {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 330px;
  height: 250px;
  background: #ffc978;
  border-radius: 50%;
  opacity: 0.22;
  content: "";
}

.group-hero-copy {
  position: relative;
  z-index: 1;
}

.group-hero .badge-row {
  margin: 12px 0 18px;
}

.group-hero h1 {
  margin-bottom: 15px;
  font-size: clamp(2.7rem, 6vw, 5.15rem);
}

.group-hero .lead {
  max-width: 760px;
  color: #6e4e3e;
  font-size: 1.08rem;
}

.group-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
}

.group-stats span {
  font-size: 0.82rem;
  font-weight: 750;
}

.group-stats strong {
  color: var(--teal-700);
  font-size: 1.12rem;
}

.group-hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 245px;
  align-content: center;
  justify-items: center;
  color: #fff;
  background: linear-gradient(145deg, #17689f, #3191c9);
  border: 7px solid rgba(255, 255, 255, 0.8);
  border-radius: 29px;
  box-shadow: 0 20px 35px rgba(28, 99, 143, 0.23);
  transform: rotate(2deg);
}

.group-hero-visual > span {
  font-size: 5rem;
  line-height: 1;
}

.group-hero-visual small {
  margin-top: 17px;
  opacity: 0.78;
  font-weight: 800;
}

.group-hero-visual strong {
  font-size: 1.25rem;
}

.detail-anchor-nav {
  position: sticky;
  top: 104px;
  z-index: 50;
  display: flex;
  justify-content: center;
  gap: 4px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 6px;
  margin: 18px auto 0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.detail-anchor-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.81rem;
  font-weight: 800;
}

.detail-anchor-nav a:hover {
  color: #fff;
  background: var(--teal-700);
}

.detail-section {
  padding: 84px 0 0;
}

.detail-section > .section-heading {
  max-width: 850px;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 17px;
  margin-top: 27px;
}

.education-card {
  grid-column: span 2;
  padding: 27px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.education-card.audience { border-top: 6px solid #2b83bc; }
.education-card.operation { border-top: 6px solid #3a9274; }
.education-card.caution { border-top: 6px solid #e28a24; }
.education-card.maintenance { grid-column: span 3; border-top: 6px solid #7460ae; }

.education-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  color: #fff;
  background: #287eb5;
  border-radius: 13px;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 900;
}

.education-card.operation .education-icon { background: #348b6d; }
.education-card.caution .education-icon { background: #d67a18; }
.education-card.maintenance .education-icon { background: #6955a5; }

.education-card h3 {
  font-size: 1.25rem;
}

.education-card ul {
  padding-left: 1.2rem;
  margin: 16px 0 0;
}

.education-card li {
  margin-top: 9px;
  color: #674d41;
  font-size: 0.9rem;
}

.education-section .notice {
  margin-top: 19px;
}

.client-material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.client-material-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #d9e7df;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.client-material-visual {
  position: relative;
  display: grid;
  height: clamp(270px, 34vw, 430px);
  padding: 12px;
  background: linear-gradient(145deg, #edf8f4, #eef6fb);
  place-items: center;
  overflow: hidden;
}

.client-material-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.client-material-visual span {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 7px 11px;
  color: #fff;
  background: rgba(28, 80, 69, 0.9);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
}

.client-material-visual:hover img {
  transform: scale(1.015);
}

.client-material-visual:focus-visible {
  outline: 4px solid var(--teal-700);
  outline-offset: -4px;
}

.client-material-copy {
  padding: 21px 23px 24px;
}

.client-material-copy small {
  color: #287eb5;
  font-size: 0.72rem;
  font-weight: 850;
}

.client-material-copy h3 {
  margin: 6px 0 8px;
  font-size: 1.16rem;
  line-height: 1.42;
}

.client-material-copy p {
  margin: 0;
  color: #674d41;
  font-size: 0.84rem;
}

.client-material-note {
  padding: 13px 16px;
  margin: 18px 0 0;
  color: #52675e;
  background: #eaf6f0;
  border-left: 4px solid #348b6d;
  border-radius: 12px;
  font-size: 0.78rem;
}

.client-material-note span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-right: 5px;
  color: #fff;
  background: #348b6d;
  border-radius: 50%;
  place-items: center;
  font-weight: 900;
}

.video-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  max-width: none !important;
  align-items: end;
}

.video-section-heading > div {
  max-width: 820px;
}

.video-section-heading > a {
  flex: 0 0 auto;
  padding: 10px 15px;
  color: #176fa8;
  background: #eaf5fc;
  border: 1px solid #b9dbef;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.video-section-heading > a:hover {
  color: #fff;
  background: #176fa8;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.video-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #ead9c0;
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.video-frame {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  background: #201b19;
  overflow: hidden;
  place-items: center;
}

.video-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 17, 13, 0.03), rgba(23, 17, 13, 0.34));
  pointer-events: none;
  content: "";
}

.video-frame:has(.video-iframe)::after {
  display: none;
}

.video-frame img,
.video-iframe {
  width: 100%;
  height: 100%;
}

.video-frame img {
  object-fit: cover;
}

.video-iframe {
  border: 0;
}

.video-play {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  min-height: 48px;
  padding: 10px 17px 10px 12px;
  color: #fff;
  background: #d9472a;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 9px 24px rgba(52, 23, 13, 0.35);
  cursor: pointer;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 900;
}

.video-play span {
  display: grid;
  width: 29px;
  height: 29px;
  padding-left: 2px;
  color: #d9472a;
  background: #fff;
  border-radius: 50%;
  place-items: center;
  font-size: 0.72rem;
}

.video-play:hover {
  background: #b9351d;
  transform: translateY(-2px);
}

.video-play:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 3px;
}

.video-card-copy {
  padding: 22px 23px 24px;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  color: #1872aa;
  font-size: 0.7rem;
  font-weight: 850;
}

.video-card-copy h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.45;
}

.video-card-copy > p:not(.video-meta) {
  margin: 10px 0 15px;
  color: #6f5547;
  font-size: 0.82rem;
}

.video-card-copy > a {
  color: #aa4d22;
  font-size: 0.78rem;
  font-weight: 850;
}

.video-card-copy > a:hover {
  text-decoration: underline;
}

.video-education-detail {
  margin-top: 18px;
  border: 1px solid #d8c8ae;
  border-radius: 15px;
  background: #fffaf1;
  overflow: hidden;
}

.video-education-detail summary {
  display: flex;
  min-height: 54px;
  padding: 12px 14px;
  color: #75401f;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.video-education-detail summary::-webkit-details-marker {
  display: none;
}

.video-education-detail summary > span {
  display: grid;
  gap: 2px;
}

.video-education-detail summary small {
  color: #786455;
  font-size: 0.64rem;
  font-weight: 750;
}

.video-education-detail summary strong {
  font-size: 0.8rem;
}

.video-education-detail summary b {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  color: #fff;
  background: #c95b2d;
  border-radius: 50%;
  place-items: center;
  font-size: 1rem;
}

.video-education-detail[open] summary {
  border-bottom: 1px solid #e2d4be;
}

.video-education-detail[open] summary b {
  font-size: 0;
}

.video-education-detail[open] summary b::after {
  content: "−";
  font-size: 1rem;
}

.video-education-detail summary:hover,
.video-education-detail summary:focus-visible {
  color: #9e3e1f;
  background: #fff2dd;
}

.video-education-detail summary:focus-visible {
  outline: 3px solid #166c80;
  outline-offset: -3px;
}

.video-education-content {
  display: grid;
  padding: 16px 15px 18px;
  gap: 15px;
}

.video-education-content section {
  padding: 14px;
  background: #fff;
  border: 1px solid #eadfcd;
  border-radius: 12px;
}

.video-education-content h4 {
  margin: 0 0 7px;
  color: #1d6f68;
  font-size: 0.82rem;
}

.video-education-content p {
  margin: 0;
  color: #5f5047;
  font-size: 0.78rem;
  line-height: 1.75;
}

.topic-outline {
  display: grid;
  padding-left: 1.25rem;
  margin: 0;
  gap: 11px;
  color: #4e433c;
  font-size: 0.78rem;
  line-height: 1.7;
}

.topic-outline > li {
  padding-left: 3px;
}

.topic-outline > li::marker {
  color: #c95b2d;
  font-weight: 900;
}

.topic-outline ul {
  display: grid;
  padding-left: 1.15rem;
  margin: 7px 0 0;
  gap: 5px;
}

.topic-outline ul li::marker {
  color: #2e8275;
}

.video-education-content .topic-safety {
  background: #fff4e7;
  border-color: #efc89d;
}

.video-education-content .topic-safety h4 {
  color: #a23d21;
}

.video-education-content .topic-attribution {
  color: #786455;
  font-size: 0.7rem;
}

.video-source-note {
  padding: 13px 16px;
  margin: 18px 0 0;
  color: #6f5547;
  background: #fff2d9;
  border-radius: 12px;
  font-size: 0.76rem;
}

.video-source-note span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-right: 5px;
  color: #fff;
  background: #c45b29;
  border-radius: 50%;
  place-items: center;
  font-weight: 900;
}

.subsidy-comparison-shell {
  padding: clamp(20px, 4vw, 34px);
  margin-top: 27px;
  background: #fff;
  border: 1px solid #cddfe9;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 120px;
}

.subsidy-comparison-shell.is-empty {
  background: #f1f8fc;
  border-style: dashed;
}

.subsidy-comparison-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.subsidy-comparison-empty > span {
  display: grid;
  width: 54px;
  height: 54px;
  color: #fff;
  background: #2679b9;
  border-radius: 17px;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 900;
}

.subsidy-comparison-empty strong { color: var(--teal-900); font-size: 1.15rem; }
.subsidy-comparison-empty p { margin: 4px 0 0; color: var(--muted); }

.subsidy-comparison-current {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  color: #174f69;
  background: #eaf5fb;
  border-left: 7px solid #2679b9;
  border-radius: 15px;
  align-items: center;
}

.subsidy-comparison-current p,
.subsidy-comparison-current h3 { margin: 0; }
.subsidy-comparison-current p { font-size: 0.72rem; font-weight: 850; }
.subsidy-comparison-current h3 { margin-top: 2px; font-size: 1.35rem; }
.subsidy-comparison-current span { color: var(--muted); font-size: 0.72rem; }
.subsidy-comparison-current > strong { max-width: 410px; text-align: right; font-size: 0.8rem; line-height: 1.55; }

.subsidy-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  margin-top: 20px;
}

.subsidy-result-grid.has-1 { grid-template-columns: minmax(0, 760px); }
.subsidy-result-grid.has-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.subsidy-result-card {
  min-width: 0;
  padding: 20px;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-top: 6px solid #777;
  border-radius: 18px;
}

.subsidy-result-card.disability { border-top-color: #df551f; }
.subsidy-result-card.ltc { border-top-color: #2679b9; }
.subsidy-result-card.smart { border-top-color: #6f5bb8; }
.subsidy-result-card > header { display: flex; gap: 9px; margin-bottom: 14px; align-items: center; }
.subsidy-result-card > header strong { font-size: 0.83rem; }
.subsidy-result-items { display: grid; gap: 13px; }
.subsidy-result-item { padding: 16px; background: #fff; border: 1px solid #eadcca; border-radius: 13px; }
.subsidy-result-item h3 { margin: 7px 0 13px; font-size: 1.05rem; line-height: 1.45; }
.subsidy-result-item > p { margin: 8px 0 0; color: var(--muted); font-size: 0.72rem; line-height: 1.55; }
.subsidy-result-code { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.subsidy-result-code span { color: #17689e; font-weight: 900; }
.subsidy-result-code b { padding: 3px 7px; color: #315d4f; background: #e7f5ef; border-radius: 999px; font-size: 0.63rem; }
.subsidy-result-item dl { display: grid; gap: 7px; margin: 0; }
.subsidy-result-item dl div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 7px; border-bottom: 1px dashed #e5d7c3; }
.subsidy-result-item dt { color: var(--muted); font-size: 0.7rem; }
.subsidy-result-item dd { margin: 0; text-align: right; color: var(--teal-900); font-size: 0.76rem; font-weight: 850; }

.subsidy-comparison-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.subsidy-comparison-facts > div { display: grid; gap: 5px; padding: 14px 16px; background: #f7f4ee; border-radius: 12px; }
.subsidy-comparison-facts span { color: var(--muted); font-size: 0.68rem; font-weight: 800; }
.subsidy-comparison-facts strong { color: var(--teal-900); font-size: 0.78rem; line-height: 1.5; }
.subsidy-relation-tags { display: grid; gap: 8px; margin-top: 17px; }
.subsidy-relation-tags > strong { font-size: 0.77rem; }
.subsidy-relation-tags > div { display: flex; flex-wrap: wrap; gap: 6px; }
.subsidy-comparison-restrictions { padding: 16px 18px; margin-top: 17px; color: #654516; background: #fff3d9; border-left: 5px solid #d59629; border-radius: 12px; }
.subsidy-comparison-restrictions > strong { font-size: 0.8rem; }
.subsidy-comparison-restrictions p,
.subsidy-comparison-restrictions ul { margin: 7px 0 0; font-size: 0.72rem; line-height: 1.6; }
.subsidy-comparison-restrictions ul { padding-left: 20px; }
.subsidy-comparison-calculator { margin-top: 17px; }

.variants-section .split-heading {
  display: flex;
  max-width: none;
}

.variant-system {
  margin-top: 27px;
}

.variant-system + .variant-system {
  margin-top: 48px;
}

.variant-system-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  align-items: end;
}

.variant-system-heading h3 {
  display: inline;
  margin: 0 0 0 8px;
  font-size: 1.35rem;
}

.variant-system-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.variant-detail {
  margin-top: 9px;
  background: #fff;
  border: 1px solid #e9d9c3;
  border-radius: 16px;
  box-shadow: 0 4px 13px rgba(99, 65, 35, 0.06);
  overflow: hidden;
}

.variant-detail[open] {
  border-color: #e9a26d;
  box-shadow: 0 9px 25px rgba(99, 65, 35, 0.1);
}

.variant-detail.is-selected,
.variant-detail.is-selected[open] {
  border-color: #2f866b;
  box-shadow: 0 0 0 4px rgba(47, 134, 107, 0.14), 0 9px 25px rgba(37, 102, 82, 0.12);
}

.variant-detail.is-selected > summary { background: #e9f6ef; }

.variant-detail summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
  align-items: center;
}

.variant-detail summary::-webkit-details-marker { display: none; }

.variant-detail summary > span:first-child {
  display: flex;
  gap: 11px;
  min-width: 0;
  align-items: center;
}

.variant-selection-mark {
  display: grid;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  color: transparent;
  background: #f1eee8;
  border: 1px solid #d7c9b7;
  border-radius: 50%;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
}

.variant-detail.is-selected .variant-selection-mark {
  color: #fff;
  background: #2f866b;
  border-color: #2f866b;
}

.variant-detail.is-selected .summary-action { color: #236c57; }

.variant-detail summary strong {
  line-height: 1.45;
}

.summary-action {
  display: flex;
  gap: 9px;
  color: #aa4d22;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.summary-action b {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.18s ease;
}

.variant-detail[open] .summary-action b {
  transform: rotate(45deg);
}

.variant-content {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  gap: 25px;
  padding: 22px;
  background: #fffaf2;
  border-top: 1px solid #eadbc8;
}

.variant-facts {
  display: grid;
  gap: 5px;
  margin: 0;
  align-content: start;
}

.variant-facts div {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed #e5d6c2;
}

.variant-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.variant-facts dd {
  margin: 0;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 800;
}

.variant-copy {
  padding: 5px 0 0 24px;
  border-left: 1px solid #e2d2bc;
}

.variant-copy section + section {
  margin-top: 18px;
}

.variant-copy h4 {
  margin: 0 0 4px;
  color: var(--teal-900);
  font-size: 0.9rem;
}

.variant-copy p {
  margin: 0;
  color: #654c40;
  font-size: 0.83rem;
  white-space: pre-line;
}

.variant-copy .source-line {
  padding-top: 14px;
  margin-top: 18px;
  color: #876e60;
  border-top: 1px solid #eadbc8;
  font-size: 0.72rem;
}

.apply-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 25px;
}

.apply-guide > div {
  padding: clamp(28px, 5vw, 48px);
  background: #4b2b20;
  border-radius: 26px;
}

.apply-guide > div h2,
.apply-guide > div .eyebrow,
.apply-guide > div strong {
  color: #fff;
}

.apply-guide ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 30px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.apply-guide li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
}

.apply-guide li > span {
  display: grid;
  width: 38px;
  height: 38px;
  color: #4b2b20;
  background: #ffd18b;
  border-radius: 50%;
  place-items: center;
  font-weight: 900;
}

.apply-guide li p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.84rem;
}

.apply-guide > aside {
  padding: 27px;
  text-align: center;
  background: #fff0d1;
  border: 1px solid #f1d29c;
  border-radius: 26px;
}

.apply-guide > aside img {
  width: 150px;
  height: 125px;
  object-fit: contain;
}

.apply-guide > aside p {
  color: var(--muted);
  font-size: 0.84rem;
}

.apply-guide > aside .primary-button {
  display: inline-flex;
  min-height: 46px;
  padding-inline: 19px;
  align-items: center;
}

.related-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-top: 25px;
}

.related-guide {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  padding: 19px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: var(--shadow-sm);
}

.related-guide > span {
  grid-row: 1 / 4;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 5px;
  color: #176fa8;
  background: #e8f4fc;
  border-radius: 13px;
  place-items: center;
}

.related-guide small {
  color: var(--muted);
  font-size: 0.68rem;
}

.related-guide strong {
  font-size: 0.96rem;
}

.related-guide em {
  color: var(--teal-700);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.related-guide:hover {
  border-color: var(--teal-700);
  transform: translateY(-2px);
}

.medical-disclaimer {
  padding: 16px 20px;
  margin: 60px 0 0;
  text-align: center;
  color: var(--muted);
  background: #f3ede3;
  border-radius: 14px;
  font-size: 0.75rem;
}

.missing-page {
  min-height: 540px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.missing-page > span {
  color: var(--teal-700);
  font-size: 4rem;
}

.missing-page .primary-button {
  display: inline-flex;
  min-height: 48px;
  padding-inline: 22px;
  align-items: center;
}

body.high-contrast .finder-panel,
body.high-contrast .guide-card,
body.high-contrast .education-card,
body.high-contrast .video-card,
body.high-contrast .video-education-detail,
body.high-contrast .video-education-content section,
body.high-contrast .eligibility-privacy-dialog,
body.high-contrast .subsidy-comparison-shell,
body.high-contrast .subsidy-result-card,
body.high-contrast .variant-detail,
body.high-contrast .related-guide,
body.high-contrast .cns-subcategory-card,
body.high-contrast .cns-device-card,
body.high-contrast .category-source-note {
  border-color: currentColor;
}
body.high-contrast .cns-subcategory-card,
body.high-contrast .cns-device-card,
body.high-contrast .category-source-note,
body.high-contrast .eligibility-privacy-content li { color: inherit; background: #fff; }
body.high-contrast .variant-comparison-status {
  color: inherit;
  background: #fff;
  border-color: currentColor;
}
body.high-contrast .variant-comparison-status strong,
body.high-contrast .variant-comparison-status span,
body.high-contrast .variant-comparison-status a { color: inherit; }

@media (max-width: 1020px) {
  .need-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cns-subcategory-grid,
  .cns-device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group-hero { grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr); }
  .education-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .education-card,
  .education-card.maintenance { grid-column: auto; }
  .subsidy-result-grid.has-3 { grid-template-columns: 1fr 1fr; }
  .subsidy-result-grid.has-3 > :last-child { grid-column: 1 / -1; }
  .related-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .variant-comparison-status { align-items: flex-start; flex-direction: column; }
  .variant-comparison-status a { margin-left: 0; }
  .finder-methods { grid-template-columns: 1fr; }
  .finder-method { min-height: 108px; }
  .finder-panel { padding: 25px 18px; }
  .need-card-grid { grid-template-columns: 1fr 1fr; }
  .category-browser { grid-template-columns: 1fr; }
  .cns-subcategory-grid,
  .cns-device-grid { grid-template-columns: 1fr; }
  .browse-category { grid-template-columns: auto auto 1fr; }
  .browse-category em { grid-column: 3; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 355px; }
  .result-heading { align-items: flex-start; flex-direction: column; }
  .result-actions { justify-items: start; }
  .contact-heading { grid-template-columns: 1fr; }
  .contact-heading > p:last-child { margin-top: 8px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-hours { grid-column: auto; }
  .center-contact { padding: 24px 18px; }
  .detail-main { width: min(calc(100% - 24px), var(--content)); }
  .group-hero { grid-template-columns: 1fr; padding: 32px 23px; }
  .group-hero-visual { min-height: 175px; transform: none; }
  .group-hero-visual > span { font-size: 3.8rem; }
  .detail-anchor-nav { justify-content: flex-start; overflow-x: auto; }
  .detail-anchor-nav a { white-space: nowrap; }
  .education-grid,
  .client-material-grid,
  .video-grid { grid-template-columns: 1fr; }
  .video-section-heading { align-items: flex-start; flex-direction: column; }
  .subsidy-comparison-empty { grid-template-columns: auto minmax(0, 1fr); }
  .subsidy-comparison-empty > a { grid-column: 1 / -1; justify-self: start; }
  .subsidy-comparison-current { align-items: flex-start; flex-direction: column; }
  .subsidy-comparison-current > strong { text-align: left; }
  .subsidy-result-grid,
  .subsidy-result-grid.has-1,
  .subsidy-result-grid.has-3,
  .subsidy-comparison-facts { grid-template-columns: 1fr; }
  .subsidy-result-grid.has-3 > :last-child { grid-column: auto; }
  .variants-section .split-heading { display: flex; }
  .variant-detail summary { align-items: flex-start; }
  .variant-detail summary > span:first-child { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: start; }
  .summary-action { font-size: 0; }
  .summary-action-label { display: none; }
  .summary-action b { font-size: 1.1rem; }
  .variant-content { grid-template-columns: 1fr; }
  .variant-copy { padding: 20px 0 0; border-top: 1px solid #e2d2bc; border-left: 0; }
  .apply-guide { grid-template-columns: 1fr; }
  .apply-guide ol { grid-template-columns: 1fr; }
}

@media (max-width: 470px) {
  .finder-hero h1 { font-size: 2.2rem; }
  .finder-hero h1 span { white-space: normal; }
  .hero-actions { display: grid; }
  .large-search > div { grid-template-columns: auto minmax(0, 1fr); }
  .large-search .primary-button { grid-column: 1 / -1; width: 100%; }
  .need-card-grid { grid-template-columns: 1fr; }
  .need-card { grid-template-columns: auto 1fr; grid-template-rows: auto auto; min-height: 105px; text-align: left; justify-items: start; }
  .need-card > span { grid-row: 1 / 3; }
  .browse-category { padding: 15px 13px; }
  .cns-subcategory-card { min-height: 148px; padding: 16px; }
  .cns-device-card { min-height: 250px; }
  .browse-number { display: none; }
  .browse-category { grid-template-columns: auto 1fr; }
  .browse-category em { grid-column: 2; }
  .variant-system-heading { align-items: flex-start; flex-direction: column; }
  .variant-facts div { grid-template-columns: 1fr; }
  .variant-facts dd { text-align: left; }
  .related-guide-grid { grid-template-columns: 1fr; }
}

@media print {
  .detail-anchor-nav,
  #toggleVariants,
  .video-play,
  .apply-guide aside { display: none !important; }
  .group-hero,
  .education-card,
  .subsidy-comparison-shell,
  .subsidy-result-card,
  .variant-detail { box-shadow: none; }
  .variant-detail { break-inside: avoid; }
  .client-material-card { break-inside: avoid; box-shadow: none; }
  .client-material-visual { height: 270px; }
  .client-material-visual span { display: none; }
  .variant-detail .variant-content { display: grid !important; }
}

/* 內容頁固定模板補強（放在檔案末端以覆蓋舊版大項視覺） */
.group-hero .device-photo { position: relative; z-index: 1; display: grid; min-width: 0; min-height: 270px; margin: 0; background: #fff; border: 7px solid rgba(255,255,255,.8); border-radius: 26px; box-shadow: 0 20px 35px rgba(75,43,32,.16); overflow: hidden; align-content: center; }
.device-photo img { width: 100%; height: 100%; min-height: 270px; object-fit: cover; }
.device-photo figcaption { padding: 10px 12px; color: #654c40; background: #fff8e9; font-size: .68rem; line-height: 1.45; }
.device-photo.photo-pending { padding: 25px; text-align: center; background: linear-gradient(145deg,#17689f,#3191c9); }
.device-photo.photo-pending > span { display: grid; width: min(170px, 56%); aspect-ratio: 1; padding: 18px; margin-inline: auto; background: #fff; border-radius: 30px; place-items: center; }
.device-photo.photo-pending > strong { color: #fff; overflow-wrap: anywhere; }
.device-photo.photo-pending figcaption { margin: 20px -25px -25px; }
.education-card.what { border-top: 6px solid #287eb5; }
.education-card.help { border-top: 6px solid #3a9274; }
.education-card.what p,
.education-card.help p { color: #674d41; font-size: .9rem; }
.education-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
.education-card.what,
.education-card.audience,
.education-card.help,
.education-card.operation,
.education-card.caution,
.education-card.maintenance { grid-column: span 2; }
.assessment-card { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: clamp(24px,5vw,44px); background: #fff; border: 2px solid #d5a23a; border-left-width: 12px; border-radius: 23px; box-shadow: var(--shadow-sm); align-items: center; }
.assessment-card.formal { border-color: #c64a3f; }
.assessment-card.recommended { border-color: #d59024; }
.assessment-card.general { border-color: #3a846b; }
.assessment-badge { display: grid; min-height: 88px; padding: 16px; text-align: center; color: #fff; background: #7b3b30; border-radius: 16px; place-items: center; font-weight: 900; }
.assessment-card.recommended .assessment-badge { background: #aa6817; }
.assessment-card.general .assessment-badge { background: #32745d; }
.assessment-card h2 { margin-bottom: 8px; font-size: clamp(1.55rem,3vw,2.4rem); }
.assessment-card p { margin-bottom: 10px; color: var(--muted); }
.assessment-card a { color: var(--teal-700); font-weight: 850; }
.share-section { display: grid; grid-template-columns: 1fr auto; gap: 30px; padding: clamp(25px,5vw,45px); margin-top: 84px; background: #fff0d6; border: 1px solid #efd1a4; border-radius: 25px; align-items: center; }
.share-section h2 { margin-bottom: 6px; }
.share-section a { color: var(--teal-700); font-weight: 850; }
.share-section figure { margin: 0; text-align: center; }
.share-section img { display: block; width: 190px; height: 190px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.share-section figcaption { max-width: 210px; margin-top: 7px; color: var(--muted); font-size: .65rem; }

@media (max-width: 1020px) {
  .education-card.what,
  .education-card.audience,
  .education-card.help,
  .education-card.operation,
  .education-card.caution,
  .education-card.maintenance { grid-column: auto; }
}
@media (max-width: 780px) {
  .group-hero .device-photo { min-height: 220px; }
  .device-photo img { min-height: 220px; }
  .assessment-card,
  .share-section { grid-template-columns: 1fr; }
  .assessment-badge { min-height: 60px; }
  .share-section figure { justify-self: center; }
  .share-section { margin-top: 64px; }
}
@media print {
  .share-section img { width: 160px; height: 160px; }
  .feedback-fab,
  .helper-shell { display: none !important; }
}

@media (max-width: 360px) {
  .site-header { width: calc(100% - 28px); }
  .site-header .brand-mascot { display: none; }
  .site-header .brand { max-width: 128px; }
  .site-header .brand strong { overflow-wrap: anywhere; line-height: 1.15; }
  .font-size-switcher button { min-width: 40px; min-height: 44px; }
  .contact-item a { overflow-wrap: anywhere; word-break: break-word; }
}

@media (max-width: 780px) {
  .bottom-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-right: 70px; }
  .helper-shell { right: 8px; bottom: max(7px, env(safe-area-inset-bottom)); }
  .feedback-fab { position: static; width: max-content; max-width: calc(100% - 32px); min-height: 58px; padding: 7px 14px 7px 7px; margin: 24px auto 92px; }
  .feedback-fab span { display: block; }
  .feedback-fab img { width: 45px; height: 45px; }
}

@media (min-width: 1281px) {
  .feedback-fab { top: 50%; right: max(6px, calc((100vw - var(--content)) / 2 - 88px)); bottom: auto; width: 78px; min-height: 94px; padding: 6px; text-align: center; flex-direction: column; transform: translateY(-50%); }
  .feedback-fab img { width: 44px; height: 44px; }
  .feedback-fab strong { font-size: .68rem; line-height: 1.25; }
  .feedback-fab small { display: none; }
  .helper-shell { top: 50%; bottom: auto; left: max(6px, calc((100vw - var(--content)) / 2 - 88px)); transform: translateY(-50%); }
  .helper-toggle { width: 78px; min-height: 110px; padding: 7px 6px; text-align: center; flex-direction: column; }
  .helper-toggle img { width: 44px; height: 44px; }
  .helper-toggle strong,
  .helper-toggle small { text-align: center; }
  .helper-panel { position: fixed; top: 50%; bottom: auto; left: max(96px, calc((100vw - var(--content)) / 2)); transform: translateY(-50%); }
}

/* 2026-09：首頁改為六大任務入口，服務內容分頁顯示 */
.home-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 195, 112, .26) 0 120px, transparent 122px),
    radial-gradient(circle at 92% 34%, rgba(38, 121, 185, .12) 0 150px, transparent 152px),
    var(--paper);
}

.home-header {
  grid-template-columns: 1fr auto 1fr;
}

.home-main {
  overflow: visible;
}

.choice-home {
  width: min(calc(100% - 40px), 1120px);
  padding: clamp(24px, 4vw, 42px);
  margin: 24px auto 22px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .94);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(99, 65, 35, .13);
  backdrop-filter: blur(12px);
}

.choice-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 22px;
  margin-bottom: 24px;
  align-items: center;
}

.choice-intro h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4.8vw, 3.8rem);
}

.choice-intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.choice-intro img {
  width: 130px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(137, 54, 15, .16));
}

.home-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-choice {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 2px 14px;
  min-height: 166px;
  padding: 22px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 9px 22px rgba(99, 65, 35, .08);
  align-content: center;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.home-choice:hover {
  z-index: 1;
  transform: translateY(-4px);
  border-color: #ed9b5b;
  box-shadow: 0 16px 30px rgba(99, 65, 35, .14);
}

.home-choice > span {
  grid-row: 1 / 4;
  display: grid;
  width: 52px;
  height: 52px;
  color: #fff;
  background: var(--teal-700);
  border-radius: 15px;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 900;
}

.home-choice.eligibility > span,
.home-choice.contact > span { background: #2d8068; }
.home-choice.calculator > span { background: #176fa8; }
.home-choice.education > span { background: #805cac; }
.home-choice.start > span { background: #a96218; }

.home-choice strong {
  color: var(--teal-900);
  font-size: 1.05rem;
  line-height: 1.35;
}

.home-choice small {
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.45;
}

.home-choice b {
  margin-top: 7px;
  color: var(--teal-700);
  font-size: .73rem;
}

.home-footer {
  display: flex;
  width: min(calc(100% - 40px), 1120px);
  padding: 0 4px 24px;
  margin: 0 auto;
  color: var(--muted);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: .78rem;
}

.home-footer p { margin: 0; }
.home-footer a { color: var(--teal-700); font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }

.service-page-intro {
  padding: 40px 0 28px;
}

.service-page-intro .back-home {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--teal-700);
  font-size: .82rem;
  font-weight: 850;
}

.service-page-intro .service-topic-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 20px;
  padding: clamp(25px, 5vw, 46px);
  color: #fff;
  background: linear-gradient(135deg, #d94b18, #f47c28);
  border-radius: 26px;
  box-shadow: var(--shadow-sm);
  align-items: center;
}

.service-page-intro .service-topic-card > span {
  display: grid;
  width: 70px;
  height: 70px;
  color: var(--teal-900);
  background: #ffd59f;
  border-radius: 20px;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
}

.service-page-intro h1 {
  margin: 0 0 7px;
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
}

.service-page-intro .eyebrow,
.service-page-intro p:last-child { color: #fff; }
.service-page-intro p:last-child { max-width: 760px; margin: 0; opacity: .9; }

.service-content {
  padding-top: 38px;
  padding-bottom: 78px;
}

.eligibility-section.service-content,
.calculator-section.service-content {
  width: min(calc(100% - 40px), var(--content));
  padding-inline: clamp(22px, 4vw, 48px);
  border-radius: 26px;
}

.start-wizard .finder-panel {
  margin-top: 0;
}

.service-contact {
  width: min(calc(100% - 40px), var(--content));
  padding: clamp(26px, 4vw, 42px);
  margin: 10px auto 34px;
  color: #e7d8cf;
  background: #4b2b20;
  border: 1px solid #654234;
  border-radius: 26px;
}

.service-footer {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) minmax(220px, .7fr);
  gap: 28px;
  padding: 30px max(24px, calc((100vw - var(--content)) / 2));
  color: #d9c9c0;
  background: #4b2b20;
  align-items: start;
}

.service-footer p { max-width: 520px; margin: 0; font-size: .76rem; }
.footer-home-navigation { display: grid; max-width: 320px; gap: 9px; }
.footer-home-button {
  display: inline-flex;
  width: fit-content;
  min-height: 48px;
  padding: 10px 17px;
  color: #4b2b20;
  background: #ffd59f;
  border: 2px solid #ffb45f;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(20, 11, 7, .2);
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.device-line-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.device-photo.photo-pending .device-line-icon { min-height: 0; object-fit: contain; }
.footer-home-button:hover,
.footer-home-button:focus-visible { color: #fff; background: var(--coral); border-color: var(--coral); transform: translateY(-1px); }
.service-footer .footer-home-note { color: #e7d8cf; font-size: .72rem; line-height: 1.55; }
.service-footer .footer-links { font-size: .7rem; }
.service-footer .footer-links a:hover { color: #fff; text-decoration: underline; }
.source-details summary { color: #fff; cursor: pointer; font-size: .78rem; font-weight: 850; }
.source-details .footer-links { margin-top: 10px; }
.guide-nav a[aria-current="page"] { color: #fff; background: var(--teal-700); }

body.high-contrast .home-choice,
body.high-contrast .choice-home { border-color: currentColor; }

@media (max-width: 900px) {
  .home-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-footer { grid-template-columns: 1fr 1fr; }
  .service-footer .footer-home-navigation { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  body.home-page { padding-bottom: 88px; }
  .choice-home { width: calc(100% - 20px); padding: 20px 14px; margin-top: 12px; border-radius: 22px; }
  .choice-intro { grid-template-columns: 1fr 88px; gap: 8px; }
  .choice-intro img { width: 88px; height: 78px; }
  .choice-intro h1 { font-size: clamp(1.8rem, 9vw, 2.7rem); }
  .home-choice { min-height: 142px; padding: 17px; }
  .home-footer { width: calc(100% - 24px); align-items: flex-start; flex-direction: column; gap: 4px; }
  .service-page-intro { padding-top: 18px; }
  .service-page-intro .service-topic-card { grid-template-columns: 52px minmax(0, 1fr); gap: 13px; padding: 24px 18px; }
  .service-page-intro .service-topic-card > span { width: 52px; height: 52px; border-radius: 15px; font-size: 1.4rem; }
  .service-content { padding-top: 22px; padding-bottom: 58px; }
  .eligibility-section.service-content,
  .calculator-section.service-content { width: calc(100% - 20px); }
  .service-contact { width: calc(100% - 20px); }
  .service-footer { grid-template-columns: 1fr; padding-bottom: 94px; }
  .service-footer .footer-home-navigation { grid-column: auto; }
}

/* 2026-09：固定導覽、LEVEL 五選一與中心成果資料庫 */
body > main { padding-top: 104px; }
.section,
.detail-section,
.ability-results { scroll-margin-top: 116px; }

.helper-shell { top: auto; right: 18px; bottom: 24px; left: auto; transform: none; }
.helper-panel { top: auto; right: 0; bottom: 70px; left: auto; transform: none; }
.helper-entry-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 15px 0; align-items: center; }
.helper-entry-row strong { color: var(--teal-900); font-size: .72rem; }
.helper-entry-row a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: .61rem; font-weight: 800; }

.ability-intro { margin-bottom: 18px; }
.ability-level-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ability-level-card { position: relative; display: grid; min-width: 0; min-height: 430px; padding: 0 14px 18px; text-align: left; background: #fff; border: 2px solid #ead9c6; border-radius: 20px; box-shadow: 0 8px 20px rgba(75,43,32,.07); overflow: hidden; align-content: start; cursor: pointer; }
.ability-level-card:hover { border-color: #e98643; transform: translateY(-2px); }
.ability-level-card:focus-visible { outline: 4px solid rgba(31,115,95,.3); outline-offset: 3px; }
.ability-level-card.is-selected { background: #fff8ec; border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(31,115,95,.16); }
.level-check { position: absolute; z-index: 2; top: 10px; right: 10px; display: none; width: 32px; height: 32px; color: #fff; background: var(--teal-700); border-radius: 50%; place-items: center; font-weight: 900; }
.ability-level-card.is-selected .level-check { display: grid; }
.level-figure { display: grid; width: calc(100% + 28px); height: 210px; margin: 0 -14px 14px; background: linear-gradient(160deg, #f5f1e7 0%, #edf4ef 100%); border-bottom: 1px solid #ead9c6; place-items: center; overflow: hidden; }
.level-figure img { display: block; width: 100%; height: 100%; padding: 10px; object-fit: contain; object-position: center; }
.ability-level-card > .level-label { display: flex; align-items: baseline; gap: 5px; color: var(--coral-dark); font-size: 1.24rem; letter-spacing: -.02em; }
.level-label span { color: var(--teal-800); font-size: .72em; letter-spacing: .05em; }
.ability-level-card > .level-title { margin-top: 5px; color: var(--teal-900); font-size: .82rem; font-weight: 900; }
.ability-level-card > small { margin-top: 7px; color: var(--ink); font-size: .68rem; line-height: 1.55; }
.ability-prompt { padding: 16px; margin: 16px 0 0; text-align: center; color: var(--muted); background: #fff7e8; border-radius: 14px; }
.ability-results { padding-top: 30px; margin-top: 30px; border-top: 2px solid var(--line); }
.ability-selected-heading { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; }
.ability-selected-heading h3 { margin: 4px 0 8px; color: var(--teal-900); font-size: clamp(1.4rem, 2.6vw, 2rem); }
.ability-selected-heading p:last-child { max-width: 880px; color: var(--muted); line-height: 1.7; }
.ability-selected-heading .wizard-back { flex: 0 0 auto; }
.ability-scope-note { display: grid; gap: 7px; padding: 18px 20px; margin: 22px 0 28px; color: #34302c; background: #fff9e9; border: 2px solid #d8ae55; border-left-width: 7px; border-radius: 15px; }
.ability-scope-note strong { color: #6b441e; font-size: .9rem; }
.ability-scope-note p { margin: 0; font-size: .72rem; line-height: 1.65; }
.ability-category-heading { margin-bottom: 14px; }
.ability-category-heading h4 { margin: 0 0 5px; color: var(--teal-900); font-size: 1.08rem; }
.ability-category-heading p { color: var(--muted); font-size: .72rem; }
.ability-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.ability-category-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 11px 12px; min-height: 142px; padding: 17px; text-align: left; color: var(--ink); background: #fff; border: 2px solid #d9e5df; border-radius: 17px; box-shadow: 0 6px 16px rgba(46,72,64,.06); align-content: center; cursor: pointer; }
.ability-category-card:hover,
.ability-category-card:focus-visible { border-color: var(--teal-700); transform: translateY(-2px); }
.ability-category-card.is-expanded { color: #fff; background: var(--teal-800); border-color: var(--teal-800); box-shadow: 0 0 0 3px rgba(31,115,95,.17); }
.ability-category-number { display: grid; width: 42px; height: 42px; color: var(--teal-800); background: #e8f4ee; border-radius: 12px; place-items: center; font-size: .76rem; font-weight: 950; }
.ability-category-card.is-expanded .ability-category-number { color: var(--teal-900); background: #fff; }
.ability-category-card > span:nth-child(2) { display: grid; gap: 5px; min-width: 0; }
.ability-category-card strong { line-height: 1.4; }
.ability-category-card small { color: var(--muted); font-size: .66rem; }
.ability-category-card.is-expanded small { color: rgba(255,255,255,.82); }
.ability-category-card > b { grid-column: 1 / -1; display: flex; color: var(--teal-700); font-size: .68rem; align-items: center; justify-content: space-between; }
.ability-category-card.is-expanded > b { color: #fff; }
.ability-category-card > b span { font-size: 1.15rem; line-height: 1; }
.ability-category-prompt { padding: 15px; margin: 15px 0 0; text-align: center; color: var(--muted); background: #f4f1eb; border-radius: 13px; font-size: .72rem; }
.ability-category-panel { padding: 26px; margin-top: 18px; background: #f5faf7; border: 2px solid #bcd6c9; border-radius: 20px; scroll-margin-top: 116px; }
.ability-category-panel:focus { outline: none; }
.ability-category-panel-heading { padding-bottom: 17px; border-bottom: 1px solid #cfe0d7; }
.ability-category-panel-heading h4 { margin: 4px 0 6px; color: var(--teal-900); font-size: 1.25rem; }
.ability-category-panel-heading p:last-child { color: var(--muted); font-size: .72rem; }
.ability-priority-section { padding: 22px; margin-top: 24px; background: rgba(255,255,255,.72); border: 1px solid #cfe0d7; border-radius: 18px; }
.ability-priority-section + .ability-priority-section { position: relative; margin-top: 48px; }
.ability-priority-section + .ability-priority-section::before { position: absolute; top: -26px; right: 0; left: 0; border-top: 2px solid #afc4bb; content: ""; }
.ability-priority-section.is-common { background: #eef8f3; border: 2px solid #78ab96; border-left-width: 9px; }
.ability-priority-section.is-possible { background: #fffaf0; border: 2px dashed #a98546; }
.ability-priority-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding-bottom: 18px; margin-bottom: 17px; border-bottom: 2px solid rgba(34,70,61,.2); align-items: start; }
.ability-priority-heading > div { min-width: 0; }
.ability-priority-index { display: grid; width: 44px; height: 44px; color: #fff; background: var(--teal-800); border-radius: 12px; place-items: center; font-size: .78rem; font-weight: 900; letter-spacing: .05em; }
.ability-priority-section.is-possible .ability-priority-index { color: #5b3d0e; background: #f0d69e; border: 2px dashed #8a6429; border-radius: 50%; }
.ability-priority-heading h5 { margin: 0 0 5px; color: var(--teal-900); font-size: 1.22rem; line-height: 1.35; }
.ability-priority-heading p { max-width: 760px; color: #40534c; font-size: .88rem; line-height: 1.65; }
.ability-priority-cue { display: inline-flex; padding: 4px 9px; color: #fff; background: var(--teal-800); border-radius: 999px; font-size: .61rem; font-weight: 900; letter-spacing: .02em; }
.ability-priority-section.is-possible .ability-priority-cue { color: #654719; background: #f0d69e; border: 1px solid #b88b3e; }
.ability-priority-section.is-child .ability-priority-cue { color: #3e4772; background: #d9ddf2; }
.ability-priority-section.is-special .ability-priority-cue { color: #753326; background: #f2c8bc; }
.ability-recommendation-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.ability-recommendation { display: flex; min-width: 0; min-height: 112px; padding: 15px 16px; color: var(--ink); background: #fff; border: 1px solid #cfdcd5; border-radius: 14px; align-items: center; justify-content: space-between; gap: 15px; }
a.ability-recommendation:hover,
a.ability-recommendation:focus-visible { border-color: var(--teal-700); box-shadow: 0 6px 18px rgba(31,115,95,.1); transform: translateY(-1px); }
.ability-recommendation > strong { min-width: 0; line-height: 1.45; }
.ability-recommendation > b,
.ability-recommendation summary > b { flex: 0 0 auto; color: var(--teal-700); font-size: .75rem; }
.ability-recommendation-expandable { display: block; padding: 0; }
.ability-recommendation-expandable summary { display: flex; min-height: 110px; padding: 15px 16px; list-style: none; align-items: center; justify-content: space-between; gap: 15px; cursor: pointer; }
.ability-recommendation-expandable summary::-webkit-details-marker { display: none; }
.ability-recommendation-expandable[open] summary { border-bottom: 1px solid #dce5e0; }
.ability-target-list { display: grid; gap: 8px; padding: 12px; }
.ability-target-link { display: flex; min-height: 64px; padding: 11px 12px; color: var(--ink); background: #faf8f4; border: 1px solid var(--line); border-radius: 11px; align-items: center; justify-content: space-between; gap: 12px; }
.ability-target-link:hover,
.ability-target-link:focus-visible { border-color: var(--teal-700); }
.ability-target-link > b { flex: 0 0 auto; color: var(--teal-700); font-size: .61rem; }
.ability-excluded-note { padding: 20px; margin-top: 22px; background: #f4f1eb; border-radius: 15px; }
.ability-excluded-note > strong { color: var(--teal-900); }
.ability-excluded-note > p { margin: 7px 0 13px; color: var(--muted); font-size: .7rem; line-height: 1.65; }
.ability-excluded-note > div { display: flex; flex-wrap: wrap; gap: 9px; }
.ability-excluded-note button { min-height: 44px; padding: 9px 13px; color: var(--teal-800); background: #fff; border: 1px solid var(--teal-700); border-radius: 10px; font-weight: 850; }
body.high-contrast .ability-scope-note,
body.high-contrast .ability-category-card,
body.high-contrast .ability-category-panel,
body.high-contrast .ability-priority-section,
body.high-contrast .ability-priority-heading,
body.high-contrast .ability-recommendation,
body.high-contrast .ability-target-link,
body.high-contrast .ability-excluded-note { color: inherit; background: transparent; border-color: currentColor; }
body.high-contrast .ability-priority-section + .ability-priority-section::before { border-color: currentColor; }
body.high-contrast .ability-priority-index { color: inherit; background: transparent; border: 2px solid currentColor; }
body.high-contrast .ability-priority-cue { color: inherit; background: transparent; border: 1px solid currentColor; }

.eligibility-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eligibility-options button.is-selected,
.age-flags button.is-selected { color: var(--teal-900); background: #e8f5ee; border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(31,115,95,.14); }
.age-question-layout { display: grid; gap: 24px; }
.age-question-layout fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.age-question-layout legend { margin-bottom: 11px; color: var(--teal-900); font-size: .88rem; font-weight: 900; }
.age-flag-group { padding-top: 20px !important; border-top: 1px solid var(--line) !important; }
.age-flag-group > p { margin: -3px 0 12px; color: var(--muted); font-size: .72rem; }
.eligibility-skip-note { padding: 20px 18px 4px !important; border-radius: 14px; background: color-mix(in srgb, var(--green, #2d8068) 7%, #fff); }
.eligibility-skip-note strong { display: block; margin-bottom: 8px; color: var(--teal-900); font-size: .92rem; }
.age-options { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.age-options button { min-height: 82px; text-align: center; }
.age-flags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.age-flags button { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; min-height: 66px; padding: 13px; text-align: left; background: #fffaf2; border: 2px solid #ead8bf; border-radius: 15px; align-items: center; }
.age-flags button > span { display: grid; width: 30px; height: 30px; color: #fff; background: #d9cec0; border-radius: 9px; place-items: center; font-weight: 900; }
.age-flags button.is-selected > span { background: var(--teal-700); }
.eligibility-next-row { justify-content: flex-end; }
.primary-button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; transform: none; }
.disability-type-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.disability-type-options button { min-height: 128px; }
.eligibility-result-heading { position: relative; padding-right: 150px; margin-bottom: 24px; }
.eligibility-result-heading h3 { max-width: 780px; margin: 5px 0 7px; font-size: clamp(1.4rem, 2.5vw, 2rem); }
.eligibility-result-heading > p:not(.eyebrow) { color: var(--muted); }
.eligibility-result-heading .review-stamp { position: absolute; top: 0; right: 0; }
.detailed-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detailed-results .eligibility-resource-card { display: grid; padding: 24px; background: #fffaf1; border: 2px solid var(--line); border-radius: 20px; align-content: start; box-shadow: 0 7px 18px rgba(75,43,32,.06); }
.detailed-results .eligibility-resource-card.status-possible { border-color: #a8cfbd; background: #f4fbf7; }
.detailed-results .eligibility-resource-card.status-check { border-color: #ecd39d; background: #fffaf0; }
.detailed-results .eligibility-resource-card.status-less { border-color: #ddd7ce; background: #faf8f4; }
.eligibility-resource-card > .resource-status { display: inline-flex; width: max-content; padding: 5px 10px; color: #fff; background: #3a846b; border-radius: 999px; font-size: .68rem; font-weight: 900; }
.eligibility-resource-card.status-check > .resource-status { color: #6f451d; background: #f2d59a; }
.eligibility-resource-card.status-less > .resource-status { color: #625d58; background: #ded9d2; }
.detailed-results h3 { margin: 13px 0 7px; font-size: 1.12rem; }
.detailed-results dl { display: grid; gap: 12px; margin: 15px 0 20px; }
.detailed-results dl div { padding-top: 10px; border-top: 1px solid var(--line); }
.detailed-results dt { color: var(--teal-700); font-size: .67rem; font-weight: 900; }
.detailed-results dd { margin: 3px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.resource-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; align-items: center; }
.eligibility-results .resource-actions a { display: inline-flex; min-height: 44px; padding: 9px 12px; border: 1px solid var(--teal-700); border-radius: 11px; align-items: center; justify-content: center; text-align: center; }
.eligibility-results .resource-actions a:not(.primary-button) { color: var(--teal-700); background: #fff; }
.eligibility-results .resource-actions .primary-button { color: #fff; background: var(--teal-700); }
.resource-actions.has-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; align-items: stretch; }
.resource-link-card { display: flex; min-width: 0; padding: 14px; background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 14px; flex-direction: column; }
.resource-link-card h4 { margin: 0 0 5px; color: var(--teal-900); font-size: .84rem; line-height: 1.4; }
.resource-link-card p { margin: 0 0 13px; color: var(--muted); font-size: .68rem; line-height: 1.55; }
.eligibility-results .resource-link-card a { width: 100%; margin-top: auto; font-size: .7rem; }
.less-relevant-resources { margin-top: 24px; padding-top: 19px; border-top: 1px solid var(--line); }
.less-relevant-resources summary { width: max-content; max-width: 100%; padding: 11px 15px; color: var(--teal-900); background: #f3eee6; border-radius: 12px; cursor: pointer; font-weight: 850; }
.less-relevant-resources[open] summary { margin-bottom: 18px; }
.single-action { justify-content: flex-start; }

.poster-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.poster-card { display: grid; min-width: 0; padding: 0 0 17px; text-align: left; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.poster-card:hover { border-color: var(--teal-700); transform: translateY(-2px); }
.poster-preview { display: grid; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 15px; background: #f8efe1; overflow: hidden; place-items: center; }
.poster-preview img { width: 100%; height: 100%; object-fit: contain; }
.poster-card > strong,
.poster-card > small { padding-inline: 16px; }
.poster-card > strong { font-size: .9rem; line-height: 1.4; }
.poster-card > small { margin-top: 5px; color: var(--teal-700); font-size: .67rem; }
.pdf-preview { color: #fff; background: #a43c2d; font-size: 1.3rem; font-weight: 900; }
.poster-dialog { width: min(920px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 52px 18px 18px; background: #fff; border: 0; border-radius: 20px; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.poster-dialog::backdrop { background: rgba(31,22,16,.78); }
.poster-dialog > button { position: fixed; top: max(22px, calc((100vh - min(100vh - 24px, 900px)) / 2 + 12px)); right: max(22px, calc((100vw - min(920px, 100vw - 24px)) / 2 + 12px)); z-index: 2; width: 40px; height: 40px; color: #fff; background: var(--teal-900); border: 0; border-radius: 50%; font-size: 1.35rem; }
.poster-dialog img { display: block; max-width: 100%; max-height: calc(100vh - 130px); margin: 0 auto; object-fit: contain; }
.poster-dialog h3 { margin: 12px 0 0; text-align: center; }

.language-choices button { display: grid; min-width: 0; padding: 17px; text-align: center; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 15px; place-items: center; }
.language-choices button.is-selected { color: #fff; background: var(--teal-700); border-color: var(--teal-700); }
.language-choices button > span { display: grid; width: 36px; height: 36px; color: #fff; background: #d7472b; border-radius: 50%; place-items: center; }
.language-choices strong { margin-top: 8px; }
.language-prompt { padding: 16px; text-align: center; color: var(--muted); }
.language-content-heading { margin-top: 30px; padding: 22px 24px; background: #f4f9fc; border-left: 5px solid var(--teal-700); border-radius: 16px; }
.language-content-heading.compact-heading { margin-top: 22px; }
.language-content-heading h3,
.language-content-heading p { margin-bottom: 4px; }
.language-content-heading > p:last-child { color: var(--muted); }
.indigenous-language-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.indigenous-language-choices button { display: grid; min-height: 122px; padding: 20px; color: var(--ink); text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 18px; align-content: center; }
.indigenous-language-choices button:hover,
.indigenous-language-choices button:focus-visible { border-color: var(--coral); box-shadow: 0 10px 24px rgba(87, 54, 38, .12); transform: translateY(-2px); }
.indigenous-language-choices button.is-selected { color: #fff; background: var(--teal-700); border-color: var(--teal-700); }
.indigenous-language-choices button > span { font-size: 1.2rem; }
.indigenous-language-choices button strong { margin-top: 5px; font-size: 1rem; }
.indigenous-language-choices button small { margin-top: 4px; color: inherit; opacity: .8; }
.video-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.video-card-grid a { display: grid; min-width: 0; padding-bottom: 16px; background: #fff; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; }
.topic-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.topic-card { border-top: 4px solid var(--teal-700) !important; }
.language-playlist-grid { grid-template-columns: minmax(0, 520px); }
.video-preview { display: grid; aspect-ratio: 16 / 9; margin-bottom: 12px; color: #fff; background: var(--teal-900); place-items: center; font-size: 2rem; overflow: hidden; }
.video-preview img { width: 100%; height: 100%; object-fit: cover; }
.video-card-grid a > small,
.video-card-grid a > strong,
.video-card-grid a > b { padding-inline: 15px; }
.video-card-grid a > small { color: var(--coral-dark); font-weight: 850; }
.video-card-grid a > strong { margin-top: 4px; line-height: 1.4; }
.video-card-grid a > b { margin-top: 8px; color: var(--teal-700); font-size: .66rem; }

@media (max-width: 1200px) {
  .ability-level-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1281px) {
  .helper-shell { top: auto; right: 18px; bottom: 24px; left: auto; transform: none; }
  .helper-toggle { width: auto; min-height: 58px; padding: 6px 14px 6px 6px; text-align: left; flex-direction: row; }
  .helper-toggle strong,
  .helper-toggle small { text-align: left; }
  .helper-panel { top: auto; right: 0; bottom: 70px; left: auto; transform: none; }
}

@media (min-width: 781px) and (max-width: 1160px) {
  body { padding-bottom: 78px; }
  .bottom-nav { position: fixed; z-index: 120; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 68px; padding: 6px 82px max(6px, env(safe-area-inset-bottom)) 12px; background: rgba(255,253,249,.97); border-top: 1px solid var(--line); box-shadow: 0 -7px 22px rgba(20,64,60,.1); backdrop-filter: blur(15px); }
  .bottom-nav a { display: grid; gap: 1px; min-height: 50px; color: var(--teal-900); border-radius: 10px; place-items: center; font-size: .69rem; font-weight: 800; }
  .bottom-nav a span { color: var(--teal-700); font-size: 1.15rem; line-height: 1; }
  .helper-shell { right: 10px; bottom: 7px; }
  .helper-toggle { min-width: 54px; min-height: 54px; padding: 4px; }
  .helper-toggle img { width: 46px; height: 46px; }
  .helper-toggle span { display: none; }
}

body[data-font="xlarge"] .bottom-nav { position: fixed; z-index: 120; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 72px; padding: 7px 82px max(7px, env(safe-area-inset-bottom)) 8px; background: rgba(255,253,249,.97); border-top: 1px solid var(--line); box-shadow: 0 -7px 22px rgba(20,64,60,.1); backdrop-filter: blur(15px); }
body[data-font="xlarge"] .bottom-nav a { display: grid; gap: 1px; min-width: 0; min-height: 52px; color: var(--teal-900); border-radius: 10px; place-items: center; font-size: .58rem; font-weight: 800; }
body[data-font="xlarge"] .bottom-nav a span { color: var(--teal-700); font-size: 1rem; line-height: 1; }
body[data-font="xlarge"] { padding-bottom: 82px; }
body[data-font="xlarge"] .ability-level-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body[data-font="xlarge"] .ability-category-grid,
body[data-font="xlarge"] .ability-recommendation-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body[data-font="xlarge"] .cns-subcategory-grid,
body[data-font="xlarge"] .cns-device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body[data-font="xlarge"] .age-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body[data-font="xlarge"] .disability-type-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body[data-font="xlarge"] .helper-shell { right: 10px; bottom: 7px; }
body[data-font="xlarge"] .helper-toggle { min-width: 54px; min-height: 54px; padding: 4px; }
body[data-font="xlarge"] .helper-toggle img { width: 46px; height: 46px; }
body[data-font="xlarge"] .helper-toggle span { display: none; }

@media (max-width: 780px) {
  body > main { padding-top: 84px; }
  .site-header { left: 50%; transform: translateX(-50%); }
  body[data-font="xlarge"] .ability-level-grid,
  body[data-font="xlarge"] .ability-category-grid,
  body[data-font="xlarge"] .ability-recommendation-list,
  body[data-font="xlarge"] .cns-subcategory-grid,
  body[data-font="xlarge"] .cns-device-grid,
  .ability-level-grid,
  .ability-category-grid,
  .ability-recommendation-list,
  .eligibility-options,
  .age-flags,
  .detailed-results,
  .poster-card-grid,
  .video-card-grid,
  .indigenous-language-choices { grid-template-columns: 1fr; }
  .ability-level-card { grid-template-columns: 42% minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 5px 14px; min-height: 235px; padding: 14px; align-items: center; }
  .level-figure { grid-row: 1 / 4; width: 100%; height: 180px; margin: 0; border: 1px solid #ead9c6; border-radius: 13px; }
  .level-figure img { padding: 6px; }
  .ability-level-card > .level-label { align-self: end; }
  .ability-level-card > .level-title,
  .ability-level-card > small { align-self: start; }
  .ability-selected-heading { display: grid; }
  .ability-selected-heading .wizard-back { width: 100%; min-height: 46px; }
  .ability-scope-note { padding: 16px; }
  .ability-category-card { min-height: 124px; }
  .ability-category-panel { padding: 19px 14px; }
  .ability-priority-section { padding: 17px 14px; }
  .ability-priority-heading { gap: 11px; }
  .ability-priority-index { width: 40px; height: 40px; }
  .ability-recommendation,
  .ability-recommendation-expandable summary { min-height: 118px; }
  .ability-recommendation,
  .ability-recommendation-expandable summary,
  .ability-target-link { align-items: flex-start; flex-direction: column; }
  .ability-recommendation > b,
  .ability-recommendation summary > b,
  .ability-target-link > b { width: 100%; padding-top: 8px; border-top: 1px solid var(--line); }
  .ability-excluded-note > div { display: grid; grid-template-columns: 1fr; }
  .ability-excluded-note button { width: 100%; min-height: 50px; }
  .eligibility-result-heading { padding-right: 0; }
  .eligibility-result-heading .review-stamp { position: static; display: inline-flex; margin-top: 12px; }
  .poster-dialog { padding-inline: 10px; }
  .helper-entry-row { padding-top: 11px; }
}

@media (max-width: 520px) {
  .eligibility-privacy-content { padding: 23px 18px; }
  .eligibility-privacy-actions { display: grid; grid-template-columns: 1fr; }
  .eligibility-privacy-actions button { width: 100%; min-height: 50px; }
  .ability-level-card { grid-template-columns: 38% minmax(0, 1fr); }
  .level-figure { height: 170px; }
  .resource-actions,
  .resource-actions.has-details { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .choice-intro { grid-template-columns: 1fr; }
  .choice-intro img { display: none; }
  .home-choice-grid { grid-template-columns: 1fr; }
  .home-choice { min-height: 126px; }
}

/* 2026-09：品牌層級與所有閱讀模式的穩定導覽 */
body,
body[data-font="standard"],
body[data-font="large"],
body[data-font="xlarge"] {
  padding-bottom: 96px;
}

.home-brand-lockup {
  padding: 4px 18px 24px;
  margin-bottom: 24px;
  text-align: center;
  border-bottom: 2px solid #f1ddc4;
}

.home-brand-kicker {
  margin-bottom: 7px;
  color: var(--teal-700);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.home-brand-lockup h1 {
  margin-bottom: 7px;
  color: var(--teal-900);
  font-size: clamp(2.25rem, 4.2vw, 4.2rem);
  font-weight: 950;
  line-height: 1.14;
  text-wrap: balance;
}

.home-service-name {
  margin-bottom: 4px;
  color: var(--coral-dark);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.home-service-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 750;
  letter-spacing: 0.07em;
}

.choice-intro h2 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
}

.bottom-nav,
body[data-font="xlarge"] .bottom-nav {
  position: fixed;
  z-index: 120;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 84px;
  padding: 10px max(22px, calc((100vw - 1120px) / 2)) max(10px, env(safe-area-inset-bottom));
  background: rgba(255, 253, 249, 0.98);
  border-top: 2px solid #e8c99f;
  box-shadow: 0 -10px 30px rgba(75, 43, 32, 0.14);
  backdrop-filter: blur(16px);
}

.bottom-nav a,
body[data-font="xlarge"] .bottom-nav a {
  display: flex;
  min-width: 0;
  min-height: 62px;
  padding: 8px 14px;
  color: var(--teal-900);
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
}

.bottom-nav a:hover,
.bottom-nav a:focus-visible {
  color: #fff;
  background: var(--teal-700);
}

.bottom-nav a span,
body[data-font="xlarge"] .bottom-nav a span {
  color: var(--teal-700);
  font-size: 1.35rem;
  line-height: 1;
}

.bottom-nav a:hover span,
.bottom-nav a:focus-visible span {
  color: #fff;
}

.helper-shell,
body[data-font="xlarge"] .helper-shell {
  right: 14px;
  bottom: 104px;
}

@media (min-width: 1161px) {
  body[data-font="xlarge"] .site-header {
    grid-template-columns: 1fr auto 1fr;
    gap: 28px;
  }

  body[data-font="xlarge"] .desktop-nav {
    display: flex;
    gap: 0;
  }

  body[data-font="xlarge"] .desktop-nav a {
    padding-inline: 14px;
    font-size: 0.93rem;
  }

  body[data-font="xlarge"] .brand strong {
    font-size: 1.08rem;
  }

  body[data-font="xlarge"] .brand small {
    font-size: 0.75rem;
  }
}

/* 可靠性、收藏與分享工具 */
.favorite-results {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--orange) 30%, var(--line));
  border-radius: 22px;
  background: color-mix(in srgb, var(--orange) 5%, #fff);
}
.favorite-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.favorite-heading h3 { margin: 3px 0 0; font-size: 1.35rem; }
.favorite-heading button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font: inherit; font-weight: 800; cursor: pointer; }
.show-all-results { display: block; min-width: min(100%, 280px); margin: 24px auto 0; }
.detail-review-date { margin: 16px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.share-actions button { min-height: 48px; }
.share-status { min-height: 1.6em; margin: 10px 0 0; color: var(--green-dark, #23653c); font-weight: 800; }
.qr-fallback { width: 220px; min-height: 220px; padding: 22px; display: grid; place-content: center; gap: 8px; border: 2px dashed var(--line); border-radius: 14px; background: #fff; text-align: center; }
.qr-fallback span { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.noscript-notice { margin: 18px auto; width: min(94%, 960px); padding: 16px 18px; border: 2px solid #8a370f; border-radius: 14px; background: #fff4e9; color: #3a1a0b; font-size: 1rem; line-height: 1.65; }
.noscript-notice a { color: inherit; font-weight: 900; }

@media (max-width: 520px) {
  .favorite-results { padding: 18px 14px; }
  .favorite-heading { align-items: flex-start; }
  .share-actions { display: grid; }
  .share-actions button { width: 100%; }
}

@media print {
  .share-actions, .share-status, .favorite-results, .noscript-notice { display: none !important; }
  .detail-review-date { color: #333; }
}

/* A4 PDF／黑白列印專用文件：不改動原網頁版面，只在使用者按下按鈕後顯示於列印輸出。 */
.pdf-print-root { display: none; }
.calc-result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.pdf-action-button { border-color: #5d514b !important; }
.pdf-action-button::before { content: "▤"; margin-right: 5px; }

@media print {
  @page { size: A4 portrait; margin: 11mm 10mm 12mm; }

  body.pdf-exporting {
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #111 !important;
    background: #fff !important;
  }

  body.pdf-exporting > * { display: none !important; }
  body.pdf-exporting > #pdfPrintRoot { display: block !important; }

  .pdf-print-root,
  .pdf-print-root * {
    box-sizing: border-box;
    color: #111 !important;
    text-shadow: none !important;
    box-shadow: none !important;
  }

  .pdf-print-root {
    width: 100%;
    padding: 0;
    font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
    font-size: 9.6pt;
    line-height: 1.5;
  }

  .pdf-document-header {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6mm;
    padding-bottom: 5mm;
    border-bottom: 2px solid #111;
    align-items: end;
  }

  .pdf-brand-block { display: flex; gap: 3mm; align-items: center; }
  .pdf-brand-block img { width: 16mm; height: 16mm; object-fit: contain; filter: grayscale(1) contrast(1.12); }
  .pdf-brand-block strong,
  .pdf-brand-block span { display: block; }
  .pdf-brand-block strong { font-size: 11pt; line-height: 1.35; white-space: nowrap; }
  .pdf-brand-block span { margin-top: 1mm; font-size: 7.5pt; letter-spacing: .06em; }
  .pdf-title-block { text-align: right; }
  .pdf-title-block h1 { margin: 0; font-size: 20pt; line-height: 1.2; letter-spacing: .02em; }
  .pdf-title-block div { margin-top: 1.5mm; font-size: 9pt; }
  .pdf-document-meta { margin: 2.5mm 0 4mm; text-align: right; font-size: 7.5pt; }
  .pdf-document-content { display: grid; gap: 4mm; }
  .pdf-section,
  .pdf-education-card,
  .pdf-assessment-note,
  .pdf-important-note,
  .pdf-qr-row { break-inside: avoid; }
  .pdf-section > h2,
  .pdf-education-card > h2,
  .pdf-education-intro h2 { padding-left: 2.5mm; margin: 0 0 2mm; border-left: 3px solid #111; font-size: 12pt; line-height: 1.25; }

  .pdf-condition-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1px solid #777; }
  .pdf-condition-grid > div { display: grid; grid-template-columns: 1fr 1.25fr; min-height: 9mm; padding: 1.5mm 2mm; border-right: 1px solid #aaa; border-bottom: 1px solid #aaa; align-items: center; }
  .pdf-condition-grid > div:nth-child(2n) { border-right: 0; }
  .pdf-condition-grid dt { font-size: 8pt; font-weight: 700; }
  .pdf-condition-grid dd { margin: 0; text-align: right; font-weight: 800; }

  .pdf-result-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 8pt; }
  .pdf-result-table thead { display: table-header-group; }
  .pdf-result-table tr { break-inside: avoid; }
  .pdf-result-table th,
  .pdf-result-table td { padding: 2mm; border: 1px solid #777; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
  .pdf-result-table th { background: #eee !important; font-size: 7.5pt; }
  .pdf-result-table th:first-child { width: 22%; }
  .pdf-result-table th:nth-child(2) { width: 40%; }
  .pdf-result-table th:nth-child(3) { width: 16%; }
  .pdf-result-table th:last-child { width: 22%; }
  .pdf-result-table strong,
  .pdf-result-table small { display: block; }
  .pdf-result-table small { margin-top: 1mm; font-size: 7pt; line-height: 1.4; }
  .pdf-code-line { padding: 0 0 1mm; margin: 0 0 1mm; border-bottom: 1px dotted #999; line-height: 1.35; }
  .pdf-code-line:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
  .pdf-code-line span { display: block; }
  .pdf-code-line .ltc-code-payment { margin-top: .7mm; }
  .pdf-allocation-label { display: block; font-size: 7.5pt; }
  .pdf-comparison-label { display: block; margin-top: 1.2mm; font-size: 7pt; line-height: 1.35; }
  .pdf-configuration-summary { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; border: 1px solid #555; }
  .pdf-configuration-summary > div { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2mm; padding: 2mm; border-right: 1px solid #888; border-bottom: 1px solid #888; }
  .pdf-configuration-summary > div:nth-child(2n) { border-right: 0; }
  .pdf-configuration-summary > div:nth-last-child(-n + 2) { border-bottom: 0; }
  .pdf-configuration-summary dt { font-weight: 700; }
  .pdf-configuration-summary dd { margin: 0; text-align: right; font-weight: 850; }
  .pdf-summary-total { display: block; margin-bottom: 1.2mm; font-size: 10.5pt; }
  .pdf-configuration-summary .pdf-summary-breakdown { display: grid; gap: .8mm; text-align: left; font-size: 7.2pt; font-weight: 700; }
  .pdf-summary-breakdown span { display: flex; gap: 2mm; justify-content: space-between; }

  .pdf-important-note { display: grid; grid-template-columns: 22mm 1fr; border: 1.5px solid #111; }
  .pdf-important-note > strong { display: grid; min-height: 15mm; padding: 2mm; color: #fff !important; background: #222 !important; place-items: center; }
  .pdf-important-note p { padding: 2.5mm 3mm; margin: 0; }

  .pdf-education-intro { display: grid; grid-template-columns: 1.25fr .75fr; gap: 4mm; }
  .pdf-education-intro > div { padding: 3mm; border: 1px solid #777; }
  .pdf-education-intro p { margin: 1.5mm 0 0; }
  .pdf-education-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
  .pdf-education-card { padding: 3mm; border: 1px solid #777; border-top: 3px solid #111; }
  .pdf-education-card ul { padding-left: 5mm; margin: 0; }
  .pdf-education-card li + li { margin-top: 1.2mm; }
  .pdf-assessment-note { display: grid; grid-template-columns: 34mm 1fr; border: 1.5px solid #111; align-items: stretch; }
  .pdf-assessment-note > strong { display: grid; padding: 3mm; background: #ddd !important; place-items: center; text-align: center; }
  .pdf-assessment-note > div { padding: 3mm; }
  .pdf-assessment-note h2 { margin: 0 0 1mm; font-size: 12pt; }
  .pdf-assessment-note p { margin: 0; }
  .pdf-qr-row { display: grid; grid-template-columns: 1fr 27mm; gap: 5mm; padding-top: 3mm; border-top: 1px solid #777; align-items: center; }
  .pdf-qr-row p { margin: 1mm 0; }
  .pdf-qr-row small { display: block; font-size: 6.5pt; overflow-wrap: anywhere; }
  .pdf-qr-row img { width: 25mm; height: 25mm; filter: grayscale(1) contrast(1.2); }

  .pdf-document-footer { display: grid; grid-template-columns: auto 1fr; gap: 1mm 4mm; padding-top: 3mm; margin-top: 5mm; border-top: 1px solid #555; font-size: 7.5pt; }
  .pdf-document-footer span { text-align: right; }
  .pdf-document-footer small { grid-column: 1 / -1; font-size: 6.7pt; line-height: 1.4; }
}

@media (max-width: 520px) {
  .calc-result-actions { width: 100%; justify-content: stretch; }
  .calc-result-actions button { flex: 1; }
}

/* 中央長照／身障對照與「選一次實際輔具」試算器 */
.calc-search-help { margin: 7px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.mapped-calc-item { padding: 18px 0; }
.mapped-calc-item > .calc-item-main { display: grid; gap: 12px; }
.calc-device-title { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.calc-device-title > div { min-width: 0; }
.calc-device-title small { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; }
.calc-device-title > span { flex: 0 0 auto; padding: 5px 8px; color: #17689e; background: #eaf5fc; border-radius: 999px; font-size: .66rem; font-weight: 850; }
.calc-feature-list { display: grid; gap: 9px; }
.calc-feature { min-width: 0; padding: 12px; background: #fbfcfd; border: 1px solid #d8e5ec; border-radius: 13px; }
.calc-feature.is-selected { background: #fffdf8; border-color: #edcfaa; }
.calc-feature.is-main { border-left: 5px solid #176fa8; }
.calc-preset-bundle { display: grid; gap: 8px; padding: 15px; color: #315d4f; background: #eaf6f1; border: 1px solid #b9dccd; border-left: 5px solid #348b6d; border-radius: 13px; }
.calc-preset-bundle > span { width: fit-content; padding: 4px 8px; color: #fff; background: #348b6d; border-radius: 999px; font-size: .66rem; font-weight: 850; }
.calc-preset-bundle > strong { color: var(--teal-900); font-size: .9rem; }
.calc-preset-bundle > p { margin: 0; font-size: .76rem; line-height: 1.55; }
.calc-feature-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; }
.calc-feature-heading strong { font-size: .82rem; }
.feature-kind,
.feature-check span { display: inline-flex; min-height: 26px; padding: 4px 8px; align-items: center; color: #fff; background: #176fa8; border-radius: 999px; font-size: .66rem; font-weight: 850; }
.feature-check { display: inline-flex !important; width: auto !important; margin: 0 !important; gap: 5px !important; cursor: pointer; }
.feature-check input { width: 18px !important; height: 18px !important; margin: 0; accent-color: #2d8068; }
.feature-check span { color: #245f50; background: #e7f5ef; }
.mapping-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.mapping-badge,
.mapping-rule-tag { display: inline-flex; padding: 4px 7px; border-radius: 999px; font-size: .68rem; font-weight: 850; line-height: 1.25; }
.mapping-badge.ltc { color: #0e5e91; background: #e7f3fb; border: 1px solid #b8d9ed; }
.mapping-badge.disability { color: #76500d; background: #fff3d9; border: 1px solid #edd2a0; }
.mapping-badge.unmapped { color: var(--muted); background: #f0f2f3; }
.mapping-rule-tag { color: #315d4f; background: #e7f5ef; }
.calc-feature-name,
.calc-feature-note { margin: 7px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.5; }
.calc-option-label { display: grid !important; width: 100% !important; margin-top: 9px !important; }
.calc-option-label select { width: 100%; min-width: 0; min-height: 40px; padding: 6px 9px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.add-compatible-button { width: 100%; min-height: 42px; padding: 8px 12px; color: #17689e; background: #eef7fc; border: 1px dashed #84bddc; border-radius: 10px; font-size: .75rem; font-weight: 850; }
.optional-features { padding-top: 2px; }
.calc-formal-count { display: grid; gap: 3px; padding: 12px 14px; margin: 14px 0 0; color: #315d4f; background: #eaf6f1; border-radius: 12px; font-size: .76rem; }
.calc-formal-count span { color: var(--muted); }
.mapped-result-table { min-width: 1280px; }
.mapped-result-table th,
.mapped-result-table td { min-width: 150px; }
.mapped-result-table th:nth-child(2),
.mapped-result-table td:nth-child(2) { min-width: 210px; }
.mapped-result-table th:last-child,
.mapped-result-table td:last-child { min-width: 235px; }
.mapped-result-table .mapping-badge { margin: 2px 3px 2px 0; }
.selected-feature-summary { display: grid; gap: 5px; padding: 0; margin: 0; list-style: none; }
.selected-feature-summary li { display: grid; grid-template-columns: auto 1fr; gap: 5px; line-height: 1.4; }
.selected-feature-summary span { align-self: start; padding: 2px 5px; color: #315d4f; background: #e7f5ef; border-radius: 5px; font-size: .6rem; font-weight: 850; }
.calc-allocation-list { display: grid; gap: 14px; }
.calc-allocation-row { padding: 14px; background: #fff; border: 1px solid var(--line); border-left: 5px solid #c7d6d2; border-radius: 16px; }
.calc-allocation-row.is-ltc { border-left-color: #176fa8; }
.calc-allocation-row.is-disability { border-left-color: #bc7c16; }
.calc-allocation-main { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(140px, .9fr); gap: 9px; align-items: stretch; }
.calc-allocation-device,
.calc-allocation-metric,
.calc-allocation-choice { min-width: 0; padding: 11px; background: #f5f8f7; border-radius: 11px; }
.calc-allocation-device { grid-column: 1 / -1; display: flex; padding: 2px 2px 11px; background: transparent; border-bottom: 1px solid #edcfaa; border-radius: 0; justify-content: space-between; gap: 14px; align-items: baseline; }
.calc-allocation-row h4 { margin: 0; color: var(--teal-900); font-size: 1.05rem; }
.calc-allocation-device small,
.calc-allocation-metric small,
.calc-allocation-choice > small { display: block; color: var(--muted); font-size: .68rem; overflow-wrap: anywhere; }
.calc-allocation-device small { margin-top: 0; text-align: right; font-size: .72rem; }
.calc-allocation-metric strong { display: block; margin-top: 5px; font-size: .9rem; white-space: nowrap; }
.calc-allocation-metric .compare-label { padding: 0; color: #315d4f; background: transparent; border-radius: 0; font-size: .82rem; line-height: 1.45; white-space: normal; word-break: keep-all; }
.calc-allocation-options { padding: 0; margin: 7px 0 0; border: 0; }
.calc-allocation-options > div { display: grid; grid-template-columns: 1fr; gap: 6px; }
.calc-allocation-options label { display: inline-flex; width: 100%; min-width: 0; min-height: 38px; padding: 7px 9px; color: var(--teal-800); background: #fff; border: 2px solid #b7d4ca; border-radius: 9px; align-items: center; gap: 7px; cursor: pointer; font-size: .72rem; font-weight: 850; white-space: nowrap; }
.calc-allocation-options label.is-selected { color: #fff; background: var(--teal-700); border-color: var(--teal-700); }
.calc-allocation-options input { flex: 0 0 auto; width: 17px; height: 17px; margin: 0; accent-color: var(--teal-700); }
.calc-allocation-missing { margin: 7px 0 0; color: var(--muted); font-size: .7rem; }
.calc-detail-disclosure { margin-top: 14px; border-top: 1px solid var(--line); }
.calc-detail-disclosure summary { width: fit-content; padding: 11px 0 0; color: #17689e; cursor: pointer; font-size: .76rem; font-weight: 850; }
.calc-detail-content { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 11px; }
.calc-detail-content > section { min-width: 0; padding: 12px; background: #faf7f1; border-radius: 11px; }
.calc-detail-content h5 { margin: 0 0 8px; color: var(--teal-900); font-size: .75rem; }
.calc-detail-line { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .68rem; line-height: 1.55; }
.calc-detail-line:last-child { border-bottom: 0; }
.calc-detail-line span { display: block; }
.calc-detail-line .ltc-code-payment { margin-top: 2px; color: var(--muted); }
.calc-configuration-summary { padding: 18px; margin: 16px 0; background: #eaf6f1; border: 1px solid #b9dccd; border-radius: 15px; }
.calc-configuration-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; }
.calc-configuration-summary dl > div { padding: 12px; background: #fff; border-radius: 10px; }
.calc-configuration-summary dt { color: var(--muted); font-size: .68rem; font-weight: 800; }
.calc-configuration-summary dd { margin: 5px 0 0; font-size: .95rem; font-weight: 900; }
.calc-summary-total { display: block; margin-bottom: 8px; font-size: 1.12rem; white-space: nowrap; }
.calc-summary-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.calc-summary-breakdown > span { min-width: 0; padding: 7px; background: #f5f8f7; border-radius: 8px; }
.calc-summary-breakdown small,
.calc-summary-breakdown strong { display: block; overflow-wrap: anywhere; }
.calc-summary-breakdown small { color: var(--muted); font-size: .62rem; font-weight: 700; }
.calc-summary-breakdown strong { margin-top: 3px; font-size: .82rem; white-space: nowrap; }
.restriction-cell small { display: block; margin: 0 0 5px !important; }
.mapping-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr) auto; gap: 22px; padding: 22px; margin-top: 18px; background: #f3f8fb; border: 1px solid #cfe1ec; border-radius: 18px; align-items: center; }
.mapping-overview h3 { margin: 2px 0 6px; }
.mapping-overview p { margin: 0; color: var(--muted); line-height: 1.6; }
.mapping-overview dl { display: grid; gap: 9px; margin: 0; }
.mapping-overview dl > div { display: grid; gap: 5px; }
.mapping-overview dt { color: var(--muted); font-size: .7rem; font-weight: 800; }
.mapping-overview dd { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.mapping-overview.is-empty { grid-template-columns: 1fr; }
.variant-calculator-link { display: inline-flex; min-height: 40px; padding: 8px 12px; margin-top: 12px; color: #17689e; background: #eef7fc; border: 1px solid #b8d9ed; border-radius: 9px; align-items: center; font-size: .75rem; font-weight: 850; }
body.high-contrast .calc-feature,
body.high-contrast .calc-preset-bundle,
body.high-contrast .calc-allocation-row,
body.high-contrast .calc-allocation-device,
body.high-contrast .calc-allocation-metric,
body.high-contrast .calc-allocation-choice,
body.high-contrast .calc-allocation-options label,
body.high-contrast .calc-detail-content > section,
body.high-contrast .calc-configuration-summary,
body.high-contrast .calc-configuration-summary dl > div,
body.high-contrast .mapping-overview,
body.high-contrast .mapping-badge,
body.high-contrast .mapping-rule-tag { color: inherit; background: transparent; border-color: currentColor; }

@media (min-width: 781px) {
  body[data-font="xlarge"] .calc-settings { grid-template-columns: 1fr; }
  body[data-font="xlarge"] .calc-allocation-row { display: grid; grid-template-columns: minmax(130px, 1.2fr) repeat(3, minmax(110px, 1fr)); gap: 9px; }
  body[data-font="xlarge"] .calc-allocation-main { display: contents; }
  body[data-font="xlarge"] .calc-allocation-device { grid-column: auto; display: grid; padding: 11px; background: #fffaf2; border-bottom: 0; border-radius: 11px; align-content: start; gap: 3px; }
  body[data-font="xlarge"] .calc-allocation-device small { text-align: left; }
  body[data-font="xlarge"] .calc-allocation-choice { grid-column: 1 / 3; }
  body[data-font="xlarge"] .calc-detail-disclosure { grid-column: 3 / 5; margin-top: 0; padding: 11px; border: 1px solid var(--line); border-radius: 11px; align-self: stretch; }
  body[data-font="xlarge"] .calc-detail-disclosure summary { padding-top: 0; }
}

@media (max-width: 1020px) {
  .mapping-overview { grid-template-columns: 1fr 1fr; }
  .mapping-overview > a { justify-self: start; }
}

@media (min-width: 781px) and (max-width: 1020px) {
  .calculator-layout { grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); }
  .calc-settings { grid-template-columns: 1fr; }
  .calc-allocation-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-font="xlarge"] .calc-allocation-row { display: block; }
  body[data-font="xlarge"] .calc-allocation-main { display: grid; }
  body[data-font="xlarge"] .calc-allocation-device,
  body[data-font="xlarge"] .calc-allocation-choice { grid-column: 1 / -1; }
  body[data-font="xlarge"] .calc-detail-disclosure { margin-top: 14px; padding: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
  body[data-font="xlarge"] .calc-detail-disclosure summary { padding-top: 11px; }
}

@media (max-width: 780px) {
  .calc-device-title { display: grid; }
  .calc-device-title > span { justify-self: start; }
  .mapping-overview { grid-template-columns: 1fr; }
  .calc-allocation-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-allocation-device { grid-column: 1 / -1; }
  .calc-detail-content { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .calc-feature { padding: 10px; }
  .calc-feature-heading { grid-template-columns: 1fr; }
  .calc-allocation-main { grid-template-columns: 1fr; }
  .calc-allocation-device,
  .calc-allocation-choice { grid-column: auto; }
  .calc-allocation-device { display: grid; gap: 3px; }
  .calc-allocation-device small { text-align: left; }
  .calc-configuration-summary dl { grid-template-columns: 1fr; }
  .calc-summary-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mapped-calc-item > button { grid-column: 2; justify-self: start; }
}

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

  .education-card.what,
  .education-card.audience,
  .education-card.help,
  .education-card.operation,
  .education-card.caution,
  .education-card.maintenance {
    grid-column: auto;
  }
}

@media (max-width: 780px) {
  body,
  body.home-page,
  body[data-font="xlarge"] {
    padding-bottom: 84px;
  }

  .home-brand-lockup {
    padding: 3px 4px 19px;
    margin-bottom: 20px;
  }

  .home-brand-kicker {
    font-size: 0.66rem;
  }

  .home-brand-lockup h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .home-service-name {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .home-service-summary {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
  }

  .choice-intro h2 {
    font-size: clamp(1.65rem, 8vw, 2.45rem);
  }

  .detail-section {
    padding-top: 58px;
  }

  .detail-anchor-nav {
    max-width: calc(100% - 8px);
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .detail-anchor-nav::-webkit-scrollbar {
    display: none;
  }

  .education-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .education-card,
  .education-card.what,
  .education-card.audience,
  .education-card.help,
  .education-card.operation,
  .education-card.caution,
  .education-card.maintenance {
    grid-column: auto;
    min-width: 0;
    padding: 22px 19px;
    overflow-wrap: anywhere;
  }

  .education-card h3,
  .education-card p,
  .education-card li {
    word-break: normal;
  }

  .bottom-nav,
  body[data-font="xlarge"] .bottom-nav {
    min-height: 76px;
    padding: 6px 8px max(6px, env(safe-area-inset-bottom));
  }

  .bottom-nav a,
  body[data-font="xlarge"] .bottom-nav a {
    display: grid;
    min-height: 56px;
    padding: 5px 3px;
    place-items: center;
    gap: 1px;
    font-size: 0.66rem;
    text-align: center;
  }

  .bottom-nav a span,
  body[data-font="xlarge"] .bottom-nav a span {
    font-size: 1.15rem;
  }

  .helper-shell,
  body[data-font="xlarge"] .helper-shell {
    right: 8px;
    bottom: 92px;
  }
}

@media print {
  body {
    padding-bottom: 0;
  }
}

/* 2026-09：試算器、窄螢幕與閱讀性稽核修正 */
.smart-only-setting[hidden] {
  display: none !important;
}

.calc-group-note,
.calc-item-note {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.calc-group-note {
  padding: 11px 13px;
  margin: 14px 0 0;
  background: #fff6e7;
  border-left: 4px solid var(--coral);
  border-radius: 9px;
}

.calc-item {
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.calc-item-main,
.calc-item-config {
  min-width: 0;
}

.calc-item-config {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.calc-item .calc-item-config label {
  display: grid;
  width: 100%;
  margin: 0;
  color: var(--teal-900);
  font-size: 0.875rem;
  font-weight: 800;
  align-items: initial;
}

.calc-item .calc-item-config input,
.calc-item .calc-item-config select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 10px;
  color: var(--ink);
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
}

.calc-item-note {
  margin: 9px 0 0;
}

.plan-compare > div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-service-actions small,
.wizard-options button small,
.eligibility-results a,
.calc-settings label,
.calc-add > label,
.calc-suggestions strong,
.calc-table,
.calc-warning,
.helper-message,
.helper-quick button,
.detailed-results dd,
.device-photo figcaption {
  font-size: 0.875rem;
}

.calc-suggestions small,
.calc-suggestions b,
.calc-item > button,
.compare-label,
.plan-compare small,
.plan-compare > p,
.helper-toggle small,
.helper-panel header small,
.helper-safety,
.detailed-results dt,
.share-section figcaption {
  font-size: 0.75rem;
}

.helper-toggle strong,
.helper-entry-row strong,
.bottom-nav a,
body[data-font="xlarge"] .bottom-nav a {
  font-size: 0.8rem;
}

@media (max-width: 520px) {
  .calc-item {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .calc-item > span {
    width: 32px;
    height: 32px;
  }

  .calc-item > button {
    grid-column: 2;
    width: fit-content;
  }

  .plan-compare > div {
    grid-template-columns: 1fr;
  }

  .calc-result-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  #copyCalcResult {
    width: 100%;
  }
}

@media (min-width: 1161px) {
  body,
  body.home-page,
  body[data-font="standard"],
  body[data-font="large"],
  body[data-font="xlarge"] {
    padding-bottom: 0;
  }

  .bottom-nav,
  body[data-font="xlarge"] .bottom-nav {
    display: none;
  }

  .helper-shell,
  body[data-font="xlarge"] .helper-shell {
    right: 18px;
    bottom: 24px;
  }
}
