/*
Theme Name: Global Arena Editorial
Theme URI: https://global-arena.org/
Author: Global Arena
Description: Modern Japanese editorial variant of the Global Arena theme. Sumi-ink #11110f on washi #f4f1ea, shu vermilion #b8463a accent, Shippori Mincho display + Noto Sans JP body + Inter labels. Square corners, ruled hairlines, vertical rhythm.
Version: 2.0.27
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: global-arena-minimal
Tags: japanese, editorial, minimal, custom-logo, custom-menu, featured-images
*/

:root {
  /* Editorial Japanese palette: washi paper, sumi ink, shu vermilion. */
  --ga-washi: #f4f1ea;
  --ga-washi-2: #ebe6db;
  --ga-sumi: #11110f;
  --ga-ink: #1a1a17;
  --ga-shu: #b8463a;
  --ga-aizome: #1f2c4a;
  --ga-gold: #a8895a;

  --ga-bg: var(--ga-washi);
  --ga-surface: var(--ga-washi);
  --ga-surface-strong: var(--ga-washi-2);
  --ga-surface-dark: var(--ga-sumi);
  --ga-text: var(--ga-sumi);
  --ga-muted: #6b675e;
  --ga-line: rgba(17, 17, 15, 0.14);
  --ga-line-strong: rgba(17, 17, 15, 0.22);
  --ga-accent: var(--ga-shu);
  --ga-accent-deep: #8b3329;
  --ga-accent-soft: rgba(184, 70, 58, 0.1);
  --ga-gold-soft: var(--ga-gold);
  --ga-critical: #7a2d22;
  --ga-critical-soft: #f4ece7;
  --ga-hero-ambient-glow: rgba(168, 137, 90, 0.18);
  --ga-hero-ambient-beam: rgba(244, 241, 234, 0.28);
  --ga-hero-ambient-haze: rgba(31, 44, 74, 0.14);
  --ga-hero-sunray-core: rgba(244, 241, 234, 0.18);
  --ga-hero-sunray-edge: rgba(244, 241, 234, 0.04);
  --ga-hero-slider-track: rgba(17, 17, 15, 0.14);
  --ga-hero-slider-fill: rgba(17, 17, 15, 0.94);
  --ga-shadow: 0 1px 0 rgba(17, 17, 15, 0.04);
  --ga-max-width: 1320px;
  --ga-content-width: 760px;
  --ga-radius: 0px;

  /* Header/ticker defaults. assets/js/theme.js measures the real rendered
     heights after fonts/images settle and overwrites these variables when
     needed, which keeps the hero and mobile menu from sliding under the header. */
  --ga-top-ticker-height: 38px;
  --ga-top-ticker-offset: var(--ga-top-ticker-height);
  --ga-top-ticker-duration: 24s;
  --ga-top-ticker-gap: 96px;
  --ga-site-header-height: 92px;
  --ga-notice-bar-height: 0px;
  --ga-header-offset: 0px;
  --ga-viewport-width: 100vw;
  --ga-hero-available-height: calc(100vh - var(--ga-header-offset) - var(--ga-site-header-height) - var(--ga-notice-bar-height));

  /* Editorial type stack */
  --ga-font-mincho: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --ga-font-sans: "Noto Sans JP", "Inter", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --ga-font-latin: "Inter", system-ui, sans-serif;
  --ga-font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  position: relative;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  background: var(--ga-bg);
  color: var(--ga-text);
  font-family: var(--ga-font-sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

/* Editorial: subtle dotted texture, no grid lines, no fade-out mask. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(17, 17, 15, 0.03) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
  z-index: -1;
}

body.has-menu-open {
  overflow-x: hidden;
}

body.has-top-ticker {
  /* Added by functions.php when the top ticker is enabled. */
  --ga-header-offset: var(--ga-top-ticker-offset);
}

body.has-emergency-banner {
  /* Added by functions.php when the notice bar is enabled. */
  --ga-notice-bar-height: 54px;
}

@supports (height: 100svh) {
  :root {
    --ga-hero-available-height: calc(100svh - var(--ga-header-offset) - var(--ga-site-header-height) - var(--ga-notice-bar-height));
  }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
  color: var(--ga-accent-deep);
}

input,
select,
textarea,
button {
  font: inherit;
}

button,
.button,
input[type="submit"] {
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.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;
}

.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 1rem;
  padding: 0.75rem 1rem;
  background: var(--ga-text);
  color: #fff;
  z-index: 999;
}

.site-shell {
  min-height: 100vh;
}

.site-width {
  width: min(calc(100% - 2rem), var(--ga-max-width));
  margin: 0 auto;
}

.entry-content > * + *,
.front-intro__content > * + *,
.archive-intro > * + * {
  margin-top: 1.2rem;
}

.notice-bar {
  background: var(--ga-surface-strong);
  border-bottom: 1px solid rgba(31, 41, 36, 0.14);
  color: var(--ga-text);
}

.notice-bar--warning {
  background: #f7efe2;
}

.notice-bar--critical {
  background: var(--ga-critical);
  color: #fff8f4;
}

.notice-bar__inner {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
}

.notice-bar__message {
  margin: 0;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  align-items: center;
}

