:root {
  --ink: #122333;
  --ink-strong: #071c2f;
  --ink-muted: #5b6c79;
  --navy: #073b69;
  --blue: #0878d1;
  --blue-soft: #eaf5fd;
  --green: #1c9468;
  --green-soft: #e8f6f0;
  --coral: #df704d;
  --coral-soft: #fff0ea;
  --gold: #aa7416;
  --paper: #f5f8fa;
  --paper-blue: #f0f7fb;
  --white: #ffffff;
  --line: #d9e2e8;
  --line-strong: #bdcbd4;
  --shadow: 0 14px 32px rgba(7, 35, 57, 0.09);
  --radius: 6px;
  --content: 1200px;
  --header-height: 72px;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--ink);
}

body,
button,
input {
  font-family: "Manrope", sans-serif;
  letter-spacing: 0;
}

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

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

button,
input {
  font-size: inherit;
}

button {
  color: inherit;
}

svg {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

[hidden] {
  display: none !important;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink-strong);
  color: var(--white);
  border-radius: 4px;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(calc(100% - 48px), var(--content));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  white-space: nowrap;
}

.brand-name {
  color: var(--navy);
  font-size: 24px;
  font-weight: 800;
}

.brand-rule {
  width: 1px;
  height: 24px;
  background: var(--line-strong);
}

.brand-section {
  color: var(--ink-muted);
  font-size: 17px;
  font-weight: 600;
}

.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #334b5c;
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--blue);
}

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

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

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.mobile-menu-button {
  display: none;
}

.mobile-nav {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto 16px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 600;
}

.search-stage {
  position: relative;
  overflow: visible;
  background-color: var(--paper-blue);
  background-image:
    linear-gradient(rgba(7, 59, 105, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 59, 105, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  border-bottom: 1px solid #dbe9f2;
}

.search-stage::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 100%;
  background: var(--green);
}

.search-stage-inner {
  width: min(calc(100% - 48px), 920px);
  min-height: 410px;
  margin: 0 auto;
  padding: 72px 0 64px;
  text-align: center;
}

.scope-line,
.section-label,
.content-type,
.quick-label {
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.scope-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.scope-line span {
  width: 3px;
  height: 3px;
  background: var(--green);
  border-radius: 50%;
}

.search-stage h1 {
  margin: 14px 0 12px;
  color: var(--ink-strong);
  font-size: 54px;
  line-height: 1.08;
  font-weight: 800;
}

.stage-summary {
  max-width: 690px;
  margin: 0 auto 28px;
  color: #4b6476;
  font-family: "Source Serif 4", serif;
  font-size: 20px;
  line-height: 1.55;
}

.search-shell {
  position: relative;
  z-index: 20;
  width: min(100%, 760px);
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: var(--white);
  border: 1px solid #aac6d9;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
}

.search-shell:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8, 120, 209, 0.13), var(--shadow);
}

.search-submit {
  width: 22px;
  height: 22px;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: var(--blue);
  cursor: pointer;
}

.search-submit svg {
  width: 22px;
  height: 22px;
}

.search-shell input {
  width: 100%;
  height: 60px;
  min-width: 0;
  padding: 0;
  color: var(--ink-strong);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 17px;
}

.search-shell input::placeholder {
  color: #8193a0;
}

