@charset "UTF-8";

:root {
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --paper: #ffffff;
  --canvas: #f7f9fc;
  --canvas-blue: #f2f6ff;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #dbeafe;
  --navy: #07152e;
  --green: #059669;
  --amber: #d97706;
  --violet: #7c3aed;
  --rose: #e11d48;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.09);
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

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

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

p,
h1,
h2,
h3,
ul,
ol {
  margin-top: 0;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.34);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-150%);
}

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

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

.section {
  padding: 88px 0;
}

.top-ad {
  padding: 28px 0 30px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.top-ad__inner {
  display: grid;
  justify-items: center;
}

.top-ad__slot {
  display: block;
  width: 970px;
  height: 250px;
  max-width: 100%;
}

.section--soft {
  background: var(--canvas);
}

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

.section-heading__copy {
  max-width: 700px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.section-title {
  margin-bottom: 8px;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.section-description {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.text-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: var(--blue-dark);
  font-weight: 750;
}

.text-link:hover {
  gap: 11px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 68px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.brand-logo {
  display: block;
  width: 70px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-name {
  color: #0754b8;
  background: linear-gradient(120deg, #073b8f 0%, #0074dc 52%, #008cae 100%);
  background-clip: text;
  font-size: 1.08em;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.075em;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 10px 13px;
  color: #334155;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--blue-dark);
  background: #eff6ff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: #334155;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--blue);
  background: var(--canvas-blue);
  border-color: #bfdbfe;
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: min(65vh, 680px);
  isolation: isolate;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}

.hero__media,
.hero__media picture,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: center;
}

.hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 9, 24, 0.92) 0%, rgba(3, 13, 32, 0.78) 34%, rgba(4, 15, 37, 0.25) 68%, rgba(4, 15, 37, 0.17) 100%);
  content: "";
}

.hero::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 110px;
  background: linear-gradient(0deg, rgba(1, 8, 20, 0.3), transparent);
  content: "";
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: min(65vh, 680px);
  align-items: center;
  padding-block: 84px;
}

.hero__content {
  max-width: 630px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 11px;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(147, 197, 253, 0.28);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.hero__badge::before {
  width: 7px;
  height: 7px;
  background: #60a5fa;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.14);
  content: "";
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.9rem, 6.2vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

.hero__subtitle {
  max-width: 540px;
  margin-bottom: 34px;
  color: #cbd5e1;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 19px;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 10px;
  font-size: 0.94rem;
  font-weight: 780;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
}

.button--ghost {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.42);
}

.button--light {
  color: var(--blue-dark);
  background: #fff;
  border-color: #fff;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.category-card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.category-card__icon {
  display: grid;
  width: 45px;
  height: 45px;
  margin-bottom: 20px;
  place-items: center;
  color: var(--card-color, var(--blue));
  background: color-mix(in srgb, var(--card-color, var(--blue)) 10%, white);
  border-radius: 11px;
}

.category-card__icon svg {
  width: 23px;
  height: 23px;
}

.category-card h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.55;
}

.category-card__arrow {
  position: absolute;
  top: 24px;
  right: 21px;
  color: var(--line-strong);
  font-size: 1.15rem;
}

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

.article-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.article-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.article-card__image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #eef2ff;
  overflow: hidden;
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.article-card:hover .article-card__image img {
  transform: scale(1.035);
}

.article-card__rank {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: rgba(7, 21, 46, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 850;
}

.article-card__body {
  padding: 22px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

.category-label {
  color: var(--category-color, var(--blue));
  font-weight: 800;
}

.meta-separator::before {
  content: "·";
}

.article-card h3 {
  display: -webkit-box;
  margin: 10px 0 8px;
  font-size: 1.18rem;
  line-height: 1.45;
  letter-spacing: -0.035em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__summary {
  display: -webkit-box;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.latest-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 150px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.latest-card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-sm);
}

.latest-card__image {
  overflow: hidden;
  background: #eef2ff;
}

.latest-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

.latest-card h3 {
  display: -webkit-box;
  margin: 8px 0 5px;
  font-size: 1.03rem;
  line-height: 1.45;
  letter-spacing: -0.03em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-card p {
  display: -webkit-box;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-action {
  margin-top: 30px;
  text-align: center;
}

.topic-strip {
  color: #dbeafe;
  background: #0b1b3a;
}

.topic-strip__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 70px;
  padding-block: 54px;
}

.topic-strip h2 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
}

.topic-strip p {
  margin: 0;
  color: #9fb0cd;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.topic-tags a {
  padding: 8px 12px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 680;
}

.topic-tags a:hover {
  background: rgba(37, 99, 235, 0.28);
  border-color: rgba(96, 165, 250, 0.45);
}

.page-hero {
  padding: 72px 0 62px;
  background: var(--canvas-blue);
  border-bottom: 1px solid #dbeafe;
}

.page-hero--visual {
  position: relative;
  height: clamp(520px, 41.6667vw, 800px);
  min-height: 520px;
  padding: 0;
  color: #fff;
  background: var(--navy);
  border-bottom: 0;
  isolation: isolate;
  overflow: hidden;
}

.page-hero--visual::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 9, 24, 0.96) 0%, rgba(3, 13, 32, 0.84) 37%, rgba(4, 15, 37, 0.28) 72%, rgba(4, 15, 37, 0.12) 100%);
  content: "";
}

