@font-face {
  font-family: "App9 Marker";
  src: url("/assets/fonts/Kalam-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "App9 Marker";
  src: url("/assets/fonts/Kalam-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4eedc;
  --paper-bright: #fff9e9;
  --paper-deep: #e9dec3;
  --ink: #191918;
  --ink-muted: #59534a;
  --ink-faint: #82796b;
  --marker-yellow: #ffd63d;
  --marker-pink: #fc6ba5;
  --marker-teal: #2ac5b3;
  --marker-yellow-soft: #fff0a4;
  --marker-pink-soft: #ffd4e5;
  --marker-teal-soft: #b9eee7;
  --marker-ink: #191918;
  --danger: #b93c55;
  --success: #0d7669;
  --rule: rgba(25, 25, 24, 0.28);
  --rule-soft: rgba(25, 25, 24, 0.14);
  --code: #171916;
  --code-surface: #242720;
  --code-ink: #f7f0dc;
  --shadow-ink: rgba(25, 25, 24, 0.88);
  --soft-shadow: 0 16px 36px rgba(67, 54, 30, 0.13);
  --font: "Atkinson Hyperlegible", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "App9 Marker", "Kalam", "Comic Sans MS", cursive;
  --mono: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  --page-accent: var(--marker-yellow);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171713;
  --paper-bright: #211f19;
  --paper-deep: #2b281f;
  --ink: #f5eedc;
  --ink-muted: #c9c0ab;
  --ink-faint: #958c79;
  --marker-yellow: #e7bf2b;
  --marker-pink: #eb6b9e;
  --marker-teal: #28b9a8;
  --marker-yellow-soft: #4e4217;
  --marker-pink-soft: #4e2637;
  --marker-teal-soft: #173f3b;
  --marker-ink: #171713;
  --danger: #ff8da7;
  --success: #66decb;
  --rule: rgba(245, 238, 220, 0.28);
  --rule-soft: rgba(245, 238, 220, 0.14);
  --code: #090a08;
  --code-surface: #171915;
  --code-ink: #f7f0dc;
  --shadow-ink: rgba(0, 0, 0, 0.9);
  --soft-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("/assets/marketing/paper-texture.png");
  background-image: image-set(
    url("/images/optimized/assets/marketing/paper-texture-2048.avif") type("image/avif"),
    url("/images/optimized/assets/marketing/paper-texture-2048.webp") type("image/webp"),
    url("/assets/marketing/paper-texture.png") type("image/png")
  );
  background-repeat: repeat;
  background-size: 1024px 1024px;
  background-blend-mode: multiply;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] body { background-blend-mode: multiply; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
code, pre { font-family: var(--mono); }
.ui-icon { width: 1.05em; height: 1.05em; display: inline-block; flex: 0 0 auto; vertical-align: -0.15em; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--marker-teal); outline-offset: 4px; }
.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; left: 16px; top: -90px; z-index: 1000; padding: 10px 16px; color: var(--marker-ink); background: var(--marker-yellow); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--shadow-ink); font-weight: 700; }
.skip-link:focus { top: 16px; }

