:root {
  --ink: #171717;
  --muted: #5c625d;
  --paper: #fffaf1;
  --surface: #ffffff;
  --line: #ddd5c7;
  --green: #145a3c;
  --green-dark: #0a2d22;
  --red: #b72c2c;
  --gold: #e5a928;
  --blue: #1f5b84;
  --shadow: 0 20px 50px rgba(23, 23, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 30;
  transform: translateY(-180%);
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  text-decoration: none;
  border-radius: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 241, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.dropdown-toggle {
  padding: 10px 13px;
  border-radius: 4px;
  color: #28342e;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.dropdown-toggle:hover,
.dropdown-toggle:focus-visible {
  background: #efe4d0;
  outline: none;
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dropdown-toggle span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 25;
  display: none;
  min-width: 230px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dropdown-menu a {
  display: block;
  padding: 11px 12px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
  display: block;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../images/team-celebration.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 20, 14, 0.86), rgba(7, 20, 14, 0.5) 46%, rgba(7, 20, 14, 0.12));
}

.hero-content {
  width: min(880px, 100%);
  padding: clamp(72px, 10vw, 132px) clamp(20px, 6vw, 80px);
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

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

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3.8rem, 12vw, 9rem);
  text-transform: uppercase;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.hero-content p:not(.eyebrow) {
  max-width: 520px;
  margin-bottom: 28px;
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 4px;
  font-weight: 900;
  text-decoration: none;
}

.button {
  background: var(--gold);
  color: #1f1604;
}

.button:hover,
.button:focus-visible {
  background: #f1bd48;
  outline: none;
}

.text-link {
  border: 1px solid var(--green);
  color: var(--green);
}

.text-link:hover,
.text-link:focus-visible {
  background: var(--green);
  color: white;
  outline: none;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 120px) 0;
}

.story-section,
.split-section,
.info-section,
.place-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.split-section {
  grid-template-columns: minmax(320px, 1.05fr) minmax(0, 0.95fr);
}

.section-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.image-panel {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #ddd;
}

.image-panel img {
  width: 100%;
  height: min(520px, 58vw);
  min-height: 330px;
  object-fit: cover;
}

.image-panel.wide img {
  height: 100%;
  min-height: 460px;
}

.theme-band,
.poster-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(26px, 5vw, 60px);
  align-items: center;
  padding: clamp(64px, 8vw, 96px) clamp(20px, 6vw, 80px);
}

.theme-band {
  background: var(--green-dark);
  color: white;
}

.theme-band p:last-child {
  max-width: 520px;
  color: #d9eadf;
  font-size: 1.25rem;
}

.poster-band {
  background: #f1eadf;
}

.poster-band figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.poster-band img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.poster-band p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 36px;
}

.teams-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.98fr) minmax(0, 1.02fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: stretch;
}

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

.teams-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 23, 23, 0.06);
}

.teams-list strong {
  font-size: 1.03rem;
}

.teams-list span {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 900;
}

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

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

.event-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(7, 20, 14, 0.9), rgba(7, 20, 14, 0.16));
}

.event-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.event-card:hover img,
.event-card:focus-visible img {
  transform: scale(1.04);
}

.event-card span {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-card strong {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.muted-card::after {
  background: linear-gradient(0deg, rgba(31, 91, 132, 0.88), rgba(20, 90, 60, 0.16));
}

.leaders-section {
  width: min(1100px, calc(100% - 40px));
}

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

.leader-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(23, 23, 23, 0.08);
}

.leader-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ddd;
}

.leader-card h3,
.leader-card p {
  padding: 0 18px;
}

.leader-card h3 {
  margin-top: 18px;
  text-transform: capitalize;
}

.leader-card p {
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 700;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 12px 14px;
  border-left: 5px solid var(--red);
  background: var(--surface);
  border-radius: 4px;
  font-weight: 800;
}

.place-card {
  padding: clamp(28px, 4vw, 44px);
  background: linear-gradient(135deg, #fffdf8, #f3ead8);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(23, 23, 23, 0.08);
}

.location-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 24px;
}