.page-hero__media,
.page-hero__media picture,
.page-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero__media img {
  object-fit: cover;
  object-position: center;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: clamp(520px, 41.6667vw, 800px);
  flex-direction: column;
  justify-content: center;
  padding-block: 48px;
}

.page-hero--visual .breadcrumb {
  color: #a8b6cc;
}

.page-hero--visual .breadcrumb li:not(:last-child)::after {
  color: #64748b;
}

.page-hero--visual .breadcrumb a:hover {
  color: #fff;
}

.page-hero--visual .eyebrow {
  color: #93c5fd;
}

.page-hero--visual h1 {
  color: #fff;
}

.page-hero--visual .page-hero__description {
  color: #d4deed;
}

.page-hero--visual .page-hero__topics span {
  color: #eef5ff;
  background: rgba(8, 24, 52, 0.66);
  border-color: rgba(191, 219, 254, 0.28);
  backdrop-filter: blur(8px);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 60px;
}

.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2.25rem, 5vw, 3.7rem);
  line-height: 1.16;
  letter-spacing: -0.055em;
}

.page-hero__description {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.page-hero__topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.page-hero__topics span {
  padding: 7px 10px;
  color: #334155;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #dbeafe;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 680;
}

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

.empty-state {
  padding: 70px 30px;
  color: var(--muted);
  background: var(--canvas);
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 30px;
  padding: 0;
  color: var(--muted);
  font-size: 0.82rem;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  margin-left: 8px;
  color: #cbd5e1;
  content: "/";
}

.breadcrumb a:hover {
  color: var(--blue);
}

.article-header {
  padding: 46px 0 42px;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}

.article-header__inner {
  max-width: 860px;
}

.article-header h1 {
  margin: 12px 0 18px;
  font-size: clamp(2.25rem, 5vw, 3.65rem);
  line-height: 1.2;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.article-deck {
  margin-bottom: 22px;
  color: #475569;
  font-size: 1.12rem;
  line-height: 1.75;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 800px) 250px;
  justify-content: center;
  gap: 62px;
  padding-top: 56px;
  padding-bottom: 90px;
}

.article-shell__top-ad {
  grid-column: 1 / -1;
  min-width: 0;
}

.article-ad {
  display: grid;
  justify-items: center;
}

.article-ad__slot {
  display: block;
  width: 800px;
  height: 200px;
  max-width: 100%;
}

.article-ad--top .article-ad__slot {
  width: 970px;
  height: 250px;
}

.article-ad--section {
  margin: 0 0 36px;
}

.article-body {
  min-width: 0;
}

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

.article-body h2 {
  margin: 2.5em 0 0.75em;
  font-size: 1.72rem;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.article-body h3 {
  margin: 2em 0 0.65em;
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: -0.03em;
}

.article-body p {
  margin-bottom: 1.35em;
  color: #283548;
  font-size: 1.04rem;
  line-height: 1.95;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.6em;
  padding-left: 1.45em;
}

.article-body li {
  margin: 0.48em 0;
  color: #283548;
  line-height: 1.8;
}

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

.article-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 0.94rem;
}

.article-table caption {
  padding: 14px 16px;
  color: var(--ink-soft);
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  font-weight: 760;
  text-align: left;
}

.article-table th,
.article-table td {
  padding: 15px 17px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-table th:last-child,
.article-table td:last-child {
  border-right: 0;
}

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

.article-table th {
  color: #1e3a5f;
  background: #eff6ff;
  font-weight: 800;
}

.article-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.article-note {
  margin: 30px 0;
  padding: 18px 20px;
  color: #1e3a5f;
  background: #eff6ff;
  border-left: 4px solid var(--blue);
}

.article-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-dark);
}

.code-block {
  position: relative;
  margin: 30px 0;
  color: #d8e2f0;
  background: #0b1220;
  border: 1px solid #1e293b;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.14);
  overflow: hidden;
}