.site-header { position: relative; z-index: 50; color: var(--ink); background: color-mix(in srgb, var(--paper) 96%, transparent); }
.nav-shell { width: min(1420px, calc(100% - 44px)); min-height: 82px; margin: 0 auto; display: flex; align-items: center; gap: 24px; border-bottom: 2px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; position: relative; color: var(--marker-ink); background: var(--marker-yellow); border: 2px solid var(--ink); border-radius: 2px 6px 3px 5px / 5px 2px 6px 3px; box-shadow: 3px 3px 0 var(--shadow-ink); transform: rotate(-1.5deg); }
.brand-mark::after { content: ""; position: absolute; right: 5px; bottom: 6px; width: 5px; height: 5px; background: var(--marker-teal); border: 1px solid var(--marker-ink); border-radius: 50%; }
.brand-mark span { font: 700 30px/1 var(--display); transform: rotate(1.5deg); }
.brand > span:last-child { display: grid; line-height: 1; }
.brand strong { font: 700 27px/1 var(--display); letter-spacing: -0.03em; }
.brand small { margin-top: 4px; color: var(--ink-muted); font-size: 10px; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 19px; }
.primary-nav a { min-height: 44px; display: inline-flex; align-items: center; position: relative; color: var(--ink-muted); font: 700 16px/1 var(--display); white-space: nowrap; }
.primary-nav a::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 5px; height: 5px; z-index: -1; background: var(--marker-teal); opacity: 0; transform: rotate(-1.2deg); transition: opacity 160ms ease-out; }
.primary-nav a:hover, .primary-nav a:focus-visible, .primary-nav a[aria-current="page"] { color: var(--ink); }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after, .primary-nav a[aria-current="page"]::after { opacity: 0.82; }
.primary-nav .nav-workspace { min-height: 42px; padding: 0 15px; color: var(--marker-ink); background: var(--marker-yellow); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--shadow-ink); }
.primary-nav .nav-workspace::after { display: none; }
.theme-button { width: 74px; height: 36px; padding: 0; display: block; position: relative; flex: 0 0 auto; border: 0; background: transparent; cursor: pointer; }
.theme-button::before { content: ""; position: absolute; inset: 5px 16px; background: var(--paper-deep); border: 2px solid var(--ink); border-radius: 999px; }
.theme-button::after { content: ""; position: absolute; left: 19px; top: 8px; width: 18px; height: 18px; background: var(--ink); border-radius: 50%; transition: transform 180ms ease-out; }
.theme-button span { position: absolute; top: 7px; z-index: 1; color: var(--ink); }
.theme-button span .ui-icon { width: 18px; height: 18px; }
.theme-sun { left: 0; }
.theme-moon { right: 0; }
[data-theme="dark"] .theme-button::after { transform: translateX(18px); }
.mobile-nav-button { display: none; }
.readiness-bar { min-height: 44px; padding: 8px max(22px, calc((100% - 1240px) / 2)); display: flex; align-items: center; justify-content: center; gap: 13px; color: var(--ink); background: var(--paper-deep); border-bottom: 1px solid var(--ink); font-size: 13px; }
.readiness-bar strong { padding: 1px 8px; position: relative; z-index: 0; color: var(--marker-ink); font-family: var(--display); font-size: 15px; }
.readiness-bar strong::before { content: ""; position: absolute; inset: 3px -3px 1px; z-index: -1; background: var(--marker-pink); transform: rotate(-1deg); }
.readiness-bar a { margin-left: 8px; display: inline-flex; align-items: center; gap: 5px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--marker-teal); text-decoration-thickness: 3px; text-underline-offset: 4px; }

.field-note, .card-note, .article-label { display: inline-block; width: max-content; font-family: var(--display); font-weight: 700; line-height: 1.1; }
.field-note { margin-top: 12px; padding: 3px 9px 1px; position: relative; z-index: 0; font-size: 17px; }
.field-note::before { content: ""; position: absolute; inset: 3px -2px 0; z-index: -1; background: var(--marker-pink); clip-path: polygon(1% 19%, 99% 3%, 96% 90%, 3% 100%); }
.field-note { color: var(--marker-ink); }
.card-note, .article-label { padding: 3px 7px 1px; color: var(--ink); background: var(--marker-yellow-soft); font-size: 13px; }

