/* Mastcall Tools: "signage" identity. White ground, ink type, chrome-yellow action, transit-blue links. */
:root {
  --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F4F4F2; --surface-3: #EAEAE6; --text: #111214; --muted: #5C5F66; --line: #E4E4E0; --line-2: #CFCFCA;
  --yellow: #FFC21A; --yellow-2: #F2B200; --yellow-soft: #FFF6D9; --ink: #111214; --link: #1F4FD8; --focus: #1F4FD8;
  --accent: var(--yellow); --accent-ink: var(--ink); --accent-soft: var(--yellow-soft);
  --good: #178A55; --bad: #D0342C; --warn-bg: #FFF6D9; --warn-line: #FFC21A;
  --radius: 16px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(17,18,20,.05), 0 8px 28px rgba(17,18,20,.06);
  --shadow-lift: 0 2px 4px rgba(17,18,20,.06), 0 14px 36px rgba(17,18,20,.10);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0F11; --surface: #16171A; --surface-2: #1D1F23; --surface-3: #26282D; --text: #F3F3F1; --muted: #A3A6AD; --line: #2A2C31; --line-2: #3A3D44;
    --yellow-soft: #2B2410; --link: #8EAEFF; --focus: #8EAEFF; --good: #4FD394; --bad: #FF8A80; --warn-bg: #231E0E;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.35); --shadow-lift: 0 2px 4px rgba(0,0,0,.5), 0 14px 36px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, canvas, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
kbd { font: 600 11px/1 var(--font); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 3px 5px; color: var(--muted); background: var(--surface); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

/* icon tiles */
.ico { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 28%; background: var(--ico-bg, var(--ink)); color: var(--ico-fg, #fff); vertical-align: middle; }
.ico svg { display: block; }
@media (prefers-color-scheme: dark) { .ico { box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); } }

/* header */
.top { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-row { display: flex; align-items: center; gap: 12px; height: 60px; }
.logo { font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -.03em; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.logo svg { border-radius: 8px; }
.logo em { font-style: normal; color: var(--muted); font-weight: 500; }
.search-btn { margin-left: auto; display: flex; align-items: center; gap: 8px; font: 500 14px var(--font); color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px 8px 12px; cursor: pointer; min-width: 0; transition: border-color .15s, background .15s; }
.search-btn:hover { border-color: var(--line-2); color: var(--text); }
.search-btn span { white-space: nowrap; }
.nav { border-top: 1px solid var(--line); }
.nav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; height: 44px; align-items: center; }
.nav .wrap::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; display: flex; align-items: center; gap: 7px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--yellow); }
.nav .nav-x { font-weight: 700; color: var(--text); }
.nav .nav-x:first-of-type { margin-left: auto; }
.dot { width: 8px; height: 8px; border-radius: 3px; background: var(--c); flex-shrink: 0; }
@media (prefers-color-scheme: dark) { .dot { box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); } }

/* type */
h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; margin: 10px 0 10px; text-wrap: balance; }
h2 { font-size: clamp(21px, 3vw, 26px); line-height: 1.2; letter-spacing: -.025em; font-weight: 800; margin: 48px 0 14px; display: flex; align-items: center; gap: 10px; text-wrap: balance; }
h3 { font-size: 18px; letter-spacing: -.015em; font-weight: 700; margin: 24px 0 6px; }
.lede { color: var(--muted); font-size: 18px; line-height: 1.5; margin: 0 0 24px; max-width: 720px; text-wrap: pretty; }
.lede b { color: var(--text); font-weight: 600; }
.page-h1 { margin-top: 36px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 22px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span { opacity: .5; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* hero (home) */
.hero { padding: 48px 0 8px; position: relative; }
.hero h1 { font-size: clamp(38px, 8.5vw, 76px); max-width: 15ch; margin: 14px 0 16px; line-height: 1; letter-spacing: -.045em; }
.hero .lede { font-size: clamp(17px, 2.2vw, 20px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 600; color: var(--text); background: var(--yellow-soft); border: 1px solid color-mix(in srgb, var(--yellow) 60%, transparent); padding: 5px 12px 5px 6px; border-radius: 999px; }
.sig { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--yellow); color: var(--ink); }
.search { margin: 0 0 12px; position: relative; max-width: 680px; }
.search-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.search input[type=search] { font-size: 17px; padding: 16px 16px 16px 46px; border-radius: 14px; border: 2px solid var(--ink); background: var(--surface); box-shadow: 4px 4px 0 var(--yellow); }
@media (prefers-color-scheme: dark) { .search input { border-color: var(--line-2); } }
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 4px 4px 0 var(--yellow), 0 0 0 4px color-mix(in srgb, var(--yellow) 30%, transparent); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.quick a { font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: var(--surface); transition: border-color .15s, background .15s; }
.quick a:hover { border-color: var(--ink); background: var(--yellow-soft); }

/* "new" highlight row */
.fresh { margin: 36px 0 0; }
.fresh-in { display: grid; gap: 14px 24px; grid-template-columns: auto 1fr; align-items: center; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px; position: relative; overflow: hidden; }
@media (prefers-color-scheme: dark) { .fresh-in { background: var(--surface-2); border: 1px solid var(--line); } }
.fresh-in::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 40px; background: var(--yellow); opacity: .12; transform: rotate(20deg); pointer-events: none; }
.fresh h2 { margin: 0; color: #fff; font-size: 22px; }
.fresh p { margin: 2px 0 0; color: rgba(255,255,255,.72); font-size: 14px; }
.badge { align-self: start; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; }
.fresh-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.fresh-links a { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 6px 12px 6px 6px; transition: background .15s, transform .15s var(--ease); }
.fresh-links a:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }

/* sections */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sec-head h2 { margin-bottom: 14px; }
.sec-head > a { font-size: 14px; font-weight: 600; white-space: nowrap; margin-top: 34px; }

/* grids & cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.grid.wide-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .2s var(--ease), box-shadow .2s var(--ease); animation: rise .45s var(--ease) both; min-width: 0; }
.card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
@media (prefers-color-scheme: dark) { .card:hover { border-color: var(--line-2); } }
.card-t { display: grid; gap: 2px; min-width: 0; }
.card strong { font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.card-t > span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.card small { font-size: 12px; color: var(--muted); font-weight: 500; }
.card.post strong, .card.event strong { font-size: 16px; }
.grid > .card:nth-child(2) { animation-delay: .03s; } .grid > .card:nth-child(3) { animation-delay: .06s; } .grid > .card:nth-child(4) { animation-delay: .09s; }
.grid > .card:nth-child(5) { animation-delay: .12s; } .grid > .card:nth-child(6) { animation-delay: .15s; } .grid > .card:nth-child(n+7) { animation-delay: .18s; }
.cal { flex-shrink: 0; width: 48px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); text-align: center; background: var(--surface); }
.cal b { display: block; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 800; padding: 3px 0; }
.cal span { display: block; font-size: 11px; font-weight: 700; padding: 5px 2px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 10px; }
.cat { display: grid; gap: 4px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--text); background: var(--surface); position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .15s; animation: rise .45s var(--ease) both; }
.cat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.cat .ico { margin-bottom: 8px; }
.cat strong { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.cat span { font-size: 13px; color: var(--muted); }
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--c); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px 3px 8px; background: var(--surface); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.pill:hover { border-color: var(--c); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

/* tool page hero */
.hero-tool { display: flex; gap: 16px; align-items: flex-start; margin: 14px 0 4px; }
.hero-tool .ico { margin-top: 10px; box-shadow: var(--shadow); }
.hero-tool h1 { margin-top: 4px; }
.hero-tool > div { min-width: 0; }

/* tool card (engines build their UI inside .tool) */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 14px; min-width: 0; position: relative; }
.tool::before { content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--yellow); }
.drop { border: 2px dashed var(--line-2); border-radius: 14px; padding: 36px 16px; text-align: center; cursor: pointer; display: grid; gap: 4px; justify-items: center; background: var(--surface-2); transition: border-color .15s, background .15s, transform .2s var(--ease), box-shadow .2s var(--ease); }
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--ink); background: var(--yellow-soft); outline: none; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
@media (prefers-color-scheme: dark) { .drop:hover, .drop:focus-visible, .drop.over { border-color: var(--yellow); } }
.drop.over { border-style: solid; }
.drop strong { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.drop span { color: var(--muted); font-size: 14px; }
.drop-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-size: 22px; font-weight: 800; margin-bottom: 8px; transition: transform .25s var(--ease); }
.drop:hover .drop-icon, .drop.over .drop-icon { transform: translateY(-3px) scale(1.05); }
.controls { display: grid; gap: 10px; min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; min-width: 0; }
.field { display: grid; gap: 5px; flex: 1 1 140px; min-width: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.field[hidden] { display: none; }
.field small { font-size: 12px; font-weight: 400; }
input[type=text], input[type=number], input[type=date], input[type=search], input[type=url], input[type=email], select, textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 55%, transparent); }
@media (prefers-color-scheme: dark) { input:focus, select:focus, textarea:focus { border-color: var(--yellow); } }
textarea { resize: vertical; line-height: 1.5; }
input[type=color] { width: 100%; height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); padding: 3px; }
input[type=range] { accent-color: var(--ink); }
@media (prefers-color-scheme: dark) { input[type=range], .check input { accent-color: var(--yellow); } }
.range { display: flex; gap: 10px; align-items: center; }
.range input { flex: 1; min-width: 0; }
.range output { width: 52px; text-align: right; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text); padding: 9px 0; cursor: pointer; }
.check input { accent-color: var(--ink); width: 18px; height: 18px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { font: inherit; font-weight: 700; font-size: 15px; letter-spacing: -.01em; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); border-radius: 12px; padding: 10px 16px; cursor: pointer; justify-self: start; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: border-color .15s, background .15s, transform .1s, box-shadow .15s; }
.btn:hover { border-color: var(--ink); }
@media (prefers-color-scheme: dark) { .btn:hover { border-color: var(--muted); } }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.btn.primary:hover { background: var(--yellow-2); border-color: var(--yellow-2); }
.btn.sm { padding: 4px 9px; font-size: 13px; border-radius: 8px; }
.status { font-size: 14px; color: var(--muted); min-height: 1px; }
.status.ok { color: var(--good); font-weight: 600; }
.status.error { color: var(--bad); font-weight: 600; }
.big { font: 700 20px var(--mono) !important; letter-spacing: .02em; }
.mono { font-family: var(--mono) !important; font-size: 13px !important; }

