/* ==========================================================================
   Berd Coach — design system
   Stolen, not copied: the paper, the dot grid, the mono eyebrow, the trading
   card, the traffic lights and the neon accent set come from berd.xyz and
   the app's own Home canvas. The sticky-note steps card, the clock that tells
   the version instead of the time, the phase creatures and the "never be
   stuck again" band are ours.
   ========================================================================== */

/* ---------- tokens --------------------------------------------------------- */
:root {
  --paper: #e4e4e0;
  --paper-2: #f5f5f3;          /* the window surface */
  --paper-3: #ffffff;
  --ink: #050505;
  --ink-2: #242424;
  --muted: rgba(5, 5, 5, .55);
  --muted-2: rgba(5, 5, 5, .28);
  --dot: #c9cac4;
  --line: rgba(5, 5, 5, .12);

  --pink: #ff00a8;
  --green: #79c45c;
  --orange: #ff7f00;
  --yellow: #fbff00;
  --red: #c64937;
  --blue: #5c98f9;

  /* sticky-note tones (Berd's own: warm, cool, rose, blue, lavender, peach) */
  --tone-warm: #fff3c4;
  --tone-cool: #dff3ea;
  --tone-rose: #ffe1ea;
  --tone-blue: #dfeeff;
  --tone-lavender: #ebe3ff;
  --tone-peach: #ffe6d3;
  --tone-neutral: #f1f1ee;

  --tl-r: #ff5f57; --tl-y: #febc2e; --tl-g: #28c840;

  --font-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-marker: "Permanent Marker", "Comic Sans MS", cursive;

  --radius: 12px;
  --radius-s: 4px;
  --shadow-card: 0 1px 0 rgba(0,0,0,.04), 0 12px 30px -18px rgba(0,0,0,.35);
  --shadow-note: 0 1px 0 rgba(0,0,0,.06), 0 10px 20px -14px rgba(0,0,0,.45);

  /* Material hooks */
  --md-primary-fg-color: var(--ink);
  --md-primary-fg-color--light: var(--ink-2);
  --md-primary-fg-color--dark: var(--ink);
  --md-primary-bg-color: var(--paper);
  --md-accent-fg-color: var(--pink);
  --md-accent-fg-color--transparent: rgba(255, 0, 168, .08);
  --md-default-bg-color: var(--paper);
  --md-default-fg-color: var(--ink);
  --md-default-fg-color--light: var(--ink-2);
  --md-default-fg-color--lighter: var(--muted);
  --md-default-fg-color--lightest: var(--muted-2);
  --md-typeset-color: var(--ink);
  --md-typeset-a-color: var(--ink);
  --md-code-bg-color: rgba(5,5,5,.05);
  --md-code-fg-color: var(--ink);
  --md-text-font: var(--font-text);
  --md-code-font: var(--font-mono);
  --md-footer-bg-color: transparent;
  --md-footer-bg-color--dark: transparent;
  --md-footer-fg-color: var(--ink);
  --md-footer-fg-color--light: var(--muted);
  --md-footer-fg-color--lighter: var(--muted-2);
}

[data-md-color-scheme="slate"] {
  --paper: #161616;
  --paper-2: #1f1f1f;
  --paper-3: #262626;
  --ink: #f0efe9;
  --ink-2: #d9d8d2;
  --muted: rgba(240, 239, 233, .6);
  --muted-2: rgba(240, 239, 233, .3);
  --dot: #2e2e2c;
  --line: rgba(240, 239, 233, .14);
  --tone-warm: #4a4322; --tone-cool: #223a30; --tone-rose: #46242e; --tone-blue: #1f2f47;
  --tone-lavender: #33294a; --tone-peach: #4a3324; --tone-neutral: #2a2a28;
  --shadow-card: 0 1px 0 rgba(0,0,0,.4), 0 12px 30px -18px rgba(0,0,0,.9);
  --shadow-note: 0 10px 20px -14px rgba(0,0,0,.9);
  --md-code-bg-color: rgba(255,255,255,.07);
  --md-accent-fg-color--transparent: rgba(255, 0, 168, .16);
  --md-typeset-table-color: var(--line);
}

