:root {
  color-scheme: light;
  --ink: #16242d;
  --muted: #5b6971;
  --paper: #f4f0e8;
  --surface: #fffdf8;
  --surface-2: #e8e2d7;
  --line: #d8d0c2;
  --night: #121f28;
  --night-2: #20323d;
  --accent: #ee8d2b;
  --accent-soft: #ffe2bd;
  --ok: #276557;
  --shadow: 0 24px 64px rgba(17, 31, 40, .10);
  --radius: 22px;
  --content: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 8%, rgba(238, 141, 43, .08), transparent 24rem),
    linear-gradient(90deg, rgba(22, 36, 45, .025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 44px 44px, auto;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

img, video, iframe, svg { max-width: 100%; }
img { height: auto; }
a { color: #165f57; text-underline-offset: .18em; }
a:hover { color: #a9510c; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: var(--night);
}

.site-header__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% 54%;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 17, 23, .97) 0%, rgba(9, 17, 23, .84) 34%, rgba(9, 17, 23, .36) 68%, rgba(9, 17, 23, .14) 100%),
    linear-gradient(0deg, rgba(9, 17, 23, .70), transparent 56%);
}

.header-shell {
  width: min(calc(100% - 40px), var(--content));
  min-height: 260px;
  margin: 0 auto;
  padding: 24px 0 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand__mark {
  width: 48px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 15px;
  background: rgba(18, 31, 40, .72);
  box-shadow: inset 0 0 0 5px rgba(238, 141, 43, .20);
  color: var(--accent);
  font-size: 27px;
  font-weight: 950;
  line-height: 1;
}

.brand__text { display: grid; line-height: 1.05; }
.brand__text strong { font-size: 22px; letter-spacing: -.03em; }
.brand__text small { margin-top: 5px; color: #c6d0d5; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

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

.desktop-nav a,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 999px;
  color: #fff;
  background: rgba(13, 24, 31, .48);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"],
.mobile-nav a:hover {
  border-color: var(--accent);
  color: #19242a;
  background: var(--accent);
}

.mobile-menu { display: none; }

.header-note {
  max-width: 580px;
  margin: 36px 0 0;
}
.header-note span {
  display: inline-block;
  margin-bottom: 8px;
  color: #ffc277;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.header-note p {
  margin: 0;
  color: #f8f5ee;
  font-size: clamp(21px, 3.4vw, 35px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.site-main {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.breadcrumbs {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 10px; color: #9b8d79; }
.breadcrumbs a { color: inherit; }

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 30px;
  align-items: start;
}

.article,
.page-card,
.legal-card {
  min-width: 0;
  padding: clamp(24px, 4.4vw, 54px);
  border: 1px solid rgba(128, 111, 84, .23);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.kicker {
  margin: 0 0 10px;
  color: #9b4a0f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}
h1 {
  max-width: 930px;
  margin: 0;
  font-size: clamp(34px, 5.6vw, 62px);
  line-height: 1.03;
  letter-spacing: -.045em;
}
h2 {
  margin: 2em 0 .65em;
  font-size: clamp(26px, 3.8vw, 38px);
  line-height: 1.15;
  letter-spacing: -.025em;
}
h3 {
  margin: 1.55em 0 .55em;
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.25;
}

.lead {
  max-width: 790px;
  margin: 22px 0 0;
  color: #3d4a52;
  font-size: clamp(18px, 2.3vw, 22px);
  line-height: 1.55;
}

.article-hero {
  margin: 30px 0 28px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--night);
  box-shadow: 0 16px 40px rgba(18, 31, 40, .16);
}
.article-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-hero figcaption {
  padding: 10px 14px;
  color: #d5dde1;
  background: var(--night);
  font-size: 12px;
}

.toc {
  margin: 26px 0 34px;
  border: 1px solid #cfbea5;
  border-radius: 16px;
  background: #fff6e8;
}
.toc summary {
  padding: 15px 18px;
  cursor: pointer;
  color: #6f350c;
  font-weight: 850;
  list-style-position: inside;
}
.toc[open] summary { border-bottom: 1px solid #dfc9aa; }
.toc ol { margin: 0; padding: 16px 24px 18px 46px; }
.toc li + li { margin-top: 6px; }
.toc a { color: #4e5147; }

.article-content { color: #283740; }
.article-content p,
.article-content li,
.article-content blockquote { overflow-wrap: anywhere; }
.article-content > :first-child { margin-top: 0; }
.article-content p,
.article-content li { font-size: 18px; }
.article-content p { margin: 0 0 1.18em; }
.article-content ul,
.article-content ol { padding-left: 1.35em; }
.article-content li + li { margin-top: .45em; }
.article-content blockquote {
  margin: 1.6em 0;
  padding: 18px 20px;
  border-left: 5px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: #f1ece3;
  color: #37464e;
}
.article-content iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 26px 0;
  border: 0;
  border-radius: 16px;
  background: #000;
}
.article-content hr { margin: 2.2em 0; border: 0; border-top: 1px solid var(--line); }
.article-content table { width: 100%; border-collapse: collapse; }
.article-content th,
.article-content td { padding: 11px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { background: #efe8dc; }

.rail { display: grid; gap: 18px; }
.rail-card {
  padding: 22px;
  border: 1px solid rgba(128, 111, 84, .24);
  border-radius: 18px;
  background: rgba(255, 253, 248, .82);
  box-shadow: 0 14px 35px rgba(18, 31, 40, .07);
  backdrop-filter: blur(8px);
}
.rail-card h2 { margin: 0 0 12px; font-family: inherit; font-size: 16px; letter-spacing: 0; }
.rail-card p { margin: 0; color: var(--muted); font-size: 14px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.chip-list a {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #33454e;
  background: #e9e4da;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.chip-list a:hover { color: #fff; background: var(--ok); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 54px 0 20px;
}
.section-head h2 { margin: 0; }
.section-head p { max-width: 540px; margin: 0; color: var(--muted); }

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

.brand-card,
.related-card,
.feature-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(128, 111, 84, .23);
  border-radius: 18px;
  color: inherit;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(18, 31, 40, .08);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.brand-card:hover,
.related-card:hover,
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 20px 46px rgba(18, 31, 40, .13); }
.brand-card img,
.related-card img,
.feature-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--night); }
.brand-card__body,
.related-card__body,
.feature-card__body { padding: 17px 18px 19px; }
.brand-card strong,
.related-card strong,
.feature-card strong { display: block; color: var(--ink); font-size: 17px; line-height: 1.35; }
.brand-card span,
.related-card span,
.feature-card span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(330px, 1.05fr);
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--night);
  box-shadow: var(--shadow);
}
.category-hero__copy { padding: clamp(30px, 5vw, 60px); color: #fff; }
.category-hero__copy h1 { color: #fff; }
.category-hero__copy .lead { color: #d5dde1; }
.category-hero img { display: block; width: 100%; height: 100%; min-height: 390px; object-fit: cover; }

.article-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.article-index a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 700;
  line-height: 1.36;
  text-decoration: none;
}
.article-index a::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: .43em;
  border: 3px solid var(--accent);
  border-radius: 50%;
}
.article-index a:hover { border-color: #b75f1b; background: #fff8ed; }

.sitemap-group {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.sitemap-group summary { padding: 16px 18px; cursor: pointer; font-weight: 850; }
.sitemap-group ul { columns: 2 310px; margin: 0; padding: 2px 26px 24px 42px; }
.sitemap-group li { break-inside: avoid; margin: 0 0 8px; }

.legal-card .legal-meta {
  display: inline-flex;
  margin: 20px 0;
  padding: 7px 12px;
  border-radius: 999px;
  color: #6a3c15;
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 800;
}

.notice {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid #b9d2cb;
  border-radius: 14px;
  color: #214d43;
  background: #eaf6f1;
}

.site-footer {
  color: #d9e0e3;
  background: var(--night);
}
.footer-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr) minmax(240px, .8fr);
  gap: 42px;
}
.footer-brand { max-width: 480px; }
.footer-brand strong { color: #fff; font-size: 23px; }
.footer-brand p { margin: 12px 0 0; color: #aebcc3; }
.footer-col h2 { margin: 0 0 13px; color: #fff; font-family: inherit; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: #d9e0e3; }
.footer-col a:hover { color: #ffc277; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  color: #8fa0a9;
  font-size: 13px;
}

.error-page { min-height: 55vh; display: grid; place-items: center; text-align: center; }
.error-page__code { margin: 0; color: var(--accent); font-size: clamp(70px, 18vw, 170px); font-weight: 950; letter-spacing: -.08em; line-height: .8; }

@media (max-width: 980px) {
  .page-grid { grid-template-columns: 1fr; }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-grid, .related-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-hero { grid-template-columns: 1fr; }
  .category-hero img { min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; line-height: 1.62; }
  .site-header, .header-shell { min-height: 226px; }
  .header-shell, .site-main, .footer-shell { width: min(calc(100% - 28px), var(--content)); }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .30);
    border-radius: 999px;
    cursor: pointer;
    color: #fff;
    background: rgba(13, 24, 31, .64);
    font-weight: 800;
    list-style: none;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-nav {
    position: absolute;
    z-index: 20;
    right: 0;
    top: calc(100% + 8px);
    width: min(290px, calc(100vw - 28px));
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    background: rgba(12, 22, 29, .97);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
  }
  .mobile-nav a { border-radius: 10px; }
  .header-note { margin-top: 28px; }
  .site-main { padding-top: 24px; padding-bottom: 52px; }
  .article, .page-card, .legal-card { padding: 24px 20px; border-radius: 18px; }
  h1 { font-size: clamp(32px, 11vw, 48px); }
  .article-content p, .article-content li { font-size: 17px; }
  .article-hero { margin-left: -8px; margin-right: -8px; border-radius: 14px; }
  .rail { grid-template-columns: 1fr; }
  .brand-grid, .related-grid, .feature-grid, .article-index { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; gap: 8px; }
  .category-hero img { min-height: 230px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .brand__text small { display: none; }
  .brand__mark { width: 42px; border-radius: 13px; }
  .brand__text strong { font-size: 19px; }
  .header-note p { font-size: 24px; }
  .article, .page-card, .legal-card { padding: 22px 17px; }
  .page-card h1 {
    font-size: clamp(31px, 9.4vw, 38px);
    overflow-wrap: normal;
    text-wrap: wrap;
  }
  .article-content p, .article-content li { font-size: 16.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  body { color: #000; background: #fff; }
  .site-header, .site-footer, .rail, .related-section, .breadcrumbs { display: none; }
  .site-main { width: 100%; padding: 0; }
  .page-grid { display: block; }
  .article, .page-card, .legal-card { padding: 0; border: 0; box-shadow: none; }
  a { color: #000; text-decoration: none; }
}
