*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font-family: var(--font-body, Arial, 'Helvetica Neue', system-ui, sans-serif);
  color: var(--text, #1D252C);
  background: var(--bg, #F0F4F6);
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
:focus-visible { outline: 2px solid var(--phase-step2, #00AF9A); outline-offset: 2px; }


:root {
  /* ── Theme-filled custom properties (values injected by theme.cssVariables) ── */
  --color-primary-700: ; --color-primary-600: ; --color-primary-500: ;
  --color-primary-400: ; --color-primary-300: ; --color-primary-200: ; --color-primary-100: ;
  --color-accent-700:  ; --color-accent-600:  ; --color-accent-500:  ;
  --color-accent-400:  ; --color-accent-300:  ; --color-accent-200:  ; --color-accent-100:  ;
  --color-surface-500: ; --color-surface-200: ;
  --color-text-500:    ; --color-text-600:    ; --color-text-300: ;
  --color-warning:     ; --color-alert: ;

  --color-text:        var(--color-text-500);
  --color-text-muted:  var(--color-text-600);
  --color-surface:     var(--color-surface-500);
  --color-surface-alt: var(--color-surface-200);
  --color-border:      var(--color-text-300);
  --color-rule:        ;

  --font-display: system-ui, sans-serif;
  --font-body:    system-ui, sans-serif;
  --font-mono:    monospace;
  --ls-h1: ; --ls-h2: ; --ls-h3: ; --ls-body: ;
  --fw-h1: ; --fw-h2: ;

  /* ── Phase palette (5 cycling colours) ── */
  --phase-launch:       #003654;
  --phase-launch-light: #CCDEE7;
  --phase-launch-text:  #001F33;

  --phase-step1:        #023E8A;
  --phase-step1-light:  #C8D8EF;
  --phase-step1-text:   #012870;

  --phase-step2:        #00AF9A;
  --phase-step2-light:  #C2EDE8;
  --phase-step2-text:   #006B60;

  --phase-step3:        #36B0C9;
  --phase-step3-light:  #C8EEF5;
  --phase-step3-text:   #1E7F94;

  --phase-day2:         #3D1152;
  --phase-day2-light:   #E0CBE8;
  --phase-day2-text:    #250A32;

  /* ── Layout ── */
  --sidenav-width:    220px;
  --content-max:      90ch;
  --rule-width:       0.75px;
  --bg:               #F0F4F6;
  --surface:          #FFFFFF;
  --border:           #C8DCE6;
  --text:             #1D252C;
  --muted:            #5A6670;
}


/* ── Reset ─────────────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; top: 1rem; left: 1rem; width: auto; height: auto;
  padding: .5rem 1rem; background: var(--phase-step2); color: #fff;
  z-index: 200; border-radius: .25rem;
}

/* ── Site header ────────────────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, #001F33 0%, #003654 45%, #004A72 70%, #005E70 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.site-header::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(145deg, transparent 40%, rgba(0,175,154,.18) 60%, transparent 75%),
    linear-gradient(225deg, transparent 50%, rgba(54,176,201,.12) 65%, transparent 80%);
  pointer-events: none;
}
.site-header::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.header-inner {
  position: relative; z-index: 1;
  padding: 32px 24px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.fp-logo {
  display: flex; align-items: center; gap: 10px;
}
/* White chip behind the official F-icon so its dark-navy fill stays visible
   on the dark header gradient. The SVG asset itself is never modified. */
.fp-logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 8px; padding: 5px 8px;
}
.fp-logo-mark img { display: block; height: 30px; width: auto; }
.fp-logo-wordmark {
  font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -.01em; line-height: 1;
}
.site-badge {
  display: inline-block;
  background: rgba(0,175,154,.22);
  border: 1px solid rgba(0,175,154,.5);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #7FE8DC;
}
.site-header h1 {
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: 700; letter-spacing: -.01em;
  margin: 0;
}

/* ── Timeline nav ───────────────────────────────────────────────────────────── */
.timeline-wrap {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.timeline-outer {
  display: flex; align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.timeline {
  display: flex; align-items: stretch; flex: 1;
  overflow-x: auto; scrollbar-width: none;
}
.timeline::-webkit-scrollbar { display: none; }

.tl-step {
  flex: 1; min-width: 110px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 8px; gap: 4px;
  cursor: pointer; text-decoration: none;
  color: var(--muted);
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; text-align: center;
  border-bottom: 3px solid transparent;
  transition: background .15s, color .15s;
}
.tl-step:hover { background: #EBF2F6; }

.tl-step.launch { border-color: var(--phase-launch); color: var(--phase-launch); }
.tl-step.step1  { border-color: var(--phase-step1);  color: var(--phase-step1);  }
.tl-step.step2  { border-color: var(--phase-step2);  color: var(--phase-step2);  }
.tl-step.step3  { border-color: var(--phase-step3);  color: var(--phase-step3);  }
.tl-step.day2   { border-color: var(--phase-day2);   color: var(--phase-day2);   }

.tl-num {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  background: currentColor; color: white; flex-shrink: 0;
}
.tl-step.launch .tl-num { color: var(--phase-launch); }
.tl-step.step1  .tl-num { color: var(--phase-step1);  }
.tl-step.step2  .tl-num { color: var(--phase-step2);  }
.tl-step.step3  .tl-num { color: var(--phase-step3);  }
.tl-step.day2   .tl-num { color: var(--phase-day2);   }
.tl-num { background: currentColor; color: white; }

.tl-step.tl-active { background: #EBF2F6; }

.tl-arrow {
  color: #cbd5e1; font-size: 18px; flex-shrink: 0;
  display: flex; align-items: center; padding: 0 2px;
}

/* ── Search bar (own sticky bar; independent of the hidden timeline) ───────────── */
.search-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.search-row {
  display: flex; justify-content: center;
  padding: 10px 16px;
}
.search-wrap {
  position: relative;
  width: 100%; max-width: 480px;
}
.search-input {
  width: 100%;
  padding: 9px 36px 9px 16px;
  border: 1px solid var(--border); border-radius: 20px;
  font-size: 14px; font-family: inherit;
  background: var(--bg); color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-input:focus {
  border-color: var(--phase-step2);
  box-shadow: 0 0 0 3px rgba(0,175,154,.15);
}
.search-input::placeholder { color: var(--muted); }
.search-icon {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--muted); font-size: 14px; line-height: 1;
}
.search-clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 18px; line-height: 1; padding: 2px;
  display: none; transition: color .1s;
}
.search-clear:hover { color: var(--text); }

.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.13);
  z-index: 200; overflow: hidden; display: none;
}
.search-results.open { display: block; }
.search-result-item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 10px 14px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover,
.search-result-item.focused { background: #EBF2F6; }
.search-result-title {
  font-size: 13px; font-weight: 600; color: var(--text);
}
.search-result-chapter {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  padding: 2px 8px; border-radius: 10px;
  display: inline-block; align-self: flex-start;
  background: var(--phase-step2-light); color: var(--phase-step2-text);
}
.search-no-results {
  padding: 16px 14px; font-size: 13px; color: var(--muted); text-align: center;
}
.search-result-header {
  padding: 8px 14px 6px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border); background: var(--bg);
}

/* ── Main shell ─────────────────────────────────────────────────────────────── */
.site-main {
  display: grid;
  grid-template-columns: var(--sidenav-width) 1fr;
  max-width: 1200px; margin: 0 auto;
  min-height: calc(100vh - 180px);
  padding: 0 0 60px;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────────── */
.site-sidenav {
  position: sticky; top: 57px;
  height: calc(100vh - 57px); overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 16px 0;
  scrollbar-width: thin;
}

/* ── Content + on-this-page wrapper ─────────────────────────────────────────── */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 32px;
  padding: 32px 32px 32px 40px;
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────────── */
.site-breadcrumb { padding: 20px 40px 0; }
.site-breadcrumb ol {
  display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 4px;
  font-size: .8125rem; color: var(--muted); flex-wrap: wrap;
}
.site-breadcrumb li + li::before { content: '/'; margin-right: .5rem; }
.site-breadcrumb a { color: var(--link, #1f6feb); text-decoration: none; }
.site-breadcrumb a:hover { text-decoration: underline; }
.site-breadcrumb [aria-current="page"] { color: var(--muted); }

/* ── On-this-page ────────────────────────────────────────────────────────────── */
.on-this-page {
  position: sticky; top: 77px;
  max-height: calc(100vh - 100px); overflow-y: auto;
}
.on-this-page h2 {
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 10px; font-weight: 700;
}
.on-this-page ul { list-style: none; padding: 0; font-size: .8125rem; }
.on-this-page li { margin-bottom: 4px; position: relative; padding-left: .875rem; }
.on-this-page li::before {
  content: '\2022';
  position: absolute; left: 0;
  color: var(--phase-step2);
}
.on-this-page li[data-level="3"] { padding-left: 1.625rem; }
.on-this-page li[data-level="3"]::before { left: .75rem; }
.on-this-page a { color: var(--muted); text-decoration: none; line-height: 1.4; display: block; }
.on-this-page a:hover { color: var(--text); }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--phase-launch);
  padding: 28px 24px;
  text-align: center;
}
.footer-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.footer-chip {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px; padding: 6px 14px;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.85); text-decoration: none;
  transition: background .15s, box-shadow .15s;
}
.footer-chip:hover { background: rgba(255,255,255,.15); color: #fff; }
.footer-copy {
  font-size: 12px; color: rgba(255,255,255,.55);
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .site-main { grid-template-columns: 1fr; }
  .site-sidenav { display: none; }
  .content-wrap { grid-template-columns: 1fr; padding: 24px 20px; }
  .site-breadcrumb { padding: 16px 20px 0; }
}
@media (max-width: 600px) {
  .tl-step { min-width: 80px; font-size: 10px; }
}

/* ── Back-to-top button ───────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--phase-launch);
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  z-index: 50;
  transition: opacity .15s ease, background .15s ease;
}
.back-to-top:hover { background: var(--phase-step2, var(--phase-launch)); }
.back-to-top[hidden] { display: none; }


/* ── Phase badges (chapter labels in sidebar) ───────────────────────────────── */
.phase-badge {
  display: block;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 6px;
  margin: 12px 12px 4px;
}
.phase-badge.phase-launch { background: var(--phase-launch-light); color: var(--phase-launch); }
.phase-badge.phase-step1  { background: var(--phase-step1-light);  color: var(--phase-step1);  }
.phase-badge.phase-step2  { background: var(--phase-step2-light);  color: var(--phase-step2-text); }
.phase-badge.phase-step3  { background: var(--phase-step3-light);  color: var(--phase-step3-text); }
.phase-badge.phase-day2   { background: var(--phase-day2-light);   color: var(--phase-day2);   }

/* ── Nav groups ─────────────────────────────────────────────────────────────── */
.nav-group { padding: 0 0 8px; }

/* ── Nav branches (collapsible) ─────────────────────────────────────────────── */
.nav-branch { border: none; }
.nav-branch > summary {
  display: flex; align-items: center; gap: .25rem;
  /* Indent by nesting level: top-level chapter is depth 1, so its descendants
     start at depth 2 and each deeper level adds one step. */
  padding: .3rem 12px .3rem calc(14px + (var(--depth, 2) - 2) * 16px);
  cursor: pointer; list-style: none;
  font-size: .8125rem; font-weight: 500;
  color: var(--text);
}
.nav-branch > summary::-webkit-details-marker { display: none; }
.nav-chevron { width: 1rem; height: 1rem; flex-shrink: 0; transition: transform .2s; }
.nav-branch[open] .nav-chevron { transform: rotate(180deg); }

/* The branch heading is the link to the branch's own topic. It inherits the
   summary's type so the sidebar still reads as one hierarchy — the only
   difference from a label-only branch is that this one is clickable. */
.nav-branch__link,
.nav-branch__label {
  flex: 1; min-width: 0;
  color: inherit; font: inherit; text-decoration: none;
}
.nav-branch__link:hover { text-decoration: underline; }
.nav-branch > summary:hover { background: #EBF2F6; }
.nav-branch > summary.is-active {
  background: #EBF2F6;
  box-shadow: inset 2px 0 0 var(--phase-step2);
}
.nav-branch > summary.is-active .nav-branch__link {
  color: var(--phase-step2);
  font-weight: 600;
}

/* ── Nav leaves ─────────────────────────────────────────────────────────────── */
.nav-list { list-style: none; padding: 0; }
.nav-leaf a {
  display: block;
  padding: .28rem 12px .28rem calc(22px + (var(--depth, 2) - 2) * 16px);
  font-size: .8125rem;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background-color .1s, color .1s;
  line-height: 1.4;
}
.nav-leaf a:hover { background: #EBF2F6; color: var(--text); }
.nav-leaf.is-active > a,
.nav-leaf a[aria-current="page"] {
  color: var(--phase-step2);
  border-left-color: var(--phase-step2);
  font-weight: 600;
  background: #EBF2F6;
}

/* Direct leaf children of root (no branch wrapper) */
.site-nav > .nav-leaf a { padding-left: 14px; }


/* ── Topic article ───────────────────────────────────────────────────────────── */
.topic {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 36px;
  min-width: 0;
}

.topic h1 {
  font-size: 1.75rem; font-weight: var(--fw-h1, 700);
  letter-spacing: var(--ls-h1, -.02em);
  margin-bottom: 1.25rem;
  color: var(--phase-launch);
}
.topic h2 {
  font-size: 1.25rem; font-weight: var(--fw-h2, 600);
  letter-spacing: var(--ls-h2, -.015em);
  margin-top: 2rem; margin-bottom: .625rem;
  padding-bottom: .375rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.topic h3 { font-size: 1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: .375rem; }
.topic h4 {
  font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); margin-top: 1.25rem; margin-bottom: .5rem;
}
.topic p { margin-bottom: .875rem; line-height: 1.7; font-size: .9375rem; }
.topic ul, .topic ol { margin: 0 0 .875rem 1.25rem; }
.topic li { margin-bottom: .3rem; line-height: 1.7; font-size: .9375rem; }
.topic a { color: var(--phase-step2-text); }
.topic a:hover { text-decoration: underline; color: var(--phase-step2); }

/* ── Code ──────────────────────────────────────────────────────────────────── */
.topic code {
  font-family: var(--font-mono); font-size: .8375em;
  background: #EBF2F6;
  border: 1px solid var(--border);
  border-radius: 4px; padding: .1em .35em;
  color: var(--phase-launch);
}
.topic pre {
  background: #EBF2F6; border: 1px solid var(--border);
  border-radius: 8px; padding: 1.125rem 1.25rem;
  overflow-x: auto; margin-bottom: 1.25rem;
}
.topic pre code {
  background: none; border: none; padding: 0; font-size: .875rem; color: var(--text);
}

/* ── Tables ─────────────────────────────────────────────────────────────────── */
/* Wide tables scroll horizontally inside the article instead of spilling past
   the page layout. `display:block` + `width:max-content` + `max-width:100%`
   gives a scroll container without needing an HTML wrapper element. */
.topic table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: .875rem;
}
.topic th {
  background: var(--phase-launch-light);
  border: 1px solid var(--border); padding: .5rem .75rem;
  text-align: left; font-size: .6875rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--phase-launch);
}
.topic td { border: 1px solid var(--border); padding: .5rem .75rem; vertical-align: top; }
.topic tr:hover td { background: #EBF2F6; }

/* ── Misc ─────────────────────────────────────────────────────────────────── */
.topic blockquote {
  border-left: 4px solid var(--phase-step2);
  padding: .75rem 1rem; margin: 0 0 1rem;
  color: var(--muted); background: #EBF2F6;
  border-radius: 0 6px 6px 0;
  font-size: .9375rem;
}
/* Inline icons (e.g. "click the ![](add_icon.png) icon") must sit on the text
   baseline without forcing a tall line or wrapping the following words onto a
   new line. Standalone screenshots — the only element in their paragraph — get
   block treatment with vertical spacing. */
.topic img { display: inline-block; max-width: 100%; border-radius: 6px; vertical-align: middle; }
.topic p > img:only-child,
.topic li > img:only-child { display: block; margin: 1rem 0; }

/* ── Image lightbox ────────────────────────────────────────────────────────── */
.topic img:not([data-no-zoom]) {
  cursor: zoom-in;
  transition: opacity .2s, transform .2s;
}
.topic img:not([data-no-zoom]):hover { opacity: 0.85; transform: scale(1.02); }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  animation: fadeIn .2s ease-in-out;
}
.lightbox.open { display: flex; }
.lightbox {
  align-items: center;
  justify-content: center;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  cursor: zoom-out;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  line-height: 1;
  padding: 0;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.topic hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── Definition lists (rendered via markdown-it-deflist) ─────────────────────── */
/* Two-column grid: the term (often a callout number) sits on the SAME line as
   the start of its definition, not on a line of its own above it. */
.topic dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: .625rem;
  align-items: start;
  margin: 0 0 .875rem;
}
.topic dt { grid-column: 1; font-weight: 600; line-height: 1.7; font-size: .9375rem; }
.topic dd { grid-column: 2; margin: 0 0 .625rem; line-height: 1.7; font-size: .9375rem; }
.topic dd > p:first-child { display: inline-block; vertical-align: top; margin-bottom: .25rem; }
.topic dd > img { display: block; margin: 1rem 0; }
.topic kbd {
  font-family: var(--font-mono); font-size: .8em;
  border: 1px solid var(--border); border-radius: 4px;
  padding: .1em .4em; background: #EBF2F6;
}

.heading-anchor { margin-left: .375rem; opacity: 0; color: var(--muted); text-decoration: none; font-weight: 400; }
h1:hover .heading-anchor, h2:hover .heading-anchor, h3:hover .heading-anchor { opacity: 1; }


/* ── Callout blocks ───────────────────────────────────────────────────────────── */
.callout {
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  margin: 12px 0;
  font-size: .9rem;
  /* Block flow (not flex): callouts may contain multiple paragraphs and nested
     lists — a flex row would lay those out side-by-side. */
  display: block;
}
/* Tighten spacing of block children so the callout reads as one unit. */
.callout > :first-child { margin-top: 0; }
.callout > :last-child  { margin-bottom: 0; }
/* The leading "Note:" / "Important:" label stays bold and inline with its text. */
.callout p > strong:first-child { font-weight: 700; }
.callout--note {
  background: #EFF6FF;
  border-left: 3px solid #3B82F6;
  color: #1E40AF;
}
.callout--warning {
  background: #FFF2EA;
  border-left: 3px solid #FA5300;
  color: #822C00;
}
.callout--tip {
  background: #FFFADC;
  border-left: 3px solid #FDCE12;
  color: #6B5400;
}
.callout--important {
  background: var(--phase-day2-light);
  border-left: 3px solid var(--phase-day2);
  color: var(--phase-day2);
}
.callout--result {
  background: var(--phase-step2-light);
  border-left: 3px solid var(--phase-step2);
  color: var(--phase-step2-text);
}


/* ── Feedback button ──────────────────────────────────────────────────────────── */
.feedback {
  margin-block-start: 2rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--border);
}
.feedback--sidebar  { margin-block-start: 1.5rem; padding-block-start: 0; border: 0; }
.feedback--footer   { margin: 1rem auto; max-width: var(--content-max); }

.feedback__button {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1.125rem;
  border: 1px solid var(--phase-step2);
  border-radius: 20px;
  background: var(--surface);
  color: var(--phase-step2);
  font-family: var(--font-body); font-size: .875rem; font-weight: 600;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.feedback__button:hover  { background: var(--phase-step2); color: #fff; }
.feedback__button:focus-visible { outline: 2px solid var(--phase-step2); outline-offset: 2px; }
.feedback__icon svg { width: 1rem; height: 1rem; }

/* In form mode the button is a <button>, which does not inherit the page font. */
button.feedback__button { cursor: pointer; }

/* ── Feedback dialog (form mode) ───────────────────────────────────────────── */
.feedback__dialog {
  width: min(28rem, calc(100vw - 2rem));
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: inherit;
  font-family: var(--font-body);
}
.feedback__dialog::backdrop { background: rgb(0 0 0 / .45); }

.feedback__heading {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.feedback__field-label {
  display: block;
  margin-block: .75rem .25rem;
  font-size: .8125rem;
  font-weight: 600;
}

.feedback__select,
.feedback__textarea,
.feedback__input {
  width: 100%;
  box-sizing: border-box;
  padding: .5rem .625rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: inherit;
  font-family: inherit;
  font-size: .875rem;
}
.feedback__textarea { min-height: 6rem; resize: vertical; }

.feedback__select:focus-visible,
.feedback__textarea:focus-visible,
.feedback__input:focus-visible {
  outline: 2px solid var(--phase-step2);
  outline-offset: 1px;
}

.feedback__status {
  min-height: 1.25rem;
  margin: .75rem 0 0;
  font-size: .8125rem;
}
.feedback__status[data-kind="ok"]    { color: var(--phase-step2); }
.feedback__status[data-kind="error"] { color: #b91c1c; }

.feedback__actions {
  display: flex;
  gap: .5rem;
  justify-content: flex-end;
  margin-block-start: 1rem;
}
.feedback__actions button {
  padding: .5rem 1.125rem;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
.feedback__send {
  border: 1px solid var(--phase-step2);
  background: var(--phase-step2);
  color: #fff;
}
.feedback__send[disabled] { opacity: .6; cursor: default; }
.feedback__cancel {
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
}
.feedback__actions button:focus-visible {
  outline: 2px solid var(--phase-step2);
  outline-offset: 2px;
}


/* ── Pre-GA markings ─────────────────────────────────────────────────────────
   Emitted only when the build sets `draft` in its config. The watermark tile
   itself is a generated data URI, supplied as --draft-watermark in the page's
   own <style> block, so this file holds no text of its own. */

/* Tiled behind nothing and in front of everything: the content card and the
   sidebar are opaque, so a background on <body> would show only in the
   gutters. A transparent overlay reads across the whole page instead, and
   pointer-events:none keeps every link and control underneath it clickable.
   It sits below the image lightbox (1000) so an opened screenshot stays clean. */
.draft-watermark {
  position: fixed; inset: 0; z-index: 300;
  pointer-events: none;
  background-image: var(--draft-watermark);
  background-repeat: repeat;
}

/* Top-left badge, above the watermark and the sticky header. */
.draft-marker {
  position: absolute; top: 0; left: 0; z-index: 400;
}
.draft-badge {
  display: inline-block;
  background: #D0021B; color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 2px 7px;
  border-bottom-right-radius: 4px;
}

/* Footer restatement, under the copyright line. */
.footer-draft {
  color: #FF8A8A; font-weight: 700; letter-spacing: .04em;
}