.location-pills span {
  padding: 8px 10px;
  background: #e6f0e9;
  border: 1px solid #bdd7c7;
  border-radius: 999px;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 900;
}

.map-shell {
  overflow: hidden;
  padding: 12px;
  background: linear-gradient(135deg, var(--green), var(--blue) 55%, var(--gold));
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.map-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 12px;
  color: white;
}

.map-pin {
  width: 16px;
  height: 16px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.map-frame {
  overflow: hidden;
  min-height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 6px;
  background: #d9ded9;
}

.map-frame iframe,
.video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.visitor-tours-section .section-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.visitor-tours-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: stretch;
}

.tour-card-grid {
  display: grid;
  gap: 18px;
}

.tour-place-card,
.exchange-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(23, 23, 23, 0.08);
}

.tour-place-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  color: inherit;
  text-decoration: none;
}

.tour-place-card img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  background: #eee5d6;
}

.tour-place-card div,
.exchange-card div {
  padding: 22px;
}

.tour-place-card span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 10px;
  background: #e7f0f7;
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tour-place-card h3,
.exchange-card h3 {
  color: var(--green-dark);
}

.tour-place-card p,
.exchange-card p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.tour-place-card:hover img,
.tour-place-card:focus-visible img {
  filter: saturate(1.12);
}

.tour-place-card:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 4px;
}

.exchange-card {
  display: grid;
}

.exchange-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: #eee5d6;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.booking-actions .button,
.booking-actions .text-link {
  flex: 1 1 190px;
}

.video-section {
  width: min(1180px, calc(100% - 40px));
}

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

.video-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 23, 23, 0.09);
}

.play-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  border: 0;
  cursor: pointer;
}

.play-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, opacity 220ms ease;
}

.play-video:hover img,
.play-video:focus-visible img {
  transform: scale(1.04);
  opacity: 0.86;
}

.play-video:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: -4px;
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 50px;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: var(--red);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 14px;
  border-bottom: 11px solid transparent;
  border-left: 18px solid white;
  border-top: 11px solid transparent;
}

.video-card h3 {
  min-height: 76px;
  margin: 0;
  padding: 18px;
  font-size: 1.05rem;
}

.video-embed {
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.subpage-hero {
  min-height: 520px;
  display: grid;
  align-items: end;
  padding: clamp(86px, 11vw, 150px) clamp(20px, 6vw, 80px);
  background: linear-gradient(135deg, rgba(10, 45, 34, 0.92), rgba(31, 91, 132, 0.72)), url("../images/team-celebration.jpg") center / cover no-repeat;
  color: white;
}

.subpage-hero > div {
  width: min(880px, 100%);
}

.subpage-hero h1 {
  font-size: clamp(3.2rem, 8vw, 7rem);
}

.subpage-hero p:not(.eyebrow) {
  max-width: 640px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.event-hero {
  background: linear-gradient(135deg, rgba(10, 45, 34, 0.92), rgba(183, 44, 44, 0.56)), url("../images/first-koshien-logo.jpg") center / cover no-repeat;
}

.second-event-hero {
  background: linear-gradient(135deg, rgba(10, 45, 34, 0.9), rgba(31, 91, 132, 0.68)), url("../images/second-koshien-logo.jpg") center / cover no-repeat;
}

.news-hero {
  background: linear-gradient(135deg, rgba(10, 45, 34, 0.9), rgba(183, 44, 44, 0.52)), url("../images/team-celebration.jpg") center / cover no-repeat;
}

.news-page-intro {
  padding-bottom: 0;
}

.news-page-intro .section-heading p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.news-list-section {
  padding-top: clamp(52px, 7vw, 86px);
}

.news-grid {
  display: grid;
  gap: 24px;
}

.news-card,
.news-empty {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(23, 23, 23, 0.08);
}

.news-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1fr);
}

.news-card-image {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  background: #eee5d6;
}

.news-card-body,
.news-empty {
  padding: clamp(24px, 4vw, 42px);
}

.news-meta,
.news-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.news-meta {
  margin-bottom: 18px;
}

