:root {
  --ink: #1a1a1a;
  --ink-soft: #5b5b5b;
  --forest: #7d212a;
  --forest-2: #aa2d39;
  --mint: #e8e8e8;
  --mint-light: #f7f7f7;
  --paper: #f7f7f7;
  --paper-2: #e8e8e8;
  --white: #ffffff;
  --amber: #f19c78;
  --amber-light: #fbe9e1;
  --coral: #b7505f;
  --blue: #3ba3b8;
  --violet: #8f4d35;
  --line: #d5d3cd;
  --line-dark: #a2a2a2;
  --shadow: 0 18px 50px rgba(26, 26, 26, 0.12);
  --shadow-small: 0 8px 24px rgba(26, 26, 26, 0.09);
  --radius: 18px;
  --radius-small: 10px;
  --shell: min(1180px, calc(100% - 40px));
  --body-size: 1rem;
  --header-offset: 150px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: var(--body-size);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.large-text {
  --body-size: 1.125rem;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

body.high-contrast {
  --ink: #000;
  --ink-soft: #111;
  --forest: #4d0009;
  --forest-2: #70000d;
  --paper: #fff;
  --paper-2: #f2f2f2;
  --white: #fff;
  --amber: #ffcc00;
  --amber-light: #fff1a8;
  --coral: #8f1020;
  --blue: #003da5;
  --violet: #421983;
  --line: #555;
  --line-dark: #222;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--forest) !important;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  left: 16px;
  top: 12px;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--amber);
  color: #111;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

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

.noscript {
  padding: 14px 20px;
  background: #8a1f12;
  color: #fff;
  text-align: center;
  font-weight: 700;
}

.program-bar {
  background: var(--ink);
  color: #fff;
  font-size: 0.79rem;
  letter-spacing: 0.03em;
}

.program-bar__inner {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.program-bar p {
  margin: 0;
}

.program-bar__meta {
  display: flex;
  gap: 26px;
  color: rgba(255, 255, 255, 0.78);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-main {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
  border-radius: 5px 18px 5px 5px;
}

.brand-mark::after {
  position: absolute;
  right: -7px;
  bottom: -10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--amber);
  content: "";
}

.brand-mark strong {
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.08em;
  transform: translate(-3px, -4px);
}

.brand-mark small {
  position: absolute;
  z-index: 1;
  right: 5px;
  bottom: 4px;
  color: var(--forest);
  font-size: 0.58rem;
  font-weight: 900;
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.35;
}

.brand-copy strong {
  font-size: clamp(1.02rem, 1.8vw, 1.34rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.045em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-button,
.menu-toggle {
  display: inline-grid;
  min-width: 54px;
  min-height: 52px;
  place-items: center;
  gap: 1px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.66rem;
}

.icon-button:hover {
  background: var(--mint-light);
  color: var(--forest);
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.text-icon {
  font-size: 0.92rem;
  font-weight: 900;
}

.contrast-icon {
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

.menu-toggle {
  display: none;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle b {
  font-size: 0.65rem;
}

.primary-nav {
  border-top: 1px solid var(--line);
}

.primary-nav__inner {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.primary-nav a {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-left: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.primary-nav a:last-child {
  border-right: 1px solid var(--line);
}

.primary-nav a::after {
  position: absolute;
  right: 50%;
  bottom: -1px;
  left: 50%;
  height: 4px;
  background: var(--amber);
  content: "";
  transition: inset 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: var(--mint-light);
  color: var(--forest);
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  right: 0;
  left: 0;
}

.primary-nav a span {
  font-size: 0.91rem;
  font-weight: 800;
}

.primary-nav a small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.63rem;
  letter-spacing: 0.03em;
}

.partners-nav i {
  display: inline-flex;
  padding: 1px 5px;
  align-items: center;
  margin-left: 3px;
  background: var(--forest);
  border-radius: 3px;
  color: #fff;
  font-size: 0.55rem;
  font-style: normal;
  vertical-align: 2px;
}

main {
  min-height: 70vh;
}

.route-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: var(--scroll-progress, 0%);
  height: 3px;
  background: var(--amber);
  pointer-events: none;
}

.section {
  padding: clamp(72px, 9vw, 116px) 0;
}

.section--tight {
  padding: clamp(46px, 6vw, 78px) 0;
}

.section--white {
  background: var(--white);
}

.section--ink {
  background: var(--forest);
  color: #fff;
}

.section--mint {
  background: var(--mint-light);
}

.section--paper-2 {
  background: var(--paper-2);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--forest-2);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 3px;
  background: var(--amber);
  content: "";
}

.section--ink .eyebrow,
.home-hero .eyebrow,
.page-hero--dark .eyebrow {
  color: var(--mint);
}

.display-title,
.page-hero h1,
.section-heading h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 38px;
}

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

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading p:not(.eyebrow) {
  max-width: 660px;
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.section--ink .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest-2);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-small);
}

.button--primary {
  background: var(--amber);
  color: #1a1a1a;
}

.button--dark {
  background: var(--forest);
  color: #fff;
}

.button--light {
  background: #fff;
  color: var(--forest);
}

.button--outline {
  border-color: currentColor;
  background: transparent;
  color: var(--forest);
}

.button--outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
}

.button[aria-disabled="true"] {
  opacity: 0.68;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mint-light);
  color: var(--forest);
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.2;
}

.status-pill--amber {
  background: var(--amber-light);
  color: var(--forest);
}

.status-pill--dark {
  background: var(--forest);
  color: #fff;
}

.status-pill--outline {
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--ink-soft);
}

.card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
}

