:root {
  --red-1000: #340811;
  --red-950: #4e0c1c;
  --red-900: #71152a;
  --red-850: #851a30;
  --red-800: #9a2038;
  --red-700: #b52d44;
  --red-600: #cf4354;
  --red-500: #e15c66;
  --navy: #12263a;
  --navy-soft: #21384d;
  --gold: #c7a66a;
  --gold-bright: #e8c88e;
  --cream: #f5f0e7;
  --paper: #fbf8f1;
  --paper-strong: #fffdf8;
  --ink: #202126;
  --ink-soft: #51545d;
  --muted: #7b7d84;
  --line: rgba(84, 58, 45, 0.14);
  --line-dark: rgba(255, 245, 228, 0.16);
  --shadow: 0 24px 70px rgba(46, 15, 19, 0.11);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 30px;
  --header-height: 76px;
  --page-width: 1240px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 45%, rgba(199, 166, 106, 0.08), transparent 28rem),
    var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

body.auth-pending {
  overflow: hidden;
}

body.auth-pending .site-header,
body.auth-pending main,
body.auth-pending .site-footer {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

img,
svg {
  display: block;
}

::selection {
  color: var(--paper-strong);
  background: var(--red-700);
}

.skip-link {
  position: fixed;
  z-index: 300;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--paper-strong);
  background: var(--red-850);
  border-radius: 8px;
  transform: translateY(-150%);
}

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

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(235px, 0.9fr) auto auto;
  align-items: center;
  width: 100%;
  height: var(--header-height);
  padding: 0 30px;
  color: rgba(255, 248, 237, 0.92);
  background: rgba(64, 9, 21, 0.88);
  border-bottom: 1px solid rgba(255, 242, 223, 0.11);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(64, 9, 21, 0.97);
  box-shadow: 0 12px 40px rgba(35, 5, 11, 0.17);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 37px;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(236, 199, 137, 0.42);
  border-radius: 50%;
  background: rgba(255, 244, 227, 0.04);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  fill: var(--gold-bright);
  stroke: rgba(255, 247, 234, 0.5);
  stroke-width: 0.7;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.brand-copy strong {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.25;
}

.brand-copy small {
  margin-top: 2px;
  color: rgba(255, 244, 229, 0.48);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 26px);
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  color: rgba(255, 247, 235, 0.62);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 160ms ease;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--gold-bright);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: #fff6e9;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 28px;
}

.login-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: rgba(255, 244, 229, 0.54);
  background: transparent;
  border: 1px solid rgba(255, 243, 226, 0.16);
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.login-chip:hover,
.login-chip.is-authenticated {
  color: rgba(255, 247, 235, 0.9);
  background: rgba(255, 245, 229, 0.05);
  border-color: rgba(232, 200, 142, 0.32);
}

.login-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e4bf79;
  box-shadow: 0 0 0 4px rgba(228, 191, 121, 0.10);
}

.admin-link {
  padding: 9px 0;
  color: var(--gold-bright);
  font-size: 11px;
  white-space: nowrap;
}

.admin-link:hover {
  color: #fff1d8;
}

.platform-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: rgba(255, 247, 235, 0.84);
  background: transparent;
  border: 1px solid rgba(255, 243, 226, 0.22);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  transition: border-color 160ms ease, background 160ms ease;
}

.platform-shortcut:hover {
  background: rgba(255, 245, 229, 0.07);
  border-color: rgba(255, 243, 226, 0.42);
}

.platform-shortcut svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid rgba(255, 243, 226, 0.2);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 15px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.mobile-nav {
  position: fixed;
  z-index: 120;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(86vw, 370px);
  height: 100dvh;
  padding: 28px;
  color: var(--paper);
  background: var(--red-950);
  box-shadow: -30px 0 80px rgba(23, 2, 8, 0.35);
  transform: translateX(105%);
  transition: transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  color: var(--gold-bright);
  border-bottom: 1px solid var(--line-dark);
  font-size: 14px;
  letter-spacing: 0.1em;
}

.mobile-nav-head button {
  padding: 0;
  color: rgba(255, 245, 230, 0.55);
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 12px;
}

.mobile-nav > a {
  padding: 13px 0;
  color: rgba(255, 247, 235, 0.78);
  border-bottom: 1px solid rgba(255, 240, 219, 0.08);
  font-size: 17px;
}

.mobile-nav > a.is-active {
  color: var(--gold-bright);
}

.mobile-study-button {
  margin-top: auto;
  padding: 13px;
  color: var(--paper);
  background: rgba(255, 244, 227, 0.08);
  border: 1px solid rgba(255, 244, 227, 0.18);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.mobile-login-button {
  margin-top: 14px;
  padding: 13px;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(255, 244, 227, 0.18);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.mobile-nav .admin-link {
  margin-top: 8px;
  padding: 13px;
  text-align: center;
  background: rgba(255, 244, 227, 0.08);
  border-radius: 10px;
}

.app-shell {
  min-height: calc(100vh - 260px);
}

.page-view {
  animation: page-in 360ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-footer {
  position: relative;
  overflow: hidden;
  color: rgba(255, 245, 230, 0.72);
  background:
    radial-gradient(circle at 15% 0%, rgba(175, 42, 60, 0.4), transparent 32rem),
    linear-gradient(135deg, #3d0915, #26060d);
}

.site-footer::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(86%, 1180px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 200, 142, 0.38), transparent);
  content: "";
  transform: translateX(-50%);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(300px, 1.5fr) minmax(240px, 1fr) auto;
  gap: 50px;
  align-items: end;
  width: min(calc(100% - 64px), var(--page-width));
  margin: 0 auto;
  padding: 72px 0 42px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: var(--gold-bright);
  border: 1px solid rgba(231, 198, 138, 0.3);
  border-radius: 50%;
  font-size: 24px;
}

.footer-brand strong {
  display: block;
  color: var(--paper);
  font-size: 24px;
  font-weight: 620;
  letter-spacing: 0.12em;
}

.footer-brand p,
.footer-motto p {
  margin: 4px 0 0;
  color: rgba(255, 243, 226, 0.46);
  font-size: 12px;
}

.footer-motto p {
  color: rgba(255, 244, 228, 0.76);
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.12em;
  line-height: 1.7;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  color: rgba(255, 244, 229, 0.42);
  font-size: 11px;
}

.footer-note {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  width: min(calc(100% - 64px), var(--page-width));
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid rgba(255, 245, 230, 0.08);
}

.footer-note p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 244, 229, 0.34);
  font-size: 11px;
  line-height: 1.8;
}

.footer-note span {
  color: rgba(255, 244, 229, 0.32);
  font-size: 11px;
  white-space: nowrap;
}

.footer-note b {
  color: rgba(255, 244, 229, 0.55);
  font-weight: 500;
}

