/* FireStorm Feedback -- Firestorm colours (shared with DomainHub): white ground, Firestorm blue, neutral greys.
   Blue #197dc8 is taken from firestorm.ch (.theme-color / .theme-bg, links,
   submit buttons); the greys are the same family the site uses. */

:root {
  --blue:       #197dc8;   /* the brand blue, exactly as firestorm.ch uses it.
                              At 4.37:1 on white it is fine for large text and
                              for borders/marks, but just under AA for body
                              copy -- so small text uses --blue-text below. */
  --blue-text:  #1670b4;   /* 10% darker: 5.24:1 on white, 4.67:1 on tint  */
  --blue-dark:  #14639f;   /* hover / active                */
  --blue-deep:  #0f4b79;   /* headings on tinted panels     */
  --blue-tint:  #eaf3fb;   /* panel + badge backgrounds     */
  --blue-line:  #bcd9f0;

  --white:      #ffffff;
  --panel:      #f7f7f7;
  --panel-2:    #f2f2f2;
  --line:       #e0e0e0;
  --line-soft:  #ebebeb;

  --ink:        #2a2a2a;
  --ink-soft:   #666666;
  --ink-faint:  #8a8a8a;

  --ok:         #2e7d32;
  --ok-bg:      #edf6ed;
  --ok-line:    #c3e0c4;
  --warn:       #9a6400;
  --warn-bg:    #fff6e6;
  --warn-line:  #f0dcb0;
  --err:        #c0392b;
  --err-bg:     #fdeceb;
  --err-line:   #f2c6c1;

  /* System stack: renders as San Francisco on macOS/iOS, Segoe UI on Windows,
     Roboto on Android. Clean and familiar everywhere, and — unlike a webfont
     from a CDN — nothing is fetched from a third party, which keeps this out
     of the Google-Fonts privacy argument entirely. */
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          "Noto Sans", Arial, sans-serif;
  /* Kept for things where character alignment carries meaning: DNS records,
     private links, timestamps. */
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1400px, 100% - 4rem); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 2rem); } }

/* --- chrome ------------------------------------------------------------ */

.topbar {
  border-bottom: 1px solid var(--line);
  background: #ffffffec;
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 5;
}
.topbar .wrap {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .85rem 0; flex-wrap: wrap;
}
.brand {
  color: var(--ink); text-decoration: none; font-weight: 700;
  letter-spacing: -.02em; font-size: 1.05rem;
}
.brand b { color: var(--blue-text); font-weight: 700; }
.brand .dot {
  display: inline-block; width: .5rem; height: .5rem; margin-right: .5rem;
  background: var(--blue); border-radius: 50%;
}
.tag { color: var(--ink-soft); font-size: .8rem; }

main.wrap { padding: 2.5rem 0 3rem; }

.foot {
  border-top: 1px solid var(--line-soft);
  padding: 1.5rem 0 2.5rem; color: var(--ink-soft); font-size: .78rem;
  text-align: center;
}
.foot p { margin: 0 auto; max-width: 70ch; }

/* --- type -------------------------------------------------------------- */

h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; margin: .2rem 0 .6rem;
     letter-spacing: -.022em; font-weight: 700; color: var(--ink); }
h2 { font-size: .82rem; margin: 0 0 .9rem; letter-spacing: .09em;
     text-transform: uppercase; color: var(--blue-text); font-weight: 700; }
