/* Layout concept: a calm journey. A route from the US to Damascus on the home page,
   and the checklist as a vertical path of stops with a progress companion beside it. */

@font-face { font-family: "Figtree"; src: url(fonts/figtree-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Rubik"; src: url(fonts/rubik-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Rubik"; src: url(fonts/rubik-arabic.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-2: #e9f2ed;
  --ink: #17241f;
  --muted: #5b6b65;
  --line: #dbe5e0;
  --green: #12694f;
  --green-ink: #0d4f3b;
  --green-soft: #e1f0e9;
  --on-green: #ffffff;
  --sun: #f2b544;
  --sun-ink: #7a4e00;
  --sun-soft: #fdf1d8;
  --rose: #b94a55;
  --rose-soft: #fbe6e8;
  --shadow: 0 1px 2px rgba(18, 52, 40, 0.06), 0 8px 24px rgba(18, 52, 40, 0.07);
  --star: rgba(18, 105, 79, 0.07);

  --font-display: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Figtree", "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "Rubik", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  --r: 18px;
  --r-sm: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1714; --surface: #16201c; --surface-2: #1b2a24; --ink: #e6eeea; --muted: #9db0a8; --line: #2a3933;
    --green: #5fcb9f; --green-ink: #8fe0bd; --green-soft: #1a3a2d; --on-green: #0b1a14;
    --sun: #f2b544; --sun-ink: #f6cd7a; --sun-soft: #3a2f17; --rose: #f09aa2; --rose-soft: #3f2427;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25); --star: rgba(95, 203, 159, 0.06);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1714; --surface: #16201c; --surface-2: #1b2a24; --ink: #e6eeea; --muted: #9db0a8; --line: #2a3933;
  --green: #5fcb9f; --green-ink: #8fe0bd; --green-soft: #1a3a2d; --on-green: #0b1a14;
  --sun: #f2b544; --sun-ink: #f6cd7a; --sun-soft: #3a2f17; --rose: #f09aa2; --rose-soft: #3f2427;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25); --star: rgba(95, 203, 159, 0.06);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font-body); }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; text-wrap: balance; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p, ul, ol { margin: 0 0 0.9em; }
ul, ol { padding-left: 1.25em; }
li { margin: 0.3em 0; }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
code { font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 6px; }
[hidden] { display: none !important; }
html:not(.js) .js-only { display: none !important; }
bdi[lang="ar"], [lang="ar"] { font-family: var(--font-ar); }
[dir="rtl"] { text-align: right; }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.wrap { max-width: 1060px; margin: 0 auto; padding-inline: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 20; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }

/* ---------- header ---------- */
.site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--green); color: var(--on-green); display: grid; place-items: center; }
.brand-mark .icon { stroke-width: 3; width: 18px; height: 18px; }
.nav { display: none; gap: 2px; }
.nav a, .menu-panel a { padding: 7px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .menu-panel a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"], .menu-panel a[aria-current="page"] { color: var(--green-ink); background: var(--green-soft); }
.menu { position: relative; }
.menu > summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; font-size: 0.95rem; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 6px; display: grid; min-width: 180px; }
.menu-panel a { border-radius: 8px; font-size: 1rem; padding: 10px 12px; }
@media (min-width: 820px) { .nav { display: flex; } .menu { display: none; } }

main { padding-block: 8px 64px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1.2 var(--font-body); cursor: pointer; text-decoration: none;
  padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--green);
  background: var(--green); color: var(--on-green); transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { box-shadow: 0 4px 14px color-mix(in srgb, var(--green) 30%, transparent); }
.btn:active { transform: translateY(1px); }
.btn-quiet { background: var(--surface); color: var(--green); }
.btn-big { padding: 15px 26px; font-size: 1.08rem; }
.btn-small { padding: 8px 14px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 8px; margin: 0; font: 500 0.92rem var(--font-body); color: var(--muted); cursor: pointer; border-radius: 8px; }
.link-btn:hover { color: var(--ink); background: var(--surface-2); }

/* ---------- labels ---------- */
.conf { display: inline-flex; align-items: center; gap: 5px; vertical-align: -0.15em; cursor: help; }
.conf .icon { width: 1em; height: 1em; }
.conf-official { color: var(--green); }
.conf-reported { color: var(--sun-ink); }
.conf-unclear { color: var(--rose); }
.conf-text { font-size: 0.8rem; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px; line-height: 1.3; vertical-align: 0.05em; }
.conf-text.conf-official { background: var(--green-soft); }
.conf-text.conf-reported { background: var(--sun-soft); }
.conf-text.conf-unclear { background: var(--rose-soft); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }

.callout { background: var(--sun-soft); border-radius: var(--r-sm); padding: 14px 16px; margin: 0 0 1em; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- home ---------- */
.page-home main { padding-top: 0; }
.hero {
  position: relative; display: grid; gap: 24px; align-items: center;
  margin: 16px -16px 0; padding: 40px 16px 32px; border-radius: 0 0 28px 28px;
  background-color: var(--surface-2);
}
.hero::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 70%, transparent), var(--surface-2) 85%); pointer-events: none; }
.hero > * { position: relative; }
.hero-text h1 { margin-top: 14px; max-width: 16ch; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.hero-actions { margin: 22px 0 10px; }
.resume { font-size: 0.95rem; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--green-ink); background: var(--surface); padding: 6px 14px 6px 10px; border-radius: 999px; text-decoration: none; box-shadow: var(--shadow); }
@media (min-width: 860px) { .hero { grid-template-columns: 1.25fr 1fr; padding: 56px 40px 48px; margin: 16px 0 0; border-radius: 28px; gap: 40px; } }

