/* Geenslop theme + signature: the editor's red pen. Load before kit.css for tokens, after for components. */
@font-face { font-family: "Literata"; src: url("../fonts/literata-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --zs-bg: #f6f3ee;
  --zs-surface: #fffefb;
  --zs-surface-alt: #ece7de;
  --zs-ink: #1d1b18;
  --zs-muted: #5d5850;
  --zs-line: #ddd5c8;
  --zs-brand: #1d1b18;
  --zs-brand-deep: #12110f;
  --zs-on-brand: #f6f3ee;
  --zs-accent: #b52e17;        /* corrector red: CTA and correction marks */
  --zs-accent-hover: #93240f;
  --zs-accent-ink: #ffffff;
  --zs-highlight: #f3dd6d;     /* marker yellow: status only */
  --zs-highlight-ink: #1d1b18;
  --zs-font-display: "Literata", Georgia, serif;
  --zs-font-body: "Source Sans 3", system-ui, sans-serif;
  --zs-display-weight: 700;
  --zs-display-tracking: -.015em;
  --zs-radius: 3px;
  --zs-radius-sm: 2px;
  --zs-radius-btn: 3px;
  --zs-wrap: 66rem;
}

/* Scan form */
.gs-form { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; max-width: 40rem; }
.gs-form input[type=text] { flex: 1 1 18rem; font: inherit; font-size: 1.1rem; padding: .75rem .9rem; border: 2px solid var(--zs-ink); border-radius: var(--zs-radius); background: var(--zs-surface); color: var(--zs-ink); min-height: 3.1rem; }
.gs-form input:focus-visible { outline: 3px solid var(--zs-accent); outline-offset: 2px; }
.gs-error { color: var(--zs-accent); font-weight: 600; margin: .6rem 0 0; }
.gs-hero { padding: clamp(3rem, 7vw, 6rem) 0 3rem; border-bottom: 1px solid var(--zs-line); }
.gs-hero h1 { max-width: 16ch; }
.gs-hero p.lead { font-size: 1.2rem; max-width: 36rem; margin-top: 1rem; color: var(--zs-muted); }
.gs-note { font-size: .9rem; color: var(--zs-muted); margin-top: .8rem; }

/* Signature: correction marks. A finding is shown as quoted text with a red wavy underline and a margin note. */
.gs-mark { text-decoration: underline wavy var(--zs-accent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; font-style: normal; }
.gs-findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.gs-finding { display: grid; gap: .3rem 2rem; padding: 1.1rem 0; border-top: 1px solid var(--zs-line); }
.gs-finding:last-child { border-bottom: 1px solid var(--zs-line); }
.gs-finding h3 { font-size: 1.15rem; }
.gs-finding p { margin: 0; }
.gs-finding .gs-fix { color: var(--zs-muted); }
.gs-finding .gs-fix::before { content: "Doe: "; font-weight: 700; color: var(--zs-accent); }
.gs-finding blockquote { margin: .3rem 0 0; font-size: .95rem; }
.gs-level { font-size: .8rem; font-weight: 700; color: var(--zs-accent); }
.gs-level--warn { color: var(--zs-muted); }
@media (min-width: 52rem) { .gs-finding { grid-template-columns: 14rem 1fr; } .gs-finding > :first-child { grid-row: span 3; } }

/* Score: one big number, verdict beside it. */
.gs-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; margin: 1.5rem 0 2rem; }
.gs-score strong { font: 700 clamp(4rem, 9vw, 6.5rem)/0.9 var(--zs-font-display); color: var(--zs-ink); }
.gs-score strong small { font-size: .3em; color: var(--zs-muted); font-weight: 400; }
.gs-score p { margin: 0; font: 700 1.5rem/1.2 var(--zs-font-display); max-width: 20ch; }
.gs-counts { display: flex; gap: 2rem; margin: 0 0 2rem; }
.gs-counts dt { font-size: .9rem; color: var(--zs-muted); }
.gs-counts dd { margin: 0; font: 700 1.6rem/1 var(--zs-font-display); }
.gs-gate { background: var(--zs-surface); border: 2px solid var(--zs-ink); padding: 1.4rem; margin-top: 2rem; max-width: 40rem; }
.gs-gate label.check { display: flex; gap: .5rem; align-items: flex-start; margin-top: .8rem; font-size: .95rem; }
.gs-gate input[type=email] { flex: 1 1 16rem; font: inherit; padding: .7rem .8rem; border: 1px solid var(--zs-ink); border-radius: var(--zs-radius); min-height: 2.9rem; }
.gs-wait { display: flex; gap: .8rem; align-items: center; }
.gs-dots i { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--zs-accent); animation: gs-blink 1.2s infinite; }
.gs-dots i:nth-child(2) { animation-delay: .2s; } .gs-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes gs-blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .gs-dots i { animation: none; } }
.gs-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.gs-steps li { counter-increment: s; display: grid; grid-template-columns: 2.5rem 1fr; gap: .8rem; }
.gs-steps li::before { content: counter(s); font: 700 2rem/1 var(--zs-font-display); color: var(--zs-accent); }
.gs-steps { max-width: 40rem; }