/* ---------- the paper ----------------------------------------------------- */
html { background: var(--paper); }
body {
  background:
    radial-gradient(circle, var(--dot) 1px, transparent 1px) 0 0 / 32px 32px fixed,
    var(--paper);
  color: var(--ink);
}
::selection { background: var(--yellow); color: #050505; }
[data-md-color-scheme="slate"] ::selection { background: var(--pink); color: #fff; }

.md-typeset { font-family: var(--font-text); font-size: .82rem; line-height: 1.62; letter-spacing: -.005em; }
.md-typeset h1, .md-typeset h2, .md-typeset h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.md-typeset h1 { font-size: 2.3rem; line-height: 1.05; margin: .2em 0 .5em; font-variation-settings: "opsz" 144; }
.md-typeset h2 { font-size: 1.35rem; margin-top: 2.2em; }
.md-typeset h3 { font-size: 1.05rem; }
.md-typeset h2 code, .md-typeset h3 code { font-size: .8em; }
.md-typeset a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--muted-2); text-underline-offset: .18em; transition: color .15s, text-decoration-color .15s; }
.md-typeset a:hover { color: var(--ink); text-decoration-color: var(--pink); }
[data-md-color-scheme="slate"] .md-typeset a { text-decoration-color: var(--muted); }
.md-typeset code { font-family: var(--font-mono); font-size: .86em; border-radius: var(--radius-s); padding: .1em .35em; }
.md-typeset pre > code { font-size: .78em; }
/* Prompt prose stays readable without changing the copied source line breaks. */
.win--agent pre > code { white-space: pre-wrap; overflow-wrap: anywhere; }
.md-typeset table:not([class]) { font-size: .78rem; border: 1px solid var(--line); border-radius: var(--radius-s); }
.md-typeset table:not([class]) th { background: var(--tone-neutral); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.md-typeset hr { border-color: var(--line); }

/* ---------- site chrome ---------------------------------------------------- */
.md-header { background: color-mix(in srgb, var(--paper) 84%, transparent); color: var(--ink); box-shadow: none; border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.md-header__title { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.md-header__button.md-logo svg { fill: var(--ink); }
.md-header__button:hover { opacity: .7; }
.md-search__form { background: var(--paper-3); border-radius: var(--radius-s); border: 1px solid var(--line); }
.md-search__input { font-family: var(--font-mono); font-size: .72rem; color: var(--ink); }
.md-search__input::placeholder { color: var(--muted); }
[data-md-toggle="search"]:checked ~ .md-header .md-search__form { background: var(--paper-3); }
.md-search__output { border-radius: 0 0 var(--radius) var(--radius); }
.md-search-result__meta { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; }

.md-tabs { background: transparent; color: var(--ink); border-bottom: 1px solid var(--line); }
.md-tabs__link { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; opacity: .6; margin-top: .6rem; }
.md-tabs__link--active, .md-tabs__link:hover { opacity: 1; }
.md-tabs__item:nth-child(2) .md-tabs__link::before,
.md-tabs__item:nth-child(3) .md-tabs__link::before,
.md-tabs__item:nth-child(4) .md-tabs__link::before,
.md-tabs__item:nth-child(5) .md-tabs__link::before,
.md-tabs__item:nth-child(6) .md-tabs__link::before,
.md-tabs__item:nth-child(7) .md-tabs__link::before { content: ""; display: inline-block; width: .5em; height: .5em; border-radius: 50%; margin-right: .45em; vertical-align: 0; background: var(--dot); }
.md-tabs__item:nth-child(2) .md-tabs__link::before { background: var(--ink-2); }
.md-tabs__item:nth-child(3) .md-tabs__link::before { background: var(--blue); }
.md-tabs__item:nth-child(4) .md-tabs__link::before { background: var(--pink); }
.md-tabs__item:nth-child(5) .md-tabs__link::before { background: var(--green); }
.md-tabs__item:nth-child(6) .md-tabs__link::before { background: var(--orange); }
.md-tabs__item:nth-child(7) .md-tabs__link::before { background: var(--yellow); box-shadow: inset 0 0 0 1px var(--muted-2); }

.md-nav { font-family: var(--font-text); font-size: .7rem; }
.md-nav__title { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); box-shadow: none !important; background: transparent !important; }
.md-nav__link { color: var(--ink-2); }
.md-nav__link--active, .md-nav__link:hover { color: var(--ink); }
.md-sidebar__scrollwrap { scrollbar-width: thin; }
.md-nav--secondary .md-nav__link { color: var(--muted); }
.md-nav--secondary .md-nav__link--active { color: var(--ink); }

/* ---------- the window ----------------------------------------------------- */
.md-content__inner { margin-top: 1.2rem; }
.md-content__inner::before { display: none; }
.win {
  position: relative;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--dot) 55%, transparent) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.1rem 2.4rem 2.2rem;
  overflow: visible;
}
@media (max-width: 44.9375em) { .win { padding: .9rem 1rem 1.6rem; } }
.win__bar { display: flex; align-items: center; gap: .42rem; margin: 0 0 1.4rem; }
.win__dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.win__dot--r { background: var(--tl-r); } .win__dot--y { background: var(--tl-y); } .win__dot--g { background: var(--tl-g); }
.win__title { margin-left: .6rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.task-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-bottom: .4rem; }
.eyebrow { margin: 0; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.eyebrow--paper { color: var(--ink-2); } .eyebrow--ink { color: var(--ink); }
.eyebrow--blue { color: var(--blue); } .eyebrow--pink { color: var(--pink); } .eyebrow--green { color: #4f9a34; }
.eyebrow--orange { color: var(--orange); } .eyebrow--yellow { color: #9a8a00; }
[data-md-color-scheme="slate"] .eyebrow--green { color: var(--green); }
[data-md-color-scheme="slate"] .eyebrow--yellow { color: var(--yellow); }

/* Governance zone and CIF/Cx are production metadata: they stay in front
   matter for generation and review, and are never rendered for the reader
   (decided 2026-09-12). No .zone badge exists. */

.facts { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: 2.2rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--line); }
.facts div { display: flex; flex-direction: column; gap: .05rem; }
.facts dt { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: .74rem; color: var(--ink-2); }

/* ---------- the sticky note (steps at a glance) ------------------------- */
.md-typeset .admonition.abstract, .md-typeset details.abstract {
  border: 0; border-radius: 2px; background: var(--tone-warm); color: #050505;
  box-shadow: var(--shadow-note); transform: rotate(-.6deg); margin: 1.6rem 0 2rem; padding: .2rem 0 .6rem;
  font-size: .8rem;
}
[data-md-color-scheme="slate"] .md-typeset .admonition.abstract { color: var(--ink); }
.md-typeset .abstract > .admonition-title { background: transparent; border: 0; font-family: var(--font-marker); font-weight: 400; font-size: 1.15rem; padding-left: 1rem; color: inherit; }
.md-typeset .abstract > .admonition-title::before { display: none; }
.md-typeset .abstract > .admonition-title::after { content: ""; position: absolute; right: 1.2rem; top: -.55rem; width: 3.2rem; height: 1rem; background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.08); transform: rotate(3deg); }
.md-typeset .abstract ol { margin: 0 1rem .2rem 1.2rem; counter-reset: step; list-style: none; }
.md-typeset .abstract ol li { counter-increment: step; position: relative; padding-left: 1.6rem; margin: .28rem 0; }
.md-typeset .abstract ol li::before { content: counter(step); position: absolute; left: 0; top: .05rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #050505; color: #fff; font-family: var(--font-mono); font-size: .62rem; display: grid; place-items: center; }
.md-typeset .abstract ol li a { text-decoration: none; }
.md-typeset .abstract ol li a:hover { text-decoration: underline; text-decoration-color: var(--pink); }

/* ---------- the other admonitions ---------------------------------------- */
.md-typeset .admonition { border-width: 0 0 0 4px; border-radius: var(--radius-s); box-shadow: none; background: var(--paper-3); font-size: .78rem; }
.md-typeset .admonition > .admonition-title { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; background: transparent; }
.md-typeset .admonition.warning { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 9%, var(--paper-3)); }
.md-typeset .warning > .admonition-title { color: #b85a00; }
.md-typeset .admonition.question { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 7%, var(--paper-3)); }
.md-typeset .question > .admonition-title { color: #c30081; }
.md-typeset .admonition.danger { border: 2px dashed var(--red); background: color-mix(in srgb, var(--red) 6%, var(--paper-3)); }
.md-typeset .danger > .admonition-title { color: var(--red); }
.md-typeset .admonition.failure { border-color: var(--muted-2); background: var(--tone-neutral); }
.md-typeset .failure > .admonition-title { color: var(--muted); }
.md-typeset .failure > .admonition-title::before { background-color: var(--muted); }
.md-typeset .admonition.note, .md-typeset .admonition.info, .md-typeset .admonition.tip { border-color: var(--blue); }
.md-typeset .note > .admonition-title, .md-typeset .info > .admonition-title, .md-typeset .tip > .admonition-title { color: var(--blue); }
.md-typeset .admonition.example { border-color: var(--green); }
.md-typeset .example > .admonition-title { color: #3f8a25; }
.md-typeset .admonition > .admonition-title::before { -webkit-mask-size: contain; }

/* ---------- screenshot placeholders -------------------------------------- */
.shot { display: block; margin: 1rem 0; padding: 1.2rem 1rem; border: 1px dashed var(--muted-2); border-radius: var(--radius-s); background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(0,0,0,.025) 10px 20px); font-family: var(--font-mono); font-size: .64rem; letter-spacing: .04em; color: var(--muted); }
.shot::before { content: "SCREENSHOT · "; color: var(--ink-2); }

/* ---------- tabs (examples) ---------------------------------------------- */
.md-typeset .tabbed-set > .tabbed-labels > label { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.md-typeset .tabbed-labels::before { background: var(--pink); }

/* ---------- FAQ disclosure cards ----------------------------------------- */
.md-typeset .faq-card { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper-3); margin: .9rem 0; padding: 0; overflow: hidden; }
.md-typeset .faq-card > summary { list-style: none; cursor: pointer; padding: .8rem 1rem; display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: start; }
.md-typeset .faq-card > summary::-webkit-details-marker { display: none; }
.md-typeset .faq-card > summary h2 { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.md-typeset .faq-card > summary h2 a.headerlink { display: none; }
.md-typeset .faq-card > summary .faq-short { grid-column: 1 / -1; margin: .35rem 0 0; font-size: .78rem; }
.md-typeset .faq-card > summary .faq-toggle { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-s); padding: .25em .5em; white-space: nowrap; }
.md-typeset .faq-card[open] > summary .faq-toggle::after { content: " ↑"; } .md-typeset .faq-card:not([open]) > summary .faq-toggle::after { content: " ↓"; }
.md-typeset .faq-card > .faq-body { padding: 0 1rem 1rem; border-top: 1px dashed var(--line); font-size: .78rem; }
.md-typeset .faq-card > .faq-body > p:first-child { margin-top: .8rem; }

/* ---------- rails (Learn more / Reference) ------------------------------ */
.rail { margin-top: 1.8rem; border-top: 1px solid var(--line); padding-top: .2rem; }
.rail h2 { font-family: var(--font-mono) !important; font-size: .62rem !important; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 1.4em !important; font-weight: 500 !important; }
.rail ul { list-style: none; margin-left: 0 !important; padding-left: 0; }
.rail li { margin: .3rem 0; padding-left: 1rem; position: relative; font-size: .76rem; }
.rail li::before { content: "→"; position: absolute; left: 0; color: var(--muted-2); font-family: var(--font-mono); }
.rail--ref li::before { content: "#"; }
.stamp { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .02em; color: var(--muted); margin-top: 1.6rem !important; }

/* ---------- trading cards (phase index, home) --------------------------- */
.md-typeset .grid.cards > ul { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.md-typeset .grid.cards > ul > li,
.md-typeset .grid.cards.tasks > ul > li {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper-3);
  padding: 2.3rem 1.1rem 1rem; box-shadow: var(--shadow-card); transition: transform .18s ease, box-shadow .18s ease;
  font-size: .76rem;
}
.md-typeset .grid.cards > ul > li:hover { transform: translateY(-3px) rotate(-.4deg); border-color: var(--ink); box-shadow: 0 18px 40px -20px rgba(0,0,0,.45); }
.md-typeset .grid.cards > ul > li > p:first-child { margin-top: 0; }
.md-typeset .grid.cards > ul > li > hr { margin: .6rem 0; border-color: var(--line); }
.md-typeset .grid.cards > ul > li > p > strong,
.md-typeset .grid.cards > ul > li > p > a > strong { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.md-typeset .grid.cards > ul > li[data-card]::before {
  content: attr(data-card); position: absolute; left: 1.1rem; top: .8rem; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.md-typeset .grid.cards > ul > li[data-zone]::after {
  content: attr(data-zone); position: absolute; right: .9rem; top: .7rem; font-family: var(--font-mono); font-size: .52rem; letter-spacing: .1em; padding: .2em .45em; border-radius: var(--radius-s); border: 1px solid currentColor;
}
.md-typeset .grid.cards > ul > li[data-zone]::after { color: var(--muted); }
.md-typeset .grid.cards .good { display: block; margin-top: .5rem; font-size: .7rem; color: var(--muted); }
.md-typeset .grid.cards .good b { font-family: var(--font-mono); font-weight: 500; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-right: .3rem; }

/* ---------- the home canvas ---------------------------------------------- */
.win--home { padding: 1.1rem 1.6rem 2rem; }
.canvas { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 59.9375em) { .canvas { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 44.9375em) { .canvas { grid-template-columns: repeat(2, 1fr); } }
.canvas > * { min-width: 0; }
.w-hero { grid-column: span 7; }
.w-clock { grid-column: span 3; }
.w-check { grid-column: span 2; }
.w-moments { grid-column: 1 / -1; }
.w-phases { grid-column: 1 / -1; }
.w-map { grid-column: 1 / -1; }
.w-coach { grid-column: span 5; }
.w-guide { grid-column: span 7; }
@media (max-width: 59.9375em) { .w-hero, .w-clock, .w-check, .w-coach, .w-guide { grid-column: 1 / -1; } }
@media (max-width: 44.9375em) { .canvas > * { grid-column: 1 / -1 !important; } }

.hero { padding: .6rem 0 0; }
.hero__label { font-family: var(--font-marker); font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.05; margin: 0 0 .6rem; transform: rotate(-1.2deg); display: inline-block; color: var(--ink); }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1; margin: 0 0 .8rem; letter-spacing: -.03em; font-weight: 400; font-variation-settings: "opsz" 144; }
.hero h1 em { font-style: italic; color: var(--pink); }
.hero p { max-width: 38rem; font-size: .9rem; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }

.chrome-button { display: inline-flex; align-items: center; justify-content: center; height: 30px; min-width: 96px; padding: 0 12px; border: 1px solid var(--ink); border-radius: var(--radius-s); background: var(--ink); color: var(--paper) !important; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none !important; white-space: nowrap; transition: background .16s, color .16s; }
.chrome-button:hover { background: var(--paper-3); color: var(--ink) !important; }
.chrome-button--ghost { background: transparent; color: var(--ink) !important; }
.chrome-button--ghost:hover { background: var(--ink); color: var(--paper) !important; }
.chrome-button--dont { border-color: var(--red); color: var(--red) !important; background: transparent; }
.chrome-button--dont:hover { background: var(--red); color: #fff !important; }

/* clock widget — tells the version, not the time */
.clock { background: #111; color: #ff3b30; border-radius: 6px; padding: .9rem 1rem .8rem; font-family: var(--font-mono); box-shadow: var(--shadow-card); border: 1px solid #000; }
.clock__big { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -.02em; line-height: 1; text-shadow: 0 0 12px rgba(255,59,48,.55); }
.clock__big small { font-size: .5em; vertical-align: .35em; margin-left: .3em; }
.clock__row { display: flex; justify-content: space-between; gap: .5rem; margin-top: .55rem; font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; color: #ff8a80; opacity: .85; }
.clock a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }

/* sticky notes */
.note { display: block; position: relative; padding: .9rem 1rem 1rem; border-radius: 2px; box-shadow: var(--shadow-note); color: #050505; text-decoration: none !important; min-height: 8.4rem; transition: transform .18s; }
[data-md-color-scheme="slate"] .note { color: var(--ink); }
.note:hover { transform: rotate(0deg) translateY(-3px) !important; }
.note::before { content: ""; position: absolute; top: -.45rem; left: 50%; width: 2.8rem; height: .9rem; margin-left: -1.4rem; background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.08); transform: rotate(-2deg); }
.note__k { font-family: var(--font-mono); font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.note__t { font-family: var(--font-marker); font-size: 1.25rem; line-height: 1.1; margin: .25rem 0 .35rem; }
.note__b { font-size: .72rem; line-height: 1.45; margin: 0; opacity: .9; }
.note--warm { background: var(--tone-warm); transform: rotate(-1.2deg); }
.note--cool { background: var(--tone-cool); transform: rotate(.8deg); }
.note--rose { background: var(--tone-rose); transform: rotate(-.6deg); }
.note--blue { background: var(--tone-blue); transform: rotate(1.1deg); }
.note--lavender { background: var(--tone-lavender); transform: rotate(-.9deg); }
.note--peach { background: var(--tone-peach); transform: rotate(.5deg); }
.moments { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: .4rem; }
@media (max-width: 59.9375em) { .moments { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 44.9375em) { .moments { grid-template-columns: 1fr; } }

/* checklist widget — the starter task list, with real checkboxes */
.check { background: var(--tone-cool); border-radius: 2px; box-shadow: var(--shadow-note); padding: .8rem .9rem 1rem; transform: rotate(.9deg); color: #050505; }
[data-md-color-scheme="slate"] .check { color: var(--ink); }
.check__t { font-family: var(--font-marker); font-size: 1.05rem; margin: 0 0 .4rem; }
.check ul { list-style: none; margin: 0; padding: 0; }
.check li { display: flex; gap: .5rem; align-items: baseline; font-size: .72rem; margin: .3rem 0; }
.check input { accent-color: #050505; }
.check li.done a { text-decoration: line-through; opacity: .55; }
.check a { color: inherit; }

/* label widget */
.label-widget { font-family: var(--font-marker); font-size: 1.1rem; color: var(--ink); margin: 0 0 .5rem; transform: rotate(-1deg); display: inline-block; }

/* the phase creatures */
.creature { width: 54px; height: 54px; display: block; margin-bottom: .3rem; }
.creature .eye { fill: #050505; }
.creature .body { stroke: #050505; stroke-width: 1.6; }
[data-md-color-scheme="slate"] .creature .eye { fill: #050505; }

/* section headers on the canvas */
.canvas h2, .win--home .md-typeset h2 { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 1.6rem 0 .7rem; border-bottom: 1px dashed var(--line); padding-bottom: .35rem; }

/* coach card (the mascot) */
.coach { display: grid; grid-template-columns: 82px 1fr; gap: 1rem; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper-3); padding: 1rem; box-shadow: var(--shadow-card); }
.coach__k { font-family: var(--font-mono); font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.coach__n { font-family: var(--font-display); font-size: 1.3rem; margin: .1rem 0 .3rem; }
.coach p { margin: .2rem 0; font-size: .74rem; }
.coach .good b { font-family: var(--font-mono); font-weight: 500; font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; margin-right: .3rem; }

/* workflow map */
.w-map .mermaid { background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius-s); padding: .6rem; }

/* ---------- the footer band ---------------------------------------------- */
.stuck { text-align: center; padding: 3rem 1rem 1.2rem; }
.stuck__link { display: inline-flex; flex-direction: column; align-items: center; gap: .1rem; text-decoration: none; color: var(--ink); font-family: var(--font-mono); font-size: clamp(1.4rem, 4vw, 2.6rem); letter-spacing: .06em; line-height: 1; transition: transform .2s; }
.stuck__link:hover { transform: scale(1.04) rotate(-1deg); }
.stuck__link:hover span:nth-child(2) { color: var(--pink); }
.stuck__click { font-size: .55em; margin-top: .6rem; padding: .35em .8em; border: 1px solid var(--ink); border-radius: 999px; }
.stuck__meta { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .04em; color: var(--muted); margin-top: 1.6rem; }
.stuck__meta a { color: var(--ink); }
.md-footer { background: transparent; color: var(--ink); }
.md-footer__inner { padding-top: 0; }
.md-footer__title { font-family: var(--font-display); }
.md-footer__direction { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.md-footer-meta { display: none; }
.md-footer__link { opacity: .8; }

/* ---------- 404 / "you clicked it" --------------------------------------- */
.draw { position: relative; border: 1px solid var(--ink); border-radius: var(--radius-s); background: var(--paper-3); height: 20rem; overflow: hidden; cursor: crosshair; }
.draw canvas { width: 100%; height: 100%; display: block; }
.draw__tools { position: absolute; right: .6rem; bottom: .6rem; display: flex; gap: .4rem; }
.draw__tools button { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--ink); background: var(--paper-3); color: var(--ink); border-radius: var(--radius-s); padding: .3em .6em; cursor: pointer; }
.draw__tools button.is-on { background: var(--ink); color: var(--paper); }

/* ---------- small print ---------------------------------------------------- */
.md-typeset .headerlink { color: var(--muted-2); }
.md-typeset .headerlink:hover { color: var(--pink); }
.md-top { background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .note, .note:hover, .check, .md-typeset .admonition.abstract, .hero__label, .label-widget, .stuck__link:hover { transform: none !important; transition: none !important; } }

/* facts line, when moved under the H1 */
.facts--top { margin: -.2rem 0 1.4rem; padding-top: 0; border-top: 0; border-bottom: 1px dashed var(--line); padding-bottom: .9rem; }

/* FAQ cards: drop Material's details chrome */
.md-typeset details.faq-card { border: 1px solid var(--line) !important; border-left-width: 1px !important; box-shadow: none; background: var(--paper-3); padding: 0; }
.md-typeset details.faq-card > summary { background: transparent; padding-left: 1rem; }
.md-typeset details.faq-card > summary::before, .md-typeset details.faq-card > summary::after { display: none !important; }
.md-typeset details.faq-card[open] > summary { border-bottom: 0; }
.md-typeset .grid.cards > ul > li > p > a { text-decoration: none; }
.md-typeset .grid.cards > ul > li > p > a:hover strong { text-decoration: underline; text-decoration-color: var(--pink); }

/* the whole card is the click target, not just the title: a "stretched link"
   on the title anchor covers the full li (already position: relative above),
   so hovering or clicking anywhere on the card follows its one link */
.md-typeset .grid.cards > ul > li { cursor: pointer; }
.md-typeset .grid.cards > ul > li > p > a { position: static; }
.md-typeset .grid.cards > ul > li > p > a::after { content: ""; position: absolute; inset: 0; z-index: 1; }


/* ---------- task pages: left = tasks + quick steps, right = mapped content ---- */
/* the integrated TOC under the active task gets its label */
.md-nav--primary .md-nav__item--active > .md-nav--secondary { margin-top: .3rem; padding-left: .2rem; border-left: 2px solid var(--line); }
.md-nav--primary .md-nav__item--active > .md-nav--secondary > .md-nav__title { display: none; }
.md-nav--primary .md-nav__item--active > .md-nav--secondary::before { content: "Table of contents"; display: block; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: .2rem 0 .3rem .6rem; }
body[data-kind="task"] .md-nav--primary .md-nav__item--active > .md-nav--secondary::before { content: "Quick steps"; }
body[data-kind="faq"] .md-nav--primary .md-nav__item--active > .md-nav--secondary::before { content: "Questions"; }
body[data-kind="task"] .md-nav--primary .md-nav__item--active > .md-nav--secondary .md-nav__link { font-size: .68rem; }
@media screen and (min-width: 76.25em) {
  .md-nav--primary .md-nav__item--section.md-nav__item--active > .md-nav > .md-nav__title { display: none; }
}

/* the rails column */
.md-sidebar--rails .rails { padding: .6rem 0 0 .2rem; }
.md-sidebar--rails .rail { margin-top: 0; padding-top: 0; border-top: 0; margin-bottom: 1.4rem; }
.md-sidebar--rails .rail h2 { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 .45rem; }
.md-sidebar--rails .rail ul { list-style: none; margin: 0; padding: 0; }
.md-sidebar--rails .rail li { position: relative; padding-left: .95rem; margin: .32rem 0; font-size: .68rem; line-height: 1.4; color: var(--ink-2); }
.md-sidebar--rails .rail li::before { position: absolute; left: 0; top: 0; font-family: var(--font-mono); color: var(--muted-2); }
.md-sidebar--rails .rail--sk li::before { content: "◆"; font-size: .55rem; top: .15rem; }
.md-sidebar--rails .rail--ref li::before { content: "#"; }
.md-sidebar--rails .rail--learn li::before { content: "→"; }
.md-sidebar--rails .rail a { color: var(--ink); text-decoration: none; }
.md-sidebar--rails .rail a:hover { text-decoration: underline; text-decoration-color: var(--pink); }
/* The three mapped-content groups are sticky notes pinned beside the task —
   one tone each so they read as three different objects, not one list. */
.md-sidebar--rails .rail--sk,
.md-sidebar--rails .rail--ref,
.md-sidebar--rails .rail--learn { position: relative; padding: .8rem .8rem .65rem; border-radius: 2px; box-shadow: var(--shadow-note); color: #050505; }
.md-sidebar--rails .rail--sk    { background: var(--tone-blue);     transform: rotate(.4deg); }
.md-sidebar--rails .rail--ref   { background: var(--tone-peach);    transform: rotate(-.5deg); }
.md-sidebar--rails .rail--learn { background: var(--tone-lavender); transform: rotate(.6deg); }
.md-sidebar--rails .rail--sk::before,
.md-sidebar--rails .rail--ref::before,
.md-sidebar--rails .rail--learn::before { content: ""; position: absolute; top: -.4rem; left: 50%; width: 2.4rem; height: .8rem; margin-left: -1.2rem; background: rgba(255,255,255,.55); border: 1px solid rgba(0,0,0,.08); transform: rotate(-2deg); }
.md-sidebar--rails .rail--ref::before { transform: rotate(2.5deg); }
.md-sidebar--rails .rail--sk h2, .md-sidebar--rails .rail--ref h2, .md-sidebar--rails .rail--learn h2 { color: #050505; opacity: .65; }
.md-sidebar--rails .rail--sk li, .md-sidebar--rails .rail--sk a,
.md-sidebar--rails .rail--ref li, .md-sidebar--rails .rail--ref a,
.md-sidebar--rails .rail--learn li, .md-sidebar--rails .rail--learn a { color: #050505; }
.md-sidebar--rails .rail--sk li::before, .md-sidebar--rails .rail--ref li::before, .md-sidebar--rails .rail--learn li::before { color: rgba(5,5,5,.4); }
.md-sidebar--rails .rail--ref li code { background: rgba(0,0,0,.06); }
[data-md-color-scheme="slate"] .md-sidebar--rails .rail--sk, [data-md-color-scheme="slate"] .md-sidebar--rails .rail--ref, [data-md-color-scheme="slate"] .md-sidebar--rails .rail--learn,
[data-md-color-scheme="slate"] .md-sidebar--rails .rail--sk h2, [data-md-color-scheme="slate"] .md-sidebar--rails .rail--ref h2, [data-md-color-scheme="slate"] .md-sidebar--rails .rail--learn h2,
[data-md-color-scheme="slate"] .md-sidebar--rails .rail--sk li, [data-md-color-scheme="slate"] .md-sidebar--rails .rail--ref li, [data-md-color-scheme="slate"] .md-sidebar--rails .rail--learn li,
[data-md-color-scheme="slate"] .md-sidebar--rails .rail--sk a, [data-md-color-scheme="slate"] .md-sidebar--rails .rail--ref a, [data-md-color-scheme="slate"] .md-sidebar--rails .rail--learn a { color: var(--ink); }
[data-md-color-scheme="slate"] .md-sidebar--rails .rail li::before { color: var(--muted); }
.md-sidebar--rails .rail { margin-bottom: 1.6rem; }
.md-sidebar--rails .rails { padding-top: .9rem; }
@media (prefers-reduced-motion: reduce) { .md-sidebar--rails .rail { transform: none !important; } }
.md-typeset .rail-h { display: block; }

/* the selected phase in the tab bar */
.md-tabs__item--active .md-tabs__link { opacity: 1; background: var(--ink); color: var(--paper); padding: .28rem .6rem; border-radius: 999px; margin-top: .45rem; }
.md-tabs__item--active .md-tabs__link::before { background: var(--paper) !important; box-shadow: none !important; }
[data-md-color-scheme="slate"] .md-tabs__item--active .md-tabs__link { background: var(--ink); color: var(--paper); }
.md-sidebar--rails .rail li { overflow-wrap: anywhere; }
.md-sidebar--rails .rail li code { font-size: .62rem; }

/* Material's front-matter status marker has no legend here — production
   status is not reader-facing. */
.md-status { display: none !important; }


/* ---------- left column: the index tab ------------------------------------
   The active task is a paper tab in the phase colour — a structural cue ("you
   are here, in this phase"), not a sticky note ("this is attached"). Quick
   steps hang off the tab like the contents of the folder it opens. */
:root { --phase: var(--ink-2); }
body[data-phase="blue"]   { --phase: var(--blue); }
body[data-phase="pink"]   { --phase: var(--pink); }
body[data-phase="green"]  { --phase: #4f9a34; }
body[data-phase="orange"] { --phase: var(--orange); }
body[data-phase="yellow"] { --phase: #c9a800; }
[data-md-color-scheme="slate"] body[data-phase="green"]  { --phase: var(--green); }
[data-md-color-scheme="slate"] body[data-phase="yellow"] { --phase: var(--yellow); }

@media screen and (min-width: 76.25em) {
  body[data-kind="task"] .md-nav--primary .md-nav__item--section.md-nav__item--active > .md-nav > .md-nav__list > .md-nav__item--active {
    position: relative; margin: .35rem -.6rem .4rem -.6rem;
  }
  body[data-kind="task"] .md-nav--primary .md-nav__item--section.md-nav__item--active > .md-nav > .md-nav__list > .md-nav__item--active > a.md-nav__link--active {
    display: block; margin: 0; padding: .45rem .7rem .45rem .75rem;
    background: var(--paper-3); color: var(--ink); font-weight: 600;
    border: 1px solid var(--line); border-left: 4px solid var(--phase);
    border-radius: 0 6px 6px 0; box-shadow: var(--shadow-card);
  }
  body[data-kind="task"] .md-nav--primary .md-nav__item--section.md-nav__item--active > .md-nav > .md-nav__list > .md-nav__item--active > a.md-nav__link--active::after {
    content: ""; position: absolute; right: -.35rem; top: 50%; width: .7rem; height: .7rem; margin-top: -.35rem;
    background: var(--paper-3); border: 1px solid var(--line); border-left: 0; border-bottom: 0; transform: rotate(45deg);
  }
  /* quick steps hang from the tab */
  body[data-kind="task"] .md-nav--primary .md-nav__item--active > .md-nav--secondary {
    margin: .1rem 0 .2rem .35rem; padding-left: .55rem; border-left: 2px solid var(--phase);
  }
  body[data-kind="task"] .md-nav--primary .md-nav__item--active > .md-nav--secondary::before { color: var(--phase); opacity: .85; }
  body[data-kind="task"] .md-nav--primary .md-nav__item--active > .md-nav--secondary .md-nav__link--active { color: var(--ink); font-weight: 600; }
  /* the phase heading above the list picks up the same colour dot */
  body[data-kind="task"] .md-nav--primary .md-nav__item--section.md-nav__item--active > .md-nav__container > a .md-ellipsis::before,
  body[data-kind="phase"] .md-nav--primary .md-nav__item--section.md-nav__item--active > .md-nav__container > a .md-ellipsis::before {
    content: ""; display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--phase); margin-right: .45em; vertical-align: .05em;
  }
}
