/* whywontmy.com: navy, safety orange and clean off-white. Mobile first. */
:root {
  --ink: #17202b; --muted: #5a6573; --navy: #1d3557; --navy2: #284873; --orange: #c2410c; --orange2: #ffedd5; --red: #b91c1c; --red2: #fdecec;
  --bg: #f6f8fa; --line: #dde4ea; --card: #fff; --link: #1d4ed8; --ok: #0f766e; --ok2: #e3f4f1;
  --r: 14px; --shadow: 0 1px 2px rgba(23, 32, 43, .06), 0 6px 18px rgba(23, 32, 43, .05);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); letter-spacing: -.2px; }
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: .4rem 0 .5rem; font-weight: 800; }
h2 { font-size: 1.28rem; margin: 0 0 .7rem; font-weight: 750; }
h3 { font-size: 1.08rem; margin: 1rem 0 .4rem; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px; z-index: 9; }
.skip:focus { left: 8px; }

/* header */
.top { background: var(--navy); color: #fff; border-bottom: 4px solid var(--orange); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 1.12rem; font-weight: 600; }
.brand b { color: #fdba74; font-weight: 800; }
.brand img { border-radius: 8px; }
.top nav { display: flex; flex-wrap: wrap; gap: 2px 4px; font-size: .92rem; }
.top nav a { color: #dbe4ee; text-decoration: none; padding: 4px 8px; border-radius: 6px; }
.top nav a:hover, .top nav a[aria-current] { background: var(--navy2); color: #fff; }

main.wrap { padding-bottom: 32px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2px 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #9aa5b1; }
.lede { font-size: 1.08rem; color: #2c3744; max-width: 780px; margin: 0 0 14px; }
.checked { font-size: .82rem; color: var(--muted); margin: -6px 0 16px; }

/* panels */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 0 0 18px; box-shadow: var(--shadow); min-width: 0; }
.note { font-size: .88rem; color: var(--muted); }
.big { font-size: 1.06rem; }
.safety { background: var(--red2); border: 1px solid #f5c2c2; border-left: 6px solid var(--red); border-radius: 12px; padding: 12px 14px; margin: 0 0 18px; font-size: .93rem; }
.safety b { color: var(--red); }
.safety ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.safe-note { font-size: .92rem; background: var(--ok2); border-left: 4px solid var(--ok); padding: 9px 12px; border-radius: 8px; }
.tag { display: inline-block; font-size: .72rem; line-height: 1.3; padding: 1px 7px; border-radius: 99px; background: var(--orange2); color: #9a3412; vertical-align: 1px; white-space: nowrap; font-weight: 600; }
.badge { display: inline-block; font-size: .72rem; padding: 1px 7px; margin-right: 6px; border-radius: 99px; background: var(--red); color: #fff; font-weight: 700; vertical-align: 1px; }
.src { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.src a { color: var(--muted); }

/* quick answer */
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0 0 18px; }
.chip { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--orange); border-radius: 12px; padding: 10px 12px; min-width: 0; box-shadow: var(--shadow); }
.chip.ok { border-left-color: var(--ok); }
.chip.pro { border-left-color: var(--red); }
.chip span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.chip b { display: block; font-size: 1rem; line-height: 1.35; color: var(--navy); font-weight: 650; }

/* steps */
ol.steps { padding-left: 0; list-style: none; counter-reset: st; margin: .4rem 0 .6rem; }
ol.steps > li { counter-increment: st; position: relative; padding: 10px 10px 10px 46px; border-top: 1px solid var(--line); }
ol.steps > li::before { content: counter(st); position: absolute; left: 6px; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
ol.steps > li.pro::before { background: var(--red); }
.walking ol.steps > li.later { opacity: .45; }
.walking ol.steps > li.done { opacity: .6; }
.walking ol.steps > li.done::before { content: "✓"; background: var(--ok); }
.walking ol.steps > li.cur { background: #fff7ed; border-radius: 10px; outline: 2px solid #fdba74; }
.walkbar { margin-top: 8px; }
.btn { font: inherit; font-size: .95rem; padding: 9px 14px; border-radius: 9px; border: 1px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; font-weight: 600; }
.btn:hover { background: #eef3f8; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ok:hover { background: #0d635c; }
.walkbtn { margin: 0 0 8px; background: var(--navy); color: #fff; }
.walkbtn:hover { background: var(--navy2); }
.tbtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }

/* decision tree */
.tree { border-top: 6px solid var(--orange); }
.tscreen h3 { margin-top: .2rem; font-size: 1.2rem; }
.tscreen h3:focus { outline: none; }
.topts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 10px 0; }
.topt { font: inherit; text-align: left; padding: 12px 14px; border-radius: 11px; border: 1px solid #c7d2dd; background: #fff; color: var(--ink); cursor: pointer; min-width: 0; }
.topt b { display: block; color: var(--navy); }
.topt span { display: block; font-size: .84rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.topt:hover { border-color: var(--orange); background: #fffaf5; }
.topt.danger { border-color: #f1b5b5; background: #fff8f8; }
.topt.danger b { color: var(--red); }
.thelp { font-size: .9rem; color: var(--muted); margin: .2rem 0; }
.tnote { font-size: .9rem; background: #eef3f8; border-radius: 8px; padding: 8px 10px; }
.tnav { display: flex; gap: 14px; margin: 12px 0 0; }
.tlink { font: inherit; font-size: .9rem; background: none; border: 0; padding: 4px 0; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.tstep { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 10px 0; }
.tcount { font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 0 0 4px; font-weight: 600; }
.tq { font-size: 1.06rem; margin: 0 0 6px; }
.tsrc { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.tdone { background: var(--ok2); border-left: 4px solid var(--ok); padding: 10px 12px; border-radius: 8px; margin: 0; }
.tdone.pro { background: var(--orange2); border-left-color: var(--orange); }
.tdone p { margin: .3rem 0 0; }
.treset { font-size: .95rem; background: #eef3f8; padding: 8px 12px; border-radius: 8px; }
.tstop { background: var(--red2); border: 2px solid var(--red); border-radius: 12px; padding: 12px 16px; }
.tstop h3 { color: var(--red); }
.tsteps { padding-left: 1.2rem; }
.tsteps li { margin: .35rem 0; }
.tmore { font-weight: 600; }

/* tables, lists, faq, sources */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 12px; max-width: 100%; }
table.ref { border-collapse: collapse; width: 100%; font-size: .92rem; }
table.ref th, table.ref td { text-align: left; vertical-align: top; padding: 8px 9px; border-bottom: 1px solid var(--line); }
table.ref thead th { background: var(--navy); color: #fff; font-weight: 600; }
table.ref tbody th { font-weight: 700; color: var(--navy); white-space: nowrap; }
table.ref tbody tr:nth-child(even) { background: #f9fbfc; }
.plain { padding-left: 1.2rem; margin: .3rem 0 .8rem; }
.plain li { margin: .3rem 0; }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq details p { margin: .5rem 0 0; }
.srcs { padding-left: 1.2rem; font-size: .88rem; }
.srcs li { margin: .35rem 0; }
.links { list-style: none; padding: 0; margin: .3rem 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.prose p, .prose li { max-width: 780px; }
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.hub a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; text-decoration: none; color: var(--ink); min-width: 0; }
.hub a b { display: block; color: var(--navy); }
.hub a span { font-size: .85rem; color: var(--muted); }
.hub a:hover { border-color: var(--orange); }
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 18px; }
.apps a { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); min-width: 0; }
.apps a:hover { border-color: var(--orange); }
.apps img { width: 52px; height: 52px; flex: none; }
.apps b { display: block; color: var(--navy); font-size: 1.05rem; }
.apps span { font-size: .85rem; color: var(--muted); line-height: 1.35; display: block; }
.code { scroll-margin-top: 12px; }
.code h2 .tag { font-size: .8rem; }

/* shop cards */
.shop { border-top: 5px solid #f59e0b; }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 10px 0; }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; min-width: 0; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); }
.pimg { display: flex; justify-content: center; padding: 10px; background: #f3f7fa; }
.pimg img { width: 96px; height: 96px; }
.pbody { padding: 8px 10px 10px; font-size: .85rem; line-height: 1.4; }
.pbody b { display: block; color: var(--navy); font-size: .92rem; margin-bottom: 2px; }
.pbody span { color: var(--muted); }
.pbody em { display: block; margin-top: 6px; font-style: normal; font-weight: 600; color: var(--orange); }

/* footer */
footer { background: var(--navy); color: #d5dee8; font-size: .88rem; padding: 26px 0 18px; }
footer a { color: #fff; }
footer b { color: #fff; display: block; margin-bottom: 4px; }
.fcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 12px; }
footer .links { flex-direction: column; gap: 3px; }

@media (max-width: 560px) {
  .panel { padding: 14px 12px; }
  .wrap { padding: 0 12px; }
  .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pimg img { width: 72px; height: 72px; }
  .top nav { font-size: .85rem; }
  .topts { grid-template-columns: 1fr; }
  ol.steps > li { padding-left: 40px; }
  table.ref { font-size: .86rem; }
  table.ref th, table.ref td { padding: 6px; }
  table.ref tbody th { white-space: normal; }
}
@media print {
  .top, .shop, footer, .crumbs, .tree, .walkbtn { display: none !important; }
  body { background: #fff; }
  .panel { box-shadow: none; }
}
