/*
 * Testimony editorial surface
 * One restrained visual owner for /testimony. The page is an oral-history
 * archive, so typography, chronology and verified words lead the interface.
 */

html {
  max-width: 100%;
  overflow-x: clip;
}

body.testimony-editorial {
  --testimony-ink: #17212b;
  --testimony-copy: #35414c;
  --testimony-muted: #66717c;
  --testimony-accent: #806300;
  --testimony-accent-soft: #b89a36;
  --testimony-paper: #fbfaf7;
  --testimony-warm: #f2f0ea;
  --testimony-surface: #ffffff;
  --testimony-line: #d9d9d2;
  --testimony-line-strong: #b9b9af;
  --testimony-max: 1180px;
  --gold-50: var(--testimony-paper);
  --gold-100: var(--testimony-warm);
  --gold-200: #d5c78d;
  --gold-300: var(--testimony-accent-soft);
  --gold-400: #967614;
  --gold-500: var(--testimony-accent);
  --sepia: var(--testimony-muted);
  --parchment: var(--testimony-warm);
  --ink: var(--testimony-ink);
  background: var(--testimony-paper) !important;
  color: var(--testimony-copy);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

body.testimony-editorial :where(#bio, #testimonies, #gallery) {
  scroll-margin-top: 116px;
}

body.testimony-editorial .archive-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;
}

body.testimony-editorial .hero {
  min-height: 0 !important;
  display: block;
  background: var(--testimony-warm) !important;
  border-bottom: 1px solid var(--testimony-line) !important;
  overflow: clip;
}

body.testimony-editorial .hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 max(24px, calc((100vw - var(--testimony-max)) / 2));
  width: 1px;
  background: rgba(128, 99, 0, 0.25);
  opacity: 1;
}

body.testimony-editorial .hero::after {
  content: none;
}

body.testimony-editorial .hero-content {
  width: min(calc(100% - 48px), var(--testimony-max));
  max-width: none;
  min-height: 530px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 126px) clamp(18px, 3vw, 42px) clamp(64px, 8vw, 104px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: end;
  gap: clamp(48px, 8vw, 112px);
  text-align: left;
}

body.testimony-editorial .hero-collection {
  grid-column: 1 / -1;
  max-width: 780px;
  padding-bottom: clamp(30px, 4vw, 46px);
  border-bottom: 1px solid var(--testimony-line-strong);
}

