/* Dragonfly Help. Every color is a token below; the palette is the planner's
   (planning.getdragonflytech.com), with a dark set of the same names. Adjust tokens, not rules. */
:root {
  color-scheme: light;
  --ink: #172c40;
  --quiet: #53697c;
  --line: #dce6ed;
  --teal: #087980; /* Planner teal, darkened for small text on the pale backgrounds. */
  --teal-strong: #066c73;
  --blue: #315ca6;
  --violet: #7b65bb;
  --bg: #f1f5f8;
  --surface: #ffffff;
  --surface-soft: #f5f8fa;
  --hover: #eaf4f6;
  --top: #112c41;
  --top-line: #234658;
  --top-ink: #edf7fb;
  --top-quiet: #aec9d9;
  --top-pill: #3b5669;
  --lead-bg: #e8f5f4;
  --lead-line: #c3dfe0;
  --lite-bg: #e9f3f5;
  --lite-ink: #176b74;
  --premium-bg: #f1eef9;
  --premium-ink: #6650a0;
  --step-bg: #087e86;
  --step-ink: #ffffff;
  --focus: #38a9bd;
  --shadow: 0 3px 10px #19334b0a;
  --radius: 15px;
  --radius-small: 9px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #e4edf3;
    --quiet: #9db2c2;
    --line: #27405a;
    --teal: #4fc3c9;
    --teal-strong: #79d6da;
    --blue: #8eaee6;
    --violet: #b5a5e6;
    --bg: #0c1a26;
    --surface: #132536;
    --surface-soft: #172c3f;
    --hover: #1b3449;
    --top: #0a1823;
    --top-line: #1d3549;
    --lead-bg: #11343a;
    --lead-line: #1f5257;
    --lite-bg: #12393e;
    --lite-ink: #8ee0e3;
    --premium-bg: #2a2547;
    --premium-ink: #cbbdf5;
    --step-bg: #4fc3c9;
    --step-ink: #0c1a26;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e4edf3;
  --quiet: #9db2c2;
  --line: #27405a;
  --teal: #4fc3c9;
  --teal-strong: #79d6da;
  --blue: #8eaee6;
  --violet: #b5a5e6;
  --bg: #0c1a26;
  --surface: #132536;
  --surface-soft: #172c3f;
  --hover: #1b3449;
  --top: #0a1823;
  --top-line: #1d3549;
  --lead-bg: #11343a;
  --lead-line: #1f5257;
  --lite-bg: #12393e;
  --lite-ink: #8ee0e3;
  --premium-bg: #2a2547;
  --premium-ink: #cbbdf5;
  --step-bg: #4fc3c9;
  --step-ink: #0c1a26;
  --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); overflow-wrap: break-word; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -1px; font-weight: 700; }
