/* SevinHub Links. "Stamped and filed" (CauseHub's language) with its own mark: the luggage tag.
   Paper, ink, one ledger-green stamp, the gold path. No tape, no tilt, no drawn arrows. Phone first. */

@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #FAF7F2; --card: #FFFFFF; --ink: #1F1C18; --ink-2: #48423A; --ink-3: #5F584F;
  --line: #E8E1D5; --line-strong: #CFC6B8; --pen: #1F5A3D; --pen-soft: #E3F0E8;
  --gold: #F0B03A; --gold-soft: #FCEFD2; --gold-text: #7A4E00; --bad: #A3271C; --bad-soft: #FBE7E4; --on-bad: #FFFFFF;
  --font-head: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1B1A18; --card: #252320; --ink: #E9E3D8; --ink-2: #C7BFB2; --ink-3: #A89F92;
    --line: #37332E; --line-strong: #4B463F; --pen: #8FD9B0; --pen-soft: #1D3328;
    --gold: #F2BD51; --gold-soft: #3A2E16; --gold-text: #F5C96C; --bad: #F2A096; --bad-soft: #3A1F1B; --on-bad: #1B1A18;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--font-body); }
a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--gold-text); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 6.5vw, 3rem); font-weight: 780; }
h2 { font-size: 1.2rem; font-weight: 760; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font: 600 .92em/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 2; }
.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1080px; }
.muted { color: var(--ink-3); }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.eyebrow { display: inline-block; font: 700 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: lowercase;
  color: var(--gold-text); background: var(--gold-soft); border-radius: 999px; padding: .45em .9em; margin-bottom: 1rem; }

.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; max-width: 1080px; margin: 0 auto; padding: 18px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand b { font: 780 1.35rem/1 var(--font-head); }
.brand small { color: var(--ink-3); font-size: .85rem; }
.brand-tag { width: 26px; height: 32px; }
.brand-tag path { fill: var(--gold-soft); stroke: var(--gold-text); stroke-width: 2; }
.brand-tag circle { fill: var(--paper); stroke: var(--gold); stroke-width: 2; }

.hero { padding: 28px 0 8px; }
.check { margin: 1.5rem 0 0; }
.check label { display: block; font-weight: 600; margin-bottom: 6px; }
.check-row { display: flex; gap: 8px; flex-wrap: wrap; }
.check-row input { flex: 1 1 200px; }
input[type=text], input[type=email], input[type=url], input[type=search], input[type=password], input[type=date], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-soft); }
button, .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; border-radius: 999px;
  border: 0; background: var(--ink); color: var(--paper); font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
button:hover, .btn:hover { background: var(--gold-text); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn.ghost:hover { border-color: var(--gold); color: var(--ink); }
.btn.danger { background: var(--bad); color: var(--on-bad); }
.btn.danger:hover { background: var(--ink); color: var(--paper); }
button.linkish { background: none; color: var(--ink-2); min-height: 0; padding: 0; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); }

/* The gold path: lists that go somewhere, one stop after another. */
.path, .goldpath { list-style: none; margin: 2rem 0; padding: 0 0 0 30px; position: relative; }
.path::before, .goldpath::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--gold); }
.path li, .goldpath li { position: relative; margin: 0 0 1.4rem; }
.path li::before, .goldpath li::before { content: ""; position: absolute; left: -30px; top: 5px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--gold); }
.goldpath { margin: 1rem 0; }
.goldpath li { margin-bottom: .8rem; }
.goldpath time { display: block; font-size: .82rem; color: var(--ink-3); font-weight: 600; }
.goldpath.small li { font-size: .9rem; }
.note { border-top: 1px solid var(--line); padding-top: 1rem; color: var(--ink-2); }

/* The tag: chamfered top corners and a reinforced string hole. Receipts, notices, sign-in.
   The outline is the tag's own background (line colour) showing 1px around a card-coloured layer cut the same
   way, so the diagonal edges have an outline too (a CSS border would be cut off there by the clip-path).
   33.4px = 32px + the square root of 2, which keeps the outline 1px wide on the diagonals. */
.tag { position: relative; z-index: 0; background: var(--line); margin: 24px 0 8px; padding: 56px 20px 24px;
  clip-path: polygon(0 34px, 34px 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%); border-radius: 0 0 var(--radius) var(--radius); }
.tag::before { content: ""; position: absolute; top: 1px; left: 1px; right: 1px; bottom: 1px; z-index: -1; background: var(--card);
  clip-path: polygon(0 33.4px, 33.4px 0, calc(100% - 33.4px) 0, 100% 33.4px, 100% 100%, 0 100%);
  border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px); pointer-events: none; }
.tag-hole { position: absolute; top: 14px; left: 50%; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%;
  background: var(--paper); border: 4px solid var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); }