/* faint eight-pointed star pattern, tinted by a token so it works in both themes */
.hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 1;
  background: var(--star);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.4'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 64px 64px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.4'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 64px 64px;
  z-index: 0; }
.hero::before { z-index: 0; }
.hero > * { z-index: 1; }

.route-card { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.route-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.route { list-style: none; margin: 0; padding: 0; position: relative; }
.route::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; border-left: 2px dashed color-mix(in srgb, var(--green) 45%, transparent); }
.route li { margin: 0; }
.route a { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 6px 8px 0; color: var(--ink); text-decoration: none; border-radius: 12px; }
.route a:hover .stop-text strong { color: var(--green); }
.stop-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; border: 3px solid var(--surface); }
.route li:last-child .stop-icon { background: var(--green); color: var(--on-green); }
.stop-text { display: grid; line-height: 1.3; }
.stop-text strong { font-family: var(--font-display); font-weight: 600; }
.stop-text span { font-size: 0.88rem; color: var(--muted); }
.route-time { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }

.band { margin-top: 48px; }
.band-title { font-size: 1.45rem; margin-bottom: 16px; }
.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.how li { margin: 0; background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.how h3 { margin: 12px 0 4px; }
.how p { margin: 0; color: var(--muted); }
.how-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--sun-soft); color: var(--sun-ink); display: grid; place-items: center; }
@media (min-width: 720px) { .how { grid-template-columns: repeat(3, 1fr); } }

.fit { display: grid; gap: 14px; }
.fit-card { border-radius: var(--r); padding: 20px 22px 8px; }
.fit-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.fit-yes { background: var(--green-soft); }
.fit-yes h2 { color: var(--green-ink); }
.fit-no { background: var(--surface); border: 1px dashed var(--line); }
.fit-no h2 { color: var(--muted); }
@media (min-width: 720px) { .fit { grid-template-columns: 1.2fr 1fr; } }