.hub-hero { position: relative; overflow: hidden; border-bottom: 2px solid var(--ink); }
.hub-hero-inner { width: min(1240px, calc(100% - 44px)); min-height: 580px; margin: 0 auto; padding: 70px 0 76px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr); align-items: center; gap: 76px; }
.hub-copy { min-width: 0; }
.hub-copy > .field-note { margin: 17px 0 0; background: transparent; }
.hub-copy > .field-note::before { background: var(--marker-yellow); }
.hub-hero h1 { max-width: 790px; font-size: clamp(50px, 6vw, 78px); text-wrap: balance; }
.hub-hero h1 span { box-shadow: inset 0 -0.24em var(--marker-teal); }
.hub-copy > p { max-width: 690px; margin-top: 18px; color: var(--ink-muted); font-size: 19px; line-height: 1.55; }
.search-box { width: min(720px, 100%); min-height: 64px; margin-top: 32px; display: flex; align-items: center; position: relative; color: var(--ink); background: var(--paper-bright); border: 2px solid var(--ink); border-radius: 2px 6px 3px 5px / 4px 2px 6px 3px; box-shadow: 4px 4px 0 var(--shadow-ink); text-align: left; }
.search-mark { width: 19px; height: 19px; margin-left: 21px; position: relative; flex: 0 0 auto; border: 2px solid var(--ink); border-radius: 50%; }
.search-mark::after { content: ""; position: absolute; width: 9px; height: 2px; right: -7px; bottom: -4px; background: var(--ink); transform: rotate(46deg); transform-origin: left center; }
.search-box input { width: 100%; min-width: 0; height: 60px; padding: 0 18px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; }
.search-box input::placeholder { color: var(--ink-faint); opacity: 1; }
.search-box kbd { margin-right: 17px; padding: 3px 9px; color: var(--ink); background: var(--marker-teal-soft); border: 1px solid var(--ink); font: 12px/1.5 var(--mono); }
.search-results { position: absolute; z-index: 70; top: 72px; left: -2px; right: -2px; max-height: 500px; overflow: auto; padding: 9px; color: var(--ink); background: var(--paper-bright); border: 2px solid var(--ink); box-shadow: 5px 6px 0 var(--shadow-ink), var(--soft-shadow); }
.search-results a { display: grid; padding: 13px 14px; border-bottom: 1px solid var(--rule); }
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover, .search-results a:focus-visible { background: var(--marker-yellow-soft); }
.search-results small { color: var(--ink); font: 700 13px/1.2 var(--display); }
.search-results strong { margin: 3px 0; }
.search-results span { color: var(--ink-muted); font-size: 12px; }
.search-results p { padding: 18px; color: var(--ink-muted); }
.hero-facts { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 25px; color: var(--ink-muted); font-size: 13px; }
.hero-facts span { padding-bottom: 3px; border-bottom: 1px solid var(--ink); }
.hero-facts strong { color: var(--ink); font-family: var(--mono); }
.hero-proof { padding: 27px 27px 24px; position: relative; background: var(--paper-bright); border: 2px solid var(--ink); border-radius: 3px 7px 2px 5px / 6px 2px 5px 3px; box-shadow: 5px 6px 0 var(--shadow-ink); transform: rotate(0.45deg); }
.hero-proof::before { content: "FIELD NOTE"; position: absolute; top: -15px; right: 25px; padding: 4px 12px 2px; color: var(--marker-ink); background: var(--marker-teal); font: 700 14px/1 var(--display); transform: rotate(-2deg); }
.hero-proof::after { content: ""; position: absolute; left: 9%; right: 5%; bottom: -17px; height: 12px; background: var(--marker-teal); clip-path: polygon(0 34%, 97% 0, 100% 62%, 3% 100%); opacity: 0.82; }
.hero-proof > strong { display: block; margin-bottom: 14px; font: 700 28px/1.1 var(--display); }
.hero-proof ol { margin: 0; padding: 0; list-style: none; }
.hero-proof li { min-height: 90px; padding: 16px 3px; display: grid; grid-template-columns: 45px 1fr; align-items: center; gap: 15px; border-top: 1px solid var(--ink); }
.hero-proof li > span { width: 40px; height: 40px; display: grid; place-items: center; color: var(--marker-ink); background: var(--marker-yellow); border: 2px solid var(--ink); border-radius: 50%; font: 700 23px/1 var(--display); }
.hero-proof li:nth-child(2) > span { background: var(--marker-pink); }
.hero-proof li:nth-child(3) > span { background: var(--marker-teal); }
.hero-proof li div { display: grid; }
.hero-proof li b { font: 700 20px/1.15 var(--display); }
.hero-proof li small { margin-top: 4px; color: var(--ink-muted); font-size: 13px; }
.hero-proof > a { min-height: 44px; margin-top: 13px; padding: 0 13px; display: inline-flex; align-items: center; gap: 10px; color: var(--marker-ink); background: var(--marker-yellow); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--shadow-ink); font-weight: 700; }

.content-section, .soft-section, .collection-shell { width: min(1180px, calc(100% - 44px)); margin: 0 auto; padding: 88px 0; }
.section-heading { margin-bottom: 38px; display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; }
.section-heading h2 { max-width: 760px; font-size: clamp(37px, 4.4vw, 54px); text-wrap: balance; }
.section-heading > p { max-width: 475px; color: var(--ink-muted); }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--marker-teal); text-decoration-thickness: 4px; text-underline-offset: 5px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.category-card { min-height: 405px; padding: 27px; display: flex; flex-direction: column; position: relative; background: var(--paper-bright); border: 2px solid var(--ink); border-radius: 2px 7px 3px 5px / 5px 2px 6px 3px; box-shadow: 4px 5px 0 var(--shadow-ink); transition: transform 180ms ease-out; }
.category-card:nth-child(3n+2) { transform: rotate(0.35deg); }
.category-card:nth-child(3n) { transform: rotate(-0.35deg); }
.category-card:hover { transform: translateY(-4px) rotate(0); }
.category-card > div:nth-child(2) { margin-top: 18px; }
.category-card h3 { margin-bottom: 5px; font-size: 29px; }
.category-card h3 a::after { content: ""; position: absolute; inset: 0; }
.category-card p { margin-top: 10px; color: var(--ink-muted); font-size: 14px; }
.card-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--marker-ink); background: var(--marker-yellow); border: 2px solid var(--ink); border-radius: 50%; font: 700 15px/1 var(--display); }
.card-icon .ui-icon { width: 22px; height: 22px; }
.category-card:nth-child(3n+2) .card-icon { background: var(--marker-pink); }
.category-card:nth-child(3n) .card-icon { background: var(--marker-teal); }
.category-card ul { margin: 21px 0 18px; padding: 17px 0 0; position: relative; z-index: 1; border-top: 1px solid var(--ink); list-style: none; }
.category-card li { margin: 8px 0; color: var(--ink-muted); font-size: 13px; }
.category-card li::before { content: "—"; margin-right: 7px; color: var(--ink); }
.category-card li a:hover { text-decoration: underline; text-decoration-color: var(--marker-pink); text-decoration-thickness: 3px; }
.category-card > .text-link { margin-top: auto; position: relative; z-index: 1; }

