:root {
  --navy: #0b2f5b;
  --navy-dark: #071f3c;
  --navy-muted: #173f70;
  --red: #c92836;
  --red-dark: #a91f2c;
  --ink: #172033;
  --muted: #5f6b7a;
  --line: #dfe6ee;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --soft-blue: #eef3f8;
  --shadow: 0 18px 42px rgba(8, 35, 66, 0.12);
  --radius: 8px;
  --max-width: 1160px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -90px;
  z-index: 30;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--navy);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

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

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

.nav-shell {
  min-height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 900;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--navy);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  font-weight: 900;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  color: var(--red);
  font-size: 0.92rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
  color: var(--navy-dark);
  font-size: 0.89rem;
  font-weight: 800;
}

.nav-links a {
  padding: 8px 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.language-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lang-button {
  min-width: 72px;
  min-height: 36px;
  padding: 7px 10px;
  color: var(--navy);
  background: var(--paper);
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.lang-button.is-active {
  color: var(--paper);
  background: var(--navy);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-bars {
  position: relative;
}

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before {
  top: -7px;
}

.menu-bars::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-bars {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bars::before {
  transform: translateY(7px) rotate(90deg);
}

.menu-toggle[aria-expanded="true"] .menu-bars::after {
  opacity: 0;
}

.hero {
  background: linear-gradient(180deg, #f7f9fc, #ffffff);
}

.hero-shell {
  width: min(var(--max-width), calc(100% - 44px));
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  padding: 56px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: 44px;
}

.hero-copy-block {
  padding: 34px 0;
}

.eyebrow,
.section-kicker {
  margin-bottom: 12px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--navy-dark);
  font-size: clamp(2.7rem, 6.4vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: 0;
}

html[lang="zh-Hant"] .hero-title-zh {
  display: grid;
  gap: 6px;
  max-width: 760px;
  line-height: 1;
}

.hero-title-zh span {
  display: block;
}

.hero-title-zh .hero-title-main {
  font-size: clamp(4.2rem, 7.2vw, 6.35rem);
}

.hero-title-zh .hero-title-en {
  color: var(--red);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 900;
}

.hero-title-zh .hero-title-office {
  font-size: clamp(2.8rem, 5.2vw, 4.75rem);
  line-height: 1.08;
}

.hero-tagline {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(1.2rem, 2.4vw, 1.62rem);
  font-weight: 900;
}

.election-date {
  margin: 14px 0;
  padding-left: 14px;
  border-left: 4px solid var(--red);
  color: var(--navy-dark);
  font-weight: 900;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  max-width: 472px;
}

.hero-actions .button {
  flex: 1 1 calc(50% - 5px);
  min-width: 0;
}

.hero-photo {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--soft-blue);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: var(--red);
}

.hero-photo img {
  width: 100%;
  height: min(72vh, 680px);
  object-fit: cover;
  object-position: right center;
}

.subpage-hero {
  width: min(var(--max-width), calc(100% - 44px));
  margin: 0 auto;
  padding: 74px 0 46px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: 42px;
  align-items: center;
}

.subpage-hero h1 {
  margin-bottom: 18px;
  color: var(--navy-dark);
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1;
}

.subpage-hero p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.15rem;
}

.subpage-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  color: var(--navy);
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(8, 35, 66, 0.16);
}

.button-primary {
  color: var(--paper);
  background: var(--red);
}

.button-primary:hover,
.button-primary:focus-visible,
.button-red:hover,
.button-red:focus-visible {
  background: var(--red-dark);
}

.button-secondary,
.button-red-outline {
  color: var(--navy);
  background: var(--paper);
  border-color: var(--navy);
}

.button-red-outline {
  color: var(--red-dark);
  border-color: var(--red);
}

.button-light {
  color: var(--navy);
  background: var(--paper);
}

.button-red {
  color: var(--paper);
  background: var(--red);
}

.button-outline-light {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.78);
  background: transparent;
}

.trust-bar {
  width: min(var(--max-width), calc(100% - 44px));
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.trust-item {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(8, 35, 66, 0.05);
}

.trust-icon {
  min-width: 42px;
  width: auto;
  height: 42px;
  padding: 0 8px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--navy);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  font-size: 0.78rem;
}

.issue-section {
  padding-bottom: 56px;
}

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

.why-gary-section .section-heading,
.action-plan-section .section-heading,
.council-role-section .section-heading {
  max-width: 860px;
  margin-bottom: 30px;
}

.why-gary-grid,
.action-grid,
.council-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.why-gary-grid article,
.action-grid article,
.council-role-grid article {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
}

.why-gary-grid h3,
.action-grid h3,
.council-role-grid h3 {
  margin-bottom: 10px;
  color: var(--navy-dark);
}

.why-gary-grid p,
.action-grid p,
.council-role-grid p {
  color: var(--muted);
}

.action-grid article > span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  place-items: center;
  color: var(--paper);
  background: var(--navy);
  border-radius: 50%;
  font-weight: 900;
}