.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tips li { margin: 0; background: var(--surface); border-radius: var(--r-sm); padding: 16px 18px; border-left: 4px solid var(--sun); }
.tips h3 { font-size: 1rem; margin-bottom: 4px; }
.tips h3::after { content: none; }
.tips p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 640px) { .tips { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .tips { grid-template-columns: repeat(3, 1fr); } }

.more { display: grid; gap: 12px; }
.more-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.more-card > .icon:first-child { width: 28px; height: 28px; color: var(--green); }
.more-card span { display: grid; flex: 1; min-width: 0; }
.more-card span span { color: var(--muted); font-size: 0.92rem; }
.more-card strong { font-family: var(--font-display); font-weight: 600; }
.more-arrow { color: var(--muted); transition: transform 0.15s; }
.more-card:hover .more-arrow { transform: translateX(3px); color: var(--green); }
@media (min-width: 720px) { .more { grid-template-columns: 1fr 1fr; } }

/* ---------- page heads ---------- */
.page-head { padding: 28px 0 8px; max-width: 720px; }
.page-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- wizard ---------- */
.wizard { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; margin: 8px 0 28px; max-width: 720px; scroll-margin-top: 80px; }
.wiz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.wiz-kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.wiz-count { font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.wiz-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 20px; }
.wiz-bar span { display: block; height: 100%; width: 0; background: var(--green); border-radius: inherit; transition: width 0.3s; }
.q { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.q legend { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.3; padding: 0; margin-bottom: 14px; }
.q-help { color: var(--muted); margin: -6px 0 12px; font-size: 0.95rem; }
.q-opts { display: grid; gap: 10px; }
.opt { display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-box { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 500; transition: border-color 0.15s, background 0.15s; }
.opt:hover .opt-box { border-color: color-mix(in srgb, var(--green) 50%, var(--line)); }
.opt-mark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; color: transparent; }
.opt-mark .icon { width: 14px; height: 14px; stroke-width: 3.5; }
.opt input:checked + .opt-box { border-color: var(--green); background: var(--green-soft); }
.opt input:checked + .opt-box .opt-mark { background: var(--green); border-color: var(--green); color: var(--on-green); }
.opt input:focus-visible + .opt-box { outline: 3px solid var(--sun); outline-offset: 2px; }
.wiz-nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }
html.js .wizard.wiz-on .q { display: none; }
html.js .wizard.wiz-on .q.current { display: block; animation: rise 0.25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wiz-done-head { display: flex; gap: 14px; align-items: flex-start; }
.wiz-done-head h2 { margin-bottom: 2px; }
.wiz-done-head p { color: var(--muted); margin-bottom: 14px; }
.wiz-done-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--on-green); display: grid; place-items: center; flex: none; }
.wiz-done-icon .icon { stroke-width: 3; }
.wiz-done-actions { margin: 16px 0 0; }
.wiz-mini { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.wiz-mini > span { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--muted); }
.wiz-mini > span .icon { color: var(--green); }
.wizard.is-mini { padding: 12px 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 0.9rem var(--font-body); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--on-green); }

/* ---------- checklist ---------- */
.cl-layout { display: grid; gap: 20px; align-items: start; }
.cl-main { min-width: 0; }
.side-card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.side-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; font-size: 1rem; }
.side-progress strong { font-family: var(--font-display); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.side-note { display: block; font-size: 0.82rem; color: var(--muted); }
.side-next { font-size: 0.95rem; color: var(--muted); margin-bottom: 12px; }
.side-next a { font-weight: 600; text-decoration: none; }
.side-tools { display: flex; justify-content: space-between; margin: 10px -6px -6px; }
.side-tools .link-btn { padding: 6px; font-size: 0.86rem; gap: 5px; }
.ring { transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-width: 4; }
.ring-bg { stroke: var(--surface-2); }
.ring-fg { stroke: var(--green); stroke-linecap: round; transition: stroke-dasharray 0.4s; }
.ring-fg[stroke-dasharray^="0 "] { opacity: 0; }
.ring-big { width: 58px; height: 58px; }
.ring-small { width: 30px; height: 30px; }
.ring-small circle { stroke-width: 5; }
@media (min-width: 960px) {
  .cl-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
  .cl-side { order: 2; position: sticky; top: 84px; }
}
@media (max-width: 959px) { .cl-side .side-tools { justify-content: flex-start; gap: 8px; } body.wiz-busy .cl-side { display: none; } }

.phase { margin: 0 0 28px; }
.phase-head { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 14px; }
.phase-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--green-soft); color: var(--green-ink); display: grid; place-items: center; flex: none; }
.phase-head h2 { margin: 2px 0 2px; font-size: 1.25rem; }
.phase-head p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.phase-ar { font-weight: 400; color: var(--muted); font-size: 0.85em; }