h2 { font-size: 19px; letter-spacing: -.3px; font-weight: 650; margin-bottom: 12px; }
h3 { font-size: 16px; font-weight: 650; margin: 18px 0 8px; }
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--teal-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
code { font-size: .92em; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 5px; padding: 0 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 { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-small); }
.quiet { color: var(--quiet); }
.shell { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* Header: the planner's navy bar */
.top { background: var(--top); color: var(--top-ink); border-bottom: 1px solid var(--top-line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; min-width: 0; }
.brand:hover { color: inherit; }
.logo { width: 76px; height: 46px; object-fit: contain; flex-shrink: 0; }
.brand strong { display: block; font-size: 17px; font-weight: 650; letter-spacing: .2px; line-height: 1.3; }
.brand small { display: block; color: var(--top-quiet); font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; }
.theme-toggle { width: 36px; height: 36px; flex: 0 0 auto; color: var(--quiet); background: var(--surface-soft); border: 1px solid var(--line); border-radius: 50%; padding: 0; cursor: pointer; }
.theme-toggle:not([hidden]) { display: grid; place-items: center; }
.theme-toggle:hover { color: var(--teal); background: var(--hover); }
.theme-icon { display: block; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; background: linear-gradient(to right, currentColor 50%, transparent 50%); }

/* Intro and search */
.intro { padding: 36px 0 26px; }
.eyebrow { font-size: 11px; letter-spacing: 1.7px; text-transform: uppercase; font-weight: 700; color: var(--teal); margin-bottom: 8px; }
.subtitle { color: var(--quiet); margin-top: 10px; font-size: 16px; max-width: 640px; }
.search { margin-top: 22px; max-width: 680px; }
.search input { display: block; width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-height: 52px; box-shadow: var(--shadow); }
.search input:hover { border-color: var(--teal); }
.search input::placeholder { color: var(--quiet); }
.search-hint { font-size: 13px; color: var(--quiet); margin-top: 8px; min-height: 1em; }
.results { list-style: none; margin: 6px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.results li + li { border-top: 1px solid var(--line); }
.results a { display: block; padding: 12px 16px; text-decoration: none; color: var(--ink); }
.results a:hover, .results a:focus-visible { background: var(--hover); }
.results strong { display: block; font-weight: 650; }
.results span { display: block; font-size: 13px; color: var(--quiet); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); min-width: 0; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-bottom: 12px; }
.app-card h2 { font-size: 20px; margin-bottom: 4px; }
.app-card h2 a { color: var(--ink); text-decoration: none; }
.app-card h2 a:hover { color: var(--teal); }
.app-card > p { font-size: 14px; margin-bottom: 12px; }
.task-list { list-style: none; margin: 0; padding: 0; }
.task-list li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-list a { font-weight: 600; text-decoration: none; }
.task-list a:hover { text-decoration: underline; }
.task-cards { list-style: none; margin: 0; padding: 0; }
.task-cards li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.task-cards a { text-decoration: none; min-width: 0; }
.task-cards strong { display: block; }
.task-cards span { display: block; color: var(--quiet); font-size: 14px; }

/* Badges: Lite and Premium */
.badge { display: inline-block; font-size: 11px; font-weight: 650; padding: 3px 8px; border-radius: 6px; white-space: nowrap; flex-shrink: 0; }
.badge-lite { background: var(--lite-bg); color: var(--lite-ink); }
.badge-premium { background: var(--premium-bg); color: var(--premium-ink); }

/* Article */
.crumbs { font-size: 13px; color: var(--quiet); padding-top: 22px; }
.crumbs a { color: var(--quiet); }
.article-head { padding: 12px 0 20px; }
.article-head .tier { margin-top: 12px; }
.article { display: grid; gap: 16px; max-width: 820px; padding-bottom: 12px; }
.article .article-head { padding-bottom: 4px; }
.lead { background: var(--lead-bg); border-color: var(--lead-line); box-shadow: none; }
.lead h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--teal); margin-bottom: 4px; }
.lead p { font-size: 17px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 2px 0 12px 42px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--step-bg); color: var(--step-ink); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.steps li:last-child { padding-bottom: 0; }
.card p + .steps, .card h3 + .steps { margin-top: 10px; }
.card > h2 + h3 { margin-top: 0; }
.tips, .related { margin: 0; padding-left: 20px; }
.tips li + li, .related li + li { margin-top: 6px; }
.related .quiet { font-size: 13px; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.shot figcaption { font-size: 13px; color: var(--quiet); margin-top: 8px; }
.support { border: 1px dashed var(--teal); border-radius: var(--radius); padding: 18px 24px; background: var(--surface-soft); }
.support h2 { font-size: 16px; margin-bottom: 4px; }
.article .support, .shell > .support { margin-top: 0; }
.shell > .card + .support { margin-top: 16px; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--quiet); padding-top: 28px; padding-bottom: 32px; }
.footer a { color: var(--quiet); }

@media (max-width: 760px) {
  .shell { padding: 0 16px; }
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 18px; }
  .support { padding: 16px 18px; }
}
@media (max-width: 480px) {
  .logo { width: 53px; height: 32px; }
  .brand { gap: 9px; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 9px; letter-spacing: 1.6px; }
  .top-inner { min-height: 64px; }
  .intro { padding-top: 26px; }
  .task-list li, .task-cards li { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