.council-role-section { background: var(--soft-gray); }

.safety-preview {
  margin-top: 48px;
  padding: 36px;
  background: #173552;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  box-shadow: 0 18px 38px rgba(2, 15, 29, 0.22);
}

.safety-preview .section-kicker {
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 11px;
  color: var(--paper);
  background: var(--red);
  border-radius: 4px;
  font-size: 0.76rem;
  line-height: 1;
}
.safety-preview h3 { margin-bottom: 12px; color: var(--paper); font-size: 1.65rem; }
.safety-preview > p:not(.section-kicker) { max-width: 820px; color: rgba(255, 255, 255, 0.86); }
.safety-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.safety-action-grid div {
  min-height: 64px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  font-weight: 800;
}
.safety-plan-action { margin-top: 24px; }

.issue-grid article {
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
}

.issue-grid h3 {
  color: var(--navy-dark);
  font-size: 1.15rem;
}

.issue-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.section {
  width: min(var(--max-width), calc(100% - 44px));
  margin: 0 auto;
  padding: 76px 0;
}

.muted-section {
  width: 100%;
  max-width: none;
  padding-left: max(22px, calc((100% - var(--max-width)) / 2));
  padding-right: max(22px, calc((100% - var(--max-width)) / 2));
  background: var(--soft);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 48px;
  align-items: center;
}

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