.steps { list-style: none; padding: 0; margin: 0 0 0 21px; border-left: 2px solid var(--line); }
.step { position: relative; margin: 0 0 12px; padding-left: 22px; scroll-margin-top: 84px; }
.step > details { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); border: 1.5px solid transparent; transition: border-color 0.2s; }
.step.next > details { border-color: var(--sun); }
.step > details > summary { display: flex; gap: 14px; align-items: flex-start; padding: 16px; cursor: pointer; list-style: none; }
.step > details > summary::-webkit-details-marker { display: none; }
.step-dot { position: absolute; left: -16px; top: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); color: var(--muted); font: 600 0.88rem var(--font-display); }
.step-tick { display: none; width: 16px; height: 16px; stroke-width: 3.5; }
.step.next .step-dot { border-color: var(--sun); background: var(--sun); color: #3d2a00; }
.step.done .step-dot { background: var(--green); border-color: var(--green); color: var(--on-green); }
.step.done .step-n { display: none; }
.step.done .step-tick { display: block; }
.step-head { flex: 1; min-width: 0; display: grid; gap: 3px; }
.step-title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
.step.done .step-title { color: var(--muted); }
.step-sum { color: var(--muted); font-size: 0.95rem; }
.step-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); line-height: 1.3; }
.tag .icon { width: 1em; height: 1em; }
.tag-count:empty { display: none; }
.step.next .step-title::after { content: "Up next"; margin-left: 8px; font: 700 0.68rem var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; background: var(--sun-soft); color: var(--sun-ink); padding: 2px 8px; border-radius: 999px; vertical-align: 0.2em; white-space: nowrap; }
.chev { color: var(--muted); margin-top: 4px; transition: transform 0.2s; }
details[open] > summary > .chev { transform: rotate(180deg); }
.step-body { padding: 0 16px 14px; }
.step-ar { font-size: 0.92rem; color: var(--muted); margin: -4px 0 12px; }
.step-ar strong { color: var(--ink); font-weight: 500; }
.step-intro { margin-bottom: 12px; }
.step-intro p:last-child { margin-bottom: 0; }
.sec { border-radius: var(--r-sm); padding: 14px 16px 4px; margin: 0 0 10px; }
.sec h4 { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; margin: 0 0 10px; }
.sec-todo { padding: 4px 0 2px; }
.sec-todo h4 { color: var(--green-ink); }
.sec-warn { background: var(--rose-soft); }
.sec-warn h4 { color: var(--rose); }
.sec-note { background: var(--surface-2); }
.sec-note h4 { color: var(--muted); }
.sec ul { padding-left: 1.1em; }
.sec li { font-size: 0.96rem; }
.step-meta { font-size: 0.82rem; color: var(--muted); margin: 6px 0 0; }