.glow-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.glow-surface::before {
  position: absolute;
  z-index: 8;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    230px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(255, 236, 197, 0.18),
    rgba(255, 195, 116, 0.07) 34%,
    transparent 72%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 260ms ease;
}

.glow-surface.is-pointer-glow::before {
  opacity: 1;
}

.hero-panel,
.entry-card,
.course-card,
.knowledge-card,
.org-stat,
.service-card,
.sidebar-card,
.mini-card,
.admin-panel,
.table-shell,
.gallery-item {
  box-shadow:
    0 1px 1px rgba(50, 25, 22, 0.035),
    0 12px 34px rgba(73, 22, 28, 0.07);
}

.policy-list {
  box-shadow:
    0 1px 1px rgba(50, 25, 22, 0.035),
    0 16px 40px rgba(73, 22, 28, 0.07);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 540;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--red-950);
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.button-primary:hover {
  background: #f1d8a9;
}

.button-secondary {
  color: var(--ink);
  background: transparent;
  border-color: rgba(39, 34, 33, 0.2);
}

.button-secondary:hover {
  background: rgba(69, 45, 36, 0.04);
  border-color: rgba(39, 34, 33, 0.36);
}

.button-light {
  color: var(--paper);
  background: rgba(255, 244, 227, 0.06);
  border-color: rgba(255, 244, 227, 0.2);
}

.button-light:hover {
  background: rgba(255, 244, 227, 0.1);
  border-color: rgba(255, 244, 227, 0.36);
}

.button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

/* Home */
.home-hero {
  position: relative;
  display: flex;
  min-height: 780px;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 62px) 0 68px;
  color: var(--paper);
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 199, 117, 0.34), transparent 28rem),
    radial-gradient(circle at 20% 85%, rgba(234, 81, 82, 0.34), transparent 33rem),
    linear-gradient(130deg, #5a0d1c, #8c1c32 52%, #b02c43);
}

.hero-mesh,
.starfield,
.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-mesh::before,
.hero-mesh::after {
  position: absolute;
  content: "";
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(255, 242, 223, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 242, 223, 0.035) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: radial-gradient(circle at 48% 45%, black, transparent 74%);
}

.hero-mesh::before {
  inset: 0;
}

.hero-mesh::after {
  inset: 45% -20% -35% 35%;
  background-size: 44px 44px;
  opacity: 0.2;
  transform: rotate(-13deg);
}

.hero-noise {
  opacity: 0.065;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.aura {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.86;
  pointer-events: none;
}

.aura-yellow {
  top: -110px;
  left: 6%;
  width: 430px;
  height: 430px;
  background: rgba(255, 201, 92, 0.78);
  animation: aura-a 8s ease-in-out infinite;
}

.aura-orange {
  right: 9%;
  bottom: -190px;
  width: 520px;
  height: 520px;
  background: rgba(246, 117, 59, 0.66);
  animation: aura-b 8s ease-in-out infinite;
}

.aura-white {
  top: 10%;
  right: 22%;
  width: 300px;
  height: 300px;
  background: rgba(255, 248, 232, 0.5);
  animation: aura-c 8s ease-in-out infinite;
}

@keyframes aura-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(260px, 110px, 0) scale(1.14); }
}

@keyframes aura-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50% { transform: translate3d(-260px, -80px, 0) scale(0.9); }
}

@keyframes aura-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.94); }
  50% { transform: translate3d(-170px, 200px, 0) scale(1.12); }
}

.starfield {
  overflow: hidden;
}

.starfield span {
  position: absolute;
  width: var(--size);
  height: var(--size);
  background: var(--star-color);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 92%, 50% 70%, 21% 92%, 32% 57%, 2% 35%, 39% 35%);
  opacity: var(--opacity);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--star-color) 45%, transparent));
  animation: star-float var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes star-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: var(--opacity); }
  50% { transform: translate3d(var(--dx), var(--dy), 0) rotate(18deg) scale(0.75); opacity: calc(var(--opacity) * 0.58); }
}

