/**
 * 敦賀ゾンビーズの歴史ページ
 * page-history.php と固定ページ本文（docs/history.html）専用。
 */

.tz-history-page {
  --history-red: #d71920;
  --history-red-bright: #ff3138;
  --history-paper: #f2eee8;
  --history-muted: rgba(242, 238, 232, 0.7);
  --history-line: rgba(255, 255, 255, 0.14);
  --history-panel: #0e0e0e;
  --history-container: min(1280px, calc(100vw - 96px));
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    #060707;
  background-size: 48px 48px;
  color: var(--history-paper);
  overflow: clip;
}

.tz-history-page *,
.tz-history-page *::before,
.tz-history-page *::after {
  box-sizing: border-box;
}

.tz-history-page .tz-page-content,
.tz-history-page .tz-page-content__inner {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
}

.tz-history-body.wp-block-group,
.tz-history-body :where(.wp-block-group) {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.tz-history-body.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.tz-history-body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.tz-history-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px !important;
  padding: 0 !important;
  color: var(--history-red-bright) !important;
  font-family: var(--tz-font-mono);
  font-size: 0.66rem !important;
  font-weight: 700;
  letter-spacing: 0.23em;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

.tz-history-eyebrow::before {
  width: 32px;
  height: 1px;
  content: "";
  background: currentColor;
}

.tz-history-page .tz-history-heading.wp-block-heading {
  margin: 0 0 24px !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--history-paper) !important;
  background: none !important;
  font-family: var(--tz-font-title);
  font-size: clamp(2.6rem, 5.4vw, 4.8rem) !important;
  font-weight: 600;
  letter-spacing: 0 !important;
  line-height: 1.1;
  text-wrap: balance;
}

.tz-history-page .tz-history-heading.wp-block-heading::before {
  display: none;
}

.tz-history-section-lead {
  max-width: 760px;
  margin: 24px 0 0 !important;
  color: var(--history-muted) !important;
  font-size: clamp(0.98rem, 1.4vw, 1.1rem) !important;
  line-height: 2 !important;
}

.tz-history-button,
.tz-history-wp-button .wp-block-button__link {
  display: inline-flex !important;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 15px 22px 15px 26px !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  border-radius: 0 !important;
  background: rgba(5, 6, 6, 0.65) !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 0.88rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-decoration: none !important;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.tz-history-button::after,
.tz-history-wp-button .wp-block-button__link::after {
  display: inline-block;
  width: auto;
  height: auto;
  flex: 0 0 auto;
  margin-left: 2px;
  content: "\2192";
  color: currentColor;
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1;
  background: none;
  transition: transform 180ms ease;
}

.tz-history-button--primary,
.tz-history-wp-button--primary .wp-block-button__link {
  border-color: var(--history-red) !important;
  background: var(--history-red) !important;
  box-shadow: 0 14px 34px rgba(120, 0, 7, 0.3) !important;
}

/* Hero */
.tz-history-mv {
  position: relative;
  min-height: min(860px, calc(100svh - 24px));
  padding: clamp(120px, 13vw, 188px) 0 0;
  border-bottom: 1px solid rgba(215, 25, 32, 0.45);
  background:
    linear-gradient(90deg, rgba(63, 0, 4, 0.48), transparent 44%),
    radial-gradient(circle at 78% 34%, rgba(215, 25, 32, 0.2), transparent 30%),
    linear-gradient(130deg, #110607 0%, #060707 50%, #020303 100%);
  overflow: hidden;
}

.tz-history-mv::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, 0.035) 12% 12.08%, transparent 12.08% 88%, rgba(255, 255, 255, 0.035) 88% 88.08%, transparent 88.08%),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 255, 255, 0.017) 6px);
  pointer-events: none;
}

.tz-history-mv__texture {
  position: absolute;
  top: -12%;
  right: 7%;
  width: 36vw;
  min-width: 460px;
  height: 122%;
  opacity: 0.46;
  background:
    linear-gradient(90deg, transparent 48%, rgba(215, 25, 32, 0.25) 49% 51%, transparent 52%) 0 0 / 96px 100%,
    linear-gradient(0deg, transparent 48%, rgba(255, 255, 255, 0.055) 49% 51%, transparent 52%) 0 0 / 100% 120px;
  transform: skewX(-8deg);
  pointer-events: none;
}