body.testimony-editorial .hero-collection-kicker {
  margin: 0 0 14px;
  color: var(--testimony-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

body.testimony-editorial .hero-collection-title {
  margin: 0;
  color: var(--testimony-ink);
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

body.testimony-editorial .hero-collection-copy {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--testimony-muted);
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.8;
}

body.testimony-editorial .hero-identity {
  min-width: 0;
}

body.testimony-editorial .hero-badge {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(34px, 5vw, 60px) !important;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  color: var(--testimony-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

body.testimony-editorial .hero-badge span + span {
  padding-left: 14px;
  border-left: 1px solid var(--testimony-line-strong);
  color: var(--testimony-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

body.testimony-editorial .hero-title {
  max-width: 760px;
  margin: 0;
  color: var(--testimony-ink);
  font-size: clamp(44px, 5.8vw, 70px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-shadow: none;
}

body.testimony-editorial .hero-title span {
  display: inline-block;
  margin-left: 0.18em;
  color: var(--testimony-muted);
  font-size: 0.38em;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

body.testimony-editorial .hero-subtitle {
  margin: 20px 0 0;
  color: var(--testimony-copy);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.16em;
}

body.testimony-editorial .hero-years {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
  margin: clamp(38px, 5vw, 58px) 0 0;
}

body.testimony-editorial .hero-year-entry {
  display: grid;
  gap: 7px;
}

body.testimony-editorial .hero-year-label {
  color: var(--testimony-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

body.testimony-editorial .hero-year {
  color: var(--testimony-ink);
  font-size: clamp(24px, 3vw, 34px);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  opacity: 1;
}

body.testimony-editorial .hero-year-divider {
  width: clamp(42px, 7vw, 86px);
  height: 1px;
  background: var(--testimony-accent-soft);
}

body.testimony-editorial .hero-verse {
  max-width: 470px;
  margin: 0;
  padding: 0 0 0 clamp(24px, 3vw, 38px);
  border: 0;
  border-left: 3px solid var(--testimony-accent-soft);
  border-radius: 0;
  background: transparent;
}

body.testimony-editorial .hero-verse-label {
  margin: 0 0 20px;
  color: var(--testimony-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

body.testimony-editorial .hero-verse-text {
  margin: 0;
  color: var(--testimony-copy);
  font-size: clamp(16px, 1.6vw, 20px);
  font-style: normal;
  font-weight: 450;
  line-height: 1.9;
}

body.testimony-editorial .hero-verse-ref {
  display: block;
  margin-top: 22px;
  color: var(--testimony-muted);
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.06em;
}

body.testimony-editorial .nav-bar {
  top: 0;
  padding: 0 !important;
  background: #ffffff !important;
  border-bottom: 1px solid var(--testimony-line) !important;
  box-shadow: none;
  backdrop-filter: none;
}

body.testimony-editorial .nav-container {
  width: min(calc(100% - 40px), var(--testimony-max));
  max-width: none;
  min-height: 68px;
  margin: 0 auto;
  padding: 8px 0;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 20px !important;
}

body.testimony-editorial .exhibit-progress {
  grid-column: 1 / -1;
  min-height: 28px;
  display: grid;
  grid-template-columns: minmax(150px, auto) 1fr 44px;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--testimony-line);
  color: var(--testimony-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

body.testimony-editorial .exhibit-progress-track {
  height: 2px;
  background: var(--testimony-line);
  overflow: hidden;
}

body.testimony-editorial .exhibit-progress-value {
  display: block;
  width: 0;
  height: 100%;
  background: var(--testimony-accent);
  transition: width 120ms linear;
}

body.testimony-editorial .exhibit-progress-percent {
  text-align: right;
}

body.testimony-editorial .nav-back {
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--testimony-ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

body.testimony-editorial .nav-back::before {
  content: "";
  width: 24px;
  height: 1px;
  margin-right: 10px;
  background: var(--testimony-accent);
}

body.testimony-editorial [data-page-lang-toggle] :where(button, select, a) {
  min-height: 48px;
  border-color: var(--testimony-line-strong) !important;
  border-radius: 2px !important;
  background: var(--testimony-surface) !important;
  color: var(--testimony-ink) !important;
  font-weight: 600;
}

body.testimony-editorial .nav-links {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  gap: 0;
}

body.testimony-editorial .nav-link {
  min-height: 48px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--testimony-muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

body.testimony-editorial .nav-link::after {
  content: none;
}

body.testimony-editorial .nav-link:is(:hover, :focus-visible) {
  border-bottom-color: var(--testimony-accent);
  color: var(--testimony-ink);
}

body.testimony-editorial .nav-link[aria-current="location"] {
  border-bottom-color: var(--testimony-accent);
  color: var(--testimony-ink);
}

body.testimony-editorial .section-header {
  max-width: 760px;
  margin: 0 0 clamp(36px, 5vw, 58px);
  text-align: left;
}

body.testimony-editorial .section-badge {
  display: block;
  width: fit-content;
  margin: 0 0 18px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 2px solid var(--testimony-accent-soft);
  border-radius: 0;
  background: transparent;
  color: var(--testimony-accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

body.testimony-editorial .section-title {
  margin: 0;
  color: var(--testimony-ink);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

body.testimony-editorial .section-desc {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--testimony-muted);
  font-size: 16px;
  line-height: 1.8;
}

body.testimony-editorial .bio-section,
body.testimony-editorial .testimonies-section,
body.testimony-editorial .gallery-section {
  padding: clamp(72px, 9vw, 116px) 24px;
}

body.testimony-editorial .bio-section,
body.testimony-editorial .gallery-section {
  background: var(--testimony-surface);
}

body.testimony-editorial .bio-container,
body.testimony-editorial .testimonies-container,
body.testimony-editorial .gallery-container {
  width: min(100%, var(--testimony-max));
  max-width: none;
  margin-inline: auto;
}

body.testimony-editorial .bio-card {
  max-width: 900px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--testimony-line);
  border-radius: 2px;
  background: var(--testimony-paper);
  box-shadow: none;
}

body.testimony-editorial .bio-content {
  color: var(--testimony-copy);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 2.05;
}

body.testimony-editorial .bio-content p {
  margin-bottom: 1.4em;
  text-indent: 0;
}

body.testimony-editorial .bio-highlight {
  margin: clamp(32px, 5vw, 52px) 0;
  padding: clamp(24px, 4vw, 40px);
  border: 0;
  border-left: 3px solid var(--testimony-accent-soft);
  border-radius: 0;
  background: var(--testimony-warm);
}

body.testimony-editorial .bio-highlight-text {
  margin: 0 !important;
  color: var(--testimony-ink);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.95;
}

body.testimony-editorial .stats-section {
  padding: 0 24px;
  border-block: 1px solid var(--testimony-line) !important;
  background: var(--testimony-paper);
}

body.testimony-editorial .stats-grid {
  width: min(100%, var(--testimony-max));
  max-width: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  text-align: left;
}

body.testimony-editorial .stat-item {
  min-height: 132px;
  padding: 28px clamp(20px, 3vw, 42px);
  border-left: 1px solid var(--testimony-line);
}

body.testimony-editorial .stat-item:first-child {
  padding-left: 0;
  border-left: 0;
}

body.testimony-editorial .stat-number {
  margin: 0 0 14px;
  color: var(--testimony-ink);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 450;
  font-variant-numeric: tabular-nums;
}

body.testimony-editorial .stat-label {
  color: var(--testimony-muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 1;
}

body.testimony-editorial .testimonies-section {
  background: var(--testimony-warm);
}

body.testimony-editorial .category-filter {
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 22px;
}

body.testimony-editorial .archive-result-status {
  min-height: 24px;
  margin: 0 0 10px;
  color: var(--testimony-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body.testimony-editorial .filter-btn {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--testimony-line-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--testimony-copy);
  font-size: 14px;
  font-weight: 650;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

body.testimony-editorial .filter-btn:is(:hover, :focus-visible),
body.testimony-editorial .filter-btn.active {
  border-color: var(--testimony-ink);
  background: var(--testimony-ink);
  color: #ffffff;
}

body.testimony-editorial .story-reading-note {
  margin: 0 0 36px !important;
  max-width: 760px !important;
  text-align: left !important;
  color: var(--testimony-muted) !important;
  font-size: 14px !important;
}

body.testimony-editorial .testimonies-grid {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--testimony-line-strong);
}

body.testimony-editorial .testimony-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  min-height: 0;
  border: 0 !important;
  border-bottom: 1px solid var(--testimony-line) !important;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none;
  cursor: default;
  overflow: visible;
  transition: background-color 160ms ease, border-color 160ms ease;
}

body.testimony-editorial :is(.bio-card, .stat-item, .testimony-card, .gallery-category, .archive-contribution).public-reveal,
body.testimony-editorial :is(.bio-card, .stat-item, .testimony-card, .gallery-category, .archive-contribution).public-interactive-surface {
  transform: none !important;
  opacity: 1 !important;
}

body.testimony-editorial .testimony-card:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.54);
  border-color: var(--testimony-line-strong) !important;
  box-shadow: none;
}

body.testimony-editorial .testimony-card.featured {
  border-left: 3px solid var(--testimony-accent) !important;
}

body.testimony-editorial .testimony-card-header {
  min-height: 0;
  padding: 28px clamp(24px, 3vw, 38px) 30px;
  border-right: 1px solid var(--testimony-line);
  border-bottom: 0;
  background: transparent;
}

body.testimony-editorial .testimony-card.featured .testimony-card-header {
  background: var(--testimony-surface);
}

body.testimony-editorial .testimony-featured-badge {
  position: static;
  display: block;
  width: fit-content;
  margin: 10px 0 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--testimony-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

body.testimony-editorial .testimony-record {
  display: block;
  margin: 0 0 18px;
  color: var(--testimony-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

body.testimony-editorial .testimony-title,
body.testimony-editorial .testimony-card.featured .testimony-title {
  margin: 0 0 8px;
  color: var(--testimony-ink);
  font-size: 21px;
  font-weight: 750;
  line-height: 1.45;
}

body.testimony-editorial .testimony-author {
  color: var(--testimony-muted);
  font-size: 13px;
  line-height: 1.65;
}

body.testimony-editorial .testimony-card-body {
  flex: 1;
  padding: 28px clamp(24px, 4vw, 46px) 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

body.testimony-editorial .testimony-excerpt {
  margin: 0;
  color: var(--testimony-copy);
  font-size: 15px;
  line-height: 1.8;
}

body.testimony-editorial .testimony-read-more {
  min-height: 48px;
  margin-top: auto;
  padding: 14px 0 0;
  border: 0;
  border-bottom: 1px solid var(--testimony-accent);
  border-radius: 0;
  background: transparent;
  color: var(--testimony-accent);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

body.testimony-editorial .quote-section {
  padding: clamp(72px, 9vw, 112px) max(24px, calc((100vw - var(--testimony-max)) / 2));
  border-block: 1px solid var(--testimony-line);
  background: var(--testimony-paper);
  text-align: left;
}

body.testimony-editorial .quote-section::before {
  content: none;
}

body.testimony-editorial .quote-text {
  max-width: 850px;
  margin: 0 0 28px;
  padding-left: clamp(24px, 4vw, 46px);
  border-left: 3px solid var(--testimony-accent-soft);
  color: var(--testimony-ink);
  font-size: clamp(20px, 3vw, 30px);
  font-style: normal;
  font-weight: 500;
  line-height: 1.85;
}

body.testimony-editorial .quote-author {
  margin-left: clamp(27px, 4vw, 49px);
  color: var(--testimony-muted);
  font-size: 13px;
  font-weight: 650;
}

body.testimony-editorial .quote-kicker {
  margin: 0 0 24px;
  color: var(--testimony-accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

body.testimony-editorial .gallery-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 44px;
  border-top: 1px solid var(--testimony-line-strong);
}

body.testimony-editorial .gallery-category {
  min-width: 0;
  padding: 30px 0 34px;
  border: 0;
  border-bottom: 1px solid var(--testimony-line);
  border-radius: 0;
  background: transparent;
}

body.testimony-editorial .gallery-category-title {
  margin: 0 0 22px;
  color: var(--testimony-ink);
  font-size: 18px;
  line-height: 1.5;
}

body.testimony-editorial .gallery-category-icon {
  width: auto;
  height: auto;
  min-width: 28px;
  border-radius: 0;
  background: transparent;
  color: var(--testimony-accent);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  letter-spacing: 0.08em;
}

body.testimony-editorial .gallery-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}

body.testimony-editorial .gallery-item {
  aspect-ratio: auto;
  min-height: 48px;
  border: 0 !important;
  border-top: 1px solid var(--testimony-line) !important;
  border-radius: 0 !important;
  background: transparent;
  cursor: default;
  overflow: visible;
}

body.testimony-editorial .gallery-item:hover {
  transform: none;
}

body.testimony-editorial .gallery-item-placeholder {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  color: var(--testimony-muted);
}

body.testimony-editorial .gallery-item-placeholder::after {
  content: "尚未入藏";
  margin-left: auto;
  color: var(--testimony-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

body.testimony-editorial .gallery-item-placeholder span {
  display: none;
}

body.testimony-editorial .gallery-item-placeholder small {
  color: var(--testimony-muted);
  font-size: 13px;
}

body.testimony-editorial .archive-contribution {
  margin-top: 56px;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 24px;
  border: 1px solid var(--testimony-line-strong);
  background: var(--testimony-paper);
}

body.testimony-editorial .archive-contribution-title {
  margin: 0;
  color: var(--testimony-ink);
  font-size: 18px;
  font-weight: 750;
}

body.testimony-editorial .archive-contribution .story-reading-note {
  margin: 0 !important;
}

body.testimony-editorial .archive-contribution a {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--testimony-ink);
  background: var(--testimony-ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

body.testimony-editorial .footer {
  padding: 54px 24px calc(54px + env(safe-area-inset-bottom, 0px));
  background: #101820;
  text-align: left;
}

body.testimony-editorial .footer-text,
body.testimony-editorial .footer-verse {
  width: min(100%, var(--testimony-max));
  max-width: none;
  margin-inline: auto;
}

body.testimony-editorial .footer-text {
  margin-bottom: 18px;
  color: #ffffff;
  font-weight: 650;
}

body.testimony-editorial .footer-verse {
  color: #bdc5cc;
  font-style: normal;
  line-height: 1.9;
}

body.testimony-editorial .modal-overlay {
  padding: 24px;
  background: rgba(10, 15, 20, 0.86);
  backdrop-filter: none;
}

body.testimony-editorial .modal-content {
  max-width: 820px;
  border: 1px solid var(--testimony-line-strong);
  border-radius: 4px !important;
  background: var(--testimony-surface);
  box-shadow: none;
}

body.testimony-editorial .modal-close {
  top: 18px;
  right: 18px;
  width: auto;
  min-width: 64px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--testimony-line-strong);
  border-radius: 2px;
  background: var(--testimony-surface);
  color: var(--testimony-ink);
  font-size: 14px;
  font-weight: 700;
}

body.testimony-editorial .modal-close:is(:hover, :focus-visible) {
  border-color: var(--testimony-ink);
  background: var(--testimony-ink);
  color: #ffffff;
}

body.testimony-editorial .modal-header {
  padding: 38px 104px 30px 38px;
  border-bottom: 1px solid var(--testimony-line);
  background: var(--testimony-paper);
}

body.testimony-editorial .modal-record {
  margin: 0 0 12px;
  color: var(--testimony-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

body.testimony-editorial .modal-title {
  color: var(--testimony-ink);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.35;
}

body.testimony-editorial .modal-author {
  margin-top: 8px;
  color: var(--testimony-muted);
}

body.testimony-editorial .modal-body {
  padding: clamp(28px, 5vw, 48px);
}

body.testimony-editorial .modal-navigation {
  min-height: 70px;
  padding: 10px 18px;
  display: grid;
  grid-template-columns: minmax(100px, auto) 1fr minmax(100px, auto);
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--testimony-line);
  background: var(--testimony-paper);
}

body.testimony-editorial .modal-step {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--testimony-line-strong);
  border-radius: 2px;
  background: var(--testimony-surface);
  color: var(--testimony-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

body.testimony-editorial .modal-step:is(:hover, :focus-visible) {
  border-color: var(--testimony-ink);
  background: var(--testimony-ink);
  color: #ffffff;
}

body.testimony-editorial .modal-step:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

body.testimony-editorial .modal-counter {
  color: var(--testimony-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

body.testimony-editorial :is(.public-back-to-top, .public-foundation-back-to-top) {
  width: auto !important;
  min-width: 64px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 16px !important;
  border: 1px solid var(--testimony-line-strong) !important;
  border-radius: 2px !important;
  background: var(--testimony-surface) !important;
  color: var(--testimony-ink) !important;
  box-shadow: none !important;
  font-size: 0 !important;
}

body.testimony-editorial :is(.public-back-to-top, .public-foundation-back-to-top)::before {
  content: "頁首";
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

body.testimony-editorial :is(.public-back-to-top, .public-foundation-back-to-top)::after {
  content: none !important;
}

body.testimony-editorial .public-back-to-top svg {
  display: none !important;
}

body.testimony-editorial.public-has-modal :is(.public-back-to-top, .public-foundation-back-to-top) {
  display: none !important;
}

body.testimony-editorial .modal-text {
  color: var(--testimony-copy);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 2;
}

body.testimony-editorial .modal-text p {
  text-indent: 0;
}

@media (max-width: 900px) {
  body.testimony-editorial .hero-content {
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 52px;
  }

  body.testimony-editorial .hero-verse {
    max-width: 680px;
  }

  body.testimony-editorial .hero-collection {
    max-width: 680px;
  }

  body.testimony-editorial .nav-container {
    grid-template-columns: 1fr auto;
  }

  body.testimony-editorial .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.testimony-editorial .nav-links::-webkit-scrollbar {
    display: none;
  }

  body.testimony-editorial .nav-link:first-child {
    padding-left: 0;
  }

  body.testimony-editorial .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.testimony-editorial .stat-item:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  body.testimony-editorial .stat-item:nth-child(n + 3) {
    margin-top: 0;
    border-top: 1px solid var(--testimony-line);
  }

  body.testimony-editorial .testimony-card {
    grid-template-columns: minmax(200px, 0.72fr) minmax(0, 1.28fr);
  }
}

@media (max-width: 680px) {
  body.testimony-editorial .hero::before {
    left: 22px;
  }

  body.testimony-editorial .hero-content {
    width: 100%;
    padding: 42px 30px 40px;
    gap: 32px;
  }

  body.testimony-editorial .hero-collection {
    padding-bottom: 22px;
  }

  body.testimony-editorial .hero-collection-kicker {
    margin-bottom: 10px;
  }

  body.testimony-editorial .hero-collection-copy {
    margin-top: 10px;
  }

  body.testimony-editorial .hero-badge {
    flex-wrap: wrap;
    margin-bottom: 24px !important;
  }

  body.testimony-editorial .hero-title {
    font-size: clamp(40px, 11vw, 52px);
  }

  body.testimony-editorial .hero-title span {
    display: block;
    margin: 10px 0 0;
    font-size: 0.4em;
  }

  body.testimony-editorial .hero-subtitle {
    max-width: 300px;
    margin-top: 14px;
    letter-spacing: 0.1em;
  }

  body.testimony-editorial .hero-years {
    margin-top: 26px;
  }

  body.testimony-editorial .hero-verse {
    padding-left: 22px;
  }

  body.testimony-editorial .hero-verse-label {
    margin-bottom: 14px;
  }

  body.testimony-editorial .hero-verse-text {
    line-height: 1.75;
  }

  body.testimony-editorial .hero-verse-ref {
    margin-top: 14px;
  }

  body.testimony-editorial .nav-container {
    width: 100%;
    padding: 8px 20px 0;
    gap: 8px 16px !important;
  }

  body.testimony-editorial .nav-back {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.testimony-editorial .nav-back::before {
    width: 16px;
  }

  body.testimony-editorial .nav-links {
    margin-inline: 0;
    padding-inline: 0;
  }

  body.testimony-editorial .nav-link {
    padding-inline: 12px;
  }

  body.testimony-editorial .exhibit-progress {
    margin-inline: 0;
    padding-inline: 0;
    grid-template-columns: minmax(118px, auto) 1fr 38px;
    gap: 9px;
  }

  body.testimony-editorial .exhibit-progress-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.testimony-editorial .bio-section,
  body.testimony-editorial .testimonies-section,
  body.testimony-editorial .gallery-section {
    padding: 68px 20px;
  }

  body.testimony-editorial .bio-card {
    padding: 26px 22px;
  }

  body.testimony-editorial .stats-section {
    padding: 0 20px;
  }

  body.testimony-editorial .stat-item {
    min-height: 100px;
    padding: 8px 18px;
  }

  body.testimony-editorial .testimonies-grid,
  body.testimony-editorial .gallery-categories {
    grid-template-columns: 1fr;
  }

  body.testimony-editorial .testimony-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  body.testimony-editorial .testimony-card-header,
  body.testimony-editorial .testimony-card-body {
    padding-inline: 22px;
  }

  body.testimony-editorial .testimony-card-header {
    padding-bottom: 22px;
    border-right: 0;
    border-bottom: 1px solid var(--testimony-line);
  }

  body.testimony-editorial .gallery-grid {
    gap: 0 16px;
  }

  body.testimony-editorial .archive-contribution {
    padding: 26px 22px;
    grid-template-columns: 1fr;
  }

  body.testimony-editorial .archive-contribution a {
    grid-column: 1;
    grid-row: auto;
    margin-top: 12px;
  }

  body.testimony-editorial .modal-overlay {
    padding: 0;
  }

  body.testimony-editorial .modal-content {
    max-height: 94dvh !important;
    border-radius: 4px 4px 0 0 !important;
  }

  body.testimony-editorial .modal-header {
    padding: 30px 92px 26px 24px;
  }

  body.testimony-editorial .modal-body {
    padding: 26px 24px calc(30px + env(safe-area-inset-bottom, 0px));
  }

  body.testimony-editorial .modal-navigation {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  body.testimony-editorial .stats-grid {
    grid-template-columns: 1fr;
  }

  body.testimony-editorial .stat-item,
  body.testimony-editorial .stat-item:nth-child(3) {
    min-height: 0;
    margin: 0;
    padding: 22px 0;
    border-left: 0;
    border-top: 1px solid var(--testimony-line);
  }

  body.testimony-editorial .stat-item:first-child {
    border-top: 0;
  }

  body.testimony-editorial .stat-number {
    margin-bottom: 10px;
  }

  body.testimony-editorial .gallery-grid {
    grid-template-columns: 1fr;
  }

  body.testimony-editorial .category-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.testimony-editorial .modal-navigation {
    padding-inline: 10px;
  }

  body.testimony-editorial .modal-step {
    padding-inline: 10px;
  }
}

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

@media print {
  body.testimony-editorial .nav-bar,
  body.testimony-editorial .category-filter,
  body.testimony-editorial .archive-contribution,
  body.testimony-editorial .modal-overlay {
    display: none !important;
  }

  body.testimony-editorial .hero,
  body.testimony-editorial .bio-section,
  body.testimony-editorial .testimonies-section,
  body.testimony-editorial .gallery-section {
    background: #ffffff !important;
  }
}
