/* Design tokens and site chrome follow the letmetrythis Designvorlage v1.0
   (roalhelm/roalhelm.github.io, designvorlage/tokens.css). Status colors: fail = --danger, pass = --success, warn = --accent-text.
   Dark is the default; light is enabled with data-theme="light" on <html>. */
:root {
  --bg: #0b1120; --bg-deep: #070b16; --surface: #101a2c; --surface-strong: #15223a;
  --text: #e6edf7; --muted: #94a3b8; --line: #1e2d47;
  --primary: #22d3ee; --amber: #f5a524;
  --cyan-soft: rgba(34, 211, 238, .12); --cyan-glow: rgba(34, 211, 238, .35); --glow-blue: rgba(37, 99, 235, .12);
  --amber-soft: rgba(245, 165, 36, .14);
  --shadow: 0 20px 60px rgba(0, 0, 0, .35); --shadow-soft: 0 14px 32px rgba(0, 0, 0, .25);
  --header-bg: rgba(11, 17, 32, .8); --card-bg: rgba(16, 26, 44, .92);
  --button-bg: #22d3ee; --button-bg-hover: #67e8f9; --button-text: #04121a;
  --code-bg: #0a1424;
  --fail: #f87171; --fail-bg: rgba(248, 113, 113, .12);
  --warn: #f5a524; --warn-bg: rgba(245, 165, 36, .13);
  --pass: #4ade80; --pass-bg: rgba(74, 222, 128, .12);
  --info: #cbd5e1; --info-bg: rgba(148, 163, 184, .14);
  --radius: 20px; --radius-sm: 12px;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f8fb; --bg-deep: #e9f1f7; --surface: #ffffff; --surface-strong: #eef5f9;
  --text: #0f1b2d; --muted: #556275; --line: #d8e3ec;
  --primary: #0e7490; --amber: #b45309;
  --cyan-soft: rgba(8, 145, 178, .1); --cyan-glow: rgba(8, 145, 178, .25); --glow-blue: rgba(37, 99, 235, .06);
  --amber-soft: rgba(180, 83, 9, .1);
  --shadow: 0 20px 60px rgba(15, 27, 45, .08); --shadow-soft: 0 14px 32px rgba(15, 27, 45, .05);
  --header-bg: rgba(244, 248, 251, .85); --card-bg: rgba(255, 255, 255, .95);
  --button-bg: #0e7490; --button-bg-hover: #155e75; --button-text: #ffffff;
  --code-bg: #eef5f9;
  --fail: #b42318; --fail-bg: #fdecec;
  --warn: #92400e; --warn-bg: #fef3c7;
  --pass: #15803d; --pass-bg: #dcfce7;
  --info: #374151; --info-bg: #eef2f6;
  color-scheme: light;
}
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800; src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); }

* { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
#result, #find { scroll-margin-top: 96px; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text); line-height: 1.6;
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--cyan-soft), transparent 70%),
    radial-gradient(40rem 20rem at 10% 0%, var(--glow-blue), transparent 70%),
    linear-gradient(180deg, var(--bg-deep) 0, var(--bg) 40rem);
  background-color: var(--bg);
}
a { color: var(--primary); text-underline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.03em; margin: 0; }
h2 { font-size: 1.3rem; margin-bottom: .6rem; }
h3 { font-size: 1.08rem; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* Header (same as the blog) */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; padding: .85rem clamp(1rem, 4vw, 3rem); background: var(--header-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .75rem; margin-right: auto; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -0.03em; }
.brand img { width: 48px; height: 48px; filter: drop-shadow(0 0 10px var(--cyan-glow)); }
.main-nav { display: flex; align-items: center; gap: 1.2rem; }
.main-nav a { text-decoration: none; color: var(--muted); font-weight: 650; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.nav-toggle, .theme-toggle { border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 650; border-radius: 999px; cursor: pointer; }
.nav-toggle { display: none; padding: .55rem .9rem; }
.theme-toggle { width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; font-size: 1rem; line-height: 1; flex: none; }
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--primary); }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: .85rem 1.2rem; background: var(--button-bg); color: var(--button-text); font-weight: 750; text-decoration: none; }
.button:hover { background: var(--button-bg-hover); box-shadow: 0 0 24px var(--cyan-glow); }
.button-small { padding: .5rem .9rem; font-size: .9rem; }
.main-nav a.button-small { color: var(--button-text); }