.tasks { list-style: none; padding: 0 !important; margin: 0 0 6px; }
.tasks > li { margin: 0; }
.task { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; }
.task:hover { background: var(--surface-2); }
.task input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border: 2px solid color-mix(in srgb, var(--muted) 55%, transparent); border-radius: 7px; cursor: pointer; display: grid; place-items: center; background: var(--surface); transition: background 0.15s, border-color 0.15s; }
.task input::after { content: ""; width: 6px; height: 11px; border: solid var(--on-green); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.task input:checked { background: var(--green); border-color: var(--green); }
.task input:checked::after { opacity: 1; }
.task input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.task span { font-size: 0.98rem; }

.table-wrap { overflow-x: auto; margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }

.bottom-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 9; display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 999px; padding: 8px 8px 8px 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18); border: 1px solid var(--line); }
.bb-text { flex: 1; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
@media (min-width: 960px) { .bottom-bar { display: none !important; } }
.page-checklist main { padding-bottom: 110px; }

/* ---------- FAQ ---------- */
.search { position: relative; max-width: 720px; margin: 8px 0 12px; }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; font: 1.05rem var(--font-body); padding: 15px 16px 15px 46px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.search input:focus { outline: none; border-color: var(--green); }
.faq-filter { margin-bottom: 8px; }
.search-count { font-size: 0.9rem; color: var(--muted); min-height: 1.4em; margin: 6px 0; }
.faq-list { max-width: 760px; }
.faq-group { margin-bottom: 24px; }
.faq-group h2 { font-size: 1.05rem; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.faq-item { background: var(--surface); border-radius: var(--r-sm); margin: 0 0 8px; box-shadow: 0 1px 2px rgba(18, 52, 40, 0.05); border: 1px solid var(--line); }
.faq-item > summary { display: flex; justify-content: space-between; gap: 12px; padding: 15px 16px; cursor: pointer; font-weight: 600; list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item[open] > summary { color: var(--green-ink); }
.faq-body { padding: 0 16px 6px; color: var(--ink); }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); max-width: 760px; }
.empty .icon { width: 32px; height: 32px; }

/* ---------- templates ---------- */
.tcards { display: grid; gap: 16px; max-width: 820px; }
.tcard { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; scroll-margin-top: 84px; }
.tcard-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.tcard-head h2 { font-size: 1.2rem; margin: 2px 0 2px; }
.tcard-ar { color: var(--muted); margin: 0; font-size: 0.95rem; }
.tcard-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--sun-soft); color: var(--sun-ink); display: grid; place-items: center; flex: none; }
.tcard-body h5 { font-size: 1rem; margin: 1em 0 0.4em; font-family: var(--font-display); }
.template { border: 1px solid var(--line); border-radius: var(--r-sm); margin: 0 0 12px; overflow: hidden; }
.template > summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; font-weight: 600; font-size: 0.95rem; list-style: none; background: var(--surface-2); }
.template > summary::-webkit-details-marker { display: none; }
.template > summary .chev { margin: 0 0 0 auto; }
.template-inner { position: relative; }
.copy-btn { position: absolute; top: 8px; right: 8px; background: var(--surface); border: 1px solid var(--line); }
.template-text { margin: 0; padding: 48px 14px 14px; white-space: pre-wrap; font: 0.9rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; max-height: 380px; overflow: auto; }
.thumb { display: block; max-width: 300px; border-radius: var(--r-sm); overflow: hidden; margin: 0 0 12px; border: 1px solid var(--line); }
.downloads { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.original summary { cursor: pointer; font-weight: 600; color: var(--green); margin-bottom: 8px; }
.soft-card { background: var(--surface-2); border-radius: var(--r); padding: 20px 22px 8px; margin-top: 24px; max-width: 820px; }
.soft-card h2 { font-size: 1.15rem; }

/* ---------- prose ---------- */
.prose { max-width: 720px; padding-top: 28px; }
.prose h1 { margin-bottom: 0.5em; }
.prose h2 { margin-top: 1.6em; }

.site-footer { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 0.9rem; color: var(--muted); }
.footer-inner p { max-width: 720px; }
.footer-made { display: flex; gap: 8px; align-items: center; color: var(--ink); font-weight: 500; }
.footer-made .icon { color: var(--rose); }

/* ---------- print ---------- */
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f2f2f2; --ink: #000; --muted: #444; --line: #bbb; --shadow: none; }
  body { font-size: 11pt; }
  .site-header, .site-footer, .wizard, .cl-side, .bottom-bar, .search, .faq-filter, .skip, .hero-actions, .downloads, .btn, .link-btn, .chev { display: none !important; }
  .cl-layout { display: block; }
  .steps { border: 0; margin: 0; }
  .step { padding: 0; break-inside: avoid; }
  .step > details { box-shadow: none; border: 0; border-top: 1px solid #bbb; border-radius: 0; }
  .step-dot { position: static; }
  .step.next .step-title::after { display: none; }
  .phase-head { break-after: avoid; }
  .task input { border-color: #000; }
  a { color: #000; text-decoration: none; }
  .print-checklist .step-body > :not(.sec-todo), .print-checklist .step-sum, .print-checklist .step-tags { display: none; }
  .print-checklist .phase-head p, .print-checklist .page-head p { display: none; }
}
