:root {
  --c-green: #1E7A46;
  --c-blue: #0B1F3A;
  --c-cream: #F8F6F0;
  --c-gold: #D4A017;
  --c-red: #C73E1D;
  --c-ink: #1A1C1E;
  --c-silver: #E6E8EA;
  --c-cloud: #8B9BB4;
  --c-dark-gold: #B8860B;
  --font-display: "Noto Sans SC", "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --container-max: 1240px;
  --container-pad: clamp(1rem, 4vw, 2.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.25rem;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--c-cream);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#main-content {
  display: block;
  flex: 1 0 auto;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

ul,
ol,
menu {
  list-style: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--c-green);
  color: var(--c-cream);
}

.container {
  width: min(calc(100% - 2 * var(--container-pad)), var(--container-max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--c-gold);
  color: var(--c-blue);
  font-family: var(--font-display);
  font-weight: 800;
  padding: 0.6rem 1rem;
  border-radius: 2px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 0;
  height: 3px;
  background: var(--c-gold);
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 50;
  background: var(--c-blue);
  color: var(--c-cream);
}

.header-mast {
  border-bottom: 1px solid rgba(248, 246, 240, 0.16);
}

.header-mast-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.header-meta {
  display: none;
}

.header-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(230, 232, 234, 0.3);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--c-cloud);
}

.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--c-red);
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(199, 62, 29, 0.4);
  }
  50% {
    opacity: 0.75;
    box-shadow: 0 0 0 0.35rem rgba(199, 62, 29, 0);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: fit-content;
}

.brand-seal {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  background: var(--c-green);
  color: var(--c-cream);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  clip-path: polygon(0 0, 82% 0, 100% 18%, 100% 100%, 18% 100%, 0 82%);
}

.brand-text {
  display: grid;
  gap: 0.12rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-slogan {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--c-gold);
  white-space: nowrap;
}

.header-actions {
  display: none;
  position: absolute;
  right: var(--container-pad);
  top: 50%;
  transform: translateY(-50%);
}

@media (min-width: 640px) {
  .header-actions {
    display: block;
  }
}

@media (min-width: 1024px) {
  .header-mast-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-items: center;
  }

  .header-meta {
    display: block;
    justify-self: start;
  }

  .header-actions {
    position: static;
    transform: none;
    justify-self: end;
  }
}

