:root {
  --ink: #17324d;
  --muted: #617386;
  --line: #e4e9ee;
  --paper: #ffffff;
  --canvas: #f6f8f9;
  --yellow: #ffc900;
  --yellow-deep: #d89a00;
  --cream: #fff8dc;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  color: var(--ink);
  background: var(--canvas);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; }
a { text-underline-offset: 3px; }

.topbar {
  min-height: 82px;
  background: #ffc94a;
  border-top: 0;
  border-bottom: 1px solid rgba(39, 36, 59, .12);
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: relative;
  z-index: 20;
}

.topbar-inner { width: 100%; max-width: 1180px; min-width: 0; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.topbar-left, .brand-cluster, .site-nav, .topbar-actions { display: flex; align-items: center; }
.topbar-left { min-width: 0; gap: 30px; }
.brand-cluster { flex: 0 0 auto; gap: 10px; }
.brand-word { color: #27243b; text-decoration: none; font-size: 24px; font-weight: 850; letter-spacing: -.04em; }
.site-badge {
  min-height: 25px;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #27243b;
  color: #ffc94a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .08em;
  transition: transform .16s ease, color .16s ease;
}
.site-badge:hover { color: #fff; transform: translateY(-1px); }
.site-nav { gap: 24px; }
.topbar-actions { flex: 0 0 auto; gap: 22px; }
.site-nav a, .topbar-actions a { position: relative; color: #343044; text-decoration: none; font-size: 15px; font-weight: 700; }
.site-nav a::after, .topbar-actions > a:not(.header-search)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: #27243b;
  content: "";
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .16s ease, transform .16s ease;
}
.site-nav a:hover::after, .topbar-actions > a:not(.header-search):hover::after { opacity: 1; transform: scaleX(1); }
.header-search { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.header-search:hover { background: rgba(39, 36, 59, .09); }
.header-search svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.brand-word:focus-visible, .site-badge:focus-visible, .site-nav a:focus-visible, .topbar-actions a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { width: 42px; height: 42px; border-radius: 50%; display: grid; place-content: center; gap: 5px; cursor: pointer; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary:hover, .mobile-menu[open] summary { background: rgba(39, 36, 59, .09); }
.mobile-menu summary span { width: 21px; height: 2px; border-radius: 2px; background: #27243b; transition: transform .16s ease, opacity .16s ease; }
.mobile-menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu[open] summary span:nth-child(2) { opacity: 0; }
.mobile-menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu nav { position: absolute; top: calc(100% + 13px); right: 0; min-width: 220px; padding: 8px; border: 1px solid rgba(39, 36, 59, .12); border-radius: 16px; display: grid; background: #fff; box-shadow: 0 18px 46px rgba(23, 50, 77, .2); }
.mobile-menu nav a { padding: 12px 14px; border-radius: 10px; color: #27243b; text-decoration: none; font-size: 16px; font-weight: 700; }
.mobile-menu nav a:hover { background: #fff6d9; }
.ecosystem-bar .language-menu summary { color: #493812; font-weight: 800; }
.ecosystem-bar .language-menu summary:hover { color: #fff; }

.hero {
  padding: 76px 20px 86px;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 201, 0, .22) 0 130px, transparent 131px),
    radial-gradient(circle at 10% 115%, rgba(255, 201, 0, .13) 0 235px, transparent 236px),
    linear-gradient(135deg, #102d46 0%, #173f5d 58%, #1d506d 100%);
  border-bottom: 5px solid var(--yellow);
}
.hero-inner { max-width: 850px; margin: auto; text-align: center; position: relative; }
.hero-kicker { margin: 0 0 14px; color: var(--yellow); font-size: 13px; font-weight: 850; letter-spacing: .19em; }
.hero h1 { margin: 0; color: #fff; font-size: clamp(44px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.045em; }
.hero-copy { max-width: 860px; margin: 18px auto 32px; color: #cfdae3; font-size: 20px; line-height: 1.55; }
.search {
  height: 72px;
  background: #fff;
  border: 1px solid rgba(23, 50, 77, .12);
  border-radius: 18px;
  display: flex;
  align-items: center;
  padding: 0 25px;
  gap: 15px;
  box-shadow: 0 20px 48px rgba(2, 18, 31, .28);
  text-align: left;
}
.search:focus-within { border-color: var(--yellow); box-shadow: 0 20px 48px rgba(2, 18, 31, .28), 0 0 0 4px rgba(255, 201, 0, .28); }
.search > span { color: #bd8800; font-size: 24px; font-weight: 700; }
.search input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 19px; }
.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(23, 50, 77, .18);
  text-align: left;
  z-index: 30;
}
.search-results a { display: block; padding: 12px 14px; color: var(--ink); text-decoration: none; border-radius: 10px; }
.search-results a:hover { background: #fff8df; }
.search-results strong, .search-results small { display: block; }
.search-results small { margin-top: 5px; color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.topic-jump { background: #fff; border-bottom: 1px solid var(--line); }
.topic-jump-desktop { max-width: 1180px; margin: auto; padding: 0 24px; display: grid; grid-template-columns: repeat(5, 1fr); }
.topic-jump a { min-height: 86px; padding: 17px 10px; border-right: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: #4d6074; text-decoration: none; text-align: center; font-size: 14px; font-weight: 750; line-height: 1.3; white-space: nowrap; }
.topic-jump a:first-child { border-left: 1px solid var(--line); }
.topic-jump a:hover { color: var(--ink); background: #fffaf0; }
.topic-jump-mobile { display: none; }

.content, .page { max-width: 1180px; margin: 0 auto; padding: 64px 24px; }
.grouped-content { padding-top: 72px; }
.content-intro { max-width: 1000px; margin-bottom: 48px; }
.content-intro h2 { margin: 8px 0 12px; font-size: clamp(34px, 2.7vw, 42px); letter-spacing: -.035em; }
.content-intro > p:last-child { margin: 0; color: var(--muted); font-size: 19px; }
.eyebrow, .topic-label { margin: 0; color: #a87500; font-size: 13px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }

.topic-group { margin: 0 0 76px; scroll-margin-top: 24px; }
.topic-header {
  margin-bottom: 22px;
  padding: 26px 28px;
  border: 1px solid #eadb9f;
  border-radius: 20px;
  background: linear-gradient(105deg, #fff9e4, #fffdf6 72%);
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}
.topic-number { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font-weight: 900; }
.topic-header h2 { margin: 5px 0 6px; font-size: 30px; letter-spacing: -.025em; }
.topic-header p:last-child { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.topic-count { padding: 9px 13px; border-radius: 99px; background: #fff; border: 1px solid #eadfb8; color: #76611d; font-size: 14px; font-weight: 800; white-space: nowrap; }

.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.category-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 17px;
  box-shadow: 0 8px 30px rgba(29, 57, 81, .045);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.category-card:hover { transform: translateY(-2px); border-color: #dbc66f; box-shadow: 0 14px 36px rgba(29, 57, 81, .09); }
.icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: #fff4c3; color: #856300; font-weight: 850; }
.category-card h3, .category-card h2 { margin: 2px 0 12px; font-size: 21px; line-height: 1.3; }
.category-card a { color: var(--ink); text-decoration: none; }
.category-card ul { margin: 0; padding: 0; list-style: none; }
.category-card li { padding: 9px 0; border-bottom: 1px solid #edf0f2; font-size: 17px; line-height: 1.42; }
.category-card li a { color: #344d64; }
.category-card li a:hover { color: #9e7300; text-decoration: underline; }
.category-card .more { display: inline-flex; gap: 6px; margin-top: 17px; color: #9f7200; font-size: 16px; font-weight: 800; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 38px; color: #718193; font-size: 16px; }
.breadcrumbs a { color: #536b82; text-decoration: none; }
.breadcrumbs a:hover { color: #9e7300; }
.page-title { max-width: 860px; margin-bottom: 32px; }
.page-title h1, article h1 { margin: 10px 0 0; font-size: clamp(34px, 4vw, 46px); line-height: 1.12; letter-spacing: -.035em; }
.article-list > a { margin: 13px 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 15px; background: #fff; display: flex; justify-content: space-between; gap: 24px; color: var(--ink); text-decoration: none; }
.article-list > a:hover { border-color: #dbc66f; box-shadow: 0 8px 28px rgba(29, 57, 81, .07); }
.article-list h2 { margin: 0 0 8px; font-size: 22px; }
.article-list p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }

.article-page > article { max-width: 1040px; margin: auto; padding: 54px 64px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.article-body { font-size: 20px; line-height: 1.78; }
.article-body img { max-width: 100%; height: auto; }
.article-body iframe, .article-body video { max-width: 100%; }
.article-page article aside { margin-top: 42px; padding-top: 24px; border-top: 1px solid #dde3ea; display: flex; justify-content: space-between; gap: 18px; }
.article-page article aside a { color: #9f7200; }

footer { padding: 31px max(24px, calc((100% - 1180px) / 2)); border-top: 1px solid var(--line); background: #fff; display: flex; justify-content: space-between; color: #677a8d; }
footer a { color: #956b00; font-weight: 750; }

@media (max-width: 900px) {
  .topbar-left { gap: 20px; }
  .site-nav { gap: 16px; }
  .site-nav a, .topbar-actions a { font-size: 14px; }
  .category-grid { grid-template-columns: 1fr; }
  .topic-header { grid-template-columns: 54px 1fr; }
  .topic-count { grid-column: 2; justify-self: start; }
}

@media (min-width: 901px) {
  .content-intro h2 { white-space: nowrap; }
  .hero-copy { white-space: nowrap; }
}

@media (max-width: 760px) {
  .topbar { min-height: 68px; padding: 10px 16px; }
  .topbar-inner { gap: 12px; }
  .topbar-left { gap: 0; }
  .brand-word { font-size: 21px; }
  .site-badge { min-height: 24px; padding: 3px 8px; font-size: 10px; }
  .site-nav, .topbar-actions { display: none; }
  .mobile-menu { display: block; }
  .hero { padding: 42px 16px 48px; background: linear-gradient(145deg, #102d46 0%, #174563 100%); border-bottom-width: 4px; }
  .hero-kicker { margin-bottom: 10px; font-size: 11px; }
  .hero h1 { font-size: clamp(36px, 11vw, 44px); line-height: 1.05; }
  .hero-copy { max-width: 31ch; margin: 14px auto 24px; font-size: 16px; line-height: 1.5; white-space: normal; }
  .search { height: 58px; padding: 0 17px; border-radius: 15px; gap: 11px; }
  .search > span { font-size: 21px; }
  .search input { min-width: 0; font-size: 16px; }
  .topic-jump-desktop { display: none; }
  .topic-jump-mobile { max-width: 100%; display: block; }
  .topic-jump-mobile summary { min-height: 58px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); cursor: pointer; list-style: none; font-size: 15px; font-weight: 800; }
  .topic-jump-mobile summary::-webkit-details-marker { display: none; }
  .topic-jump-mobile summary::after { content: "+"; color: #9f7200; font-size: 24px; font-weight: 500; }
  .topic-jump-mobile[open] summary::after { content: "−"; }
  .topic-jump-mobile > div { padding: 0 14px 14px; display: grid; }
  .topic-jump-mobile a { min-height: 48px; padding: 10px 8px; border: 0; border-top: 1px solid var(--line); justify-content: flex-start; text-align: left; font-size: 15px; white-space: normal; }
  .topic-jump-mobile a:first-child { border-left: 0; }
  .content, .page { padding: 38px 16px; }
  .grouped-content { padding-top: 42px; }
  .content-intro { margin-bottom: 34px; }
  .content-intro h2 { margin-top: 7px; font-size: 31px; line-height: 1.08; }
  .content-intro > p:last-child { font-size: 17px; line-height: 1.5; }
  .topic-group { margin-bottom: 52px; scroll-margin-top: 14px; }
  .topic-header { padding: 19px 17px; grid-template-columns: 44px minmax(0, 1fr); gap: 13px; border-radius: 16px; }
  .topic-number { width: 44px; height: 44px; border-radius: 12px; font-size: 15px; }
  .topic-label { font-size: 10px; letter-spacing: .13em; }
  .topic-header h2 { margin: 3px 0 5px; font-size: 23px; line-height: 1.12; }
  .topic-header p:last-child { font-size: 15px; line-height: 1.42; }
  .topic-count { grid-column: 2; padding: 7px 10px; font-size: 12px; }
  .category-grid { gap: 14px; }
  .category-card { padding: 20px 16px; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; border-radius: 15px; }
  .icon { width: 38px; height: 38px; border-radius: 11px; font-size: 15px; }
  .category-card h3, .category-card h2 { margin-bottom: 9px; font-size: 20px; }
  .category-card li { padding: 8px 0; font-size: 16px; }
  .category-card .more { margin-top: 14px; font-size: 15px; }
  .breadcrumbs { margin-bottom: 26px; gap: 7px; font-size: 14px; line-height: 1.45; }
  .page-title h1, article h1 { font-size: 32px; line-height: 1.1; }
  .article-list > a { margin: 10px 0; padding: 18px 16px; gap: 14px; border-radius: 13px; }
  .article-list h2 { font-size: 20px; line-height: 1.3; }
  .article-list p { font-size: 15px; }
  .article-page > article { padding: 28px 18px; border-radius: 16px; }
  .article-body { font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
  .article-body table { display: block; max-width: 100%; overflow-x: auto; }
  .article-body pre { max-width: 100%; overflow-x: auto; }
  .article-page article aside, footer { flex-direction: column; }
  footer { padding: 24px 16px; gap: 10px; font-size: 15px; }
}