.notice-bar__label {
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.notice-bar__link {
  white-space: nowrap;
  font-weight: 700;
}

.top-ticker {
  position: sticky;
  top: 0;
  z-index: 140;
  min-height: var(--ga-top-ticker-height);
  color: #fff8f4;
  background: linear-gradient(90deg, #8e3528 0%, #b14b39 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.top-ticker--info {
  background: linear-gradient(90deg, #0f2433 0%, #1a5568 100%);
}

.top-ticker--warning {
  background: linear-gradient(90deg, #8e3528 0%, #b14b39 100%);
}

.top-ticker--critical {
  background: linear-gradient(90deg, #671d14 0%, #8d281b 100%);
}

.top-ticker__inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-height: var(--ga-top-ticker-height);
}

.top-ticker__label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-ticker__viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.top-ticker__track {
  display: flex;
  width: max-content;
  min-width: 0;
  white-space: nowrap;
  animation: ga-ticker-scroll var(--ga-top-ticker-duration, 24s) linear infinite;
}

.top-ticker__segment {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.top-ticker__group {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding-right: var(--ga-top-ticker-gap, 96px);
}

.top-ticker__item {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
}

.top-ticker__separator {
  margin-left: 1.25rem;
  opacity: 0.5;
}

.site-header {
  position: sticky;
  top: var(--ga-header-offset);
  z-index: 100;
  background: rgba(252, 251, 247, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(31, 41, 36, 0.08);
}

.site-header__inner {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.site-branding {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.custom-logo-link img {
  max-height: 56px;
  width: auto;
}

.site-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-title a {
  text-decoration: none;
}

.site-description {
  margin: 0;
  color: var(--ga-muted);
  font-size: 0.88rem;
}

.menu-toggle {
  display: none;
  position: relative;
  border: 1px solid var(--ga-line);
  background: transparent;
  color: var(--ga-text);
  width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 999px;
  font-size: 0;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible,
.menu-toggle[aria-expanded="true"] {
  background: var(--ga-text);
  border-color: var(--ga-text);
  color: #fff;
}

.menu-toggle__icon {
  position: relative;
  display: grid;
  gap: 4px;
  width: 20px;
  pointer-events: none;
}

.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.primary-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav {
  padding: 0;
  background: transparent;
  border: 0;
}

.primary-nav__list {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.primary-nav__list a {
  display: block;
  padding: 0.4rem 0;
  text-decoration: none;
}

.primary-nav__list > li > a {
  position: relative;
  text-transform: uppercase;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.primary-nav__list > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--ga-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.primary-nav__list > li > a:hover::after,
.primary-nav__list > li > a:focus-visible::after {
  transform: scaleX(1);
}

.primary-nav__list .current-menu-item > a,
.primary-nav__list .current-menu-ancestor > a,
.primary-nav__list .current_page_item > a,
.primary-nav__list .current_page_ancestor > a {
  color: var(--ga-accent-deep);
  font-weight: 700;
}

.primary-nav__list .current-menu-item > a::after,
.primary-nav__list .current-menu-ancestor > a::after,
.primary-nav__list .current_page_item > a::after,
.primary-nav__list .current_page_ancestor > a::after {
  transform: scaleX(1);
  height: 3px;
  background: var(--ga-accent-deep);
}

.primary-nav__list li {
  position: relative;
}

.primary-nav__list .sub-menu,
.primary-nav__list .children {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  min-width: 220px;
  padding: 0.8rem 0;
  background: rgba(252, 251, 247, 0.98);
  border: 1px solid rgba(31, 41, 36, 0.1);
  box-shadow: var(--ga-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 30;
}

.primary-nav__list .sub-menu a,
.primary-nav__list .children a {
  padding: 0.55rem 1rem;
}

.primary-nav__list .sub-menu li > a,
.primary-nav__list .children li > a {
  position: relative;
  white-space: nowrap;
}

.primary-nav__list .sub-menu .menu-item-has-children > a,
.primary-nav__list .sub-menu .page_item_has_children > a,
.primary-nav__list .children .menu-item-has-children > a,
.primary-nav__list .children .page_item_has_children > a {
  padding-right: 2.1rem;
}

.primary-nav__list .sub-menu .menu-item-has-children > a::after,
.primary-nav__list .sub-menu .page_item_has_children > a::after,
.primary-nav__list .children .menu-item-has-children > a::after,
.primary-nav__list .children .page_item_has_children > a::after {
  content: "";
  position: absolute;
  right: 0.95rem;
  top: 50%;
  width: 0.44rem;
  height: 0.44rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  opacity: 0.58;
  transform: translateY(-50%) rotate(45deg);
}

.primary-nav__list .sub-menu a:hover,
.primary-nav__list .sub-menu a:focus-visible,
.primary-nav__list .children a:hover,
.primary-nav__list .children a:focus-visible {
  color: var(--ga-accent-deep);
  background: var(--ga-accent-soft);
}

.primary-nav__list .sub-menu .sub-menu,
.primary-nav__list .sub-menu .children,
.primary-nav__list .children .sub-menu,
.primary-nav__list .children .children {
  top: -0.8rem;
  left: calc(100% - 0.2rem);
  transform: translateX(8px);
}

.primary-nav__list li:hover > .sub-menu,
.primary-nav__list li:focus-within > .sub-menu,
.primary-nav__list li:hover > .children,
.primary-nav__list li:focus-within > .children {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu-toggle {
  display: none;
}

.primary-nav__list .sub-menu[hidden],
.primary-nav__list .children[hidden] {
  display: none !important;
}

.site-main {
  padding-bottom: 4rem;
}

.hero {
  position: relative;
  min-height: clamp(420px, 62vw, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(94, 114, 86, 0.18) 0%, transparent 46%);
}

.hero--plain {
  background:
    linear-gradient(135deg, rgba(94, 114, 86, 0.16), rgba(94, 114, 86, 0.04)),
    var(--ga-surface-strong);
  min-height: 360px;
}

.hero--plain::before {
  background:
    radial-gradient(circle at top left, rgba(94, 114, 86, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(31, 41, 36, 0.05), rgba(31, 41, 36, 0.08));
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__atmosphere,
.hero__seasonal {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__atmosphere {
  z-index: 2;
}

.hero__seasonal {
  z-index: 3;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: var(--ga-hero-image-position-x, center) var(--ga-hero-image-position-y, center);
  background-repeat: no-repeat;
  background-size: var(--ga-hero-image-size, cover);
  transform: scale(var(--ga-hero-image-scale, 1));
  transform-origin: var(--ga-hero-image-position-x, center) var(--ga-hero-image-position-y, center);
}

.hero--slider .hero__image {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero--slider .hero__image.is-active {
  opacity: 1;
}

.hero__content {
  position: relative;
  z-index: 4;
  width: min(calc(100% - 2rem), var(--ga-max-width));
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 7rem) 0 clamp(3rem, 5vw, 5rem);
  color: #fff;
}

.hero__eyebrow,
.section-heading__eyebrow,
.entry-header__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  max-width: 12ch;
  font-size: 4.4rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero__text {
  max-width: 54rem;
  margin: 1.2rem 0 0;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.92);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ga-text);
}

.button--secondary {
  background: transparent;
  border-color: var(--ga-line);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.36);
  color: #fff;
}

.front-intro,
.front-directory,
.front-news,
.page-shell,
.single-shell,
.archive-shell,
.not-found {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.front-intro__content {
  width: min(100%, var(--ga-content-width));
  font-size: 1.05rem;
}

.section-heading {
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: end;
  padding-bottom: 1.2rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(31, 41, 36, 0.12);
}

.section-heading h2,
.archive-header h1,
.entry-header h1,
.not-found__title {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.15;
}

.section-heading p,
.archive-header p,
.entry-header__summary {
  margin: 0.6rem 0 0;
  color: var(--ga-muted);
  max-width: 44rem;
}

.section-directory {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.directory-section {
  grid-column: span 6;
  padding: 1.5rem 0 1.75rem;
  border-top: 2px solid var(--ga-text);
}

.directory-section__meta {
  margin: 0;
  color: var(--ga-muted);
  letter-spacing: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.directory-section h3 {
  margin: 0.8rem 0 0;
  font-size: 1.55rem;
}

.directory-section h3 a {
  text-decoration: none;
}

.directory-section__summary {
  margin: 0.9rem 0 0;
  color: var(--ga-muted);
}

.directory-section__children {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.directory-section__children a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(31, 41, 36, 0.12);
  text-decoration: none;
}

.directory-section__children a::after {
  content: "→";
  color: var(--ga-muted);
}


.news-filters {
  display: grid;
  grid-template-columns: 1.4fr 1.1fr 1.6fr auto;
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}

.news-filters label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ga-muted);
}

.news-filters select,
.news-filters input[type="search"] {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(31, 41, 36, 0.12);
  background: rgba(252, 251, 247, 0.94);
}

.news-filters__actions {
  display: flex;
  align-items: end;
  gap: 0.8rem;
}

.news-table-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 2px solid var(--ga-text);
}

.news-table {
  min-width: 680px;
}

.news-table th,
.news-table td {
  padding: 1rem 0.35rem;
  border-bottom: 1px solid rgba(31, 41, 36, 0.12);
  vertical-align: top;
  text-align: left;
}

.news-table th:first-child,
.news-table td:first-child {
  width: 132px;
  padding-left: 0;
}

.news-table th:nth-child(2),
.news-table td:nth-child(2) {
  width: 220px;
}

.news-table th:last-child,
.news-table td:last-child {
  padding-right: 0;
}

.news-table th {
  color: var(--ga-muted);
  font-size: 0.84rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.news-table__title a {
  text-decoration: none;
  font-weight: 700;
}

.news-table__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--ga-category-pill-border, transparent);
  border-radius: 999px;
  background: var(--ga-category-pill-bg, rgba(94, 114, 86, 0.1));
  color: var(--ga-category-pill-text, var(--ga-accent-deep));
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.news-table__empty {
  padding: 1.5rem 0;
  color: var(--ga-muted);
}

.news-cards {
  display: none;
}

.news-card {
  min-width: 0;
}

.news-card__link {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--ga-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.news-card__link:hover,
.news-card__link:focus-visible {
  background: rgba(17, 17, 15, 0.025);
  border-color: var(--ga-line-strong);
}

.news-card__meta {
  display: grid;
  gap: 0.75rem;
}

.news-card__meta time {
  color: var(--ga-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.news-card__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.news-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.news-card__more {
  color: var(--ga-accent-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.news-card--empty {
  padding: 1rem;
  border: 1px solid var(--ga-line);
  border-radius: 0;
  background: transparent;
  color: var(--ga-muted);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 36, 0.12);
  text-decoration: none;
}

.pagination .current {
  background: var(--ga-accent);
  color: #fff;
  border-color: var(--ga-accent);
}

.text-link {
  font-weight: 700;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 3rem;
}

.page-layout > * {
  min-width: 0;
}

.content-column,
.entry-article,
.archive-panel,
.not-found__panel {
  min-width: 0;
}

.breadcrumbs {
  margin-bottom: 1rem;
  color: var(--ga-muted);
  font-size: 0.92rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.45rem;
}

.entry-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(31, 41, 36, 0.12);
  margin-bottom: 1.75rem;
}

.entry-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--ga-muted);
  font-size: 0.92rem;
}

.entry-featured-image {
  margin-bottom: 1.5rem;
  border-radius: var(--ga-radius);
  overflow: hidden;
  box-shadow: var(--ga-shadow);
}

.entry-featured-image img {
  width: 100%;
  height: auto;
}

.entry-featured-image--single {
  margin-bottom: 2rem;
  background:
    linear-gradient(180deg, rgba(94, 114, 86, 0.08), rgba(94, 114, 86, 0.02)),
    rgba(252, 251, 247, 0.94);
}

.entry-featured-image--single img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.entry-featured-image__caption {
  margin: 0;
  padding: 0.85rem 1rem 0.95rem;
  color: var(--ga-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  background: rgba(252, 251, 247, 0.96);
}

/* ── Featured image presentation modes ───────────────────────────────────────
   Modifiers selected in single.php / page.php via ga_minimal_render_featured_image().
   Logo + full-bleed are intentionally exempted from the ≤700px card-strip rule —
   the panel IS the design intent. See CLAUDE.md "Known Pitfalls". */

.entry-featured-image--logo {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.entry-featured-image--logo .entry-featured-image__inner {
  display: grid;
  place-items: center;
  background: var(--ga-logo-bg, #f7f5f0);
  border: 1px solid var(--ga-line);
  padding: var(--ga-logo-pad, 64px);
  aspect-ratio: var(--ga-logo-aspect, 4 / 3);
  border-radius: var(--ga-radius);
}

.entry-featured-image--logo.entry-featured-image--no-border .entry-featured-image__inner {
  border: 0;
}

.entry-featured-image--logo img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

.entry-featured-image--banner img {
  aspect-ratio: 21 / 9;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.entry-featured-image--full-bleed {
  margin-inline: calc(50% - (var(--ga-viewport-width, 100vw) / 2));
  width: var(--ga-viewport-width, 100vw);
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

.entry-featured-image--full-bleed img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
}

.entry-content {
  width: min(100%, var(--ga-content-width));
}

.entry-content > :first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  line-height: 1.25;
}

.entry-content a {
  color: var(--ga-accent-deep);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.3rem;
}

.entry-content blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--ga-accent);
  color: var(--ga-muted);
}

.entry-content img,
.entry-content video,
.entry-content iframe {
  max-width: 100%;
}

.entry-content iframe {
  width: 100%;
  border: 0;
}

.entry-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 1rem;
  border-radius: 0;
  background: rgba(31, 41, 36, 0.05);
}

/* WordPress content tables */
:is(.entry-content, .front-intro__content, .editor-styles-wrapper) {
  --ga-table-card-radius: var(--ga-radius);
  --ga-table-cell-pad: 0.78rem 0.9rem;
  --ga-table-font-size: 0.94rem;
  --ga-table-panel-bg: rgba(244, 241, 234, 0.78);
  --ga-table-row-bg: rgba(244, 241, 234, 0.92);
  --ga-table-stripe-bg: rgba(17, 17, 15, 0.035);
  --ga-table-hover-bg: rgba(184, 70, 58, 0.07);
  --ga-table-header-bg: var(--ga-surface-dark);
  --ga-table-header-color: var(--ga-washi);
  --ga-table-foot-bg: rgba(168, 137, 90, 0.14);
  --ga-table-highlight-bg: rgba(168, 137, 90, 0.16);
  --ga-table-highlight-line: var(--ga-gold-soft);
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table,
:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .table-wrap {
  width: 100%;
  margin: 1.6rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ga-line);
  border-top: 2px solid var(--ga-text);
  border-radius: var(--ga-table-card-radius);
  background: var(--ga-table-panel-bg);
  box-shadow: var(--ga-shadow);
  scrollbar-width: thin;
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) > table {
  margin: 1.6rem 0;
  border: 1px solid var(--ga-line);
  border-top: 2px solid var(--ga-text);
  border-radius: var(--ga-table-card-radius);
  box-shadow: var(--ga-shadow);
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) table {
  width: 100%;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  color: var(--ga-text);
  font-size: var(--ga-table-font-size);
  line-height: 1.55;
  background: var(--ga-table-row-bg);
  font-variant-numeric: tabular-nums;
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table table,
:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .table-wrap table {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) table :is(th, td) {
  padding: var(--ga-table-cell-pad);
  text-align: left;
  vertical-align: top;
  border: 0;
  border-right: 1px solid var(--ga-line);
  border-bottom: 1px solid var(--ga-line);
  background: var(--ga-table-row-bg);
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) table :is(th, td):last-child {
  border-right: 0;
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) table thead th {
  background: var(--ga-table-header-bg);
  color: var(--ga-table-header-color);
  font-family: var(--ga-font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
  white-space: normal;
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) table tbody tr:nth-child(even) :is(th, td) {
  background: var(--ga-table-stripe-bg);
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) table tbody tr:hover :is(th, td) {
  background: var(--ga-table-hover-bg);
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) table tbody tr:last-child > :is(th, td),
:is(.entry-content, .front-intro__content, .editor-styles-wrapper) table tfoot tr:last-child > :is(th, td) {
  border-bottom: 0;
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) table tfoot :is(th, td) {
  color: var(--ga-accent-deep);
  font-weight: 800;
  background: var(--ga-table-foot-bg);
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table figcaption {
  margin: 0;
  padding: 0.72rem 1rem 0.82rem;
  border-top: 1px solid var(--ga-line);
  color: var(--ga-muted);
  font-size: 0.86rem;
  line-height: 1.45;
  background: rgba(235, 230, 219, 0.58);
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.is-style-stripes {
  border-bottom: 0;
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.is-style-stripes tbody tr:nth-child(odd) :is(th, td) {
  background: var(--ga-table-stripe-bg);
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.is-style-stripes tbody tr:nth-child(even) :is(th, td) {
  background: var(--ga-table-row-bg);
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.is-style-ga-pricing-table {
  --ga-table-cell-pad: 0.92rem 1rem;
  --ga-table-header-bg: var(--ga-surface-dark);
  --ga-table-row-bg: rgba(244, 241, 234, 0.96);
  --ga-table-stripe-bg: rgba(168, 137, 90, 0.11);
  --ga-table-hover-bg: rgba(184, 70, 58, 0.08);
  border-color: var(--ga-line-strong);
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.is-style-ga-pricing-table table {
  min-width: 680px;
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.is-style-ga-pricing-table tbody tr:first-child td:not(:first-child) {
  color: var(--ga-accent-deep);
  font-size: 1.08rem;
  font-weight: 800;
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.is-style-ga-pricing-table tbody td strong {
  color: var(--ga-accent-deep);
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.is-style-ga-comparison-table {
  --ga-table-cell-pad: 0.82rem 0.95rem;
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.is-style-ga-comparison-table table {
  min-width: 720px;
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.is-style-ga-comparison-table tbody > tr > :first-child {
  color: var(--ga-text);
  font-weight: 800;
  background: rgba(235, 230, 219, 0.72);
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.is-style-ga-compact-table {
  --ga-table-cell-pad: 0.55rem 0.72rem;
  --ga-table-font-size: 0.86rem;
  --ga-table-card-radius: var(--ga-radius);
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.is-style-ga-compact-table table {
  line-height: 1.45;
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.is-style-ga-scroll-table table {
  min-width: 760px;
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.has-ga-row-headers tbody > tr > :first-child {
  color: var(--ga-accent-deep);
  font-weight: 800;
  background: rgba(184, 70, 58, 0.08);
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.has-ga-price-numbers table :is(th, td):not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.has-ga-highlight-third-column table :is(th, td):nth-child(3) {
  border-right-color: rgba(168, 137, 90, 0.34);
  border-left: 1px solid rgba(168, 137, 90, 0.34);
  background: var(--ga-table-highlight-bg);
  box-shadow: inset 0 3px 0 var(--ga-table-highlight-line);
}

:is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.has-ga-highlight-third-column table thead th:nth-child(3) {
  background: var(--ga-accent-deep);
  color: #fff;
}

@media (min-width: 701px) {
  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.has-ga-sticky-first-column table :is(th, td):first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: 1px 0 0 var(--ga-line);
  }

  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.has-ga-sticky-first-column table thead th:first-child {
    z-index: 3;
  }
}

@media (max-width: 600px) {
  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) :is(.wp-block-table:not(.is-style-ga-scroll-table), .table-wrap) {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) :is(.wp-block-table:not(.is-style-ga-scroll-table), .table-wrap) table,
  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) > table {
    display: block;
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) :is(.wp-block-table:not(.is-style-ga-scroll-table), .table-wrap) table thead,
  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) > table thead {
    display: none;
  }

  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) :is(.wp-block-table:not(.is-style-ga-scroll-table), .table-wrap) table tbody,
  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) > table tbody {
    display: grid;
    gap: 0.9rem;
  }

  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) :is(.wp-block-table:not(.is-style-ga-scroll-table), .table-wrap) table tr,
  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) > table tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--ga-line);
    border-top: 2px solid var(--ga-text);
    border-radius: var(--ga-table-card-radius);
    background: var(--ga-table-row-bg);
    box-shadow: var(--ga-shadow);
  }

  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) :is(.wp-block-table:not(.is-style-ga-scroll-table), .table-wrap) table :is(th, td),
  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) > table :is(th, td) {
    display: grid;
    grid-template-columns: minmax(7.5rem, 42%) minmax(0, 1fr);
    gap: 0.7rem;
    width: 100%;
    padding: 0.72rem 0.85rem;
    border: 0;
    border-bottom: 1px solid var(--ga-line);
    background: transparent;
    text-align: left;
    word-break: break-word;
  }

  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) :is(.wp-block-table:not(.is-style-ga-scroll-table), .table-wrap) table :is(th, td):last-child,
  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) > table :is(th, td):last-child {
    border-bottom: 0;
  }

  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) :is(.wp-block-table:not(.is-style-ga-scroll-table), .table-wrap) table :is(th, td)::before,
  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) > table :is(th, td)::before {
    content: attr(data-label);
    color: var(--ga-muted);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.35;
  }

  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) :is(.wp-block-table:not(.is-style-ga-scroll-table), .table-wrap) table :is(th, td):not([data-label]),
  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) > table :is(th, td):not([data-label]) {
    display: block;
  }

  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) :is(.wp-block-table:not(.is-style-ga-scroll-table), .table-wrap) table :is(th, td):not([data-label])::before,
  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) > table :is(th, td):not([data-label])::before {
    content: none;
    display: none;
  }

  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.has-ga-price-numbers:not(.is-style-ga-scroll-table) table :is(th, td):not(:first-child) {
    text-align: left;
  }

  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.has-ga-highlight-third-column:not(.is-style-ga-scroll-table) table :is(th, td):nth-child(3) {
    border-left: 0;
    box-shadow: inset 4px 0 0 var(--ga-gold-soft);
  }

  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.is-style-ga-scroll-table table {
    display: table;
    width: max-content;
    min-width: 760px;
  }

  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.is-style-ga-scroll-table thead {
    display: table-header-group;
  }

  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.is-style-ga-scroll-table tbody {
    display: table-row-group;
  }

  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.is-style-ga-scroll-table tr {
    display: table-row;
    border: 0;
    box-shadow: none;
  }

  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.is-style-ga-scroll-table table :is(th, td) {
    display: table-cell;
    width: auto;
  }

  :is(.entry-content, .front-intro__content, .editor-styles-wrapper) .wp-block-table.is-style-ga-scroll-table table :is(th, td)::before {
    content: none;
  }
}

.section-nav {
  align-self: start;
  position: sticky;
  top: 110px;
  padding: 1.25rem 0 0;
}

.section-nav__box {
  padding-top: 1rem;
  border-top: 2px solid var(--ga-text);
}

.section-nav__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--ga-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-nav__title {
  margin: 0 0 0.9rem;
  font-size: 1rem;
}

.section-nav__title a {
  text-decoration: none;
}

.section-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.section-nav__list a {
  display: block;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(31, 41, 36, 0.12);
  text-decoration: none;
}

.section-nav__list .is-current {
  color: var(--ga-accent-deep);
  font-weight: 700;
}

.archive-panel,
.not-found__panel {
  padding: 2rem;
  background: rgba(252, 251, 247, 0.82);
  border: 1px solid rgba(31, 41, 36, 0.08);
  border-radius: 28px;
  box-shadow: var(--ga-shadow);
}

.not-found__panel p {
  max-width: 38rem;
  color: var(--ga-muted);
}

.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(31, 41, 36, 0.1);
  background: rgba(252, 251, 247, 0.84);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer__title {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-footer__contact p,
.site-footer__meta p {
  margin: 0.35rem 0;
  color: var(--ga-muted);
}

.site-footer__menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.site-footer__menu a {
  text-decoration: none;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(31, 41, 36, 0.08);
  color: var(--ga-muted);
  font-size: 0.92rem;
}

.site-footer__copyright {
  margin: 0;
}

.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(236, 243, 246, 0.3);
  color: rgba(236, 243, 246, 0.88);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.site-footer__social-link svg {
  display: block;
  width: 18px;
  height: 18px;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
  border-color: #ffffff;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  outline: none;
}

.site-footer__legal {
  margin-left: auto;
}

.site-footer__legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.site-footer__legal-list li + li {
  border-left: 1px solid rgba(236, 243, 246, 0.3);
  padding-left: 1rem;
}

.site-footer__legal-list a {
  color: rgba(236, 243, 246, 0.88);
  text-decoration: none;
}

.site-footer__legal-list a:hover,
.site-footer__legal-list a:focus-visible {
  color: #ffffff;
}

.wp-block-image,
.alignwide,
.alignfull {
  max-width: 100%;
}

@media (max-width: 980px) {
  /* .primary-nav (mobile) lives in the dedicated "Mobile hamburger panel"
     block at the bottom of the file — that block owns position, top, side
     gutters, animation, and the open-state max-height. Do not re-declare
     .primary-nav or .primary-nav.is-open here; see CLAUDE.md "Mobile menu
     three-part contract". */
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
  }

  .primary-nav__list,
  .primary-nav__list .sub-menu,
  .primary-nav__list .children {
    display: grid;
    gap: 0;
    position: static;
    min-width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .primary-nav__list {
    gap: 0.15rem;
    padding-top: 0;
  }

  .primary-nav__list li.menu-item-has-children,
  .primary-nav__list li.page_item_has_children {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.35rem;
  }

  .primary-nav__list a {
    min-height: 44px;
    padding: 0.78rem 0.85rem;
    border-bottom: 0;
    border-radius: 0;
  }

  .primary-nav__list > li > a {
    font-weight: 700;
  }

  .primary-nav__list > li > a::after {
    display: none;
  }

  .primary-nav.is-open .primary-nav__list > .current-menu-item > a,
  .primary-nav.is-open .primary-nav__list > .current-menu-ancestor > a,
  .primary-nav.is-open .primary-nav__list > .current_page_item > a,
  .primary-nav.is-open .primary-nav__list > .current_page_ancestor > a {
    border-left: 2px solid var(--ga-accent);
    padding-left: 0.7rem;
  }

  .primary-nav__list a:hover,
  .primary-nav__list a:focus-visible {
    color: var(--ga-accent-deep);
    background: transparent;
    text-decoration: underline;
  }

  .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-right: 0.45rem;
    border: 1px solid rgba(31, 41, 36, 0.14);
    border-radius: 999px;
    background: rgba(252, 251, 247, 0.94);
    color: var(--ga-text);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .submenu-toggle:hover,
  .submenu-toggle:focus-visible,
  .is-submenu-open > .submenu-toggle {
    background: var(--ga-text);
    border-color: var(--ga-text);
    color: #fff;
  }

  .submenu-toggle__icon {
    display: block;
    width: 0.54rem;
    height: 0.54rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    pointer-events: none;
    transform: translateY(-0.1rem) rotate(45deg);
    transition: transform 0.2s ease;
  }

  .is-submenu-open > .submenu-toggle .submenu-toggle__icon {
    transform: translateY(0.1rem) rotate(225deg);
  }

  .primary-nav__list .menu-item-has-children,
  .primary-nav__list .page_item_has_children {
    padding-bottom: 0.1rem;
  }

  .primary-nav__list li > .sub-menu,
  .primary-nav__list li > .children {
    grid-column: 1 / -1;
  }

  .primary-nav__list .sub-menu,
  .primary-nav__list .children {
    gap: 0.08rem;
    margin: 0.05rem 0 0.45rem 0.85rem;
    padding: 0.15rem 0 0.15rem 0.75rem;
    border-left: 1px solid rgba(31, 41, 36, 0.14);
    border-radius: 0;
  }

  .primary-nav__list .sub-menu .sub-menu,
  .primary-nav__list .sub-menu .children,
  .primary-nav__list .children .sub-menu,
  .primary-nav__list .children .children {
    top: auto;
    left: auto;
    transform: none;
    margin: 0.12rem 0 0.12rem 0.5rem;
    padding-left: 0.65rem;
  }

  .primary-nav__list .sub-menu a,
  .primary-nav__list .children a {
    position: relative;
    min-height: 40px;
    padding: 0.62rem 0.75rem;
    border-bottom: 0;
    color: var(--ga-muted);
    font-size: 0.94rem;
    font-weight: 500;
    white-space: normal;
  }

  .primary-nav__list .sub-menu a::before,
  .primary-nav__list .children a::before {
    display: none;
  }

  .primary-nav__list .sub-menu .menu-item-has-children > a,
  .primary-nav__list .sub-menu .page_item_has_children > a,
  .primary-nav__list .children .menu-item-has-children > a,
  .primary-nav__list .children .page_item_has_children > a {
    padding-right: 0;
  }

  .primary-nav__list .sub-menu .menu-item-has-children > a::after,
  .primary-nav__list .sub-menu .page_item_has_children > a::after,
  .primary-nav__list .children .menu-item-has-children > a::after,
  .primary-nav__list .children .page_item_has_children > a::after {
    display: none;
  }
}

@media (max-width: 980px) {
  .section-directory,
  .site-footer__grid,
  .page-layout {
    grid-template-columns: 1fr;
  }

  .page-layout {
    gap: 1.8rem;
  }

  .directory-section {
    grid-column: span 12;
  }

  .section-nav {
    position: static;
    padding-top: 0;
    order: -1;
  }

  .section-nav__box {
    padding: 1rem;
    border: 1px solid rgba(31, 41, 36, 0.08);
    border-radius: 18px;
    background: rgba(252, 251, 247, 0.88);
    box-shadow: var(--ga-shadow);
  }

  .news-filters {
    grid-template-columns: 1fr 1fr;
  }

  .news-filters__actions {
    grid-column: 1 / -1;
  }

  .section-nav__list {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .section-nav__list li {
    flex: 0 0 auto;
  }

  .section-nav__list a {
    min-height: 44px;
    padding: 0.7rem 0.95rem;
    border: 1px solid rgba(31, 41, 36, 0.12);
    border-radius: 999px;
    background: rgba(252, 251, 247, 0.94);
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .section-nav__list .is-current {
    background: var(--ga-accent);
    color: #fff;
    border-color: var(--ga-accent);
  }
}

@media (max-width: 640px) {
  :root {
    --ga-site-header-height: 76px;
  }

  body.has-emergency-banner {
    --ga-notice-bar-height: 82px;
  }

  .site-width {
    width: min(calc(100% - 1.2rem), var(--ga-max-width));
  }

  .site-header__inner {
    min-height: 76px;
    gap: 0.8rem;
  }

  .custom-logo-link img {
    max-height: 44px;
  }

  .site-title {
    font-size: 1rem;
    letter-spacing: 0;
  }

  .site-description {
    display: none;
  }

  .notice-bar__inner,
  .section-heading {
    flex-direction: column;
    align-items: start;
  }

  .notice-bar__inner {
    gap: 0.6rem;
  }

  .notice-bar__link {
    white-space: normal;
  }

  .hero {
    min-height: min(78dvh, 560px);
  }

  .hero__content {
    width: min(calc(100% - 1.2rem), var(--ga-max-width));
    padding: 5rem 0 2.2rem;
  }

  .hero__title {
    max-width: none;
    font-size: 2.4rem;
    line-height: 1.08;
  }

  .hero__text {
    margin-top: 0.9rem;
    font-size: 0.98rem;
  }

  .hero__content .button {
    width: 100%;
    max-width: 280px;
  }

  .page-layout {
    gap: 1.25rem;
  }

  .content-column,
  .entry-article {
    padding: 1.15rem 1rem 1.35rem;
    border: 1px solid rgba(31, 41, 36, 0.08);
    border-radius: 22px;
    background: rgba(252, 251, 247, 0.76);
    box-shadow: var(--ga-shadow);
  }

  .content-column .entry-header,
  .entry-article .entry-header {
    margin-bottom: 1.35rem;
    padding-bottom: 1.15rem;
  }

  .entry-meta {
    gap: 0.55rem;
    font-size: 0.88rem;
  }

  .news-filters {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .news-filters__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .news-filters__actions .button {
    width: 100%;
  }

  .section-heading {
    gap: 0.8rem;
    margin-bottom: 1.25rem;
  }

  .section-heading h2,
  .archive-header h1,
  .entry-header h1,
  .not-found__title {
    font-size: 2rem;
  }

  .front-intro,
  .front-directory,
  .front-news,
  .page-shell,
  .single-shell,
  .archive-shell,
  .not-found {
    padding-top: 2rem;
  }

  .directory-section {
    padding-top: 1.15rem;
    padding-bottom: 1.4rem;
  }

  .directory-section h3 {
    font-size: 1.32rem;
  }

  .directory-section__children {
    gap: 0.35rem;
  }

  .directory-section__children a {
    align-items: center;
    padding-bottom: 0.75rem;
  }

  .breadcrumbs {
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .breadcrumbs::-webkit-scrollbar {
    display: none;
  }

  .breadcrumbs ol {
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
  }

  .section-nav {
    margin-bottom: 0.15rem;
  }

  .entry-featured-image {
    border-radius: 16px;
  }

  .entry-featured-image--single {
    margin-right: -0.4rem;
    margin-left: -0.4rem;
    margin-bottom: 1.2rem;
    border-radius: 18px;
  }

  .entry-featured-image--single img {
    aspect-ratio: 5 / 4;
  }

  .entry-featured-image__caption {
    padding: 0.65rem 0.85rem 0.8rem;
    font-size: 0.82rem;
  }

  .entry-content {
    width: 100%;
    line-height: 1.85;
  }

  .entry-content p,
  .entry-content li {
    font-size: 1rem;
  }

  .entry-content h2 {
    margin-top: 1.9rem;
    font-size: 1.42rem;
  }

  .entry-content h3 {
    margin-top: 1.6rem;
    font-size: 1.22rem;
  }

  .entry-content h4 {
    margin-top: 1.35rem;
    font-size: 1.05rem;
  }

  .entry-content ul,
  .entry-content ol {
    padding-left: 1.15rem;
  }

  .entry-content blockquote {
    margin: 1.2rem 0;
    padding-left: 0.85rem;
  }

  .entry-content table {
    display: block;
    font-size: 0.94rem;
    overflow-x: auto;
  }

  .entry-content .alignleft,
  .entry-content .alignright {
    float: none;
    margin-right: 0;
    margin-left: 0;
  }

  .entry-content .wp-block-buttons {
    display: grid;
    gap: 0.75rem;
  }

  .entry-content .wp-block-button__link {
    width: 100%;
    justify-content: center;
  }

  .entry-content .wp-block-media-text {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-nav__box {
    padding: 0.9rem;
    border-radius: 18px;
  }

  .section-nav__title {
    font-size: 0.95rem;
  }

  .archive-panel,
  .not-found__panel {
    padding: 1.4rem;
    border-radius: 20px;
  }

  .site-footer {
    padding-top: 2.3rem;
  }

  .site-footer__grid {
    gap: 1rem;
  }

  .site-footer__bottom {
    padding-top: 1rem;
    margin-top: 1rem;
  }
}

/* Corporate refresh */

.site-header__nav-group,
.hero__actions,
.front-feature__actions,
.site-footer__top {
  display: flex;
  gap: 0.9rem;
}

.site-header {
  background: rgba(248, 251, 253, 0.82);
  border-bottom: 1px solid var(--ga-line);
  box-shadow: 0 18px 38px rgba(15, 36, 51, 0.05);
}

@media (min-width: 981px) {
  .site-header {
    background: transparent;
    backdrop-filter: none;
    border-bottom: 0;
    box-shadow: none;
  }
}

.site-header__inner {
  min-height: 92px;
}

.site-header__nav-group {
  align-items: center;
  margin-left: auto;
}

/*Top left company logo position*/
.site-branding {
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.site-title {
  font-size: 1.1rem;
  letter-spacing: 0;
}

.site-description {
  max-width: 38ch;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ga-muted);
}

.menu-toggle {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--ga-line);
}

.primary-nav__list {
  gap: 1.3rem;
}

.primary-nav__list > li > a {
  position: relative;
  padding: 0.6rem 0;
  font-weight: 600;
}

.primary-nav__list > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ga-accent), var(--ga-gold-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.primary-nav__list > li:hover > a::after,
.primary-nav__list > li:focus-within > a::after,
.primary-nav__list .current-menu-item > a::after,
.primary-nav__list .current-menu-ancestor > a::after,
.primary-nav__list .current_page_item > a::after,
.primary-nav__list .current_page_ancestor > a::after {
  transform: scaleX(1);
}

.primary-nav__list .sub-menu,
.primary-nav__list .children {
  padding: 0.7rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--ga-line);
  box-shadow: 0 28px 42px rgba(15, 36, 51, 0.12);
}

.hero {
  min-height: clamp(520px, 70vw, 780px);
}

.hero::before {
  background: linear-gradient(112deg, rgba(26, 108, 120, 0.25) 0%, transparent 48%);
}

.hero--plain {
  background:
    linear-gradient(135deg, rgba(15, 36, 51, 0.12), rgba(26, 108, 120, 0.05)),
    rgba(223, 232, 238, 0.78);
}

.hero--plain::before {
  background:
    radial-gradient(circle at top left, rgba(26, 108, 120, 0.15), transparent 34%),
    linear-gradient(180deg, rgba(15, 36, 51, 0.05), rgba(15, 36, 51, 0.14));
}

.hero__atmosphere-orb,
.hero__atmosphere-beam,
.hero__atmosphere-haze {
  position: absolute;
  pointer-events: none;
}

.hero__atmosphere-orb {
  top: -14%;
  right: -8%;
  width: clamp(16rem, 36vw, 30rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ga-hero-ambient-glow) 0%, rgba(255, 255, 255, 0) 72%);
  filter: blur(8px);
  opacity: 0.96;
}

.hero__atmosphere-beam {
  top: 8%;
  right: 10%;
  width: clamp(18rem, 30vw, 30rem);
  height: clamp(4rem, 8vw, 7rem);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ga-hero-ambient-beam) 0%, rgba(255, 255, 255, 0) 100%);
  filter: blur(14px);
  mix-blend-mode: screen;
  opacity: 0.82;
  transform: rotate(-18deg);
  transform-origin: right center;
}

.hero__atmosphere-haze {
  left: -8%;
  bottom: -18%;
  width: clamp(18rem, 38vw, 34rem);
  height: clamp(12rem, 30vw, 22rem);
  border-radius: 50%;
  background: radial-gradient(circle, var(--ga-hero-ambient-haze) 0%, rgba(255, 255, 255, 0) 72%);
  filter: blur(16px);
  opacity: 0.9;
}

.hero__content {
  padding-bottom: clamp(2.8rem, 5vw, 4.8rem);
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 2rem;
  align-items: end;
}

.hero__intro {
  max-width: 42rem;
}

.hero__intro,
.hero__panel,
.hero__highlight-body,
.hero__slider-progress {
  min-width: 0;
}

.hero__eyebrow,
.section-heading__eyebrow,
.entry-header__eyebrow,
.front-intro__eyebrow,
.front-feature__eyebrow,
.site-footer__eyebrow,
.hero__panel-eyebrow {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.hero__eyebrow {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero__title,
.section-heading h2,
.archive-header h1,
.entry-header h1,
.not-found__title,
.front-feature__panel h2 {
  font-weight: 700;
  letter-spacing: 0;
}

.hero__title {
  max-width: 11ch;
  line-height: 0.96;
  text-wrap: balance;
}

.hero__text {
  max-width: 38rem;
  margin-top: 1.35rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero__actions {
  flex-wrap: wrap;
  margin-top: 1.7rem;
}

.hero__slider-controls {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.35rem;
  max-width: 40rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 44px rgba(10, 18, 29, 0.16);
}

.hero__slider-button,
.hero__slider-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hero__slider-button {
  min-width: 2.75rem;
  padding: 0 0.9rem;
  border-radius: 999px;
}

.hero__slider-progress {
  flex: 1 1 13rem;
  min-width: min(16rem, 100%);
  display: grid;
  gap: 0.45rem;
}

.hero__slider-count {
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.76);
  font-variant-numeric: tabular-nums;
}

.hero__slider-count-separator {
  opacity: 0.48;
}

.hero__slider-track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--ga-hero-slider-track);
}

.hero__slider-track-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), var(--ga-hero-slider-fill));
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.26);
  transform: scaleX(0);
  transform-origin: left center;
}

.hero__slider-pagination {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin-left: auto;
}

.hero__slider-dot {
  width: 0.9rem;
  min-height: 0.9rem;
  padding: 0;
  border-radius: 999px;
}

.hero__slider-dot.is-active {
  width: 1.5rem;
  background: var(--ga-hero-slider-fill);
  border-color: var(--ga-hero-slider-fill);
}

.hero__slider-button:hover,
.hero__slider-button:focus-visible,
.hero__slider-dot:hover,
.hero__slider-dot:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.hero__slider-dot.is-active:hover,
.hero__slider-dot.is-active:focus-visible {
  background: var(--ga-hero-slider-fill);
  border-color: var(--ga-hero-slider-fill);
}

.button {
  min-height: 50px;
  padding: 0.8rem 1.3rem;
  font-weight: 700;
  letter-spacing: 0;
}

.button--primary {
  background: var(--ga-accent);
  color: #fff;
  box-shadow: 0 18px 28px rgba(26, 108, 120, 0.22);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--ga-line);
  color: var(--ga-text);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}

.hero .button--primary {
  background: #fff;
  color: var(--ga-surface-dark);
  box-shadow: 0 16px 28px rgba(10, 18, 29, 0.16);
}

.hero__panel {
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--ga-radius);
  background: rgba(15, 36, 51, 0.68);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 52px rgba(10, 18, 29, 0.18);
}

.hero__panel-eyebrow {
  margin-bottom: 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
}

.hero__panel-title {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1.18;
}

.hero__highlights {
  display: grid;
  gap: 0.8rem;
}

.hero__highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero__highlight:hover,
.hero__highlight:focus-visible {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.hero__highlight-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
}

.hero__highlight-body {
  display: grid;
  gap: 0.25rem;
}

.hero__highlight-title {
  font-size: 1rem;
  line-height: 1.3;
}

.hero__highlight-meta {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.87rem;
}

.hero__seasonal {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero__seasonal.is-ready {
  opacity: 1;
}

.hero__seasonal-particle,
.hero__seasonal-ray {
  position: absolute;
  pointer-events: none;
}

.hero__seasonal-particle {
  top: -18%;
  left: var(--ga-seasonal-left, 50%);
  width: var(--ga-seasonal-size, 18px);
  height: var(--ga-seasonal-size, 18px);
  opacity: 0;
  animation: ga-seasonal-fall var(--ga-seasonal-duration, 14s) linear infinite;
  animation-delay: var(--ga-seasonal-delay, 0s);
}

.hero__seasonal-particle::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  animation: ga-seasonal-sway var(--ga-seasonal-sway-duration, 5s) ease-in-out infinite alternate;
  transform-origin: center;
}

.hero__seasonal-particle--sakura::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><defs><radialGradient id='p' cx='0.5' cy='0.5' r='0.5'><stop offset='0' stop-color='%23ffffff'/><stop offset='0.35' stop-color='%23ffe2ed'/><stop offset='0.78' stop-color='%23f5b3c9'/><stop offset='1' stop-color='%23e07ba2'/></radialGradient></defs><g fill='url(%23p)' stroke='%23c66084' stroke-width='0.5' stroke-linejoin='round'><path d='M32 32C28 30 24 26 22 18C22 14 26 11 28 12Q30 13 32 14Q34 13 36 12C38 11 42 14 42 18C40 26 36 30 32 32Z'/><path d='M32 32C28 30 24 26 22 18C22 14 26 11 28 12Q30 13 32 14Q34 13 36 12C38 11 42 14 42 18C40 26 36 30 32 32Z' transform='rotate(72 32 32)'/><path d='M32 32C28 30 24 26 22 18C22 14 26 11 28 12Q30 13 32 14Q34 13 36 12C38 11 42 14 42 18C40 26 36 30 32 32Z' transform='rotate(144 32 32)'/><path d='M32 32C28 30 24 26 22 18C22 14 26 11 28 12Q30 13 32 14Q34 13 36 12C38 11 42 14 42 18C40 26 36 30 32 32Z' transform='rotate(216 32 32)'/><path d='M32 32C28 30 24 26 22 18C22 14 26 11 28 12Q30 13 32 14Q34 13 36 12C38 11 42 14 42 18C40 26 36 30 32 32Z' transform='rotate(288 32 32)'/></g><circle cx='32' cy='32' r='2.4' fill='%23ffd24a'/><circle cx='32' cy='29' r='0.6' fill='%23d99520'/><circle cx='34.6' cy='30.9' r='0.6' fill='%23d99520'/><circle cx='33.6' cy='34' r='0.6' fill='%23d99520'/><circle cx='30.4' cy='34' r='0.6' fill='%23d99520'/><circle cx='29.4' cy='30.9' r='0.6' fill='%23d99520'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: hue-rotate(var(--ga-sakura-hue, 0deg)) saturate(var(--ga-sakura-saturation, 1)) drop-shadow(0 1px 1px rgba(140, 60, 90, 0.18));
}

.hero__seasonal-particle--snow::before {
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.76) 58%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.26);
}

.hero__seasonal-particle--leaves {
  width: calc(var(--ga-seasonal-size, 18px) * 0.82);
  height: var(--ga-seasonal-size, 18px);
}

.hero__seasonal-particle--leaves::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 80'><defs><linearGradient id='g' x1='0.18' y1='0.08' x2='0.82' y2='0.94'><stop offset='0' stop-color='%23f6d56a'/><stop offset='0.45' stop-color='%23e09531'/><stop offset='1' stop-color='%23a3441a'/></linearGradient></defs><path d='M32 4 L32 13' stroke='%235a3a1a' stroke-width='1.8' stroke-linecap='round' fill='none'/><path d='M32 11 C 12 22 12 54 32 73 C 52 54 52 22 32 11 Z' fill='url(%23g)' stroke='%237a3a10' stroke-width='0.7' stroke-linejoin='round'/><path d='M32 13 L32 71' stroke='rgba(60,28,8,0.5)' stroke-width='1' fill='none' stroke-linecap='round'/><path d='M32 24 Q 24 27 18 33' stroke='rgba(60,28,8,0.35)' stroke-width='0.7' fill='none' stroke-linecap='round'/><path d='M32 24 Q 40 27 46 33' stroke='rgba(60,28,8,0.35)' stroke-width='0.7' fill='none' stroke-linecap='round'/><path d='M32 38 Q 22 42 16 52' stroke='rgba(60,28,8,0.32)' stroke-width='0.7' fill='none' stroke-linecap='round'/><path d='M32 38 Q 42 42 48 52' stroke='rgba(60,28,8,0.32)' stroke-width='0.7' fill='none' stroke-linecap='round'/><path d='M32 52 Q 25 56 22 63' stroke='rgba(60,28,8,0.28)' stroke-width='0.6' fill='none' stroke-linecap='round'/><path d='M32 52 Q 39 56 42 63' stroke='rgba(60,28,8,0.28)' stroke-width='0.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: hue-rotate(var(--ga-leaf-hue, 0deg)) saturate(var(--ga-leaf-saturation, 1)) drop-shadow(0 1px 1px rgba(60, 28, 8, 0.22));
}

.hero__seasonal-particle--rain {
  width: var(--ga-seasonal-width, 2px);
  height: var(--ga-seasonal-height, 56px);
  animation-name: ga-rain-fall;
  animation-duration: var(--ga-seasonal-duration, 4.2s);
}

.hero__seasonal-particle--rain::before {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(238, 247, 255, 0.64) 36%, rgba(204, 228, 255, 0.94) 100%);
  box-shadow: 0 0 10px rgba(210, 233, 255, 0.16);
  animation-name: ga-rain-sway;
}

.hero__seasonal--sunrays::before {
  content: "";
  position: absolute;
  top: -14%;
  right: -8%;
  width: clamp(14rem, 30vw, 24rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ga-hero-sunray-core) 0%, rgba(255, 255, 255, 0.14) 24%, rgba(255, 255, 255, 0) 72%);
  filter: blur(10px);
  opacity: calc(0.45 + (var(--ga-seasonal-strength, 0.55) * 0.4));
}

.hero__seasonal-ray {
  top: -8%;
  right: -10%;
  width: var(--ga-sunray-length, 20rem);
  height: var(--ga-sunray-thickness, 1.2rem);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ga-hero-sunray-core) 0%, var(--ga-hero-sunray-edge) 76%, rgba(255, 255, 255, 0) 100%);
  filter: blur(var(--ga-sunray-blur, 2px));
  mix-blend-mode: screen;
  opacity: var(--ga-sunray-opacity, 0.52);
  transform: rotate(var(--ga-sunray-rotation, -24deg)) translateY(var(--ga-sunray-offset, 0));
  transform-origin: right center;
}