.results { display: grid; gap: 8px; }
.results:empty { display: none; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.results-bar[hidden] { display: none; }
.result { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: var(--surface-2); animation: rise .35s var(--ease) both; min-width: 0; }
.result img, .file-ico { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--surface); flex-shrink: 0; }
.file-ico { display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--ink); background: var(--yellow); border: 0; }
.result-meta { display: grid; flex: 1; min-width: 0; font-size: 14px; }
.result-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-meta span, .result-meta small { color: var(--muted); }
.good { color: var(--good); font-style: normal; font-weight: 700; }
.preview { display: block; max-height: 460px; max-width: 100%; width: auto; margin: 0 auto; border-radius: 12px; border: 1px solid var(--line); background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0/16px 16px; animation: fade .3s ease both; }
.preview[hidden] { display: none; }
.qr { display: grid; place-items: center; }
.qr img, .qr canvas { max-width: 280px; height: auto; border-radius: 10px; }
.answer { font-size: 18px; }

.filelist { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: f; }
.filelist:empty { display: none; }
.filelist li { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font-size: 14px; counter-increment: f; animation: rise .3s var(--ease) both; min-width: 0; }
.filelist li::before { content: counter(f); color: var(--muted); width: 20px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.filelist li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.filelist small { color: var(--muted); }

.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.pages:empty { display: none; }
.page { margin: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: grid; gap: 6px; justify-items: center; animation: rise .3s var(--ease) both; }
.thumb { width: 100%; height: auto; border: 1px solid var(--line); background: #fff; transition: transform .2s; }
.page figcaption { font-size: 12px; color: var(--muted); font-weight: 600; }
.page-btns { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }

.crop-stage { position: relative; justify-self: center; touch-action: none; user-select: none; max-width: 100%; }
.crop-stage img { display: block; max-height: 520px; max-width: 100%; }
.crop-sel { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.5); cursor: move; outline: 1px solid rgba(0,0,0,.4); }
.crop-sel i { position: absolute; width: 18px; height: 18px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; }
.crop-sel i[data-h=nw] { left: -9px; top: -9px; cursor: nwse-resize; } .crop-sel i[data-h=ne] { right: -9px; top: -9px; cursor: nesw-resize; }
.crop-sel i[data-h=sw] { left: -9px; bottom: -9px; cursor: nesw-resize; } .crop-sel i[data-h=se] { right: -9px; bottom: -9px; cursor: nwse-resize; }
.crop-stage[hidden] { display: none; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.stats:empty { display: none; }
.stats div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; animation: rise .3s var(--ease) both; }
.stats b { font-size: 24px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stats span { font-size: 12px; color: var(--muted); font-weight: 500; }
.pct-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; background: var(--surface-2); border-radius: 12px; }
.pct-row input { width: 110px; }

.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; font-weight: 500; color: var(--muted); margin: 14px 0 0; padding: 0; list-style: none; }
.trust li::before { content: "✓"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border-radius: 5px; background: var(--good); color: #fff; font-size: 10px; font-weight: 800; vertical-align: 1px; }

/* long-form content */
.content { max-width: 760px; }
.content p, .content li { color: var(--text); }
.steps { padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; }
.steps li::before { content: counter(s); flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 13px; display: inline-grid; place-items: center; transform: translateY(-1px); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 8px 0 0; color: var(--muted); animation: fade .25s ease both; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.specs th, .specs td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.specs th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--text); }
.specs tbody tr:hover { background: var(--surface-2); }
.table-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }

/* articles */
.article { margin-top: 8px; }
.art-head { max-width: 820px; margin: 14px 0 8px; }
.art-head .pill { margin-bottom: 6px; }
.art-head h1 { font-size: clamp(30px, 5.5vw, 50px); }
.meta { font-size: 13px; color: var(--muted); margin: 0 0 8px; font-weight: 500; }
.art-grid { display: grid; gap: 24px; }
.prose { max-width: 68ch; min-width: 0; font-size: 17px; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 44px; }
.prose li { margin: 4px 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 16px 0; padding: 4px 16px; border-left: 4px solid var(--yellow); color: var(--muted); }
.prose code { font: 14px var(--mono); background: var(--surface-2); padding: 2px 5px; border-radius: 5px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose .specs { font-size: 14px; line-height: 1.5; }
.toc { font-size: 14px; border-left: 2px solid var(--line); padding-left: 14px; }
.toc p { margin: 0 0 6px; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.toc a { color: var(--muted); text-decoration: none; line-height: 1.35; display: block; padding: 2px 0; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--text); font-weight: 600; }
@media (min-width: 980px) {
  .art-grid { grid-template-columns: 220px minmax(0, 68ch); gap: 48px; }
  .art-side { position: sticky; top: 124px; align-self: start; max-height: calc(100vh - 140px); overflow: auto; }
}
.cta { border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px; margin: 0 0 28px; background: var(--surface); box-shadow: 5px 5px 0 var(--yellow); }
@media (prefers-color-scheme: dark) { .cta { border-color: var(--line-2); } }
.cta-h { margin: 0 0 10px !important; font-size: 12px !important; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cta-list { display: grid; gap: 6px; }
.cta-list a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); padding: 8px; border-radius: 12px; transition: background .15s; min-width: 0; }
.cta-list a:hover { background: var(--yellow-soft); }
.cta-list a > span:not(.ico) { display: grid; flex: 1; min-width: 0; line-height: 1.35; }
.cta-list strong { font-size: 15px; }
.cta-list small { font-size: 13px; color: var(--muted); }
.cta-list a > svg:last-child { color: var(--muted); flex-shrink: 0; transition: transform .2s var(--ease); }
.cta-list a:hover > svg:last-child { transform: translateX(3px); color: var(--text); }