.crumbs li:not(:last-child)::after {
  margin-left: 8px;
  color: var(--line-dark);
  content: "/";
}

.crumbs a {
  color: inherit;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 8vw, 92px) 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.page-hero::after {
  position: absolute;
  right: -100px;
  bottom: -160px;
  width: 380px;
  height: 380px;
  border: 80px solid rgba(125, 33, 42, 0.09);
  border-radius: 50%;
  content: "";
}

.page-hero--dark {
  border: 0;
  background: var(--forest);
  color: #fff;
}

.page-hero--dark::after {
  border-color: rgba(255, 255, 255, 0.08);
}

.page-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.7fr);
  align-items: end;
  gap: clamp(36px, 7vw, 100px);
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(2.6rem, 6vw, 5rem);
}

.page-hero .lede {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.page-hero--dark .lede {
  color: rgba(255, 255, 255, 0.76);
}

.hero-aside {
  padding-left: 24px;
  border-left: 4px solid var(--amber);
}

.hero-aside strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.hero-aside p {
  margin: 0;
  color: var(--ink-soft);
}

.page-hero--dark .hero-aside p {
  color: rgba(255, 255, 255, 0.7);
}

.subnav {
  position: sticky;
  z-index: 35;
  top: 140px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  scrollbar-width: thin;
}

.subnav__inner {
  display: flex;
  min-width: max-content;
}

.subnav a {
  position: relative;
  padding: 17px 18px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.subnav a[aria-current="page"],
.subnav a:hover {
  color: var(--forest-2);
}

.subnav a[aria-current="page"]::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 4px;
  background: var(--amber);
  content: "";
}

/* Home */
.home-hero {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: #fff;
}

.home-hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 66px 66px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000 48%, #000);
}

.home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 630px;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  padding: clamp(70px, 9vw, 118px) 0;
}

.home-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.home-hero h1 span {
  display: block;
  color: var(--amber);
}