.code-band { padding: 82px max(44px, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: center; gap: 74px; color: var(--ink); background: var(--paper-deep); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.code-band h2 { font-size: clamp(38px, 4.6vw, 56px); }
.code-band .field-note { margin-bottom: 10px; }
.code-band p { margin: 13px 0 28px; color: var(--ink-muted); }
.button { min-height: 46px; padding: 0 16px; display: inline-flex; align-items: center; color: var(--marker-ink); background: var(--marker-yellow); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--shadow-ink); font-weight: 700; }
.secondary-light { color: var(--marker-ink); }
.code-window { overflow: hidden; color: var(--code-ink); background: var(--code); border: 2px solid var(--ink); border-radius: 2px 7px 3px 5px / 5px 2px 6px 3px; box-shadow: 5px 6px 0 var(--shadow-ink); }
.code-window-top { min-height: 46px; padding: 0 16px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; color: var(--code-ink); background: var(--code-surface); border-bottom: 1px solid rgba(247, 240, 220, 0.35); font: 12px/1 var(--mono); }
.code-window-top::before { content: ""; width: 38px; height: 12px; margin-right: auto; background: radial-gradient(circle, var(--marker-pink) 0 4px, transparent 4.5px) 0 0 / 13px 12px repeat-x; }
.code-window-top button { min-height: 32px; padding: 4px 9px; color: var(--code-ink); background: transparent; border: 1px solid rgba(247, 240, 220, 0.55); cursor: pointer; font-size: 11px; }
.code-window pre { margin: 0; padding: 26px; overflow: auto; color: var(--code-ink); font-size: 12px; line-height: 1.75; tab-size: 2; }

.platform-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.platform-card { min-height: 102px; padding: 15px; display: grid; grid-template-columns: 45px 1fr; align-items: center; gap: 12px; position: relative; background: var(--paper-bright); border: 2px solid var(--ink); transition: transform 160ms ease-out, background 160ms ease-out; }
.platform-card:hover { background: var(--marker-teal-soft); transform: translateY(-3px); }
.platform-monogram { width: 44px; height: 44px; display: grid; place-items: center; color: var(--marker-ink); background: var(--marker-teal); border: 2px solid var(--ink); border-radius: 50%; font: 700 15px/1 var(--display); }
.platform-card:nth-child(3n+2) .platform-monogram { background: var(--marker-pink); }
.platform-card:nth-child(3n) .platform-monogram { background: var(--marker-yellow); }
.platform-card > span:nth-child(2) { display: grid; }
.platform-card strong { font: 700 20px/1.1 var(--display); }
.platform-card small { margin-top: 4px; color: var(--ink-muted); font-size: 11px; line-height: 1.35; }
.platform-card b { position: absolute; right: 8px; bottom: 4px; color: var(--ink); font-size: 18px; }
.platform-card b .ui-icon { width: 17px; height: 17px; }
.capability-note { margin-top: 25px; padding: 21px 23px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; position: relative; background: var(--paper-bright); border: 2px solid var(--ink); font-size: 13px; }
.capability-note::before { content: ""; position: absolute; width: 58px; height: 17px; top: -11px; left: 42px; background: color-mix(in srgb, var(--marker-teal) 80%, transparent); transform: rotate(-3deg); }
.capability-note strong, .capability-note a { color: var(--ink); }
.capability-note span { color: var(--ink-muted); }
.capability-note a { display: inline-flex; align-items: center; gap: 5px; text-decoration: underline; text-decoration-color: var(--marker-teal); text-decoration-thickness: 3px; }

.soft-section { width: 100%; padding-left: max(22px, calc((100% - 1180px) / 2)); padding-right: max(22px, calc((100% - 1180px) / 2)); background: var(--marker-pink-soft); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.popular-list { border-top: 2px solid var(--ink); }
.popular-list > a { min-height: 116px; padding: 19px 9px; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 20px; border-bottom: 1px solid var(--ink); }
.popular-list > a:hover { background: color-mix(in srgb, var(--paper-bright) 45%, transparent); }
.popular-list > a > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--marker-ink); background: var(--marker-yellow); border: 2px solid var(--ink); border-radius: 50%; font: 700 16px/1 var(--display); }
.popular-list div { display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 6px 34px; }
.popular-list small { grid-column: 1 / -1; color: var(--ink); font-family: var(--display); font-size: 13px; font-weight: 700; }
.popular-list strong { font: 700 23px/1.2 var(--display); }
.popular-list p { color: var(--ink-muted); font-size: 13px; }
.popular-list b { color: var(--ink); font-size: 22px; }
.popular-list b .ui-icon { width: 21px; height: 21px; }
.solution-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.solution-grid article { min-height: 250px; padding: 26px; display: flex; flex-direction: column; position: relative; background: var(--paper-bright); border: 2px solid var(--ink); box-shadow: 4px 5px 0 var(--shadow-ink); }
.solution-grid article:nth-child(2n) { transform: rotate(0.25deg); }
.solution-grid h3 { margin: 19px 0 8px; font-size: 27px; }
.solution-grid p { color: var(--ink-muted); font-size: 14px; }
.solution-grid .text-link { margin-top: auto; }