.front-intro {
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.front-news__panel,
.content-column,
.entry-article,
.archive-panel,
.not-found__panel {
  padding: 1.8rem;
  border: 1px solid var(--ga-line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--ga-shadow);
  backdrop-filter: blur(14px);
}

.front-intro__shell {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.front-intro__eyebrow,
.section-heading__eyebrow,
.entry-header__eyebrow {
  color: var(--ga-accent-deep);
  background: var(--ga-accent-soft);
}

.front-intro__content {
  width: min(100%, 58rem);
  font-size: 1.03rem;
}

.section-heading {
  align-items: end;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--ga-line);
}

.section-heading h2,
.archive-header h1,
.entry-header h1,
.not-found__title,
.front-feature__panel h2 {
  line-height: 1.02;
}

.section-heading p,
.archive-header p,
.entry-header__summary {
  color: var(--ga-muted);
}

.section-directory {
  gap: 1.4rem;
}

.directory-section {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
  padding: 1.65rem;
  border: 1px solid var(--ga-line);
  border-top: 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(239, 245, 248, 0.88));
  box-shadow: 0 22px 48px rgba(15, 36, 51, 0.08);
  overflow: hidden;
}

.directory-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--ga-accent), var(--ga-gold-soft));
}

.directory-section__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--ga-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
}