.hero-large-stars {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.hero-large-star {
  position: absolute;
  display: block;
  background: linear-gradient(135deg, #fff5cd, #efbe61 58%, #c9782d);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 92%, 50% 70%, 21% 92%, 32% 57%, 2% 35%, 39% 35%);
  filter:
    drop-shadow(0 0 10px rgba(255, 219, 146, 0.56))
    drop-shadow(0 0 24px rgba(241, 166, 71, 0.34));
  animation: big-star-drift 8s ease-in-out infinite;
}

.hero-large-star.star-a {
  top: 17%;
  left: 38%;
  width: 34px;
  height: 34px;
  opacity: 0.56;
}

.hero-large-star.star-b {
  top: 11%;
  right: 28%;
  width: 22px;
  height: 22px;
  opacity: 0.42;
  animation-delay: -2s;
}

.hero-large-star.star-c {
  top: 36%;
  right: 5%;
  width: 28px;
  height: 28px;
  opacity: 0.46;
  animation-delay: -4.3s;
}

.hero-large-star.star-d {
  bottom: 24%;
  left: 8%;
  width: 42px;
  height: 42px;
  opacity: 0.6;
  animation-delay: -5.5s;
}

.hero-large-star.star-e {
  right: 19%;
  bottom: 15%;
  width: 18px;
  height: 18px;
  opacity: 0.5;
  animation-delay: -1.7s;
}

@keyframes big-star-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  35% { transform: translate3d(18px, -22px, 0) rotate(11deg) scale(0.88); }
  70% { transform: translate3d(-14px, 12px, 0) rotate(-7deg) scale(1.08); }
}

.hero-boat {
  position: absolute;
  z-index: 1;
  bottom: -18px;
  left: clamp(22px, 3.5vw, 62px);
  width: clamp(190px, 19vw, 286px);
  height: auto;
  opacity: 0.72;
  pointer-events: none;
  filter:
    drop-shadow(0 0 18px rgba(255, 209, 129, 0.3))
    drop-shadow(0 20px 34px rgba(51, 4, 12, 0.28));
  animation: boat-drift 8s ease-in-out infinite;
}

@keyframes boat-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
  50% { transform: translate3d(18px, -14px, 0) rotate(1.6deg); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
  gap: 64px;
  align-items: end;
  width: min(calc(100% - 72px), var(--page-width));
  margin: 0 auto;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow.hero-eyebrow {
  font-size: clamp(20px, 1.55vw, 23px);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.eyebrow.hero-eyebrow::before {
  display: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 240, 217, 0.54);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.eyebrow::before {
  width: 36px;
  height: 1px;
  background: rgba(231, 194, 133, 0.48);
  content: "";
}

.hero-copy h1 {
  margin: 28px 0 24px;
  color: #fff7eb;
  font-family: var(--font-sans);
  font-size: clamp(68px, 8.4vw, 122px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.95;
  text-shadow:
    0 2px 0 rgba(133, 37, 52, 0.82),
    0 8px 0 rgba(98, 20, 34, 0.52),
    0 16px 38px rgba(29, 2, 8, 0.28);
}

.hero-theme {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: 20px;
  color: var(--gold-bright);
  font-size: 18px;
  font-weight: 520;
  letter-spacing: 0.09em;
}

.hero-theme span:not(.theme-rule) {
  padding: 5px 11px;
  border: 1px solid rgba(230, 194, 132, 0.28);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.theme-rule {
  width: 38px;
  height: 1px;
  background: rgba(230, 194, 132, 0.36);
}

.hero-description {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 246, 232, 0.7);
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-panel {
  padding: 28px;
  background: rgba(44, 4, 14, 0.26);
  border: 1px solid rgba(255, 240, 221, 0.2);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 247, 235, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 241, 223, 0.1);
  color: rgba(255, 244, 228, 0.6);
  font-size: 11px;
}

.hero-panel-top strong {
  color: var(--gold-bright);
  font-weight: 500;
}

.hero-panel-motto {
  margin: 20px 0 24px;
  color: rgba(255, 246, 233, 0.9);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

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

.hero-metric {
  min-height: 88px;
  padding: 14px;
  background: rgba(255, 247, 234, 0.075);
  border: 1px solid rgba(255, 241, 223, 0.13);
  border-radius: 10px;
}

.hero-metric small {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 242, 225, 0.39);
  font-size: 10px;
}

.hero-metric strong {
  color: #fff8ec;
  font-size: 25px;
  font-weight: 580;
  letter-spacing: -0.03em;
}

.hero-metric strong.is-pending {
  color: rgba(255, 244, 227, 0.68);
  font-size: 19px;
  font-weight: 500;
}

.hero-chart-layout {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  gap: 19px;
  align-items: center;
  padding-top: 3px;
}

.hero-chart {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  filter: drop-shadow(0 12px 24px rgba(25, 2, 8, 0.22));
}

.hero-chart svg {
  width: 100%;
  height: 100%;
}

.hero-chart-track,
.hero-chart-member,
.hero-chart-activist,
.hero-chart-gloss {
  fill: none;
  stroke-width: 17;
}

.hero-chart-track {
  stroke: rgba(255, 244, 226, 0.12);
}

.hero-chart-member {
  stroke: url("#heroMemberArc");
  stroke-linecap: round;
}

.hero-chart-activist {
  stroke: url("#heroActivistArc");
  stroke-linecap: round;
}

.hero-chart-gloss {
  stroke: rgba(255, 255, 255, 0.11);
  stroke-width: 1.5;
}

.hero-chart-kicker {
  fill: rgba(255, 244, 226, 0.52);
  font: 500 8px var(--font-sans);
  letter-spacing: 0.08em;
}

.hero-chart-center {
  fill: #fff8eb;
  font: 600 14px var(--font-sans);
  letter-spacing: 0.04em;
}

.hero-chart-legend {
  display: grid;
  gap: 12px;
}

.chart-legend-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 241, 223, 0.1);
}

.chart-legend-row:last-of-type {
  border-bottom: 0;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-dot.member {
  background: var(--gold-bright);
  box-shadow: 0 0 10px rgba(235, 199, 133, 0.4);
}

.legend-dot.activist {
  background: #ec806a;
  box-shadow: 0 0 10px rgba(236, 128, 106, 0.42);
}

.chart-legend-row span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chart-legend-row small {
  color: rgba(255, 242, 224, 0.45);
  font-size: 9px;
}

.chart-legend-row strong {
  color: rgba(255, 248, 237, 0.9);
  font-size: 16px;
  font-weight: 560;
}

.chart-legend-row b {
  color: rgba(255, 242, 223, 0.55);
  font-size: 10px;
  font-weight: 500;
}

.hero-chart-legend > p {
  margin: 0;
  color: rgba(255, 242, 224, 0.32);
  font-size: 9px;
  line-height: 1.6;
}

.section {
  width: min(calc(100% - 72px), var(--page-width));
  margin: 0 auto;
}

.entrances-section {
  padding: 110px 0 100px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading-copy {
  max-width: 720px;
}

.section-index {
  display: block;
  margin-bottom: 13px;
  color: var(--red-700);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.section-heading h2,
.page-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.18;
}

.section-heading p {
  max-width: 550px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.section-note {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  grid-auto-rows: minmax(240px, auto);
  gap: 14px;
}

.entry-card {
  position: relative;
  display: flex;
  min-height: 240px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 24px;
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 1px 1px rgba(50, 25, 22, 0.03),
    0 14px 36px rgba(73, 22, 28, 0.07);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.entry-card:nth-child(1) {
  grid-column: span 3;
  grid-row: span 2;
  color: #fff8ec;
  background:
    radial-gradient(circle at 84% 13%, rgba(255, 216, 143, 0.28), transparent 12rem),
    linear-gradient(145deg, #a6223b, #7b1429);
  border-color: rgba(255, 232, 202, 0.16);
  box-shadow:
    0 1px 1px rgba(50, 12, 18, 0.12),
    0 24px 60px rgba(90, 18, 33, 0.2);
}

.entry-card:nth-child(2) {
  grid-column: span 3;
}

.entry-card:nth-child(3) {
  grid-column: span 3;
}

.entry-card:nth-child(4),
.entry-card:nth-child(5),
.entry-card:nth-child(6) {
  grid-column: span 2;
}

.entry-card:nth-child(1) h3 {
  margin-top: 48px;
  color: #fff9ef;
  font-size: 34px;
}

.entry-card:nth-child(1) p {
  max-width: 350px;
  color: rgba(255, 247, 232, 0.7);
  font-size: 14px;
}

.entry-card:nth-child(1) .entry-icon {
  width: 54px;
  height: 54px;
  color: var(--gold-bright);
  border-color: rgba(255, 235, 203, 0.24);
}

.entry-card:nth-child(1) .entry-icon svg {
  width: 24px;
  height: 24px;
}

.entry-card:nth-child(1) .entry-number,
.entry-card:nth-child(1) .entry-bottom {
  color: rgba(255, 243, 222, 0.56);
}

.entry-card:nth-child(1) .entry-arrow {
  color: var(--paper);
  border-color: rgba(255, 239, 215, 0.24);
}

.entry-card::after {
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 37, 53, 0.07), transparent 68%);
  content: "";
  transition: transform 300ms ease;
}

.entry-card:hover {
  z-index: 1;
  border-color: rgba(106, 42, 46, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.entry-card:hover::after {
  transform: scale(1.25);
}

.entry-top,
.entry-bottom {
  position: relative;
  z-index: 1;
}

.entry-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.entry-number {
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.entry-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--red-700);
  border: 1px solid rgba(116, 56, 54, 0.16);
  border-radius: 50%;
}

.entry-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.entry-card h3 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.entry-card p {
  max-width: 290px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.entry-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
  color: var(--muted);
  font-size: 11px;
}

.entry-arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.entry-arrow svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.entry-card:hover .entry-arrow {
  color: var(--paper);
  background: var(--red-700);
  transform: rotate(-35deg);
}

.entry-card.is-external .entry-bottom {
  color: var(--red-700);
}

.method-section {
  padding: 92px 0 102px;
  background:
    linear-gradient(rgba(18, 38, 58, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 38, 58, 0.02) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px;
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 80px;
  align-items: start;
}

.method-sticky h2 {
  max-width: 460px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 4.2vw, 58px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.2;
}

.method-sticky p {
  max-width: 450px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.method-privacy {
  margin-top: 34px;
  padding: 18px 20px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.65);
  border-left: 2px solid var(--gold);
  font-size: 12px;
  line-height: 1.8;
}

.method-flow {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.method-step {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 28px 2px;
  border-bottom: 1px solid var(--line);
}

.method-step > span:first-child {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
}

.method-step h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 590;
}

.method-step p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.method-step .flow-state {
  color: var(--red-700);
  font-size: 11px;
}

.platform-intro-section {
  padding: 104px 0 96px;
  background:
    linear-gradient(rgba(18, 38, 58, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 38, 58, 0.022) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px;
}

.platform-intro-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.32fr);
  gap: 90px;
  align-items: start;
}

.platform-intro-heading {
  position: sticky;
  top: calc(var(--header-height) + 36px);
}

.platform-intro-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px, 5.5vw, 76px);
  font-weight: 660;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.platform-intro-heading::after {
  display: block;
  width: 54px;
  height: 2px;
  margin-top: 28px;
  background: var(--gold);
  content: "";
}

.platform-intro-copy {
  padding-top: 2px;
}

.platform-intro-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 2;
}

.platform-intro-copy p + p {
  margin-top: 22px;
}

.platform-intro-copy p:first-child {
  color: var(--ink);
  font-size: clamp(18px, 1.75vw, 22px);
  font-weight: 470;
}

.gallery-section {
  margin-top: 92px;
  margin-bottom: 92px;
  padding: 56px 48px 48px;
  background:
    linear-gradient(rgba(255, 253, 248, 0.74), rgba(255, 253, 248, 0.74)),
    linear-gradient(135deg, rgba(199, 166, 106, 0.12), rgba(122, 27, 45, 0.06));
  border: 1px solid rgba(95, 61, 48, 0.11);
  border-radius: var(--radius-lg);
}

.gallery-section .section-heading {
  margin-bottom: 30px;
}

.masonry-gallery {
  columns: 3;
  column-gap: 16px;
}

.gallery-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  overflow: hidden;
  break-inside: avoid;
  background: #fffaf2;
  border: 1px solid rgba(87, 53, 43, 0.12);
  border-radius: 16px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gallery-placeholder {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: var(--gallery-ratio, 4 / 3);
  place-items: center;
  overflow: hidden;
  color: rgba(255, 242, 219, 0.72);
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 207, 128, 0.31), transparent 38%),
    linear-gradient(145deg, rgba(128, 22, 42, 0.92), rgba(67, 9, 21, 0.96));
}

.gallery-placeholder::before,
.gallery-placeholder::after {
  position: absolute;
  width: 9px;
  height: 9px;
  background: rgba(255, 218, 150, 0.55);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 92%, 50% 70%, 21% 92%, 32% 57%, 2% 35%, 39% 35%);
  content: "";
}

.gallery-placeholder::before {
  top: 17%;
  left: 16%;
}

.gallery-placeholder::after {
  right: 14%;
  bottom: 18%;
  width: 15px;
  height: 15px;
}

.gallery-placeholder span {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 650;
  letter-spacing: -0.06em;
  opacity: 0.2;
}

.gallery-placeholder i {
  position: absolute;
  width: 74px;
  height: 1px;
  background: rgba(255, 227, 182, 0.28);
}

.gallery-item figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}