.code-block__bar {
  display: flex;
  height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 16px;
  color: #94a3b8;
  background: #111b2e;
  border-bottom: 1px solid #1e293b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.copy-button {
  padding: 5px 9px;
  color: #cbd5e1;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.7rem;
  cursor: pointer;
}

.copy-button:hover {
  color: #fff;
  border-color: #64748b;
}

.code-block pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  scrollbar-color: #475569 #0b1220;
}

.code-block code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.89rem;
  line-height: 1.72;
  tab-size: 2;
  white-space: pre;
}

.tok-comment { color: #718096; font-style: italic; }
.tok-string { color: #a7f3d0; }
.tok-keyword { color: #c4b5fd; }
.tok-number { color: #fbbf24; }
.tok-function { color: #7dd3fc; }
.tok-tag { color: #fda4af; }

.article-aside {
  min-width: 0;
}

.article-aside__sticky {
  position: sticky;
  top: 96px;
}

.toc {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.toc__title {
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li + li {
  margin-top: 7px;
}

.toc li.is-sub {
  padding-left: 13px;
}

.toc a {
  display: block;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.5;
}

.toc a:hover,
.toc a.is-active {
  color: var(--blue);
}

.sidebar-ad {
  display: grid;
  width: 100%;
  margin-top: 30px;
  justify-items: center;
}

.sidebar-ad__slot {
  display: block;
  width: 250px;
  height: 250px;
  max-width: 100%;
}

.mobile-toc {
  display: none;
  margin-bottom: 32px;
  background: var(--canvas);
  border: 1px solid var(--line);
}

.mobile-toc summary {
  padding: 14px 16px;
  font-weight: 750;
  cursor: pointer;
}

.mobile-toc ul {
  margin: 0;
  padding: 0 16px 16px 32px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.tag-list a {
  padding: 6px 10px;
  color: #475569;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.78rem;
}

.related {
  padding: 70px 0;
  background: var(--canvas);
  border-top: 1px solid var(--line);
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 54px;
}

.article-nav a {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.article-nav a:last-child {
  text-align: right;
}

.article-nav small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
}

.article-nav strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.45;
}

.simple-page {
  max-width: 800px;
  padding-top: 65px;
  padding-bottom: 100px;
}

.simple-page h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.055em;
}

.simple-page h2 {
  margin-top: 2.2em;
  letter-spacing: -0.035em;
}

.simple-page p,
.simple-page li {
  color: var(--ink-soft);
}

.site-footer {
  color: #cbd5e1;
  background: #071124;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 90px;
  padding-top: 62px;
  padding-bottom: 45px;
}

.footer-brand .brand {
  margin-bottom: 16px;
  color: #fff;
}

.footer-brand p {
  max-width: 380px;
  color: #8fa1bd;
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-links h3 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 0.84rem;
}

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a {
  color: #8fa1bd;
  font-size: 0.84rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  color: #718096;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 0.78rem;
}

.search-dialog {
  width: min(calc(100% - 28px), 720px);
  max-height: min(78vh, 760px);
  padding: 0;
  background: var(--paper);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 32px 90px rgba(2, 6, 23, 0.3);
  overflow: hidden;
}

.search-dialog::backdrop {
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(4px);
}

.search-dialog__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.search-dialog__input-wrap {
  position: relative;
  flex: 1;
}

.search-dialog__input-wrap svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 19px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
}

.search-input:focus {
  background: #fff;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-dialog__close {
  width: auto;
  padding-inline: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.search-results {
  max-height: calc(78vh - 78px);
  padding: 12px;
  overflow-y: auto;
}

.search-hint {
  padding: 48px 22px;
  color: var(--muted);
  text-align: center;
}

.search-result {
  display: block;
  padding: 15px;
  border-radius: 10px;
}

.search-result:hover,
.search-result:focus {
  background: var(--canvas-blue);
  outline: 0;
}

.search-result + .search-result {
  border-top: 1px solid var(--line);
}

.search-result strong {
  display: block;
  margin: 5px 0 3px;
  letter-spacing: -0.025em;
}

.search-result p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 340px);
  place-items: center;
  padding: 80px 20px;
  text-align: center;
}

.not-found__code {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
}

@media (max-width: 1024px) {
  .top-ad__slot {
    width: 100%;
    height: 250px;
  }

  .main-nav a {
    padding-inline: 9px;
    font-size: 0.87rem;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .latest-list {
    grid-template-columns: 1fr;
  }

  .article-shell {
    grid-template-columns: minmax(0, 800px);
  }

  .article-shell__top-ad {
    grid-column: 1;
  }

  .article-ad__slot,
  .article-ad--top .article-ad__slot {
    width: 100%;
    height: 250px;
  }

  .article-aside {
    display: none;
  }

  .mobile-toc {
    display: block;
  }

  .page-hero__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .page-hero__topics {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 66px 0;
  }

  .menu-button {
    display: inline-grid;
  }

  .main-nav {
    position: absolute;
    top: 67px;
    right: 0;
    left: 0;
    display: none;
    padding: 10px 20px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.1);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    padding: 12px;
  }

  .hero,
  .hero__inner {
    min-height: 590px;
  }

  .hero__media img {
    object-position: center;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(2, 9, 24, 0.58) 0%, rgba(2, 9, 24, 0.82) 54%, rgba(2, 9, 24, 0.96) 100%);
  }

  .hero__inner {
    align-items: flex-end;
    padding-block: 72px 58px;
  }

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

  .category-card:last-child {
    grid-column: span 2;
  }

  .topic-strip__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-hero--visual,
  .page-hero--visual .page-hero__content {
    min-height: 520px;
  }

  .page-hero--visual::before {
    background: linear-gradient(180deg, rgba(2, 9, 24, 0.34) 0%, rgba(2, 9, 24, 0.7) 45%, rgba(2, 9, 24, 0.98) 100%);
  }

  .page-hero--visual .page-hero__media img {
    object-position: 62% center;
  }

  .page-hero--visual .page-hero__content {
    justify-content: flex-end;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 45px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 54px 0;
  }

  .top-ad {
    padding: 20px 0 22px;
  }

  .top-ad__slot {
    width: 300px;
    height: 250px;
  }

  .article-ad__slot,
  .article-ad--top .article-ad__slot {
    width: 300px;
    height: 250px;
  }

  .article-ad--section {
    margin-bottom: 30px;
  }

  .article-table-wrap {
    overflow: visible;
    border: 0;
  }

  .article-table {
    min-width: 0;
    background: transparent;
  }

  .article-table caption {
    margin-bottom: 10px;
    border: 1px solid var(--line);
  }

  .article-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
    white-space: nowrap;
  }

  .article-table tbody,
  .article-table tr,
  .article-table td {
    display: block;
    width: 100%;
  }

  .article-table tr {
    margin-bottom: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }

  .article-table th,
  .article-table td,
  .article-table td:last-child {
    border-right: 0;
  }

  .article-table td {
    display: grid;
    grid-template-columns: minmax(88px, 0.42fr) minmax(0, 1fr);
    gap: 14px;
    padding: 13px 15px;
    border-bottom: 1px solid var(--line);
  }

  .article-table td::before {
    color: var(--blue-dark);
    font-size: 0.82rem;
    font-weight: 800;
    content: attr(data-label);
  }

  .article-table tbody tr:last-child td:not(:last-child),
  .article-table td:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }

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

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-logo {
    width: 64px;
    height: 32px;
  }

  .header-actions {
    margin-left: 8px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .hero__subtitle {
    max-width: 420px;
  }

  .hero__actions .button {
    flex: 1 1 auto;
  }

  .category-grid {
    gap: 10px;
  }

  .category-card {
    min-height: 164px;
    padding: 17px;
  }

  .category-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
  }

  .category-card__arrow {
    top: 18px;
    right: 15px;
  }

  .category-card p {
    display: none;
  }

  .popular-grid,
  .category-feed {
    grid-template-columns: 1fr;
  }

  .latest-card {
    grid-template-columns: 112px 1fr;
    min-height: 134px;
  }

  .latest-card__body {
    padding: 15px;
  }

  .latest-card p {
    display: none;
  }

  .page-hero {
    padding: 50px 0 44px;
  }

  .page-hero__topics {
    flex-wrap: nowrap;
    margin-right: -14px;
    padding-right: 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .page-hero__topics::-webkit-scrollbar {
    display: none;
  }

  .page-hero__topics span {
    flex: 0 0 auto;
  }

  .article-header {
    padding-top: 30px;
  }

  .article-header h1 {
    font-size: 2.25rem;
  }

  .article-shell {
    padding-top: 38px;
    padding-bottom: 64px;
  }

  .article-body h2 {
    font-size: 1.48rem;
  }

  .article-body p {
    font-size: 1rem;
  }

  .code-block {
    margin-right: -4px;
    margin-left: -4px;
    border-radius: 9px;
  }

  .code-block pre {
    padding: 17px;
  }

  .code-block code {
    font-size: 0.82rem;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav a:last-child {
    text-align: left;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

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