/* site.css - shared additions for the built site (menu, account panel, save card).
   House tokens with fallbacks so it sits on both the landing (--acc) and the
   tool pages (--pop). Nothing here restyles the approved pages. */
:root {
  --mfp-pop: var(--pop, var(--acc, #3355ff));
  --mfp-pop-ink: var(--pop-ink, var(--acc-ink, #ffffff));
  --mfp-bg: var(--bg, #eef3ff);
  --mfp-card: var(--card, #ffffff);
  --mfp-ink: var(--ink, #16204a);
  --mfp-soft: var(--soft, #4d5888);
  --mfp-line: var(--line, #d5ddf5);
  --mfp-tint: var(--tint, #e3e9ff);
  --mfp-mint: var(--mint, #19b98a);
  --mfp-coral: var(--coral, #ff6b5a);
  --mfp-display: var(--display, "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif);
  --mfp-body: var(--body, "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif);
}

/* ---- the shared menu row (sits under the top bar like the colours row) ---- */
.sitemenu { background: var(--mfp-bg); border-bottom: 2px solid var(--mfp-line); }
.sm-in { max-width: 36rem; margin: 0 auto; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.sm-g { display: flex; flex-direction: column; gap: 2px; }
.sm-h { margin: 0 0 4px; font-family: var(--mfp-display); font-weight: 800; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--mfp-soft); }
.sm-g a { display: block; padding: 8px 12px; border-radius: 12px; color: var(--mfp-ink);
  text-decoration: none; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.sm-g a:hover { background: var(--mfp-tint); }
.sm-g a[aria-current="page"] { background: var(--mfp-tint); box-shadow: inset 4px 0 0 var(--mfp-pop); }
.sm-acct { border-top: 2px solid var(--mfp-line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.sm-acct .who { font-weight: 700; color: var(--mfp-soft); }
.sm-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Small screens: keep the top bar on one line, with no sideways scroll.
   The shared Menu button makes one more round button in the bar than the
   approved pages had, so on a phone the parts are sized a little tighter
   here. The colours, the parts and the 44px tap target of the round buttons
   are not changed. */
@media (max-width: 459px) {
  .bar-in { gap: 4px; }
  .bar-in .brand { font-size: .84rem; gap: 5px; }
  .bar-in .brand .dot { width: 20px; height: 20px; }
  .bar-in .brand .dot svg { width: 15px; height: 15px; }
  .bar-in .sparks { gap: 4px; padding: 4px 8px 4px 6px; }
  .bar-in .sparks svg { width: 18px; height: 18px; }
  .bar-in .iconbtn { width: 38px; height: 38px; flex: 0 0 auto; }
}

/* The very narrowest phones (320px): the bar's parts shrink again, so the
   line still fits and there is no sideways scroll. */
@media (max-width: 359px) {
  .bar-in { gap: 3px; }
  .bar-in .brand { font-size: .72rem; gap: 4px; }
  .bar-in .brand .dot { width: 17px; height: 17px; }
  .bar-in .brand .dot svg { width: 13px; height: 13px; }
  .bar-in .sparks { gap: 3px; padding: 3px 6px 3px 5px; font-size: .8rem; }
  .bar-in .sparks svg { width: 15px; height: 15px; }
  .bar-in .iconbtn { width: 32px; height: 32px; }
}

/* The landing page has its own top bar (welcome/landing.css). The shared
   Menu button makes one more round button in it, so the parts are sized a
   little tighter on a narrow phone there as well. */
@media (max-width: 459px) {
  .top-in { gap: 6px; }
  .top-in .brand { font-size: .95rem; gap: 6px; }
  .top-in .brand .dot { width: 24px; height: 24px; }
  .top-in .iconbtn { width: 38px; height: 38px; flex: 0 0 auto; }
  .top-in .iconbtn svg { width: 20px; height: 20px; }
  .top-in .btn.small { padding: 6px 12px; font-size: .9rem; }
}

/* ---- account panel (house slide-in panel + shade) ---- */
.mfp-shade { position: fixed; inset: 0; background: var(--shade, rgba(16, 22, 60, .45));
  opacity: 0; transition: opacity .2s; z-index: 40; }
.mfp-shade.on { opacity: 1; }
.mfp-spanel { position: fixed; top: 0; right: 0; bottom: 0; width: min(24rem, 100vw);
  background: var(--mfp-card); border-left: 2px solid var(--mfp-line); z-index: 41;
  transform: translateX(102%); transition: transform .22s; display: flex; flex-direction: column; }
.mfp-spanel.on { transform: none; }
.mfp-spanel-head { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 2px solid var(--mfp-line); }
.mfp-spanel-head h2 { font-family: var(--mfp-display); font-weight: 800; font-size: 1.2rem;
  margin: 0; color: var(--mfp-ink); }
.mfp-spanel-body { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.mfp-x { background: none; border: 0; cursor: pointer; color: var(--mfp-ink);
  min-width: 44px; min-height: 44px; display: grid; place-items: center; }

/* forms in the house shape */
.mfp-form { display: flex; flex-direction: column; gap: 10px; }
.mfp-form h3 { margin: 0; font-family: var(--mfp-display); font-weight: 800; font-size: 1.02rem; }
.mfp-lab { font-weight: 700; color: var(--mfp-soft); }
.mfp-in { font: inherit; width: 100%; border-radius: 14px; border: 2px solid var(--mfp-line);
  background: var(--mfp-bg); color: var(--mfp-ink); padding: 10px; min-height: 44px; }
.mfp-hint { margin: 0; font-size: .85rem; color: var(--mfp-soft); }
.mfp-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.mfp-opt { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--mfp-line);
  background: var(--mfp-card); color: var(--mfp-ink); border-radius: 999px; padding: 8px 14px;
  cursor: pointer; font: inherit; font-weight: 700; min-height: 44px; }
.mfp-opt[aria-pressed="true"] { background: var(--mfp-pop); color: var(--mfp-pop-ink);
  border-color: var(--mfp-pop); }
.mfp-note { background: var(--mfp-tint); border-radius: 14px; padding: 10px 12px; margin: 0; }
.mfp-warn { background: var(--mfp-card); border: 2px solid var(--mfp-coral); border-radius: 14px;
  padding: 10px 12px; margin: 0; }
.mfp-status { margin: 0; font-weight: 700; color: var(--mfp-soft); min-height: 1.5em; }
.mfp-status.ok { color: var(--mfp-mint); }
.mfp-status.bad { color: var(--mfp-coral); }

/* ---- the Keep your answers card on the First spark ---- */
.mfp-savecard { background: var(--mfp-card); border: 2px solid var(--mfp-line);
  border-radius: 26px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.mfp-savecard h2 { font-family: var(--mfp-display); font-weight: 800; font-size: 1.45rem;
  margin: 0; color: var(--mfp-ink); }
.mfp-savecard p { margin: 0; color: var(--mfp-soft); }

/* landing: the card link lists */
.part-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.part-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px;
  border: 2px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; }
.part-links a:hover { background: var(--tint); }

/* the published pages have no browser margin round them */
body { margin: 0; }

/* Childline and Privacy at the bottom of every page (Inese, 24 Nov 2026) */
.mfp-help { width: 100%; text-align: center; margin-top: 6px; }
.mfp-help p { margin: 0 auto; max-width: 36rem; }
.mfp-helplinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.mfp-helplinks a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mfp-ink); font-weight: 700; text-decoration: underline; }

/* the logo is a link home; My picture's own extra bits (Inese, 24 Nov 2026) */
a.brand { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.st-part a.btn { align-self: flex-start; }
.st-wrap > .hero { padding-top: 18px; }
body[data-page="picture"] .journey { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; row-gap: 12px; }
@media (min-width: 900px) { body[data-page="picture"] .journey { grid-template-columns: repeat(8, minmax(0, 1fr)) !important; } }
.journey .stop > i { display: block; font-style: normal; font-size: .85em; color: var(--mfp-soft); }
#mfpTold { display: contents; }
.mfp-savecard a.btn { text-decoration: none; }

/* the stages (Inese, 24 Nov 2026) */
.st-wrap { display: flex; flex-direction: column; gap: 18px; width: 100%; grid-column: 1 / -1; }
.st-list { display: grid; gap: 18px; }
.st-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.st-tag { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: .9rem; color: var(--mfp-soft); }
.st-part.done { border-color: var(--mfp-mint); }
.st-part a.btn, a.st-link, a.ql-level, .row a.btn { text-decoration: none; }
a.ql-level { color: inherit; }
a.st-link { display: inline-flex; align-items: center; }
.btn.st-go { background: var(--mfp-pop); color: var(--mfp-pop-ink); border-color: var(--mfp-pop); }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip { font: inherit; font-weight: 700; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--mfp-line); background: var(--mfp-card); color: var(--mfp-ink); cursor: pointer; }
.st-chip[aria-pressed="true"] { background: var(--mfp-mint); border-color: var(--mfp-mint); color: #062a1f; }
.st-fam { margin: 14px 0 6px; font-size: 1.05rem; }
.st-new { background: var(--mfp-pop); color: var(--mfp-pop-ink); border-radius: 999px; padding: 1px 8px; font-size: .8em; margin-left: 4px; }
.st-lab { font-weight: 700; }
.st-wrap textarea { font: inherit; width: 100%; border-radius: 14px; border: 2px solid var(--mfp-line); background: var(--mfp-bg); color: var(--mfp-ink); padding: 10px; }

/* foxes: one a page, a new pose each question (Inese, 24 Nov 2026) */
.hero { position: relative; }
.fox-av { display: block; align-self: flex-end; width: auto; height: auto; max-width: 104px; max-height: 170px; margin: -4px 4px -6px auto; pointer-events: none; user-select: none; animation: foxbob 4.5s ease-in-out infinite; }
@keyframes foxbob { 50% { translate: 0 -6px; } }
@media (max-width: 899px) {
  #ql-q .ql-qtext, #ql-subs .ql-qtext { position: relative; padding-right: 88px; min-height: 104px; }
  #ql-q .ql-qtext::after, #ql-subs .ql-qtext::after { content: ""; position: absolute; right: 0; top: 0; width: 78px; height: 104px; background: var(--qfox, url(/fox/fox3d-checks.webp)) center / contain no-repeat; animation: foxbob 4.5s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) { .fox-av, #ql-q .ql-qtext::after, #ql-subs .ql-qtext::after { animation: none !important; } }

/* signed out without noticing */
#mfpLost { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: var(--mfp-ink); color: var(--mfp-card); border-radius: 18px; padding: 12px 18px; font-weight: 700; }
/* the share pack: coloured sections (Inese, 24 Nov 2026) */
#mfpPrint { display: none; }
.pp-prev, #mfpPrint { -webkit-print-color-adjust: exact; print-color-adjust: exact; color: #16204a; font-family: "Atkinson Hyperlegible", "Segoe UI", sans-serif; line-height: 1.35; }
.pp-prev { background: #fff; border-radius: 18px; padding: 10px; }
.pp-h { background: #3355ff; color: #fff; border-radius: 14px; padding: 12px 16px; }
.pp-h h1 { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.5em; margin: 0; color: #fff; } .pp-h p { margin: 3px 0 0; color: #e8edff; } .pp-h .pp-k { color: #ffdc6e; font-weight: 700; } .pp-h .pp-n { color: #fff; }
.pp-s { --c: #4d5888; border-radius: 12px; border-top: 5px solid var(--c); background: #f3f5fc; padding: 9px 12px; margin-top: 9px; break-inside: avoid; }
.pp-s h2 { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.1em; margin: 0 0 5px; display: flex; align-items: center; gap: 8px; color: #16204a; }
.pp-s h2 i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-style: normal; font-size: .85em; }
.pp-help { --c: #e8b400; background: #fff6d6; } .pp-help h2 i { color: #2b2100; } .pp-good { --c: #149670; background: #e2f6ef; } .pp-jobs { --c: #3355ff; background: #eaeeff; } .pp-vals { --c: #c93a64; background: #fde8ee; } .pp-sub { --c: #0d7ba3; background: #e3f3f9; } .pp-plan { --c: #e65542; background: #ffe9e6; } .pp-q { --c: #4d5888; background: #eef0f8; }
.pp-s p { margin: 3px 0; max-width: none; } .pp-s ul { margin: 2px 0; padding-left: 18px; } .pp-s li { margin: 2px 0; }
.pp-rows { list-style: none; padding: 0 !important; } .pp-rows li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; border-bottom: 1px solid rgba(22,32,74,.12); padding: 2px 0; } .pp-rows small { display: block; color: #4d5888; } .pp-rows em { font-style: normal; font-weight: 700; white-space: nowrap; }
.pp-stars b { color: #d6dcf0; font-size: 1.05em; } .pp-stars b.on { color: #f5b400; } .pp-stars { white-space: nowrap; }
.pp-pills { display: flex; flex-wrap: wrap; gap: 5px; } .pp-pills span { background: #fff; border: 1.5px solid var(--c); border-radius: 999px; padding: 1px 9px; font-weight: 700; font-size: .92em; }
.pp-f { color: #4d5888; font-size: .85em; margin: 9px 0 0; }
@media print {
  body > *:not(#mfpPrint) { display: none !important; }
  body { background: #fff !important; padding: 0 !important; display: block !important; }
  #mfpPrint { display: block !important; background: #fff; font-size: 10pt; }
  #mfpPrint .pp-grid { columns: 2; column-gap: 9pt; } #mfpPrint .pp-s { margin: 0 0 8pt; display: inline-block; width: 100%; box-sizing: border-box; } #mfpPrint .pp-help { margin-top: 0; } #mfpPrint .pp-grid { margin-top: 9pt; }
  #mfpPrint p { max-width: none; } #mfpPrint .paper, #mfpPrint > div { border: 0; box-shadow: none; max-width: none; }
  @page { size: A4; margin: 11mm; }
}

/* AI automation risk, the same on every page (Inese, 24 Nov 2026) */
.aiBox { --rc: var(--mfp-line); border: 2px solid var(--mfp-line); border-left: 8px solid var(--rc); border-radius: 16px; background: color-mix(in srgb, var(--rc) 13%, var(--mfp-card)); padding: 10px 14px; margin: 8px 0; color: var(--mfp-ink); }
.aiBox b { display: flex; align-items: center; gap: 8px; font-weight: 800; } .aiBox b i { width: 14px; height: 14px; border-radius: 50%; background: var(--rc); flex: none; }
.aiBox p { margin: 4px 0 0; font-size: .95rem; } .aiBox summary { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; cursor: pointer; } .aiBox a { color: var(--mfp-pop); }
.aiBox.r-low { --rc: var(--mint, #19b98a); } .aiBox.r-med { --rc: var(--zing, #ffcf3a); } .aiBox.r-high { --rc: var(--coral, #ff6b5a); }

/* a job with its Save button at the end of a round (25 Nov) */
.said li:has(.st-keep) { align-items: center; }