.news-meta span,
.news-related-pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-meta span:first-child {
  background: #f8e4df;
  color: var(--red);
}

.news-meta span:last-child,
.news-related-pill {
  background: #e7f0f7;
  color: var(--blue);
}

.news-card h3,
.news-empty h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.news-source {
  margin-bottom: 14px;
  color: var(--green);
  font-weight: 900;
}

.news-card-body > p:not(.news-source) {
  color: var(--muted);
  font-size: 1.05rem;
}

.news-related-pill {
  margin: 10px 0 18px;
}

.news-card-actions {
  margin-bottom: 18px;
}

.news-video-card {
  margin-top: 8px;
  box-shadow: none;
}

.news-empty {
  max-width: 780px;
}

.news-empty p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.event-detail-band {
  width: min(1180px, calc(100% - 40px));
  margin-top: clamp(52px, 7vw, 86px);
  border-radius: 8px;
}

.event-logo-mark {
  width: clamp(120px, 18vw, 190px);
  height: clamp(120px, 18vw, 190px);
  margin-bottom: 22px;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.event-logo-contain {
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  object-fit: contain;
}

.event-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.date-card {
  min-width: 0;
  padding: clamp(28px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(23, 23, 23, 0.08);
}

.date-card h2 {
  color: var(--green);
  overflow-wrap: anywhere;
}

.date-line {
  display: block;
}

.date-card p {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.day-card {
  min-height: 220px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 7px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(23, 23, 23, 0.08);
}

.day-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  background: #e7f0f7;
  border-radius: 999px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.day-card h3 {
  color: var(--green-dark);
}

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

.active-day {
  border-top-color: var(--red);
}

.active-day span {
  background: #f8e4df;
  color: var(--red);
}

.empty-state {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.coming-soon-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  width: min(1180px, calc(100% - 40px));
  margin-top: clamp(52px, 7vw, 86px);
  padding: 0;
  background: linear-gradient(135deg, var(--green-dark), var(--blue) 68%, #7b2424);
  border-radius: 8px;
  color: white;
  box-shadow: var(--shadow);
}

.coming-soon-panel > div {
  padding: clamp(32px, 6vw, 64px);
}

.coming-soon-panel .eyebrow {
  color: var(--gold);
}

.coming-soon-panel h2 {
  color: white;
  font-size: clamp(3rem, 7vw, 6.6rem);
}

.coming-soon-panel p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

.light-button {
  background: white;
  color: var(--green-dark);
}

.coming-soon-panel figure {
  min-height: 360px;
  margin: 0;
  background: white;
}

.coming-soon-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(28px, 5vw, 56px);
}

.admin-hero {
  background: linear-gradient(135deg, rgba(10, 45, 34, 0.94), rgba(31, 91, 132, 0.62)), url("../images/teams-field.jpg") center / cover no-repeat;
}

.custom-event-hero {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.event-extra-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.event-story-block,
.activity-list {
  padding: clamp(28px, 4vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(23, 23, 23, 0.08);
}

.completed-event-hero {
  min-height: 500px;
  background: linear-gradient(135deg, rgba(10, 45, 34, 0.9), rgba(31, 91, 132, 0.66)), url("../images/second-koshien/team-photo.jpeg") center / cover no-repeat;
}

.result-score {
  display: grid;
  gap: 6px;
  margin: 26px 0 16px;
  padding: 18px;
  background: #e7f0f7;
  border-left: 6px solid var(--blue);
  border-radius: 6px;
}

.result-score span,
.achievement-card > p {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-score strong {
  color: var(--green-dark);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
}

.event-date {
  margin-bottom: 0;
  font-weight: 800;
}

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

.achievement-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 230px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 7px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(23, 23, 23, 0.08);
}

.achievement-card > p,
.achievement-card > h3,
.achievement-card > span {
  margin: 0;
}

.achievement-card h3 {
  color: var(--green-dark);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.achievement-card span {
  color: var(--muted);
  line-height: 1.5;
}

.champion-card {
  border-top-color: var(--gold);
  background: linear-gradient(135deg, #fffdf8, #f7ecd1);
}

.champion-card > p {
  color: #8d6416;
}

.event-video-section {
  padding-top: 0;
}

.event-video-card {
  max-width: 820px;
}

.event-gallery-section {
  padding-top: 0;
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.event-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 23, 23, 0.09);
}

.uploaded-video-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(23, 23, 23, 0.09);
}

.uploaded-video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}

.uploaded-video-card h3 {
  min-height: 76px;
  margin: 0;
  padding: 18px;
  font-size: 1.05rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.admin-news-layout {
  padding-top: 0;
}

.admin-login {
  width: min(760px, calc(100% - 40px));
}

.compact-admin-form {
  max-width: 620px;
  margin: 0 auto;
}

.admin-section-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

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

.admin-form,
.admin-preview-card,
.backup-panel,
.admin-event-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(23, 23, 23, 0.08);
}

.admin-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
}

.admin-form .section-heading {
  margin-bottom: 4px;
}

.admin-form label,
.backup-panel label {
  display: grid;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 900;
}

.admin-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-form .checkbox-label input {
  width: 18px;
  min-height: 18px;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.backup-panel textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

.admin-form .checkbox-label input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.admin-form textarea,
.backup-panel textarea {
  resize: vertical;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.backup-panel textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(31, 91, 132, 0.18);
}

.admin-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-status,
.admin-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.admin-preview-panel {
  display: grid;
  gap: 22px;
}

.admin-preview-card,
.backup-panel {
  overflow: hidden;
  padding: 24px;
}

.admin-preview-card img {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 22px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee5d6;
}

.admin-preview-card h2,
.backup-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.backup-panel {
  display: grid;
  gap: 14px;
  background: var(--green-dark);
  color: white;
}

.backup-panel .eyebrow {
  color: var(--gold);
}

.backup-panel h2 {
  margin-bottom: 4px;
}

.backup-panel textarea {
  min-height: 180px;
  background: #fffdf8;
}

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

.danger-button:hover,
.danger-button:focus-visible {
  background: #922020;
}

.admin-list-section {
  padding-top: 0;
}

.admin-event-list {
  display: grid;
  gap: 14px;
}

.admin-event-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.admin-event-item img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 6px;
  background: #eee5d6;
}

.admin-event-item h3 {
  margin-bottom: 4px;
}

.admin-event-item p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 6vw, 80px);
  background: var(--ink);
  color: white;
}

.site-footer p {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 14px;
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    justify-content: space-between;
    width: 100%;
    padding: 13px 14px;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 4px;
    box-shadow: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(7, 20, 14, 0.88), rgba(7, 20, 14, 0.28));
  }

  .story-section,
  .split-section,
  .info-section,
  .place-section,
  .theme-band,
  .poster-band,
  .teams-layout,
  .event-grid,
  .two-column-list,
  .event-summary,
  .day-grid,
  .empty-state,
  .coming-soon-panel,
  .news-card,
  .admin-layout,
  .admin-field-grid,
  .event-extra-section,
  .visitor-tours-layout,
  .tour-place-card {
    grid-template-columns: 1fr;
  }

  .admin-section-title {
    flex-direction: column;
  }

  .admin-event-item {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .admin-event-item img {
    width: 74px;
    height: 74px;
  }

  .admin-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .split-section .image-panel {
    order: 2;
  }

  .leader-grid,
  .video-grid,
  .achievement-grid,
  .event-gallery {
    grid-template-columns: 1fr;
  }

  .poster-band img {
    height: 360px;
  }

  .news-card-image {
    height: 320px;
    min-height: 0;
  }

  .tour-place-card img {
    height: 260px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 68px;
    padding-inline: 16px;
  }

  .brand span {
    max-width: 150px;
    line-height: 1.1;
  }

  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    min-height: 600px;
  }

  .hero-content {
    padding: 76px 20px 64px;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 62px 0;
  }

  .image-panel img,
  .image-panel.wide img {
    min-height: 260px;
    height: 320px;
  }

  .theme-band,
  .poster-band {
    padding: 54px 18px;
  }

  .poster-band img {
    height: 300px;
  }

  .teams-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .admin-button-row,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

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