/* Hero */
.hero { padding: 3.5rem 0 2rem; }
.eyebrow { margin: 0 0 .75rem; color: var(--primary); font-family: var(--mono); font-weight: 500; text-transform: lowercase; font-size: .88rem; }
.eyebrow::before { content: "> "; color: var(--amber); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; letter-spacing: -0.045em; margin-bottom: 1rem; }
.hl { color: var(--primary); }
.cursor { display: inline-block; width: .5em; height: .85em; margin-left: .08em; vertical-align: -.04em; background: var(--primary); box-shadow: 0 0 14px var(--cyan-glow); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } * { transition: none !important; } }
.lede { margin: 0; color: var(--muted); font-size: 1.15rem; max-width: 62ch; }

/* Steps and cards */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.1rem; }
.step, .card, .overview, .others { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.step { padding: 1.5rem; }
.step p { color: var(--muted); }
.step h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.24rem; }
.num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; background: var(--cyan-soft); color: var(--primary); font-family: var(--mono); font-size: .95rem; font-weight: 600; flex: none; }
.cmd { position: relative; margin: .75rem 0; }
pre { margin: 0; background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; overflow-x: auto; }
.cmd pre { padding-right: 76px; }
code { font: .84rem/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; }
.cmd .btn { position: absolute; top: 7px; right: 7px; }

.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: .92rem; font-weight: 700; padding: .6rem 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; text-decoration: none; transition: box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { border-color: var(--primary); }
.btn.primary, .btn[aria-pressed="true"] { background: var(--button-bg); color: var(--button-text); border-color: transparent; }
.btn.primary:hover { background: var(--button-bg-hover); box-shadow: 0 0 24px var(--cyan-glow); }
.btn.small { padding: .25rem .75rem; font-size: .78rem; font-family: var(--mono); font-weight: 500; background: var(--surface); }
.btn[aria-pressed="true"].small { background: var(--button-bg); }

.drop { border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 1.25rem; text-align: center; cursor: pointer; color: var(--muted); transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--primary); background: var(--cyan-soft); }
.drop p { margin: 0; }
.drop strong { color: var(--text); }
.label { display: block; margin: 1rem 0 .35rem; font-size: .88rem; color: var(--muted); font-family: var(--mono); }
textarea { width: 100%; font: .84rem/1.45 var(--mono); padding: .75rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--code-bg); color: var(--text); resize: vertical; }
textarea:focus { border-color: var(--primary); }
.row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.step .privacy { font-size: .85rem; margin: .9rem 0 0; }
.error { color: var(--fail); background: var(--fail-bg); border-radius: var(--radius-sm); padding: .7rem 1rem; margin: .9rem 0 0; }

/* Result */
#result { margin-top: 2rem; }
#result > h2 { margin: 2rem 0 .9rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem 1.5rem; align-items: center; padding: 1.5rem; }
.overall { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.overall.unhealthy { color: var(--fail); } .overall.attention { color: var(--warn); } .overall.healthy { color: var(--pass); }
.meta { margin: 0; color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.counts { display: flex; flex-wrap: wrap; gap: .5rem; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 6px; font-family: var(--mono); font-size: .74rem; font-weight: 600; white-space: nowrap; }
.badge.fail { color: var(--fail); background: var(--fail-bg); } .badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.pass { color: var(--pass); background: var(--pass-bg); } .badge.info, .badge.unknown, .badge.neutral { color: var(--info); background: var(--info-bg); }
.notice { background: var(--warn-bg); color: var(--warn); border-radius: var(--radius-sm); padding: .6rem 1rem; font-size: .9rem; margin: 0; grid-column: 1 / -1; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.card { margin-bottom: 1rem; padding: 1.35rem 1.5rem; border-left: 4px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.card:hover { box-shadow: 0 0 0 1px var(--cyan-soft), 0 12px 40px -14px var(--cyan-glow); }
.card.fail { border-left-color: var(--fail); } .card.warn { border-left-color: var(--warn); }
.card-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.card-head h3 { flex: 1 1 260px; }
.id { color: var(--primary); font: .76rem var(--mono); }
.detail { margin: 0 0 .7rem; color: var(--muted); }
.fix { border-top: 1px solid var(--line); padding-top: .9rem; margin-top: .9rem; }
.fix h4 { margin: 0 0 .4rem; font-size: 1rem; letter-spacing: -0.02em; }
.fix p { margin: .4rem 0; }
.fix .note { background: var(--warn-bg); color: var(--warn); border-radius: var(--radius-sm); padding: .6rem 1rem; font-size: .9rem; }
.fix ol { margin: .4rem 0; padding-left: 1.3rem; }
.fix-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .4rem; }
details { margin-top: .5rem; }
summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
summary:hover { color: var(--text); }
.others { padding: 1rem 1.5rem; margin-top: 1rem; }
.others summary { font-size: 1rem; color: var(--text); font-weight: 700; }
.line { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; padding: .6rem 0; border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; margin-top: .5rem; }
.line .t { flex: 1 1 240px; }
.line .d { flex: 1 1 100%; color: var(--muted); font-size: .88rem; }
.empty { background: var(--pass-bg); color: var(--pass); border-radius: var(--radius); padding: 1.1rem 1.5rem; font-weight: 700; }

/* Disclaimer and footer (footer same as the blog) */
.disclaimer { margin-top: 3rem; margin-bottom: 2rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--radius-sm); background: var(--amber-soft); color: var(--muted); font-size: .9rem; }
.disclaimer p { margin: 0; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 2rem clamp(1rem, 4vw, 3rem); color: var(--muted); border-top: 1px solid var(--line); }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--text); }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.footer-brand img { width: 32px; height: 32px; }
.footer-tagline { font-family: var(--mono); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--primary); }