.site-nav {
  background: var(--c-blue);
  border-bottom: 4px solid var(--c-gold);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  min-height: 3.25rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.nav-list {
  display: none;
  order: 3;
  width: 100%;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.75rem 0 0.25rem;
  border-top: 1px solid rgba(248, 246, 240, 0.16);
}

.site-nav[data-open] .nav-list {
  display: flex;
}

html:not(.js) .nav-list {
  display: flex;
}

.nav-link {
  position: relative;
  display: block;
  padding: 0.9rem 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.2;
  color: var(--c-cream);
  transition: color 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease-out;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--c-gold);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--c-gold);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  order: 2;
  margin-left: auto;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(230, 232, 234, 0.35);
  border-radius: 2px;
  background: transparent;
  color: var(--c-cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.nav-toggle-icon {
  position: relative;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle-icon::before {
  top: -0.38rem;
}

.nav-toggle-icon::after {
  top: 0.38rem;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

html:not(.js) .nav-toggle {
  display: none;
}

@media (min-width: 960px) {
  .nav-inner {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav-list {
    display: flex;
    order: 0;
    width: auto;
    flex-direction: row;
    gap: 0.25rem;
    padding: 0;
    border-top: 0;
  }

  .nav-link {
    padding: 1.1rem 0.85rem;
  }
}

.site-footer {
  background: var(--c-blue);
  color: var(--c-cream);
}

.footer-goldline {
  height: 0.375rem;
  background: repeating-linear-gradient(
    90deg,
    var(--c-gold) 0,
    var(--c-gold) 64px,
    var(--c-green) 64px,
    var(--c-green) 80px
  );
}

.footer-inner {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 2rem;
}

.footer-top {
  display: grid;
  gap: 2.5rem;
}

.footer-brand-link {
  display: grid;
  justify-items: start;
  gap: 0.2rem;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--c-cream);
  transition: color 0.18s ease;
}

.footer-brand-slogan {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: var(--c-gold);
}

.site-footer .footer-brand-link:hover .footer-brand-name {
  color: var(--c-gold);
}

.footer-trust {
  max-width: 62ch;
  margin-top: 1.25rem;
  color: rgba(248, 246, 240, 0.7);
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.35rem;
}

.footer-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0 0.3rem 1.25rem;
  color: var(--c-cream);
  transition: color 0.18s ease, transform 0.18s ease;
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.55rem;
  height: 0.55rem;
  background: var(--c-green);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.footer-links a:hover {
  color: var(--c-gold);
  transform: translateX(2px);
}

.footer-contact-list {
  display: grid;
  gap: 0.65rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-label {
  flex: none;
  width: 3.2em;
  padding-top: 0.05rem;
  color: var(--c-cloud);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.contact-value {
  color: rgba(248, 246, 240, 0.92);
  font-size: 0.92rem;
  overflow-wrap: break-word;
}

.contact-hours {
  display: block;
  margin-top: 0.15rem;
  color: var(--c-cloud);
  font-size: 0.75rem;
}

.site-footer a {
  color: var(--c-cream);
  transition: color 0.18s ease;
}

.site-footer a:hover {
  color: var(--c-gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(230, 232, 234, 0.2);
}

.footer-copy,
.footer-icp {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--c-cloud);
}

@media (min-width: 720px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-contact {
    grid-column: 1 / -1;
    max-width: 680px;
  }
}

@media (min-width: 1080px) {
  .footer-top {
    grid-template-columns: 1.25fr 0.8fr 1.35fr;
    align-items: start;
    gap: 2rem;
  }

  .footer-brand,
  .footer-contact {
    grid-column: auto;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.7em 1.15em;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

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

.btn-primary {
  background: var(--c-green);
  color: var(--c-cream);
}

.btn-primary:hover {
  background: #166a3a;
  color: var(--c-cream);
}

.btn-gold {
  background: var(--c-gold);
  color: var(--c-blue);
}

.btn-gold:hover {
  background: var(--c-dark-gold);
  color: var(--c-cream);
}

.btn-ghost {
  background: transparent;
  border-color: var(--c-silver);
  color: var(--c-ink);
}

.btn-ghost:hover {
  border-color: var(--c-green);
  color: var(--c-green);
}

.section {
  padding-block: clamp(3rem, 7vw, 6rem);
}

.section--dark {
  background: var(--c-blue);
  color: var(--c-cream);
}

.section--dark .section-title {
  color: var(--c-cream);
}

.section--dark .section-kicker {
  color: var(--c-gold);
}

.section--dark .section-desc {
  color: var(--c-cloud);
}

.section-head {
  max-width: 52rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-kicker {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--c-dark-gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin-bottom: 0.5rem;
}

.section-desc {
  max-width: 68ch;
  color: var(--c-cloud);
}

.grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

@media (min-width: 720px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: var(--c-cream);
  border: 1px solid var(--c-silver);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.card--highlight {
  border-left: 0.375rem solid var(--c-green);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3em 0.75em;
  border-radius: 999px;
  background: var(--c-silver);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
}

.tag--green {
  background: var(--c-green);
  color: var(--c-cream);
}

.tag--gold {
  background: var(--c-gold);
  color: var(--c-blue);
}

.tag--red {
  background: var(--c-red);
  color: var(--c-cream);
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--c-blue);
}

.media-frame::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--c-gold);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide {
  aspect-ratio: 16 / 9;
}

.media-frame--hero {
  aspect-ratio: 3 / 2;
}

.media-frame--portrait {
  aspect-ratio: 4 / 5;
}

.media-frame--tall {
  aspect-ratio: 3 / 4;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-silver);
  background: var(--c-cream);
}

.data-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--c-silver);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--c-blue);
  color: var(--c-cream);
  font-family: var(--font-display);
  font-weight: 700;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(230, 232, 234, 0.3);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--c-cloud);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--c-cloud);
}

.breadcrumbs a {
  color: var(--c-dark-gold);
}

.breadcrumbs a:hover {
  color: var(--c-red);
}

.breadcrumbs [aria-current="page"] {
  color: var(--c-cloud);
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.field-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--c-silver);
  border-radius: 2px;
  background: var(--c-cream);
  color: var(--c-ink);
}

.field-input:focus {
  border-color: var(--c-green);
  outline: 2px solid rgba(30, 122, 70, 0.3);
  outline-offset: 1px;
}

@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;
  }

  .live-dot {
    animation: none;
  }

  .scroll-progress {
    display: none;
  }

  .btn:hover {
    transform: none;
  }
}