.hero-lede {
  max-width: 690px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.77);
  font-size: clamp(1.02rem, 1.6vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-data-panel {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(26, 26, 26, 0.42);
  box-shadow: 18px 18px 0 var(--amber);
}

.hero-data-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-data-panel__head p,
.hero-data-panel__head strong {
  margin: 0;
}

.hero-data-panel__head p {
  color: var(--mint);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.hero-data-panel__head strong {
  font-size: 0.78rem;
}

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

.hero-metric {
  padding: 25px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-metric:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-metric strong {
  display: block;
  color: var(--amber);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.hero-metric span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.hero-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
}

.action-rail {
  position: relative;
  z-index: 2;
  margin-top: -38px;
}

.action-rail__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.action-card {
  position: relative;
  display: block;
  min-height: 155px;
  padding: 24px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s ease;
}

.action-card:last-child {
  border: 0;
}

.action-card:hover {
  background: var(--mint-light);
}

.action-card b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 18px;
  background: var(--forest);
  border-radius: 50%;
  color: #fff;
  font-size: 0.74rem;
}

.action-card strong {
  display: block;
  font-size: 1rem;
}

.action-card small {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
}

.action-card::after {
  position: absolute;
  right: 21px;
  bottom: 20px;
  content: "↗";
  font-size: 1.25rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  display: flex;
  min-height: 315px;
  flex-direction: column;
  padding: 26px;
  border-top: 7px solid var(--forest);
  background: var(--white);
  box-shadow: var(--shadow-small);
}

.news-card:nth-child(2) {
  border-color: var(--blue);
}

.news-card:nth-child(3) {
  border-color: var(--coral);
}

.news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.news-card h3 {
  margin: 24px 0 12px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.35;
}

.news-card p {
  margin: 0 0 24px;
  color: var(--ink-soft);
}

.news-card .text-link {
  margin-top: auto;
}

.dashboard-teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.capability-figure {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.capability-figure__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.capability-figure__head h3,
.capability-figure__head p {
  margin: 0;
}

.capability-figure__head p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
}

.capability-bars {
  display: grid;
  gap: 18px;
}

.capability-bar__meta {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 0.8rem;
}

.capability-bar__meta b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: var(--amber);
  border-radius: 4px;
  color: var(--ink);
}

.capability-bar__track {
  height: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.capability-bar__fill {
  height: 100%;
  width: var(--bar);
  background: var(--mint);
  transform-origin: left;
  animation: bar-in 0.7s ease both;
}

@keyframes bar-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.dashboard-copy h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.12;
}

.dashboard-copy > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.caveat-box {
  margin-top: 24px;
  padding: 16px 18px;
  border-left: 4px solid var(--amber);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.journey-card {
  min-height: 365px;
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.journey-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.journey-card__num {
  display: block;
  margin-bottom: 55px;
  color: var(--forest-2);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.journey-card h3 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}

.journey-card p {
  color: var(--ink-soft);
}

.journey-card .text-link {
  margin-top: 20px;
}

.partner-band {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--white);
}

.partner-band__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: 20px;
  padding: 36px 0;
}

.partner-band h2 {
  margin: 0;
  font-size: 1.55rem;
}

.partner-band p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.logo-stream {
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  padding: 10px 2px;
  scrollbar-width: thin;
}

.logo-stream img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: contain;
  filter: saturate(0.85);
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: clamp(40px, 7vw, 74px);
  background: var(--amber);
}

.cta-band h2 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.12;
}

.cta-band p {
  max-width: 750px;
  margin: 14px 0 0;
}

/* About and partners */
.story-grid,
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(38px, 7vw, 90px);
  align-items: start;
}

.prose {
  max-width: 790px;
}

.prose h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
}

.prose h3 {
  margin: 2.2em 0 0.6em;
  font-size: 1.35rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose strong {
  color: var(--ink);
}

.prose a {
  color: var(--forest-2);
}

.mission-panel {
  padding: 32px;
  background: var(--forest);
  color: #fff;
  box-shadow: 14px 14px 0 var(--amber);
}

.mission-panel h3 {
  margin: 0 0 24px;
  font-size: 1.3rem;
}

.mission-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mission;
}

.mission-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  counter-increment: mission;
}

.mission-list li::before {
  color: var(--amber);
  content: "0" counter(mission);
  font-weight: 900;
}

.role-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 44px;
}

.role-node {
  position: relative;
  min-height: 165px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.role-node:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -24px;
  color: var(--forest-2);
  content: "→";
  font-size: 1.5rem;
  transform: translateY(-50%);
}

.role-node b {
  display: block;
  color: var(--forest-2);
  font-size: 0.73rem;
  letter-spacing: 0.12em;
}

.role-node h3 {
  margin: 16px 0 8px;
  font-size: 1.16rem;
}

.role-node p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.timeline::before {
  position: absolute;
  top: 17px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--line-dark);
  content: "";
}

.timeline-item {
  position: relative;
  padding-top: 46px;
}

.timeline-item::before {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 0;
  width: 20px;
  height: 20px;
  border: 5px solid var(--white);
  background: var(--forest-2);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--forest-2);
  content: "";
}

.timeline-item time {
  color: var(--forest-2);
  font-size: 0.75rem;
  font-weight: 900;
}

.timeline-item h3 {
  margin: 8px 0;
  font-size: 1rem;
}

.timeline-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-bar button {
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid var(--line-dark);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
}