@media (max-width: 820px) {
  .main-nav { display: none; position: absolute; top: 76px; right: 1rem; left: 1rem; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1rem; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .hero { padding-top: 2.25rem; }
  .steps { grid-template-columns: 1fr; }
  .site-footer { justify-content: center; text-align: center; }
}
@media (max-width: 420px) {
  .brand span { font-size: .95rem; }
  .brand img { width: 40px; height: 40px; }
  .step, .card, .overview { padding: 1.15rem; }
}

/* Problem search */
.finder { margin-top: 2rem; padding: 1.5rem; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); position: relative; }
.finder::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, var(--primary), transparent 35%, transparent 75%, var(--amber)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; pointer-events: none; }
.finder-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .5rem 1rem; }
.finder h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .4rem; }
.finder-lede { margin: 0; color: var(--muted); }
.search-box { position: relative; margin-top: 1.1rem; }
.search-box::before { content: ">"; position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%); color: var(--amber); font-family: var(--mono); font-weight: 600; pointer-events: none; }
#search { width: 100%; font: 1rem/1.4 var(--mono); padding: .9rem 1rem .9rem 2.2rem; border-radius: 999px; border: 1px solid var(--line); background: var(--code-bg); color: var(--text); }
#search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--cyan-soft), 0 0 24px -6px var(--cyan-glow); }
#search::placeholder { color: var(--muted); opacity: .8; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .9rem; }
.chip { font: 500 .76rem/1.4 var(--mono); padding: .3rem .7rem; border-radius: 6px; border: 1px solid transparent; background: var(--cyan-soft); color: var(--primary); cursor: pointer; }
.chip:hover { border-color: var(--primary); }
.search-results { margin-top: 1rem; display: grid; gap: .6rem; }
.hit { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 0 1.1rem; transition: border-color .2s; }
.hit:hover, .hit[open] { border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); }
.hit > summary { list-style: none; display: grid; gap: .15rem; padding: .85rem 0; color: var(--text); font-size: 1rem; }
.hit > summary::-webkit-details-marker { display: none; }
.hit-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.hit-title { flex: 1 1 240px; font-weight: 700; letter-spacing: -0.01em; }
.hit-title::before { content: "+ "; color: var(--primary); font-family: var(--mono); }
.hit[open] .hit-title::before { content: "− "; }
.hit .fix { margin-top: 0; padding-bottom: 1rem; }
.search-empty { margin: 0; padding: 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Tools dropdown in the main nav (shared with letmetrythis.dev, CheckMicrosoftEndpoints, ClientFixPage) */
.nav-tools { position: relative; margin: 0; }
.nav-tools > summary { display: inline-flex; align-items: center; gap: .45rem; list-style: none; cursor: pointer; color: var(--muted); font-weight: 650; font-size: inherit; }
.nav-tools > summary::-webkit-details-marker { display: none; }
.nav-tools > summary::after { content: ""; width: .38em; height: .38em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15em) rotate(45deg); transition: transform .2s; }
.nav-tools[open] > summary::after { transform: translateY(.1em) rotate(-135deg); }
.nav-tools > summary:hover, .nav-tools[open] > summary, .nav-tools.is-current > summary { color: var(--text); }
.nav-tools-menu { position: absolute; top: calc(100% + 1rem); left: 50%; transform: translateX(-50%); z-index: 30; width: 290px; display: grid; gap: .25rem; padding: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.main-nav .nav-tools-menu a { display: block; padding: .6rem .8rem; border-radius: 10px; color: var(--text); line-height: 1.3; }
.main-nav .nav-tools-menu a:hover { background: var(--surface-strong); }
.main-nav .nav-tools-menu a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--primary); }
.nav-tools-menu small { display: block; margin-top: .2rem; color: var(--muted); font-weight: 400; font-size: .82rem; line-height: 1.35; }
@media (max-width: 820px) {
  .nav-tools { text-align: center; }
  .nav-tools-menu { position: static; transform: none; width: auto; max-width: 320px; margin: .6rem auto 0; background: var(--surface-strong); box-shadow: none; }
}
