/* FeatherSticks — main stylesheet. Tokens mirror app/brand.php (also used by the studio). */
:root {
  --paper: #f4eddf;
  --paper2: #e9dfcb;
  --ink: #2a2118;
  --muted: #6f6456;
  --forest: #2f4a3a;
  --forest2: #223629;
  --moss: #6b7f4a;
  --ember: #d9642b;
  --ember2: #f0a060;
  --line: #cbbd9f;
  --white: #fffaf0;
  --accent: var(--ember);
  --head: Georgia, 'Times New Roman', serif;
  --body: 'Segoe UI', Roboto, Arial, sans-serif;
  --r: 14px;
  --shadow: 0 1px 2px rgba(42,33,24,.08), 0 6px 20px rgba(42,33,24,.07);
  --shadow-lg: 0 2px 4px rgba(42,33,24,.08), 0 16px 40px rgba(42,33,24,.14);
  --ease: cubic-bezier(.2,.7,.2,1);
  --w: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.65 var(--body);
  background-image: radial-gradient(circle at 20% 0%, rgba(107,127,74,.08), transparent 40%);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ember); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin: 1.8em 0 .6em; }
h3 { font-size: 1.2rem; margin: 0 0 .3em; }
.icon { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.icon-xl { width: 64px; height: 64px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* Header */
.site-header { background: var(--forest2); color: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font: 700 1.3rem var(--head); white-space: nowrap; }
.logo b { color: var(--ember2); font-weight: 700; }
.logo:hover { color: var(--white); }
.main-nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.main-nav a { color: #e6dcc6; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .92rem; display: flex; gap: 6px; align-items: center; }
.main-nav a:hover, .main-nav a[aria-current] { background: rgba(255,255,255,.08); color: var(--white); }
.main-nav .nav-tool { color: var(--ember2); }
.lang-switch { color: var(--white); text-decoration: none; border: 1px solid rgba(255,255,255,.25); padding: 5px 10px; border-radius: 999px; font-size: .85rem; display: flex; gap: 6px; align-items: center; }
.lang-switch:hover { color: var(--white); border-color: var(--ember2); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.3); color: var(--white); font-size: 1.2rem; border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.draft-bar { background: #ffe6a8; color: #5a4200; text-align: center; padding: 6px; font-size: .9rem; }
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--forest2); flex-direction: column; padding: 8px 16px 16px; }
  .main-nav.open { display: flex; }
  .lang-switch { order: 3; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit; transition: background-color .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s; }
.btn:active { transform: translateY(1px); }
.btn-ember { background: var(--ember); color: var(--white); box-shadow: 0 4px 14px rgba(217,100,43,.28); }
.btn-ember:hover { background: #c1531d; color: var(--white); box-shadow: 0 6px 20px rgba(217,100,43,.38); }
.btn .icon { transition: transform .18s; }
.btn:hover > .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn-ghost { background: transparent; border-color: var(--forest); color: var(--forest); }
.btn-ghost:hover { background: var(--forest); color: var(--white); }

/* Hero */
.hero { background: linear-gradient(160deg, var(--forest) 0%, var(--forest2) 100%); color: var(--white); padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: url("../img/contours.svg") center/cover; opacity: .12; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero .lead { color: #e6dcc6; font-size: 1.2rem; max-width: 36em; }
.hero .eyebrow { color: var(--ember2); }
.hero .btn-ghost { border-color: #e6dcc6; color: #e6dcc6; }
.hero .btn-ghost:hover { background: #e6dcc6; color: var(--forest2); }
.hero-art img { margin: 0 auto; max-height: 360px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.35)); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0; display: flex; gap: 6px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { display: none; } }

/* Sections */
.section { padding: 56px 16px; }
.section-title { margin-top: 0; }
.section-lead { color: var(--muted); max-width: 44em; margin-top: -.3em; }

/* Knowledge tree */
.tree { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 28px; }
.branch { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); border-top: 4px solid var(--accent); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; display: flex; flex-direction: column; }
.branch:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.branch-head:hover strong { color: var(--accent); }
.branch-icon { transition: background-color .2s, color .2s; }
.branch-head:hover .branch-icon { background: var(--accent); color: var(--white); }
.branch-head { display: flex; gap: 12px; padding: 16px 18px 12px; text-decoration: none; color: var(--ink); align-items: flex-start; }
.branch-head strong { font: 700 1.25rem var(--head); display: block; }
.branch-head small { color: var(--muted); font-size: .88rem; line-height: 1.4; display: block; }
.branch-icon { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 12px; padding: 9px; display: flex; }
.branch-icon .icon { width: 26px; height: 26px; }
.branch ul { list-style: none; margin: 0; padding: 0 18px 16px 18px; }
.branch li { position: relative; padding: 4px 0 4px 22px; font-size: .95rem; }
.branch li::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; border-left: 2px solid var(--line); }
.branch li::after { content: ""; position: absolute; left: 7px; top: 50%; width: 10px; border-top: 2px solid var(--line); }
.branch li:last-child::before { bottom: 50%; }
.branch li a { text-decoration: none; display: inline-block; transition: transform .15s, color .15s; }
.branch li a:hover { color: var(--accent); transform: translateX(3px); }
.branch li:hover::after { border-top-color: var(--accent); }
.branch-more { margin: auto 18px 16px; padding-top: 10px; border-top: 1px dashed var(--paper2); font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--ember); display: flex; gap: 6px; align-items: center; }
.branch-tools { background: linear-gradient(170deg, #fff4e6 0%, var(--white) 55%); }
@media (min-width: 1100px) { .tree { grid-template-columns: repeat(4, 1fr); } }

/* Tool teaser */
.tool-teaser { background: var(--paper2); }
.teaser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.teaser-grid h2 { margin-top: 0; }
@media (max-width: 800px) { .teaser-grid { grid-template-columns: 1fr; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; position: relative; transition: transform .22s ease, box-shadow .22s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 1200/630; object-fit: cover; width: 100%; transition: transform .5s ease; }
.card:hover .card-img { transform: scale(1.035); }
.card:focus-within { box-shadow: var(--shadow-lg), 0 0 0 3px var(--ember2); }
.card-body { position: relative; background: var(--white); }
.card-body { padding: 18px; }
.card-body h2, .card-body h3 { margin: 8px 0 6px; font-size: 1.15rem; }
.card-body h2 a::after, .card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card-body h2 a, .card-body h3 a { text-decoration: none; color: var(--ink); }
.card-body p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.card-icon { color: var(--accent); display: inline-flex; }
.card-icon .icon { width: 28px; height: 28px; }
.card-soon { opacity: .6; }
.card-soon:hover { transform: none; }
.card-feature { border: 2px solid var(--ember); }
.badge { display: inline-block; margin-top: 10px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; background: var(--paper2); color: var(--muted); padding: 3px 9px; border-radius: 999px; }

/* Breadcrumbs */
.crumbs ol { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* Page heads */
.page-head { margin: 10px 0 20px; }
.pillar-head { display: flex; gap: 22px; align-items: center; }
.pillar-icon { color: var(--accent); background: var(--white); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); display: flex; }
.meta { color: var(--muted); font-size: .9rem; }

/* Article */
.article { max-width: 800px; }
.prose p { margin: 0 0 1em; }
.lead-prose { font-size: 1.12rem; }
.scheme { margin: 24px 0; }
.scheme img { border-radius: var(--r); box-shadow: var(--shadow); width: 100%; }
.facts { background: var(--forest); color: var(--white); border-radius: var(--r); padding: 18px 22px; margin: 24px 0; }
.facts h2 { color: var(--ember2); margin: 0 0 10px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--body); }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 24px; }
.facts dt { font-size: .8rem; color: #c9d4bf; text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 0; font-weight: 600; }
.toc { background: var(--white); border-left: 4px solid var(--accent); border-radius: 0 var(--r) var(--r) 0; padding: 14px 20px; margin: 24px 0; }
.toc ol { margin: 6px 0 0; padding-left: 20px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 16px; background: var(--white); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.steps p { margin: 0; color: var(--ink); }
.step-num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--white); display: grid; place-items: center; font: 700 1.2rem var(--head); }
.table-wrap { overflow-x: auto; margin: 28px 0; }
table { border-collapse: collapse; width: 100%; background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); font-size: .95rem; }
caption { text-align: left; font: 700 1.1rem var(--head); padding: 0 0 10px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--paper2); }
thead th { background: var(--forest); color: var(--white); font-weight: 600; }
tbody th { font-weight: 600; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }
.box { border-radius: var(--r); padding: 16px 20px; background: var(--white); box-shadow: var(--shadow); }
.box h2, .box h3 { margin: 0 0 10px; font-size: 1.15rem; display: flex; gap: 8px; align-items: center; }
.box ul { margin: 0; padding-left: 20px; }
.box li { margin: 6px 0; }
.box-warn { border-top: 4px solid #b5452a; }
.box-warn h2 { color: #b5452a; }
.box-gear { border-top: 4px solid var(--moss); }
.box-tip { border-top: 4px solid var(--ember); margin-top: 20px; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { padding-left: 26px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--moss); font-weight: 700; }
.faq details { background: var(--white); border-radius: 12px; margin: 10px 0; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; }
.faq details > div { padding: 0 18px 14px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 40px 0; }
.pager a { background: var(--white); border-radius: var(--r); padding: 14px 18px; text-decoration: none; box-shadow: var(--shadow); font-weight: 600; }
.pager small { display: block; color: var(--muted); font-weight: 400; }
.pager .next { text-align: right; grid-column: 2; }
.related { margin: 20px 0 60px; }

/* Video */
.video { margin: 24px 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/9; background: var(--forest2); }
.video video, .video iframe { width: 100%; height: 100%; border: 0; }
.yt-play { width: 100%; height: 100%; border: 0; cursor: pointer; background: var(--forest2) center/cover; color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font: 600 1rem var(--body); }
.yt-play .icon { width: 72px; height: 72px; background: var(--ember); border-radius: 50%; padding: 18px; }

/* Kit builder */
.kit { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; margin-bottom: 40px; }
.kit-form { background: var(--white); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); position: sticky; top: 84px; }
.kit-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.kit-form legend { font-weight: 700; margin-bottom: 8px; font-family: var(--head); font-size: 1.05rem; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 9px 8px; border-radius: 10px; background: var(--paper); cursor: pointer; font-size: .92rem; border: 2px solid transparent; }
.seg input:checked + span { background: var(--forest); color: var(--white); }
.seg input:focus-visible + span { border-color: var(--ember); }
.kit-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kit-summary div { background: var(--forest); color: var(--white); border-radius: 12px; padding: 12px 14px; }
.kit-summary span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #c9d4bf; }
.kit-summary strong { font: 700 1.4rem var(--head); }
.kit-title { margin-top: 26px; }
.kit-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.kit-group { background: var(--white); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.kit-group h3 { display: flex; gap: 8px; align-items: center; color: var(--forest); }
.kit-group ul { list-style: none; margin: 0; padding: 0; }
.kit-group li { padding: 7px 0; border-bottom: 1px dashed var(--paper2); }
.kit-group li:last-child { border-bottom: 0; }
.kit-group label { display: flex; gap: 8px; cursor: pointer; }
.kit-group input { accent-color: var(--moss); margin-top: 5px; }
.kit-group input:checked + span { text-decoration: line-through; color: var(--muted); }
.kit-group small { display: block; color: var(--muted); padding-left: 24px; font-size: .8rem; }
.kit-group em { font-style: normal; font-size: .72rem; background: var(--paper2); padding: 1px 7px; border-radius: 999px; margin-left: 6px; color: var(--muted); }
.kit-group .note { margin: 4px 0 0 24px; font-size: .82rem; color: var(--moss); }
.kit-group li.opt span { color: var(--muted); }
.kit-actions { display: flex; gap: 10px; margin-top: 20px; }
.kit-output.loading { opacity: .5; transition: opacity .2s; }
.kit-seo { max-width: 800px; margin-bottom: 60px; }
@media (max-width: 900px) { .kit { grid-template-columns: 1fr; } .kit-form { position: static; } .kit-summary { grid-template-columns: repeat(2, 1fr); } }

/* 404 pills */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 30px 0 80px; }
.pill { background: var(--white); padding: 10px 16px; border-radius: 999px; text-decoration: none; box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center; }

/* Footer */
.site-footer { background: var(--forest2); color: #cfc5b0; margin-top: 60px; padding: 44px 0 20px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer h2 { color: var(--white); font-size: 1rem; margin: 0 0 10px; font-family: var(--body); text-transform: uppercase; letter-spacing: .1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 5px 0; }
.site-footer a { color: #e6dcc6; text-decoration: none; }
.site-footer a:hover { color: var(--ember2); }
.copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 16px; font-size: .82rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, .kit-form, .kit-actions, .crumbs, .kit-seo { display: none !important; }
  .kit { display: block; }
  body { background: #fff; }
  .kit-group, .kit-summary div { box-shadow: none; border: 1px solid #ccc; }
  .kit-summary div { background: #fff; color: #000; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ── Interactive tools ─────────────────────────────── */
.tool-head { display: flex; gap: 22px; align-items: center; }
.tool-intro { max-width: 800px; }
.tool { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; margin: 10px 0 40px; }
.tool-form { background: var(--white); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.field label, .field legend { font-weight: 700; font-family: var(--head); font-size: 1rem; display: block; margin-bottom: 6px; }
.field small { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; line-height: 1.35; }
.field select, .field input[type=date], .field input[type=time] { width: 100%; font: inherit; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.field-check label { font: 500 .95rem var(--body); display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.field-check input { accent-color: var(--forest); margin-top: 4px; }
.num-row { display: flex; gap: 10px; align-items: center; }
.num-row input[type=range] { flex: 1; accent-color: var(--accent); min-width: 0; }
.num-box { display: flex; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding-right: 8px; }
.num-box input { width: 74px; border: 0; background: transparent; padding: 8px; font: 600 1rem var(--body); color: var(--ink); text-align: right; }
.num-box em { font-style: normal; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.tool-output { min-width: 0; }
.tool-output.loading { opacity: .55; transition: opacity .15s; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.stat { background: var(--white); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.stat span { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat strong { font: 700 1.45rem/1.2 var(--head); display: block; margin-top: 2px; }
.stat strong small { font: 600 .9rem var(--body); color: var(--muted); }
.stat em { font-style: normal; font-size: .8rem; color: var(--moss); }
.stat-accent { background: var(--forest); }
.stat-accent span, .stat-accent em { color: #c9d4bf; }
.stat-accent strong, .stat-accent strong small { color: var(--white); }
.rblock { background: var(--white); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); margin-top: 16px; }
.rblock h3 { margin: 0 0 12px; font-size: 1.1rem; }
.rblock .table-wrap { margin: 0; }
.rblock table { box-shadow: none; }
tr.hl th, tr.hl td { background: #fbe6d8; }
td.c-m { background: #fdf0d6; } td.c-x { background: #f6c9b3; } td.c-xx { background: #d97c5c; color: #fff; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bars li { display: grid; grid-template-columns: minmax(120px, 34%) 1fr auto; gap: 12px; align-items: center; font-size: .92rem; }
.bar { background: var(--paper2); border-radius: 999px; height: 12px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--forest); border-radius: 999px; transition: width .35s ease; }
.bars b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rlist { margin: 0; padding-left: 0; list-style: none; }
.rlist li { position: relative; padding: 5px 0 5px 30px; }
.rlist-check li::before { content: "✓"; position: absolute; left: 4px; color: var(--moss); font-weight: 700; }
.rlist-warn li::before { content: "!"; position: absolute; left: 7px; color: #b5452a; font-weight: 700; }
.rlist-num { counter-reset: n; }
.rlist-num li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .75rem; display: grid; place-items: center; font-weight: 700; }
.reco { border-left: 5px solid var(--ember); padding-left: 14px; }
.reco-head { display: flex; gap: 14px; align-items: flex-start; }
.reco-head strong { font: 700 1.35rem var(--head); }
.reco-head p { margin: 4px 0 0; }
.reco-icon { color: var(--white); background: var(--ember); border-radius: 50%; padding: 10px; display: flex; }
.reco-icon .icon { width: 26px; height: 26px; }
.reco-steps { margin: 12px 0 6px; padding-left: 22px; }
.reco-steps li { margin: 4px 0; }
.badge-ok { background: #dfe8cf; color: var(--moss); margin-top: 0; }
.more { font-weight: 600; white-space: nowrap; }
.rcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rcard { background: var(--paper); border-radius: 12px; padding: 12px 14px; }
.rcard p { margin: 6px 0 0; font-size: .92rem; color: var(--muted); }
.rcard .badge { margin-top: 0; }
.timeline { list-style: none; margin: 0 0 0 8px; padding: 0 0 0 10px; border-left: 3px solid var(--paper2); }
.timeline li { position: relative; padding: 6px 0 6px 18px; display: flex; gap: 14px; }
.timeline li::before { content: ""; position: absolute; left: -19px; top: 12px; width: 13px; height: 13px; border-radius: 50%; background: var(--white); border: 3px solid var(--line); }
.timeline li.start::before { border-color: var(--moss); background: var(--moss); }
.timeline li.end::before { border-color: var(--ember); background: var(--ember); }
.timeline time { font: 700 1rem var(--head); min-width: 52px; font-variant-numeric: tabular-nums; }
.rnote { margin: 0; padding: 10px 14px; background: #fdf0d6; border-radius: 10px; color: #5a4200; }
.rblock-note { padding: 0; background: none; box-shadow: none; }
.formula { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.formula summary { cursor: pointer; font-weight: 600; color: var(--forest); }
.tool-help { max-width: 800px; }
.tool-card .kind { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-left: 6px; }
.pill-left { justify-content: flex-start; margin: 10px 0 20px; }
.pill small { color: var(--muted); }
.tool-group { margin-bottom: 30px; }
.topic-tools { margin: 30px 0; }
.topic-tools h2 { display: flex; gap: 8px; align-items: center; }
.tool-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.tool-link { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; background: var(--white); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 2px solid transparent; }
.tool-link:hover { border-color: var(--accent); color: var(--ink); }
.tool-link span { grid-row: span 2; color: var(--white); background: var(--accent); border-radius: 12px; padding: 8px; align-self: start; display: flex; }
.tool-link small { color: var(--muted); line-height: 1.4; }
@media (max-width: 900px) {
  .tool { grid-template-columns: 1fr; }
  .tool-form { position: static; max-height: none; }
  .bars li { grid-template-columns: 1fr auto; }
  .bars .bar { grid-column: 1 / -1; grid-row: 2; }
  .tool-head { align-items: flex-start; }
  .tool-head .pillar-icon { display: none; }
}

/* ── Guided step-by-step mode ──────────────────────── */
.steps-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 1.8em 0 .6em; }
.steps-head h2 { margin: 0; }
.steps-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.steps-actions .btn { padding: 8px 14px; font-size: .92rem; }
body.gd-open { overflow: hidden; }
.guided { position: fixed; inset: 0; z-index: 100; background: var(--forest2); color: var(--white); display: flex; flex-direction: column; }
.guided::after { content: ""; position: absolute; inset: 0; background: url("../img/contours.svg") center/cover; opacity: .08; pointer-events: none; }
.gd-top { display: flex; gap: 16px; align-items: center; padding: 16px 20px; position: relative; z-index: 1; }
.gd-bar { flex: 1; height: 8px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; }
.gd-bar i { display: block; height: 100%; width: 0; background: var(--ember); transition: width .3s; }
.gd-x { background: none; border: 1px solid rgba(255,255,255,.3); color: var(--white); border-radius: 50%; width: 40px; height: 40px; font-size: 1.1rem; cursor: pointer; }
.gd-body { flex: 1; overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; position: relative; z-index: 1; }
.gd-body h2 { color: var(--white); font-size: clamp(1.8rem, 5vw, 3rem); margin: .3em 0; max-width: 16em; }
.gd-kicker { text-transform: uppercase; letter-spacing: .14em; color: var(--ember2); font-weight: 700; margin: 0; }
.gd-num { width: 110px; height: 110px; border-radius: 50%; background: var(--ember); display: grid; place-items: center; font: 700 3.4rem var(--head); margin: 14px auto 0; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.gd-text { font-size: clamp(1.1rem, 2.6vw, 1.45rem); max-width: 34em; color: #e6dcc6; line-height: 1.55; }
.gd-gear { list-style: none; padding: 0; text-align: left; font-size: 1.15rem; }
.gd-gear li { margin: 8px 0; }
.gd-gear input { accent-color: var(--ember); width: 20px; height: 20px; vertical-align: -3px; }
.gd-done { font-size: 5rem; color: var(--ember2); }
.gd-nav { display: flex; justify-content: space-between; gap: 10px; padding: 16px 20px 24px; position: relative; z-index: 1; }
.gd-nav .btn-ghost { border-color: rgba(255,255,255,.4); color: var(--white); }
.gd-nav .btn-ghost:disabled { opacity: .3; }
.gd-nav .btn-ember { min-width: 140px; justify-content: center; }

@media print {
  .tool-form, .kit-actions, .steps-actions, .topic-tools, .related, .pager, .toc, .video, .faq, .formula { display: none !important; }
  .tool { display: block; }
  .stat, .rblock, .steps li { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .stat-accent { background: #fff; }
  .stat-accent span, .stat-accent strong, .stat-accent strong small, .stat-accent em { color: #000; }
}

/* ── In-article diagram blocks (app/diagrams.php) ─── */
.prose h3 { margin: 1.6em 0 .4em; font-size: 1.3rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.2em 0; padding: .6em 1.2em; border-left: 4px solid var(--accent); background: var(--white); border-radius: 0 12px 12px 0; }
.dg { margin: 1.6em 0; }
.dg-title { font: 700 1.05rem var(--head); margin: 0 0 .7em; color: var(--forest); }
.dg-note, .scheme figcaption { font-size: .88rem; color: var(--muted); margin: .5em 0 0; }
.table-wrap.dg td, .table-wrap.dg th { vertical-align: top; }
/* flow */
.dg-flow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 26px; counter-reset: f; }
.dg-flow li { position: relative; background: var(--white); border-radius: var(--r); padding: 16px 14px 14px; box-shadow: var(--shadow); text-align: center; margin: 0; }
.dg-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -21px; top: 50%; transform: translateY(-50%); color: var(--ember); font-weight: 700; font-size: 1.3rem; }
.dg-flow-n { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; margin: 0 auto 8px; font: 700 1.1rem var(--head); }
.dg-flow-n .icon { width: 22px; height: 22px; }
.dg-flow strong { display: block; font-family: var(--head); line-height: 1.25; }
.dg-flow span:not(.dg-flow-n) { display: block; font-size: .88rem; color: var(--muted); margin-top: 4px; line-height: 1.45; }
@media (max-width: 640px) { .dg-flow ol { grid-template-columns: 1fr; gap: 22px; } .dg-flow li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -22px; transform: translateX(-50%); } }
/* layers */
.dg-layers ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dg-layers li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 0; }
.dg-layer-bar { width: var(--w); margin: 0 auto; background: color-mix(in srgb, var(--accent) calc(var(--o) * 100%), var(--paper2)); color: #fff; border-radius: 10px; padding: 9px 14px; display: flex; gap: 8px; align-items: center; justify-content: center; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.dg-layer-text { text-align: center; font-size: .88rem; color: var(--muted); padding: 0 8px 6px; }
/* compare */
.dg-sides { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.dg-side { background: var(--white); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); border-top: 4px solid var(--forest); }
.dg-side.r { border-top-color: var(--ember); }
.is-pc .dg-side.l { border-top-color: var(--moss); } .is-pc .dg-side.r { border-top-color: #b5452a; }
.dg-side-h { font: 700 1.05rem var(--head); margin: 0 0 6px; display: flex; gap: 6px; align-items: center; }
.dg-side ul { margin: 0; padding-left: 1.1em; font-size: .95rem; }
.is-pc .dg-side ul { list-style: none; padding-left: 0; }
.is-pc .dg-side.l li::before { content: "+ "; color: var(--moss); font-weight: 700; }
.is-pc .dg-side.r li::before { content: "– "; color: #b5452a; font-weight: 700; }
.dg-vs { align-self: center; font: 700 1rem var(--head); color: var(--muted); }
@media (max-width: 640px) { .dg-sides { grid-template-columns: 1fr; } .dg-vs { text-align: center; } }
/* callout */
.dg-callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--white); border-left: 5px solid var(--ember); box-shadow: var(--shadow); }
.dg-callout > .icon { width: 24px; height: 24px; color: var(--ember); margin-top: 2px; }
.dg-callout strong { display: block; margin-bottom: 2px; }
.dg-callout p { margin: 0; }
.dg-warn { border-left-color: #b5452a; background: #fbeee8; } .dg-warn > .icon { color: #b5452a; }
.dg-info { border-left-color: #3f6f8a; } .dg-info > .icon { color: #3f6f8a; }
.dg-safety { border-left-color: #b5452a; background: #fff4e5; } .dg-safety > .icon { color: #b5452a; }
/* checklist / steps / kv */
.dg-check, .dg-steps, .dg-kv, .dg-bars, .dg-decision { background: var(--white); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.dg-check ul { margin: 0; }
.dg-steps ol { margin: 0; padding-left: 1.4em; }
.dg-steps li { margin: .45em 0; }
.dg-kv dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 20px; }
.dg-kv dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dg-kv dd { margin: 0; font-weight: 600; }
/* decision */
.dg-decision ol { list-style: none; margin: 0; padding: 0; counter-reset: d; }
.dg-decision li { counter-increment: d; padding: 10px 0 10px 40px; position: relative; border-bottom: 1px dashed var(--paper2); margin: 0; }
.dg-decision li:last-child { border-bottom: 0; }
.dg-decision li::before { content: counter(d); position: absolute; left: 0; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.dg-q { font-weight: 700; margin: 0 0 6px; }
.dg-ans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: .93rem; }
.dg-ans span { background: var(--paper); border-radius: 10px; padding: 8px 10px; }
.dg-ans .yes b { color: var(--moss); } .dg-ans .no b { color: #b5452a; }
@media (max-width: 640px) { .dg-ans { grid-template-columns: 1fr; } }

/* ── Knot diagrams (app/knots.php) ───────────────── */
.dg-knot { margin: 1.6em 0; }
.dg-knot-img svg { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: var(--shadow); }
.dg-knot > .dg-knot-img { max-width: 520px; }
.dg-knot figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.dg-knot-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.dg-knot-steps li { margin: 0; }
.dg-knot-steps li p { font-size: .9rem; margin: 8px 2px 0; line-height: 1.45; }
.reco .dg-knot { margin: 14px 0 6px; }
.rcard .dg-knot-img { margin-bottom: 8px; }
.rcard .dg-knot-img svg { box-shadow: none; border: 1px solid var(--paper2); }

/* ── UI refresh: polish, home, article layout ──────── */
::selection { background: color-mix(in srgb, var(--ember2) 55%, transparent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ember2); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, .branch-head strong { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.site-header { background: color-mix(in srgb, var(--forest2) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.main-nav a { transition: background-color .15s, color .15s; }
.section-title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--ember); margin-top: 12px; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(240,160,96,.22), transparent 62%); pointer-events: none; }
.hero-grid > div:first-child > * { animation: rise .7s var(--ease) both; }
.hero-grid > div:first-child > :nth-child(2) { animation-delay: .06s; }
.hero-grid > div:first-child > :nth-child(3) { animation-delay: .12s; }
.hero-grid > div:first-child > :nth-child(4) { animation-delay: .18s; }
.hero-grid > div:first-child > :nth-child(5) { animation-delay: .26s; }
.hero-art img { animation: float 7s ease-in-out infinite; }
.hero-stats { list-style: none; margin: 34px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255,250,240,.14); display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 36px; }
.hero-stats strong { display: block; font: 700 1.9rem/1.1 var(--head); color: var(--white); }
.hero-stats span { font-size: .84rem; color: #c9d4bf; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 800px) {
  .hero { padding: 40px 0 48px; }
  .hero::before { width: 360px; height: 360px; right: -160px; top: -120px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-stats strong { font-size: 1.5rem; }
}

/* Kit builder teaser mock */
.tool-teaser { position: relative; overflow: hidden; }
.teaser-mock { display: grid; gap: 10px; background: var(--white); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-lg); text-decoration: none; color: var(--ink); transform: rotate(-1.2deg); transition: transform .35s var(--ease); max-width: 460px; justify-self: end; width: 100%; }
.teaser-mock:hover { transform: rotate(0) translateY(-3px); color: var(--ink); }
.tm-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tm-row em { font: 700 .95rem var(--head); }
.tm-seg { display: flex; gap: 4px; background: var(--paper); border-radius: 10px; padding: 3px; }
.tm-seg i { font-style: normal; min-width: 42px; height: 34px; display: grid; place-items: center; border-radius: 8px; font-weight: 700; color: var(--muted); }
.tm-seg i.on { background: var(--forest); color: var(--white); }
.tm-result { margin-top: 6px; display: flex; gap: 8px; align-items: center; background: var(--forest); color: var(--white); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.tm-result b { margin-left: auto; font: 700 1.25rem var(--head); color: var(--ember2); }
.tm-bars { display: grid; gap: 6px; }
.tm-bars i { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--moss) calc(var(--v) * 100%), var(--paper2) 0); }
@media (max-width: 800px) { .teaser-mock { justify-self: stretch; max-width: none; transform: none; } }

/* Scroll reveal (enabled by app.js only) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* Reading progress */
.read-progress { position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; pointer-events: none; }
.read-progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--ember), var(--ember2)); }

/* Article: two columns on wide screens */
.article-grid { display: grid; grid-template-columns: minmax(0, 800px) 260px; gap: 56px; justify-content: space-between; align-items: start; }
.article-grid > .article { max-width: none; min-width: 0; }
.article-side { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: auto; margin-top: 108px; scrollbar-width: thin; }
.side-sticky { display: grid; gap: 22px; padding-bottom: 12px; }
.side-title { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.side-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--paper2); }
.side-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: .88rem; line-height: 1.4; color: var(--muted); text-decoration: none; transition: color .15s, border-color .15s; }
.side-toc a:hover { color: var(--ink); }
.side-toc a.active { color: var(--ink); font-weight: 600; border-left-color: var(--accent); }
.toc a.active { color: var(--accent); font-weight: 600; }
.side-tools { display: grid; gap: 8px; }
.side-tools a { display: flex; gap: 10px; align-items: center; background: var(--white); border-radius: 12px; padding: 9px 12px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 600; line-height: 1.3; border: 2px solid transparent; transition: border-color .15s; }
.side-tools a:hover { border-color: var(--accent); color: var(--ink); }
.side-tools a span { color: var(--white); background: var(--accent); border-radius: 8px; padding: 5px; display: flex; flex: none; }
.side-top { font-size: .86rem; color: var(--muted); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.side-top .icon { transform: rotate(-90deg); }
@media (max-width: 1099px) {
  .article-grid { display: block; }
  .article-side { display: none; }
}
@media (min-width: 1100px) { .toc-inline { display: none; } }

/* Article details */
.steps li { transition: box-shadow .2s; }
.steps li:hover { box-shadow: var(--shadow-lg); }
.faq details { transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-lg); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--body); color: var(--accent); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.pager a { transition: box-shadow .2s, transform .2s; }
.pager a:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
section[id], h2[id], h3[id] { scroll-margin-top: 90px; }

/* Mobile */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 40px 16px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .pillar-head, .tool-head { gap: 14px; }
  .pillar-icon { padding: 10px; border-radius: 14px; }
  .pillar-icon .icon-xl { width: 40px; height: 40px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .facts { padding: 16px; }
  .steps li { padding: 14px; gap: 12px; }
  .step-num { width: 34px; height: 34px; font-size: 1rem; }
  .kit-summary strong { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

@media print { .js-reveal .reveal { opacity: 1; transform: none; } .article-side, .read-progress { display: none !important; } .article-grid { display: block; } }

/* ── Visual step guides (app/scenes.php) ───────────── */
.steps-visual { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; counter-reset: none; }
.steps-visual li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: 12px 12px; padding: 0 0 16px; overflow: hidden; align-content: start; }
.steps-visual .step-img { grid-column: 1 / -1; line-height: 0; background: #fffaf0; border-bottom: 1px solid var(--paper2); }
.steps-visual .step-img svg, .vis-img svg, .vis-img img { width: 100%; height: auto; display: block; }
.steps-visual .step-num { margin-left: 16px; width: 36px; height: 36px; font-size: 1.05rem; }
.steps-visual .step-txt { padding-right: 16px; }
.steps-visual h3 { margin: 4px 0 4px; font-size: 1.08rem; }
.steps-visual p { font-size: .95rem; line-height: 1.55; }
.vis { margin: 1.8em 0; }
.vis-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.vis-grid .vis-card { margin: 0; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.vis-img { position: relative; line-height: 0; background: #fffaf0; }
.vis-card .vis-img { border-bottom: 1px solid var(--paper2); }
.vis-n { position: absolute; left: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 .95rem/1 var(--head); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.vis-txt { padding: 12px 14px 14px; }
.vis-txt strong { display: block; font-family: var(--head); line-height: 1.25; margin-bottom: 4px; }
.vis-txt p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--ink); }
.vis-fig { margin: 1.8em auto; max-width: 640px; }
.vis-fig .vis-img { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.vis-fig figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; text-align: center; }
.gd-img { width: min(560px, 92vw, 52vh * 4 / 3); margin: 10px auto 0; line-height: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.gd-img svg { width: 100%; height: auto; display: block; }
@media (max-width: 640px) {
  .steps-visual, .vis-grid { grid-template-columns: 1fr; }
}
@media print {
  .steps-visual, .vis-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .steps-visual li, .vis-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}