.tz-history-mv__inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: var(--history-container);
  margin: 0 auto;
  align-items: center;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.68fr);
  gap: clamp(52px, 8vw, 124px);
}

.tz-history-mv__copy {
  max-width: 790px;
}

.tz-history-mv__title {
  margin: 0;
  color: var(--history-paper);
  font-family: var(--tz-font-title);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.tz-history-mv__title span {
  display: block;
  font-size: clamp(3.8rem, 6.7vw, 7rem);
  line-height: 1.08;
  text-shadow: 0 0 46px rgba(215, 25, 32, 0.17);
}

.tz-history-mv__title small {
  display: block;
  margin-top: 26px;
  color: rgba(242, 238, 232, 0.86);
  font-size: clamp(1.25rem, 2vw, 2.05rem);
  font-weight: 500;
  line-height: 1.5;
}

.tz-history-mv__lead {
  max-width: 710px;
  margin: 34px 0 0;
  color: var(--history-muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 2;
}

.tz-history-mv__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.tz-history-mv__visual,
.tz-history-entry__photo,
.tz-history-photo,
.tz-history-community__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(150deg, transparent 30%, rgba(215, 25, 32, 0.16)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 13px),
    #090909;
  box-shadow: inset 0 0 80px rgba(215, 25, 32, 0.06);
  text-align: center;
}

.tz-history-mv__visual {
  min-height: 470px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5), inset 0 0 80px rgba(215, 25, 32, 0.08);
}

.tz-history-mv__visual::before,
.tz-history-photo::before,
.tz-history-community__visual::before {
  position: absolute;
  inset: 14px;
  content: "";
  border: 1px solid rgba(215, 25, 32, 0.28);
  pointer-events: none;
}

