/* Shared shell for /guides. Colours are the homepage's two office themes, picked by the system setting. */
:root {
  --wall: #efeae2; --floor: #e3e6ec; --floor-alt: #d5d9e1; --line: #c9c4ba;
  --ink: #1e2534; --muted: #586276; --panel: #f7f4ee; --track: #dcd7cd;
  --claude: #c2571f; --codex: #1f8377; --link: #1f6f66;
  --teal: #4fb6aa; --flame: #f2a93b; --green: #4fbf62; --amber: #f0993f; --blue: #2b62d6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --wall: #1a2030; --floor: #232b3b; --floor-alt: #2a3346; --line: #11151f;
    --ink: #eef1f6; --muted: #9ba7bd; --panel: #202738; --track: #333d52;
    --claude: #f0895f; --codex: #4fb6aa; --link: #7fd3c8;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 400 1.0625rem/1.65 Figtree, system-ui, sans-serif; overflow-wrap: break-word; }
h1, h2, h3 { font-family: "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -0.015em; }
h1 { font-weight: 800; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.08; margin: 0 0 .75rem; }
h2 { font-weight: 800; font-size: clamp(1.4rem, 3.6vw, 1.85rem); line-height: 1.15; margin: 2.75rem 0 .75rem; scroll-margin-top: 5rem; }
h3 { font-weight: 600; font-size: 1.2rem; line-height: 1.25; margin: 1.75rem 0 .5rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin: .35rem 0; }
a { color: var(--link); text-underline-offset: 2px; }
code { font: .92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; padding: .05rem .3rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.article { width: min(68ch, 100% - 2rem); margin-inline: auto; padding: 2.5rem 0 4rem; }

header { position: sticky; top: 0; z-index: 5; background: var(--wall); border-bottom: 3px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 1rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .5rem; font: 800 1.2rem "Bricolage Grotesque", system-ui, sans-serif; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; object-fit: cover; object-position: 30% 60%; }
.button { display: inline-block; font: 600 .95rem Figtree, system-ui, sans-serif; text-decoration: none; background: var(--teal); color: #08211e; border-radius: 12px; padding: .6rem 1rem; white-space: nowrap; }

.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.byline { color: var(--muted); font-size: .95rem; }
.lead { font-size: 1.15rem; }
.answer { background: var(--panel); border: 2px solid var(--line); border-left: 6px solid var(--teal); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.5rem 0; }
.answer p:last-child { margin-bottom: 0; }

nav.toc { background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: .9rem 1.2rem; margin: 1.5rem 0 1rem; }
nav.toc h2 { font-size: 1rem; margin: 0 0 .4rem; }
nav.toc ol { margin: 0; padding-left: 1.2rem; }

.table-scroll { overflow-x: auto; margin: 1rem 0 1.5rem; border: 2px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 44rem; font-size: .92rem; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--panel); font-weight: 600; }
tbody th { font-weight: 600; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

details { background: var(--panel); border: 2px solid var(--line); border-radius: 12px; padding: .7rem 1rem; margin: .6rem 0; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: .6rem 0 0; }

.sources { font-size: .92rem; }
.sources li { overflow-wrap: anywhere; }
.cta { margin-top: 2.5rem; padding: 1.2rem; border: 2px solid var(--line); border-radius: 12px; background: var(--floor); }
.cta p:last-child { margin-bottom: 0; }

footer { border-top: 3px solid var(--line); background: var(--floor); color: var(--muted); font-size: .9rem; padding: 1.5rem 0 2rem; }
footer p { margin: .4rem 0; }
footer a { color: inherit; }

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .brand span { font-size: 1.05rem; }
  .button { padding: .5rem .8rem; font-size: .9rem; }
}