/* Keep the template's custom clear button as the only visible search clear control. */
.search-shell input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-clear {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.search-results {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  left: -1px;
  width: calc(100% + 2px);
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.search-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  padding: 12px;
  border-radius: 4px;
}

.search-result:hover,
.search-result:focus-visible {
  background: var(--paper-blue);
}

.search-result strong {
  color: var(--ink-strong);
  font-size: 14px;
}

.search-result small {
  grid-column: 1;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.45;
}

.search-result em {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.search-no-results {
  margin: 0;
  padding: 18px 14px;
  color: var(--ink-muted);
  font-size: 12px;
  text-align: center;
}

.popular-searches {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--ink-muted);
  font-size: 13px;
}

.popular-searches span {
  font-weight: 700;
}

.popular-searches a {
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #9eb5c4;
  color: var(--navy);
  cursor: pointer;
  text-decoration: none;
}

.section-inner {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
}

.topic-section,
.featured-section,
.definitions-section {
  padding: 76px 0;
}

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

.section-heading h2,
.definitions-toolbar h2,
.article-feedback h2 {
  margin: 7px 0 0;
  color: var(--ink-strong);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
}

.text-link,
.read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.text-link:hover,
.read-link:hover {
  text-decoration: underline;
}

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

.topic-item {
  min-height: 116px;
  padding: 20px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.topic-item:hover,
.topic-item:focus-visible,
.topic-item.is-selected {
  border-color: #8dbad7;
  box-shadow: 0 10px 24px rgba(7, 35, 57, 0.08);
  transform: translateY(-2px);
}

.topic-item.is-selected {
  background: var(--paper-blue);
}

.topic-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.topic-icon svg {
  width: 22px;
  height: 22px;
}

.topic-macos .topic-icon,
.topic-windows .topic-icon {
  color: var(--blue);
  background: var(--blue-soft);
}

.topic-storage .topic-icon,
.topic-security .topic-icon {
  color: var(--green);
  background: var(--green-soft);
}

.topic-files .topic-icon,
.topic-processes .topic-icon {
  color: var(--coral);
  background: var(--coral-soft);
}

.topic-copy {
  min-width: 0;
}

.topic-copy strong,
.topic-copy small {
  display: block;
}

.topic-copy strong {
  margin-bottom: 7px;
  color: var(--ink-strong);
  font-size: 16px;
}

.topic-copy small {
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.45;
}

.topic-count {
  color: #7a8e9c;
  font-size: 12px;
  font-weight: 700;
}

.featured-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 36px;
  align-items: stretch;
}

.featured-lead {
  min-height: 430px;
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--ink-strong);
  border-radius: var(--radius);
}

.featured-lead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 20, 34, 0.94) 0%, rgba(3, 20, 34, 0.2) 72%);
}

.featured-lead img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 300ms ease;
}

.featured-lead:hover img {
  transform: scale(1.025);
}

.featured-lead-copy {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 32px;
  color: var(--white);
}

.featured-lead-copy .content-type {
  color: #86e1bd;
}

