:root {
  --bg: #08090d;
  --surface: #101118;
  --surface-soft: #16131e;
  --text: #f4f1f7;
  --muted: #aaa6b1;
  --gold: #f5bf35;
  --gold-light: #ffe28a;
  --purple: #9d4edd;
  --line: rgba(245, 191, 53, 0.22);
  --danger: #ff6b6b;
  --radius: 20px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 3%, rgba(157, 78, 221, 0.13), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

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

a {
  color: var(--gold-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff0b7;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  border-radius: 9px;
  background: var(--gold);
  color: #111;
  font-weight: 900;
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(245, 191, 53, 0.15);
  background: rgba(8, 9, 13, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  width: auto;
  height: 46px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.site-nav a {
  color: #ddd9e2;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #121212;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.header-cta:hover,
.button:hover {
  color: #121212;
  box-shadow: 0 10px 25px rgba(245, 191, 53, 0.2);
  transform: translateY(-2px);
}

.article-hero {
  padding: clamp(62px, 9vw, 110px) 0 38px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  color: #77737e;
  font-size: 0.78rem;
}

.breadcrumbs a {
  color: #b8b4bd;
  text-decoration: none;
}

.article-hero-content {
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-hero h1 {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 5.3rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.article-intro {
  max-width: 810px;
  margin: 25px 0 0;
  color: #c9c5cf;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  color: #8f8b96;
  font-size: 0.8rem;
}

.featured-media,
.content-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.featured-media img,
.content-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.featured-media figcaption,
.content-figure figcaption {
  padding: 13px 17px;
  color: #87838d;
  font-size: 0.75rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
  padding: 58px 0 90px;
}

.article-content {
  min-width: 0;
  max-width: 810px;
}

.article-content > :first-child {
  margin-top: 0;
}

.article-content p,
.article-content li {
  color: #d2ced8;
  font-size: 1rem;
}

.article-content p {
  margin: 0 0 21px;
}

.article-content h2 {
  margin: 56px 0 18px;
  color: #fff;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.article-content h3 {
  margin: 34px 0 13px;
  color: var(--gold-light);
  font-size: 1.22rem;
  line-height: 1.35;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 11px;
  margin: 0 0 25px;
  padding-left: 24px;
}

.article-content strong {
  color: #fff;
}

.summary-box,
.notice-box {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(157, 78, 221, 0.16), transparent 46%),
    var(--surface);
}

.summary-box h2,
.notice-box h3 {
  margin-top: 0;
}

.summary-box ul {
  margin-bottom: 0;
}

.notice-box {
  border-left: 4px solid var(--gold);
}

.notice-box p:last-child {
  margin-bottom: 0;
}

.content-figure {
  margin: 36px 0;
}

.table-wrap {
  margin: 30px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: rgba(16, 17, 24, 0.88);
}

th,
td {
  padding: 15px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(245, 191, 53, 0.08);
  color: var(--gold-light);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: #cdc9d2;
  font-size: 0.9rem;
}

.toc {
  position: sticky;
  top: 102px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16, 17, 24, 0.9);
}

.toc h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: #77737e;
}

.toc a {
  color: #bdb9c3;
  font-size: 0.79rem;
  line-height: 1.45;
  text-decoration: none;
}

.toc a:hover {
  color: var(--gold);
}

.related-section,
.faq-section {
  margin-top: 64px;
}

.hub-section {
  padding: 12px 0 90px;
}

.hub-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.hub-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.035em;
}

.hub-heading p {
  margin: 14px 0 0;
  color: var(--muted);
}

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

.hub-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hub-card > a:first-child {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.hub-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-card-body {
  padding: 22px;
}

.hub-card-body h2 {
  margin: 9px 0 12px;
  font-size: 1.15rem;
  line-height: 1.4;
}

.hub-card-body h2 a {
  color: #fff;
  text-decoration: none;
}

.hub-card-body p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 0.86rem;
}

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

.related-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  text-decoration: none;
}

.related-card span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.related-card strong {
  margin-top: 11px;
  color: #fff;
  font-size: 0.96rem;
  line-height: 1.45;
}

.related-card small {
  margin-top: auto;
  padding-top: 18px;
  color: #85818b;
}

.article-cta {
  margin: 58px 0 0;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid rgba(245, 191, 53, 0.42);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 0, rgba(157, 78, 221, 0.25), transparent 44%),
    linear-gradient(145deg, #17131f, #0d0e13);
}

.article-cta h2 {
  margin-top: 0;
}

.article-cta p {
  max-width: 620px;
}

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

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.faq-list summary {
  padding: 18px 20px;
  color: #fff;
  cursor: pointer;
  font-weight: 850;
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 19px;
}

.waw-footer {
  border-top: 1px solid rgba(245, 191, 53, 0.18);
  background: #111113;
  color: #a8a4ae;
}

.waw-footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1.15fr 1.3fr;
  gap: 45px;
  padding-top: 52px;
  padding-bottom: 45px;
}

.waw-footer-logo img {
  width: auto;
  height: 46px;
  object-fit: contain;
}

.waw-footer-brand p,
.waw-footer-contact p {
  margin: 13px 0 0;
  color: #85818b;
  font-size: 0.82rem;
  line-height: 1.7;
}

.waw-footer-notice {
  color: #6f6b74 !important;
  font-size: 0.76rem !important;
}

.waw-footer-column h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.waw-footer-column nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.waw-footer-column nav a,
.waw-footer-contact > a {
  color: #c8c4ce;
  font-size: 0.81rem;
  text-decoration: none;
}

.waw-footer-column nav a:hover,
.waw-footer-contact > a:hover {
  color: var(--gold);
}

.waw-footer-contact > a {
  color: var(--gold);
}

.waw-footer-security {
  padding-left: 12px;
  border-left: 2px solid var(--gold);
}

.waw-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.waw-footer-bottom p {
  margin: 0;
  color: #6f6b74;
  font-size: 0.74rem;
}

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

@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-content {
    max-width: none;
  }

  .toc {
    position: static;
    grid-row: 1;
  }

  .waw-footer-container {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 12px 0;
  }

  .site-logo img {
    height: 38px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    padding: 4px 0 2px;
  }

  .header-cta {
    min-height: 40px;
    padding: 8px 15px;
  }

  .article-hero {
    padding-top: 55px;
  }

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

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

  .related-card {
    min-height: 150px;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .article-hero h1 {
    font-size: 2.35rem;
  }

  .article-layout {
    padding-top: 38px;
  }

  .summary-box,
  .notice-box,
  .toc {
    padding: 20px;
  }

  .waw-footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
  }

  .waw-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

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

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