.filter-bar button:hover,
.filter-bar button[aria-pressed="true"] {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.partner-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.partner-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.partner-card__head img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.partner-card__head h3,
.partner-card__head p {
  margin: 0;
}

.partner-card__head h3 {
  font-size: 1.05rem;
}

.partner-card__head p {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.partner-card__feature {
  margin: 24px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.partner-card .tag-row {
  margin-top: auto;
}

.partner-card .text-link {
  margin-top: 8px;
  font-size: 0.82rem;
}

.partner-card__contact {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.map-card {
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7f7f7;
}

.map-card img {
  width: 100%;
  height: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-block {
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--white);
}

.contact-block h3 {
  margin: 0 0 14px;
  font-size: 1.28rem;
}

.contact-block p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

/* News */
.news-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.news-toolbar .filter-bar {
  margin: 0;
}

.news-count {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-row {
  display: grid;
  grid-template-columns: 130px 130px 1fr 38px;
  align-items: center;
  gap: 18px;
  min-height: 108px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.news-row:hover {
  background: var(--mint-light);
  transform: translateX(4px);
}

.news-row time {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.news-row h2 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.45;
}

.news-row > span:last-child {
  font-size: 1.2rem;
}

.subscribe-panel {
  display: grid;
  grid-template-columns: 1fr minmax(330px, 0.8fr);
  align-items: center;
  gap: 50px;
  padding: clamp(36px, 6vw, 64px);
  background: var(--forest);
  color: #fff;
}

.subscribe-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.subscribe-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.subscribe-form {
  display: grid;
  gap: 10px;
}

.subscribe-form label {
  font-size: 0.8rem;
  font-weight: 800;
}

.subscribe-form__field {
  display: flex;
}

.subscribe-form input {
  min-width: 0;
  flex: 1;
  min-height: 52px;
  padding: 10px 14px;
  border: 2px solid #fff;
  border-radius: 0;
}

.subscribe-form button {
  min-height: 52px;
  padding: 10px 20px;
  border: 2px solid var(--amber);
  background: var(--amber);
  cursor: pointer;
  font-weight: 900;
}

/* Dashboard and method */
.dashboard-shell {
  padding: 26px;
  background: #f7f7f7;
  border-radius: var(--radius);
}

.method-alert {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid #f19c78;
  background: var(--amber-light);
}

.method-alert b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--amber);
  border-radius: 50%;
}

.method-alert p {
  margin: 0;
  color: var(--forest);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric-card {
  min-height: 130px;
  padding: 20px;
  border: 1px solid #e8e8e8;
  background: #fff;
  border-radius: 12px;
}

.metric-card span {
  display: block;
  color: #5b5b5b;
  font-size: 0.75rem;
}

.metric-card strong {
  display: block;
  margin-top: 14px;
  color: #1a1a1a;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.metric-card small {
  display: block;
  margin-top: 8px;
  color: #5b5b5b;
  font-size: 0.68rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  margin-top: 14px;
}

.dashboard-panel {
  padding: 24px;
  border: 1px solid #e8e8e8;
  background: #fff;
  border-radius: 12px;
}

.dashboard-panel h3,
.dashboard-panel p {
  margin-top: 0;
}

.dashboard-panel > p {
  color: #5b5b5b;
  font-size: 0.77rem;
}

.chart-bars {
  display: flex;
  min-height: 250px;
  align-items: end;
  justify-content: space-around;
  gap: 18px;
  padding: 28px 10px 0;
  border-bottom: 1px solid #d5d3cd;
}

.chart-column {
  display: flex;
  height: 210px;
  flex: 1;
  align-items: center;
  justify-content: end;
  flex-direction: column;
  text-align: center;
}

.chart-column strong {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.chart-column__bar {
  width: min(62px, 75%);
  height: var(--height);
  min-height: 12px;
  background: var(--blue);
  border-radius: 8px 8px 0 0;
  animation: grow-up 0.7s ease both;
  transform-origin: bottom;
}

.chart-column span {
  margin-top: 9px;
  color: #5b5b5b;
  font-size: 0.75rem;
}

@keyframes grow-up {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

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

.insight-list li {
  padding: 17px 0;
  border-top: 1px solid #e8e8e8;
}

.insight-list strong {
  display: block;
  color: #1a1a1a;
}

.insight-list span {
  display: block;
  margin-top: 3px;
  color: #5b5b5b;
  font-size: 0.78rem;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 38px 0;
  counter-reset: method;
}

.method-step {
  position: relative;
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
  counter-increment: method;
}

.method-step::before {
  display: block;
  margin-bottom: 44px;
  color: var(--coral);
  content: "0" counter(method);
  font-size: 0.78rem;
  font-weight: 900;
}

.method-step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.method-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.ability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ability-card {
  position: relative;
  min-height: 265px;
  padding: 30px 30px 30px 92px;
  border: 1px solid var(--line);
  background: var(--white);
}

.ability-card__letter {
  position: absolute;
  top: 30px;
  left: 28px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: var(--forest);
  border-radius: 4px 15px 4px 4px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
}

.ability-card:nth-child(2) .ability-card__letter { background: var(--coral); }
.ability-card:nth-child(3) .ability-card__letter { background: var(--blue); }
.ability-card:nth-child(4) .ability-card__letter { background: var(--violet); }

.ability-card:nth-child(3) .ability-card__letter { color: #1a1a1a; }

.ability-card h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.ability-card .codes {
  color: var(--forest-2);
  font-size: 0.75rem;
  font-weight: 800;
}

.ability-card p {
  color: var(--ink-soft);
}

.coming-panel {
  display: grid;
  min-height: 340px;
  place-items: center;
  padding: 40px;
  border: 2px dashed var(--line-dark);
  background: var(--paper-2);
  text-align: center;
}

.coming-panel__inner {
  max-width: 640px;
}

.coming-panel b {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin: 0 auto 20px;
  background: var(--forest);
  border-radius: 50%;
  color: #fff;
}

.coming-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.coming-panel p {
  color: var(--ink-soft);
}

/* Faculty */
.semester-stack {
  display: grid;
  gap: 28px;
}

.semester-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-top: 2px solid var(--ink);
}

.semester-block__intro {
  padding: 24px 24px 24px 0;
}

.semester-block__intro time {
  color: var(--forest-2);
  font-size: 0.75rem;
  font-weight: 900;
}

.semester-block__intro h3 {
  margin: 9px 0;
  font-size: 1.3rem;
}

.semester-block__intro p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

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

.session-item {
  display: grid;
  grid-template-columns: 55px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 80px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.session-item b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--mint-light);
  color: var(--forest);
  font-size: 0.78rem;
}

.session-item h4,
.session-item p {
  margin: 0;
}

.session-item h4 {
  font-size: 0.95rem;
}

.session-item p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

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

.resource-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
}

.resource-card__type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--forest-2);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.resource-card h3 {
  margin: 34px 0 10px;
  font-size: 1.2rem;
}

.resource-card p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.resource-card .text-link,
.resource-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.support-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.support-service {
  min-height: 245px;
  padding: 25px;
  border: 1px solid var(--line);
  background: var(--white);
}

.support-service b {
  color: var(--coral);
  font-size: 0.75rem;
}

.support-service h3 {
  margin: 35px 0 8px;
  font-size: 1.08rem;
}

.support-service p {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.policy-builder {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
}

.builder-form,
.builder-output {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
}

.builder-form fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.builder-form legend {
  margin-bottom: 18px;
  font-size: 1.2rem;
  font-weight: 900;
}

.check-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.check-option:hover {
  background: var(--mint-light);
}

.check-option input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--forest);
}

.builder-output h3 {
  margin-top: 0;
}

.builder-output__paper {
  min-height: 240px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fafafa;
  color: #1a1a1a;
  font-family: "Noto Serif TC", "PMingLiU", serif;
  font-size: 0.92rem;
  line-height: 1.9;
  white-space: pre-line;
}

/* Students and outcomes */
.pathway {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 36px;
  counter-reset: pathway;
}

.pathway-step {
  position: relative;
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-right: 0;
  background: var(--white);
  counter-increment: pathway;
}

.pathway-step:last-child {
  border-right: 1px solid var(--line);
}

.pathway-step::before {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 40px;
  background: var(--forest);
  border-radius: 50%;
  color: #fff;
  content: counter(pathway);
  font-weight: 900;
}

.pathway-step:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: 35px;
  right: -13px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  background: var(--amber);
  border-radius: 50%;
  content: "→";
  font-size: 0.78rem;
}

.pathway-step h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.pathway-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

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

.model-card,
.outcome-card {
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
}

.model-card b,
.outcome-card b {
  color: var(--forest-2);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.model-card h3,
.outcome-card h3 {
  margin: 38px 0 10px;
  font-size: 1.3rem;
}

.model-card p,
.outcome-card p {
  color: var(--ink-soft);
}

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

.milestone-item {
  display: grid;
  grid-template-columns: 115px 1fr auto;
  align-items: start;
  gap: 28px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
}

.milestone-item:last-child {
  border-bottom: 1px solid var(--line);
}

.milestone-item time {
  color: var(--forest-2);
  font-weight: 900;
}

.milestone-item h3,
.milestone-item p {
  margin: 0;
}

.milestone-item p {
  margin-top: 5px;
  color: var(--ink-soft);
}

/* Partner portal */
.portal-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 650px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.portal-sidebar {
  padding: 28px;
  background: var(--forest);
  color: #fff;
}

.portal-sidebar__badge {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
}

.portal-sidebar h2 {
  margin: 0;
  font-size: 1.45rem;
}

.portal-sidebar p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

.portal-nav {
  display: grid;
  gap: 4px;
  margin-top: 30px;
}

.portal-nav button {
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.portal-nav button:hover {
  color: var(--amber);
}

.portal-main {
  padding: clamp(26px, 5vw, 52px);
}

.portal-main__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.portal-main__head h2,
.portal-main__head p {
  margin: 0;
}

.portal-main__head p {
  margin-top: 7px;
  color: var(--ink-soft);
}

.portal-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.portal-action {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.portal-action b {
  color: var(--forest-2);
  font-size: 0.75rem;
}

.portal-action h3 {
  margin: 30px 0 8px;
  font-size: 1.05rem;
}

.portal-action p {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.status-matrix {
  width: 100%;
  margin-top: 30px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.status-matrix caption {
  padding: 10px 0;
  color: var(--ink-soft);
  caption-side: bottom;
  font-size: 0.75rem;
  text-align: left;
}

.matrix-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.matrix-head h3,
.matrix-head p {
  margin: 0;
}

.matrix-head p {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.matrix-head .matrix-dot {
  margin-right: 6px;
}

.status-matrix th,
.status-matrix td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: center;
}

.status-matrix th:first-child,
.status-matrix td:first-child {
  text-align: left;
}

.matrix-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 5px;
  background: var(--line-dark);
  border-radius: 50%;
}

.matrix-dot--done { background: #3ba3b8; }
.matrix-dot--next { background: var(--amber); }

.privacy-callout {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  margin-top: 20px;
  padding: 18px;
  background: var(--mint-light);
}

.privacy-callout b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--forest);
  border-radius: 50%;
  color: #fff;
}

.privacy-callout p {
  margin: 0;
  font-size: 0.82rem;
}

/* FAQ, policies, sitemap */
.accordion {
  border-top: 1px solid var(--line);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-button {
  display: grid;
  width: 100%;
  grid-template-columns: 42px 1fr 30px;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.accordion-button b {
  color: var(--forest-2);
  font-size: 0.75rem;
}

.accordion-button span:nth-child(2) {
  font-weight: 800;
}

.accordion-button span:last-child {
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.accordion-button[aria-expanded="true"] span:last-child {
  transform: rotate(45deg);
}

.accordion-panel {
  max-width: 850px;
  padding: 0 0 24px 56px;
  color: var(--ink-soft);
}

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

.policy-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.policy-toc {
  position: sticky;
  top: 220px;
  padding: 18px;
  border-left: 3px solid var(--amber);
  background: var(--white);
}

.policy-toc strong {
  display: block;
  margin-bottom: 12px;
}

.policy-toc a {
  display: block;
  padding: 5px 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

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

.sitemap-group {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
}

.sitemap-group h2 {
  margin: 0 0 15px;
  font-size: 1.15rem;
}

.sitemap-group ul {
  margin: 0;
  padding-left: 20px;
}

.sitemap-group li {
  margin: 8px 0;
  color: var(--ink-soft);
}

.feedback-form {
  display: grid;
  max-width: 760px;
  gap: 20px;
}

.field-group {
  display: grid;
  gap: 7px;
}

.field-group label,
.field-group legend {
  font-weight: 800;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid var(--line-dark);
  background: var(--white);
  border-radius: 0;
  color: var(--ink);
}

.field-group textarea {
  min-height: 160px;
  resize: vertical;
}

.field-hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

/* Dialogs and footer */
dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 44px);
  padding: 0;
  overflow: auto;
  border: 0;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(26, 26, 26, 0.78);
  backdrop-filter: blur(5px);
}

.search-dialog,
.notice-dialog {
  padding: clamp(26px, 5vw, 50px);
}

.notice-dialog {
  width: min(520px, calc(100% - 32px));
}

.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.dialog-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.dialog-close {
  padding: 7px 11px;
  border: 1px solid var(--line-dark);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}

.site-search label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}

.search-field {
  display: flex;
}

.search-field input {
  min-width: 0;
  min-height: 54px;
  flex: 1;
  padding: 12px 14px;
  border: 2px solid var(--forest);
}

.search-field button {
  min-height: 54px;
  padding: 12px 22px;
  border: 2px solid var(--forest);
  background: var(--forest);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.search-results {
  margin-top: 24px;
}

.search-result {
  display: block;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.search-result strong,
.search-result small {
  display: block;
}

.search-result small {
  color: var(--ink-soft);
}

.dialog-confirm {
  margin-top: 22px;
}

.toast {
  position: fixed;
  z-index: 999;
  right: 22px;
  bottom: 22px;
  max-width: min(410px, calc(100% - 44px));
  padding: 14px 18px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  z-index: 40;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  background: var(--forest);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-footer {
  padding-top: 64px;
  background: #1a1a1a;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 0.65fr 0.8fr;
  gap: 60px;
  padding-bottom: 54px;
}

.footer-grid h2 {
  margin: 0 0 17px;
  font-size: 1rem;
}

.footer-grid p,
.footer-grid li,
.footer-grid a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

.footer-brand {
  display: flex;
  gap: 20px;
}

.brand-mark--footer {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
}

.footer-brand h2 {
  color: #fff;
  font-size: 1.3rem;
}

.footer-brand p {
  max-width: 510px;
  margin: 0;
}

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

.footer-grid li {
  margin: 7px 0;
}

.footer-grid a:hover,
.footer-policy a:hover {
  color: var(--amber);
}

.footer-note {
  color: var(--amber) !important;
}

.footer-policy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-policy nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-policy a,
.footer-policy p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
}

.footer-policy p {
  margin: 0;
  white-space: nowrap;
}

.empty-state {
  padding: 50px 20px;
  color: var(--ink-soft);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1050px) {
  :root { --header-offset: 118px; }

  .header-main { min-height: 74px; }

  .menu-toggle { display: inline-grid; }

  .primary-nav {
    position: absolute;
    z-index: 60;
    top: 74px;
    right: 0;
    bottom: auto;
    left: 0;
    height: calc(100dvh - 74px);
    overflow-y: auto;
    border: 0;
    background: var(--white);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  body.menu-open .primary-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .primary-nav__inner {
    display: block;
    padding: 20px;
  }

  .primary-nav a,
  .primary-nav a:last-child {
    min-height: 67px;
    align-items: start;
    border: 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .primary-nav a::after { display: none; }

  .primary-nav a span { font-size: 1.05rem; }

  .subnav { top: 74px; }

  .home-hero__grid,
  .dashboard-teaser,
  .page-hero__grid,
  .story-grid,
  .split-grid,
  .subscribe-panel,
  .policy-builder {
    grid-template-columns: 1fr;
  }

  .home-hero__grid { min-height: 0; }
  .hero-data-panel { max-width: 620px; }
  .action-rail__grid { grid-template-columns: repeat(2, 1fr); }
  .action-card:nth-child(2) { border-right: 0; }
  .action-card:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

  .news-grid,
  .journey-grid,
  .partner-grid,
  .resource-grid,
  .model-grid,
  .outcome-grid,
  .sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .role-flow,
  .method-steps,
  .support-service-grid,
  .pathway {
    grid-template-columns: repeat(2, 1fr);
  }

  .role-node:nth-child(2)::after { display: none; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 28px, 1180px);
    --radius: 12px;
  }

  .program-bar__inner,
  .program-bar__meta {
    gap: 8px;
  }

  .program-bar__meta span:last-child { display: none; }

  .brand-copy small,
  .icon-button span:not(.text-icon):not(.contrast-icon) { display: none; }
  .brand-mark { width: 48px; height: 48px; flex-basis: 48px; }
  .header-actions { gap: 0; }
  .icon-button { min-width: 40px; }
  .primary-nav { top: 74px; }

  .section { padding: 68px 0; }
  .section--tight { padding: 44px 0; }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }

  .home-hero::before { background-size: 46px 46px; }
  .home-hero h1 { font-size: clamp(2.8rem, 15vw, 4.6rem); }
  .hero-data-panel { margin-right: 12px; padding: 20px; box-shadow: 12px 12px 0 var(--amber); }
  .hero-metric { padding: 21px 10px; }

  .action-rail { margin-top: -22px; }
  .action-rail__grid,
  .news-grid,
  .journey-grid,
  .partner-grid,
  .contact-grid,
  .resource-grid,
  .ability-grid,
  .model-grid,
  .outcome-grid,
  .portal-action-grid,
  .sitemap-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .action-card,
  .action-card:nth-child(2) {
    min-height: 120px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .action-card:last-child { border-bottom: 0; }
  .action-card b { margin-bottom: 12px; }
  .news-card { min-height: 280px; }

  .partner-band__inner {
    grid-template-columns: 1fr;
  }

  .cta-band {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }

  .page-hero h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .page-hero__grid { gap: 28px; }
  .hero-aside { padding-left: 15px; }

  .role-flow,
  .timeline,
  .method-steps,
  .support-service-grid,
  .pathway {
    grid-template-columns: 1fr;
  }

  .role-node::after,
  .pathway-step::after,
  .timeline::before { display: none; }
  .timeline-item { padding: 0 0 0 34px; }
  .timeline-item::before { top: 5px; }

  .news-toolbar,
  .portal-main__head,
  .matrix-head,
  .footer-policy {
    align-items: start;
    flex-direction: column;
  }

  .news-row {
    grid-template-columns: 1fr auto;
    gap: 8px 15px;
  }

  .news-row time { grid-column: 1; }
  .news-row .status-pill { grid-column: 2; grid-row: 1; }
  .news-row h2 { grid-column: 1 / -1; }
  .news-row > span:last-child { display: none; }

  .subscribe-form__field,
  .search-field { display: grid; }
  .subscribe-form button,
  .search-field button { width: 100%; }

  .metric-grid,
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-panel { grid-column: 1 / -1; }
  .dashboard-shell { padding: 12px; }
  .chart-bars { min-height: 220px; padding-inline: 0; }
  .chart-column { height: 180px; }

  .ability-card { padding: 84px 24px 24px; }
  .semester-block { grid-template-columns: 1fr; }
  .semester-block__intro { padding-right: 0; }
  .session-item { grid-template-columns: 48px 1fr; }
  .session-item .status-pill { grid-column: 2; justify-self: start; }
  .pathway-step { border-right: 1px solid var(--line); border-bottom: 0; }
  .pathway-step:last-child { border-bottom: 1px solid var(--line); }

  .milestone-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .portal-shell {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }
  .portal-sidebar,
  .portal-main { min-width: 0; }
  .portal-sidebar { padding: 24px; }
  .portal-nav { grid-template-columns: repeat(2, 1fr); }
  .portal-nav button { padding-right: 10px; }
  .status-matrix {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .policy-layout { grid-template-columns: 1fr; gap: 30px; }
  .policy-toc { position: static; }
  .footer-brand { grid-column: auto; }
  .footer-policy p { white-space: normal; }
}

@media (max-width: 430px) {
  .brand-copy strong { font-size: 0.9rem; }
  .icon-button#contrast-toggle { display: none; }
  .home-hero__grid { padding-top: 58px; }
  .hero-metrics { grid-template-columns: 1fr; }
  .hero-metric:nth-child(odd) { border-right: 0; }
  .metric-grid { grid-template-columns: 1fr; }
  .portal-action-grid { grid-template-columns: 1fr; }
  .footer-brand { flex-direction: column; }
}

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

@media print {
  .program-bar,
  .site-header,
  .site-footer,
  .back-to-top,
  .action-rail,
  .subnav,
  .button,
  dialog { display: none !important; }

  body { background: #fff; color: #000; }
  main { min-height: 0; }
  .section, .section--tight, .page-hero { padding: 24px 0; }
  .card, .news-card, .partner-card { box-shadow: none; break-inside: avoid; }
}
