/* Gervigreind fyrir alla — shared styles. Colours follow the PDF guides. */
:root {
  --navy: #16304d;
  --navy-deep: #0f2238;
  --teal: #1e8a86;
  --teal-bg: #e4f1f0;
  --orange: #e8a33d;
  --orange-bg: #fdf3e2;
  --red: #d9534f;
  --red-bg: #fbe7e6;
  --green: #3f9b62;
  --green-bg: #e6f3ea;
  --blue: #24507a;
  --blue-bg: #e9eff5;
  --purple: #7458a6;
  --ink: #1d2733;
  --muted: #5b6878;
  --line: #d7dee6;
  --paper: #ffffff;
  --page: #f5f7fa;
  --code-bg: #1f2a37;
  --code-ink: #e6edf3;
  --radius: 12px;
  --maxw: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
}
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--teal); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); }
h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
p { margin: .6em 0; }
code, pre, kbd { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Header + tabs ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-deep);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.site-header .inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px; min-height: 60px;
}
.brand { color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; font-size: 1.02rem; }
.brand:hover { color: var(--orange); }
.brand .dot { color: var(--orange); }
.tabs { display: flex; gap: 6px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  color: #cfdbe8; text-decoration: none; font-weight: 600; font-size: .95rem;
  white-space: nowrap; border: 1px solid transparent;
}
.tab:hover { color: #fff; background: rgba(255,255,255,.08); }
.tab[aria-current="page"] { background: #fff; color: var(--navy-deep); }
.tab .swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.swatch.claude { background: #d97757; }
.swatch.chatgpt { background: #10a37f; }
.swatch.copilot { background: linear-gradient(135deg,#2f7ef6,#8d4fe0); }

@media (max-width: 640px) {
  .site-header .inner { flex-wrap: wrap; gap: 4px 12px; padding: 8px 16px; }
  .tabs { margin-left: 0; width: 100%; }
  .tab { flex: 1 1 0; justify-content: center; padding: 8px 6px; }
}

/* ---------- Hero / cover ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #17304f 0%, #12263f 70%, #0f2238 100%);
  color: #fff;
  padding: 72px 16px 56px;
}
.hero::before { /* aurora */
  content: ""; position: absolute; left: -10%; right: -10%; top: 18px; height: 150px;
  background:
    radial-gradient(60% 40% at 30% 60%, rgba(46,170,150,.55), transparent 70%),
    radial-gradient(50% 35% at 65% 45%, rgba(84,190,120,.35), transparent 70%),
    radial-gradient(55% 40% at 80% 70%, rgba(120,90,190,.45), transparent 70%);
  filter: blur(14px); transform: rotate(-4deg);
  pointer-events: none;
}
.hero::after { /* mountains */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
  background: var(--navy-deep);
  clip-path: polygon(0 70%, 12% 25%, 24% 60%, 38% 10%, 52% 55%, 66% 25%, 80% 60%, 90% 30%, 100% 55%, 100% 100%, 0 100%);
  opacity: .9; pointer-events: none;
}
.hero .inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; }
.eyebrow {
  color: var(--orange); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  font-size: .8rem; margin: 0 0 8px;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 12px; line-height: 1.05; }
.hero .subtitle { font-size: 1.2rem; color: #dbe5f0; margin: 0 0 18px; max-width: 40ch; }
.hero .rule { width: 72px; height: 4px; background: var(--orange); border: 0; margin: 18px 0; border-radius: 2px; }
.hero .meta { color: #a9bbcf; font-size: .9rem; margin: 2px 0; }
.hero .pdf-link {
  display: inline-block; margin-top: 18px; color: #fff; font-size: .9rem;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 6px 14px; text-decoration: none;
}
.hero .pdf-link:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Layout ---------- */
.layout {
  max-width: var(--maxw); margin: 0 auto; padding: 28px 16px 64px;
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start;
}
.side-nav {
  position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto;
  font-size: .9rem; padding-right: 4px;
}
.side-nav .label { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; margin: 0 0 8px; }
.side-nav ol { list-style: none; margin: 0; padding: 0; }
.side-nav a {
  display: block; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--ink);
  border-left: 3px solid transparent;
}
.side-nav a:hover { background: #e9eef4; }
.side-nav a.active { background: #e3ebf3; border-left-color: var(--orange); font-weight: 600; }
.mobile-nav { display: none; }

.guide { min-width: 0; }
.guide ul.risk, .guide ul.toc-list, .guide ol.formula, .guide ol.quick, .guide ol.callouts { padding-left: 0; }
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .side-nav { display: none; }
  .mobile-nav {
    display: block; position: sticky; top: 60px; z-index: 40;
    margin: 0 -16px 16px; padding: 10px 16px; background: var(--page);
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav select {
    width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  }
}
@media (max-width: 640px) {
  .mobile-nav { top: 96px; }
  html { scroll-padding-top: 160px; }
}
@media (min-width: 641px) and (max-width: 900px) { html { scroll-padding-top: 130px; } }

/* ---------- Content cards ---------- */
.guide > section {
  background: var(--paper); border-radius: var(--radius);
  padding: 28px clamp(16px, 4vw, 36px); margin: 0 0 24px;
  box-shadow: 0 1px 3px rgba(15,34,56,.07), 0 6px 20px rgba(15,34,56,.04);
}
.guide > section > h2:first-child { margin-top: 0; }
.section-banner {
  background: var(--teal); color: #fff; border-radius: 10px;
  padding: 18px 22px; margin: 0 0 18px;
}
.section-banner .eyebrow { margin: 0 0 4px; }
.section-banner h2 { color: #fff; margin: 0; font-size: 1.5rem; }

/* Step header */
.step-head {
  display: flex; align-items: center; gap: 16px;
  background: var(--navy); color: #fff; border-radius: 10px;
  padding: 16px 20px; margin: 0 0 18px;
}
.step-num {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%;
  background: var(--orange); color: var(--navy-deep);
  display: grid; place-items: center; font-weight: 800; font-size: 1.5rem;
}
.step-head .kicker { color: var(--orange); font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.step-head h2 { color: #fff; margin: 2px 0 0; font-size: clamp(1.2rem, 2.6vw, 1.55rem); }

/* Callout boxes */
.box {
  border-left: 5px solid var(--teal); background: var(--teal-bg);
  border-radius: 0 10px 10px 0; padding: 12px 18px; margin: 16px 0;
}
.box > :first-child { margin-top: 0; }
.box > :last-child { margin-bottom: 0; }
.box .box-title { font-weight: 700; margin: 0 0 4px; color: var(--teal); }
.box.summary { border-color: var(--teal); background: var(--teal-bg); }
.box.info    { border-color: var(--blue); background: var(--blue-bg); }
.box.info .box-title { color: var(--blue); }
.box.warn    { border-color: var(--red); background: var(--red-bg); }
.box.warn .box-title { color: var(--red); }
.box.note    { border-color: var(--orange); background: var(--orange-bg); }
.box.note .box-title { color: #b77514; }
.box.try     { border-color: var(--orange); background: var(--orange-bg); }
.box.try .box-title { color: #c98216; text-transform: none; }
.box.good    { border-color: var(--green); background: var(--green-bg); }
.box.good .box-title { color: var(--green); }
.box ul, .box ol { margin: .3em 0; padding-left: 1.3em; }

/* Ready-made prompt with copy button (button added by site.js) */
.prompt {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--blue);
  border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 14px 0;
}
.prompt .box-title { font-weight: 700; color: var(--blue); margin: 0 0 4px; padding-right: 84px; }
.prompt .prompt-text { font-style: italic; margin: 0; }
.prompt.teal { border-left-color: var(--teal); background: var(--teal-bg); }
.prompt.teal .box-title { color: var(--teal); }
.prompt.blue { background: var(--blue-bg); }
.prompt.red  { border-left-color: var(--red); background: var(--red-bg); }
.prompt.red .box-title { color: var(--red); }
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  font: inherit; font-size: .8rem; font-weight: 600;
  background: var(--navy); color: #fff; border: 0; border-radius: 999px;
  padding: 5px 12px; cursor: pointer;
}
.copy-btn:hover { background: var(--teal); }
.copy-btn.done { background: var(--green); }
.prompt:not(:has(.box-title)) .prompt-text { padding-right: 84px; }

/* Lists */
.guide ul, .guide ol { padding-left: 1.4em; }
.guide li { margin: .25em 0; }
.steps-list li::marker { font-weight: 700; color: var(--navy); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 14px 0; border-radius: 10px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: #fff; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
tr:last-child > td { border-bottom: 0; }
thead th { background: var(--blue-bg); color: var(--navy); font-weight: 700; }
tbody tr:nth-child(even) > td { background: #f7f9fb; }
td.term { font-weight: 700; width: 34%; }
td.term .en, .en { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }

/* Glossary */
.glossary-group { margin: 20px 0 0; }
.glossary-group > h3 {
  background: var(--teal); color: #fff; margin: 0; padding: 8px 14px; border-radius: 10px 10px 0 0;
  font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
}
.glossary-group .table-wrap { margin-top: 0; border-radius: 0 0 10px 10px; }
.glossary-search {
  width: 100%; font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0 4px;
}
@media (max-width: 560px) {
  .glossary-group table, .glossary-group tbody, .glossary-group tr, .glossary-group td { display: block; width: 100%; }
  .glossary-group td.term { border-bottom: 0; padding-bottom: 0; }
  .glossary-group td { padding: 8px 14px; }
  .glossary-group tr { border-bottom: 1px solid var(--line); }
  .glossary-group tr:last-child { border-bottom: 0; }
}

/* Table of contents + "where to start" */
.toc-list { list-style: none; padding: 0; margin: 8px 0; columns: 2 300px; column-gap: 28px; }
.toc-list li { break-inside: avoid; margin: 0; }
.toc-list a { display: block; padding: 7px 0; border-bottom: 1px dotted var(--line); text-decoration: none; color: var(--ink); }
.toc-list a:hover { color: var(--teal); }
.start-table td:last-child { white-space: nowrap; font-weight: 600; color: var(--navy); }

/* Grids and cards */
.grid { display: grid; gap: 14px; margin: 16px 0; }
.grid.two   { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid.four  { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
}
.card .card-head { padding: 10px 14px; color: #fff; font-weight: 700; background: var(--teal); text-align: center; }
.card.blue .card-head { background: var(--blue); }
.card.red .card-head  { background: var(--red); }
.card.green .card-head { background: var(--green); }
.card.purple .card-head { background: var(--purple); }
.card.orange .card-head { background: var(--orange); color: var(--navy-deep); }
.card .card-body { padding: 12px 14px; flex: 1; }
.card .card-body > :first-child { margin-top: 0; }
.card .lead { font-weight: 700; }
.card .muted { color: var(--muted); font-size: .93rem; }
.difficulty { padding: 0 14px 12px; display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.difficulty .label { display: block; width: 100%; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.difficulty .dots { display: inline-flex; gap: 4px; }
.difficulty .dots i { width: 12px; height: 12px; border-radius: 50%; background: #cfd8e2; display: inline-block; }
.difficulty .dots i.on { background: currentColor; }
.difficulty { flex-wrap: wrap; }
.difficulty strong { margin-left: auto; }

/* Can / can't (two columns) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 10px; overflow: hidden; margin: 16px 0; }
.split > div { padding: 14px 18px; }
.split > div:first-child { background: var(--green-bg); }
.split > div:last-child { background: var(--red-bg); }
.split h4 { margin: 0 0 6px; font-size: 1rem; }
.split ul { margin: 0; }
@media (max-width: 640px) { .split { grid-template-columns: 1fr; } }

/* Five-part prompt formula */
.formula { list-style: none; padding: 0; margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.formula li { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.4fr); align-items: stretch; margin: 0; border-bottom: 1px solid var(--line); background: #fff; }
.formula li:last-child { border-bottom: 0; }
.formula .n { display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.3rem; }
.formula li:nth-child(1) .n { background: var(--teal); }
.formula li:nth-child(2) .n { background: var(--blue); }
.formula li:nth-child(3) .n { background: var(--green); }
.formula li:nth-child(4) .n { background: var(--purple); }
.formula li:nth-child(5) .n { background: var(--red); }
.formula .what { padding: 10px 14px; }
.formula .what strong { display: block; }
.formula .what small { color: var(--muted); }
.formula .ex { padding: 10px 14px; font-style: italic; }
@media (max-width: 640px) {
  .formula li { grid-template-columns: 44px minmax(0, 1fr); }
  .formula .ex { grid-column: 2; padding-top: 0; }
}

/* Chat example */
.chat { background: #edf1f5; border-radius: 12px; padding: 16px; margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; }
.msg .who { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 3px; }
.msg .bubble { border-radius: 12px; padding: 10px 14px; }
.msg.user { align-self: flex-end; text-align: left; }
.msg.user .who { text-align: right; }
.msg.user .bubble { background: var(--teal); color: #fff; }
.msg.ai { align-self: flex-start; }
.msg.ai .bubble { background: #fff; border: 1px solid var(--line); }

/* Risk levels (traffic light) */
.risk { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.risk li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; margin: 0; }
.risk li::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; margin-top: 2px; }
.risk .low  { background: var(--green-bg); }  .risk .low::before  { background: var(--green); }
.risk .mid  { background: var(--orange-bg); } .risk .mid::before  { background: var(--orange); }
.risk .high { background: var(--red-bg); }    .risk .high::before { background: var(--red); }
.risk strong { display: block; }

/* Code / template blocks */
pre.code {
  background: var(--code-bg); color: var(--code-ink); border-radius: 10px;
  padding: 14px 16px; overflow-x: auto; line-height: 1.55; margin: 14px 0; white-space: pre;
}
pre.code .c { color: #8b9bb0; }
pre.code .h { color: #f0b45a; }
pre.code .g { color: #7fd1a0; }
pre.template { background: var(--blue-bg); color: var(--ink); border-left: 5px solid var(--blue); white-space: pre-wrap; }
.caption { color: var(--muted); font-size: .88rem; margin: 4px 0 12px; }

/* Numbered rule sheet */
:not(pre) > code { background: #eef2f6; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; overflow-wrap: anywhere; }
.rulesheet { position: relative; }
.rulesheet h4, .rulesheet .box-title { padding-right: 84px; }
.rulesheet { border: 2px solid var(--orange); border-radius: 10px; background: var(--orange-bg); padding: 14px 18px; margin: 14px 0; }
.rulesheet h4 { margin: 0 0 6px; }
.rulesheet ol { margin: 0; padding-left: 1.6em; }
.rulesheet li { padding: 5px 0; border-bottom: 1px solid rgba(232,163,61,.3); }
.rulesheet li:last-child { border-bottom: 0; }

/* Quick card */
.quick { list-style: none; padding: 0; margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; counter-reset: q; }
.quick li { display: grid; grid-template-columns: 48px 1fr; margin: 0; border-bottom: 1px solid var(--line); }
.quick li:last-child { border-bottom: 0; }
.quick li::before { counter-increment: q; content: counter(q); background: var(--orange); color: var(--navy-deep); font-weight: 800; display: grid; place-items: center; }
.quick li > span { padding: 9px 14px; }

/* Account badges (Copilot guide): which account a section applies to */
.badge {
  display: inline-block; vertical-align: middle; border-radius: 999px; padding: 2px 10px;
  font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff;
  background: #6b7787; line-height: 1.6;
}
.badge.personal { background: var(--teal); }
.badge.work { background: var(--blue); }
.badge.both { background: #6b7787; }
.badge.special { background: var(--purple); }
.badge-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 8px 0 14px; font-size: .9rem; color: var(--muted); }
.badge-legend span { display: inline-flex; align-items: center; gap: 8px; }
.box .box-title .badge, .section-banner .badge { margin-right: 8px; }
.card.personal .card-head { background: var(--teal); }
.card.work .card-head { background: var(--blue); }

/* Generic diagram bits */
.diagram { margin: 16px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 8px; color: #fff; font-weight: 600; font-size: .85rem; background: var(--teal); }
.chip.blue { background: var(--blue); } .chip.orange { background: var(--orange); color: var(--navy-deep); }
.chip.red { background: var(--red); } .chip.purple { background: var(--purple); } .chip.green { background: var(--green); }
.chip.plain { background: #fff; color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
.panel { border: 2px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.panel.bad { border-color: var(--red); background: var(--red-bg); }
.panel.good { border-color: var(--green); background: var(--green-bg); }
.panel .panel-title { font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
.panel.bad .panel-title, .panel.bad .panel-foot { color: var(--red); }
.panel.good .panel-title, .panel.good .panel-foot { color: var(--green); }
.panel .panel-foot { font-weight: 700; margin: 10px 0 0; }
.panel .chips { justify-content: center; }
.meter { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: .82rem; font-weight: 600; }
.meter > span { padding: 8px 10px; color: #fff; text-align: center; }
.meter .m1 { background: var(--teal); flex: 2; } .meter .m2 { background: var(--orange); flex: 1.3; color: var(--navy-deep); }
.meter .m3 { background: var(--blue); flex: 4; } .meter .m4 { background: #fff; color: var(--muted); flex: 2.2; font-weight: 400; }
@media (max-width: 560px) { .meter { flex-wrap: wrap; } .meter > span { flex: 1 1 45%; } }
.tree { font-family: var(--mono); font-size: .9rem; background: var(--blue-bg); border-radius: 10px; padding: 14px 18px; line-height: 1.8; }
.tree ul { list-style: none; margin: 0; padding-left: 1.4em; }
.tree > ul { padding-left: 0; }
.tree .folder { font-weight: 700; color: var(--purple); }
.tree .hl { background: var(--orange-bg); border: 2px solid var(--orange); border-radius: 6px; padding: 0 6px; font-weight: 700; }
.tree small { font-family: var(--font); color: var(--muted); font-style: italic; margin-left: 8px; }
.window { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.window .bar { background: #edf1f5; padding: 8px 12px; display: flex; gap: 6px; }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; background: var(--red); }
.window .bar i:nth-child(2) { background: var(--orange); } .window .bar i:nth-child(3) { background: var(--green); }
.window .body { padding: 14px; }
.window.dark { background: var(--code-bg); border-color: var(--code-bg); }
.window.dark .bar { background: transparent; }
.window.dark .body { color: var(--code-ink); font-family: var(--mono); font-size: .88rem; line-height: 1.8; }
.callouts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.callouts li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; margin: 0; }
.callouts .n { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: var(--navy-deep); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.callouts small { display: block; color: var(--muted); }
.flow { display: grid; gap: 10px; justify-items: center; text-align: center; }
.flow .node { border-radius: 10px; padding: 12px 20px; color: #fff; min-width: 220px; }
.flow .node small { display: block; opacity: .85; }
.flow .node.navy { background: var(--navy); } .flow .node.purple { background: var(--purple); }
.flow .arrows { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: .85rem; font-weight: 700; }
.flow .arrows .down { color: var(--teal); } .flow .arrows .up { color: #b77514; }

/* ---------- Landing page ---------- */
.landing { max-width: 980px; margin: 0 auto; padding: 32px 16px 64px; }
.landing .lead { font-size: 1.15rem; }
.landing > section { background: #fff; border-radius: var(--radius); padding: 24px clamp(16px, 4vw, 32px); margin: 0 0 22px; box-shadow: 0 1px 3px rgba(15,34,56,.07); }
.tool-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 18px 0 0; }
.tool-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  border-top: 6px solid var(--teal); transition: transform .12s ease, box-shadow .12s ease;
}
.tool-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,34,56,.1); color: var(--ink); }
.tool-card.claude { border-top-color: #d97757; }
.tool-card.chatgpt { border-top-color: #10a37f; }
.tool-card.copilot { border-top-color: #4f6bea; }
.tool-card h3 { margin: 0 0 4px; }
.tool-card .maker { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.tool-card .go { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #a9bbcf; font-size: .88rem; padding: 24px 16px; }
.site-footer .inner { max-width: var(--maxw); margin: 0 auto; }
.site-footer a { color: #dbe5f0; }

.back-top { display: inline-block; margin-top: 8px; font-size: .85rem; }

/* ---------- Print ---------- */
@media print {
  .site-header, .side-nav, .mobile-nav, .copy-btn, .site-footer, .glossary-search { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .layout { display: block; padding: 0; }
  .guide > section { box-shadow: none; break-inside: auto; page-break-before: always; padding: 0; }
  .hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .box, .step-head, .formula .n, .quick li::before, .card .card-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
