/* The public docs (core/templates/core/docs/). The homepage's light brand theme (core/static/core/home.css): League
   Spartan for display, Lora for body text, a monospace for code; red accent on white and ivory. Every class is
   prefixed dc- so it never meets the app's own CSS. Self-hosted fonts (SIL OFL 1.1, licences in ./fonts). */

@font-face { font-family: "League Spartan"; src: url("fonts/LeagueSpartan-VF.f29fcc807045.ttf") format("truetype");
  font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/Lora-VF.e71368f22122.ttf") format("truetype");
  font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --dc-red: #D9292D; --dc-red-dark: #B81F23; --dc-ink: #000000; --dc-white: #FFFFFF; --dc-ivory: #FBF9F4;
  --dc-text: #374151; --dc-muted: #6B7280; --dc-line: #E5E7EB; --dc-pink: #FDF2F2; --dc-pink-2: #F9E0E1;
  --dc-code-bg: #111827; --dc-code-text: #F3F4F6; --dc-code-muted: #9CA3AF;
  --dc-warn-bg: #FEF3C7; --dc-warn-text: #78350F; --dc-warn-line: #F59E0B;
  --dc-display: "League Spartan", "Arial Narrow", Arial, sans-serif;
  --dc-serif: Lora, Georgia, "Times New Roman", serif;
  --dc-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --dc-header: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.dc { margin: 0; background: var(--dc-white); color: var(--dc-ink); font-family: var(--dc-serif); font-size: 16.5px;
  line-height: 1.65; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
/* the docs' own links and focus ring; signed in, the site's shared header and footer (core/brand.css .top,
   .br-footer) keep the brand's, exactly as on every other page (:where adds no specificity) */
.dc a:where(:not(.top a, .br-pub a, .br-footer a)) { color: var(--dc-red-dark); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.dc a:where(:not(.top a, .br-pub a, .br-footer a)):hover { color: var(--dc-red); }
.dc :where(:not(.top *, .br-pub *)):focus-visible { outline: 3px solid var(--dc-red); outline-offset: 2px; }
[id] { scroll-margin-top: calc(var(--dc-header) + 16px); }
.dc code { font-family: var(--dc-mono); font-size: .86em; background: var(--dc-pink); color: var(--dc-ink);
  padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; font-variant-ligatures: none; }

.dc-skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--dc-ink); color: var(--dc-white) !important;
  padding: 10px 16px; border-radius: 4px; }
.dc-skip:focus { top: 12px; }
.dc-wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.dc-red { color: var(--dc-red); }


.dc-banner { background: var(--dc-warn-bg); color: var(--dc-warn-text); border-bottom: 1px solid var(--dc-warn-line);
  font-size: 15px; padding: 10px 0; }
.dc .dc-banner a { color: var(--dc-warn-text); font-weight: 600; }

/* layout: side menu + content */
.dc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 72px;
  width: 100%; flex: 1 0 auto; }
.dc-side { position: sticky; top: calc(var(--dc-header) + 24px); align-self: start; max-height: calc(100vh - var(--dc-header) - 48px);
  overflow-y: auto; }
.dc-menu, .dc-toc { display: flex; flex-direction: column; gap: 2px; }
.dc .dc-menu a { font-family: var(--dc-display); font-weight: 600; font-size: 15px; color: var(--dc-ink); text-decoration: none;
  padding: 8px 12px; border-radius: 4px; border-left: 3px solid transparent; }
.dc .dc-menu a:hover { background: var(--dc-ivory); color: var(--dc-red-dark); }
.dc .dc-menu a[aria-current="page"] { background: var(--dc-pink); border-left-color: var(--dc-red); color: var(--dc-ink); }
.dc-toc { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--dc-line); }
.dc-toc p { margin: 0 0 6px 12px; font-family: var(--dc-display); text-transform: uppercase; font-size: 12px; font-weight: 700;
  letter-spacing: .14em; color: var(--dc-muted); }
.dc .dc-toc a { color: var(--dc-text); text-decoration: none; font-size: 14.5px; padding: 4px 12px; line-height: 1.4; }
.dc .dc-toc a:hover { color: var(--dc-red-dark); }

.dc-main { min-width: 0; max-width: 820px; }
.dc-eyebrow { margin: 0 0 8px; font-family: var(--dc-display); text-transform: uppercase; font-size: 13px; font-weight: 700;
  letter-spacing: .16em; color: var(--dc-red); }
