@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("../assets/inter-latin.woff2") format("woff2");
}

:root {
  --ink: #151515;
  --muted: #62666c;
  --paper: #ffffff;
  --surface: #f7f7f7;
  --line: #dedfe1;
  --orange: #f53a0a;
  --orange-dark: #d92d06;
  --teal: #087f78;
  --focus: #006fcc;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kb-header {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 58px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.product-logo {
  display: block;
  width: 205px;
}

.product-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.kb-header nav {
  display: flex;
  align-items: center;
  gap: 31px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 400;
}

.kb-header nav a {
  padding-block: 10px;
  border-bottom: 2px solid transparent;
}

.kb-header nav a:hover,
.kb-header nav a[aria-current="page"] {
  border-color: var(--orange);
}

.header-button {
  display: inline-flex;
  min-width: 138px;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  padding: 0 28px !important;
  background: var(--orange);
  border: 0 !important;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
}

.header-button:hover {
  background: var(--orange-dark);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: opacity 160ms ease, transform 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.kb-intro {
  padding: 52px clamp(20px, 5vw, 72px) 48px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.kb-intro-inner,
.topic-browser,
.article-layout {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: 48px;
  line-height: 1;
  font-weight: 850;
}

.intro-copy {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.search {
  position: relative;
  width: min(720px, 100%);
}

.search input {
  width: 100%;
  height: 62px;
  padding: 0 58px 0 20px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  outline: none;
}

.search input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(0, 111, 204, 0.16);
}

.search input::placeholder {
  color: #777b80;
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
}

.search-clear:hover {
  background: var(--surface);
  color: var(--ink);
}

.search-clear:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.result-summary {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.popular-guides,
.topic-browser {
  padding: clamp(62px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: block;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.05;
}

.popular-links {
  border-top: 1px solid var(--ink);
}

.popular-links a {
  display: grid;
  grid-template-columns: 56px minmax(220px, 0.8fr) minmax(250px, 1fr);
  gap: 22px;
  align-items: center;
  padding: 25px 10px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease, padding 160ms ease;
}

.popular-links a:hover {
  padding-inline: 18px;
  background: var(--surface);
}

.popular-links span,
.category-number {
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
}

.popular-links strong {
  font-size: 17px;
}

.popular-links small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.topic-browser {
  width: 100%;
  max-width: none;
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.popular-guides > .section-heading,
.popular-links,
.topic-browser > .section-heading,
.topic-search,
.category-grid,
.empty-state {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.topic-search {
  margin-bottom: 34px;
}

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

.topic-category {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.category-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.category-heading h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.2;
}

.category-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.topic-category ul,
.article-nav ul {
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.topic-category li a {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 750;
}

.topic-category li:last-child a {
  border-bottom: 0;
}

.topic-category li a:hover span {
  color: var(--orange-dark);
}

.topic-category li small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.empty-state {
  padding: 44px 24px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.empty-state h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  padding: 70px 58px 66px;
  background: #070707;
  color: #fff;
}

.footer-inner {
  display: grid;
  max-width: 1328px;
  grid-template-columns: 1.2fr 1fr 1fr 1.25fr;
  gap: 64px;
  margin: 0 auto;
}

.footer-logo img {
  width: 210px;
  height: auto;
  margin-bottom: 33px;
}

.site-footer p,
.site-footer a {
  font-size: 15px;
  line-height: 1.45;
}

.site-footer strong {
  display: block;
  margin-bottom: 22px;
  font-size: 15px;
  font-weight: 400;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-resources strong {
  font-weight: 700;
}

/* Article pages */
.article-hero {
  padding: 56px clamp(20px, 5vw, 72px) 48px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.article-hero-inner {
  width: min(900px, 100%);
  margin-inline: auto;
}

.back-link {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.back-link:hover {
  color: var(--orange-dark);
}

.article-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 56px;
}

.article-dek {
  max-width: 700px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.article-meta {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 680px);
  gap: clamp(50px, 8vw, 110px);
  justify-content: center;
  padding: clamp(54px, 7vw, 90px) clamp(20px, 5vw, 72px) 110px;
}

.article-nav {
  align-self: start;
  padding-top: 4px;
}

.article-nav > p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-nav a {
  display: block;
  padding: 9px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

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

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

.article-layout-single {
  grid-template-columns: minmax(0, 900px);
}

.article-intro {
  max-width: 820px;
  margin-bottom: 16px !important;
  color: var(--ink) !important;
  font-size: 19px !important;
  line-height: 1.65 !important;
}

.article-intro + .article-intro {
  margin-bottom: 42px !important;
}

.placeholder-layout {
  min-height: 420px;
  grid-template-columns: minmax(0, 680px);
}

.coming-soon {
  padding-top: 4px;
}

.return-link {
  display: inline-block;
  margin-top: 10px;
  border-bottom: 2px solid var(--orange);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.article-content h2 {
  margin: 52px 0 16px;
  font-size: 27px;
  line-height: 1.2;
}

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

.article-content h3 {
  margin: 30px 0 12px;
  font-size: 18px;
}

.article-content p,
.article-content li {
  color: #3f4348;
  font-size: 16px;
  line-height: 1.75;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin-bottom: 22px;
}

.article-content li + li {
  margin-top: 8px;
}

.article-note {
  margin-block: 30px;
  padding: 20px 22px;
  background: #eef7f6;
  border-left: 4px solid var(--teal);
  border-radius: 0 4px 4px 0;
}

.article-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.article-note p {
  margin-bottom: 0;
}

.article-figure {
  margin: 32px 0 42px;
}

.article-figure-mobile {
  max-width: 460px;
  margin-right: auto;
  margin-left: auto;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.article-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .kb-header {
    min-height: 76px;
    padding: 15px 24px;
  }

  .product-logo {
    width: 170px;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .kb-header nav {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    z-index: 30;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .kb-header nav[data-open="true"] {
    display: flex;
  }

  .kb-header nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
  }

  .kb-header nav .header-button {
    margin-top: 14px;
    border-bottom: 0;
  }

  h1 {
    font-size: 42px;
  }

  .intro-copy,
  .article-dek {
    font-size: 18px;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .article-hero h1 {
    font-size: 42px;
  }

  .popular-links a {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .popular-links small {
    grid-column: 2;
  }

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

  .site-footer {
    padding-right: 36px;
    padding-left: 36px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .article-nav {
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 430px) {
  .kb-header {
    gap: 12px;
  }

  h1 {
    font-size: 40px;
  }

  .search input {
    height: 58px;
    font-size: 15px;
  }

  .topic-category {
    padding: 20px;
  }

  .topic-category li a {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

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

  .popular-links a {
    transition: none;
  }
}
