@layer site, reset, astryx-base, astryx-theme;
@layer site {
/* Black and white, modern, system fonts only (no outside requests). */
:root {
  --fg: #0b0b0c; --muted: #61656c; --line: #e6e7ea; --soft: #f5f6f8; --card: #fff; --bg-top: #f7f8fa; --bg: #fff;
  --red: #c4231a; --amber: #a34306; --green: #067647;
  --radius: 3px; --shadow: none;
  --font: Arial, Helvetica, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--fg); background: var(--bg); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 13px; } .spacer { flex: 1; }
.err { color: var(--red); } .ok { color: var(--green); } .warn { color: var(--amber); }
a { color: inherit; text-underline-offset: 3px; }

/* header and footer */
header.top { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); background: rgba(255, 255, 255, .8); }
header.top .wrap { display: flex; gap: 18px; align-items: center; height: 60px; }
.brand { font-weight: 700; letter-spacing: -.02em; font-size: 19px; text-decoration: none; }
header.top nav { display: flex; gap: 16px; font-size: 14px; overflow-x: auto; }
header.top nav a { text-decoration: none; color: var(--muted); white-space: nowrap; }
header.top nav a:hover, header.top nav a[aria-current=page] { color: var(--fg); }
footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .cols { display: flex; flex-wrap: wrap; gap: 28px; }
footer .cols div { display: grid; gap: 6px; }
footer strong { color: var(--fg); }

/* type */
h1 { font-size: 42px; font-weight: 680; letter-spacing: -.028em; line-height: 1.1; margin: 36px 0 12px; text-wrap: balance; }
h2 { font-size: 26px; letter-spacing: -.018em; line-height: 1.2; margin: 40px 0 10px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
.lede { font-size: 19px; color: var(--muted); max-width: 720px; margin: 0 0 24px; }
article { max-width: 760px; }
article li { margin: 4px 0; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; padding-left: 40px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--fg); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.cta { display: inline-flex; margin: 8px 0 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.grid a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; box-shadow: var(--shadow); font-weight: 600; }
.grid a span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); margin: 0; }
.faq summary { font-weight: 600; padding: 14px 0; }
.faq p { margin: 0 0 14px; }
.note { border-left: 3px solid var(--fg); padding: 2px 0 2px 14px; margin: 18px 0; }

/* controls */
button, .btn, select, input { font: inherit; font-size: 15px; height: 40px; border: 1px solid var(--line); background: var(--card); color: var(--fg); padding: 0 14px; border-radius: 3px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer; }
input:focus-visible, select:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
button.primary, .btn { background: var(--fg); border-color: var(--fg); color: #fff; }
button.link { border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; padding: 0; height: auto; }
button:disabled { opacity: .4; cursor: default; }
@media (hover: hover) { button:not(:disabled):not(.primary):not(.link):hover { background: var(--soft); } button.primary:not(:disabled):hover, .btn:hover { background: #26272b; } }
button:not(:disabled):active, .btn:active { transform: scale(.97); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }

/* tool */
.tool { margin: 8px 0 0; }
.dropzone { width: 100%; height: auto; min-height: 190px; flex-direction: column; justify-content: center; gap: 8px; border: 1.5px dashed #c3c6cc; border-radius: 3px; background: var(--card); font-size: 17px; font-weight: 650; letter-spacing: .04em; margin: 0 0 12px; text-align: center; padding: 20px; }
.dropzone svg { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--soft); }
.dropzone .small { font-weight: 400; letter-spacing: 0; color: var(--muted); max-width: 520px; }
.dropzone.over, .dropzone:hover { border-color: var(--fg); }
.privacy { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 14px; box-shadow: var(--shadow); }
.group { margin: 0 0 30px; }
.group > h2 { margin: 18px 0 8px; font-size: 22px; }
.recs { display: grid; gap: 8px; margin: 0 0 16px; }
.rec { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--card); cursor: pointer; }
.rec:has(input:checked) { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.rec input { height: auto; margin: 4px 0 0; accent-color: var(--fg); }
.rec .name { font-weight: 650; }
.rec .meta { display: block; font-size: 13px; color: var(--muted); }
.tag { background: var(--soft); border-radius: 6px; padding: 1px 7px; font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.tieout { display: grid; gap: 4px; max-width: 560px; margin: 0 0 14px; }
.tieout .tie { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.tieout .total { font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; }
.scroll { overflow-x: auto; margin: 0 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; background: var(--soft); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
details.sec { margin: 0 0 10px; }
details.sec > summary { cursor: pointer; padding: 8px 0; font-weight: 650; list-style: none; display: flex; align-items: center; gap: 12px; }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary .sum { display: flex; flex: 1; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
details.sec > summary::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 6px 0 0; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform 140ms ease-out; }
details.sec[open] > summary::after { transform: rotate(45deg); }

@media (max-width: 640px) { h1 { font-size: 32px; } h2 { font-size: 22px; } .lede { font-size: 17px; } header.top .wrap { gap: 12px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } button:active, .btn:active { transform: none !important; } }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted.small, .small { font-size: 13px; }

}