.dc-h1 { margin: 0 0 16px; font-family: var(--dc-display); font-weight: 800; font-size: 48px; line-height: 1.02;
  letter-spacing: -.01em; }
.dc-h2 { margin: 56px 0 14px; padding-top: 20px; border-top: 1px solid var(--dc-line); font-family: var(--dc-display);
  font-weight: 700; font-size: 30px; line-height: 1.1; }
.dc-h3, .dc-main h3 { margin: 28px 0 8px; font-family: var(--dc-display); font-weight: 700; font-size: 20px; line-height: 1.2; }
.dc-lead { margin: 0 0 24px; font-size: 19px; line-height: 1.6; color: var(--dc-text); }
.dc-main p { margin: 0 0 14px; }
.dc-note { color: var(--dc-muted); font-size: 15px; }
.dc-list, .dc-steps, .dc-tips { margin: 0 0 16px; padding-left: 22px; }
.dc-list li, .dc-steps li, .dc-tips li { margin: 0 0 8px; }
.dc-tips li::marker, .dc-steps li::marker { font-family: var(--dc-display); font-weight: 700; color: var(--dc-red); }

.dc-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0 0 24px; padding: 18px 20px;
  background: var(--dc-ivory); border: 1px solid var(--dc-line); border-radius: 8px; }
.dc-facts dt { font-family: var(--dc-display); text-transform: uppercase; font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; color: var(--dc-muted); padding-top: 3px; }
.dc-facts dd { margin: 0; overflow-wrap: anywhere; }

/* code */
.dc-code { position: relative; margin: 0 0 18px; padding: 16px 18px; background: var(--dc-code-bg); color: var(--dc-code-text);
  border-radius: 8px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; tab-size: 2; }
.dc .dc-code code { background: none; color: inherit; padding: 0; font-size: inherit; overflow-wrap: normal; white-space: pre; }
.dc-code[data-lang]::before { content: attr(data-lang); position: absolute; top: 6px; right: 70px; font-family: var(--dc-mono);
  font-size: 11px; color: var(--dc-code-muted); text-transform: uppercase; letter-spacing: .08em; }
.dc-code.dc-has-copy { padding-top: 34px; }
.dc-copy { position: absolute; top: 6px; right: 8px; min-height: 26px; padding: 0 10px; border: 1px solid #374151;
  border-radius: 4px; background: #283241; color: var(--dc-code-text); font: 600 11.5px/1 var(--dc-mono); cursor: pointer; }
.dc-copy:hover { background: #374151; }
.dc-copy[data-done] { border-color: #10B981; color: #A7F3D0; }
.dc .dc-prompt { background: var(--dc-ivory); color: var(--dc-ink); border: 1px solid var(--dc-line); font-family: var(--dc-serif);
  font-size: 15px; }
.dc .dc-prompt code { white-space: pre-wrap; font-family: var(--dc-serif); }
.dc-prompt[data-lang]::before { color: var(--dc-muted); }
.dc-prompt .dc-copy { background: var(--dc-white); color: var(--dc-ink); border-color: var(--dc-line); }
.dc-prompt .dc-copy:hover { background: var(--dc-pink); }
.dc-ref { max-height: 520px; overflow: auto; }

/* tables */
.dc-table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.dc-table th, .dc-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--dc-line);
  overflow-wrap: break-word; }
.dc .dc-table code { overflow-wrap: normal; }  /* "--scope user" breaks at its space, never inside "--scope" */
.dc-table thead th { font-family: var(--dc-display); text-transform: uppercase; font-size: 12.5px; letter-spacing: .1em;
  color: var(--dc-muted); border-bottom: 2px solid var(--dc-ink); }
.dc-table tbody th { font-weight: 600; width: 34%; }
.dc-tools td:first-child { width: 34%; white-space: nowrap; }

/* index */
.dc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 8px 0 8px; }
.dc a.dc-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--dc-line); border-radius: 8px;
  color: var(--dc-ink); text-decoration: none; transition: border-color .15s; }