.kb-page--collection-platforms, .kb-page--provider { --page-accent: var(--marker-teal); }
.kb-page--collection-solutions, .kb-page--solution { --page-accent: var(--marker-pink); }
.kb-page--collection-comparisons, .kb-page--comparison { --page-accent: var(--marker-yellow); }
.kb-page--collection-publishing { --page-accent: var(--marker-pink); }
.kb-page--collection-workflows { --page-accent: var(--marker-teal); }
.kb-page--collection-data-engagement { --page-accent: var(--marker-yellow); }
.kb-page--collection-developer-operations { --page-accent: var(--marker-teal); }
.kb-page--collection-migration { --page-accent: var(--marker-pink); }
.collection-hero { padding: 64px max(22px, calc((100% - 1180px) / 2)) 62px; position: relative; overflow: hidden; border-bottom: 2px solid var(--ink); }
.collection-hero::after { content: ""; position: absolute; width: min(460px, 38vw); height: 23px; right: max(22px, calc((100% - 1180px) / 2)); bottom: 32px; z-index: -1; background: var(--page-accent); clip-path: polygon(0 34%, 97% 0, 100% 61%, 3% 100%); opacity: 0.78; transform: rotate(-1deg); }
.collection-hero > div { max-width: 860px; }
.collection-hero h1 { max-width: 850px; margin: 35px 0 4px; font-size: clamp(48px, 6vw, 72px); text-wrap: balance; }
.collection-label { margin: 3px 0 17px; }
.collection-label::before { background: var(--page-accent); }
.collection-hero p { max-width: 740px; color: var(--ink-muted); font-size: 19px; }
.collection-count { margin-top: 23px; padding: 5px 10px 3px; display: inline-flex; color: var(--marker-ink); background: var(--page-accent); border: 1px solid var(--ink); font: 700 14px/1.2 var(--display); }
.collection-shell { max-width: 1040px; }
.collection-callout { margin-bottom: 40px; padding: 23px 25px; display: grid; grid-template-columns: 220px 1fr; gap: 22px; position: relative; background: var(--paper-bright); border: 2px solid var(--ink); }
.collection-callout::before { content: ""; position: absolute; top: -12px; left: 44px; width: 64px; height: 18px; background: color-mix(in srgb, var(--page-accent) 78%, transparent); transform: rotate(-3deg); }
.collection-callout strong { font: 700 20px/1.2 var(--display); }
.collection-callout p { color: var(--ink-muted); }
.article-list { counter-reset: article-row; border-top: 2px solid var(--ink); }
.article-list article { min-height: 164px; padding: 27px 8px 27px 66px; display: grid; grid-template-columns: 1fr auto 42px; gap: 24px; align-items: center; position: relative; border-bottom: 1px solid var(--ink); counter-increment: article-row; }
.article-list article::before { content: counter(article-row); width: 38px; height: 38px; position: absolute; left: 5px; top: 34px; display: grid; place-items: center; color: var(--marker-ink); background: var(--page-accent); border: 2px solid var(--ink); border-radius: 50%; font: 700 17px/1 var(--display); transform: rotate(-4deg); }
.article-list article:hover { background: color-mix(in srgb, var(--page-accent) 12%, transparent); }
.article-list h2 { margin: 0 0 4px; font-size: 29px; }
.article-list h2 a:hover { text-decoration: underline; text-decoration-color: var(--page-accent); text-decoration-thickness: 5px; text-underline-offset: 4px; }
.article-list .article-label { margin: 3px 0 8px; background: color-mix(in srgb, var(--page-accent) 45%, var(--paper-bright)); }
.article-list p { color: var(--ink-muted); font-size: 14px; }
.read-time { color: var(--ink-muted); font: 12px/1.3 var(--mono); white-space: nowrap; }
.arrow-link { width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--ink); font-size: 22px; }
.arrow-link .ui-icon { width: 21px; height: 21px; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-muted); font-size: 12px; }
.breadcrumbs a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.breadcrumbs a:hover { color: var(--ink); text-decoration-color: var(--marker-teal); }
.article-page { background: transparent; }
.article-shell { width: min(1380px, calc(100% - 44px)); margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0, 780px) 190px; justify-content: center; gap: 45px; }
.article-sidebar, .toc { position: sticky; top: 22px; align-self: start; max-height: calc(100vh - 44px); overflow: auto; }
.article-sidebar { margin-top: 42px; padding: 17px 15px; display: grid; gap: 2px; background: var(--paper-bright); border: 2px solid var(--ink); box-shadow: 3px 4px 0 var(--shadow-ink); }
.article-sidebar::before { content: "FIELD INDEX"; margin: -5px 0 12px 12px; width: max-content; padding: 3px 9px 1px; color: var(--marker-ink); background: var(--page-accent); border: 1px solid var(--ink); font: 700 14px/1.2 var(--display); transform: rotate(-2deg); }
.article-sidebar > a { min-height: 38px; padding: 7px 8px; display: flex; align-items: center; justify-content: space-between; color: var(--ink-muted); border-bottom: 1px solid var(--rule-soft); font-size: 12px; font-weight: 700; }
.article-sidebar > a:hover, .article-sidebar > a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--page-accent) 24%, transparent); }
.article-sidebar > a span { color: var(--ink-muted); font: 10px/1 var(--mono); }
.article-sidebar .sidebar-back { margin-bottom: 8px; color: var(--ink); border-bottom-color: var(--ink); }
.toc { padding-top: 71px; display: grid; gap: 2px; }
.toc > strong { margin-bottom: 9px; font: 700 19px/1.2 var(--display); }
.toc > a { padding: 7px 0 7px 12px; color: var(--ink-muted); border-left: 1px solid var(--ink); font-size: 11px; }
.toc > a[aria-current="true"] { color: var(--ink); background: color-mix(in srgb, var(--page-accent) 22%, transparent); }
.toc > div { margin-top: 24px; padding: 14px; display: grid; background: var(--paper-bright); border: 1px solid var(--ink); font-size: 10px; }
.toc > div span { color: var(--ink-muted); }
.toc > div a { margin-top: 3px; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--marker-teal); }
.article-content { min-width: 0; padding: 43px 0 110px; }
.article-header { padding: 42px 0 30px; border-bottom: 2px solid var(--ink); }
.article-header h1 { max-width: 780px; position: relative; font-size: clamp(46px, 5.2vw, 66px); text-wrap: balance; }
.article-header h1::after { content: ""; position: absolute; left: 0; width: min(440px, 75%); height: 10px; bottom: -9px; z-index: -1; background: var(--page-accent); clip-path: polygon(0 34%, 96% 0, 100% 64%, 3% 100%); opacity: 0.88; }
.dek { max-width: 69ch; margin-top: 25px; color: var(--ink-muted); font-size: 19px; line-height: 1.55; }
.article-meta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; color: var(--ink-muted); font-size: 11px; }
.article-meta > span:not(.article-label):not(:first-child)::before { content: ""; width: 3px; height: 3px; margin: 0 15px 2px 0; display: inline-block; background: var(--ink-faint); border-radius: 50%; }
.article-meta .article-label { color: var(--marker-ink); background: var(--page-accent); }
.answer-card { margin: 34px 0 20px; padding: 27px 28px; position: relative; background: var(--paper-bright); border: 2px solid var(--ink); box-shadow: 4px 5px 0 var(--shadow-ink); }
.answer-card::before { content: ""; position: absolute; top: -12px; left: 42px; width: 70px; height: 19px; background: color-mix(in srgb, var(--page-accent) 78%, transparent); transform: rotate(-3deg); }
.answer-card > span, .answer-card > strong { display: block; margin-bottom: 7px; color: var(--ink); font: 700 17px/1.2 var(--display); }
.answer-card p { font-size: 17px; font-weight: 700; line-height: 1.6; }
.answer-card.compact p { font-size: 15px; font-weight: 400; }
.contract-note { margin-bottom: 55px; padding: 18px 21px; display: grid; grid-template-columns: 155px 1fr; gap: 18px; background: var(--marker-pink-soft); border: 2px solid var(--ink); }
.contract-note strong { color: var(--ink); font: 700 18px/1.2 var(--display); }
.contract-note p { color: var(--ink-muted); font-size: 12px; }
.article-content section { margin: 64px 0; }
.article-content section h2 { width: fit-content; max-width: 100%; margin-bottom: 21px; position: relative; font-size: 36px; text-wrap: balance; }
.article-content section h2::after { content: ""; position: absolute; left: 0; right: -8px; bottom: -5px; height: 7px; z-index: -1; background: var(--marker-yellow); clip-path: polygon(1% 18%, 99% 0, 96% 86%, 2% 100%); opacity: 0.84; }
.article-content section:nth-of-type(3n+2) h2::after { background: var(--marker-pink); }
.article-content section:nth-of-type(3n) h2::after { background: var(--marker-teal); }
.article-content section > p { max-width: 72ch; margin: 14px 0; color: var(--ink-muted); }
.article-content section a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--marker-teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article-content section h3 { margin: 36px 0 13px; font-size: 26px; }
.task-list, .numbered-list, .feature-list { margin: 24px 0; padding: 0; list-style: none; }
.task-list li, .numbered-list li { padding: 17px 0; display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: 13px; border-bottom: 1px solid var(--ink); }
.task-list li > span, .numbered-list li > span, .feature-list li > span { width: 28px; height: 28px; display: grid; place-items: center; color: var(--marker-ink); background: var(--page-accent); border: 1px solid var(--ink); border-radius: 50%; font-size: 12px; font-weight: 800; }
.task-list li > span .ui-icon, .numbered-list li > span .ui-icon, .feature-list li > span .ui-icon { width: 16px; height: 16px; }
.numbered-list li > span { font-family: var(--mono); }
.article-code { margin-top: 23px; }
.api-link { font-size: 13px; }
.api-link a, .article-review a, .toc > div a { display: inline-flex; align-items: center; gap: 5px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.detail-grid article { padding: 19px; background: var(--paper-bright); border: 1px solid var(--ink); }
.detail-grid article > span { width: 26px; height: 26px; display: grid; place-items: center; margin-bottom: 12px; color: var(--marker-ink); background: var(--page-accent); border: 1px solid var(--ink); border-radius: 50%; font-weight: 800; }
.detail-grid p { color: var(--ink-muted); font-size: 13px; }
.warning-box { padding: 23px 25px; background: var(--marker-yellow-soft); border: 2px solid var(--ink); }
.warning-box strong { color: var(--ink); font: 700 20px/1.2 var(--display); }
.warning-box ul { margin: 13px 0 0; padding-left: 20px; color: var(--ink-muted); }
.warning-box li { margin: 7px 0; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feature-list li { padding: 16px; display: flex; align-items: center; gap: 11px; background: var(--paper-bright); border: 1px solid var(--ink); font-size: 13px; }
.table-wrap { overflow-x: auto; background: var(--paper-bright); border: 2px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 16px; text-align: left; vertical-align: top; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--ink); }
tr > *:last-child { border-right: 0; }
thead th { color: var(--marker-ink); background: var(--page-accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
tbody th { width: 21%; font-family: var(--display); font-size: 16px; }
tbody td { color: var(--ink-muted); }
tr:last-child > * { border-bottom: 0; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--ink); }
.faq-list summary { min-height: 58px; padding: 18px 40px 18px 5px; position: relative; cursor: pointer; font: 700 19px/1.35 var(--display); list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; width: 28px; height: 28px; position: absolute; right: 5px; top: 14px; display: grid; place-items: center; color: var(--marker-ink); background: var(--page-accent); border: 1px solid var(--ink); border-radius: 50%; font: 700 21px/1 var(--display); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 42px 21px 5px; color: var(--ink-muted); }
.related { padding-top: 47px; border-top: 2px solid var(--ink); }
.related > .field-note { margin-top: 0; }
.related > div { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.related > div a { min-height: 112px; padding: 18px; display: grid; grid-template-columns: 1fr auto; background: var(--paper-bright); border: 1px solid var(--ink); }
.related > div a:hover { background: color-mix(in srgb, var(--page-accent) 19%, var(--paper-bright)); }
.related > div small { grid-column: 1 / -1; color: var(--ink-muted); font-family: var(--display); font-size: 13px; }
.related > div strong { align-self: end; color: var(--ink); font-size: 14px; line-height: 1.35; }
.related > div span { align-self: end; color: var(--ink); }
.article-review { margin-top: 60px; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--marker-teal-soft); border: 2px solid var(--ink); }
.article-review p { color: var(--ink-muted); font-size: 11px; }
.article-review a { min-width: max-content; color: var(--ink); font-size: 12px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }

.site-footer { padding: 70px max(22px, calc((100% - 1180px) / 2)) 25px; color: var(--paper); background: var(--ink); border-top: 2px solid var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 64px; }
.footer-brand { color: var(--paper); }
.footer-brand .brand-mark { border-color: var(--paper); box-shadow: 3px 3px 0 color-mix(in srgb, var(--paper) 75%, transparent); }
.footer-brand small { color: color-mix(in srgb, var(--paper) 68%, transparent); }
.footer-grid > div:first-child p { max-width: 330px; margin: 20px 0; color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: 13px; }
.status-pill { padding: 4px 9px 2px; color: var(--marker-ink); background: var(--marker-teal); border: 1px solid var(--paper); font: 700 13px/1.2 var(--display); }
.footer-grid h2 { margin-bottom: 17px; color: var(--paper); font: 700 19px/1.2 var(--display); }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 8px; }
.footer-grid > div:not(:first-child) a { min-height: 32px; color: color-mix(in srgb, var(--paper) 74%, transparent); font-size: 12px; }
.footer-grid a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--marker-teal); text-decoration-thickness: 3px; }
.footer-bottom { margin-top: 58px; padding-top: 20px; display: flex; justify-content: space-between; color: color-mix(in srgb, var(--paper) 56%, transparent); border-top: 1px solid color-mix(in srgb, var(--paper) 28%, transparent); font-size: 10px; }