.featured-lead-copy h3 {
  margin: 10px 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.featured-lead-copy p {
  max-width: 620px;
  margin: 0 0 18px;
  color: #d8e5ed;
  font-family: "Source Serif 4", serif;
  font-size: 16px;
  line-height: 1.55;
}

.featured-lead-copy .read-link {
  color: var(--white);
}

.featured-list {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
}

.featured-row {
  min-height: 130px;
  padding: 14px;
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.featured-row:hover,
.featured-row:focus-visible {
  border-color: #8dbad7;
}

.featured-row img {
  width: 148px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}

.featured-row span,
.featured-row small,
.featured-row strong,
.featured-row em {
  display: block;
}

.featured-row small {
  margin-bottom: 7px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.featured-row strong {
  color: var(--ink-strong);
  font-size: 15px;
  line-height: 1.42;
}

.featured-row em {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 11px;
  font-style: normal;
}

.az-section {
  padding: 56px 0 28px;
}

.compact-heading {
  margin-bottom: 22px;
}

.alphabet {
  display: grid;
  grid-template-columns: 54px repeat(26, minmax(32px, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.alphabet button {
  height: 48px;
  padding: 0;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  color: #4c6373;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.alphabet button:first-child {
  border-left: 1px solid var(--line);
}

.alphabet button:hover,
.alphabet button:focus-visible,
.alphabet button.is-active {
  color: var(--white);
  background: var(--navy);
}

.definitions-section {
  padding-top: 38px;
}

.definitions-toolbar {
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.definitions-toolbar h2 {
  margin: 0;
}

.definitions-active-topic {
  color: var(--ink-muted);
  font-size: 20px;
  font-weight: 600;
}

.definitions-clear-topic {
  width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}

.definitions-clear-topic svg {
  width: 15px;
  height: 15px;
}

.definitions-clear-topic:hover,
.definitions-clear-topic:focus-visible {
  background: var(--paper-blue);
  color: var(--blue);
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  padding: 3px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.segmented-control button {
  min-height: 38px;
  padding: 0 14px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.segmented-control button.is-active {
  color: var(--ink-strong);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(7, 35, 57, 0.08);
}

.definition-list {
  border-top: 1px solid var(--line-strong);
}

.definition-row {
  min-height: 86px;
  padding: 16px 10px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 140px 24px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.definition-row:hover,
.definition-row:focus-visible {
  background: var(--paper-blue);
}

.definition-letter {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--blue-soft);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.definition-row strong,
.definition-row small {
  display: block;
}

.definition-row strong {
  margin-bottom: 5px;
  color: var(--ink-strong);
  font-size: 15px;
}

.definition-row small {
  color: var(--ink-muted);
  font-family: "Source Serif 4", serif;
  font-size: 14px;
  line-height: 1.45;
}

.definition-row em {
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-align: right;
}

.definition-row > svg {
  color: #7e94a2;
}

.empty-state {
  padding: 36px 0;
  color: var(--ink-muted);
  text-align: center;
}

.site-footer {
  padding: 54px 0 28px;
  color: #c4d4df;
  background: var(--ink-strong);
}

.footer-inner {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px 50px;
  align-items: start;
}

.footer-brand .brand-name,
.footer-brand .brand-section {
  color: var(--white);
}

.footer-brand .brand-rule {
  background: #5e7788;
}

.footer-inner > div > p {
  margin: 7px 0 0;
  color: #93a9b8;
  font-family: "Source Serif 4", serif;
  font-size: 14px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 28px;
}

.footer-inner nav a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}

.footer-inner nav a:hover {
  color: var(--white);
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  color: #7890a0;
  border-top: 1px solid #274357;
  font-size: 11px;
}

/* Article page */
.article-header .header-inner {
  gap: 24px;
}

.article-header .brand {
  flex: 0 0 auto;
}

.header-search.compact-search {
  width: min(360px, 32vw);
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  box-shadow: none;
}

.header-search.compact-search input {
  height: 40px;
  font-size: 13px;
}

.header-search.compact-search .search-submit,
.header-search.compact-search .search-submit svg {
  width: 17px;
  height: 17px;
}

.article-nav {
  gap: 22px;
}

.breadcrumb-wrap {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  width: min(calc(100% - 48px), var(--content));
  min-height: 48px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 600;
}

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

.breadcrumbs svg {
  width: 13px;
  height: 13px;
}

.breadcrumbs span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-shell {
  width: min(calc(100% - 48px), 1320px);
  margin: 0 auto;
  padding: 64px 0 84px;
  display: grid;
  grid-template-columns: 190px minmax(0, 760px) 220px;
  gap: 48px;
  justify-content: center;
  align-items: start;
}

.article-toc,
.article-context {
  position: sticky;
  top: 100px;
}

.article-toc > p,
.context-block > p {
  margin: 0 0 14px;
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.article-toc a {
  position: relative;
  padding: 8px 0;
  display: block;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.4;
}

.article-toc a::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 7px;
  width: 2px;
  height: 24px;
  background: transparent;
}

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

.article-toc a.is-active::before {
  background: var(--blue);
}

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

.article-title-block {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.article-title-block h1 {
  max-width: 740px;
  margin: 12px 0 16px;
  color: var(--ink-strong);
  font-size: 44px;
  line-height: 1.12;
  font-weight: 800;
}

.article-deck {
  margin: 0;
  color: #496174;
  font-family: "Source Serif 4", serif;
  font-size: 19px;
  line-height: 1.58;
}

.article-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #738693;
  font-size: 11px;
}

.article-meta > span[aria-hidden="true"] {
  width: 3px;
  height: 3px;
  background: #8ca0ad;
  border-radius: 50%;
}

.article-tools {
  margin-top: 18px;
  display: flex;
  gap: 8px;
}

.icon-text-button {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.icon-text-button:hover,
.icon-text-button:focus-visible {
  color: var(--blue);
  border-color: var(--blue);
}

.mobile-toc {
  display: none;
}

.quick-definition {
  margin: 34px 0;
  padding: 24px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.definition-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--white);
  border-radius: 50%;
}

.quick-definition p:last-child {
  margin: 6px 0 0;
  color: #29485e;
  font-family: "Source Serif 4", serif;
  font-size: 17px;
  line-height: 1.62;
}

.quick-label {
  color: var(--blue);
}

.article-prose {
  color: #263d4d;
  font-family: "Source Serif 4", serif;
  font-size: 17px;
  line-height: 1.78;
}

.article-prose > p:first-child {
  font-size: 18px;
}

.article-prose section {
  padding-top: 12px;
}

.article-prose h2 {
  margin: 42px 0 14px;
  color: var(--ink-strong);
  font-family: "Manrope", sans-serif;
  font-size: 27px;
  line-height: 1.25;
  font-weight: 800;
}

.article-prose h3 {
  margin: 30px 0 12px;
  color: var(--ink-strong);
  font-family: "Manrope", sans-serif;
  font-size: 20px;
}

.article-prose p {
  margin: 0 0 20px;
}

.article-prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-figure {
  margin: 34px 0;
}

.article-figure img,
.article-prose img {
  /* CMS CONTENT images do not include the template's article-figure wrapper. */
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.article-figure figcaption {
  margin-top: 10px;
  color: var(--ink-muted);
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  line-height: 1.5;
}

.check-list {
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 9px 0;
  padding-left: 26px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.7em;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
}

.key-map {
  margin: 28px 0;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(70px, 1fr)) minmax(130px, 1.7fr) repeat(2, minmax(70px, 1fr));
  gap: 8px;
  background: #e7ecf0;
  border: 1px solid #d2dce2;
  border-radius: var(--radius);
}

kbd {
  min-height: 40px;
  padding: 7px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #273d4c;
  background: var(--white);
  border: 1px solid #aab9c2;
  border-bottom-width: 3px;
  border-radius: 5px;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.comparison-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
}

.comparison-table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
}

.comparison-table-wrap th,
.comparison-table-wrap td {
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: left;
}

.comparison-table-wrap th {
  color: var(--navy);
  background: var(--paper-blue);
  font-size: 11px;
  text-transform: uppercase;
}

.note,
.warning {
  margin: 24px 0;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: var(--radius);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

.note {
  color: #235443;
  background: var(--green-soft);
  border: 1px solid #b8dfcf;
}

.warning {
  color: #68402f;
  background: var(--coral-soft);
  border: 1px solid #f0c4b5;
}

.note svg,
.warning svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.warning .legacy-warning-icon {
  width: 18px;
  height: 18px;
  margin: 0 7px 0 0;
  vertical-align: -0.2em;
}

.note p,
.warning p {
  margin: 0;
}

/* CMS note boxes can contain several paragraphs, buttons, and images. */
.article-prose .note,
.article-prose .warning {
  display: block;
}

.article-prose .note > * + *,
.article-prose .warning > * + * {
  margin-top: 20px;
}

.shortcut-list {
  margin: 24px 0;
  border-top: 1px solid var(--line);
}

.shortcut-list > div {
  min-height: 92px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--line);
}

.shortcut-list kbd {
  min-width: 58px;
}

.shortcut-list span {
  margin-left: 12px;
}

.shortcut-list strong,
.shortcut-list small {
  display: block;
  font-family: "Manrope", sans-serif;
}

.shortcut-list strong {
  color: var(--ink-strong);
  font-size: 13px;
}

.shortcut-list small {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.45;
}

.faq-list {
  margin: 22px 0;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 18px 32px 18px 0;
  color: var(--ink-strong);
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.faq-list details p {
  padding: 0 28px 18px 0;
}

.article-feedback {
  margin-top: 56px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-feedback h2 {
  font-size: 20px;
}

.feedback-actions {
  display: flex;
  gap: 8px;
}

.feedback-actions button {
  min-width: 92px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.feedback-actions button:hover,
.feedback-actions button.is-selected {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-soft);
}

.feedback-message {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--green);
  font-size: 12px;
}

.related-section {
  margin-top: 54px;
}

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

.related-grid a {
  min-height: 150px;
  padding: 18px;
  display: grid;
  grid-template-columns: 32px 1fr 18px;
  grid-template-rows: auto 1fr;
  gap: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-grid a:hover {
  border-color: var(--blue);
}

.related-grid span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.related-grid strong {
  align-self: center;
  color: var(--ink-strong);
  font-size: 13px;
}

.related-grid small {
  color: var(--ink-muted);
  font-family: "Source Serif 4", serif;
  font-size: 12px;
  line-height: 1.4;
}

.related-grid svg {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  color: #8094a1;
}

.article-context {
  display: grid;
  gap: 30px;
}

.context-block {
  padding-top: 14px;
  border-top: 2px solid var(--ink-strong);
}

.context-block a {
  padding: 8px 0;
  display: block;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.4;
  border-bottom: 1px solid var(--line);
}

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

.article-footer {
  margin-top: 0;
}

.toast {
  position: fixed;
  z-index: 500;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 11px 16px;
  color: var(--white);
  background: var(--ink-strong);
  border-radius: 5px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1120px) {
  .alphabet {
    display: flex;
    overflow-x: auto;
  }

  .alphabet button {
    flex: 0 0 42px;
  }

  .alphabet button:first-child {
    flex-basis: 58px;
  }

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

  .article-context {
    display: none;
  }
}

@media (max-width: 920px) {
  .desktop-nav,
  .article-nav {
    display: none;
  }

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

  .header-actions,
  .article-header .mobile-menu-button {
    margin-left: auto;
  }

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

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

  .featured-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .featured-row {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .featured-row img {
    width: 100%;
    height: 130px;
  }

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

  .desktop-toc {
    display: none;
  }

  .mobile-toc {
    margin: 24px 0 0;
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .mobile-toc summary {
    min-height: 48px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
  }

  .mobile-toc nav {
    padding: 0 14px 12px;
  }

  .mobile-toc a {
    padding: 8px 0;
    display: block;
    color: var(--ink-muted);
    font-size: 12px;
  }

  .header-search.compact-search {
    width: min(400px, 48vw);
    margin-left: auto;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 62px;
  }

  .header-inner,
  .section-inner,
  .footer-inner,
  .breadcrumbs,
  .article-shell {
    width: min(calc(100% - 32px), var(--content));
  }

  .brand-name {
    font-size: 21px;
  }

  .brand-section {
    font-size: 15px;
  }

  .brand-rule {
    height: 21px;
  }

  .search-stage-inner {
    width: min(calc(100% - 32px), 920px);
    min-height: 390px;
    padding: 56px 0 50px;
  }

  .search-stage h1 {
    font-size: 40px;
  }

  .stage-summary {
    font-size: 17px;
  }

  .search-shell {
    min-height: 56px;
    padding: 0 14px;
  }

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

  .popular-searches {
    justify-content: flex-start;
    text-align: left;
  }

  .topic-section,
  .featured-section,
  .definitions-section {
    padding: 58px 0;
  }

  .section-heading {
    align-items: start;
  }

  .section-heading h2,
  .definitions-toolbar h2 {
    font-size: 26px;
  }

  .section-heading .text-link {
    display: none;
  }

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

  .topic-item {
    min-height: 104px;
  }

  .featured-lead {
    min-height: 420px;
  }

  .featured-lead-copy {
    padding: 24px;
  }

  .featured-lead-copy h3 {
    font-size: 23px;
  }

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

  .featured-row {
    grid-template-columns: 110px 1fr;
  }

  .featured-row img {
    width: 110px;
    height: 90px;
  }

  .az-section {
    padding-top: 48px;
  }

  .definitions-toolbar {
    display: block;
  }

  .segmented-control {
    width: 100%;
    margin-top: 18px;
  }

  .definition-row {
    grid-template-columns: 36px minmax(0, 1fr) 20px;
    gap: 12px;
  }

  .definition-row em {
    display: none;
  }

  .definition-row > svg {
    grid-column: 3;
  }

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

  .footer-inner nav {
    justify-content: flex-start;
  }

  .header-search.compact-search {
    width: 44px;
    min-height: 42px;
    margin-left: auto;
    padding: 0 12px;
    cursor: pointer;
  }

  .header-search.compact-search input,
  .header-search.compact-search .search-clear {
    display: none;
  }

  .header-search.compact-search:focus-within,
  .header-search.compact-search.is-expanded {
    position: absolute;
    right: 68px;
    left: 150px;
    width: auto;
    background: var(--white);
  }

  .header-search.compact-search:focus-within input,
  .header-search.compact-search.is-expanded input {
    display: block;
  }

  .header-search.compact-search.is-expanded .search-clear {
    display: grid;
  }

  .article-shell {
    padding: 40px 0 62px;
  }

  .article-title-block h1 {
    font-size: 34px;
  }

  .article-deck {
    font-size: 17px;
  }

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

  .article-meta > span[aria-hidden="true"] {
    display: none;
  }

  .quick-definition {
    padding: 20px;
    grid-template-columns: 1fr;
  }

  .article-prose {
    font-size: 16px;
  }

  .article-prose h2 {
    font-size: 24px;
  }

  .key-map {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 14px;
  }

  .key-map .space-key {
    grid-column: 1 / -1;
  }

  .shortcut-list > div {
    flex-wrap: wrap;
  }

  .shortcut-list span {
    width: 100%;
    margin: 8px 0 0;
  }

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

  .feedback-actions button {
    flex: 1;
  }

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

@media print {
  .site-header,
  .breadcrumbs,
  .article-toc,
  .article-context,
  .article-tools,
  .mobile-toc,
  .article-feedback,
  .related-section,
  .site-footer {
    display: none !important;
  }

  .article-shell {
    width: 100%;
    display: block;
    padding: 0;
  }

  .article-main {
    max-width: none;
  }
}
/* Added only for the article language links introduced by the PHP renderer. */
.article-languages { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 12px; }
.article-languages a { display: inline-flex; align-items: center; gap: 6px; color: #49677f; font-size: 0.95rem; text-decoration: none; }
.article-languages a[aria-current="page"] { font-weight: 700; color: #0a2239; }
.article-languages img { flex: 0 0 auto; object-fit: cover; }