.directory-section h3 {
  margin: 1rem 0 0;
  font-size: 1.6rem;
  letter-spacing: 0;
  line-height: 1.1;
}

.directory-section__summary {
  margin: 1rem 0 0;
  color: var(--ga-muted);
}

.directory-section__children {
  margin-top: 1.15rem;
  gap: 0.55rem;
}

.directory-section__children a {
  min-height: 46px;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--ga-line);
}

.directory-section__children a::after,
.front-feature__link-arrow {
  transition: transform 0.2s ease;
}

.directory-section__children a:hover::after,
.directory-section__children a:focus-visible::after,
.front-feature__link:hover .front-feature__link-arrow,
.front-feature__link:focus-visible .front-feature__link-arrow {
  transform: translateX(3px);
}

.directory-section__footer {
  margin: 1.3rem 0 0;
}

.directory-section__link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: var(--ga-accent-soft);
  color: var(--ga-accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.news-highlights {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.6rem;
}

.news-highlight {
  grid-column: span 4;
}

.news-highlight__link {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
  padding: 1.4rem;
  border: 1px solid var(--ga-line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 244, 248, 0.9));
  box-shadow: 0 18px 36px rgba(15, 36, 51, 0.08);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-highlight__link:hover,
.news-highlight__link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 42px rgba(15, 36, 51, 0.11);
}

.news-highlight__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--ga-muted);
  font-size: 0.83rem;
  line-height: 1.3;
}

.news-highlight__categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.news-highlight__category {
  min-height: 30px;
}

.news-highlight h3 {
  margin: 1rem 0 0;
  font-size: 1.35rem;
  letter-spacing: 0;
  line-height: 1.2;
}

.news-highlight p {
  margin: 0.85rem 0 0;
  color: var(--ga-muted);
}

.news-highlight__more {
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--ga-accent-deep);
  font-weight: 700;
}

.front-news__panel {
  background: rgba(255, 255, 255, 0.88);
}

.news-filters {
  gap: 1rem;
}

.news-filters select,
.news-filters input[type="search"] {
  border-color: var(--ga-line);
  background: #fff;
}

.news-table-wrap {
  border-top: 1px solid var(--ga-line-strong);
}

.news-table th,
.news-table td {
  padding-top: 1.05rem;
  padding-bottom: 1.05rem;
}

.news-table tbody tr:hover td {
  background: rgba(26, 108, 120, 0.035);
}

.category-pill,
.pagination .current {
  background: var(--ga-category-pill-bg, var(--ga-accent-soft));
  color: var(--ga-category-pill-text, var(--ga-accent-deep));
}

.category-pill {
  border-color: var(--ga-category-pill-border, transparent);
}

.entry-meta .category-pill {
  font-size: 0.82rem;
}

.pagination .current {
  border-color: transparent;
}

.front-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 1.4rem;
  padding-top: clamp(2.8rem, 5vw, 4rem);
}

.front-feature__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.8rem, 4vw, 2.4rem);
  border-radius: 32px;
  background: linear-gradient(135deg, #0f2433 0%, #163549 62%, #255c68 100%);
  color: #fff;
  box-shadow: 0 26px 56px rgba(15, 36, 51, 0.2);
}

.front-feature__panel::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -38%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
  pointer-events: none;
}

.front-feature__eyebrow,
.site-footer__eyebrow {
  display: inline-flex;
  margin-bottom: 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.front-feature__panel h2 {
  margin: 0;
  font-size: 2.5rem;
}

.front-feature__summary {
  position: relative;
  z-index: 1;
  margin: 1rem 0 0;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.78);
}

.front-feature__actions {
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.front-feature .button--primary,
.button--footer {
  background: #fff;
  color: var(--ga-surface-dark);
  box-shadow: none;
}

.front-feature .button--secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.front-feature__links {
  display: grid;
  gap: 0.9rem;
  align-content: stretch;
}

.front-feature__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--ga-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 32px rgba(15, 36, 51, 0.08);
  text-decoration: none;
}

.front-feature__link-label {
  font-weight: 700;
}

.page-layout {
  gap: 2.2rem;
  align-items: start;
}

.content-column,
.entry-article,
.archive-panel,
.not-found__panel {
  min-width: 0;
}

.entry-article {
  width: min(100%, 58rem);
  margin: 0 auto;
}

.breadcrumbs li:not(:last-child)::after {
  content: none;
}

.breadcrumbs ol {
  gap: 0.45rem;
}

.breadcrumbs a,
.breadcrumbs span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--ga-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.entry-header {
  margin-bottom: 1.9rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--ga-line);
}

.entry-featured-image {
  border-radius: 24px;
}

.section-nav__box {
  padding: 1.35rem;
  border: 1px solid var(--ga-line);
  border-top: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--ga-shadow);
}

.section-nav__box::before {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  margin: -1.35rem 0 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ga-accent), var(--ga-gold-soft));
}

.site-footer {
  margin-top: 4.5rem;
  padding: 2.4rem 0 2rem;
  border-top: 0;
  background: linear-gradient(180deg, #0f2433 0%, #132c3d 100%);
  color: #ecf3f6;
}

.site-footer__top {
  align-items: end;
  justify-content: space-between;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__lead {
  margin: 0;
  max-width: 42rem;
  font-size: 1.35rem;
  line-height: 1.4;
}

.site-footer__grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.site-footer__title {
  color: #fff;
}

.site-footer__meta p:empty,
.site-footer__lead:empty {
  display: none;
}

.site-footer__contact p,
.site-footer__meta p,
.site-footer__bottom {
  color: rgba(236, 243, 246, 0.76);
}

.site-footer__menu a {
  color: rgba(236, 243, 246, 0.88);
}

.site-footer__menu a:hover,
.site-footer__menu a:focus-visible {
  color: #fff;
}

.site-footer__bottom {
  border-top-color: rgba(255, 255, 255, 0.12);
}

@keyframes ga-ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes ga-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ga-ambient-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-2%, 2%, 0) scale(1.04);
  }
}

@keyframes ga-ambient-beam {
  from {
    opacity: 0.58;
    transform: rotate(-18deg) translate3d(0, 0, 0);
  }

  to {
    opacity: 0.9;
    transform: rotate(-12deg) translate3d(-2%, 3%, 0);
  }
}

@keyframes ga-seasonal-fall {
  0% {
    top: -18%;
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  100% {
    top: 112%;
    opacity: 0;
  }
}

@keyframes ga-seasonal-sway {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(var(--ga-seasonal-scale, 1));
  }

  50% {
    transform: translate3d(calc(var(--ga-seasonal-drift, 24px) * 0.52), 0, 0) rotate(calc(var(--ga-seasonal-tilt, 28deg) * 0.5)) scale(var(--ga-seasonal-scale, 1));
  }

  100% {
    transform: translate3d(var(--ga-seasonal-drift, 24px), 0, 0) rotate(var(--ga-seasonal-tilt, 28deg)) scale(var(--ga-seasonal-scale, 1));
  }
}

@keyframes ga-rain-fall {
  0% {
    top: -28%;
    opacity: 0;
  }

  18% {
    opacity: 1;
  }

  100% {
    top: 112%;
    opacity: 0;
  }
}

@keyframes ga-rain-sway {
  0% {
    transform: translate3d(0, 0, 0) rotate(12deg);
  }

  100% {
    transform: translate3d(var(--ga-seasonal-drift, 18px), 0, 0) rotate(12deg);
  }
}