@media (max-width: 1320px) {
  .nav-shell { width: min(1220px, calc(100% - 36px)); gap: 17px; }
  .brand strong { font-size: 24px; }
  .primary-nav { gap: 13px; }
  .primary-nav a { font-size: 14px; }
  .primary-nav .nav-workspace { padding-inline: 11px; }
  .theme-button { width: 68px; }
}

@media (max-width: 1120px) {
  .article-shell { grid-template-columns: 200px minmax(0, 760px); gap: 36px; }
  .toc { display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  .hub-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr); gap: 44px; }
  .primary-nav a:nth-child(4) { display: none; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 80px; }
  .nav-shell { width: calc(100% - 30px); min-height: 70px; }
  .primary-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; padding: 18px; flex-direction: column; align-items: stretch; gap: 2px; color: var(--ink); background: var(--paper-bright); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); box-shadow: var(--soft-shadow); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a, .primary-nav a:nth-child(4) { min-height: 46px; padding: 0 11px; display: flex; }
  .primary-nav .nav-workspace { margin-top: 7px; justify-content: center; }
  .mobile-nav-button { width: 42px; height: 42px; margin-left: auto; padding: 9px; display: grid; align-content: center; gap: 5px; background: var(--paper-bright); border: 2px solid var(--ink); cursor: pointer; }
  .mobile-nav-button > span:not(.sr-only) { height: 2px; background: var(--ink); }
  .theme-button { width: 70px; height: 38px; }
  .readiness-bar { justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
  .readiness-bar span { display: none; }
  .hub-hero-inner { min-height: auto; padding: 60px 0 70px; grid-template-columns: 1fr; gap: 48px; }
  .hub-copy > p { font-size: 17px; }
  .hero-proof { width: min(620px, 100%); }
  .content-section, .soft-section { padding-top: 68px; padding-bottom: 68px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .code-band { padding: 66px 22px; grid-template-columns: 1fr; gap: 44px; }
  .capability-note { grid-template-columns: 1fr; gap: 8px; }
  .popular-list div { grid-template-columns: 1fr; }
  .popular-list p { display: none; }
  .collection-hero { padding-top: 47px; }
  .collection-callout { grid-template-columns: 1fr; gap: 6px; }
  .article-list article { grid-template-columns: 1fr auto; }
  .article-list .read-time { grid-column: 1; }
  .article-list .arrow-link { grid-column: 2; grid-row: 1 / 3; }
  .article-shell { width: min(760px, calc(100% - 32px)); display: block; }
  .article-sidebar { display: none; }
  .article-content { padding-top: 28px; }
  .article-header { padding-top: 32px; }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
}

@media (max-width: 620px) {
  .brand small { display: none; }
  .brand strong { font-size: 22px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-mark span { font-size: 26px; }
  .theme-button { width: 64px; }
  .hub-hero-inner, .content-section, .soft-section, .collection-shell { width: min(100% - 30px, 1180px); }
  .hub-hero h1 { font-size: 48px; }
  .hub-copy > p { font-size: 16px; }
  .hero-facts { gap: 8px 15px; }
  .search-box { min-height: 58px; }
  .search-box input { height: 54px; padding-inline: 14px; }
  .search-box kbd { display: none; }
  .hero-proof { padding: 24px 20px 20px; }
  .hero-proof li { min-height: 82px; }
  .section-heading h2 { font-size: 38px; }
  .category-grid, .platform-grid, .solution-grid { grid-template-columns: 1fr; }
  .category-card { min-height: auto; }
  .popular-list > a { grid-template-columns: 46px 1fr auto; gap: 10px; }
  .collection-hero h1 { font-size: 47px; }
  .collection-hero p { font-size: 16px; }
  .collection-hero::after { width: 50vw; }
  .article-list article { padding-left: 52px; }
  .article-list article::before { width: 32px; height: 32px; left: 3px; }
  .article-list h2 { font-size: 25px; }
  .article-header h1 { font-size: 45px; }
  .dek { font-size: 17px; }
  .article-meta { gap: 7px 9px; }
  .article-meta > span:not(.article-label):not(:first-child)::before { margin-right: 9px; }
  .answer-card { padding: 23px 21px; }
  .answer-card p { font-size: 15px; }
  .contract-note { grid-template-columns: 1fr; gap: 4px; }
  .article-content section h2 { font-size: 31px; }
  .feature-list, .related > div { grid-template-columns: 1fr; }
  .article-review { align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-nav a::after, .theme-button::after, .category-card, .platform-card { transition: none; }
}
