:root {
  --bg: #fbfbfd;
  --card: #ffffff;
  --ink: #1d1d1f;
  --body: #424245;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.085);
  --blue: #0066cc;
  --blue-button: #0071e3;
  --indigo: #0066cc;
  --green: #188957;
  --soft: #f5f5f7;
  --blue-soft: #eef4fa;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 14px 40px rgba(0, 0, 0, 0.045);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #161617;
    --ink: #f5f5f7;
    --body: #d2d2d7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.12);
    --blue: #2997ff;
    --blue-button: #0077ed;
    --green: #44c78a;
    --soft: rgba(255, 255, 255, 0.06);
    --blue-soft: #142b3a;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.public-page .kicker {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-page .lead {
  margin-bottom: 38px;
  color: var(--body);
  font-size: 19px;
  line-height: 1.65;
}

.public-page main > section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.public-page main > section h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.public-page main > section p + p {
  margin-top: 12px;
}

.public-page main > section ul {
  display: grid;
  margin-top: 14px;
  padding-left: 22px;
  gap: 9px;
}

.public-page .related {
  display: flex;
  margin-top: 34px;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.public-page .related a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-underline-offset: 3px;
}

.public-page .topic-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 26px 0 38px;
  gap: 12px;
}

.public-page .topic-links a {
  display: flex;
  min-height: 54px;
  padding: 13px 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--blue);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

::selection {
  background: rgba(0, 113, 227, 0.18);
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgba(0, 113, 227, 0.28);
  outline-offset: 3px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.top-in {
  display: flex;
  min-height: 52px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 22px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.logo .pro {
  display: inline-flex;
  height: 19px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #0a6ed1;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0 6px;
}

.nav,
.top-in > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top a.lang,
.top-in > div > a:not(.cta) {
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

.top a.cta {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--blue-button);
  border-radius: 999px;
  background: var(--blue-button);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  padding: 0 16px;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.top a.cta:hover {
  opacity: 0.86;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 42px 22px 76px;
}

.collection-page main {
  max-width: 1040px;
  padding-top: 64px;
}

h1,
h2,
h3,
strong {
  color: var(--ink);
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.15rem, 5vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.collection-page h1 {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.sub {
  max-width: 650px;
  margin: 0 auto 42px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  text-align: center;
}

.crumb {
  display: flex;
  margin-bottom: 22px;
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 12px;
  gap: 6px;
}

.crumb a {
  color: var(--muted);
  text-decoration-color: color-mix(in srgb, var(--muted) 35%, transparent);
  text-underline-offset: 3px;
}

.meta {
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 12.5px;
}

.guide-article main > p:not(.meta),
.guide-article main > ul,
.guide-article main > ol {
  font-size: 16.5px;
}

h2 {
  margin: 42px 0 13px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h3 {
  margin: 24px 0 9px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

p {
  margin-bottom: 17px;
}

ul,
ol {
  margin: 0 0 18px 23px;
  padding: 0;
}

li {
  margin-bottom: 9px;
  padding-left: 3px;
}

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82em;
  padding: 2px 6px;
}

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

.card,
.case,
.tool,
.chain {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.card {
  display: flex;
  min-height: 240px;
  padding: 26px;
  color: var(--body);
  flex-direction: column;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.card:hover {
  border-color: rgba(0, 102, 204, 0.42);
  transform: translateY(-2px);
}

.card .k,
.case .tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 15px;
  border: 1px solid #dce8f0;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #176b9b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 4px 10px;
  text-transform: uppercase;
}

.card h2 {
  margin: 0 0 9px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.28;
}

.card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.card > span:last-child {
  margin-top: auto;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.callout {
  margin: 25px 0;
  border: 1px solid #dce8f0;
  border-left: 3px solid #176b9b;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--body);
  font-size: 15px;
  line-height: 1.65;
  padding: 18px 20px;
}

.chain {
  margin: 25px 0;
  padding: 18px;
}

.chain div {
  margin-bottom: 9px;
  border: 0;
  border-radius: 12px;
  background: var(--soft);
  color: var(--body);
  font-size: 14px;
  padding: 12px 14px;
}

.chain div:last-child {
  margin-bottom: 0;
  border-left: 3px solid #b75a5a;
}

.case,
.tool {
  margin: 16px 0;
  padding: 21px 22px;
  box-shadow: none;
}

.case .tag {
  margin-bottom: 9px;
}

.tool h3 {
  margin: 0 0 7px;
}

.tool p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.cta-box {
  margin: 42px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: #1d1d1f;
  color: #fff;
  padding: 32px;
  text-align: center;
}

.cta-box h3 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.cta-box p {
  max-width: 560px;
  margin: 0 auto 20px;
  color: #d2d2d7;
  font-size: 14px;
  line-height: 1.65;
}

.cta-box a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: #0066cc;
  font-size: 14px;
  font-weight: 600;
  padding: 0 24px;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.cta-box a:hover {
  background: #f5f5f7;
}

.twrap {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

table {
  width: 100%;
  min-width: 620px;
  margin: 0;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--soft);
  color: var(--ink);
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

.rel {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}

.rel h2 {
  margin-top: 0;
  font-size: 17px;
}

.rel a {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}

.rel a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
  padding: 30px 20px;
  text-align: center;
}

footer a {
  color: var(--muted);
  text-underline-offset: 3px;
}

@media (prefers-color-scheme: dark) {
  .card .k,
  .case .tag {
    border-color: #26465a;
    color: #7ab7d6;
  }

  .callout {
    border-color: #26465a;
    border-left-color: #7ab7d6;
  }

  .cta-box {
    background: #111112;
  }
}

@media (max-width: 719px) {
  .top-in {
    padding: 0 16px;
  }

  .top a.cta {
    display: none;
  }

  main,
  .collection-page main {
    padding: 36px 16px 60px;
  }

  .collection-page main {
    padding-top: 44px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.45rem);
  }

  .sub {
    margin-bottom: 32px;
    font-size: 15px;
  }

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

  .card {
    min-height: 0;
    padding: 22px;
  }

  .guide-article main > p:not(.meta),
  .guide-article main > ul,
  .guide-article main > ol {
    font-size: 16px;
  }

  h2 {
    margin-top: 36px;
    font-size: 21px;
  }

  .cta-box {
    padding: 26px 20px;
  }

  .cta-box a {
    width: 100%;
  }
}

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

  .card,
  .top a.cta,
  .cta-box a {
    transition: none;
  }
}
