/* swairm website. One stylesheet for every page; light and dark follow the system. */
:root {
  --bg: #f7f8f6; --bg2: #eef1ec; --ink: #161a18; --muted: #59605b; --line: #dadfd9; --card: #ffffff; --code: #eff2ee;
  --accent: #2d5fa8; --accent-2: #5b8ee0; --accent-ink: #ffffff; --accent-soft: #e3ebf8;
  --ok: #1d7a4b; --ok-soft: #dff2e7; --warn: #915700; --warn-soft: #fbeed6; --bad: #b3261e;
  --violet: #6a3fa0; --violet-soft: #eee6f8;
  --glow: rgba(45, 95, 168, .18);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --r: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 24px 48px -20px rgba(20,30,50,.28);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1211; --bg2: #141817; --ink: #e8ebe8; --muted: #a0a8a2; --line: #282d2a; --card: #171b19; --code: #1e2320;
    --accent: #84aef0; --accent-2: #b7a2f0; --accent-ink: #0b1626; --accent-soft: #19263a;
    --ok: #6fcf9c; --ok-soft: #14301f; --warn: #e8b766; --warn-soft: #36290f; --bad: #ff8a80;
    --violet: #c4a6ee; --violet-soft: #2a1f3d;
    --glow: rgba(132, 174, 240, .16);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 30px 60px -24px rgba(0,0,0,.7);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
code, pre { font-family: var(--mono); font-size: .9em; }
:not(pre) > code { background: var(--code); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; overflow-wrap: anywhere; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.i { width: 20px; height: 20px; flex: none; }
.muted, .small { color: var(--muted); font-size: 14px; }

/* header */
header.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand svg { width: 28px; height: 28px; }
nav.links { display: flex; align-items: center; gap: 22px; font-size: 14.5px; }
nav.links > a, .menu summary { color: var(--muted); text-decoration: none; cursor: pointer; }
nav.links > a:hover, .menu summary:hover { color: var(--ink); }
nav.links .gh { display: inline-flex; align-items: center; gap: 6px; }
nav.links .gh .i { width: 17px; height: 17px; }
@media (max-width: 900px) { nav.links a.opt { display: none; } }
@media (max-width: 560px) { nav.links .gh span { display: none; } nav.links { gap: 14px; } }
.menu { position: relative; }
.menu summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); margin-left: 4px; }
.menu[open] summary { color: var(--ink); }
.mega { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-38%); width: min(760px, 94vw); list-style: none; margin: 0; padding: 10px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
@media (max-width: 700px) { .mega { grid-template-columns: 1fr; position: fixed; left: 3vw; right: 3vw; width: auto; transform: none; top: 66px; max-height: 78vh; overflow: auto; } }
.mega a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.mega a:hover, .mega a[aria-current] { background: var(--bg2); }
.mega b { display: block; font-size: 14.5px; font-weight: 650; }
.mega small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }

/* icon chips, by hue */
.mi { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex: none; }
.mi .i { width: 20px; height: 20px; }
.accent { --h: var(--accent); --hs: var(--accent-soft); }
.ok { --h: var(--ok); --hs: var(--ok-soft); }
.warn { --h: var(--warn); --hs: var(--warn-soft); }
.violet { --h: var(--violet); --hs: var(--violet-soft); }
.mi.accent, .mi.ok, .mi.warn, .mi.violet { background: var(--hs); color: var(--h); }

/* buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.buttons.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 650; font-size: 15px; text-decoration: none;
  border: 1px solid var(--line); color: var(--ink); background: var(--card); transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.btn:hover { border-color: var(--muted); transform: translateY(-1px); }
.btn .i { width: 17px; height: 17px; }
.btn.primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--violet))); border-color: transparent; color: var(--accent-ink); box-shadow: 0 8px 24px -10px var(--accent); }
.btn.primary:hover { box-shadow: 0 12px 30px -10px var(--accent); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); }
.btn.small { padding: 7px 13px; font-size: 14px; border-radius: 9px; }
nav.links .btn.primary { color: var(--accent-ink); }

/* type */
.grad { background: linear-gradient(100deg, var(--accent) 10%, var(--violet) 60%, var(--ok) 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
section { padding: 88px 0; position: relative; }
section + section { border-top: 1px solid var(--line); }
section.tight { padding: 32px 0 64px; border-top: 0; }
section h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.028em; line-height: 1.1; margin: 0 0 14px; text-wrap: balance; max-width: 24ch; }
section .sub { color: var(--muted); font-size: 18px; max-width: 64ch; margin: 0 0 40px; }

/* hero */
.hero, .phero { overflow: hidden; padding: 84px 0 72px; border-bottom: 1px solid var(--line);
  background: radial-gradient(1100px 520px at 78% -8%, var(--glow), transparent 60%), radial-gradient(800px 420px at -6% 18%, color-mix(in srgb, var(--violet) 12%, transparent), transparent 60%); }
.hero .wrap, .phero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -.04em; margin: 18px 0 22px; max-width: 15ch; text-wrap: balance; }
.hero .lead, .phero .lead { font-size: clamp(17px, 2.1vw, 21px); color: var(--muted); max-width: 60ch; margin: 0 0 30px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-size: 14px; }
.pill b { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 2px 9px; font-size: 12px; letter-spacing: .02em; }
.pill .i { width: 15px; height: 15px; color: var(--muted); }
.pill:hover { border-color: var(--muted); }
.swarm { position: absolute; inset: 0 0 0 52%; pointer-events: none; mask-image: radial-gradient(80% 60% at 60% 30%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(80% 60% at 60% 30%, #000 30%, transparent 80%); }
@media (max-width: 760px) { .swarm { display: none; } }
.swarm i { position: absolute; border-radius: 50%; opacity: .5; animation: drift 14s ease-in-out infinite alternate; }
.swarm i.a { background: var(--accent); } .swarm i.o { background: var(--ok); } .swarm i.v { background: var(--violet); }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(26px, -18px) scale(1.15); opacity: .75; } 100% { transform: translate(-18px, 14px) scale(.9); opacity: .35; } }
.note { font-size: 14px; color: var(--muted); max-width: 76ch; margin: 12px 0 0; }
.hero-shot { margin-top: 56px; perspective: 1600px; }
.hero-shot .window { transform: rotateX(6deg); transform-origin: 50% 0; transition: transform .6s ease; box-shadow: 0 50px 100px -40px var(--accent), var(--shadow); }
.hero-shot .window:hover { transform: rotateX(0); }
ul.proof { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
ul.proof li { background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
ul.proof b { display: block; font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
ul.proof li:nth-child(1) b { color: var(--accent); } ul.proof li:nth-child(2) b { color: var(--ok); } ul.proof li:nth-child(3) b { color: var(--violet); } ul.proof li:nth-child(4) b { color: var(--warn); }
ul.proof span { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 4px; }
@media (max-width: 760px) { ul.proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* install */
.install { max-width: 860px; }
.itabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.itabs button { border: 0; background: transparent; color: var(--muted); font: 600 13.5px var(--sans); padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.itabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.cmd { display: flex; align-items: stretch; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.cmd[hidden] { display: none; }
.cmd pre { margin: 0; padding: 15px 18px; overflow-x: auto; flex: 1; font-size: 14px; line-height: 1.5; }
.cmd pre::before { content: "$ "; color: var(--muted); user-select: none; }
.copy { flex: none; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); font: 650 13px var(--sans); padding: 0 18px; cursor: pointer; min-width: 80px; }
.copy:hover { color: var(--ink); background: var(--code); }
.copy.done { color: var(--ok); }

/* windows and terminals */
.window { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.window .bar, .term .bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.window .bar i, .term .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window .bar i:nth-child(2), .term .bar i:nth-child(2) { background: #febc2e; }
.window .bar i:nth-child(3), .term .bar i:nth-child(3) { background: #28c840; }
.window .bar span, .term .bar span { margin: 0 auto; padding-right: 50px; font: 12px var(--mono); color: var(--muted); }
.window a { display: block; cursor: zoom-in; }
.window img { display: block; width: 100%; height: auto; }
.term { border-radius: var(--r); overflow: hidden; background: #0d1110; border: 1px solid #252b28; box-shadow: var(--shadow); color: #d7ddd9; }
.term .bar { background: #161b19; border-bottom-color: #252b28; }
.term .bar span { color: #7d8781; }
.term pre { margin: 0; padding: 18px 20px 22px; font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.term .p { color: #6fcf9c; } .term .cmdl { color: #fff; } .term .cm { color: #79847e; font-style: italic; }
.term .kw { font-weight: 700; padding: 1px 6px; border-radius: 5px; }
.term .kw.ok { color: #6fcf9c; background: rgba(111,207,156,.12); } .term .kw.warn { color: #f0c069; background: rgba(240,192,105,.12); }
.term .kw.info { color: #8fb6f4; background: rgba(143,182,244,.12); } .term .kw.bad { color: #ff8f86; background: rgba(255,143,134,.12); }

/* showcase */
.showcase-sec { background: linear-gradient(180deg, var(--bg2), var(--bg)); }
.tabrow { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.tabs { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding: 4px; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font: 600 14.5px var(--sans); padding: 9px 15px; border-radius: 999px; cursor: pointer; transition: all .15s ease; }
.tabs [role="tab"] .i { width: 17px; height: 17px; }
.tabs [role="tab"]:hover { color: var(--ink); border-color: var(--muted); }
.tabs [role="tab"][aria-selected="true"] { background: var(--hs); border-color: var(--h); color: var(--h); }
.nav { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.nav:hover { border-color: var(--muted); }
.showcase:not(.js) .nav, .showcase:not(.js) .dots { display: none; }
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 40px; box-shadow: var(--shadow); }
.showcase:not(.js) .panel + .panel { margin-top: 20px; }
.panel[hidden] { display: none; }
.showcase.js .panel:not([hidden]) { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .panel { grid-template-columns: 1fr; padding: 26px; gap: 26px; } }
.kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--h); background: var(--hs); padding: 4px 11px 4px 8px; border-radius: 999px; }
.kicker .i { width: 15px; height: 15px; }
.ptext h3 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.15; letter-spacing: -.025em; margin: 16px 0 12px; text-wrap: balance; }
.ptext > p { color: var(--muted); margin: 0 0 20px; }
ul.hl { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
ul.hl li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.ck { width: 20px; height: 20px; flex: none; padding: 3px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); stroke-width: 2.6; margin-top: 2px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }
.more .i { width: 17px; height: 17px; transition: transform .15s ease; }
.more:hover .i { transform: translateX(3px); }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: all .2s ease; }
.dots i.on { width: 26px; border-radius: 4px; background: var(--accent); }

/* before and after */
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .ba { grid-template-columns: 1fr; } }
.bacard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.bacard p { margin: 0; font-size: 15px; line-height: 1.45; }
.bacard .was { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bad) 60%, transparent); }
.bacard .now { color: var(--ink); font-weight: 600; }
.bacard .ar { color: var(--ok); width: 24px; height: 24px; }

/* steps */
ol.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
@media (max-width: 920px) { ol.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { ol.steps { grid-template-columns: 1fr; } }
ol.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; }
ol.steps .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--violet)); color: #fff; font-weight: 750; margin-bottom: 14px; }
ol.steps h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
ol.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery .window { transition: transform .2s ease; }
.gallery .window:hover { transform: translateY(-3px); }
.gallery figcaption { font-size: 14.5px; color: var(--muted); margin-top: 12px; }
.gallery figcaption b { color: var(--ink); }
.caption { font-size: 13px; color: var(--muted); margin-top: 22px; }

/* area cards */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .areas { grid-template-columns: 1fr; } }
.acard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; color: var(--ink); text-decoration: none; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.acard:hover { transform: translateY(-3px); border-color: var(--muted); box-shadow: var(--shadow); }
.acard h3 { margin: 14px 0 4px; font-size: 19px; letter-spacing: -.015em; }
.acard > p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.acard ul { margin: 0 0 16px; padding-left: 18px; font-size: 14px; color: var(--muted); }
.acard li { margin: 3px 0; }
.acard li::marker { color: var(--accent); }
.acard .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--accent); font-size: 14.5px; }
.acard .go .i { width: 16px; height: 16px; transition: transform .15s ease; }
.acard:hover .go .i { transform: translateX(3px); }

/* split, code, commands */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
pre.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; overflow-x: auto; margin: 0; font-size: 13.5px; line-height: 1.65; box-shadow: var(--shadow); }
.k { color: var(--accent); } .s { color: var(--ok); }
.cmdgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .cmdgrid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card h3 { margin: 0 0 10px; font-size: 17px; }
.card dl { margin: 0; }
.card dt { margin-top: 12px; } .card dt:first-child { margin-top: 0; }
.card dd { margin: 3px 0 0; color: var(--muted); font-size: 14.5px; }
ul.req { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
ul.req li { display: flex; gap: 10px; align-items: flex-start; }

/* call to action */
.cta { text-align: center; overflow: hidden; background: radial-gradient(700px 300px at 50% 0, var(--glow), transparent 70%), var(--bg2); }
.cta h2 { margin: 0 auto 12px; max-width: 22ch; }
.cta > .wrap > p { color: var(--muted); font-size: 18px; margin: 0 0 28px; }
.cta .install { margin: 0 auto; text-align: left; }

/* feature pages */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 6px; } .crumbs [aria-current] { color: var(--ink); margin: 0; }
.phgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .phgrid { grid-template-columns: 1fr; } }
.phero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.035em; margin: 18px 0 18px; text-wrap: balance; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
@media (max-width: 960px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feats { grid-template-columns: 1fr; } }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: border-color .15s ease; }
.feat:hover { border-color: var(--h, var(--accent)); }
.fn { font: 700 13px var(--mono); color: var(--h, var(--accent)); }
.feat h3 { margin: 8px 0 6px; font-size: 17.5px; letter-spacing: -.01em; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
.refs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 860px) { .refs { grid-template-columns: 1fr; } }
table.ref { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
table.ref td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.ref tr:first-child td { border-top: 0; }
table.ref td:first-child { width: 44%; }
table.ref td:last-child { color: var(--muted); }
.refs .small { margin-top: 12px; }
ul.decs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { ul.decs { grid-template-columns: 1fr; } }
ul.decs a { display: flex; gap: 12px; align-items: baseline; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; color: var(--ink); text-decoration: none; }
ul.decs a:hover { border-color: var(--muted); }
.dn { font: 700 13px var(--mono); color: var(--muted); }
.pngrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pncard { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; color: var(--ink); text-decoration: none; }
.pncard:hover { border-color: var(--muted); }
.pncard small { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); margin-bottom: 8px; }
.pncard small .i { width: 15px; height: 15px; }
.pncard b { font-size: 17px; }
.pncard.next { text-align: right; } .pncard.next small { justify-content: flex-end; }
.pncard.next { grid-template-columns: 1fr auto; } .pncard.next .mi { order: 2; }
.area .phero { background: radial-gradient(900px 460px at 80% -10%, color-mix(in srgb, var(--h) 22%, transparent), transparent 60%); }

/* footer */
footer.foot { border-top: 1px solid var(--line); padding: 56px 0 64px; font-size: 14.5px; color: var(--muted); }
footer.foot .wrap { display: grid; grid-template-columns: 1.3fr 2fr 1fr; gap: 40px; }
@media (max-width: 860px) { footer.foot .wrap { grid-template-columns: 1fr; } }
footer.foot h4 { color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
footer.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
footer.foot ul.fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
footer.foot a { color: var(--muted); text-decoration: none; } footer.foot a:hover { color: var(--ink); }
footer.foot .brand { color: var(--ink); margin-bottom: 10px; }
footer.foot p { margin: 0 0 6px; }

/* lightbox */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; overflow: hidden; }
dialog.lb::backdrop { background: rgba(8,10,9,.9); backdrop-filter: blur(4px); }
dialog.lb[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 72px 24px; }
dialog.lb img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: var(--card); }
dialog.lb p { margin: 0; color: #e9ebe8; font-size: 14px; text-align: center; max-width: 80ch; }
dialog.lb button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 44px; height: 44px; border-radius: 50%; font: 22px/1 var(--sans); cursor: pointer; display: grid; place-items: center; }
dialog.lb button:hover { background: rgba(255,255,255,.24); }
dialog.lb .x { top: 12px; right: 12px; }
dialog.lb .prev { left: 14px; top: 50%; transform: translateY(-50%); }
dialog.lb .next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { dialog.lb[open] { padding: 56px 8px 16px; } dialog.lb .prev, dialog.lb .next { top: auto; bottom: 12px; transform: none; } }