@keyframes ga-sunray-pulse {
  0% {
    opacity: calc(var(--ga-sunray-opacity, 0.52) * 0.72);
  }

  50% {
    opacity: var(--ga-sunray-opacity, 0.52);
  }

  100% {
    opacity: calc(var(--ga-sunray-opacity, 0.52) * 0.78);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__atmosphere-orb,
  .hero__atmosphere-haze {
    animation: ga-ambient-drift 14s ease-in-out infinite alternate;
  }

  .hero__atmosphere-beam {
    animation: ga-ambient-beam 11s ease-in-out infinite alternate;
  }

  .hero__seasonal-ray {
    animation: ga-sunray-pulse var(--ga-sunray-duration, 10s) ease-in-out infinite;
  }

  .hero__intro,
  .hero__panel,
  .front-intro__shell,
  .directory-section,
  .news-highlight,
  .front-feature__panel,
  .front-feature__link {
    opacity: 0;
    animation: ga-rise 0.7s ease forwards;
  }

  .hero__panel,
  .news-highlight:nth-child(2),
  .directory-section:nth-child(2),
  .front-feature__link:nth-child(2) {
    animation-delay: 0.08s;
  }

  .front-intro__shell,
  .news-highlight:nth-child(3),
  .directory-section:nth-child(3),
  .front-feature__link:nth-child(3) {
    animation-delay: 0.16s;
  }

  .directory-section:nth-child(4),
  .front-feature__link:nth-child(4) {
    animation-delay: 0.24s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-ticker__viewport {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .top-ticker__viewport::-webkit-scrollbar {
    display: none;
  }

  .top-ticker__track {
    animation: none;
  }

  .hero--slider .hero__image {
    transition: none;
  }
}

@media (min-width: 1121px) and (max-height: 820px) {
  .hero {
    min-height: calc(100vh - var(--ga-header-offset) - 5.75rem);
  }

  @supports (height: 100dvh) {
    .hero {
      min-height: calc(100dvh - var(--ga-header-offset) - 5.75rem);
    }
  }

  .hero__content {
    padding: clamp(3.25rem, 6vh, 4.75rem) 0 clamp(2rem, 4vh, 3rem);
  }

  .hero__layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.78fr);
    gap: clamp(1.25rem, 2vw, 1.75rem);
  }

  .hero__intro {
    max-width: 38rem;
  }

  .hero__title {
    max-width: 10ch;
    font-size: clamp(3.4rem, 4.7vw, 4.8rem);
  }

  .hero__text {
    max-width: 34rem;
    margin-top: 1rem;
    font-size: 1rem;
  }

  .hero__actions {
    margin-top: 1.4rem;
  }

  .hero__slider-controls {
    margin-top: 1rem;
    max-width: 36rem;
    padding: 0.75rem 0.9rem;
    gap: 0.7rem;
  }

  .hero__panel {
    padding: 1.15rem;
  }

  .hero__panel-title {
    margin-bottom: 0.85rem;
    font-size: 1.26rem;
  }

  .hero__highlights {
    gap: 0.7rem;
  }

  .hero__highlight {
    gap: 0.75rem;
    padding: 0.82rem 0.9rem;
  }

  .hero__highlight-index {
    min-width: 2.25rem;
    min-height: 2.25rem;
  }
}

@media (max-width: 1120px) {
  .hero__layout,
  .front-feature {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    max-width: 34rem;
  }

  .news-highlight {
    grid-column: span 6;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .section-nav {
    position: static;
    top: auto;
  }
}

@media (max-width: 980px) {
  .primary-nav__list li,
  .primary-nav__list a {
    min-width: 0;
  }

  .primary-nav__list a {
    overflow-wrap: anywhere;
  }

  .site-header__nav-group {
    margin-left: 0;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .primary-nav__list,
  .primary-nav__list .sub-menu,
  .primary-nav__list .children {
    display: grid;
    position: static;
    min-width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .primary-nav__list {
    gap: 0.15rem;
  }

  .primary-nav__list li.menu-item-has-children,
  .primary-nav__list li.page_item_has_children {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.35rem;
  }

  .primary-nav__list a,
  .primary-nav__list > li > a {
    min-height: 44px;
    padding: 0.78rem 0.85rem;
    border-bottom: 0;
    border-radius: 0;
  }

  .primary-nav__list > li > a::after {
    display: none;
  }

  .primary-nav__list li > .sub-menu,
  .primary-nav__list li > .children {
    grid-column: 1 / -1;
  }

  .primary-nav__list .sub-menu,
  .primary-nav__list .children {
    gap: 0.08rem;
    margin: 0.05rem 0 0.45rem 0.85rem;
    padding: 0.15rem 0 0.15rem 0.75rem;
    border-left: 1px solid var(--ga-line);
    border-radius: 0;
  }

  .primary-nav__list .sub-menu .sub-menu,
  .primary-nav__list .sub-menu .children,
  .primary-nav__list .children .sub-menu,
  .primary-nav__list .children .children {
    margin: 0.12rem 0 0.12rem 0.5rem;
    padding-left: 0.65rem;
  }

  .primary-nav__list .sub-menu a,
  .primary-nav__list .children a {
    min-height: 40px;
    padding: 0.62rem 0.75rem;
    color: var(--ga-muted);
    font-size: 0.94rem;
    font-weight: 500;
    white-space: normal;
  }

  .primary-nav__list .sub-menu a::before,
  .primary-nav__list .children a::before,
  .primary-nav__list .sub-menu .menu-item-has-children > a::after,
  .primary-nav__list .sub-menu .page_item_has_children > a::after,
  .primary-nav__list .children .menu-item-has-children > a::after,
  .primary-nav__list .children .page_item_has_children > a::after {
    display: none;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: auto;
  }

  .hero__content {
    padding-top: clamp(4.75rem, 11vw, 5.5rem);
    padding-bottom: clamp(2.4rem, 7vw, 3.25rem);
  }

  .hero__layout {
    gap: clamp(1.2rem, 3.5vw, 1.5rem);
    align-items: stretch;
  }

  .hero__intro,
  .hero__panel {
    max-width: none;
  }

  .hero__atmosphere-orb {
    width: clamp(14rem, 46vw, 24rem);
    right: -14%;
  }

  .hero__atmosphere-beam {
    top: 10%;
    right: 2%;
    width: clamp(16rem, 44vw, 24rem);
  }

  .hero__atmosphere-haze {
    width: clamp(16rem, 54vw, 28rem);
  }

  .hero__slider-controls {
    width: 100%;
  }

  .hero__slider-pagination {
    margin-left: 0;
  }

  .front-intro {
    margin-top: 0;
  }
}

@media (max-width: 980px) {
  .site-footer__top {
    align-items: flex-start;
  }

  .site-footer__top,
  .site-footer__grid {
    display: grid;
    gap: 1rem;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid > * {
    min-width: 0;
  }

  .site-footer__menu ul {
    gap: 0.6rem;
  }

  .site-footer__socials {
    justify-content: center;
    margin-top: 1.2rem;
  }

  .site-footer__bottom {
    justify-content: center;
    text-align: center;
  }

  .site-footer__legal {
    margin-left: 0;
  }

  .site-footer__legal-list {
    justify-content: center;
  }

  .site-header__inner {
    min-height: 78px;
  }

  .section-directory,
  .news-highlights {
    grid-template-columns: 1fr;
  }

  .directory-section,
  .news-highlight {
    grid-column: auto;
  }

  .front-feature__links {
    grid-template-columns: 1fr;
  }
}

/* ── Main Events Grid ─────────────────────────────────────────────────────── */

.front-events {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.event-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: var(--ga-washi-2);
  border: 1px solid var(--ga-line);
  box-shadow: none;
  transition: border-color 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .event-card {
    opacity: 0;
    animation: ga-rise 0.6s ease forwards;
  }

  .event-card:nth-child(2)  { animation-delay: 0.05s; }
  .event-card:nth-child(3)  { animation-delay: 0.10s; }
  .event-card:nth-child(4)  { animation-delay: 0.15s; }
  .event-card:nth-child(5)  { animation-delay: 0.20s; }
  .event-card:nth-child(6)  { animation-delay: 0.25s; }
  .event-card:nth-child(7)  { animation-delay: 0.30s; }
  .event-card:nth-child(8)  { animation-delay: 0.35s; }
  .event-card:nth-child(9)  { animation-delay: 0.40s; }
  .event-card:nth-child(10) { animation-delay: 0.45s; }
  .event-card:nth-child(11) { animation-delay: 0.50s; }
  .event-card:nth-child(12) { animation-delay: 0.55s; }
}

.event-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.event-card__link:hover .event-card__image,
.event-card__link:focus-visible .event-card__image {
  transform: scale(1.04);
}

.event-card__link:hover,
.event-card__link:focus-visible {
  outline: none;
}

.event-card:has(.event-card__link:hover),
.event-card:has(.event-card__link:focus-visible) {
  border-color: var(--ga-line-strong);
}

.event-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--ga-surface-strong);
  transition: transform 0.35s ease;
}

.event-card__image--empty {
  background: linear-gradient(135deg, rgba(26, 108, 120, 0.08), rgba(15, 36, 51, 0.06));
}

.event-card__label {
  margin: 0;
  padding: 0.65rem 0.85rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ga-text);
  background: rgba(255, 255, 255, 0.92);
  letter-spacing: 0;
}

@media (max-width: 1120px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .events-grid {
    align-items: start;
  }

  .site-branding {
    flex: 1 1 auto;
  }

  .custom-logo-link {
    display: block;
    max-width: clamp(160px, 58vw, 240px);
  }

  .custom-logo-link img {
    width: 100%;
  }

  :root {
    --ga-top-ticker-height: 42px;
  }

  body::before {
    display: none;
  }

  .top-ticker__inner {
    gap: 0.7rem;
  }

  .top-ticker__label {
    min-height: 24px;
    padding: 0.18rem 0.5rem;
    font-size: 0.66rem;
  }

  .top-ticker__item {
    font-size: 0.82rem;
  }

  .events-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .event-card {
    align-self: start;
  }

  .event-card__link {
    height: auto;
  }

  .hero__actions,
  .front-feature__actions {
    display: grid;
    width: 100%;
  }

  .hero__actions .button,
  .front-feature__actions .button,
  .button--footer {
    width: 100%;
    max-width: none;
  }

  .hero__slider-controls {
    justify-content: flex-start;
  }

  .hero__panel,
  .front-news__panel,
  .archive-panel,
  .not-found__panel {
    padding: 1.25rem;
    border-radius: 22px;
  }

  .content-column,
  .entry-article {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .front-feature__panel {
    padding: 1.45rem;
    border-radius: 28px;
  }

  .front-feature__link {
    min-height: 68px;
    padding: 0.95rem 1rem;
  }

  .news-highlight__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .breadcrumbs a,
  .breadcrumbs span {
    white-space: nowrap;
  }

  .front-news__panel {
    padding: 1rem;
  }

  .news-table-wrap {
    display: none;
  }

  .news-cards {
    display: grid;
    gap: 0.85rem;
  }
}

@media (max-width: 400px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

/* Smartphone hardening */
.site-branding,
.site-title,
.site-description,
.category-pill {
  min-width: 0;
}

.site-title,
.site-description,
.category-pill {
  overflow-wrap: anywhere;
}

.category-pill {
  max-width: 100%;
  white-space: normal;
}

.hero--slider {
  touch-action: pan-y;
}

.event-card__image {
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.event-card__image-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.event-card__link:hover .event-card__image,
.event-card__link:focus-visible .event-card__image {
  transform: none;
}

.event-card__link:hover .event-card__image-img,
.event-card__link:focus-visible .event-card__image-img {
  transform: scale(1.04);
}

@media (max-width: 980px) {
  .submenu-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin-right: 0.2rem;
  }

  .primary-nav__list .sub-menu a,
  .primary-nav__list .children a {
    min-height: 44px;
  }
}

@media (max-width: 700px) {
  .site-header__inner {
    min-height: 76px;
  }

  .top-ticker__label {
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0;
  }

  .hero__title,
  .section-heading h2,
  .archive-header h1,
  .entry-header h1,
  .not-found__title,
  .front-feature__panel h2 {
    letter-spacing: 0;
  }

  .hero__title {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero__content {
    width: min(calc(100% - 1.5rem), var(--ga-max-width));
    padding-top: clamp(4.25rem, 16vw, 5rem);
    padding-bottom: 2.15rem;
  }

  .hero__layout {
    gap: 1rem;
  }

  .hero__eyebrow {
    margin-bottom: 0.85rem;
    padding: 0.38rem 0.72rem;
    font-size: 0.74rem;
  }

  .hero__text {
    max-width: none;
    margin-top: 1rem;
    overflow-wrap: anywhere;
  }

  .hero__actions {
    gap: 0.75rem;
    margin-top: 1.35rem;
  }

  .hero__atmosphere-orb {
    top: -8%;
    right: -18%;
    width: clamp(12rem, 56vw, 18rem);
  }

  .hero__atmosphere-beam {
    top: 6%;
    right: -4%;
    width: clamp(14rem, 62vw, 18rem);
    height: clamp(3rem, 12vw, 4.5rem);
  }

  .hero__atmosphere-haze {
    left: -18%;
    bottom: -24%;
    width: clamp(14rem, 74vw, 22rem);
    height: clamp(10rem, 52vw, 16rem);
  }

  .hero__slider-controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    padding: 0.78rem 0.85rem;
    gap: 0.7rem;
  }

  .hero__slider-button {
    min-width: 44px;
    padding: 0;
  }

  .hero__slider-button[data-slider-action="prev"] {
    grid-column: 1;
  }

  .hero__slider-progress {
    order: 0;
    grid-column: 2;
    flex-basis: auto;
    min-width: 0;
  }

  .hero__slider-button[data-slider-action="next"] {
    grid-column: 3;
    justify-self: end;
  }

  .hero__slider-pagination {
    order: 0;
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .hero__slider-count {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .hero__panel {
    max-width: none;
  }

  .hero__panel-title {
    margin-bottom: 0.85rem;
    font-size: clamp(1.16rem, 4.8vw, 1.3rem);
  }

  .hero__highlights {
    gap: 0.65rem;
  }

  .hero__highlight {
    gap: 0.75rem;
    padding: 0.85rem 0.9rem;
  }

  .hero__highlight-meta {
    line-height: 1.4;
  }

  .hero__seasonal-ray {
    right: -22%;
  }

  .directory-section__meta {
    flex-wrap: wrap;
    justify-content: flex-start;
    letter-spacing: 0;
  }

  .hero__slider-dot,
  .hero__slider-dot.is-active {
    position: relative;
    width: 44px;
    min-height: 44px;
    border-color: transparent;
    background: transparent;
  }

  .hero__slider-dot::before {
    content: "";
    display: block;
    width: 0.75rem;
    height: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    transition: width 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  }

  .hero__slider-dot.is-active::before {
    width: 1.65rem;
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(255, 255, 255, 0.94);
  }

  .hero__slider-dot:hover,
  .hero__slider-dot:focus-visible,
  .hero__slider-dot.is-active:hover,
  .hero__slider-dot.is-active:focus-visible {
    border-color: transparent;
    background: transparent;
  }

  /* page.php / single.php mobile */
  .page-shell,
  .single-shell {
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-nav {
    position: static;
    top: auto;
    order: -1;
  }

  .section-nav,
  .section-nav__box {
    min-width: 0;
    width: 100%;
  }

  .section-nav__list {
    display: grid;
    gap: 0.6rem;
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .section-nav__list li {
    min-width: 0;
  }

  .section-nav__list a {
    width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .entry-header {
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
  }

  .entry-header h1 {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .entry-header__summary {
    font-size: 0.97rem;
  }

  .entry-featured-image--single {
    margin-right: 0;
    margin-left: 0;
    border-radius: 16px;
  }

  .entry-content {
    font-size: 1rem;
    line-height: 1.8;
  }

  .entry-content table[id="scrollable-table"] {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .entry-content table[id="scrollable-table"] tbody {
    display: table-row-group;
  }

  .entry-content table[id="scrollable-table"] tr {
    display: table-row;
    border: 0;
    box-shadow: none;
  }

  .entry-content table[id="scrollable-table"] :is(th, td) {
    display: table-cell;
    width: auto;
    min-width: 4.8rem;
    padding: 0.68rem 0.75rem;
    border-right: 1px solid var(--ga-line);
    border-bottom: 1px solid var(--ga-line);
    background: var(--ga-table-row-bg);
    vertical-align: middle;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
  }

  .entry-content table[id="scrollable-table"] :is(th, td):last-child {
    border-right: 0;
  }

  .entry-content table[id="scrollable-table"] :is(th, td)::before {
    content: none;
    display: none;
  }

  .entry-content table[id="scrollable-table"] tbody tr:nth-child(even) :is(th, td) {
    background: var(--ga-table-stripe-bg);
  }

  .entry-content table[id="scrollable-table"] tbody > tr:first-child > :is(th, td) {
    background: var(--ga-table-header-bg);
    color: var(--ga-table-header-color);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.35;
  }

  .entry-content table[id="scrollable-table"] tbody > tr > :first-child {
    min-width: 8.5rem;
    white-space: normal;
  }

  .entry-content table[id="scrollable-table"] tbody > tr > :nth-child(2) {
    min-width: 7rem;
    white-space: normal;
  }

  .entry-content table[id="scrollable-table"] td:last-child {
    border-bottom: 1px solid var(--ga-line);
  }

  .entry-content table[id="scrollable-table"] tbody tr:last-child > :is(th, td) {
    border-bottom: 0;
  }

  .entry-meta {
    gap: 0.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero__content {
    width: min(calc(100% - 1rem), var(--ga-max-width));
    padding-top: clamp(4rem, 18vw, 4.75rem);
    padding-bottom: 1.85rem;
  }

  .hero__slider-controls {
    padding: 0.72rem;
    gap: 0.6rem;
    border-radius: 20px;
  }

  .hero__slider-button {
    min-width: 42px;
    min-height: 42px;
  }

  .hero__slider-count {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .hero__slider-pagination {
    gap: 0.25rem;
  }

  .hero__panel {
    padding: 1rem;
    border-radius: 20px;
  }

  .hero__highlight {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.8rem 0.85rem;
    border-radius: 18px;
  }

  .hero__highlight-index {
    min-width: 2.25rem;
    min-height: 2.25rem;
    font-size: 0.78rem;
  }

  .hero__highlight-title {
    font-size: 0.95rem;
  }

  .hero__highlight-meta {
    font-size: 0.82rem;
  }
}

/* ══ Responsive Refinements ═══════════════════════════════════════════════════
   Fluid type, tablet 2-col layouts, and print styles.
   Placed after all breakpoint blocks so these rules win via source order.
   ══════════════════════════════════════════════════════════════════════════ */

/* Fluid headings from 641px up — clamp max equals the desktop 2.5rem value
   so nothing changes on wide screens; mid-range gets proportionate sizing. */
@media (min-width: 641px) {
  .section-heading h2,
  .archive-header h1,
  .entry-header h1,
  .not-found__title {
    font-size: clamp(1.85rem, 2.5vw + 0.7rem, 2.5rem);
  }

  .front-feature__panel h2 {
    font-size: clamp(1.8rem, 2.8vw + 0.45rem, 2.5rem);
  }

  .directory-section h3 {
    font-size: clamp(1.3rem, 1.8vw + 0.6rem, 1.6rem);
  }
}

/* ── Tablet range: 641px – 980px ─────────────────────────────────────────────
   The ≤980px block collapses section-directory, news-highlights, and footer
   to 1fr single-column. On a tablet these have room for 2 columns, so we
   restore them here (this block is later in source → wins at ≤980px). */

@media (min-width: 641px) and (max-width: 980px) {
  /* 2-col section directory */
  .section-directory {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  /* 2-col news highlights */
  .news-highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }

  /* 3-col news filters (date | category | search → actions full-width below)
     Tablet has more horizontal room than the ≤980px 2-col fallback. */
  .news-filters {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Flex footer-top and 2-col footer grid */
  .site-footer__top {
    display: flex;
    align-items: flex-end;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem;
  }

  /* Footer socials/legal: keep desktop alignment on tablet (overrides ≤980px centering) */
  .site-footer__socials {
    justify-content: flex-start;
  }

  .site-footer__bottom {
    justify-content: space-between;
    text-align: left;
  }

  .site-footer__legal {
    margin-left: auto;
  }

  .site-footer__legal-list {
    justify-content: flex-end;
  }
}

/* ── Wide-tablet landscape: 768px – 979px ────────────────────────────────────
   front-feature collapses at ≤1120px; landscape tablets (768-979px) have
   enough width to restore the two-column panel layout. */

@media (min-width: 768px) and (max-width: 979px) {
  .front-feature {
    grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.85fr);
    gap: 1.2rem;
  }
}

/* ══ Pages & posts — layout variants & inner-page features ═══════════════════
   Section-nav positions, prev/next, share, TOC, child-grid.
   ══════════════════════════════════════════════════════════════════════════ */

/* Section-nav position variants — base grid lives at .page-layout (line ~979).
   Inline-CSS function sets concrete column widths via --ga-page-nav-width. */

.page-layout--no-nav,
.page-layout--nav-top {
  grid-template-columns: minmax(0, 1fr);
}

.page-layout--nav-top .section-nav {
  position: static;
  padding: 0 0 1.5rem;
  order: -1;
}

.page-layout--nav-top .section-nav__box {
  border-top: 0;
  padding-top: 0;
}

.page-layout--nav-top .section-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-layout--nav-top .section-nav__list a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border-bottom: 0;
  border: 1px solid var(--ga-line);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.page-layout--nav-top .section-nav__list .is-current {
  border-color: var(--ga-accent);
  color: var(--ga-accent-deep);
}

/* Active-item hairline (3px teal on inline-start) for the standard sidebar.
   Replaces the `font-weight: 700` look with the theme's hairline vocabulary. */
.page-layout--nav-right .section-nav__list .is-current,
.page-layout--nav-left .section-nav__list .is-current {
  position: relative;
  padding-inline-start: 0.65rem;
}

.page-layout--nav-right .section-nav__list .is-current::before,
.page-layout--nav-left .section-nav__list .is-current::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 3px;
  background: var(--ga-accent);
}

/* ── Prev/next post navigation ──────────────────────────────────────────── */

.entry-prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ga-line);
}

.entry-prev-next__item {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--ga-line);
  border-radius: var(--ga-radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.entry-prev-next__item:hover,
.entry-prev-next__item:focus-visible {
  border-color: var(--ga-accent);
  background: var(--ga-accent-soft);
}

.entry-prev-next__item--placeholder {
  border: 0;
  background: transparent;
  pointer-events: none;
}

.entry-prev-next__item--next {
  text-align: end;
}

.entry-prev-next__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ga-muted);
}

.entry-prev-next__title {
  font-weight: 600;
  line-height: 1.45;
}

.entry-prev-next__thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--ga-radius) - 6px);
}

.entry-prev-next--minimal .entry-prev-next__item {
  border: 0;
  padding: 0.5rem 0;
}

.entry-prev-next--minimal .entry-prev-next__item:hover,
.entry-prev-next--minimal .entry-prev-next__item:focus-visible {
  background: transparent;
  color: var(--ga-accent-deep);
}

/* ── Social share ──────────────────────────────────────────────────────── */

.entry-share {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ga-line);
}

.entry-share__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ga-muted);
}

.entry-share__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.entry-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.45rem 0.95rem;
  background: transparent;
  border: 1px solid var(--ga-line);
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.entry-share__btn:hover,
.entry-share__btn:focus-visible {
  border-color: var(--ga-accent);
  color: var(--ga-accent-deep);
  background: var(--ga-accent-soft);
}

/* ── Back-to-news link ─────────────────────────────────────────────────── */

.entry-back-link {
  margin: 2.5rem 0 0;
  font-size: 0.92rem;
}

.entry-back-link a {
  text-decoration: none;
  border-bottom: 1px solid var(--ga-line);
  padding-bottom: 0.15rem;
}

.entry-back-link a:hover,
.entry-back-link a:focus-visible {
  border-bottom-color: var(--ga-accent);
  color: var(--ga-accent-deep);
}

/* ── Table of contents ─────────────────────────────────────────────────── */

.entry-toc {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--ga-line);
  border-radius: calc(var(--ga-radius) - 6px);
  background: rgba(252, 251, 247, 0.7);
}

.entry-toc__eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ga-muted);
}