.dc a.dc-card:hover { border-color: var(--dc-ink); color: var(--dc-ink); }
.dc-card-title { font-family: var(--dc-display); font-weight: 700; font-size: 20px; line-height: 1.15; }
.dc-card-text { color: var(--dc-text); font-size: 15.5px; flex: 1; }
.dc-card-go { font-family: var(--dc-display); text-transform: uppercase; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: var(--dc-red); }
.dc-routes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dc-route { padding: 20px; background: var(--dc-ivory); border-radius: 8px; }
.dc-route h3 { margin-top: 0; }
.dc-route p { font-size: 15.5px; color: var(--dc-text); }

/* styles guide */
.dc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.dc-box { padding: 20px; border: 1px solid var(--dc-line); border-radius: 8px; }
.dc-box h3 { margin-top: 0; }
.dc-styles { display: grid; grid-template-columns: 1fr; gap: 16px; }
.dc-style { padding: 20px 22px 6px; border: 1px solid var(--dc-line); border-radius: 8px; }
.dc-style:target { border-color: var(--dc-red); box-shadow: 0 0 0 3px var(--dc-pink-2); }
.dc-style-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.dc-style-head h3, .dc-style-head h4 { margin: 0; }
.dc-main h4 { font-family: var(--dc-display); font-weight: 700; font-size: 19px; line-height: 1.2; }
.dc code.dc-id { font-size: 14px; background: var(--dc-ink); color: var(--dc-white); padding: 2px 8px; }
.dc-meta { color: var(--dc-muted); font-size: 14.5px; }
.dc-label { margin: 0 0 6px !important; font-family: var(--dc-display); text-transform: uppercase; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; color: var(--dc-muted); }
.dc-quote { font-style: italic; }
.dc-ask { padding: 10px 14px; border-left: 3px solid var(--dc-red); background: var(--dc-pink); font-style: italic; }

/* example conversations */
.dc-chat { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; padding: 16px; background: var(--dc-ivory);
  border-radius: 8px; }
.dc-chat p { margin: 0 !important; padding: 10px 14px; border-radius: 8px; max-width: 92%; }
.dc-chat-you { align-self: flex-end; background: var(--dc-ink); color: var(--dc-white); }
.dc-chat-ai { align-self: flex-start; background: var(--dc-white); border: 1px solid var(--dc-line); }
.dc-chat-you::before, .dc-chat-ai::before { display: block; font-family: var(--dc-display); text-transform: uppercase; font-size: 11px;
  font-weight: 700; letter-spacing: .12em; margin-bottom: 2px; }
.dc-chat-you::before { content: "You"; color: #D1D5DB; }
.dc-chat-ai::before { content: "Your assistant"; color: var(--dc-red); }
.dc-chat-file { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 99px; background: #374151; font-size: 13px; }

/* more docs + footer */
.dc-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; }
.dc .dc-next a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--dc-line);
  border-radius: 8px; text-decoration: none; color: var(--dc-ink); }
.dc .dc-next a:hover { border-color: var(--dc-ink); }
.dc-next span { font-family: var(--dc-display); font-weight: 700; font-size: 17px; }
.dc-next small { color: var(--dc-muted); font-size: 14px; }

/* responsive */
@media (max-width: 1024px) {
  .dc-wrap { padding: 0 24px; }
  .dc-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
  .dc-cards, .dc-routes { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .dc-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 16px; }
  .dc-side { position: static; max-height: none; overflow: visible; margin-bottom: 24px; padding-bottom: 12px;
    border-bottom: 1px solid var(--dc-line); }
  .dc-menu { flex-direction: row; overflow-x: auto; gap: 4px; }
  .dc .dc-menu a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; min-height: 44px;
    display: inline-flex; align-items: center; }
  .dc .dc-menu a[aria-current="page"] { border-bottom-color: var(--dc-red); }
  .dc-toc { display: none; }
  .dc-two, .dc-next { grid-template-columns: 1fr; }
  .dc-h1 { font-size: 36px; }
  .dc-h2 { font-size: 26px; margin-top: 44px; }
}
@media (max-width: 560px) {
  .dc-wrap { padding: 0 16px; }
  .dc-lead { font-size: 17px; }
  .dc-facts { grid-template-columns: minmax(0, 1fr); gap: 2px 0; padding: 14px 16px; }
  .dc-facts dd { margin-bottom: 8px; }
  .dc-code { font-size: 12.5px; padding: 14px; }
  .dc-tools td:first-child { white-space: normal; }
  .dc-table tbody th { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dc *, .dc *::before, .dc *::after { transition: none !important; animation: none !important; }
}