.tz-history-mv__visual > span {
  position: absolute;
  top: 28px;
  left: 30px;
  color: rgba(242, 238, 232, 0.48);
  font-family: var(--tz-font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
}

.tz-history-mv__visual strong,
.tz-history-photo strong {
  color: var(--history-paper);
  font-family: var(--tz-font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.42em;
}

.tz-history-mv__visual small,
.tz-history-entry__photo small,
.tz-history-photo small,
.tz-history-community__visual small {
  margin-top: 11px;
  color: var(--history-red-bright);
  font-family: var(--tz-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
}

.tz-history-mv__facts {
  position: relative;
  z-index: 1;
  display: grid;
  width: var(--history-container);
  margin: clamp(64px, 8vh, 100px) auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tz-history-mv__facts > div {
  display: grid;
  min-height: 112px;
  align-content: center;
  padding: 22px clamp(20px, 3vw, 40px);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  gap: 9px;
}

.tz-history-mv__facts > div:first-child {
  padding-left: 0;
}

.tz-history-mv__facts > div:last-child {
  border-right: 0;
}

.tz-history-mv__facts dt {
  color: var(--history-red-bright);
  font-family: var(--tz-font-mono);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.tz-history-mv__facts dd {
  margin: 0;
  color: var(--history-paper);
  font-size: clamp(0.92rem, 1.3vw, 1.08rem);
  font-weight: 700;
  line-height: 1.6;
}

/* Intro */
.tz-history-intro {
  padding: clamp(110px, 13vw, 185px) max(48px, calc((100vw - 1280px) / 2)) !important;
  background:
    radial-gradient(circle at 5% 50%, rgba(215, 25, 32, 0.13), transparent 31%),
    #090909 !important;
}

.tz-history-intro__columns {
  margin: clamp(44px, 6vw, 76px) 0 0 !important;
  gap: clamp(48px, 8vw, 110px) !important;
}

.tz-history-intro__columns .wp-block-column {
  margin: 0 !important;
}

.tz-history-intro__lead {
  margin: 0 !important;
  color: var(--history-paper) !important;
  font-family: var(--tz-font-title);
  font-size: clamp(1.4rem, 2.6vw, 2.5rem) !important;
  font-weight: 600;
  line-height: 1.75 !important;
}

.tz-history-intro__columns .wp-block-column:last-child p {
  margin: 0 0 18px !important;
  color: var(--history-muted) !important;
  font-size: 0.98rem !important;
  line-height: 2.05 !important;
}

/* Shared section head */
.tz-history-section-head--wide {
  display: grid !important;
  align-items: end;
  margin-bottom: clamp(56px, 8vw, 94px) !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.68fr);
  gap: 70px;
}

.tz-history-section-head--wide .tz-history-section-lead {
  margin-bottom: 0.3em !important;
}

/* Timeline */
.tz-history-timeline {
  padding: clamp(110px, 13vw, 190px) max(48px, calc((100vw - 1280px) / 2)) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background:
    linear-gradient(110deg, rgba(70, 0, 4, 0.15), transparent 34%),
    #060707 !important;
}

.tz-history-year-block {
  position: relative;
  display: grid !important;
  padding: clamp(54px, 7vw, 88px) 0 !important;
  border-top: 1px solid var(--history-line) !important;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(56px, 8vw, 120px);
}

.tz-history-year-block::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(260px + clamp(28px, 4vw, 60px));
  width: 1px;
  content: "";
  background: linear-gradient(transparent, rgba(215, 25, 32, 0.62) 12%, rgba(255, 255, 255, 0.14) 90%, transparent);
}

.tz-history-year-head {
  position: static;
  top: auto;
  align-self: start;
}

.tz-history-year {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.11) !important;
  font-family: var(--tz-font-mono);
  font-size: clamp(4.8rem, 8vw, 8.5rem) !important;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9 !important;
}

.tz-history-year-label {
  margin: 18px 0 0 !important;
  color: var(--history-red-bright) !important;
  font-family: var(--tz-font-mono);
  font-size: 0.61rem !important;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.6 !important;
}

.tz-history-entries {
  position: relative;
  padding-left: clamp(42px, 6vw, 82px) !important;
}

.tz-history-entry {
  position: relative;
  min-height: 160px;
  padding: 0 0 clamp(40px, 5vw, 62px) !important;
}

.tz-history-entry::before {
  position: absolute;
  top: 8px;
  left: calc(-1 * clamp(42px, 6vw, 82px) - 5px);
  width: 11px;
  height: 11px;
  content: "";
  border: 2px solid #060707;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.tz-history-entry--featured {
  margin-bottom: 28px !important;
  padding: clamp(28px, 4vw, 46px) !important;
  border: 1px solid rgba(215, 25, 32, 0.42) !important;
  background:
    radial-gradient(circle at 100% 0, rgba(215, 25, 32, 0.18), transparent 40%),
    #100b0b !important;
}

.tz-history-entry--featured::before {
  top: 42px;
  left: calc(-1 * clamp(42px, 6vw, 82px) - clamp(28px, 4vw, 46px) - 6px);
  width: 13px;
  height: 13px;
  background: var(--history-red);
  box-shadow: 0 0 18px rgba(215, 25, 32, 0.75);
}

.tz-history-date {
  margin: 0 0 12px !important;
  color: var(--history-red-bright) !important;
  font-family: var(--tz-font-mono);
  font-size: 1rem !important;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.4 !important;
}

.tz-history-entry h3.wp-block-heading {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: var(--history-paper) !important;
  font-family: var(--tz-font-title);
  font-size: clamp(1.4rem, 2.5vw, 2.5rem) !important;
  font-weight: 600;
  letter-spacing: 0 !important;
  line-height: 1.45;
}

.tz-history-entry > p:last-of-type {
  max-width: 720px;
  margin: 16px 0 0 !important;
  color: var(--history-muted) !important;
  font-size: 0.92rem !important;
  line-height: 1.9 !important;
}

.tz-history-entry__photo {
  min-height: 270px;
  margin-top: 30px;
  color: var(--history-paper);
}

.tz-history-entry__photo span,
.tz-history-community__visual span {
  font-family: var(--tz-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.35em;
}

.tz-history-year-block--muted {
  opacity: 0.58;
}

.tz-history-year-block--current .tz-history-year {
  color: rgba(215, 25, 32, 0.25) !important;
}

/* Gallery */
.tz-history-gallery {
  padding: clamp(110px, 13vw, 180px) max(48px, calc((100vw - 1280px) / 2)) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background:
    radial-gradient(circle at 92% 8%, rgba(215, 25, 32, 0.12), transparent 28%),
    #090909 !important;
}

.tz-history-gallery__track {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 18px;
}

.tz-history-photo {
  min-height: 340px;
  margin: 0;
}

.tz-history-photo:first-child {
  min-height: 698px;
  grid-row: span 2;
}

.tz-history-photo > span {
  position: absolute;
  top: 28px;
  left: 30px;
  color: rgba(242, 238, 232, 0.48);
  font-family: var(--tz-font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
}

/* Records */
.tz-history-results {
  padding: clamp(105px, 12vw, 170px) max(48px, calc((100vw - 1280px) / 2)) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #060707 !important;
}

.tz-history-stats {
  display: grid !important;
  margin-top: clamp(48px, 7vw, 82px) !important;
  border-top: 1px solid var(--history-line) !important;
  border-left: 1px solid var(--history-line) !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tz-history-stat {
  display: flex;
  min-height: 250px;
  justify-content: center;
  padding: 34px 28px;
  border-right: 1px solid var(--history-line);
  border-bottom: 1px solid var(--history-line);
  flex-direction: column;
}

.tz-history-stat span {
  color: var(--history-red-bright);
  font-family: var(--tz-font-mono);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.tz-history-stat strong {
  margin-top: 26px;
  color: var(--history-paper);
  font-family: var(--tz-font-title);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 600;
}

.tz-history-stat small {
  margin-top: 12px;
  color: var(--history-muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

/* Community */
.tz-history-community {
  display: grid !important;
  padding: clamp(105px, 12vw, 170px) max(48px, calc((100vw - 1280px) / 2)) !important;
  border-top: 1px solid rgba(215, 25, 32, 0.42) !important;
  background:
    radial-gradient(circle at 12% 50%, rgba(215, 25, 32, 0.17), transparent 32%),
    linear-gradient(120deg, #180708, #070808 58%) !important;
  grid-template-columns: minmax(380px, 0.82fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(58px, 9vw, 130px);
}

.tz-history-community__visual {
  min-height: 620px;
}

.tz-history-community__visual > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.tz-history-community__visual figure {
  margin-bottom: 0;
}

.tz-history-community__copy > p:not(.tz-history-eyebrow) {
  max-width: 680px;
  margin: 30px 0 0 !important;
  color: var(--history-muted) !important;
  font-size: 0.98rem !important;
  line-height: 2.05 !important;
}

.tz-history-quote {
  margin: 42px 0 0 !important;
  padding: 26px 0 26px 30px !important;
  border: 0 !important;
  border-left: 2px solid var(--history-red) !important;
  color: var(--history-paper);
}

.tz-history-quote p {
  margin: 0 !important;
  color: var(--history-paper) !important;
  font-family: var(--tz-font-title);
  font-size: clamp(1.4rem, 2.5vw, 2.4rem) !important;
  line-height: 1.65 !important;
}

/* Current chapter */
.tz-history-current {
  padding: clamp(105px, 12vw, 165px) max(48px, calc((100vw - 1280px) / 2)) !important;
  background: #080909 !important;
}

.tz-history-current__links {
  display: grid !important;
  margin: clamp(42px, 6vw, 70px) 0 0 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px !important;
}

.tz-history-current__links .wp-block-button,
.tz-history-current__links .wp-block-button__link {
  width: 100%;
}

/* Final CTA */
.tz-history-final-cta {
  display: grid !important;
  padding: clamp(90px, 10vw, 145px) max(48px, calc((100vw - 1280px) / 2)) !important;
  border-top: 1px solid rgba(215, 25, 32, 0.5) !important;
  background:
    radial-gradient(circle at 86% 50%, rgba(215, 25, 32, 0.2), transparent 32%),
    linear-gradient(115deg, #140708, #050606 54%) !important;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 0.65fr);
  align-items: end;
  gap: 70px;
}

.tz-history-final-cta__buttons {
  display: grid !important;
  margin: 0 !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px !important;
}

.tz-history-final-cta__buttons .wp-block-button,
.tz-history-final-cta__buttons .wp-block-button__link {
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .tz-history-button:hover,
  .tz-history-wp-button .wp-block-button__link:hover {
    transform: translateY(-2px);
  }

  .tz-history-button--primary:hover,
  .tz-history-wp-button--primary .wp-block-button__link:hover {
    border-color: var(--history-red-bright) !important;
    background: var(--history-red-bright) !important;
  }

  .tz-history-button:hover::after,
  .tz-history-wp-button .wp-block-button__link:hover::after {
    transform: translateX(3px);
  }

  .tz-history-entry--featured,
  .tz-history-stat {
    transition: border-color 180ms ease, background-color 180ms ease;
  }

  .tz-history-entry--featured:hover,
  .tz-history-stat:hover {
    border-color: rgba(215, 25, 32, 0.58) !important;
    background-color: rgba(215, 25, 32, 0.045);
  }
}

@media (max-width: 1100px) {
  .tz-history-page {
    --history-container: min(100% - 48px, 1080px);
  }

  .tz-history-mv__inner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
    gap: 48px;
  }

  .tz-history-year-block {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .tz-history-year-block::before {
    left: calc(200px + clamp(28px, 4vw, 60px));
  }

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

  .tz-history-community {
    grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1fr);
  }

  .tz-history-final-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .tz-history-page {
    --history-container: calc(100% - 36px);
    background-size: 32px 32px;
  }

  .tz-history-eyebrow {
    gap: 10px;
    margin-bottom: 14px !important;
    font-size: 0.58rem !important;
    letter-spacing: 0.17em;
  }

  .tz-history-eyebrow::before {
    width: 22px;
  }

  .tz-history-page .tz-history-heading.wp-block-heading {
    font-size: clamp(2.35rem, 11vw, 3.7rem) !important;
    line-height: 1.13;
  }

  .tz-history-section-lead {
    margin-top: 20px !important;
    font-size: 0.94rem !important;
    line-height: 1.9 !important;
  }

  .tz-history-button,
  .tz-history-wp-button .wp-block-button__link {
    width: 100%;
    min-height: 56px;
    gap: 20px;
  }

  .tz-history-mv {
    min-height: auto;
    padding-top: 98px;
  }

  .tz-history-mv__texture {
    display: none;
  }

  .tz-history-mv__inner {
    display: flex;
    gap: 44px;
    flex-direction: column;
  }

  .tz-history-mv__title span {
    font-size: clamp(3.25rem, 15vw, 4.5rem);
  }

  .tz-history-mv__title small {
    margin-top: 18px;
    font-size: 1.2rem;
  }

  .tz-history-mv__lead {
    margin-top: 24px;
    font-size: 0.94rem;
    line-height: 1.9;
  }

  .tz-history-mv__actions {
    display: grid;
    margin-top: 28px;
    grid-template-columns: 1fr;
  }

  .tz-history-mv__visual {
    width: 100%;
    min-height: 58svh;
  }

  .tz-history-mv__facts {
    margin-top: 46px;
    grid-template-columns: 1fr;
  }

  .tz-history-mv__facts > div,
  .tz-history-mv__facts > div:first-child {
    min-height: auto;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .tz-history-intro,
  .tz-history-timeline,
  .tz-history-gallery,
  .tz-history-results,
  .tz-history-current {
    padding: 82px 18px !important;
  }

  .tz-history-intro__columns {
    margin-top: 34px !important;
    gap: 28px !important;
    flex-direction: column !important;
  }

  .tz-history-intro__lead {
    font-size: 1.35rem !important;
  }

  .tz-history-section-head--wide {
    display: block !important;
    margin-bottom: 42px !important;
  }

  .tz-history-section-head--wide .tz-history-section-lead {
    margin-top: 20px !important;
  }

  .tz-history-year-block {
    display: block !important;
    padding: 46px 0 !important;
  }

  .tz-history-year-block::before {
    display: none;
  }

  .tz-history-year-head {
    position: static;
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding-bottom: 22px !important;
    border-bottom: 1px solid var(--history-line) !important;
  }

  .tz-history-year {
    font-size: 3.15rem !important;
  }

  .tz-history-year-label {
    margin: 0 !important;
    font-size: 0.55rem !important;
  }

  .tz-history-entries {
    margin-top: 26px !important;
    padding-left: 24px !important;
    border-left: 1px solid rgba(215, 25, 32, 0.42) !important;
  }

  .tz-history-entry {
    min-height: auto;
    padding-bottom: 38px !important;
  }

  .tz-history-entry::before {
    top: 6px;
    left: -30px;
  }

  .tz-history-entry--featured {
    margin-left: -8px !important;
    padding: 24px 20px !important;
  }

  .tz-history-entry--featured::before {
    top: 28px;
    left: -22px;
  }

  .tz-history-entry h3.wp-block-heading {
    font-size: 1.45rem !important;
  }

  .tz-history-entry__photo {
    min-height: 250px;
  }

  .tz-history-gallery__track {
    display: flex !important;
    gap: 14px;
    margin-right: -18px !important;
    padding-right: 18px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .tz-history-photo,
  .tz-history-photo:first-child {
    width: min(82vw, 340px);
    min-height: 440px;
    flex: 0 0 min(82vw, 340px);
    grid-row: auto;
    scroll-snap-align: start;
  }

  .tz-history-stats {
    grid-template-columns: 1fr;
  }

  .tz-history-stat {
    min-height: 190px;
    padding: 28px 24px;
  }

  .tz-history-community {
    display: flex !important;
    padding: 82px 18px !important;
    gap: 46px;
    flex-direction: column;
  }

  .tz-history-community__visual {
    width: 100%;
    min-height: 440px;
  }

  .tz-history-quote {
    padding-left: 22px !important;
  }

  .tz-history-current__links {
    grid-template-columns: 1fr;
  }

  .tz-history-final-cta {
    display: flex !important;
    padding: 78px 18px 108px !important;
    gap: 42px;
    flex-direction: column;
  }

  .tz-history-final-cta__buttons {
    width: 100%;
    grid-template-columns: 1fr;
  }
}

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

/* ============================================================
   Layout repair
   WordPress inserts .wp-block-group__inner-container inside
   every group. Grid belongs on that wrapper, not the outer group.
   ============================================================ */

.tz-history-page {
  --history-section-pad: max(32px, calc((100vw - 1200px) / 2));
}

.tz-history-body,
.tz-history-body > .wp-block-group__inner-container,
.tz-history-timeline > .wp-block-group__inner-container,
.tz-history-gallery > .wp-block-group__inner-container,
.tz-history-results > .wp-block-group__inner-container,
.tz-history-current > .wp-block-group__inner-container {
  width: 100% !important;
  min-width: 0;
}

.tz-history-intro,
.tz-history-timeline,
.tz-history-gallery,
.tz-history-results,
.tz-history-community,
.tz-history-current {
  width: 100% !important;
  padding: clamp(88px, 9vw, 136px) var(--history-section-pad) !important;
}

.tz-history-final-cta {
  width: 100% !important;
  padding: clamp(80px, 8vw, 120px) var(--history-section-pad) !important;
}

.tz-history-section-head--wide,
.tz-history-year-block,
.tz-history-gallery__track,
.tz-history-stats,
.tz-history-community,
.tz-history-final-cta {
  display: block !important;
}

.tz-history-section-head--wide > .wp-block-group__inner-container {
  display: grid !important;
  width: 100% !important;
  min-width: 0;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: clamp(36px, 6vw, 80px);
}

.tz-history-year-block {
  max-width: 1200px;
  margin-inline: auto !important;
}

.tz-history-year-block::before {
  display: none;
}

.tz-history-year-block > .wp-block-group__inner-container {
  display: grid !important;
  width: 100% !important;
  min-width: 0;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(36px, 5vw, 68px);
}

.tz-history-year-head {
  position: static;
  width: auto !important;
  min-width: 0;
  align-self: start;
}

.tz-history-year {
  color: rgba(255, 255, 255, 0.16) !important;
  font-size: clamp(3rem, 5vw, 4.5rem) !important;
  line-height: 1 !important;
  writing-mode: horizontal-tb;
}

.tz-history-year-label {
  max-width: 180px;
  writing-mode: horizontal-tb;
}

.tz-history-entries {
  width: auto !important;
  min-width: 0;
  padding-left: clamp(28px, 4vw, 52px) !important;
  border-left: 1px solid rgba(215, 25, 32, 0.45) !important;
}

.tz-history-entry {
  width: 100% !important;
  min-width: 0;
  min-height: 0;
  padding-bottom: clamp(32px, 4vw, 48px) !important;
  writing-mode: horizontal-tb;
}

.tz-history-entry::before {
  top: 7px;
  left: calc(-1 * clamp(28px, 4vw, 52px) - 6px);
}

.tz-history-entry--featured {
  width: 100% !important;
  margin: 0 0 clamp(32px, 4vw, 48px) !important;
  padding: clamp(26px, 3vw, 40px) !important;
}

.tz-history-entry--featured::before {
  top: 38px;
  left: calc(-1 * clamp(28px, 4vw, 52px) - clamp(26px, 3vw, 40px) - 7px);
}

.tz-history-entry h3.wp-block-heading,
.tz-history-entry p,
.tz-history-entry__photo {
  max-width: none;
  writing-mode: horizontal-tb;
}

.tz-history-entry > .wp-block-group__inner-container > p:not(.tz-history-date) {
  max-width: 760px;
  margin: 16px 0 0 !important;
  color: var(--history-muted) !important;
  font-size: 0.94rem !important;
  line-height: 1.9 !important;
}

.tz-history-entry__photo {
  width: 100%;
  min-height: 280px;
}

.tz-history-gallery__track > .wp-block-group__inner-container {
  display: grid !important;
  width: 100% !important;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tz-history-photo,
.tz-history-photo:first-child {
  width: 100%;
  min-width: 0;
  min-height: 360px;
  grid-row: auto;
}

.tz-history-stats > .wp-block-group__inner-container {
  display: grid !important;
  width: 100% !important;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tz-history-stat {
  width: auto;
  min-width: 0;
  min-height: 220px;
}

.tz-history-community > .wp-block-group__inner-container {
  display: grid !important;
  width: 100% !important;
  min-width: 0;
  align-items: center;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  gap: clamp(44px, 7vw, 96px);
}

.tz-history-community__visual,
.tz-history-community__copy {
  width: auto !important;
  min-width: 0;
}

.tz-history-community__visual {
  min-height: 500px;
}

.tz-history-current__links {
  max-width: 1080px;
}

.tz-history-final-cta > .wp-block-group__inner-container {
  display: grid !important;
  width: 100% !important;
  min-width: 0;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.72fr);
  gap: clamp(42px, 7vw, 90px);
}

.tz-history-final-cta__buttons {
  width: 100%;
  min-width: 0;
}

@media (max-width: 900px) {
  .tz-history-page {
    --history-section-pad: 24px;
  }

  .tz-history-intro,
  .tz-history-timeline,
  .tz-history-gallery,
  .tz-history-results,
  .tz-history-community,
  .tz-history-current {
    padding-block: 76px !important;
  }

  .tz-history-section-head--wide > .wp-block-group__inner-container,
  .tz-history-year-block > .wp-block-group__inner-container,
  .tz-history-community > .wp-block-group__inner-container,
  .tz-history-final-cta > .wp-block-group__inner-container {
    grid-template-columns: minmax(0, 1fr);
  }

  .tz-history-section-head--wide > .wp-block-group__inner-container {
    gap: 22px;
  }

  .tz-history-year-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding-bottom: 20px !important;
    border-bottom: 1px solid var(--history-line) !important;
  }

  .tz-history-year {
    flex: 0 0 auto;
    font-size: clamp(2.6rem, 8vw, 3.6rem) !important;
  }

  .tz-history-year-label {
    max-width: none;
    margin: 0 !important;
  }

  .tz-history-entries {
    margin-top: 26px !important;
    padding-left: 24px !important;
  }

  .tz-history-entry::before {
    left: -30px;
  }

  .tz-history-entry--featured {
    margin-left: 0 !important;
  }

  .tz-history-entry--featured::before {
    top: 32px;
    left: -31px;
  }

  .tz-history-gallery__track > .wp-block-group__inner-container,
  .tz-history-stats > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tz-history-community__visual {
    min-height: 420px;
  }

  .tz-history-final-cta > .wp-block-group__inner-container {
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .tz-history-page {
    --history-section-pad: 18px;
  }

  .tz-history-intro,
  .tz-history-timeline,
  .tz-history-gallery,
  .tz-history-results,
  .tz-history-community,
  .tz-history-current {
    padding-block: 68px !important;
  }

  .tz-history-final-cta {
    padding-block: 68px 104px !important;
  }

  .tz-history-gallery__track > .wp-block-group__inner-container,
  .tz-history-stats > .wp-block-group__inner-container {
    grid-template-columns: minmax(0, 1fr);
  }

  .tz-history-photo,
  .tz-history-photo:first-child {
    min-height: 360px;
  }

  .tz-history-stat {
    min-height: 170px;
  }

  .tz-history-community__visual {
    min-height: 380px;
  }

  .tz-history-current__links,
  .tz-history-final-cta__buttons {
    grid-template-columns: minmax(0, 1fr);
  }
}