.gallery-item figcaption strong {
  font-size: 13px;
  font-weight: 570;
}

.gallery-item figcaption span {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.closing-band {
  padding: 110px 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 22%, rgba(241, 183, 104, 0.22), transparent 22rem),
    linear-gradient(132deg, #5b0d1d, var(--red-800), #aa273e);
}

.closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  width: min(calc(100% - 72px), var(--page-width));
  margin: 0 auto;
}

.closing-inner h2 {
  max-width: 850px;
  margin: 0;
  color: #fff6e9;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.closing-inner p {
  margin: 18px 0 0;
  color: rgba(255, 242, 224, 0.51);
  font-size: 13px;
}

/* Interior pages */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 84px) 0 68px;
  color: var(--paper);
  background:
    radial-gradient(circle at 84% 8%, rgba(244, 188, 107, 0.22), transparent 23rem),
    radial-gradient(circle at 8% 88%, rgba(220, 63, 71, 0.24), transparent 27rem),
    linear-gradient(128deg, #4b0b19, var(--red-900), #931e34);
}

.page-hero::after {
  position: absolute;
  right: -15%;
  bottom: -120%;
  width: 70vw;
  height: 70vw;
  border: 1px solid rgba(255, 239, 217, 0.07);
  border-radius: 50%;
  content: "";
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 72px), var(--page-width));
  margin: 0 auto;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: rgba(255, 242, 224, 0.4);
  font-size: 11px;
}

.page-breadcrumb a {
  transition: color 160ms ease;
}

.page-breadcrumb a:hover {
  color: var(--gold-bright);
}

.page-breadcrumb span {
  color: rgba(255, 242, 224, 0.26);
}

.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 60px;
  align-items: end;
}

.page-intro h1 {
  color: #fff8ec;
  font-size: clamp(48px, 6vw, 82px);
}

.page-intro p {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 242, 224, 0.55);
  font-size: 15px;
  line-height: 1.9;
}

.page-meta {
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 241, 222, 0.13);
}

.page-meta span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-bright);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.page-meta strong {
  display: block;
  color: rgba(255, 246, 233, 0.8);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

.page-content {
  width: min(calc(100% - 72px), var(--page-width));
  margin: 0 auto;
  padding: 78px 0 110px;
}

.content-block + .content-block {
  margin-top: 78px;
}

.content-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}

.content-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 37px);
  font-weight: 620;
  letter-spacing: -0.04em;
}

.content-heading p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
}

.filter-button,
.tab-button {
  padding: 9px 15px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.filter-button:hover,
.tab-button:hover {
  color: var(--ink);
  border-color: rgba(60, 44, 40, 0.28);
}

.filter-button.is-active,
.tab-button.is-active {
  color: var(--paper);
  background: var(--red-800);
  border-color: var(--red-800);
}

.policy-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 30px 0 16px;
  color: var(--muted);
  font-size: 11px;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(64, 25, 28, 0.06);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.carousel-button:hover:not(:disabled) {
  color: var(--paper);
  background: var(--red-800);
  border-color: var(--red-800);
}

.carousel-button:disabled {
  cursor: default;
  opacity: 0.34;
}

.policy-carousel {
  position: relative;
  margin: 0 -4px;
  outline: none;
}

.policy-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  cursor: grab;
}