/* events */
.notice { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; background: var(--warn-bg); border: 2px solid var(--warn-line); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0 14px; }
.notice > div { flex: 1 1 260px; min-width: 0; }
.notice strong { font-weight: 800; letter-spacing: -.01em; }
.notice p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.notice.slim { font-size: 15px; }
.notice-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
@media (prefers-color-scheme: dark) { .notice-ico { background: var(--yellow); color: var(--ink); } }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(var(--line-2) 0 6px, transparent 6px 10px); }
.timeline li { position: relative; padding: 0 0 22px 36px; animation: rise .4s var(--ease) both; }
.timeline li:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 7px; background: var(--surface); border: 2px solid var(--ink); }
.timeline li:first-child .tl-dot { background: var(--yellow); }
@media (prefers-color-scheme: dark) { .tl-dot { border-color: var(--yellow); } }
.timeline p { margin: 0; }
.tl-when { font-weight: 800; letter-spacing: -.015em; font-size: 17px; }
.tl-label { font-weight: 600; color: var(--text); }
.tl-basis { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 2px !important; }
.timeline.index a { display: block; text-decoration: none; color: inherit; padding: 10px 12px; margin: -10px 0 0 -12px; border-radius: 12px; transition: background .15s; }
.timeline.index a:hover { background: var(--surface-2); }
.timeline.index .tl-label { font-size: 17px; font-weight: 700; color: var(--link); }
.embeds .hint { margin-bottom: 12px; }
.embed-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.embed { min-width: 0; }
.embed h3 { margin: 0 0 8px; }
.sources { font-size: 14px; padding-left: 18px; overflow-wrap: anywhere; }
.event-page section { max-width: 900px; }