a { color: var(--blue-text); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

.eyebrow { color: var(--ink-soft); font-size: .75rem; letter-spacing: .16em;
           text-transform: uppercase; margin: 0; }
.lede { color: #3f3f3f; font-size: 1.02rem; max-width: 62ch; }
.muted { color: var(--ink-soft); font-size: .86rem; }
.hint { color: var(--ink-soft); font-weight: 400; font-size: .76rem; }
.fineprint { color: var(--ink-soft); font-size: .76rem; margin: .6rem 0 0; }
.mono { font-family: var(--mono); }
.strong { font-weight: 700; }

.domain {
  font-size: clamp(1.9rem, 6vw, 3.4rem); letter-spacing: -.025em; font-weight: 700;
  word-break: break-word; overflow-wrap: anywhere;
  margin: .1rem 0 .5rem; color: var(--ink);
}
.price { font-size: 1.6rem; color: var(--blue); font-weight: 700; margin: .4rem 0 1rem;
         font-variant-numeric: tabular-nums; }
.price .hint { display: block; color: var(--ink-soft); font-weight: 400; font-size: .74rem;
               letter-spacing: .12em; text-transform: uppercase; }

/* --- layout ------------------------------------------------------------ */

.hero { margin-bottom: 2.5rem; }

/* Hub landing: headline and standfirst centred across the full container,
   spanning both columns of the grid below rather than sitting above the
   left one. The reading-measure cap is lifted here on purpose. */
.hero-center { text-align: center; margin-bottom: 3rem; }
.hero-center h1 { margin-inline: auto; }
.hero-center .lede { max-width: none; margin-inline: auto; }
.head { display: flex; justify-content: space-between; align-items: flex-start;
        gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.badges { display: flex; gap: .5rem; flex-wrap: wrap; padding-top: 1.2rem; }
.parked { text-align: left; margin-bottom: 2rem; }

.grid2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.5rem; align-items: start; }
.stack { display: grid; gap: 1.5rem; }
section + section { margin-top: 1.75rem; }
@media (max-width: 820px) { .grid2 { grid-template-columns: 1fr; } }

/* Sale page: the pitch on the left, the offer form beside it rather than a
   long way below it. Collapses to one column well before it gets cramped. */
.saleview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
            gap: 2.5rem; align-items: start; }
.saleview > section + section { margin-top: 0; }
/* Not sticky on purpose: the form is taller than a short viewport, and a
   sticky box taller than the space it is pinned in makes its own bottom
   unreachable. */
.saleview .offerbox { max-width: none; }
@media (max-width: 980px) { .saleview { grid-template-columns: 1fr; gap: 1.75rem; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / .04);
}
.card.notice  { border-color: var(--blue-line); background: var(--blue-tint); }
.card.notice h2 { color: var(--blue-deep); }
.card.accepted{ border-color: var(--ok-line); background: var(--ok-bg); }
.card.accepted h2 { color: var(--ok); }
.card.empty   { color: var(--ink-soft); background: var(--panel); }
.card.desc    { max-width: 62ch; background: var(--panel); }
.card p:last-child { margin-bottom: 0; }
.offerbox { max-width: 42rem; }

/* --- stats ------------------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
         gap: .75rem; margin-bottom: 1.5rem; }
.stat { border: 1px solid var(--line); border-radius: 6px; padding: .7rem .9rem;
        background: var(--panel); }
.stat .k { display: block; color: var(--ink-soft); font-size: .7rem;
           letter-spacing: .12em; text-transform: uppercase; }
.stat .v { display: block; font-size: 1.2rem; font-weight: 700;
           word-break: break-word; overflow-wrap: anywhere;
           font-variant-numeric: tabular-nums; }

/* --- forms ------------------------------------------------------------- */

.form { display: grid; gap: .9rem; }
.form label { display: grid; gap: .3rem; font-size: .8rem; color: var(--ink-soft);
              letter-spacing: .04em; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

input[type=text], input[type=email], textarea {
  font-family: var(--sans); font-size: .95rem;
  background: var(--white); color: var(--ink);
  border: 1px solid #cccccc; border-radius: 4px;
  padding: .6rem .7rem; width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:focus, textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(25 125 200 / .18);
}
textarea { resize: vertical; }

button, .button {
  font-family: var(--sans); font-size: .9rem; font-weight: 600;
  background: var(--blue-text); color: var(--white); border: 1px solid var(--blue-text);
  border-radius: 4px; padding: .6rem 1.1rem; cursor: pointer;
  text-decoration: none; display: inline-block; letter-spacing: .01em;
}
button:hover, .button:hover { background: var(--blue-dark); border-color: var(--blue-dark);
                              color: var(--white); }
button.ghost { background: var(--white); color: var(--blue-text); }
button.ghost:hover { background: var(--blue-tint); color: var(--blue-dark); }
button.small { padding: .3rem .7rem; font-size: .78rem; }
form.inline { display: inline-block; margin: 0 .15rem 0 0; }
.form.inline { display: flex; gap: .5rem; flex-wrap: wrap; }
.form.inline input { flex: 1 1 12rem; }

.hp { position: absolute; left: -9999px; }   /* honeypot */

/* --- flashes ----------------------------------------------------------- */

.flash { border-radius: 6px; padding: .8rem 1rem; margin-bottom: 1.25rem;
         font-size: .88rem; border: 1px solid; }
.flash-ok    { border-color: var(--ok-line);  background: var(--ok-bg);  color: #1f5c23; }
.flash-error { border-color: var(--err-line); background: var(--err-bg); color: #8f2a20; }

/* --- badges ------------------------------------------------------------ */

.badge {
  display: inline-block; font-size: .68rem; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 700;
  padding: .28rem .6rem; border-radius: 999px; border: 1px solid;
}
.badge-live, .badge-accepted { color: var(--ok);   border-color: var(--ok-line);   background: var(--ok-bg); }
.badge-sold                  { color: var(--blue-text); border-color: var(--blue-line); background: var(--blue-tint); }
.badge-warn, .badge-pending  { color: var(--warn); border-color: var(--warn-line); background: var(--warn-bg); }
.badge-off, .badge-declined,
.badge-superseded, .badge-withdrawn,
.badge-unknown               { color: var(--ink-soft); border-color: var(--line); background: var(--panel); }

/* --- tables ------------------------------------------------------------ */

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table.offers { border-collapse: collapse; width: 100%; min-width: 700px;
               background: var(--white); }
.offers th {
  text-align: left; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700; padding: .7rem .9rem;
  background: var(--panel);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.offers td { padding: .8rem .9rem; border-bottom: 1px solid var(--line-soft);
             vertical-align: top; font-size: .86rem; }
.offers tr:last-child td { border-bottom: none; }
.offers .num { text-align: right; white-space: nowrap;
               font-variant-numeric: tabular-nums; }
.offers .msg { color: var(--ink-soft); max-width: 26ch; }
.offers .actions { white-space: nowrap; text-align: right; }
.offers tr.row-accepted { background: var(--ok-bg); }
.offers tr.row-superseded td, .offers tr.row-declined td,
.offers tr.row-withdrawn td { color: var(--ink-faint); }

/* --- misc -------------------------------------------------------------- */

pre.dns {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px;
  padding: .8rem .9rem; overflow-x: auto; font-size: .82rem; color: #3b3b3b;
  margin: .8rem 0;
}
pre.wrapme { white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere; }

dl.kv { display: grid; grid-template-columns: 8rem 1fr; gap: .35rem 1rem;
        margin: .8rem 0; font-size: .88rem; }
dl.kv dt { color: var(--ink-soft); font-size: .78rem; letter-spacing: .06em;
           text-transform: uppercase; }
dl.kv dd { margin: 0; word-break: break-word; }
@media (max-width: 480px) { dl.kv { grid-template-columns: 1fr; gap: 0 0; }
                            dl.kv dd { margin-bottom: .5rem; } }

ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
ul.ticks li { padding-left: 1.4rem; position: relative; color: #3f3f3f; font-size: .88rem; }
ul.ticks li::before { content: "▸"; position: absolute; left: 0; color: var(--blue); }

/* --- language switcher -------------------------------------------------- */

.langbar { margin-left: auto; display: flex; gap: .2rem; }
.langbar a {
  color: var(--ink-soft); text-decoration: none; font-size: .72rem;
  letter-spacing: .08em; padding: .22rem .5rem; border-radius: 4px;
  border: 1px solid transparent;
}
.langbar a:hover { color: var(--ink); background: var(--panel); }
.langbar a.on { color: var(--blue-text); border-color: var(--blue-line); background: var(--blue-tint); }
/* The tagline names the company, so it is long; drop it before it starts
   pushing the language switcher onto a second line. */
@media (max-width: 900px) { .topbar .tag { display: none; } }

/* --- captcha ------------------------------------------------------------ */

.captcha {
  display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 6px;
  padding: .9rem; background: var(--panel);
}
.captcha img {
  display: block; border-radius: 4px; border: 1px solid var(--line);
  max-width: 100%; height: auto; background: var(--white);
}
.captcha-side { flex: 1 1 11rem; display: grid; gap: .45rem; }
.captcha-side input { font-family: var(--mono); letter-spacing: .4em; font-size: 1.05rem; }
a.reload { font-size: .74rem; color: var(--ink-soft); text-decoration: none;
           border-bottom: 1px dotted var(--line); }
a.reload:hover { color: var(--blue-text); border-color: var(--blue-line); }

/* ===== FireStorm Feedback additions ======================================= */

.skip { position: absolute; left: -9999px; top: 0; background: var(--white); padding: .5rem 1rem;
        z-index: 10; border: 1px solid var(--blue); }
.skip:focus { left: 1rem; top: 1rem; }

.mainnav { display: flex; gap: .2rem; margin-left: 1rem; }
.mainnav a { color: var(--ink-soft); text-decoration: none; font-size: .86rem; padding: .25rem .6rem;
             border-radius: 4px; border: 1px solid transparent; }
.mainnav a:hover { color: var(--ink); background: var(--panel); }
.mainnav a.on { color: var(--blue-text); background: var(--blue-tint); border-color: var(--blue-line); }
@media (max-width: 640px) { .mainnav { margin-left: 0; width: 100%; order: 3; } }

.button.big { font-size: 1rem; padding: .75rem 1.4rem; }
button.danger, .button.danger { color: var(--err); border-color: var(--err-line); background: var(--white); }
button.danger:hover { background: var(--err-bg); color: var(--err); border-color: var(--err); }
button.linklike { background: none; border: none; color: var(--blue-text); padding: 0; font-size: inherit;
                  font-weight: 400; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
button.linklike:hover { background: none; color: var(--blue-dark); }

select {
  font-family: var(--sans); font-size: .95rem; background: var(--white); color: var(--ink);
  border: 1px solid #cccccc; border-radius: 4px; padding: .55rem .7rem; width: 100%;
}
select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(25 125 200 / .18); }
input[type=search] {
  font-family: var(--sans); font-size: .95rem; background: var(--white); color: var(--ink);
  border: 1px solid #cccccc; border-radius: 4px; padding: .55rem .7rem; width: 100%;
}
input[type=search]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(25 125 200 / .18); }
input[readonly] { background: var(--panel); color: var(--ink-soft); }
label.check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--ink); }
label.check input { width: auto; }

/* --- status tabs ------------------------------------------------------- */

.tabs { display: flex; gap: .25rem; flex-wrap: wrap; border-bottom: 1px solid var(--line);
        margin-bottom: 1rem; }
.tabs a { color: var(--ink-soft); text-decoration: none; font-size: .86rem; font-weight: 600;
          padding: .55rem .8rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--blue-text); border-bottom-color: var(--blue); }
.tabs .n { display: inline-block; margin-left: .4rem; font-size: .7rem; font-weight: 700;
           color: var(--ink-soft); background: var(--panel); border-radius: 999px; padding: .1rem .45rem;
           font-variant-numeric: tabular-nums; }
.tabs a.on .n { color: var(--blue-text); background: var(--blue-tint); }

.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: .5rem; }
.filters select { width: auto; min-width: 11rem; }
.filters input[type=search] { flex: 1 1 14rem; width: auto; }
.count { margin: .2rem 0 1rem; }

/* --- idea list --------------------------------------------------------- */

ol.ideas { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.idea.card { display: grid; grid-template-columns: 5.2rem 1fr; gap: 1.1rem; padding: 1rem 1.2rem; }
.idea h3 { margin: 0 0 .3rem; font-size: 1.12rem; line-height: 1.3; letter-spacing: -.01em; }
.idea h3 a { color: var(--ink); text-decoration: none; }
.idea h3 a:hover { color: var(--blue-text); text-decoration: underline; }
.meta { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .2rem 0 .6rem;
        font-size: .8rem; color: var(--ink-soft); }
.excerpt { margin: 0; color: #3f3f3f; font-size: .93rem; }
.answer { margin: .6rem 0 0; font-size: .86rem; color: var(--blue-deep); background: var(--blue-tint);
          border-left: 3px solid var(--blue); padding: .5rem .75rem; border-radius: 0 4px 4px 0; }
@media (max-width: 560px) { .idea.card { grid-template-columns: 4.4rem 1fr; gap: .8rem; padding: .9rem; } }

/* --- vote box ---------------------------------------------------------- */

.votebox { display: flex; align-items: flex-start; }
.voteform { margin: 0; }
.vote {
  display: grid; justify-items: center; gap: 0; width: 5.2rem; padding: .55rem .3rem .45rem;
  border: 1px solid var(--blue-line); border-radius: 8px; background: var(--white);
  color: var(--blue-text); font-family: var(--sans); cursor: pointer; line-height: 1.1;
}
.vote .n { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.vote .l { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-top: .25rem; }
button.vote:hover { background: var(--blue-tint); border-color: var(--blue); color: var(--blue-dark); }
button.vote.on { background: var(--blue-text); border-color: var(--blue-text); color: var(--white); }
button.vote.on:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.vote.off { color: var(--ink-soft); border-color: var(--line); background: var(--panel); cursor: default; }
.votebox.big .vote { width: 6rem; padding: .8rem .3rem .7rem; }
.votebox.big .vote .n { font-size: 1.8rem; }
@media (max-width: 560px) { .vote { width: 4.4rem; } }

/* --- idea page --------------------------------------------------------- */

.ideaview { display: grid; grid-template-columns: 6rem 1fr; gap: 1.5rem; align-items: start; }
.ideaview h1 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin-top: 0; }
.ideaview .card.desc { max-width: none; margin-bottom: 1.25rem; }
.ideaview .card.notice { margin-bottom: 1.25rem; }
.share { margin-top: 1.5rem; }
.sharelink { font-size: .82rem; max-width: 40rem; }
@media (max-width: 560px) { .ideaview { grid-template-columns: 1fr; gap: 1rem; } }

/* --- forms ------------------------------------------------------------- */

.formview { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem; align-items: start; }
.formview .intro h1 { margin-top: 0; }
.formview.narrow { grid-template-columns: minmax(0, 28rem); justify-content: center; }
@media (max-width: 820px) { .formview { grid-template-columns: 1fr; gap: 1rem; } }
.form .card, .form.card { max-width: none; }
.form h2 { margin-bottom: .2rem; }

/* --- badges ------------------------------------------------------------ */

.badge-open        { color: var(--blue-text); border-color: var(--blue-line); background: var(--blue-tint); }
.badge-planned     { color: #5b3fa3; border-color: #d6ccef; background: #f1edfa; }
.badge-in_progress { color: var(--warn); border-color: var(--warn-line); background: var(--warn-bg); }
.badge-done        { color: var(--ok); border-color: var(--ok-line); background: var(--ok-bg); }
.badge-declined, .badge-merged, .badge-unconfirmed
                   { color: var(--ink-soft); border-color: var(--line); background: var(--panel); }
.badge-pending     { color: var(--warn); border-color: var(--warn-line); background: var(--warn-bg); }
.badge-cat         { color: var(--ink-soft); border-color: var(--line); background: var(--white); }

/* --- misc -------------------------------------------------------------- */

.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 1.5rem; }
.message h1 { margin-top: 0; }
.message .lede { max-width: none; }
.footlinks { margin-top: .5rem; }
.footlinks .sep { margin: 0 .5rem; }
.footlinks form.inline { margin-left: .5rem; }
.err { color: var(--err); font-weight: 600; }
ul.log { list-style: none; padding: 0; margin: 0; font-size: .8rem; display: grid; gap: .3rem; }
table.offers.compact { min-width: 0; }
table.offers.compact td, table.offers.compact th { padding: .5rem .6rem; font-size: .8rem; }
body.admin .topbar .brand .tag { margin-left: .5rem; }