.section-heading h2,
.section-copy h2,
.safety-plan h2,
.why-content h2,
.contact-heading h2,
.campaign-cta h2 {
  margin-bottom: 16px;
  color: var(--navy-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.body-copy p,
.section-heading p,
.priority-card p,
.why-content p,
.campaign-cta p {
  color: var(--muted);
}

.body-copy p:last-child,
.section-heading p:last-child,
.priority-card p:last-child,
.campaign-cta p:last-child {
  margin-bottom: 0;
}

.about-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--soft-blue);
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.lifetime-section {
  max-width: 1120px;
}

.lifetime-intro {
  max-width: 820px;
  margin-bottom: 42px;
}

.lifetime-intro h2 {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--navy-dark);
  font-size: clamp(2.35rem, 5.4vw, 4.95rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

html[lang="zh-Hant"] .lifetime-intro h2 {
  font-size: clamp(2.2rem, 5vw, 4.35rem);
  line-height: 1.1;
  text-transform: none;
}

html[lang="zh-Hant"] .lifetime-intro h2 span {
  white-space: nowrap;
}

.lifetime-intro p:last-child {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 30px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 17px;
  width: 2px;
  background: #d8e2ec;
}

.timeline-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding-left: 62px;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 5px solid var(--red);
  border-radius: 50%;
  background: var(--paper);
  transform: translateY(-50%);
  box-shadow: 0 0 0 7px var(--paper);
}

.timeline-card figure {
  margin: 0;
  overflow: hidden;
  background: var(--soft-blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.timeline-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.timeline-card:nth-child(2) img {
  object-position: center 22%;
}

.timeline-card h3 {
  margin-bottom: 12px;
  color: var(--navy-dark);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.05;
}

.timeline-card p {
  color: var(--muted);
}

.timeline-year {
  margin-bottom: 10px;
  color: var(--red) !important;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline-points {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.timeline-points li {
  margin-bottom: 8px;
}

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

.priority-card,
.news-card,
.certificate-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.priority-card:hover,
.news-card:hover,
.certificate-card:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 47, 91, 0.25);
  box-shadow: 0 16px 34px rgba(8, 35, 66, 0.09);
}

.priority-card {
  padding: 24px;
}

.priority-card:nth-child(5) {
  grid-column: 1 / -1;
}

.priority-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.priority-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--navy);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  font-weight: 900;
}

.priority-label {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.priority-card h3 {
  margin-bottom: 12px;
  color: var(--navy-dark);
  font-size: 1.35rem;
  line-height: 1.22;
}

.priority-card h4 {
  margin: 18px 0 8px;
  color: var(--navy);
  font-size: 0.96rem;
}

.priority-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.priority-card li + li {
  margin-top: 6px;
}

.safety-plan,
.why-section,
.campaign-cta {
  padding: 76px max(22px, calc((100% - var(--max-width)) / 2));
  color: var(--paper);
  background: var(--navy-dark);
}

.safety-content,
.why-content,
.cta-content {
  max-width: 900px;
}

.safety-plan h2,
.safety-plan p,
.safety-plan .section-kicker,
.why-section h2,
.why-section p,
.why-section .section-kicker,
.campaign-cta h2,
.campaign-cta p {
  color: var(--paper);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.safety-grid div {
  min-height: 118px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  font-weight: 900;
}

.section-actions {
  margin-top: 28px;
}

.mid-cta {
  background: var(--navy);
}

.final-cta {
  background: linear-gradient(90deg, var(--navy-dark), var(--navy));
}

.anchor-offset {
  position: absolute;
  top: -80px;
}

.awards-section .section-heading {
  margin-bottom: 26px;
}

.certificate-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.certificate-card {
  margin: 0;
  padding: 14px;
}

.certificate-card img {
  width: 100%;
  height: 370px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.certificate-card figcaption {
  padding: 14px 4px 4px;
  color: var(--navy);
  font-weight: 900;
  text-align: center;
}

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

.news-card {
  min-height: 150px;
  padding: 24px;
  border-top: 5px solid var(--red);
}

.news-date {
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card h3 {
  color: var(--navy-dark);
  font-size: 1.18rem;
}

.donation-heading { max-width: 760px; margin-bottom: 28px; }
.donation-panel { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.5fr); border: 1px solid var(--line); background: var(--soft); }
.etransfer-box { padding: 38px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: var(--navy); color: var(--paper); }
.donation-label { margin-bottom: 10px; font-weight: 800; }
.donation-email { margin-bottom: 24px; color: var(--paper); font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 900; overflow-wrap: anywhere; }
.donation-rules { padding: 34px; }
.donation-rules h3 { color: var(--navy-dark); }
.donation-rules li { margin-bottom: 9px; }
.donation-source { margin-top: 18px; font-size: .92rem; }
.donation-steps { margin: 0 0 24px; padding-left: 22px; color: var(--muted); }
.etransfer-icon {
  width: 118px;
  height: 118px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  font-weight: 900;
}

.etransfer-icon span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--paper);
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}
.qr-note { max-width: 260px; margin-bottom: 22px; color: rgba(255,255,255,.82); font-size: .88rem; }
.copy-box {
  margin: 0 0 26px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.copy-box-label {
  margin-bottom: 10px;
  color: var(--navy);
  font-weight: 900;
}
.copy-box pre {
  margin: 0 0 14px;
  padding: 14px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  white-space: pre-wrap;
  font: 0.94rem/1.5 Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
.featured-update p { margin: 10px 0 16px; }
.featured-update a { color: var(--red); font-weight: 900; }
.news-card a { color: var(--red); font-weight: 900; }

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

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

.faq-list details {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 160ms ease;
}

.faq-list details[open],
.faq-list details:hover {
  box-shadow: var(--shadow-soft);
}

.faq-list summary {
  padding: 18px 20px;
  color: var(--navy-dark);
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.vote-section {
  background: var(--soft-blue);
}

.vote-card {
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.vote-card h2 {
  color: var(--navy-dark);
}

.vote-card p {
  max-width: 780px;
  color: var(--muted);
}

.vote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.service-grid,
.plan-grid {
  display: grid;
  gap: 18px;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-grid article,
.plan-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(8, 35, 66, 0.06);
}

.service-grid article {
  padding: 24px;
}

.service-grid h2,
.plan-card h2 {
  color: var(--navy-dark);
  font-size: 1.22rem;
}

.service-grid p,
.plan-card p {
  color: var(--muted);
}

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

.plan-card {
  position: relative;
  padding: 28px;
}

.plan-card > span {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--navy);
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  font-weight: 900;
}

.plan-card h3 {
  margin: 18px 0 6px;
  color: var(--red);
  font-size: 0.86rem;
  text-transform: uppercase;
}

html[lang="zh-Hant"] .plan-card h3 {
  text-transform: none;
}

.policy-page { max-width: 850px; }
.policy-page h2 { margin-top: 34px; color: var(--navy-dark); font-size: 1.35rem; }

/* Video library */
.home-video-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(360px, 1.15fr);
  gap: 52px;
  align-items: center;
}
.home-video-copy h2 { margin-bottom: 16px; color: var(--navy-dark); font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.02; }
.home-video-copy > p:last-of-type { max-width: 620px; color: var(--text-muted); font-size: 1.08rem; }
.home-video-preview { position: relative; display: block; overflow: hidden; color: white; background: #061426; border-radius: 6px; box-shadow: var(--shadow); }
.home-video-preview img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 180ms ease; }
.home-video-preview:hover img { transform: scale(1.015); }
.home-video-preview .play-icon,
.video-poster .play-icon { position: absolute; inset: 50% auto auto 50%; display: grid; width: 58px; height: 58px; place-items: center; color: white; background: rgba(181, 31, 43, .94); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.preview-caption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; gap: 18px; padding: 30px 20px 16px; font-weight: 900; background: linear-gradient(transparent, rgba(3, 17, 34, .9)); }
.preview-caption small { font-size: .85rem; }
.video-page-hero {
  padding: 72px 24px 54px;
  background: var(--soft-gray);
}

.video-page-hero .section-heading,
.video-library {
  width: min(1160px, 100%);
  margin-inline: auto;
}

.video-page-hero h1 {
  max-width: 850px;
  margin: 8px 0 18px;
  color: var(--navy-dark);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
}

.video-page-hero p:last-child { max-width: 720px; color: var(--text-muted); font-size: 1.12rem; }
.video-library { padding: 64px 24px 88px; }
.featured-video { max-width: 900px; margin-bottom: 64px; scroll-margin-top: 100px; }
.featured-video h2,
.video-section-title { margin: 18px 0 10px; color: var(--navy-dark); }
.featured-video p,
.video-card p { color: var(--text-muted); }
.video-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.video-meta { display: flex; justify-content: space-between; gap: 14px; margin-top: 12px; color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.accessibility-note { margin-top: 18px; font-size: .9rem; }

.campaign-video {
  display: block;
  width: 100%;
  background: #061426;
  border: 1px solid #d9dee6;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(11, 47, 91, 0.12);
}

.featured-video .campaign-video { aspect-ratio: 16 / 9; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 26px; }
.video-card { min-width: 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.video-card--wide { grid-column: auto; }
.video-card .campaign-video { aspect-ratio: 16 / 9; object-fit: contain; }
.video-card h3 { margin: 14px 0 6px; color: var(--navy-dark); font-size: 1.12rem; }
.video-poster { position: relative; width: 100%; padding: 0; overflow: hidden; cursor: pointer; background: #061426; border: 0; border-radius: 6px; box-shadow: 0 12px 30px rgba(11, 47, 91, 0.12); }
.video-poster img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 22%; }
.video-poster--landscape img { object-position: center; }
.video-poster:hover .play-icon { background: var(--red-dark); }
.video-cta { margin-top: 72px; padding: 54px; color: white; background: var(--navy-dark); border-top: 5px solid var(--red); }
.video-cta h2 { margin-bottom: 10px; color: white; font-size: clamp(2rem, 4vw, 3.2rem); }
.video-cta p { color: white; }

@media (max-width: 840px) {
  .why-gary-grid,
  .action-grid,
  .council-role-grid { grid-template-columns: 1fr; }
  .home-video-section { grid-template-columns: 1fr; gap: 30px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .video-page-hero { padding: 48px 20px 38px; }
  .video-library { padding: 44px 20px 64px; }
  .video-grid { grid-template-columns: 1fr; }
  .video-actions { flex-direction: column; }
  .video-cta { margin-inline: -20px; padding: 42px 20px; }
}
.policy-page li { margin-bottom: 8px; }

.contact-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #cbd4df;
  border-radius: var(--radius);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 47, 91, 0.14);
}

.contact-direct {
  color: var(--muted);
}

.contact-direct a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.volunteer-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.volunteer-options legend {
  padding: 0 6px;
  color: var(--navy);
  font-weight: 900;
}

.volunteer-options label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink);
  font-weight: 700;
}

.volunteer-options input {
  width: auto;
  margin-top: 5px;
}

.consent-field {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  color: var(--muted) !important;
  font-size: 0.9rem;
  font-weight: 700 !important;
  line-height: 1.45;
}

.consent-field input {
  width: auto;
  margin-top: 4px;
  flex: 0 0 auto;
}

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

.site-footer {
  padding: 42px max(22px, calc((100% - var(--max-width)) / 2)) 26px;
  color: rgba(255, 255, 255, 0.86);
  background: var(--navy-dark);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-main h2 {
  margin-bottom: 8px;
  color: var(--paper);
  font-size: 1.35rem;
}

.footer-main p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-weight: 900;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--paper);
}

.authorization {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--red);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 14px 28px rgba(8, 35, 66, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  cursor: pointer;
}

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

@media (max-width: 1100px) {
  .nav-links {
    gap: 10px;
    font-size: 0.86rem;
  }

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

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

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

  .nav-links {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height);
    max-height: calc(100vh - var(--header-height));
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 22px 24px;
    overflow: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 34px rgba(8, 35, 66, 0.12);
  }

  body.menu-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
  }

  .language-switch {
    width: 100%;
  }

  .lang-button {
    flex: 1;
  }

  .hero-shell {
    min-height: auto;
    padding-top: 28px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .subpage-hero {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .hero-photo {
    order: 1;
  }

  .hero-copy-block {
    order: 2;
    padding: 8px 0 44px;
  }

  .hero-photo img {
    height: auto;
    max-height: none;
    aspect-ratio: 16 / 9;
    object-position: right center;
  }

  .trust-bar,
  .issue-grid,
  .service-grid,
  .plan-grid,
  .priority-grid,
  .split-section,
  .contact-section,
  .donation-panel {
    grid-template-columns: 1fr;
  }

  .timeline-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .priority-card:nth-child(5) {
    grid-column: auto;
  }

  .section,
  .muted-section,
  .safety-plan,
  .vote-section,
  .why-section,
  .campaign-cta {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .news-grid,
  .certificate-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav-shell {
    padding: 0 16px;
  }

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

  .brand-text {
    font-size: 0.94rem;
  }

  .hero-shell,
  .subpage-hero,
  .section,
  .trust-bar {
    width: min(100% - 32px, var(--max-width));
  }

  .hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.55rem);
  }

  .hero-actions,
  .cta-actions,
  .vote-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .safety-preview { margin-top: 48px; padding: 24px; }
  .safety-action-grid { grid-template-columns: 1fr; }

  .trust-item {
    min-height: 78px;
  }

  .lifetime-intro {
    margin-bottom: 30px;
  }

  .timeline-list::before {
    left: 13px;
  }

  .timeline-card {
    padding-left: 42px;
  }

  .timeline-card::before {
    left: 5px;
    width: 14px;
    height: 14px;
    border-width: 5px;
  }

  .timeline-card img {
    aspect-ratio: 16 / 10;
  }

  .safety-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .volunteer-options {
    grid-template-columns: 1fr;
  }

  .certificate-card img {
    height: 300px;
  }

  .footer-main {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