.tag h1 { font-size: clamp(1.6rem, 6vw, 2.3rem); }
.slug { overflow-wrap: anywhere; }
.state-pill, .pill { display: inline-block; font: 700 .78rem/1 var(--font-body); letter-spacing: .06em; padding: .45em .8em; border-radius: 999px;
  background: var(--pen-soft); color: var(--pen); text-transform: lowercase; }
.state-held .state-pill, .pill.st-held { background: var(--gold-soft); color: var(--gold-text); }
.state-flagged .state-pill, .state-disabled .state-pill, .state-expired .state-pill, .pill.bad, .pill.st-flagged, .pill.st-disabled { background: var(--bad-soft); color: var(--bad); }

.lines { margin: 1.4rem 0; border-top: 1px dashed var(--line-strong); }
.lines > div { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: 4px 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-strong); }
.lines dt { color: var(--ink-3); font-size: .9rem; }
.lines dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.dest-host { font: 760 1.25rem/1.2 var(--font-head); overflow-wrap: break-word; }
.dest-host small { display: block; font: 500 .85rem/1.4 var(--font-body); color: var(--ink-3); }
.dest-full { font: 500 .85rem/1.45 ui-monospace, Menlo, Consolas, monospace; color: var(--ink-2); }
.checks { position: relative; padding-right: 0; }
.checks ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.checks li { padding-left: 28px; position: relative; margin-bottom: .4rem; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--pen); border-bottom: 3px solid var(--pen); transform: rotate(-45deg); }
.stamp { display: inline-block; margin: .2rem 0 1rem; padding: .35em .8em; border: 3px solid var(--pen); border-radius: 6px; color: var(--pen);
  font: 800 1rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; opacity: .92; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.4rem 0 0; }
.notice-flagged h1, .notice-disabled h1 { color: var(--bad); }

.legal h2 { margin-top: 1.8rem; }
.legal address { font-style: normal; }
.form-page form, .grid-form, .stack { display: grid; gap: 8px; }
.form-page label, .grid-form label, .stack label { font-weight: 600; margin-top: 8px; }
.form-page label small, .grid-form label small { font-weight: 400; color: var(--ink-3); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 10px 0 0; display: grid; gap: 8px; }
legend { font-weight: 700; padding: 0 6px; }
label.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 4px 0; }
label.choice input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--pen); }
.help { font-size: .9rem; color: var(--ink-2); margin: 8px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.errors { background: var(--bad-soft); color: var(--bad); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 1rem; font-weight: 600; }
.errors ul { margin: 0; padding-left: 18px; }

.foot { margin-top: 56px; padding-top: 20px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); }
.foot-links, .langs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0; }
.langs a[aria-current] { font-weight: 700; text-decoration-color: var(--pen); }
.signoff { font-family: var(--font-head); color: var(--ink-3); }

/* Desk */
.desk-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.desk-nav a { text-decoration: none; font-weight: 600; }
.desk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 16px; }
.desk-head h1 { margin: 0; overflow-wrap: anywhere; }
.flash { background: var(--pen-soft); color: var(--ink); border-left: 4px solid var(--pen); padding: 12px 16px; border-radius: var(--radius); }
.flash.warn { background: var(--gold-soft); border-left-color: var(--gold); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters input { flex: 1 1 220px; width: auto; }
.filters select { flex: 0 1 220px; width: auto; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.list { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.list th, .list td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.list .num { text-align: right; font-variant-numeric: tabular-nums; }
tr.dim, .card.dim { opacity: .6; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin: 16px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0; }
.cards .card { margin: 0; }
.big { font: 780 2rem/1.1 var(--font-head); }
.big small { font: 500 .9rem/1.4 var(--font-body); color: var(--ink-3); display: block; }
.bars { width: 100%; height: 90px; display: block; margin: 10px 0; }
.bars .b-scan { fill: var(--pen); }
.bars .b-click { fill: var(--gold); }
.tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.tops ul, ul.plain { list-style: none; padding: 0; margin: 0; }
.tops li { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; border-bottom: 1px dashed var(--line); padding: 3px 0; }
.poster-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.poster-grid img { width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
.poster-grid figure { margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 10px 0; }
.inline-form input[type=text] { width: auto; flex: 1 1 200px; }
form.inline { display: inline; }
code.copy { cursor: copy; background: var(--gold-soft); padding: 2px 6px; border-radius: 4px; }
code.copy.copied { background: var(--pen-soft); }
ul.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.login { max-width: 420px; margin: 40px auto; }

/* Phones: label above value on receipts, and desk tables become one card per row. */
@media (max-width: 479px) {
  .lines > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 639px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { display: none; }
  table.stack tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  table.stack td, table.stack td.num { border: 0; padding: 2px 0; text-align: left; }
  table.stack td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-3); font-size: .85rem; font-weight: 500; }
  table.stack td:empty { display: none; }
}
input[type=file] { font: inherit; font-size: .9rem; max-width: 100%; }

@media (min-width: 640px) {
  .tag { padding: 64px 36px 32px; }
  .hero { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