.policy-track::-webkit-scrollbar {
  display: none;
}

.policy-carousel.is-dragging .policy-track {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
}

.policy-slide {
  position: relative;
  display: grid;
  flex: 0 0 min(72%, 760px);
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 390px;
  overflow: hidden;
  scroll-snap-align: start;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(91, 57, 46, 0.14);
  border-radius: 24px;
  box-shadow:
    0 1px 1px rgba(54, 27, 22, 0.03),
    0 20px 54px rgba(67, 20, 27, 0.08);
  opacity: 0.76;
  transform: translateY(3px);
  transition: opacity 220ms ease, transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.policy-slide.is-active {
  border-color: rgba(124, 35, 48, 0.28);
  box-shadow:
    0 1px 1px rgba(54, 27, 22, 0.04),
    0 24px 62px rgba(67, 20, 27, 0.12);
  opacity: 1;
  transform: translateY(0);
}

.policy-slide:hover {
  opacity: 1;
}

.policy-slide-index {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 30px 20px;
  color: rgba(255, 246, 232, 0.8);
  background:
    radial-gradient(circle at 35% 16%, rgba(255, 214, 140, 0.23), transparent 9rem),
    linear-gradient(160deg, #9b2139, #5d0e1d);
}

.policy-slide-index span {
  font-size: 24px;
  font-weight: 580;
  letter-spacing: 0.03em;
}

.policy-slide-index i {
  width: 26px;
  height: 26px;
  background: rgba(255, 222, 160, 0.76);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 92%, 50% 70%, 21% 92%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 10px rgba(255, 218, 146, 0.34));
}

.policy-slide-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 38px 40px 34px;
}

.policy-slide-kicker {
  color: var(--red-700);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.policy-slide h3 {
  max-width: 570px;
  margin: 42px 0 16px;
  color: var(--ink);
  font-size: clamp(25px, 2.5vw, 35px);
  font-weight: 630;
  letter-spacing: -0.045em;
  line-height: 1.36;
}

.policy-slide p {
  max-width: 590px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.policy-slide-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-top: auto;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.policy-slide-footer > span {
  color: var(--muted);
  font-size: 11px;
}

.policy-slide-footer a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--red-700);
  font-size: 12px;
  font-weight: 550;
}

.policy-slide-footer a svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.carousel-progress {
  position: relative;
  height: 3px;
  margin-top: 10px;
  overflow: hidden;
  background: rgba(90, 61, 48, 0.12);
  border-radius: 99px;
}

.carousel-progress span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 24%;
  background: linear-gradient(90deg, var(--gold), var(--red-700));
  border-radius: inherit;
  transition: left 160ms ease, width 160ms ease;
}

.policy-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.policy-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 28px 30px;
  background: var(--paper-strong);
  transition: background 160ms ease;
}

.policy-item:hover {
  background: #fffaf2;
}

.policy-category {
  color: var(--red-700);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.08em;
}

.policy-item h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 590;
  letter-spacing: -0.02em;
}

.policy-item p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.policy-source {
  min-width: 120px;
  text-align: right;
}

.policy-source small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.policy-source a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.policy-source a::after {
  content: "↗";
  color: var(--gold);
}

.info-note {
  margin-top: 22px;
  padding: 16px 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.8;
}

.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
}

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

.course-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.course-number {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.course-card h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 590;
}

.course-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.course-status {
  padding: 5px 10px;
  color: var(--red-700);
  background: rgba(141, 28, 49, 0.06);
  border-radius: 999px;
  font-size: 10px;
}

.sidebar-card {
  padding: 26px;
  color: var(--paper);
  background: linear-gradient(145deg, #5a0d1d, var(--red-800), #a4253b);
  border-radius: var(--radius);
}

.sidebar-card .eyebrow {
  margin-bottom: 18px;
}

.sidebar-card h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 610;
}

.sidebar-card p {
  margin: 12px 0 22px;
  color: rgba(255, 244, 229, 0.52);
  font-size: 13px;
  line-height: 1.8;
}

.sidebar-card .button {
  width: 100%;
}

.learning-cycle {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 242, 225, 0.1);
}

.learning-cycle span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 244, 229, 0.56);
  font-size: 11px;
}