.entry-toc__list {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.entry-toc__list a {
  text-decoration: none;
}

.entry-toc__list a:hover,
.entry-toc__list a:focus-visible {
  color: var(--ga-accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Drop cap (opt-in per post) ────────────────────────────────────────── */

.has-drop-cap .entry-content > p:first-of-type::first-letter {
  float: inline-start;
  font-size: 3.6em;
  line-height: 0.95;
  padding-inline-end: 0.45rem;
  padding-block-start: 0.15rem;
  color: var(--ga-accent-deep);
}

/* ── Child-pages grid (opt-in for parent pages) ───────────────────────── */

.entry-child-grid {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ga-line);
}

.entry-child-grid__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.entry-child-grid__link {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid var(--ga-line);
  border-radius: var(--ga-radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.entry-child-grid__link:hover,
.entry-child-grid__link:focus-visible {
  border-color: var(--ga-accent);
  background: var(--ga-accent-soft);
}

.entry-child-grid__thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--ga-radius) - 8px);
}

.entry-child-grid__title {
  font-weight: 600;
  line-height: 1.4;
}

/* ── Focus visibility for new interactive elements ─────────────────────── */

.entry-prev-next__item:focus-visible,
.entry-share__btn:focus-visible,
.entry-back-link a:focus-visible,
.entry-toc__list a:focus-visible,
.entry-child-grid__link:focus-visible {
  outline: 2px solid var(--ga-accent);
  outline-offset: 3px;
}

/* ── Reduced motion ────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .entry-prev-next__item,
  .entry-share__btn,
  .entry-child-grid__link {
    transition: none;
  }
}

/* ── Mobile: prev/next stacks; full-bleed already handled by viewport ──── */

@media (max-width: 700px) {
  .entry-prev-next {
    grid-template-columns: 1fr;
  }

  /* Logo mode keeps its panel even when content-column strips card on mobile.
     The inline-CSS function sets background:var(--ga-logo-bg) at this BP. */
  .entry-featured-image--logo .entry-featured-image__inner {
    padding: clamp(24px, 8vw, 64px);
  }

  .entry-featured-image--full-bleed {
    margin-inline: calc(50% - (var(--ga-viewport-width, 100vw) / 2));
  }
}

/* Tablet: restore 2-col prev/next + give nav-top pills a single horizontal row.
   This block must be AFTER the ≤980px block to win for 641-980px range. */

@media (min-width: 641px) and (max-width: 980px) {
  .entry-prev-next {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout--nav-top .section-nav__list {
    flex-wrap: wrap;
  }
}

/* ── Print ───────────────────────────────────────────────────────────────────
   Strip chrome and decorative elements; surface only the content column. */

@media print {
  .top-ticker,
  .site-header,
  .hero,
  .section-nav,
  .breadcrumbs,
  .pagination,
  .news-filters,
  .front-directory,
  .front-news,
  .front-feature,
  .front-events,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
    line-height: 1.6;
  }

  .site-main {
    padding-bottom: 0;
  }

  .page-shell,
  .single-shell {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .content-column,
  .entry-article,
  .archive-panel,
  .not-found__panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    width: 100%;
    max-width: 100%;
  }

  .entry-content {
    width: 100%;
    max-width: 100%;
  }

  a[href^="http"]::after {
    content: " <" attr(href) ">";
    font-size: 0.75em;
    color: #555;
  }
}

/* ============================================================================
 * EDITORIAL JAPANESE SKIN
 * Re-skins existing components in the modern Japanese editorial direction:
 * sumi-ink #11110f on washi #f4f1ea, shu vermilion #b8463a accent,
 * Shippori Mincho display + Noto Sans JP body + Inter labels + JetBrains mono.
 * Square corners, ruled hairlines, generous white space, vertical rhythm.
 * Appended last so it wins source-order ties over earlier rules; the inline-CSS
 * function in template-tags.php has been updated in sync to emit flat values.
 * ========================================================================== */

/* --- Base typography --------------------------------------------------- */
body {
  font-family: var(--ga-font-sans);
}

h1, h2, h3, h4,
.site-title,
.entry-title,
.section-heading h2,
.section-heading__title,
.front-feature__title,
.front-feature__heading,
.archive-header h1,
.entry-header h1,
.hero__title,
.hero__panel-title,
.directory-section h3,
.news-highlight__title,
.front-news__title,
.page-title,
.page-header h1 {
  font-family: var(--ga-font-mincho);
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* Eyebrow / label / caps text — Inter, tracked. */
.hero__eyebrow,
.section-heading__eyebrow,
.entry-header__eyebrow,
.front-intro__eyebrow,
.front-feature__eyebrow,
.site-footer__eyebrow,
.hero__panel-eyebrow,
.archive-header__eyebrow,
.directory-section__meta,
.front-news__eyebrow,
.breadcrumbs,
.category-pill,
.news-table thead th,
.news-row__cat,
.news-filters label,
.section-heading__title-meta {
  font-family: var(--ga-font-latin);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

/* JP body copy uses Noto Sans JP — inherited from body. */

/* --- Layout container -------------------------------------------------- */
.site-width {
  width: min(calc(100% - 48px), var(--ga-max-width));
}

/* --- Top ticker (emergency / news ticker) ----------------------------- */
.top-ticker,
.top-ticker--warning,
.top-ticker--info {
  background: var(--ga-sumi);
  color: var(--ga-washi);
  border-bottom: 1px solid var(--ga-sumi);
  font-family: var(--ga-font-latin);
}
.top-ticker__inner {
  height: var(--ga-top-ticker-height);
  align-items: center;
  display: flex;
  gap: 28px;
}
.top-ticker__label {
  font-family: var(--ga-font-latin);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ga-washi);
  border-right: 1px solid rgba(244, 241, 234, 0.2);
  padding-right: 20px;
  font-weight: 500;
}
.top-ticker__label::before {
  content: "●";
  color: var(--ga-shu);
  margin-right: 8px;
  font-size: 8px;
}
.top-ticker__item {
  font-size: 12px;
  font-weight: 400;
  font-family: var(--ga-font-sans);
}
.top-ticker__separator {
  opacity: 0.3;
  color: rgba(244, 241, 234, 0.5);
}

/* Re-assert the marquee mechanics so the editorial overrides above can never
   accidentally clobber them. The previous `.top-ticker__track { min-width:100% }`
   from the base stylesheet broke the loop when the ticker text was shorter than
   the viewport. The track now contains two identical segments, and translating
   -50% lands the second segment exactly where the first one started. */
.top-ticker {
  position: sticky;
  top: 0;
  z-index: 140;
  overflow: hidden;
}
.top-ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.top-ticker__track {
  display: flex;
  width: max-content;
  min-width: 0;
  white-space: nowrap;
  animation: ga-ticker-scroll var(--ga-top-ticker-duration, 24s) linear infinite;
}
.top-ticker__segment {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.top-ticker__group {
  padding-right: var(--ga-top-ticker-gap, 96px);
}

/* --- Header & navigation ---------------------------------------------- */
.site-header {
  background: rgba(244, 241, 234, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ga-line);
  box-shadow: none;
}
.site-header__inner {
  min-height: 88px;
}
.site-title,
.site-title a {
  font-family: var(--ga-font-mincho);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ga-sumi);
}
.site-description {
  font-family: var(--ga-font-latin);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ga-muted);
  font-weight: 500;
}

.primary-nav {
  background: transparent;
}
.primary-nav__list > li > a {
  font-family: var(--ga-font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ga-sumi);
}
.primary-nav__list > li > a::after {
  background: var(--ga-shu);
  height: 2px;
}
.primary-nav__list .current-menu-item > a::after,
.primary-nav__list .current-menu-ancestor > a::after,
.primary-nav__list .current_page_item > a::after,
.primary-nav__list .current_page_ancestor > a::after {
  background: var(--ga-shu);
  height: 2px;
}
.primary-nav__list .sub-menu,
.primary-nav__list .children {
  background: var(--ga-washi);
  border: 1px solid var(--ga-line);
  box-shadow: none;
}

/* --- Buttons ----------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--ga-sumi);
  background: var(--ga-sumi);
  color: var(--ga-washi);
  font-family: var(--ga-font-latin);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.button:hover,
.button:focus-visible {
  background: var(--ga-shu);
  border-color: var(--ga-shu);
  color: var(--ga-washi);
  box-shadow: none;
}
.button--primary {
  background: var(--ga-sumi);
  color: var(--ga-washi);
  border-color: var(--ga-sumi);
  box-shadow: none;
}
.button--primary:hover,
.button--primary:focus-visible {
  background: var(--ga-shu);
  border-color: var(--ga-shu);
  color: var(--ga-washi);
}
.button--secondary {
  background: transparent;
  color: var(--ga-sumi);
  border-color: var(--ga-sumi);
}
.button--secondary:hover,
.button--secondary:focus-visible {
  background: var(--ga-sumi);
  color: var(--ga-washi);
  border-color: var(--ga-sumi);
}
.button--ghost {
  background: transparent;
  color: var(--ga-sumi);
  border-color: var(--ga-sumi);
}
.button--ghost:hover,
.button--ghost:focus-visible {
  background: var(--ga-sumi);
  color: var(--ga-washi);
  border-color: var(--ga-sumi);
}
.button--footer {
  background: var(--ga-washi);
  color: var(--ga-sumi);
  border-color: var(--ga-washi);
}
.button--footer:hover,
.button--footer:focus-visible {
  background: var(--ga-shu);
  color: var(--ga-washi);
  border-color: var(--ga-shu);
}

/* --- Hero section ----------------------------------------------------- */
.hero {
  background: var(--ga-bg);
  border-bottom: 1px solid var(--ga-line);
  overflow: hidden;
}
.hero__eyebrow {
  background: transparent;
  border: 1px solid var(--ga-sumi);
  color: var(--ga-sumi);
  font-family: var(--ga-font-latin);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 0;
}
.hero__title {
  font-family: var(--ga-font-mincho) !important;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero__text {
  font-family: var(--ga-font-sans);
  line-height: 1.95;
}
.hero--plain .hero__title,
.hero--plain .hero__text,
.hero--plain .hero__eyebrow {
  color: var(--ga-sumi);
}
.hero--plain .hero__eyebrow {
  border-color: var(--ga-sumi);
}

/* Hero panel (right column when used) – flat washi-2 with ruled border. */
.hero__panel {
  background: var(--ga-washi-2);
  border: 1px solid var(--ga-line);
  box-shadow: none;
  color: var(--ga-sumi);
}
.hero__panel-title,
.hero__panel-eyebrow,
.hero__highlight,
.hero__highlight-meta {
  color: var(--ga-sumi);
}
.hero__panel-eyebrow {
  background: transparent;
  border: 1px solid var(--ga-line);
}
.hero__highlight {
  background: transparent;
  border-top: 1px solid var(--ga-line);
}
.hero__highlight:hover,
.hero__highlight:focus-visible {
  background: rgba(17, 17, 15, 0.025);
}
.hero__highlight-index {
  color: var(--ga-shu);
  font-family: var(--ga-font-mono);
}

/* Hero slider counter & arrows: monospace, square. */
.hero__slider-counter,
.hero__counter {
  font-family: var(--ga-font-mono);
  letter-spacing: 0.08em;
}

/* --- Section headings ------------------------------------------------- */
.section-heading {
  border-bottom: 1px solid var(--ga-line);
  padding-bottom: 40px;
  margin-bottom: 56px;
}
.section-heading__eyebrow,
.front-intro__eyebrow,
.front-feature__eyebrow,
.archive-header__eyebrow,
.entry-header__eyebrow {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--ga-sumi);
  font-family: var(--ga-font-latin);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding-left: 14px;
}
.section-heading__eyebrow::before,
.front-intro__eyebrow::before,
.front-feature__eyebrow::before,
.archive-header__eyebrow::before,
.entry-header__eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ga-shu);
  transform: translateY(-50%);
}
.section-heading h2,
.section-heading__title {
  font-family: var(--ga-font-mincho);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ga-sumi);
}

/* --- Directory cards (front-page section grid) ----------------------- */
.directory-section {
  background: transparent;
  border: 1px solid var(--ga-line);
  border-radius: 0;
  box-shadow: none;
  padding: 36px;
  transition: background 0.25s ease;
}
.directory-section:hover {
  background: rgba(17, 17, 15, 0.025);
}
.directory-section__meta {
  font-family: var(--ga-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ga-muted);
}
.directory-section h3 {
  font-family: var(--ga-font-mincho);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ga-sumi);
  line-height: 1.2;
}
.directory-section h3 a {
  color: inherit;
}
.directory-section__summary {
  font-family: var(--ga-font-sans);
  font-size: 14px;
  line-height: 1.85;
  color: var(--ga-ink);
}
.directory-section__children li {
  border-top: 1px solid var(--ga-line);
}
.directory-section__children a {
  font-family: var(--ga-font-sans);
  font-size: 13px;
  color: var(--ga-ink);
  padding: 11px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.directory-section__children a::after {
  content: "→";
  color: var(--ga-muted);
  font-family: var(--ga-font-latin);
  transition: transform 0.2s ease, color 0.2s ease;
}
.directory-section__children a:hover {
  color: var(--ga-shu);
}
.directory-section__children a:hover::after {
  color: var(--ga-shu);
  transform: translateX(4px);
}
.directory-section__link {
  font-family: var(--ga-font-latin);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ga-sumi);
  border-bottom: 1px solid var(--ga-sumi);
  padding: 8px 0;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.directory-section__link:hover,
.directory-section__link:focus-visible {
  color: var(--ga-shu);
  border-bottom-color: var(--ga-shu);
  background: transparent;
}

/* --- News highlights & news table (editorial ruled rows) ------------- */
.news-highlight__link {
  background: transparent;
  border: 1px solid var(--ga-line);
  border-radius: 0;
  box-shadow: none;
  transition: background 0.25s ease;
}
.news-highlight__link:hover,
.news-highlight__link:focus-visible {
  background: rgba(17, 17, 15, 0.025);
  box-shadow: none;
}
.news-highlight__title {
  font-family: var(--ga-font-mincho);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.news-highlight__category {
  font-family: var(--ga-font-latin);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 10px;
  border-radius: 0;
  /* Per-category vars come from ga_minimal_get_category_pill_css() — bg at ~16%
     opacity, border at ~32%. Falls back to sumi outline if no term color set. */
  border: 1px solid var(--ga-category-pill-border, var(--ga-sumi));
  background: var(--ga-category-pill-bg, transparent);
  color: var(--ga-category-pill-text, var(--ga-sumi));
  padding: 4px 10px;
}

/* News table — ruled rows, no card. */
.front-news__panel,
.archive-panel,
.not-found__panel {
  background: transparent;
  border: 1px solid var(--ga-line);
  border-radius: 0;
  box-shadow: none;
}
.news-table thead th {
  font-family: var(--ga-font-latin);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ga-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--ga-sumi);
  padding-block: 16px;
}
.news-table tbody tr {
  background: transparent;
  border-radius: 0;
}
.news-table tbody td {
  border-bottom: 1px solid var(--ga-line);
  padding-block: 22px;
  vertical-align: baseline;
}
.news-table tbody time {
  font-family: var(--ga-font-mono);
  font-size: 12px;
  color: var(--ga-muted);
}
.news-table tbody a {
  font-family: var(--ga-font-mincho);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ga-sumi);
}
.news-table tbody tr:hover a {
  color: var(--ga-shu);
}

