/* KitNotes round 5 (DENE-2434). Tokens and type from the DENE-2452 tool-site template
   (palette from ShrimpReel, MIT, see /LICENSE-shrimpreel.txt); slider from its gallery shell. */
:root {
  --bg: #f6f6f3; --bg-soft: #ecece6; --card: #fff; --fg: #17181c; --muted: #5d6170; --line: #e1e2e6;
  --ink: #1e2a4a; --ink-fg: #f5f7fb; --accent: #3b5bdb; --accent-hover: #2f4bc4; --accent-text: #3049b8; --ok: #047857;
  --font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shadow: 0 1px 2px rgba(23, 24, 28, .04), 0 8px 24px -16px rgba(30, 42, 74, .22);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.65 var(--font-sans); }
a { color: var(--accent-text); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
.in { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; color: var(--fg); }
h1 { font-size: 2.5rem; line-height: 1.12; margin: .2em 0 .45em; }
h2 { font-size: 1.85rem; line-height: 1.2; margin: 0 0 .55em; }
h3 { font-size: 1.12rem; line-height: 1.35; margin: 1.6em 0 .5em; }
h4 { font-size: 1.02rem; margin: 0 0 .2em; }
code { background: var(--bg-soft); border-radius: 5px; padding: 1px 5px; font-size: .86em; overflow-wrap: anywhere; }
pre { background: var(--ink); color: var(--ink-fg); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: .82rem; line-height: 1.55; }
input, select, button, textarea { font: inherit; max-width: 100%; }
input, select, textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--fg); }
textarea { width: 100%; }
button { background: var(--ink); color: var(--ink-fg); border: 0; border-radius: 10px; padding: 9px 16px; font-weight: 600; cursor: pointer; }
button:hover { background: #2a3963; }
.ok { color: var(--ok); font-weight: 700; } .bad { color: #b42318; font-weight: 700; }
.src { font-size: .78rem; color: var(--muted); white-space: nowrap; } .src a { color: var(--muted); }
.ad { min-height: 90px; margin: 16px 0; }

/* top strip and header */
.topnote { margin: 0; background: var(--ink); color: #d9deeb; font-size: .8rem; line-height: 1.45; padding: 7px 0; }
.topnote .in { display: block; }
.topnote b { color: #fff; } .topnote a { color: #c7d2fe; }
.sitehead { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.sitehead .in { display: flex; align-items: center; gap: 18px; height: 64px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; flex: none; }
.brand:hover { color: var(--fg); }
.bn { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.bs { font-size: .78rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.mainnav { display: flex; gap: 2px; flex: 1; justify-content: center; min-width: 0; }
.mainnav a { padding: 7px 11px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.mainnav a:hover { background: var(--bg-soft); color: var(--fg); }
.mainnav a[aria-current] { color: var(--fg); font-weight: 600; background: var(--bg-soft); }
.mainnav .m-only { display: none; }
.cta { display: flex; gap: 8px; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: .9rem; text-decoration: none; line-height: 1.2; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); color: #fff; }
.btn.ghost { background: var(--card); color: var(--fg); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: #c5c8d2; color: var(--fg); }
.menu-btn { display: none; background: var(--card); color: var(--fg); border: 1px solid var(--line); padding: 8px 12px; font-size: .88rem; }
.menu-btn:hover { background: var(--bg-soft); }

/* home hero */
.hero { background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); padding: 44px 0 28px; }
.hero h1 { font-size: 2.3rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.eyebrow { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-text); }
.hero-copy > p:not([class]) { font-size: 1.05rem; color: #3a3d48; margin: 0 0 18px; }
.hero-dl { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: 0 18px 40px -24px rgba(30, 42, 74, .45); }
.hd-k { margin: 0 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ok); }
.dl-btn { display: block; background: var(--accent); color: #fff; text-decoration: none; border-radius: 12px; padding: 13px 18px; }
.dl-btn:hover { background: var(--accent-hover); color: #fff; }
.dl-main { display: block; font-size: 1.15rem; font-weight: 700; }
.dl-sub { display: block; font-size: .82rem; opacity: .92; overflow-wrap: anywhere; }
.dl-note { margin: 10px 0 8px; font-size: .88rem; }
.dl-sha { font-size: .82rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); }
.dl-sha code { font-size: .72rem; }
.dl-sha[hidden] { display: none; }
button.copy { padding: 3px 10px; font-size: .78rem; background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; font-weight: 600; }
button.copy:hover { background: var(--bg-soft); }
.fresh { margin: 12px 0 0; font-size: .8rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.alt-cta { margin: 14px 2px 0; font-size: .95rem; } .alt-cta a { font-weight: 600; text-decoration: none; }
.hero-shot { margin: 4px 0 0; }
.frame { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(30, 42, 74, .5); }
.dots { display: flex; gap: 6px; padding: 9px 12px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #cfd2da; }
.frame img { border: 0; border-radius: 0; }
.hero-foot { margin-top: 26px; }
.hero-foot .notice { margin: 0 0 14px; }
.notice { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: 10px 14px; font-size: .86rem; color: #3a3d48; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips a { display: inline-block; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .84rem; color: var(--fg); text-decoration: none; }
.chips a:hover { border-color: var(--accent); color: var(--accent-text); }
.guides { font-size: .88rem; margin: 12px 0 0; color: var(--muted); }

/* figures and lightbox */
figure { margin: 16px 0; }
figure img { border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: zoom-in; }
figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }
dialog.lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
dialog.lb::backdrop { background: rgba(10, 12, 20, .88); }
dialog.lb img { max-width: 96vw; max-height: 84vh; width: auto; border-radius: 8px; background: #fff; margin: auto; }
dialog.lb p { color: #eee; font-size: .85rem; margin: 8px 4px 0; max-width: 90vw; }
dialog.lb button { position: fixed; top: 10px; right: 12px; background: #fff; color: #111; }

/* home sections */
.home { max-width: 960px; padding-bottom: 56px; }
.sec { padding: 44px 0 8px; }
.sec + .sec { border-top: 1px solid var(--line); margin-top: 28px; }
.sec-intro { padding-top: 28px; }
.sec > h2::before, .doc > h2::before { content: ''; display: block; width: 36px; height: 3px; border-radius: 2px; background: var(--accent); margin-bottom: 14px; }
.sec > p, .sec > ul, .sec > h3 { max-width: 780px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 18px 0; box-shadow: var(--shadow); }
.about { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 0 0 18px; font-size: .9rem; box-shadow: var(--shadow); }
.about > b { display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 4px; }
.about ul { margin: 0; padding-left: 1.15em; } .about li { margin: 3px 0; }
.glance h2 { font-size: 1.45rem; }
table.facts, table.facts tbody { display: block; border: 0; background: none; box-shadow: none; margin: 0; border-radius: 0; overflow: visible; }
table.facts tbody { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
table.facts tr { display: flex; flex-direction: column; gap: 2px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
table.facts tr:last-child { grid-column: 1 / -1; }
table.facts tr > th, table.facts tr > td { border: 0; padding: 0; background: none; }
table.facts tr > th { font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
table.facts td { font-weight: 500; }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps > li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); min-width: 0; font-size: .93rem; }
.steps > li > h3 { margin: 0 0 .5em; font-size: 1.04rem; }
.steps > li > h3::before { counter-increment: s; content: counter(s); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--ink-fg); font-size: .85rem; margin-bottom: 10px; }
.steps figure { margin: 12px 0 0; }

/* tables */
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: .92rem; margin: 16px 0; box-shadow: var(--shadow); }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
tr:last-child > th, tr:last-child > td { border-bottom: 0; }
tr:first-child > th { background: #f3f3ef; font-size: .84rem; }
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tw table { min-width: 600px; }
.tw-hint { display: none; font-size: .82rem; color: var(--muted); margin: 0 0 4px; }
.ts td:first-child { width: 38%; }

/* platform cards */
.pfs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.pf { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; min-width: 0; box-shadow: var(--shadow); }
.pf.wide { grid-column: 1 / -1; }
.pf h3, .pf h4 { margin: 0 0 .2em; font-size: 1.08rem; }
.pf-n { margin: 0 0 .5em; font-size: .85rem; color: var(--muted); }
.files { list-style: none; padding: 0; margin: 0; }
.files li { padding: 8px 0; border-top: 1px solid var(--line); font-size: .87rem; }
.files a { word-break: break-all; font-weight: 600; }
.files .meta { display: block; color: var(--muted); font-size: .8rem; }
.files .sha { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .78rem; color: var(--muted); }
.pf details { margin-top: 8px; } .pf summary { cursor: pointer; font-size: .87rem; font-weight: 600; }

/* checker tool panel */
#checker { border-color: #c9d3f6; background: linear-gradient(180deg, #f5f7ff 0%, var(--card) 70%); }
#checker h3, #checker h2 { margin-top: 0; }
#checker input[type=file] { width: 100%; background: var(--card); }

/* labels */
.tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .02em; border-radius: 999px; padding: 1px 8px; margin-right: 6px; vertical-align: 1px; }
.t-off { background: #e3f4ea; color: #05603a; } .t-doc { background: #e8edfd; color: #2c3fa0; } .t-com { background: #f2e9fb; color: #6b2a96; }
.t-us { background: #fff1d6; color: #7a4b00; } .t-miss { background: #fbe4e1; color: #8c1d14; }

/* example, gallery, slider */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair figure { margin: 0; }
.ba-wrap { margin: 6px 0 14px; }
.ba { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1000 / 672; --pos: 50%; background: var(--bg-soft); border: 1px solid var(--line); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border: 0; border-radius: 0; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .35); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; padding: 0; border: 0; }
.ba-tag { position: absolute; top: 10px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(0, 0, 0, .55); color: #fff; padding: 3px 9px; border-radius: 999px; pointer-events: none; }
.ba-tag.l { left: 10px; } .ba-tag.r { right: 10px; }
.ba-caps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: .8rem; color: var(--muted); }
.ba-caps p { margin: 8px 0 0; } .ba-caps p:last-child { text-align: right; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.gallery figure img { border: 0; border-radius: 0; transition: transform .3s ease; }
.gallery figure:hover img { transform: scale(1.015); }
.gallery figcaption { padding: 10px 14px 14px; margin: 0; }

/* comparison */
.cap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.cap > div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.cap h3 { margin: 0 0 .5em; font-size: 1.02rem; }
.cap ul { list-style: none; padding: 0; margin: 0; }
.cap li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .91rem; } .cap li:last-child { border: 0; }
.yes { border-top: 4px solid var(--ok) !important; } .no { border-top: 4px solid #b42318 !important; }

/* resources */
.res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.res a.r { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--fg); text-decoration: none; transition: border-color .15s, transform .15s; }
.res a.r:hover { border-color: var(--accent); transform: translateY(-1px); }
.res a.r b { display: block; margin: 6px 0 2px; } .res a.r span:not(.tag) { font-size: .85rem; color: var(--muted); }

/* FAQ accordion */
.qa { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; max-width: 820px; }
.qa summary { list-style: none; cursor: pointer; padding: 14px 48px 14px 18px; font-weight: 600; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; font-weight: 400; color: var(--muted); }
.qa[open] summary::after { content: '–'; }
.qa[open] { border-color: #c9d3f6; }
.qa-a { padding: 0 18px 16px; color: #2c2f38; }
.sources { font-size: .86rem; color: var(--muted); padding-left: 1.1em; } .sources li { margin: 5px 0; }

/* inner pages */
.pagehead { background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); padding: 26px 0 22px; }
.pagehead h1 { font-size: 2.3rem; margin: .25em 0 0; max-width: 860px; }
.crumbs { font-size: .84rem; color: var(--muted); margin: 0; } .crumbs a { color: var(--muted); }
.docs { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; padding-top: 30px; padding-bottom: 56px; }
.toc { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; font-size: .87rem; }
.toc-h { margin: 0 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc a { color: var(--muted); text-decoration: none; padding: 5px 12px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--fg); border-left-color: var(--accent); }
.doc { min-width: 0; max-width: 860px; }
.doc > p, .doc > ul, .doc > ol { max-width: 780px; }
.doc > h2 { margin-top: 1.9em; }
.launch { background: var(--ink); border-radius: 18px; padding: 16px; margin: 0 0 24px; color: var(--ink-fg); box-shadow: 0 30px 60px -30px rgba(30, 42, 74, .6); }
.launch { display: flex; flex-direction: column; }
.launch .btns, .launch > .src { order: -1; }
.launch > .btns { margin-top: 2px; }
.launch > .src { margin: 0 0 12px; }
.launch img { border-radius: 10px; }
.launch .btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 14px 0 6px; }
.launch .btns a { color: #c7d2fe; font-weight: 600; }
.launch .go { font-size: 1.05rem; padding: 12px 22px; background: var(--accent); color: #fff; }
.launch .go:hover { background: var(--accent-hover); }
.launch #fs { background: var(--card); color: var(--fg); }
.launch .src, .launch .src a { color: #b9c2da; }
.launch iframe { width: 100%; height: min(80vh, 760px); border: 0; border-radius: 10px; background: #262626; display: block; }
.hashes td:nth-child(3) { font-family: ui-monospace, monospace; font-size: .8rem; word-break: break-all; }
#verify-out ul { font-size: .88rem; }

/* legal pages */
.legal { max-width: 800px; padding-top: 36px; padding-bottom: 56px; }
.prose { padding: 28px 32px; }
.prose h1 { font-size: 2.1rem; margin-top: 0; }
.prose table { box-shadow: none; }

/* footer */
.sitefoot { background: var(--ink); color: #c9d0e2; padding: 44px 0 22px; font-size: .9rem; }
.sitefoot .in:first-child { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr 1.3fr; gap: 28px; }
.sitefoot .brand { color: #fff; } .sitefoot .logo rect { fill: var(--accent); }
.fbrand p { margin: 10px 0 0; font-size: .84rem; color: #aab4cf; max-width: 260px; }
.fh { margin: 0 0 10px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8f9abb; }
.sitefoot a:not(.brand) { display: block; color: #e6e9f2; text-decoration: none; padding: 3px 0; overflow-wrap: anywhere; }
.sitefoot a:hover { color: #fff; text-decoration: underline; }
.fine { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; color: #8f9abb; }

@media (max-width: 960px) {
  .mainnav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 12px 12px; box-shadow: 0 16px 30px -20px rgba(30, 42, 74, .4); }
  .sitehead.open .mainnav { display: flex; }
  .mainnav a { padding: 11px 12px; font-size: .98rem; }
  .mainnav .m-only { display: block; }
  .menu-btn { display: inline-flex; }
  .sitehead .in { justify-content: space-between; gap: 10px; }
  .cta { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .steps { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; gap: 18px; padding-top: 18px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc-h { width: 100%; margin: 0; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; background: var(--card); font-size: .82rem; }
  .sitefoot .in:first-child { grid-template-columns: 1fr 1fr; }
  .fbrand { grid-column: 1 / -1; }
  .res { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  h1, .hero h1 { font-size: 1.75rem; } .pagehead h1 { font-size: 1.7rem; } h2 { font-size: 1.5rem; }
  .hero-copy > p:not([class]) { font-size: .96rem; margin-bottom: 14px; }
  .bs, .cta .ghost { display: none; }
  .hero { padding-top: 22px; }
  .gallery, .cap, .res, .pfs, .pair { grid-template-columns: 1fr; }
  table.facts tbody { grid-template-columns: 1fr 1fr; }
  .tw-hint { display: block; }
  .card, .prose { padding: 16px; }
  .sec { padding-top: 32px; }
}
@media (max-width: 400px) { table.facts tbody { grid-template-columns: 1fr; } .btn { padding: 8px 12px; } }