.learning-cycle span::after {
  color: var(--gold-bright);
  content: attr(data-step);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tab-panel[hidden] {
  display: none;
}

.history-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.history-aside {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  padding: 26px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.history-aside strong {
  display: block;
  margin-bottom: 12px;
  color: var(--red-700);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.history-aside p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.85;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline::before {
  position: absolute;
  top: 12px;
  bottom: 20px;
  left: 72px;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(199, 166, 106, 0.1));
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  padding: 0 0 32px;
}

.timeline-year {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.timeline-body {
  position: relative;
  padding: 0 0 24px 24px;
  border-bottom: 1px solid var(--line);
}

.timeline-body::before {
  position: absolute;
  top: 8px;
  left: -2px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(199, 166, 106, 0.48);
  content: "";
}

.timeline-body h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 590;
}

.timeline-body p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

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

.knowledge-card {
  min-height: 190px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.knowledge-card span {
  color: var(--gold);
  font-size: 11px;
}

.knowledge-card h3 {
  margin: 24px 0 9px;
  font-size: 20px;
  font-weight: 590;
}

.knowledge-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.process-step {
  position: relative;
  min-height: 190px;
  padding: 24px 22px;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-step::after {
  position: absolute;
  top: 36px;
  right: -14px;
  z-index: 2;
  color: var(--gold);
  content: "→";
}

.process-step:last-child::after {
  display: none;
}

.process-step small {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.process-step h3 {
  margin: 36px 0 8px;
  font-size: 19px;
  font-weight: 590;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.org-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 44px;
}

.org-stat {
  padding: 24px;
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.org-stat small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.org-stat strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.org-stat strong.is-pending {
  color: var(--red-700);
  font-size: 18px;
  letter-spacing: 0;
}

.table-shell {
  overflow: hidden;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 15px 20px;
  color: var(--muted);
  background: #f5efe4;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.data-table td {
  padding: 17px 20px;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(84, 58, 45, 0.09);
  font-size: 13px;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table .name-cell {
  color: var(--ink);
  font-weight: 550;
}

.empty-state {
  display: grid;
  min-height: 230px;
  place-items: center;
  padding: 40px;
  text-align: center;
}

.empty-state-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(199, 166, 106, 0.34);
  border-radius: 50%;
  font-size: 22px;
}

.empty-state h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 580;
}

.empty-state p {
  max-width: 420px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.org-notice {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  margin-top: 26px;
  padding: 24px;
  color: var(--ink-soft);
  background: #efe7da;
  border-radius: var(--radius);
  font-size: 12px;
}

.org-notice strong {
  color: var(--red-700);
  font-size: 12px;
}

.org-notice p {
  margin: 0;
  line-height: 1.85;
}

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

.service-card {
  position: relative;
  min-height: 270px;
  padding: 30px;
  overflow: hidden;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-card::after {
  position: absolute;
  right: -80px;
  bottom: -95px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(177, 131, 77, 0.13);
  border-radius: 50%;
  content: "";
}

.service-card .service-number {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.service-card h3 {
  margin: 54px 0 10px;
  font-size: 25px;
  font-weight: 590;
}

.service-card p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.service-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
  color: var(--red-700);
  font-size: 11px;
}

.study-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

.study-main-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: 40px;
  color: var(--paper);
  background:
    radial-gradient(circle at 76% 15%, rgba(245, 199, 132, 0.26), transparent 18rem),
    linear-gradient(145deg, #5c0d1d, var(--red-800), #a4253b);
  border-radius: var(--radius-lg);
}

.study-main-card::after {
  position: absolute;
  right: -130px;
  bottom: -160px;
  width: 410px;
  height: 410px;
  border: 1px solid rgba(255, 237, 211, 0.1);
  border-radius: 50%;
  content: "";
}

.study-main-card .eyebrow {
  color: rgba(255, 240, 217, 0.6);
}

.study-main-card h2 {
  max-width: 620px;
  margin: 54px 0 18px;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 620;
  letter-spacing: -0.05em;
  line-height: 1.25;
}

.study-main-card p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 243, 226, 0.53);
  font-size: 14px;
  line-height: 1.9;
}

.study-main-card .button {
  position: relative;
  z-index: 1;
  margin-top: 34px;
}

.study-aside {
  display: grid;
  gap: 14px;
}

.mini-card {
  padding: 24px;
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mini-card small {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.mini-card h3 {
  margin: 18px 0 8px;
  font-size: 19px;
  font-weight: 590;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.study-dialog {
  width: min(calc(100% - 36px), 520px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 34px;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid rgba(70, 44, 36, 0.18);
  border-radius: 20px;
  box-shadow: 0 30px 100px rgba(25, 4, 10, 0.28);
}

.study-dialog::backdrop {
  background: rgba(24, 3, 9, 0.68);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 22px;
}

.dialog-eyebrow {
  color: var(--red-700);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.study-dialog h2 {
  margin: 16px 0 12px;
  font-size: 27px;
  font-weight: 610;
  letter-spacing: -0.04em;
}

.study-dialog p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.study-dialog code {
  padding: 2px 5px;
  background: #f1eadd;
  border-radius: 4px;
  font-size: 11px;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

[hidden] {
  display: none !important;
}

.login-dialog {
  width: min(calc(100% - 36px), 620px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 34px;
  color: var(--ink);
  background: var(--paper-strong);
  border: 1px solid rgba(70, 44, 36, 0.18);
  border-radius: 22px;
  box-shadow: 0 30px 100px rgba(25, 4, 10, 0.32);
}

.login-brand-line {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.login-brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(151, 103, 51, 0.26);
  border-radius: 50%;
  font-size: 17px;
}

.login-brand-line > span:last-child {
  display: flex;
  flex-direction: column;
}

.login-brand-line strong {
  font-size: 17px;
  font-weight: 630;
  letter-spacing: 0.09em;
}

.login-brand-line small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.login-dialog::backdrop {
  background: rgba(24, 3, 9, 0.72);
  backdrop-filter: blur(9px);
}

.login-dialog.is-entry-gate {
  width: min(calc(100% - 36px), 640px);
  box-shadow:
    0 36px 120px rgba(20, 2, 7, 0.45),
    0 0 0 1px rgba(236, 200, 142, 0.12);
}

.login-dialog.is-entry-gate::backdrop {
  background:
    radial-gradient(circle at 34% 22%, rgba(197, 48, 64, 0.3), transparent 30rem),
    linear-gradient(135deg, rgba(52, 8, 17, 0.94), rgba(31, 4, 11, 0.96));
  backdrop-filter: blur(13px);
}

.login-dialog.is-entry-gate .dialog-close {
  display: none;
}

.login-dialog h2 {
  margin: 14px 0 8px;
  font-size: 30px;
  font-weight: 630;
  letter-spacing: -0.04em;
}

.login-intro {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

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

.role-option {
  position: relative;
  min-height: 108px;
  padding: 18px;
  color: var(--ink);
  background: #f8f2e8;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.role-option:hover {
  border-color: rgba(113, 37, 45, 0.3);
  transform: translateY(-2px);
}

.role-option:focus-visible {
  outline: 2px solid rgba(160, 39, 58, 0.5);
  outline-offset: 2px;
}

.role-option.is-selected {
  background: #fffaf2;
  border-color: var(--red-700);
  box-shadow: inset 0 0 0 1px var(--red-700);
}

.role-option .role-number {
  position: absolute;
  top: 14px;
  right: 15px;
  color: var(--gold);
  font-size: 10px;
}

.role-option strong {
  display: block;
  margin-top: 20px;
  font-size: 19px;
  font-weight: 600;
}

.role-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.password-field {
  display: grid;
  gap: 7px;
  padding: 14px 16px;
  background: #f7f0e5;
  border: 1px solid transparent;
  border-radius: 11px;
  transition: border-color 160ms ease;
}

.password-field:focus-within {
  border-color: rgba(119, 27, 45, 0.34);
}

.password-field span {
  color: var(--muted);
  font-size: 10px;
}

.password-field input {
  width: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: 500 18px var(--font-sans);
  letter-spacing: 0.12em;
}

.password-field input[aria-invalid="true"] {
  color: #b51e36;
}

.login-error {
  min-height: 18px;
  margin: 0;
  color: #b51e36;
  font-size: 11px;
}

.login-submit {
  width: 100%;
  color: var(--paper);
  background: var(--red-800);
  border-color: var(--red-800);
}

.login-submit:disabled {
  cursor: default;
  opacity: 0.46;
  transform: none;
}

.login-footnote {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.login-footnote button {
  padding: 0;
  color: var(--red-700);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 10px;
}

.site-toast {
  position: fixed;
  z-index: 300;
  bottom: 28px;
  left: 50%;
  max-width: min(calc(100% - 36px), 540px);
  padding: 12px 18px;
  color: #fff8ec;
  background: rgba(45, 7, 16, 0.95);
  border: 1px solid rgba(232, 200, 142, 0.25);
  border-radius: 999px;
  box-shadow: 0 16px 50px rgba(24, 3, 9, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 12px;
  text-align: center;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-toast.is-error {
  background: #8c172b;
}

.admin-hero {
  padding: calc(var(--header-height) + 70px) 0 58px;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 15%, rgba(241, 188, 104, 0.24), transparent 22rem),
    linear-gradient(128deg, #54101e, var(--red-800), #9d2238);
}

.admin-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  width: min(calc(100% - 72px), var(--page-width));
  margin: 0 auto;
}

.admin-hero h1 {
  margin: 18px 0 10px;
  color: #fff8ec;
  font-size: clamp(48px, 6vw, 74px);
  font-weight: 650;
  letter-spacing: -0.06em;
}

.admin-hero p {
  max-width: 670px;
  margin: 0;
  color: rgba(255, 243, 227, 0.54);
  font-size: 14px;
  line-height: 1.85;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 26px;
  width: min(calc(100% - 72px), var(--page-width));
  margin: 0 auto;
  padding: 58px 0 100px;
}

.admin-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: flex;
  height: max-content;
  flex-direction: column;
  gap: 5px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-sidebar-label {
  margin: 3px 8px 10px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.admin-sidebar [data-admin-tab] {
  padding: 10px 12px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}

.admin-sidebar [data-admin-tab]:hover {
  background: #f1e9dd;
}

.admin-sidebar [data-admin-tab].is-active {
  color: var(--paper);
  background: var(--red-800);
}

.admin-sidebar-note {
  margin-top: 16px;
  padding: 13px;
  color: var(--muted);
  background: #f4ede1;
  border-radius: 9px;
  font-size: 10px;
  line-height: 1.7;
}

.admin-form {
  min-width: 0;
}

.admin-panel {
  padding: 30px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-panel-head {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-panel-head span {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.admin-panel-head h2 {
  margin: 9px 0 0;
  font-size: 28px;
  font-weight: 620;
  letter-spacing: -0.04em;
}

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

.form-field {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.form-field.is-wide {
  grid-column: 1 / -1;
}

.form-field > span {
  color: var(--muted);
  font-size: 11px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: #faf6ee;
  border: 1px solid rgba(80, 54, 45, 0.15);
  border-radius: 8px;
  outline: none;
  font: 400 13px/1.65 var(--font-sans);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(122, 34, 47, 0.44);
  box-shadow: 0 0 0 3px rgba(122, 34, 47, 0.07);
}

.form-field textarea {
  resize: vertical;
}

.gallery-upload-field {
  padding: 14px;
  background: #f5eee2;
  border: 1px dashed rgba(80, 54, 45, 0.22);
  border-radius: 9px;
}

.gallery-upload-field input[type="file"] {
  padding: 9px;
  background: rgba(255, 253, 248, 0.72);
  border-style: dashed;
  cursor: pointer;
}

.gallery-upload-field small {
  color: var(--muted);
  font-size: 10px;
}

.gallery-upload-preview {
  overflow: hidden;
  max-width: 360px;
  margin-top: 4px;
  background: #ede4d6;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gallery-upload-preview img {
  width: 100%;
  height: auto;
}

.admin-repeat-list {
  display: grid;
  gap: 10px;
}

.admin-repeat-item {
  overflow: hidden;
  background: #faf6ef;
  border: 1px solid rgba(80, 54, 45, 0.12);
  border-radius: 11px;
}

.admin-repeat-item summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.admin-repeat-item summary::-webkit-details-marker {
  display: none;
}

.admin-repeat-item summary strong {
  font-size: 13px;
  font-weight: 550;
}

.item-drag {
  color: var(--gold);
  font-size: 10px;
}

.remove-item {
  padding: 4px 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 10px;
}

.remove-item:hover {
  color: #b51e36;
}

.admin-repeat-item .admin-field-grid {
  padding: 16px;
  border-top: 1px solid rgba(80, 54, 45, 0.09);
}

.add-item-button {
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  color: var(--red-700);
  background: transparent;
  border: 1px dashed rgba(122, 34, 47, 0.28);
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
}

.add-item-button:hover {
  background: rgba(122, 34, 47, 0.04);
}

.admin-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 18px 22px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-save-bar strong,
.admin-save-bar span {
  display: block;
}

.admin-save-bar strong {
  font-size: 13px;
  font-weight: 550;
}

.admin-save-bar span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.admin-gate {
  max-width: 620px;
  margin: 0 auto;
  padding: 60px 34px;
  text-align: center;
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.admin-gate-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(199, 166, 106, 0.38);
  border-radius: 50%;
  font-size: 24px;
}

.admin-gate h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 620;
}

.admin-gate p {
  margin: 12px auto 24px;
  color: var(--muted);
  font-size: 13px;
}

.route-announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 1260px) {
  .site-header {
    grid-template-columns: minmax(220px, 1fr) auto;
  }

  .desktop-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    display: grid;
    width: 100%;
    max-height: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    padding: 0 28px;
    background: rgba(33, 5, 12, 0.98);
    border-bottom: 1px solid transparent;
    transition: max-height 240ms ease, padding 240ms ease, border-color 240ms ease;
  }

  .desktop-nav.is-open {
    max-height: 180px;
    padding-top: 10px;
    padding-bottom: 16px;
    border-color: var(--line-dark);
  }

  .desktop-nav a {
    padding: 10px 6px;
    font-size: 12px;
  }

  .desktop-nav a::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 38px;
  }

  .entry-card {
    min-height: 245px;
  }
}

@media (max-width: 1020px) {
  .hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-panel {
    max-width: 540px;
  }

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

  .entry-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .entry-card:nth-child(1) {
    grid-column: 1 / -1;
    min-height: 330px;
  }

  .masonry-gallery {
    columns: 2;
  }

  .policy-slide {
    flex-basis: 84%;
  }

  .platform-intro-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .platform-intro-heading {
    position: static;
  }

  .method-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .method-sticky h2,
  .method-sticky p {
    max-width: 680px;
  }

  .course-layout,
  .study-layout {
    grid-template-columns: 1fr;
  }

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

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

  .history-aside {
    position: static;
  }

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

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

  .process-step:nth-child(2)::after {
    display: none;
  }

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

  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    flex-direction: row;
    overflow-x: auto;
  }

  .admin-sidebar [data-admin-tab] {
    flex: 0 0 auto;
  }

  .admin-sidebar-label,
  .admin-sidebar-note {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 67px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 18px;
  }

  .brand-mark {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .brand-mark svg {
    width: 21px;
    height: 21px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    font-size: 9px;
  }

  .header-tools .login-chip,
  .header-tools .admin-link,
  .header-tools .platform-shortcut {
    display: none;
  }

  .header-tools {
    margin-left: 0;
  }

  .desktop-nav {
    display: none;
  }

  .home-hero {
    min-height: auto;
    padding: calc(var(--header-height) + 78px) 0 58px;
  }

  .hero-inner,
  .section,
  .page-hero-inner,
  .page-content,
  .closing-inner {
    width: min(calc(100% - 36px), var(--page-width));
  }

  .hero-inner {
    gap: 38px;
  }

  .hero-copy h1 {
    margin: 22px 0 20px;
    font-size: clamp(58px, 17vw, 86px);
    letter-spacing: -0.075em;
  }

  .hero-theme {
    gap: 9px;
    font-size: 14px;
  }

  .hero-theme span:not(.theme-rule) {
    padding: 4px 9px;
    font-size: 10px;
  }

  .theme-rule {
    width: 22px;
  }

  .hero-description {
    font-size: 13px;
    line-height: 1.85;
  }

  .eyebrow.hero-eyebrow {
    font-size: 16px;
    letter-spacing: 0.06em;
  }

  .hero-boat {
    right: 8px;
    bottom: -4px;
    left: auto;
    width: 152px;
    opacity: 0.48;
  }

  .hero-large-star.star-a {
    width: 24px;
    height: 24px;
  }

  .hero-large-star.star-d {
    bottom: 15%;
    width: 28px;
    height: 28px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-actions .button {
    flex: 1;
    min-width: 145px;
  }

  .hero-panel {
    padding: 22px;
  }

  .hero-metrics {
    gap: 7px;
  }

  .hero-metric {
    min-height: 78px;
    padding: 12px;
  }

  .hero-metric strong {
    font-size: 21px;
  }

  .hero-chart-layout {
    grid-template-columns: 122px minmax(0, 1fr);
    gap: 15px;
  }

  .chart-legend-row strong {
    font-size: 14px;
  }

  .aura {
    opacity: 0.38;
  }

  .aura-yellow {
    left: -90px;
    width: 300px;
    height: 300px;
  }

  .aura-orange {
    right: -140px;
    width: 380px;
    height: 380px;
  }

  .aura-white {
    right: -40px;
    width: 220px;
    height: 220px;
  }

  .entrances-section {
    padding: 78px 0 70px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 28px;
  }

  .section-heading h2,
  .method-sticky h2 {
    font-size: 37px;
  }

  .section-note {
    white-space: normal;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .entry-card:nth-child(1) {
    grid-column: auto;
    min-height: 300px;
  }

  .policy-carousel-head {
    margin-top: 20px;
  }

  .policy-track {
    gap: 12px;
  }

  .policy-slide {
    flex-basis: 88%;
    grid-template-columns: 1fr;
    min-height: 380px;
  }

  .policy-slide-index {
    min-height: 68px;
    flex-direction: row;
    padding: 16px 22px;
  }

  .policy-slide-index i {
    width: 18px;
    height: 18px;
  }

  .policy-slide-body {
    padding: 26px 24px 24px;
  }

  .policy-slide h3 {
    margin-top: 24px;
    font-size: 26px;
  }

  .policy-slide-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
  }

  .gallery-section {
    margin-top: 58px;
    margin-bottom: 58px;
    padding: 32px 20px 22px;
  }

  .masonry-gallery {
    columns: 1;
  }

  .entry-card {
    min-height: 220px;
    padding: 22px;
  }

  .entry-card h3 {
    margin-top: 25px;
  }

  .entry-bottom {
    margin-top: 26px;
  }

  .method-section {
    padding: 70px 0;
  }

  .platform-intro-section {
    padding: 72px 0;
  }

  .platform-intro-heading h2 {
    font-size: 46px;
  }

  .platform-intro-copy p {
    font-size: 15px;
    line-height: 1.95;
  }

  .platform-intro-copy p:first-child {
    font-size: 17px;
  }

  .method-step {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
    padding: 22px 0;
  }

  .method-step .flow-state {
    display: none;
  }

  .closing-band {
    padding: 76px 0;
  }

  .closing-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .closing-inner h2 {
    font-size: 30px;
  }

  .page-hero {
    padding: calc(var(--header-height) + 60px) 0 48px;
  }

  .page-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-intro h1 {
    font-size: 50px;
  }

  .page-intro p {
    font-size: 14px;
  }

  .page-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 18px;
    align-items: baseline;
    max-width: 520px;
  }

  .page-meta span {
    margin-bottom: 0;
  }

  .page-content {
    padding: 56px 0 78px;
  }

  .login-dialog {
    padding: 24px;
    border-radius: 17px;
  }

  .login-dialog h2 {
    font-size: 25px;
  }

  .role-option {
    min-height: 96px;
    padding: 15px;
  }

  .role-option strong {
    font-size: 17px;
  }

  .login-footnote {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .content-block + .content-block {
    margin-top: 58px;
  }

  .content-heading {
    display: block;
  }

  .policy-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px;
  }

  .policy-source {
    min-width: 0;
    text-align: left;
  }

  .course-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    padding: 22px;
  }

  .course-status {
    grid-column: 2;
    width: max-content;
  }

  .history-layout {
    gap: 28px;
  }

  .timeline::before {
    left: 56px;
  }

  .timeline-item {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
  }

  .timeline-body {
    padding-left: 18px;
  }

  .knowledge-grid,
  .process-grid,
  .service-grid,
  .study-aside {
    grid-template-columns: 1fr;
  }

  .process-step::after,
  .process-step:nth-child(2)::after {
    top: auto;
    right: 24px;
    bottom: 18px;
    display: block;
    content: "↓";
  }

  .process-step:last-child::after {
    display: none;
  }

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

  .org-stat {
    padding: 18px;
  }

  .org-stat strong {
    font-size: 28px;
  }

  .org-notice {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .table-shell {
    overflow-x: auto;
  }

  .data-table {
    min-width: 520px;
  }

  .service-card {
    min-height: 230px;
    padding: 24px;
  }

  .service-card h3 {
    margin-top: 38px;
  }

  .study-main-card {
    min-height: 390px;
    padding: 28px;
  }

  .study-main-card h2 {
    margin-top: 44px;
    font-size: 38px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 26px;
    width: calc(100% - 36px);
    padding: 52px 0 32px;
  }

  .footer-note {
    display: block;
    width: calc(100% - 36px);
    padding-bottom: 28px;
  }

  .footer-note span {
    display: block;
    margin-top: 12px;
  }

  .footer-meta {
    align-items: flex-start;
  }

  .admin-hero {
    padding: calc(var(--header-height) + 56px) 0 44px;
  }

  .admin-hero-inner {
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - 36px);
  }

  .admin-hero h1 {
    font-size: 48px;
  }

  .admin-workspace {
    width: calc(100% - 36px);
    padding: 42px 0 72px;
  }

  .admin-panel {
    padding: 20px;
  }

  .admin-field-grid {
    grid-template-columns: 1fr;
  }

  .form-field.is-wide {
    grid-column: auto;
  }

  .admin-save-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-save-bar .button {
    width: 100%;
  }

  .admin-gate {
    padding: 44px 22px;
  }

  .site-toast {
    bottom: 18px;
    padding: 11px 15px;
    border-radius: 13px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .role-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