/* footer */
footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 36px 0 40px; color: var(--muted); font-size: 14px; background: var(--surface-2); }
.foot-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 28px; }
.foot-brand svg { border-radius: 9px; flex-shrink: 0; }
.foot-brand p { margin: 0; line-height: 1.45; }
.foot-brand b { color: var(--text); font-weight: 800; letter-spacing: -.02em; font-size: 16px; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px 16px; }
footer a { color: var(--muted); text-decoration: none; display: block; padding: 3px 0; }
footer a:hover { color: var(--text); }
footer strong { color: var(--text); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 800; letter-spacing: -.01em; }
footer .ico { border-radius: 7px; }
.fine { font-size: 12px; margin: 28px 0 0; }

/* command palette */
.pal { position: fixed; inset: 0; z-index: 50; display: grid; justify-items: center; align-items: start; padding: 10vh 16px 16px; }
.pal-back { position: absolute; inset: 0; background: rgba(17,18,20,.45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .15s ease both; }
.pal-box { position: relative; width: min(640px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.3); overflow: hidden; animation: pop .18s var(--ease) both; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pal-in input { border: 0 !important; box-shadow: none !important; background: transparent; font-size: 17px; padding: 16px 0; }
.pal-x { font: 600 12px var(--font); color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; cursor: pointer; }
.pal ul { list-style: none; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; }
.pal li a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: var(--text); min-width: 0; }
.pal li[aria-selected=true] a { background: var(--yellow-soft); box-shadow: inset 3px 0 0 var(--yellow); }
.pal-t { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.pal-t strong { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-t small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal li em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; flex-shrink: 0; }
.pal-empty { padding: 24px 12px; text-align: center; color: var(--muted); }
.pal-foot { display: flex; gap: 16px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pal-foot kbd { margin-right: 3px; }
html.pal-open { overflow: hidden; }

/* motion */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .card:hover, .cat:hover, .drop:hover, .drop.over, .fresh-links a:hover { transform: none; }
}

/* small screens */
@media (max-width: 640px) {
  .tool { padding: 14px; }
  .tool::before { left: 14px; right: 14px; }
  .lede { font-size: 16px; }
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { padding: 9px; }
  .nav .nav-x:first-of-type { margin-left: 0; }
  .hero { padding-top: 28px; }
  .hero-tool { gap: 12px; }
  .hero-tool .ico { width: 48px !important; height: 48px !important; margin-top: 6px; }
  .hero-tool .ico svg { width: 26px; height: 26px; }
  .result { flex-wrap: wrap; }
  .result .btn { width: 100%; }
  .fresh-in { grid-template-columns: 1fr; }
  .prose { font-size: 16px; }
  .pal { padding-top: 12px; }
  .pal-foot { display: none; }
  .sec-head > a { margin-top: 30px; }
}
@media (min-width: 900px) {
  .hero { padding-top: 72px; }
  .fresh-in { grid-template-columns: auto minmax(260px, 1fr) auto; padding: 22px 24px; }
  .fresh-links { grid-column: auto; justify-content: flex-end; }
}
