/* Fingerprint — the page's styles on the morgunov.tech design system v1. index.html loads the
   layer before this file: fonts.css, tokens.css (--v4-*), base.css and components.css from
   https://s.morgunov.tech/ds/v1/. The chrome is the family's and is not styled here: the bar
   (.v4-bar) with the service mark and the language and theme menus, the buttons (.v4-btn), the
   footer (.v4-foot), the skip link. This file lays out the walk and its blocks. Themes switch on
   data-theme on <html> (light, dark, high-contrast; "auto" is resolved by src/theme-init.js and
   src/chrome.js). The DS rules hold here: no rounded corners, no shadows, no gradients, no emoji
   in the chrome, nothing heavier than 600 (IBM Plex ships 400/500/600), nothing set under 12px.
   The light values stand in as fallbacks for the page's own blocks.
   No CSS framework, no build step. */
:root{
  --bg:var(--v4-bg,#edeae5); --card:var(--v4-paper,#f5f2ed); --text:var(--v4-fg,#14110d);
  --muted:var(--v4-muted,#5a554c); --dim:var(--v4-dim,#6c6759);
  --border:var(--v4-line,#c9c5bd); --border-subtle:var(--v4-line-soft,#d8d4cc);
  --accent:var(--v4-orange,#d9531e); --accent-text:var(--v4-orange-text,#b03e10); --on-accent:var(--v4-on-accent,#14110d);
  --font-mono:var(--v4-mono,"IBM Plex Mono",ui-monospace,"SF Mono",Menlo,monospace);
  --label-size:var(--v4-label-size,12px); --label-tracking:var(--v4-label-tracking,0.1em); --label-weight:var(--v4-label-weight,500);
  /* Status colours: the design system has no semantic palette yet. Page-local, the same values
     as the TofsDevOps status page, 4.9:1 or better on --v4-bg and --v4-paper in every theme.
     A status is a colour of text and borders, never a fill. */
  --success:#27703f; --warning:#8a5a00; --danger:#b3261e;
}
[data-theme="dark"]{--success:#6cc08a;--warning:#e2a93b;--danger:#ff7a6e}
[data-theme="high-contrast"]{--success:#7dffb0;--warning:#ffe08a;--danger:#ff8a80}
@media (prefers-color-scheme: dark){
  [data-theme="auto"]{--success:#6cc08a;--warning:#e2a93b;--danger:#ff7a6e}
}

/* === Base. The body is the family's (base.css: IBM Plex Sans 14px/1.55), so the bar, the menus
   and the footer measure exactly as on s.morgunov.tech; the page's reading size is set on its own
   content. The colours and the font are repeated so the page reads without the DS origin. === */
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--text);
     font-family:var(--v4-sans,"IBM Plex Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif)}
main{font-size:15px;line-height:1.6;letter-spacing:-0.005em}
[data-theme="high-contrast"] main{font-size:16px}
/* The family shell (.v4-root, up to 1280px) is one reading column here: 712px of text plus the
   shell's own side padding. The bar and the footer span it, as on every page of the family. */
.v4-root{max-width:824px}
/* Links and code inside the page's own content; the chrome's links are components.css's. */
:where(main) a{color:var(--text);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;text-decoration-color:var(--border);transition:color .15s ease,text-decoration-color .15s ease}
:where(main) a:hover,:where(main) a:focus-visible{color:var(--accent-text);text-decoration-color:var(--accent-text)}
code{font-family:var(--font-mono);font-size:0.92em;background:var(--bg);border:1px solid var(--border-subtle);padding:1px 5px;word-break:break-all}
.small{color:var(--muted);font-size:14px}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* === Buttons: .v4-btn and .v4-btn-primary from components.css; only the page's own states here === */
.btn--flash-ok,.btn--flash-ok:hover{background:transparent!important;border-color:var(--success)!important;color:var(--success)!important}
.btn--flash-error,.btn--flash-error:hover{background:transparent!important;border-color:var(--warning)!important;color:var(--warning)!important}

/* === Blocks === */
.block{background:var(--card);border:1px solid var(--border);padding:18px;margin:16px 0}
.intro-title{font-size:20px;font-weight:600;letter-spacing:-0.01em;margin:0 0 10px}
.intro-content--rich .fp-section{margin:0;padding:0;color:var(--text)}
.intro-content--rich .fp-section p{margin:6px 0;line-height:1.6;color:var(--text)}
.intro-content--rich .fp-section ul{margin:6px 0 0 18px;padding:0;color:var(--text)}
.intro-content--rich .fp-section li{margin:4px 0;line-height:1.55}
.intro-more{cursor:pointer;color:var(--accent-text);font-weight:500;margin:8px 0;list-style:none;display:inline-flex;align-items:center;gap:8px}
.intro-more::-webkit-details-marker{display:none}
.intro-more::after{content:'';width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .15s ease}
details[open]>.intro-more::after{transform:translateY(1px) rotate(225deg)}
.section-heading{font-size:22px;font-weight:600;letter-spacing:-0.015em;margin:0 0 16px;color:var(--text)}

/* === Steps === */
/* While the walk is the skeleton it holds a screen's height: the six steps are about 5 000 px, and
   the blocks under them (the raw data, the note, the footer) were painted on the first screen and
   then pushed off it, a 0.10 layout shift on every load (measured 2026-11-27). */
#walk:has(> .step--skeleton){min-height:100vh}
.step{background:var(--card);border:1px solid var(--border);padding:24px;margin:20px 0;position:relative}
.step-head{margin-bottom:12px}
.step-num{font-family:var(--font-mono);font-size:var(--label-size);font-weight:var(--label-weight);letter-spacing:var(--label-tracking);text-transform:uppercase;color:var(--muted);margin-bottom:6px}
.step-title{font-size:22px;font-weight:600;letter-spacing:-0.015em;line-height:1.25;margin:0 0 4px}
.step-subtitle{font-size:15px;color:var(--muted);margin:0}
.step-lead{font-size:15px;line-height:1.6;margin:0 0 12px}
.step-who{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0 16px}
.step-who-label{font-size:var(--label-size);font-weight:var(--label-weight);text-transform:uppercase;letter-spacing:var(--label-tracking);color:var(--dim);margin-right:4px}
.party{display:inline-flex;flex-direction:column;gap:1px;padding:6px 12px;background:var(--bg);border:1px solid var(--border-subtle);font-size:14px;line-height:1.3}
.party b{font-weight:600}
.party-note{font-size:12px;color:var(--muted)}
.data-group{border:1px solid var(--border-subtle);padding:12px 16px;margin:12px 0;min-width:0;overflow:hidden}
.data-group h3{font-size:var(--label-size);font-weight:var(--label-weight);color:var(--muted);text-transform:uppercase;letter-spacing:var(--label-tracking);margin:0 0 8px;padding-bottom:8px;border-bottom:1px solid var(--border-subtle)}
.data-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:6px 0;font-size:14px;border-bottom:1px solid var(--border-subtle);min-width:0}
.data-row:last-child{border-bottom:none}
.data-row .data-label{flex-shrink:0;color:var(--muted);font-size:13px}
.data-row .data-value{font-weight:500;color:var(--text);text-align:right;min-width:0;overflow-wrap:anywhere}
.data-row code{display:inline-block;max-width:100%}
.data-row--status{flex-wrap:wrap;align-items:center;gap:8px}
.status-badge,.tracker-badge{display:inline-flex;align-items:center;padding:2px 8px;border:1px solid currentColor;font-family:var(--font-mono);font-size:var(--label-size);font-weight:var(--label-weight);letter-spacing:.08em;text-transform:uppercase;line-height:1.5;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.status-badge--safe,.tracker-badge--blocked{color:var(--success)}
.status-badge--warning{color:var(--warning)}
.status-badge--danger,.tracker-badge--open{color:var(--danger)}
.stat-share{display:block;margin-top:2px;color:var(--muted);font-size:12px;white-space:nowrap;font-weight:400}
.group-note{font-size:13px;color:var(--muted);margin:8px 0 0;line-height:1.5}
.step-check{margin:12px 0;padding:14px 16px;background:var(--bg);border:1px dashed var(--border)}
.step-check-note{font-size:13px;color:var(--muted);line-height:1.5;margin:10px 0 0}
.step-expand{margin-top:10px;border:1px solid var(--border-subtle)}
.step-expand summary{cursor:pointer;padding:10px 14px;font-weight:500;font-size:14px;list-style:none;background:var(--bg);color:var(--text);display:flex;align-items:center;gap:10px}
.step-expand summary::-webkit-details-marker{display:none}
.step-expand summary::before{content:'+';font-family:var(--font-mono);font-size:15px;line-height:1;width:12px;color:var(--dim);flex-shrink:0}
.step-expand[open] summary::before{content:'−'}
.step-expand-body{padding:12px 14px;font-size:14px;line-height:1.7;margin:0}
.step-action{margin-top:14px;padding:12px 16px;border-left:2px solid var(--success)}
.step-action b{display:block;font-size:var(--label-size);font-weight:var(--label-weight);text-transform:uppercase;letter-spacing:var(--label-tracking);color:var(--success);margin-bottom:4px}
.step-action p{margin:0;font-size:14px;line-height:1.6}

/* === The bait check === */
.tracker-row{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--border-subtle);font-size:14px}
.tracker-row:last-of-type{border-bottom:none}
.tracker-badge{flex-shrink:0;min-width:120px;justify-content:center}
.tracker-name{min-width:0}
.tracker-verdict{margin:10px 0 0;padding:10px 12px;background:var(--bg);border:1px solid var(--border-subtle);font-size:14px;line-height:1.5}

/* === The sum === */
.step--summary{border:2px solid var(--accent)}
.summary-parties{margin:12px 0 0;padding-left:20px;font-size:15px;line-height:1.7}
.summary-parties li{margin:4px 0}
.summary-pending{color:var(--muted)}
.summary-checklist-title{font-size:16px;font-weight:600;margin:20px 0 8px}
.summary-checklist{margin:0;padding-left:22px;font-size:14px;line-height:1.6}
.summary-checklist li{margin:8px 0}
.summary-checklist b{display:block;font-size:14px;font-weight:600}
.summary-actions{display:flex;gap:12px;margin-top:20px;flex-wrap:wrap}

/* === Loading: a flat block that pulses, no gradient === */
@keyframes fp-pulse{0%,100%{opacity:1}50%{opacity:.35}}
.skeleton{background:var(--border-subtle);animation:fp-pulse 1.6s ease-in-out infinite;height:1em;margin:6px 0}
.skeleton-title{height:28px;width:60%;margin-bottom:10px}
.skeleton-line{height:14px;width:80%;margin:8px 0}

/* === Details === */
.details-summary{cursor:pointer;user-select:none;display:flex;align-items:center;padding:8px 0;margin:0;list-style:none}
.details-summary::-webkit-details-marker{display:none}
.details-summary svg{vertical-align:middle;margin-left:8px;transition:transform .2s;flex-shrink:0}
#detailsAccordion[open] .details-summary svg{transform:rotate(180deg)}
.details-body .data-group{margin:12px 0}

/* === The note under the walk. The footer itself is the family's .v4-foot and carries nothing
   of this page's own: name · year · the build mark, and the privacy line. === */
.page-note{margin:24px 0 0;font-size:13px;line-height:1.5;color:var(--muted)}
.page-note+.page-note{margin-top:6px}

/* === Small screens === */
@media (max-width:720px){
  .block,.step{padding:16px}
  .step-title{font-size:20px}
}
@media (max-width:520px){
  .step-check .v4-btn,.summary-actions .v4-btn{width:100%;min-height:44px}
  .data-row{flex-direction:column;gap:2px}
  .data-row .data-value{text-align:left}
  .tracker-row{flex-direction:column;align-items:flex-start;gap:6px}
  .summary-actions{flex-direction:column}
}

/* === Print (tokens.css pins the paper palette) === */
@media print{
  body{background:#fff!important;color:#000!important;font-size:13px}
  .v4-root{max-width:100%;padding:0;margin:0}
  .block,.step{border:1px solid #bbb;page-break-inside:avoid}
  .v4-btn,.v4-bar-right,.summary-actions,.step-check,.skeleton,.skip-link{display:none!important}
  .step-expand{display:block}
  .step-expand summary{list-style:none;font-weight:600}
  .step-expand summary::before{content:none}
  .step-expand[open]>summary~*,.step-expand>.step-expand-body{display:block}
  .data-row{flex-direction:row!important}
  .data-row .data-value{text-align:right!important}
}

/* === Reduced motion (the DS layer's block, repeated last for cascade safety) === */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{animation-duration:0.001ms!important;animation-iteration-count:1!important;transition-duration:0.001ms!important}
}