/* Fix prompt in the report: one selectable block, copy button added by script. */
.gs-prompt__text { width: 100%; min-height: 16rem; padding: .9rem 1rem; font: .92rem/1.5 var(--zs-font-body); color: var(--zs-ink); background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: var(--zs-radius-sm, 6px); resize: vertical; white-space: pre-wrap; }

/* ================= v2 (Terry 19-11, design-feedback rules 1-8): photos, own pictograms, warmth, dark mode ================= */
:root { --gs-picto: #1d1b18; --gs-picto-ink: #f6f3ee; --gs-note: #fff6c9; --gs-note-ink: #2b2118; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --zs-bg: #171512; --zs-surface: #211e1a; --zs-surface-alt: #2a2621; --zs-ink: #f1ece3; --zs-muted: #bdb5a8; --zs-line: #3e3831;
    --zs-brand: #0f0e0c; --zs-brand-deep: #0a0908; --zs-brand-text: #f1ece3; --zs-on-brand: #f1ece3;
    --zs-accent: #f07a5f; --zs-accent-hover: #f59a85; --zs-accent-ink: #1c0904;
    --gs-picto: #f1ece3; --gs-picto-ink: #171512; --gs-note: #3a331c; --gs-note-ink: #f6eccb;
  }
}
:root[data-theme="dark"] {
  --zs-bg: #171512; --zs-surface: #211e1a; --zs-surface-alt: #2a2621; --zs-ink: #f1ece3; --zs-muted: #bdb5a8; --zs-line: #3e3831;
  --zs-brand: #0f0e0c; --zs-brand-deep: #0a0908; --zs-brand-text: #f1ece3; --zs-on-brand: #f1ece3;
  --zs-accent: #f07a5f; --zs-accent-hover: #f59a85; --zs-accent-ink: #1c0904;
  --gs-picto: #f1ece3; --gs-picto-ink: #171512; --gs-note: #3a331c; --gs-note-ink: #f6eccb;
}
body { background: var(--zs-bg); color: var(--zs-ink); }

/* Pictogram tile */
.gs-picto { --picto-bg: var(--gs-picto); display: inline-grid; place-items: center; flex: none; width: 3rem; height: 3rem; background: var(--picto-bg); color: var(--gs-picto-ink); border-radius: 10px; }
.gs-picto svg { width: 76%; height: 76%; }
.gs-picto--sm { width: 2.1rem; height: 2.1rem; border-radius: 8px; }
.gs-picto--red { --picto-bg: var(--zs-accent); color: var(--zs-accent-ink); }

