/* ArcoDataHub components: one definition each, tokens only (tokens.css). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 500 15px/1.5 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-2); text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
p { margin: 0 0 .9rem; }
code, pre, kbd { font-family: var(--mono); font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
code { font-size: .86em; background: var(--panel-2); padding: .1em .4em; border-radius: 4px; }
pre { margin: 0; }
pre code { background: none; padding: 0; font-size: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 40px; padding-top: 36px; padding-bottom: 48px; }
.stack-tight { gap: 24px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }
.eyebrow { font: 500 11px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -.04em; }
.h2 { font-size: 30px; }
.h3 { font-size: 20px; letter-spacing: -.02em; }
.lede { font-size: 17px; line-height: 1.45; max-width: 64ch; color: var(--ink-2); }
.section-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-head .right { margin-left: auto; }
.rule { border: 0; border-top: 2px solid var(--ink); margin: 0; }
.hide, [hidden] { display: none !important; }
/* ---- top bar ---------------------------------------------------------- */
.bar { background: var(--ink); color: #fff; }
.bar .wrap { height: var(--bar-h); display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; white-space: nowrap; }
.brand:hover { color: #fff; text-decoration: none; }
.brand .wordmark { font: 400 20px/1 var(--font-logo); letter-spacing: -.03em; color: #fff; }
.brand .wordmark b { font-weight: 700; }
.bar-nav { display: flex; gap: 26px; height: var(--bar-h); align-items: center; font-size: 14.5px; }
.bar-nav a { color: var(--on-dark-2); font-weight: 700; height: var(--bar-h); display: inline-flex; align-items: center; }
.bar-nav a:hover { color: #fff; text-decoration: none; }
.bar-nav a.on { color: #fff; box-shadow: inset 0 -3px 0 var(--lime); }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; align-items: center; gap: 2px; margin: 0; font: 700 12px/1 var(--mono); color: var(--on-dark-2); letter-spacing: .06em; }
.lang button { background: none; border: 0; padding: 6px 3px; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
.lang button:hover { color: var(--lime); }
.lang button.on { color: #fff; cursor: default; }
.bar-user { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 14px; height: 36px; padding: 0 14px 0 10px; border-radius: var(--pill); border: 2px solid var(--dark-line); max-width: 260px; }
.bar-user:hover { border-color: var(--lime); color: #fff; text-decoration: none; }
.bar-user.on { border-color: var(--lime); }
.bar-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-toggle { display: none; margin-left: auto; align-items: center; justify-content: center; background: none; border: 2px solid var(--dark-line); color: #fff; border-radius: 8px; width: 40px; height: 36px; font: inherit; cursor: pointer; }
/* ---- buttons, pills --------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--pill); font: 700 14px var(--font); background: var(--ink); color: var(--lime); border: 2px solid var(--ink); cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; text-decoration: none; }
.btn-o { background: transparent; color: var(--ink); }
.btn-o:hover { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.btn-lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn-lime:hover { background: var(--lime-2); border-color: var(--lime-2); color: var(--ink); }
.btn-danger { background: var(--down); border-color: var(--down); color: #fff; }
.btn-danger:hover { background: #a82b2b; border-color: #a82b2b; color: #fff; }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn-xs { height: 26px; padding: 0 10px; font-size: 12px; border-width: 1.5px; }
.btn-white { background: transparent; color: #fff; border-color: #fff; }
.btn-white:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--lime); color: var(--ink); font: 700 11px var(--mono); padding: 4px 9px; border-radius: var(--pill); letter-spacing: .04em; white-space: nowrap; text-transform: uppercase; }
.pill-static { background: #fff; border: 1.5px solid var(--ink); }
.pill-soon { background: #fff; border: 1.5px solid var(--ink); }
.pill-stale { background: var(--warn); }
.pill-ok { background: var(--lime); }
.pill-pending { background: var(--warn); }
.pill-muted { background: var(--panel-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--ink); display: inline-block; }
.dot.pulse { animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 2px var(--ink), 0 0 0 2px rgba(175,202,11,.6); } 70% { box-shadow: 0 0 0 2px var(--ink), 0 0 0 8px rgba(175,202,11,0); } 100% { box-shadow: 0 0 0 2px var(--ink), 0 0 0 0 rgba(175,202,11,0); } }
.live { display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px var(--mono); color: var(--ink); white-space: nowrap; }
/* ---- lime band (home hero) -------------------------------------------- */
.band { background: var(--lime); }
.band .wrap { padding: 44px var(--gutter) 36px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: end; }
.band h1 { font-size: clamp(40px, 6vw, 72px); line-height: .95; letter-spacing: -.05em; }
.band h1 em { font-style: normal; color: var(--teal); }
.band .lede { color: var(--ink); font-weight: 500; }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border-left: 3px solid var(--ink); padding-left: 22px; }
.fig { font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.fig small { font-size: .45em; letter-spacing: -.02em; }
.figl { font: 500 12px var(--mono); color: #2b3327; margin-top: 6px; letter-spacing: .04em; text-transform: uppercase; }
/* ---- tiles (collections) ---------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff; }
.tile:hover { color: #fff; text-decoration: none; outline: 3px solid var(--lime); outline-offset: 0; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.tile .t { position: relative; padding: 16px 18px; background: linear-gradient(to top, rgba(12,16,14,.94), rgba(12,16,14,0)); }
.tile h3 { font-size: 24px; letter-spacing: -.03em; }
.tile p { margin: 6px 0 0; font: 500 12.5px var(--mono); color: var(--on-dark-2); }
.tile .pill { position: absolute; top: 12px; left: 12px; }
.tile.teal { background: var(--teal); }
.tile.soon { outline: 2px dashed var(--lime); outline-offset: -8px; }
.tile.soon .t { background: none; }
/* ---- dataset table ---------------------------------------------------- */
.table-wrap { overflow-x: auto; }
.dt { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 13.5px; }
.dt th { text-align: left; font: 500 11px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 0 8px 6px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.dt th.sortable { cursor: pointer; user-select: none; }
.dt th.sortable:hover { color: var(--ink); }
.dt th.sorted-asc::after { content: " \25B2"; } .dt th.sorted-desc::after { content: " \25BC"; }
.dt td { padding: 10px 8px; border-bottom: 2px solid var(--ink); vertical-align: middle; }
.dt tbody tr:hover td { background: var(--panel-2); }
.dt .thumb { width: 96px; height: 60px; object-fit: cover; border-radius: 6px; display: block; background: var(--line); }
.dt .n { font-weight: 700; font-size: 16px; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.dt .n:hover { color: var(--teal); }
.dt .d { color: var(--ink-2); display: block; max-width: 30ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dt .m { font: 500 12.5px var(--mono); color: var(--ink); white-space: nowrap; }
.dt td.cad { white-space: normal; max-width: 16ch; line-height: 1.35; }
.dt .group td { padding: 22px 8px 6px; border-bottom: 2px solid var(--ink); background: transparent; }
.dt .group td a, .dt .group td span { font: 800 18px var(--font); letter-spacing: -.02em; color: var(--ink); }
.dt tbody tr.group:hover td { background: transparent; }
.dt .url { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dt .url code { flex: 1 1 auto; min-width: 0; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; background: var(--panel-2); padding: 3px 8px; border-radius: 6px; }
.dt td.urlcell { width: 99%; }
/* ---- dataset cards (grid view) + view toggle --------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.card-img { position: relative; display: block; aspect-ratio: 2 / 1; background: var(--ink); }
.card-img img, .card-noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.card-img .pill, .card-img .live { position: absolute; top: 10px; right: 10px; }
.card-img .live { background: var(--panel); padding: 3px 8px; border-radius: var(--pill); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.card-name { font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
.card-name:hover { color: var(--teal); text-decoration: none; }
.card-desc { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.card-meta { margin: 0; font: 500 12px var(--mono); color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--pill); overflow: hidden; }
.seg-btn { display: inline-flex; align-items: center; gap: 6px; font: 700 13px var(--font); background: #fff; color: var(--ink); border: 0; padding: 0 12px; height: 34px; cursor: pointer; }
.seg-btn + .seg-btn { border-left: 2px solid var(--ink); }
.seg-btn[aria-pressed=true] { background: var(--ink); color: var(--lime); }
/* ---- sheets, facts, code ---------------------------------------------- */
.sheet { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--ink); color: var(--on-dark); border-radius: var(--radius-lg); overflow: hidden; }
.sheet > div { padding: 28px 30px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sheet > div + div { border-left: 1px solid var(--dark-line); }
.sheet h1, .sheet h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.04em; line-height: 1; overflow-wrap: anywhere; }
.sheet p { color: var(--on-dark-2); line-height: 1.5; }
.sheet a { color: var(--on-dark); }
.sheet a:hover { color: var(--lime); }
.sheet .eyebrow { color: var(--lime); }
.facts { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; font: 500 12.5px var(--mono); }
.facts dt { color: var(--lime); } .facts dd { margin: 0; overflow-wrap: anywhere; }
.facts-light { font-size: 13.5px; font-family: var(--font); }
.facts-light dt { color: var(--muted); }
.code { position: relative; margin: 0; padding: 16px 18px; background: var(--code-bg); color: var(--on-dark); border-radius: var(--radius); font: 400 12.5px/1.65 var(--mono); white-space: pre; overflow-x: auto; }
.code .k, .token.keyword, .token.builtin, .token.boolean { color: var(--lime); }
.code .s, .token.string, .token.char, .token.attr-value, .token.url { color: var(--teal-bright); }
.code .c, .token.comment, .token.prolog { color: #8a948c; font-style: italic; }
.token.number, .token.constant { color: #f2c66d; }
.token.function, .token.class-name, .token.decorator { color: #cfe3a0; }
.token.operator, .token.punctuation { color: var(--on-dark-2); }
.token.variable, .token.parameter { color: var(--on-dark); }
.token.important, .token.bold { font-weight: 700; }
.code-bar { display: flex; align-items: center; justify-content: space-between; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.copy { font: 700 12px var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--ink); border-radius: var(--pill); padding: 3px 10px; cursor: pointer; }
.copy:hover { background: var(--ink); color: var(--lime); }
.copy.done { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.panel { background: var(--panel); border: 2px solid var(--ink); border-radius: var(--radius-lg); padding: 22px 24px; }
.panel-quiet { border-color: var(--line); }
.panel h2, .panel h3 { margin-bottom: 10px; }
.kv { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kv code { font-size: 13px; padding: 6px 10px; background: var(--panel-2); border-radius: 6px; overflow-wrap: anywhere; }
/* ---- forms ------------------------------------------------------------ */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.field .help { font-size: 12.5px; color: var(--muted); }
.field .err { font-size: 13px; color: var(--down); font-weight: 700; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea { font: 500 15px var(--font); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 9px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--lime); outline-offset: 1px; }
input[type=search] { border-radius: var(--pill); }
.field .ro { font: 500 15px var(--font); padding: 9px 14px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--panel-2); color: var(--muted); }
.auth { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.auth-wide { max-width: 560px; }
.auth .panel { padding: 28px; }
.auth .switch { text-align: center; color: var(--muted); }
.errorlist { margin: 0; padding: 0; list-style: none; color: var(--down); font-weight: 700; font-size: 13px; }
/* ---- messages, alerts ------------------------------------------------- */
.messages { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; }
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: var(--radius); border: 2px solid var(--ink); background: #fff; font-weight: 500; }
.alert-success { background: #eef6cc; border-color: var(--lime-2); }
.alert-error, .alert-danger { background: #fbe4e4; border-color: var(--down); }
.alert-warning { background: #fff1d6; border-color: var(--warn); }
.alert-info { background: var(--panel-2); border-color: var(--line); }
.alert .x { margin-left: auto; background: none; border: 0; font: 700 16px var(--font); cursor: pointer; color: var(--muted); }
.callout { background: var(--panel-2); border-left: 3px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0; padding: 10px 14px; color: var(--ink-2); }
.callout p:last-child { margin: 0; }
/* ---- dialogs ---------------------------------------------------------- */
dialog { border: 2px solid var(--ink); border-radius: var(--radius-lg); padding: 0; max-width: 520px; width: calc(100% - 32px); color: var(--ink); font: inherit; }
dialog::backdrop { background: rgba(29,30,27,.55); }
dialog .dlg { padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; }
dialog h3 { font-size: 22px; }
dialog .actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
/* ---- account layout --------------------------------------------------- */
.account { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.acc-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 20px; }
.acc-nav a { padding: 9px 12px; border-radius: 8px; font-weight: 700; color: var(--ink-2); }
.acc-nav a:hover { background: var(--panel-2); text-decoration: none; color: var(--ink); }
.acc-nav a.on { background: var(--ink); color: var(--lime); }
.acc-nav .who { padding: 4px 12px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.acc-nav .who > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.acc-nav .who b { font-size: 17px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.acc-nav .who .muted { font-size: 13px; }
.acc-nav .who form { margin: 0; }
.acc-body { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
/* ---- status page ------------------------------------------------------ */
.status-banner { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: var(--radius); font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--ink); border: 2px solid var(--ink); }
.status-banner-ok { background: var(--lime); } .status-banner-warn { background: var(--warn); } .status-banner-down { background: var(--down); color: #fff; } .status-banner-nodata { background: var(--nodata); }
.status-row { display: grid; grid-template-columns: 15rem 1fr 11rem; gap: 16px; align-items: center; padding: 10px 0; border-top: 2px solid var(--ink); }
.status-name { font-weight: 700; } .status-name small { display: block; font: 500 12px var(--mono); color: var(--muted); }
.status-bar { display: flex; gap: 2px; height: 14px; } .status-bar-hourly { gap: 1px; }
.status-bar-caption { display: block; margin: 2px 0 6px; font: 500 11px var(--mono); color: var(--muted); }
.status-cell { flex: 1 1 0; min-width: 0; border-radius: 2px; } .status-bar-hourly .status-cell { border-radius: 1px; }
.s-ok { background: var(--ok); } .s-warn { background: var(--warn); } .s-down { background: var(--down); } .s-nodata { background: var(--nodata); }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--nodata); }
.status-dot.s-ok { background: var(--ok); } .status-dot.s-warn { background: var(--warn); } .status-dot.s-down { background: var(--down); }
.status-banner .status-dot { background: var(--ink); } .status-banner-down .status-dot { background: #fff; }
.status-state { font-weight: 700; } .status-state small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.status-label-ok { color: #1e7a2c; } .status-label-warn { color: #b57500; } .status-label-down { color: var(--down); } .status-label-nodata { color: var(--muted); }
/* ---- getting started -------------------------------------------------- */
.gs { max-width: 860px; display: flex; flex-direction: column; gap: 8px; }
.gs section { padding: 26px 0; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
.gs section:first-of-type { border-top: 0; padding-top: 0; }
.gs h2 { font-size: 26px; display: flex; align-items: baseline; gap: 12px; }
.gs h2 .n { font: 500 14px var(--mono); color: var(--teal); }
.gs p { color: var(--ink-2); }
.path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.step { border: 2px solid var(--ink); border-radius: var(--radius); padding: 14px 16px; display: grid; grid-template-columns: 34px 1fr; gap: 10px; background: #fff; }
.step .num { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--lime); font-weight: 800; display: grid; place-items: center; }
.step h3 { font-size: 16px; margin: 4px 0 4px; } .step p { margin: 0; font-size: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--ink); flex-wrap: wrap; }
.tabs button { font: 700 14px var(--font); background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 8px 12px; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--lime); }
.tabpanel[hidden] { display: none; }
.tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.tips li { padding-left: 18px; position: relative; color: var(--ink-2); font-size: 14.5px; }
.tips li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); }
.tips strong { color: var(--ink); }
/* ---- markdown (long descriptions) ------------------------------------- */
.markdown-body { line-height: 1.6; color: var(--ink-2); }
.markdown-body h1, .markdown-body h2, .markdown-body h3 { margin: 1.2rem 0 .5rem; color: var(--ink); }
.markdown-body h1 { font-size: 26px; } .markdown-body h2 { font-size: 22px; } .markdown-body h3 { font-size: 18px; }
.markdown-body ul, .markdown-body ol { padding-left: 1.5rem; }
.markdown-body pre { background: var(--code-bg); color: var(--on-dark); padding: 14px 16px; border-radius: var(--radius); overflow-x: auto; margin: 0 0 1rem; font-size: 12.5px; }
.markdown-body pre code { background: none; color: inherit; }
.markdown-body table { border-collapse: collapse; width: 100%; margin-bottom: 1rem; font-size: 14px; }
.markdown-body th, .markdown-body td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.markdown-body th { border-bottom: 2px solid var(--ink); font-weight: 700; color: var(--ink); }
.markdown-body blockquote { border-left: 3px solid var(--teal); margin: 1rem 0; padding: .4rem 1rem; background: var(--panel-2); border-radius: 0 var(--radius) var(--radius) 0; }
.markdown-body img { border-radius: var(--radius); }
/* ---- footer ----------------------------------------------------------- */
.footer { background: var(--ink); color: var(--on-dark-2); margin-top: 40px; }
.footer .wrap { padding: 24px var(--gutter); display: flex; flex-direction: column; gap: 16px; font-size: 13px; }
.footer .top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer .top > span:first-child { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); font-weight: 700; }
.footer .links { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.footer .links a { color: var(--lime); font-weight: 700; }
.footer .logos { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; background: #fff; border-radius: 6px; padding: 10px 16px; width: fit-content; max-width: 100%; }
.footer .logos img { height: 26px; width: auto; }
.footer .funding { max-width: 100ch; color: var(--on-dark-2); line-height: 1.5; font-size: 12px; margin: 0; }
/* ---- responsive ------------------------------------------------------- */
@media (max-width: 980px) {
  .band .wrap, .sheet, .account { grid-template-columns: 1fr; }
  .sheet > div + div { border-left: 0; border-top: 1px solid var(--dark-line); }
  .tiles, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acc-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .acc-nav .who { width: 100%; padding: 0 0 8px; flex-wrap: nowrap; }
  .acc-nav .who > div { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .acc-nav .who .muted::before { content: "· "; }
  .acc-nav a { padding: 7px 10px; font-size: 14px; }
  .path, .tips { grid-template-columns: 1fr; }
  .status-row { grid-template-columns: 1fr auto; } .status-history { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .bar .wrap { flex-wrap: wrap; height: auto; min-height: var(--bar-h); padding-top: 0; padding-bottom: 0; gap: 12px; }
  .bar-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .bar-nav { display: none; order: 3; width: 100%; height: auto; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 10px; }
  .bar-nav.open { display: flex; }
  .bar-nav a { height: 44px; } .bar-nav a.on { box-shadow: inset 3px 0 0 var(--lime); padding-left: 10px; }
  .bar-right { order: 1; margin-left: auto; gap: 10px; }
  .bar-toggle { order: 2; margin-left: 0; }
  .bar-user { max-width: 40vw; height: 34px; padding: 0 10px 0 8px; }
  .tiles, .cards { grid-template-columns: 1fr; }
  .figs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-left: 0; padding-left: 0; border-top: 3px solid var(--ink); padding-top: 14px; }
  .stack { gap: 28px; padding-top: 24px; padding-bottom: 36px; }
  .h2 { font-size: 26px; }
  .dt { min-width: 0; } .dt .hide-m { display: none; } .dt .d { max-width: 22ch; }
  .sheet > div { padding: 20px 18px; }
}