/* Generic category pill in news rows — keeps a hint of the per-category color
   via --ga-category-pill-* custom properties emitted by the inline pill CSS,
   so admins' Customizer category colors stay intact in the editorial skin. */
.category-pill {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--ga-category-pill-border, var(--ga-sumi));
  background: var(--ga-category-pill-bg, transparent);
  color: var(--ga-category-pill-text, var(--ga-sumi));
  font-family: var(--ga-font-latin);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 0;
  line-height: 1.4;
}

/* --- Front feature panel (dark CTA on home) -------------------------- */
.front-feature__panel {
  background: var(--ga-sumi);
  color: var(--ga-washi);
  border-radius: 0;
  box-shadow: none;
  border: 1px solid var(--ga-sumi);
}
.front-feature__title,
.front-feature__heading {
  font-family: var(--ga-font-mincho);
  font-weight: 500;
  color: var(--ga-washi);
}
.front-feature__eyebrow {
  background: transparent;
  border: 1px solid rgba(244, 241, 234, 0.4);
  color: var(--ga-washi);
}
.front-feature__eyebrow::before {
  background: var(--ga-shu);
}
.front-feature .button--secondary,
.front-feature .button--ghost {
  background: transparent;
  color: var(--ga-washi);
  border-color: rgba(244, 241, 234, 0.6);
}
.front-feature .button--secondary:hover,
.front-feature .button--secondary:focus-visible,
.front-feature .button--ghost:hover,
.front-feature .button--ghost:focus-visible {
  background: var(--ga-shu);
  color: var(--ga-washi);
  border-color: var(--ga-shu);
}

/* --- Single post / page entry headers -------------------------------- */
.entry-title,
.archive-header h1,
.entry-header h1,
.page-header h1 {
  font-family: var(--ga-font-mincho);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ga-sumi);
}
.entry-meta,
.archive-header__meta,
.entry-header__meta {
  font-family: var(--ga-font-mono);
  letter-spacing: 0.08em;
  color: var(--ga-muted);
}

/* Drop-cap when enabled (page setting). */
.has-drop-cap .entry-content > p:first-of-type::first-letter {
  font-family: var(--ga-font-mincho);
  font-size: 3.6em;
  line-height: 0.9;
  float: left;
  margin: 0.05em 0.12em 0 0;
  color: var(--ga-sumi);
}

/* --- Footer ----------------------------------------------------------- */
.site-footer {
  background: var(--ga-sumi);
  color: var(--ga-washi);
  border-top: 0;
}
.site-footer__top,
.site-footer__grid,
.site-footer__bottom {
  border-color: rgba(244, 241, 234, 0.16) !important;
}
.site-footer__title,
.site-footer__lead {
  font-family: var(--ga-font-mincho);
  font-weight: 500;
  color: var(--ga-washi);
}
.site-footer__lead {
  font-size: 22px;
  line-height: 1.6;
}
.site-footer__eyebrow {
  font-family: var(--ga-font-latin);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.55);
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
}
.site-footer h4,
.site-footer__menu .menu-item-has-children > a,
.site-footer__menu > ul > li > a:first-of-type {
  font-family: var(--ga-font-latin);
}
.site-footer a {
  color: var(--ga-washi);
  transition: color 0.2s ease;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ga-shu);
}
.site-footer__copyright {
  font-family: var(--ga-font-mono);
  font-size: 11px;
  color: rgba(244, 241, 234, 0.5);
  letter-spacing: 0.04em;
}

/* --- Breadcrumbs ------------------------------------------------------ */
.breadcrumbs {
  font-family: var(--ga-font-latin);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ga-muted);
}
.breadcrumbs a,
.breadcrumbs span {
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  color: inherit;
}
.breadcrumbs a:hover {
  color: var(--ga-shu);
}

/* --- News filters (archive page) ------------------------------------- */
.news-filters {
  border-top: 1px solid var(--ga-line);
  border-bottom: 1px solid var(--ga-line);
  padding: 18px 0;
}
.news-filters label {
  font-family: var(--ga-font-latin);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ga-muted);
  font-weight: 500;
}
.news-filters select,
.news-filters input[type="search"] {
  background: transparent;
  border: 1px solid var(--ga-line);
  border-radius: 0;
  font-family: var(--ga-font-sans);
  color: var(--ga-sumi);
}
.news-filters select:focus,
.news-filters input[type="search"]:focus {
  border-color: var(--ga-sumi);
  outline: none;
}

/* --- Pagination ------------------------------------------------------- */
.pagination .page-numbers {
  border-radius: 0;
  border: 1px solid var(--ga-line);
  background: transparent;
  font-family: var(--ga-font-latin);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ga-sumi);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--ga-sumi);
  color: var(--ga-washi);
  border-color: var(--ga-sumi);
}

/* --- Section nav (page sidebar) -------------------------------------- */
.section-nav__box {
  background: transparent;
  border: 1px solid var(--ga-line);
  border-radius: 0;
  box-shadow: none;
}
.section-nav__list a {
  border-radius: 0;
  font-family: var(--ga-font-sans);
}
.section-nav__list .is-current {
  background: var(--ga-sumi);
  color: var(--ga-washi);
}

/* --- Notice / emergency bar ------------------------------------------ */
.notice-bar {
  background: var(--ga-sumi);
  color: var(--ga-washi);
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--ga-sumi);
}
.notice-bar__label {
  font-family: var(--ga-font-latin);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  color: var(--ga-shu);
}
.notice-bar__link {
  color: var(--ga-washi);
  border-bottom: 1px solid rgba(244, 241, 234, 0.5);
}
.notice-bar__link:hover {
  color: var(--ga-shu);
  border-bottom-color: var(--ga-shu);
}

/* --- Editorial accent: section number marker (§ 01) ----------------- */
.section-heading__title-meta,
.front-feature__index {
  font-family: var(--ga-font-mono);
  letter-spacing: 0.16em;
  color: var(--ga-muted);
  font-size: 11px;
}

/* --- Featured image figure ------------------------------------------- */
.entry-featured-image {
  border-radius: 0;
  border: 1px solid var(--ga-line);
  background: var(--ga-washi-2);
}
.entry-featured-image--full-bleed {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.entry-featured-image__caption {
  font-family: var(--ga-font-mono);
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--ga-muted);
}

/* --- Mobile editorial refinements ----------------------------------- */
@media (max-width: 700px) {
  .section-heading h2,
  .section-heading__title {
    font-size: clamp(32px, 9vw, 48px);
  }
  .directory-section {
    padding: 28px 20px;
  }
  .directory-section h3 {
    font-size: 28px;
  }
}

/* --- Tablet refinements (after the existing 641-980 block in this file) */
@media (min-width: 641px) and (max-width: 980px) {
  .section-heading h2,
  .section-heading__title {
    font-size: clamp(36px, 5.4vw, 56px);
  }
}

/* ============================================================================
 * EDITORIAL HERO — replaces the older "glass / overlay / dark-image" hero
 * paradigm with a true editorial 2-column composition:
 *   ┌─────────────────────────┬─────────────────────────┐
 *   │ VOL.  SPRING 2026  …    │                         │
 *   │ ─────────────────────   │                         │
 *   │ スポーツと滞在を、       │   [ image / striped     │
 *   │ ひとつのキャンパスで。   │     placeholder well ]  │
 *   │                         │   ↳ vertical JP caption │
 *   │ Lede paragraph (drop)   │   ↳ slider counter       │
 *   │ ─────────────────────   │                         │
 *   │ Established · Site · …  │                         │
 *   │ [ Sumi CTA ] [ Ghost ]  │                         │
 *   └─────────────────────────┴─────────────────────────┘
 * No white-on-glass text, no translucent overlays, no atmosphere orbs.
 * Sumi text on washi throughout. Image, when present, fills the right column
 * cleanly via clip-path / inset positioning rather than being a full-bleed
 * underlay that the content sits on top of.
 * ========================================================================== */

/* Container — editorial wrap, ruled bottom hairline, generous vertical rhythm. */
.hero,
.hero--plain {
  position: relative;
  display: block;
  min-height: 0;
  align-items: stretch;
  padding: 56px 0 80px;
  background: var(--ga-bg);
  border-bottom: 1px solid var(--ga-line);
  overflow: hidden;
}

/* Kill the legacy color-tinted overlays. */
.hero::before,
.hero--plain::before { background: none; content: none; }

/* Kill the atmosphere "glass" effect — the editorial design replaces it with the
   ruled image well. The seasonal effect (sakura / snow / leaves / rain / sunrays)
   stays available so the Customizer control remains meaningful. */
.hero__atmosphere { display: none; }

/* Seasonal overlay — covers the entire hero, above the slides image but below
   the content/panel. Particles drift across the full hero in front of the image
   (so falling petals appear over a hero photo), and any opaque foreground
   element (hero panel washi-2 card, sumi CTA buttons) naturally covers the
   particles where it sits. z-index 2 sits between .hero__slides (z-index 1)
   and .hero__content (z-index 4). */
.hero__seasonal {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

/* Slides are a full-hero background. The image fills the entire hero so the
   editorial 2-column copy + panel sits on top of it. Use the Customizer
   "Hero Image Overlay Color / Strength" controls to dim the image enough for
   the sumi text and panel to remain legible over photos. */
.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--ga-washi-2);
  overflow: hidden;
}
.hero__image {
  /* Honour the Customizer "Hero Image Display / Zoom / Horizontal & Vertical
     Alignment" controls — these CSS variables come from the inline style attribute
     emitted by ga_minimal_get_hero_image_style() in inc/template-tags.php.
     The --ga-hero-image-opacity variable is set on :root by the Customizer
     "Hero Image Opacity" slider (default 1). */
  background-position: var(--ga-hero-image-position-x, center) var(--ga-hero-image-position-y, center);
  background-repeat: no-repeat;
  background-size: var(--ga-hero-image-size, cover);
  transform: scale(var(--ga-hero-image-scale, 1));
  transform-origin: var(--ga-hero-image-position-x, center) var(--ga-hero-image-position-y, center);
  opacity: var(--ga-hero-image-opacity, 1);
  z-index: 1;
}
/* Slider mode: inactive slides fade out, the active slide honours the user's
   "Hero Image Opacity" setting. Specificity (0,2,0)+ matches the legacy rules
   in the original-theme block above so this override wins via source order. */
.hero--slider .hero__image { opacity: 0; }
.hero--slider .hero__image.is-active { opacity: var(--ga-hero-image-opacity, 1); }

/* Plain (no-image) hero gets the same right-column striped well via a pseudo. */
.hero--plain { background: var(--ga-bg); }
.hero--plain::after {
  content: "";
  position: absolute;
  inset: 56px 24px 80px 50%;
  margin-left: 24px;
  border: 1px solid var(--ga-line);
  background:
    repeating-linear-gradient(135deg, rgba(17, 17, 15, 0.06) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, var(--ga-washi-2), #d8d2c4);
  z-index: 1;
}

/* Caption chip on the image well — top-right tag. */
.hero__slides + .hero__content::before,
.hero--plain .hero__content::before {
  content: "CAMPUS · 01";
  position: absolute;
  top: -32px;
  right: 16px;
  background: var(--ga-sumi);
  color: var(--ga-washi);
  padding: 10px 14px;
  font-family: var(--ga-font-latin);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 5;
}

/* Content area — left column, sumi text on washi, NO inherited white. */
.hero__content {
  position: relative;
  z-index: 4;
  width: min(calc(100% - 48px), var(--ga-max-width));
  margin: 0 auto;
  padding: 24px 0 0;
  color: var(--ga-sumi);
}

/* Two-column grid: copy left, image well right (the slides/::after sit absolutely
   in the right column; the grid reserves the space so the copy stays in the left). */
.hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  position: relative;
  align-items: start;
}
.hero__intro {
  position: relative;
  padding: 0 0 0 0;
  grid-column: 1;
}

/* --- Issue dateline (uses the existing .hero__eyebrow as the dateline text) - */
.hero__eyebrow {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 36px;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--ga-line);
  background: transparent;
  font-family: var(--ga-font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ga-muted);
  border-radius: 0;
  padding-block: 0 18px;
  padding-inline: 0;
  width: 100%;
}
.hero__eyebrow::before {
  content: "VOL.";
  color: var(--ga-sumi);
  font-weight: 500;
  margin-right: 8px;
}
.hero__eyebrow::after {
  content: "SPRING · 福岡 / 宗像";
  margin-left: auto;
  color: var(--ga-muted);
}

/* --- Headline ---------------------------------------------------------- */
.hero__title {
  font-family: var(--ga-font-mincho) !important;
  font-weight: 500;
  font-size: clamp(48px, 7vw, 96px) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.01em;
  color: var(--ga-sumi) !important;
  max-width: none;
  margin: 0;
}

/* Oversized kanji backdrop — sits behind the copy in the negative space. */
.hero__intro::after {
  content: "玄";
  position: absolute;
  top: -40px;
  right: -40px;
  font-family: var(--ga-font-mincho);
  font-size: clamp(180px, 22vw, 320px);
  line-height: 1;
  font-weight: 400;
  color: rgba(17, 17, 15, 0.05);
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

/* --- Lede paragraph ---------------------------------------------------- */
.hero__text {
  margin: 32px 0 0;
  max-width: 36ch;
  font-family: var(--ga-font-sans);
  font-size: 15px !important;
  line-height: 1.95 !important;
  color: var(--ga-ink) !important;
  font-weight: 400;
}
.hero__text::first-letter {
  font-family: var(--ga-font-mincho);
  font-size: 1.6em;
  line-height: 1;
  margin-right: 0.05em;
  color: var(--ga-sumi);
}

/* --- Buttons in hero --------------------------------------------------- */
.hero .button {
  min-height: 0;
  padding: 12px 22px;
  border-radius: 0;
  font-family: var(--ga-font-latin);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-width: 1px;
  box-shadow: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.hero .button:hover,
.hero .button:focus-visible {
  transform: none;
  box-shadow: none;
}
.hero .button--primary {
  background: var(--ga-sumi);
  color: var(--ga-washi);
  border: 1px solid var(--ga-sumi);
}
.hero .button--primary:hover,
.hero .button--primary:focus-visible {
  background: var(--ga-shu);
  border-color: var(--ga-shu);
  color: var(--ga-washi);
}
.hero .button--ghost {
  background: transparent;
  color: var(--ga-sumi);
  border: 1px solid var(--ga-sumi);
}
.hero .button--ghost:hover,
.hero .button--ghost:focus-visible {
  background: var(--ga-sumi);
  color: var(--ga-washi);
  border-color: var(--ga-sumi);
}
.hero__actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Slider controls — flat editorial counter strip, in-flow under the actions
   so it never collides with the right-column panel. Counter on the left, hairline
   track in the middle, sumi tally arrows on the right. */
.hero__slider-controls {
  position: static;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 36px 0 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  z-index: auto;
  max-width: 360px;
}
.hero__slider-button {
  width: 26px;
  height: 26px;
  background: transparent;
  border: 1px solid var(--ga-line-strong);
  border-radius: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ga-sumi);
  font-family: var(--ga-font-latin);
  font-size: 13px;
  line-height: 1;
  padding: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.hero__slider-button:hover,
.hero__slider-button:focus-visible {
  background: var(--ga-sumi);
  color: var(--ga-washi);
  border-color: var(--ga-sumi);
}
.hero__slider-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}
.hero__slider-count {
  font-family: var(--ga-font-mono);
  font-size: 11px;
  color: var(--ga-ink);
  letter-spacing: 0.12em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hero__slider-count [data-slider-current] { color: var(--ga-shu); font-weight: 600; }
.hero__slider-count-separator { opacity: 0.42; margin: 0 4px; }
.hero__slider-track {
  flex: 1 1 auto;
  min-width: 60px;
  height: 1px;
  background: var(--ga-line-strong);
  position: relative;
  border-radius: 0;
  overflow: visible;
}
.hero__slider-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  background: var(--ga-shu);
  border-radius: 0;
  box-shadow: none;
  transition: width 0.4s ease;
}
.hero__slider-pagination { display: none; } /* counter is the editorial signal */

/* --- Hero panel (right-side feature aside) ----------------------------- */
/* The optional .hero__panel — when set in Customizer's hero-panel-pages list —
   sits in the right column as a compact card anchored to the bottom edge of
   the image well. Sized restrained (max 320px, slim padding/type) so the hero
   title and lede in the left column are not visually crowded. With slides as a
   full-bleed hero background, the panel renders on top of the image; on plain
   mode the .hero--plain::after striped placeholder shows above the panel as
   the image-well stand-in. The "CAMPUS · 01" caption chip is also kept. */

.hero__panel {
  background: var(--ga-washi-2);
  border: 1px solid var(--ga-line);
  color: var(--ga-sumi);
  padding: 22px 24px;
  box-shadow: none;
  border-radius: 0;
  grid-column: 2;
  align-self: end;
  justify-self: end;
  width: 100%;
  max-width: 320px;
  position: relative;
  z-index: 5;
}
.hero__panel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  color: var(--ga-sumi);
  padding: 0;
  font-family: var(--ga-font-latin);
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 0;
  margin: 0 0 14px;
}
.hero__panel-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--ga-shu);
  display: inline-block;
  flex: 0 0 18px;
}
.hero__panel-title {
  font-family: var(--ga-font-mincho);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.32;
  color: var(--ga-sumi);
  margin: 0 0 14px;
  letter-spacing: 0;
}
.hero__highlights {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ga-line);
}
.hero__highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--ga-line);
  background: transparent;
  color: var(--ga-sumi);
  border-radius: 0;
  transition: padding-left 0.2s ease, color 0.2s ease;
}
.hero__highlight:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}
.hero__highlight:hover,
.hero__highlight:focus-visible {
  background: transparent;
  padding-left: 6px;
  color: var(--ga-shu);
}
.hero__highlight-index {
  font-family: var(--ga-font-mono);
  font-size: 11px;
  color: var(--ga-shu);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  min-width: 1.6em;
}
.hero__highlight-body { display: grid; gap: 2px; }
.hero__highlight-title {
  font-family: var(--ga-font-mincho);
  font-weight: 500;
  font-size: 14px;
  color: inherit;
  line-height: 1.4;
  transition: color 0.2s ease;
}
.hero__highlight:hover .hero__highlight-title,
.hero__highlight:focus-visible .hero__highlight-title { color: var(--ga-shu); }
.hero__highlight-meta {
  font-family: var(--ga-font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ga-muted);
  font-weight: 500;
}