/* Photo hero (home): the scan form sits on the photo. */
.gs-hero--photo { padding: 0; border: 0; min-height: clamp(34rem, 78vh, 44rem); }
.gs-hero--photo .zs-hero__body { padding-block: 4rem 2.5rem; }
.gs-hero--photo p.lead { color: #fff; opacity: .95; }
.gs-hero--photo .gs-note { color: #f1ece3; }
.gs-hero--photo .gs-note a { color: #fff; }
.gs-hero--photo .gs-form input[type=text] { border-color: #fff; background: #fffefb; color: #1d1b18; }
.gs-hero--photo .gs-error { color: #ffd2c7; }
.gs-hero__mark { text-decoration: underline wavy #f07a5f; text-decoration-thickness: 2px; text-underline-offset: 8px; text-decoration-skip-ink: none; }
.zs-hero__credit a { color: inherit; }

/* Page head with photo strip (scan, report, privacy, photo credits) */
.gs-pagehead { position: relative; isolation: isolate; color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; }
.gs-pagehead > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.gs-pagehead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(15 14 12 / .9), rgb(15 14 12 / .62)); }
.gs-pagehead h1 { color: #fff; font-size: clamp(1.8rem, 2vw + 1.2rem, 2.6rem); overflow-wrap: anywhere; }
.gs-pagehead a, .gs-pagehead .zs-disclosure { color: #f1ece3; }
.gs-pagehead .zs-hero__credit { color: #fff; }

/* Steps with pictograms */
.gs-steps--picto li { grid-template-columns: 3rem 1fr; gap: 1rem; }
.gs-steps--picto li::before { display: none; }
.gs-steps--picto h3 { font-size: 1.2rem; }
.gs-steps--picto p { margin: .25rem 0 0; }

/* Margin note: the example finding as a yellow correction slip */
.gs-slip { align-self: start; margin: 0; background: var(--gs-note); color: var(--gs-note-ink); padding: 1.3rem 1.4rem 1.2rem; border-left: 4px solid var(--zs-accent); box-shadow: 0 10px 24px -14px rgb(0 0 0 / .35); transform: rotate(-.6deg); }
.gs-slip figcaption { display: flex; align-items: center; gap: .6rem; font-weight: 700; margin-bottom: .8rem; }
.gs-slip p { color: inherit; }
.gs-slip .gs-slip__fix { margin: .5rem 0 0; font-size: .95rem; }
.gs-slip .gs-slip__fix strong { color: var(--zs-accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gs-slip .gs-slip__fix strong { color: #ff9a82; } }

/* Two photo panels: what we look at in text and design */
.gs-panels { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
@media (min-width: 52rem) { .gs-panels { grid-template-columns: 1fr 1fr; } }
.gs-panel { background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); overflow: hidden; display: flex; flex-direction: column; }
.gs-panel figure { margin: 0; position: relative; }
.gs-panel img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gs-panel figcaption { position: absolute; right: .5rem; bottom: .35rem; font-size: .72rem; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .8); }
.gs-panel figcaption a { color: inherit; }
.gs-panel__body { padding: 1.25rem 1.4rem 1.4rem; }
.gs-panel__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.gs-panel__head h3 { font-size: 1.35rem; margin: 0; }
.gs-panel ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.gs-panel li { margin: .3rem 0; }

/* Who it is for */
.gs-who { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.25rem 2.5rem; }
@media (min-width: 46rem) { .gs-who { grid-template-columns: 1fr 1fr; } }
.gs-who li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; }
.gs-who h3 { font-size: 1.2rem; }
.gs-who p { margin: .25rem 0 0; }

/* Facts with pictograms */
.gs-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.gs-facts li { display: flex; gap: .9rem; align-items: center; }
.gs-facts strong { display: block; font: 700 1.6rem/1.1 var(--zs-font-display); color: var(--zs-brand-text, var(--zs-ink)); }

/* Findings and counts with pictograms */
.gs-level { display: inline-flex; align-items: center; gap: .35rem; }
.gs-level svg { width: 1.1rem; height: 1.1rem; }
.gs-counts > div { display: flex; gap: .7rem; align-items: center; }
.gs-gate__head { display: flex; gap: .8rem; align-items: center; }
.gs-gate, .gs-gate input[type=email] { background: var(--zs-surface); color: var(--zs-ink); border-color: var(--zs-ink); }

/* Footer imprint */
.gs-imprint { font-size: .9rem; color: var(--zs-on-brand); opacity: .85; margin: 1rem 0 0; }
.gs-credits { list-style: none; padding: 0; display: grid; gap: 1.25rem; }
.gs-credits li { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; align-items: start; }
.gs-credits img { width: 8rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--zs-radius); }
@media (min-width: 72rem) { .gs-who { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gs-facts { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--zs-line); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem 2rem; }
.gs-pagehead { padding-bottom: 2.75rem; }
.gs-pagehead + .zs-section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.gs-score p { max-width: 24ch; }