/* --- Tablet (641-1100): keep 2-column but tighten the gap. ------------- */
/* Slides stay full-bleed at every breakpoint (covering the whole hero); only
   the .hero--plain::after striped placeholder is constrained to the right
   column since it's a decorative stand-in for the missing image well. */
@media (max-width: 1100px) {
  .hero__layout { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero__intro::after { font-size: clamp(140px, 20vw, 220px); right: -20px; }
  .hero--plain::after {
    inset: 56px 24px 80px 50%;
    margin-left: 16px;
  }
}

/* --- Mobile (≤700): single column. Image well lifted above the copy. ----- */
@media (max-width: 700px) {
  .hero,
  .hero--plain { padding: 32px 0 56px; }
  /* Both modes flip to flex column so the image well sits ABOVE the content
     (magazine layout: photo above body). Plain mode uses its ::after striped
     placeholder; image mode lifts .hero__slides out of full-bleed background
     into a constrained well at the top — otherwise a landscape hero photo
     gets cropped into a tall narrow strip behind the headline copy, which
     reads as awkwardly stretched on a phone. */
  .hero,
  .hero--plain {
    display: flex;
    flex-direction: column;
  }
  .hero__layout { grid-template-columns: 1fr; gap: 24px; }
  /* Specificity bumped to (0,2,0) via .hero descendant so this beats any
     same-class rule from a cached older CSS file or Customizer inline styles.
     Explicit responsive height pins the well to a compact landscape rectangle
     regardless of the Customizer "Hero Image Display" setting (cover/contain). */
  .hero .hero__slides,
  .hero--plain::after {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 auto;
    order: -1;
    margin: 0 24px 24px !important;
    width: auto !important;
    height: clamp(168px, 54vw, 220px) !important;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }
  /* Force the image inside the well to fill it cleanly. Overrides the
     Customizer-set --ga-hero-image-size so a portrait poster doesn't render
     letterboxed-tall on a phone — admins can still steer the focal point via
     "Hero Image Horizontal/Vertical Alignment" in the Customizer. */
  .hero .hero__slides .hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    transform: none !important;
  }
  .hero--plain .hero__content::before,
  .hero__slides + .hero__content::before { display: none; }
  .hero__content {
    width: min(calc(100% - 48px), var(--ga-max-width));
    padding-top: 0;
  }
  .hero__intro {
    width: 100%;
    max-width: none;
    grid-column: auto;
  }
  .hero__intro::after { display: none; }
  .hero__eyebrow {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 10px;
    padding: 0 0 14px;
    border: 0;
    border-bottom: 1px solid var(--ga-line);
  }
  .hero__eyebrow::after { margin-left: 0; width: 100%; }
  .hero__title {
    max-width: none;
    font-size: clamp(34px, 9.8vw, 42px) !important;
    line-height: 1.12 !important;
    letter-spacing: 0;
    overflow-wrap: normal;
    text-wrap: wrap;
    word-break: normal;
  }
  .hero__text {
    max-width: none;
    overflow-wrap: normal;
    word-break: normal;
  }
  .hero__slider-controls {
    margin: 24px 0 0;
    max-width: none;
    width: 100%;
  }
  .hero__panel {
    padding: 18px 20px;
    max-width: none;
    justify-self: stretch;
  }
  .hero__panel-title { font-size: 16px; }
  .hero__highlight { padding: 10px 0; }
  .hero__highlight-title { font-size: 13.5px; }
}

/* Hard mobile reset for the homepage hero. This intentionally comes last so
   older desktop/tablet editorial hero rules cannot squeeze the phone layout. */
@media (max-width: 700px) {
  body .site-main > .hero,
  body .site-main > .hero.hero--plain {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    min-height: 0 !important;
    padding: 24px 0 48px !important;
    align-items: start !important;
    overflow: hidden;
  }

  body .site-main > .hero .hero__slides,
  body .site-main > .hero.hero--plain::after {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    order: 0 !important;
    width: calc(100% - 48px) !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
    overflow: hidden !important;
  }

  body .site-main > .hero .hero__image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    transform: none !important;
  }

  body .site-main > .hero .hero__content {
    width: calc(100% - 48px) !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    color: var(--ga-sumi) !important;
  }

  body .site-main > .hero .hero__layout,
  body .site-main > .hero .hero__intro {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    grid-column: auto !important;
  }

  body .site-main > .hero .hero__slides + .hero__content::before,
  body .site-main > .hero.hero--plain .hero__content::before,
  body .site-main > .hero .hero__intro::after {
    display: none !important;
  }

  body .site-main > .hero .hero__eyebrow {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 20px !important;
    padding: 0 0 12px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ga-line) !important;
    background: transparent !important;
    font-size: 10px !important;
    line-height: 1.6 !important;
    letter-spacing: 0.08em !important;
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  body .site-main > .hero .hero__eyebrow::before {
    flex: 0 0 auto !important;
  }

  body .site-main > .hero .hero__eyebrow::after {
    flex: 0 0 100% !important;
    width: auto !important;
    margin-left: 0 !important;
  }

  body .site-main > .hero .hero__title {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    font-size: clamp(32px, 9vw, 42px) !important;
    line-height: 1.18 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-wrap: wrap !important;
  }

  body .site-main > .hero .hero__text {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 18px 0 0 !important;
    font-size: 15px !important;
    line-height: 1.85 !important;
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-wrap: wrap !important;
  }

  body .site-main > .hero .hero__text::first-letter {
    font-size: inherit !important;
    margin-right: 0 !important;
  }

  body .site-main > .hero .hero__actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 24px !important;
  }

  body .site-main > .hero .hero__actions .button {
    width: 100% !important;
    max-width: none !important;
    min-height: 44px !important;
    padding: 12px 16px !important;
    white-space: normal !important;
  }

  body .site-main > .hero .hero__slider-controls {
    width: 100% !important;
    max-width: none !important;
    margin: 24px 0 0 !important;
  }

  body .site-main > .hero .hero__panel {
    width: 100% !important;
    max-width: none !important;
    margin: 28px 0 0 !important;
    padding: 18px 20px !important;
    grid-column: auto !important;
    justify-self: stretch !important;
  }
}

/* Responsive hero fit guard. Keep this at the end of the stylesheet; the
   Customizer inline CSS mirrors the mobile selectors because it loads after style.css. */
@media (min-width: 701px) {
  .hero,
  .hero--plain {
    height: var(--ga-hero-available-height);
    min-height: 0;
    max-height: none;
    padding: 0;
  }

  .hero__content {
    display: grid;
    align-items: center;
    height: 100%;
    padding: clamp(24px, 5vh, 48px) 0;
  }

  .hero__layout {
    width: 100%;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .hero,
  .hero--plain {
    height: var(--ga-hero-available-height);
    min-height: 0;
    padding: 0;
  }

  .hero__content {
    padding-top: clamp(22px, 4vh, 36px);
    padding-bottom: clamp(22px, 4vh, 36px);
  }

  .hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.9fr);
    gap: 28px;
  }

  .hero__eyebrow {
    margin-bottom: 28px;
  }

  .hero__title {
    font-size: 64px !important;
    line-height: 1.02 !important;
  }

  .hero__text {
    max-width: 34ch;
    margin-top: 24px;
  }

  .hero__actions {
    margin-top: 30px;
  }

  .hero__slider-controls {
    margin-top: 28px;
  }

  .hero__panel {
    max-width: 300px;
    padding: 18px 20px;
  }
}

@media (min-width: 701px) and (max-width: 920px) {
  .hero__title {
    font-size: 52px !important;
  }

  .hero__panel {
    max-width: 280px;
  }
}

@media (min-width: 701px) and (max-height: 820px) {
  .hero,
  .hero--plain {
    height: var(--ga-hero-available-height);
    min-height: 0;
    padding: 0;
  }

  .hero__content {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .hero__layout {
    gap: 28px;
  }

  .hero__eyebrow {
    margin-bottom: 20px;
    padding-bottom: 12px;
  }

  .hero__title {
    font-size: 60px !important;
    line-height: 1.02 !important;
  }

  .hero__intro::after {
    top: -28px;
    right: -24px;
    font-size: 180px;
  }

  .hero__text {
    max-width: 34ch;
    margin-top: 18px;
    line-height: 1.75 !important;
  }

  .hero__actions,
  .hero__slider-controls {
    margin-top: 22px;
  }

  .hero__panel {
    max-width: 292px;
    padding: 16px 18px;
  }

  .hero__panel-title {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .hero__highlight {
    padding: 8px 0;
  }
}

@media (min-width: 701px) and (max-height: 660px) {
  .hero__layout {
    align-items: center;
    gap: 22px;
  }

  .hero__eyebrow {
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .hero__title {
    font-size: 50px !important;
  }

  .hero__text {
    margin-top: 14px;
    font-size: 14px !important;
    line-height: 1.65 !important;
  }

  .hero__actions {
    margin-top: 16px;
    gap: 10px;
  }

  .hero .button {
    min-height: 38px;
    padding: 9px 16px;
    font-size: 11px;
  }

  .hero__slider-controls {
    margin-top: 16px;
    gap: 12px;
  }

  .hero__slider-button {
    width: 24px;
    height: 24px;
  }

  .hero__panel {
    max-width: 280px;
    padding: 14px 16px;
  }

  .hero__panel-eyebrow {
    margin-bottom: 8px;
  }

  .hero__panel-title {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .hero__highlight {
    gap: 10px;
    padding: 6px 0;
  }

  .hero__highlight-title {
    font-size: 13px;
    line-height: 1.3;
  }

  .hero__highlight-meta {
    font-size: 8px;
  }
}

@media (min-width: 701px) and (max-height: 580px) {
  .hero__content {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .hero__title {
    font-size: 44px !important;
  }

  .hero__text {
    max-width: 42ch;
    margin-top: 10px;
    line-height: 1.55 !important;
  }

  .hero__actions,
  .hero__slider-controls {
    margin-top: 12px;
  }

  .hero__panel {
    padding: 12px 14px;
  }
}

@media (min-width: 701px) and (max-width: 920px) and (max-height: 820px) {
  .hero__layout {
    gap: 22px;
  }

  .hero__title {
    font-size: 50px !important;
  }

  .hero__panel {
    max-width: 270px;
  }
}

@media (min-width: 701px) and (max-width: 920px) and (max-height: 580px) {
  .hero__title {
    font-size: 44px !important;
  }

  .hero__panel {
    max-width: 260px;
  }
}

@media (max-width: 700px) {
  body .site-main > .hero,
  body .site-main > .hero.hero--plain {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    min-height: 0 !important;
    padding: 24px 0 48px !important;
    align-items: start !important;
    overflow: hidden;
  }

  body .site-main > .hero .hero__slides,
  body .site-main > .hero.hero--plain::after {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    order: 0 !important;
    width: calc(100% - 48px) !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
    overflow: hidden !important;
  }

  body .site-main > .hero .hero__image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    transform: none !important;
  }

  body .site-main > .hero .hero__content {
    width: calc(100% - 48px) !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    color: var(--ga-sumi) !important;
  }

  body .site-main > .hero .hero__layout,
  body .site-main > .hero .hero__intro {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    grid-column: auto !important;
  }

  body .site-main > .hero .hero__slides + .hero__content::before,
  body .site-main > .hero.hero--plain .hero__content::before,
  body .site-main > .hero .hero__intro::after {
    display: none !important;
  }

  body .site-main > .hero .hero__eyebrow {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 20px !important;
    padding: 0 0 12px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ga-line) !important;
    background: transparent !important;
    font-size: 10px !important;
    line-height: 1.6 !important;
    letter-spacing: 0.08em !important;
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  body .site-main > .hero .hero__eyebrow::before {
    flex: 0 0 auto !important;
  }

  body .site-main > .hero .hero__eyebrow::after {
    flex: 0 0 100% !important;
    width: auto !important;
    margin-left: 0 !important;
  }

  body .site-main > .hero .hero__title {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    font-size: 38px !important;
    line-height: 1.18 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    text-wrap: wrap !important;
  }

  body .site-main > .hero .hero__text {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 18px 0 0 !important;
    font-size: 15px !important;
    line-height: 1.85 !important;
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    text-wrap: wrap !important;
  }

  body .site-main > .hero .hero__text::first-letter {
    font-size: inherit !important;
    margin-right: 0 !important;
  }

  body .site-main > .hero .hero__actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 24px !important;
  }

  body .site-main > .hero .hero__actions .button {
    width: 100% !important;
    max-width: none !important;
    min-height: 44px !important;
    padding: 12px 16px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body .site-main > .hero .hero__slider-controls {
    width: 100% !important;
    max-width: none !important;
    margin: 24px 0 0 !important;
  }

  body .site-main > .hero .hero__panel {
    width: 100% !important;
    max-width: none !important;
    margin: 28px 0 0 !important;
    padding: 18px 20px !important;
    grid-column: auto !important;
    justify-self: stretch !important;
  }
}

@media (max-width: 480px) {
  body .site-main > .hero .hero__slides,
  body .site-main > .hero.hero--plain::after,
  body .site-main > .hero .hero__content {
    width: calc(100% - 32px) !important;
  }

  body .site-main > .hero .hero__title {
    font-size: 32px !important;
  }
}

@media (max-width: 360px) {
  body .site-main > .hero .hero__title {
    font-size: 30px !important;
  }

  body .site-main > .hero .hero__text {
    font-size: 14px !important;
  }
}

/* Mobile hamburger panel.
   theme.js teleports .primary-nav out of .site-header to <body> on mobile so
   that `position: fixed` is anchored to the viewport, NOT to a containing
   block created by an ancestor (sticky behavior + backdrop-filter on
   .site-header otherwise causes the panel to land at the top of the document
   instead of below the visible header). Position uses static CSS variables
   only — `--ga-header-offset` is the ticker offset, `--ga-site-header-height`
   is auto-measured by the first IIFE in theme.js on resize/font-load. Earlier
   versions read header.getBoundingClientRect().bottom on every open, but on
   mobile Safari the measurement was fragile (URL-bar show/hide + reflow
   timing) and the panel landed at the wrong coordinate after scrolling.

   While the menu is open, theme.js pins <body> at position:fixed top:-scrollY
   to lock scroll (the standard iOS-Safari-friendly recipe). That breaks the
   sticky behaviour of .top-ticker and .site-header — they would otherwise
   scroll out of view because there is no scroll context any more — so we
   re-pin them with position:fixed at the viewport top below. */
@media (max-width: 980px) {
  body.has-menu-open .top-ticker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 240;
  }

  body.has-menu-open .site-header {
    position: fixed;
    top: var(--ga-header-offset);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 200;
  }

  .primary-nav {
    position: fixed;
    top: calc(var(--ga-header-offset) + var(--ga-site-header-height));
    left: max(0.75rem, env(safe-area-inset-left));
    right: max(0.75rem, env(safe-area-inset-right));
    z-index: 130;
    width: auto;
    max-height: 0;
    overflow: hidden;
    overscroll-behavior: contain;
    padding: 0.75rem;
    background: rgba(244, 241, 234, 0.98);
    border: 1px solid var(--ga-line);
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, max-height 0.2s ease;
    scrollbar-width: thin;
  }

  .primary-nav.is-open {
    max-height: calc(100vh - var(--ga-header-offset) - var(--ga-site-header-height) - 0.75rem - env(safe-area-inset-bottom));
    overflow-y: auto;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  @supports (height: 100dvh) {
    .primary-nav.is-open {
      max-height: calc(100dvh - var(--ga-header-offset) - var(--ga-site-header-height) - 0.75rem - env(safe-area-inset-bottom));
    }
  }
}

