/* Atvērtie konkursi - public pages on protu.lv.
   The dark studio of the protu.lv home (protu/DESIGN.md): near-black ground, warm white ink,
   one amber light that lives in the line under the bar. On Konkursi the light means time:
   the board is sorted by deadline, and what closes soonest sits in the light while far-off
   calls fall back into the dark. Amber is used for urgency, the one action and focus only.
   Colour never carries a fact on its own: every heat level is also said in words. */

/* Self-hosted, so no request leaves protu.lv to render this page.
   The unicode-range split means a reader whose text carries no Latvian
   diacritics never downloads the latin-ext file. Only the latin Inter Tight
   file is preloaded; everything else arrives when it is needed. */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-tight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, 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: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens (same values as protu/src/builder.css on .site-protu) ── */

:root {
  --ground: #121318;
  --surface: #1b1c22;
  --frame: #202128;
  --rule: #2b2c33;
  --ink: #f3eee6;
  --ink-bright: #fff;
  --ink-far: #d6d1c9;     /* titles that are far off: a step back, still 12:1 */
  --muted: #a29d95;
  --accent: #f5a04a;      /* the light: lines, rails, focus */
  --accent-ink: #f7b26a;  /* amber text */
  --light-hot: 255 214 168;
  --light: 245 160 74;
  --glass: rgb(255 255 255 / 0.12);
  --glass-fill: rgb(255 255 255 / 0.03);
  --success: #7bd3a0;
  --error: #ff8a7a;

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", SFMono-Regular, Menlo, monospace;
  --gutter: clamp(1rem, 2.4vw, 2.25rem);
  --bar-h: 3.75rem;
  --container: 92rem;
  --text-scale: 1;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* The time rail on the board: where the line runs inside each card's left padding. */
  --rail: 1.5rem;
  --rail-x: 0.3rem;

  color-scheme: dark;
  scrollbar-color: #3a3b43 var(--ground);
}
@media (min-width: 48rem) { :root { --rail: 2.5rem; --rail-x: 0.55rem; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--ground); }

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: calc(1.0625rem * var(--text-scale));
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  caret-color: var(--accent);
}

::selection { background: rgb(var(--light) / 0.32); color: var(--ink-bright); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
p { margin: 0 0 .85em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

/* Links: ink with an amber underline; amber on hover. */
a {
  color: inherit;
  text-decoration-color: rgb(var(--light) / 0.6); text-decoration-thickness: 1.5px; text-underline-offset: .2em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
a:hover { color: var(--accent-ink); text-decoration-color: var(--accent-ink); }

.muted { color: var(--muted); }
del { color: var(--muted); }
time, .count, .shortlink { font-variant-numeric: tabular-nums; }

.skip {
  position: fixed; top: .5rem; left: .5rem; z-index: 50;
  padding: .6rem 1rem; border-radius: 999px; background: var(--ink); color: var(--ground);
  font-weight: 600; text-decoration: none; transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Bar (same as protu.lv: mark / centred links / sign-in; its edge is the light) ── */

.bar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  min-height: var(--bar-h); padding: 0 var(--gutter);
  background: var(--ground);
}
.bar::after {
  content: ""; position: absolute; inset: auto 0 -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgb(var(--light) / 0) 0%, rgb(var(--light) / 0.35) 18%,
    rgb(var(--light-hot) / 0.95) 50%, rgb(var(--light) / 0.35) 82%, rgb(var(--light) / 0) 100%);
  box-shadow: 0 0 10px 1px rgb(var(--light) / 0.4), 0 0 28px 2px rgb(var(--light) / 0.16);
}
.bar-mark { justify-self: start; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.035em; text-decoration: none; }
.bar-mark:hover { color: inherit; }
.bar-nav { display: flex; justify-self: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.bar-nav a { font-size: 1rem; font-weight: 450; text-decoration: none; }
.bar-nav a:hover { color: var(--accent-ink); }
.bar-nav a[aria-current] { font-weight: 600; }
.bar-end { justify-self: end; display: flex; align-items: center; gap: clamp(.75rem, 1.6vw, 1.5rem); }
.bar-login { font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.bar-login:hover { color: var(--accent-ink); }
.bar-menu, .bar-menu-login { display: none; }

/* Without JS on a tablet or phone the links wrap to a second row. */
@media (max-width: 64rem) {
  .bar { grid-template-columns: 1fr auto; grid-template-areas: "mark end" "nav nav"; padding-block: .6rem; row-gap: .35rem; }
  .bar-mark { grid-area: mark; }
  .bar-end { grid-area: end; }
  .bar-nav { grid-area: nav; justify-self: start; flex-wrap: wrap; gap: .25rem 1.1rem; }
  .bar-nav a { font-size: .9375rem; }
}
@media (max-width: 40rem) { .bar-login { display: none; } }

/* Phone menu (same hamburger as protu.lv, builder.css). Only once konkursi.js ran (data-js). */
@media (max-width: 56rem) {
  .bar[data-js] { grid-template-columns: 1fr auto; grid-template-areas: none; padding-block: 0; row-gap: 0; }
  .bar[data-js] .bar-end { display: none; }
  .bar[data-js] > .bar-mark, .bar[data-js] > .bar-menu { grid-area: auto; grid-row: 1; }
  .bar[data-js] > .bar-mark { grid-column: 1; }
  .bar[data-js] > .bar-menu { grid-column: 2; justify-self: end; }

  .bar[data-js] .bar-menu {
    display: grid; place-items: center;
    width: 2.75rem; height: 2.75rem; margin-right: -0.6rem; padding: 0;
    border: 0; background: none; color: var(--ink); cursor: pointer; box-shadow: none;
    -webkit-tap-highlight-color: transparent;
  }
  .bar-burger { position: relative; display: block; width: 1.375rem; height: 0.875rem; }
  .bar-burger span {
    position: absolute; right: 0; width: 100%; height: 1.5px; border-radius: 1px; background: currentColor;
    transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 200ms ease, width 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .bar-burger span:nth-child(1) { top: 0; }
  .bar-burger span:nth-child(2) { top: calc(50% - 0.75px); width: 64%; }
  .bar-burger span:nth-child(3) { bottom: 0; }
  .bar-menu:hover .bar-burger span:nth-child(2) { width: 100%; }
  .bar-menu[aria-expanded="true"] .bar-burger span:nth-child(1) { transform: translateY(calc(0.4375rem - 0.75px)) rotate(45deg); }
  .bar-menu[aria-expanded="true"] .bar-burger span:nth-child(2) { opacity: 0; width: 0; }
  .bar-menu[aria-expanded="true"] .bar-burger span:nth-child(3) { transform: translateY(calc(-0.4375rem + 0.75px)) rotate(-45deg); }
  .bar-menu:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -4px; border-radius: 8px; }

  .bar[data-js] .bar-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; gap: 0;
    grid-area: auto; justify-self: stretch;
    padding: 0.25rem var(--gutter) 0.75rem;
    border-bottom: 1px solid var(--rule); background: var(--ground);
  }
  .bar[data-js][data-menu] .bar-nav { display: flex; animation: bar-drop 280ms cubic-bezier(0.2, 0.8, 0.2, 1); }
  .bar[data-js] .bar-nav a, .bar[data-js] .bar-menu-login {
    display: flex; align-items: center; min-height: 2.75rem;
    font-size: 1.0625rem; font-weight: 450; text-decoration: none;
  }
  .bar[data-js] .bar-nav a[aria-current] { font-weight: 600; }
}
@keyframes bar-drop { from { opacity: 0; transform: translateY(-0.5rem); } }

/* ── Page ────────────────────────────────────────────────── */

.wrap {
  max-width: var(--container); margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.75rem) var(--gutter) clamp(2.5rem, 5vw, 4.5rem);
}

/* Page heading: white, with a short lit rule under it that fades from the left. */
.page-head, .prose > h1 { position: relative; padding-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.page-head::after, .prose > h1::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: min(36rem, 70%); height: 1px;
  background: linear-gradient(90deg, rgb(var(--light-hot) / 0.85), rgb(var(--light) / 0));
}
.page-head h1, .wrap > h1, .prose > h1 {
  color: var(--ink-bright);
  font-size: calc(clamp(2.5rem, 5.5vw, 4.5rem) * var(--text-scale));
  line-height: .95; letter-spacing: -0.04em;
}
.lead {
  max-width: 52ch; margin: 1.1rem 0 0;
  font-size: calc(clamp(1.0625rem, 1.5vw, 1.3125rem) * var(--text-scale)); line-height: 1.42; letter-spacing: -0.01em;
}
.count { margin: 0; font-family: var(--mono); font-size: .8125rem; color: var(--muted); }

/* ── Find: one search box and three filters ──────────────── */

.find { margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; }
.find p { margin: 0; }
.find label, .filters label { display: block; margin-bottom: .3rem; font-size: .8125rem; font-weight: 500; color: var(--muted); }

.find__row {
  display: grid; gap: .65rem .6rem; align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "q go" "pick pick";
}
.find__q { grid-area: q; }
.find__go { grid-area: go; }
.find__pick { grid-area: pick; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 64rem) {
  .find__row { grid-template-columns: minmax(16rem, 1.15fr) minmax(0, 2fr) auto; grid-template-areas: "q pick go"; gap: .75rem; }
}
.find__row.find__row--one { grid-template-columns: minmax(0, 22rem) auto; grid-template-areas: none; justify-content: start; }

/* Fields: hairline glass on the dark, 44px tall. A chosen filter brightens its edge. */
.find input, .find select,
.filters select, .filters input[type="number"], .filters input[type="email"], .filters input[type="url"],
.filters input[type="search"], .filters input[type="text"], .filters input[type="date"], .filters textarea {
  width: 100%; min-height: 2.75rem; padding: .55rem .85rem;
  border: 1px solid var(--glass); border-radius: .65rem;
  background-color: var(--glass-fill); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.find select, .filters select {
  appearance: none; padding-right: 2.2rem; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a29d95' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right .8rem center; background-size: .65rem auto; background-repeat: no-repeat;
}
.find select option, .filters select option { background: var(--surface); color: var(--ink); }
.find input::placeholder, .filters input::placeholder { color: #8c877f; opacity: 1; }
.find input[type="search"]::-webkit-search-cancel-button { filter: invert(0.7); }
.filters input[type="date"] { max-width: 14rem; font-family: var(--mono); font-size: .9375rem; }
.filters input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.75); cursor: pointer; }
.find input:hover, .find select:hover,
.filters select:hover, .filters input:hover, .filters textarea:hover { border-color: rgb(255 255 255 / 0.26); }
.find input:focus, .find select:focus,
.filters select:focus, .filters input:focus, .filters textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgb(var(--light) / 0.2); outline: none;
}
.find select:has(option:checked:not([value=""])),
.find input[type="search"]:not(:placeholder-shown),
.find input[type="number"]:not(:placeholder-shown) {
  border-color: rgb(255 255 255 / 0.5); background-color: rgb(255 255 255 / 0.06);
}
.filters input:user-invalid, .filters textarea:user-invalid { border-color: var(--error); }

/* The rest of the filters: closed unless one of them is on. */
.find__more { margin-top: .85rem; }
.find__more > summary {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; cursor: pointer; list-style: none;
  font-size: .9375rem; font-weight: 500; color: var(--muted);
}
.find__more > summary:hover { color: var(--ink); }
.find__more > summary::-webkit-details-marker { display: none; }
.find__more > summary::after {
  content: ""; width: .45rem; height: .45rem; margin-left: .1rem;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-.15rem) rotate(45deg); transition: transform 200ms var(--ease-out);
}
.find__more[open] > summary::after { transform: translateY(.1rem) rotate(-135deg); }
.find__on { color: var(--ink); }
.find__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .75rem;
  margin-top: .5rem; padding: 1rem; border: 1px solid var(--glass); border-radius: .9rem; background: var(--glass-fill);
}
.find__go--more { margin-top: 1rem !important; }
[data-js] .find__go--more { display: none; }

.switches { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: .85rem 0 0; }
.chip {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .45rem 1rem; border: 1px solid var(--glass); border-radius: 999px;
  font-size: .9375rem; cursor: pointer; user-select: none; transition: border-color 160ms ease, background 160ms ease;
}
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip:hover { border-color: rgb(255 255 255 / 0.3); }
.chip:has(input:checked) { border-color: rgb(255 255 255 / 0.6); background: rgb(255 255 255 / 0.08); }
.chip:has(input:checked)::before {
  content: ""; width: .5rem; height: .28rem; margin-right: .55rem;
  border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-.1rem) rotate(-45deg);
}
.chip:has(input:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

/* ── The board ───────────────────────────────────────────── */

.board__status {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; padding-bottom: .75rem; border-bottom: 1px solid var(--rule);
}
.board__reset { font-size: .9375rem; }

.board__list { position: relative; }

/* The time rail: one 1px line down the left of the list. It carries the bar's light into the
   list: bright at the top (closing in days), cooling through two weeks, then plain rule. */
.band { position: relative; }
.band::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--rail-x); width: 1px; pointer-events: none;
  background: var(--rule);
}
.band[data-band="hot"]::before {
  background: linear-gradient(180deg, rgb(var(--light-hot) / 0.95), rgb(var(--light) / 0.7));
  box-shadow: 0 0 6px 0 rgb(var(--light) / 0.55), 0 0 18px 0 rgb(var(--light) / 0.2);
}
.band[data-band="warm"]::before { background: linear-gradient(180deg, rgb(var(--light) / 0.7), rgb(var(--light) / 0.16)); }
.band[data-band="later"]::before { background: linear-gradient(180deg, rgb(var(--light) / 0.16), var(--rule) 14rem); }
.band[data-band="undated"]::before {
  background: repeating-linear-gradient(180deg, var(--rule) 0 4px, transparent 4px 9px);
}
.band:last-child::before { bottom: 1.5rem; }

.band__head {
  position: relative; padding: clamp(1.5rem, 3vw, 2.25rem) 0 .35rem var(--rail);
  font-size: 1rem; font-weight: 650; letter-spacing: -0.015em; color: var(--muted);
}
.band__head::before {
  content: ""; position: absolute; left: calc(var(--rail-x) - 4.5px); bottom: .72rem;
  width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--rule); background: var(--ground);
}
.band[data-band="hot"] .band__head { color: var(--accent-ink); }
.band[data-band="hot"] .band__head::before { border-color: rgb(var(--light-hot)); background: rgb(var(--light-hot)); box-shadow: 0 0 10px 1px rgb(var(--light) / 0.7); }
.band[data-band="warm"] .band__head { color: var(--ink); }
.band[data-band="warm"] .band__head::before { border-color: var(--accent); }

.calls { list-style: none; margin: 0; padding: 0; }

/* A call card. Phone: one column, time first. Wide: time | title, organiser, summary | money. */
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.1rem 0 1.15rem var(--rail);
  border-top: 1px solid var(--rule);
  transition: background-color 220ms var(--ease-out);
}
.card:first-child { border-top-color: transparent; }
.card__main { display: contents; }
.card__when { order: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; margin: 0 0 .4rem; font-family: var(--mono); }
.card__title { order: 1; }
.card__who { order: 2; }
.card__money { order: 3; }
.card__summary { order: 4; }

@media (min-width: 52rem) {
  .card {
    display: grid; grid-template-columns: 11rem minmax(0, 1fr) minmax(9rem, 15rem); gap: 0 clamp(1.25rem, 2.5vw, 2.5rem);
    align-items: start; padding-block: 1.35rem 1.4rem;
  }
  .card__main { display: block; min-width: 0; }
  .card__when { flex-direction: column; gap: .2rem; margin: 0; padding-top: .2rem; }
}

/* The rail stop for each call. */
.card::before {
  content: ""; position: absolute; left: calc(var(--rail-x) - 3px); top: 1.55rem;
  width: 7px; height: 7px; border-radius: 50%; border: 1px solid #4a4b53; background: var(--ground);
}
@media (min-width: 52rem) { .card::before { top: 1.85rem; } }

.card__left { font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); white-space: nowrap; }
.card__date { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.card__title {
  margin: 0; font-size: calc(clamp(1.1875rem, 1.9vw, 1.5rem) * var(--text-scale));
  font-weight: 650; line-height: 1.16; letter-spacing: -0.025em; color: var(--ink-far);
  overflow-wrap: anywhere; hyphens: auto;
}
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__link:focus-visible { outline: none; }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: -2px; border-radius: .5rem; }
.card:hover .card__title { color: #ffd7a8; }
.card:hover { background-color: rgb(255 255 255 / 0.025); }
.card__who { margin: .3rem 0 0; font-size: .9375rem; color: var(--muted); }
.card__summary {
  margin: .45rem 0 0; max-width: 72ch; font-size: .9375rem; line-height: 1.5; color: #bdb7ae;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
@media (min-width: 52rem) { .card__summary { -webkit-line-clamp: 1; line-clamp: 1; } }
.card__money { margin: .45rem 0 0; font-size: .9375rem; line-height: 1.4; color: var(--ink); }
.card__money span:not(.visually-hidden) { display: block; }
.card__money span + span + span, .card__money span:nth-child(3) { color: var(--muted); }
@media (max-width: 51.99rem) {
  .card__money span:not(.visually-hidden) { display: inline; }
  .card__money span:nth-child(3)::before { content: " · "; }
}
@media (min-width: 52rem) { .card__money { margin: 0; padding-top: .15rem; } }

.tag {
  display: inline-block; margin-left: .55rem; padding: 0 .5rem; border: 1px solid var(--glass); border-radius: 999px;
  font-size: .75rem; font-weight: 550; line-height: 1.5; color: var(--ink); vertical-align: .08em; text-decoration: none;
}
.tag--fair { margin-left: 0; border-color: rgb(123 211 160 / 0.6); color: var(--success); }

/* Heat. Hot (three days or less): the call sits in the light. Warm (two weeks): its time
   catches it. Later: it falls back into the dark. Undated and closed stay quiet. */
.card[data-heat="hot"] {
  background-image: linear-gradient(90deg, rgb(var(--light) / 0.1), rgb(var(--light) / 0.03) 40%, rgb(var(--light) / 0) 75%);
}
.card[data-heat="hot"]::before { border-color: rgb(var(--light-hot)); background: rgb(var(--light-hot)); box-shadow: 0 0 8px 1px rgb(var(--light) / 0.75); }
.card[data-heat="hot"] .card__left { color: var(--accent-ink); font-weight: 650; }
.card[data-heat="hot"] .card__date { color: var(--ink); }
.card[data-heat="hot"] .card__title { color: var(--ink-bright); }

.card[data-heat="warm"]::before { border-color: var(--accent); background: rgb(var(--light) / 0.35); }
.card[data-heat="warm"] .card__left { color: var(--accent-ink); }
.card[data-heat="warm"] .card__title { color: var(--ink-bright); }

.card[data-heat="undated"]::before { border-style: dashed; }
.card[data-heat="closed"] .card__title { color: var(--ink-far); }
.card[data-heat="closed"] .tag--new { display: none; }

.board__footnote { margin: 1.25rem 0 0; padding-left: var(--rail); font-size: .9375rem; color: var(--muted); }
.board__footnote a { color: var(--ink); }
.empty + .board__footnote { padding-left: 0; }
.empty { margin: 1.5rem 0 0; padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-bottom: 1px solid var(--rule); font-size: 1.125rem; color: var(--muted); }
.empty a { color: var(--ink); }
.pager { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: baseline; margin: 1.5rem 0 0 var(--rail); font-size: .9375rem; }
.pager span { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }

/* After the list: one quiet way to keep up. */
.follow {
  display: grid; gap: 1rem 2rem; align-items: center;
  margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(1.75rem, 3.5vw, 2.5rem); border-top: 1px solid var(--rule);
}
.follow h2 { font-size: calc(clamp(1.375rem, 2.4vw, 1.875rem) * var(--text-scale)); color: var(--ink-bright); }
.follow h2 + p { margin-top: .5rem; max-width: 48ch; color: var(--muted); }
.follow__go { margin: 0; }
.follow__more { margin: 0; font-size: .9375rem; color: var(--muted); }
.follow__more a { color: var(--ink); }
@media (min-width: 52rem) {
  .follow { grid-template-columns: minmax(0, 1fr) auto; }
  .follow__more { grid-column: 1 / -1; }
}

/* ── Buttons: the one action is a warm outlined pill, never solid ── */

button, .primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem;
  padding: .7rem 1.4rem; border: 1.5px solid rgb(var(--light) / 0.9); border-radius: 999px;
  background: rgb(18 19 24 / 0.55); color: var(--accent-ink);
  font: inherit; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background 220ms var(--ease-out), color 220ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
button:hover, .primary:hover {
  background: rgb(var(--light) / 0.14); color: #ffd7a8;
  box-shadow: 0 0.6rem 2rem -0.6rem rgb(var(--light) / 0.55), inset 0 0 1.2rem rgb(var(--light) / 0.12);
}
.primary { padding: .85rem 1.6rem; font-size: 1.0625rem; }
.find button { padding-inline: 1.2rem; }
button.ghost { min-height: 2.75rem; padding: .45rem 1rem; border: 1px solid var(--glass); background: transparent; color: var(--ink); font-weight: 550; box-shadow: none; }
button.ghost:hover { border-color: rgb(255 255 255 / 0.4); background: rgb(255 255 255 / 0.05); color: var(--ink); }

/* ── Call page ───────────────────────────────────────────── */

.call { max-width: 80rem; }
.call__head { position: relative; padding-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
.call__head::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: min(40rem, 80%); height: 1px;
  background: linear-gradient(90deg, rgb(var(--light) / 0.35), rgb(var(--light) / 0));
}
.call[data-heat="hot"] .call__head::after { background: linear-gradient(90deg, rgb(var(--light-hot) / 0.95), rgb(var(--light) / 0)); box-shadow: 0 0 10px 0 rgb(var(--light) / 0.35); }
.call[data-heat="warm"] .call__head::after { background: linear-gradient(90deg, rgb(var(--light) / 0.7), rgb(var(--light) / 0)); }
.call[data-heat="later"] .call__head::after, .call[data-heat="undated"] .call__head::after, .call[data-heat="closed"] .call__head::after {
  background: linear-gradient(90deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0));
}

.call__when { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin: 0; font-family: var(--mono); }
.call__left { font-size: calc(clamp(1.0625rem, 1.6vw, 1.25rem) * var(--text-scale)); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.call__date { font-size: .875rem; color: var(--muted); }
.call[data-heat="hot"] .call__left, .call[data-heat="warm"] .call__left { color: var(--accent-ink); }
.call[data-heat="hot"] .call__date { color: var(--ink); }
.call__moved { margin: .5rem 0 0; font-size: .9375rem; color: var(--ink); }
.call h1 {
  max-width: 24ch; margin-top: clamp(.9rem, 2vw, 1.25rem); color: var(--ink-bright);
  font-size: calc(clamp(2rem, 4.4vw, 3.5rem) * var(--text-scale)); line-height: 1.02; letter-spacing: -0.04em;
  overflow-wrap: anywhere; hyphens: auto;
}
.call__who { margin: .9rem 0 0; font-size: calc(clamp(1.0625rem, 1.4vw, 1.1875rem) * var(--text-scale)); color: var(--muted); }
.call__tier { margin: .5rem 0 0; }

.banner {
  display: inline-block; margin: 0 0 1.25rem; padding: .35rem .95rem; border: 1px solid rgb(255 255 255 / 0.3); border-radius: 999px;
  font-size: .9375rem; font-weight: 600; color: var(--ink);
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin: clamp(1.5rem, 3vw, 2rem) 0 0; }
.actions a:not(.primary) { font-size: .9375rem; font-weight: 500; }

.call__grid { display: grid; gap: 2rem; margin-top: clamp(.5rem, 2vw, 1rem); }
.call__main { min-width: 0; }
@media (max-width: 63.99rem) { .call__side { order: -1; margin-top: clamp(1.5rem, 4vw, 2rem); } }
@media (min-width: 64rem) {
  .call__grid { grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
  .call__side { position: sticky; top: calc(var(--bar-h) + 1.5rem); margin-top: clamp(1.5rem, 3vw, 2rem); }
}
.call__sec { padding: clamp(1.5rem, 3vw, 2rem) 0; border-top: 1px solid var(--rule); }
.call__sec:first-child { border-top: 0; }
.call__sec > h2 { margin-bottom: .8rem; font-size: calc(clamp(1.1875rem, 1.8vw, 1.375rem) * var(--text-scale)); font-weight: 650; letter-spacing: -0.025em; color: var(--ink-bright); }
.call__sec p, .call__sec li { max-width: 68ch; font-size: calc(1.0625rem * var(--text-scale)); line-height: 1.65; }

.facts { padding: 1.25rem 1.35rem; border: 1px solid var(--glass); border-radius: .9rem; background: var(--glass-fill); }
.facts + .facts { margin-top: 1rem; }
.facts > h2 { margin-bottom: .5rem; font-size: 1rem; font-weight: 650; letter-spacing: -0.015em; color: var(--ink-bright); }
.facts dl { margin: 0; }
.facts dl > div { padding: .6rem 0; border-top: 1px solid var(--rule); }
.facts dl > div:first-child { border-top: 0; }
.facts dt { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.facts dd { margin: .15rem 0 0; font-size: 1rem; font-weight: 500; overflow-wrap: anywhere; }
.tiers .plain li { font-size: .9375rem; }
.checked { margin: 1rem 0 0; font-size: .875rem; color: var(--muted); }
.checked time { font-family: var(--mono); font-size: .8125rem; }

.plain { list-style: none; padding: 0; margin: 0; }
.plain li { position: relative; padding-left: 1.4rem; }
.plain li + li { margin-top: .55rem; }
.plain li::before { content: ""; position: absolute; top: .6em; left: .15rem; width: .45rem; height: .45rem; border: 1.5px solid var(--muted); border-radius: 50%; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist label { display: flex; gap: .75rem; align-items: center; min-height: 2.75rem; padding: .2rem 0; cursor: pointer; }
.checklist input { flex: none; width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--accent); }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgb(var(--light) / 0.6); }

.cta { max-width: 62ch; margin: 1.5rem 0 0; padding: 1.1rem 1.25rem; border: 1px solid var(--glass); border-radius: .9rem; background: var(--glass-fill); }
.cta a { font-weight: 550; }

.share { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding: 0; margin: 0; }
.share a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 500; }
.shortlink { margin-top: 1rem !important; font-size: .875rem; color: var(--muted); }
.shortlink a { font-family: var(--mono); font-size: .8125rem; }
.links { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }

.related { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.related > h2, .prose--wide > h2 { font-size: calc(clamp(1.375rem, 2.4vw, 1.875rem) * var(--text-scale)); color: var(--ink-bright); margin-bottom: .5rem; }

/* ── Sections: heading left, content right (protu.lv services) ── */

.block {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 clamp(1.5rem, 3vw, 3rem);
  padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--rule);
}
.block > h2 { grid-column: 1; grid-row: 1 / span 12; align-self: start; color: var(--ink-bright);
  font-size: calc(clamp(1.375rem, 2.4vw, 1.875rem) * var(--text-scale)); letter-spacing: -0.03em; }
.block > :not(h2) { grid-column: 2; max-width: 62ch; }
.block > * + :not(h2) { margin-top: .9rem; }
.block > form.filters { max-width: 36rem; }
.call > .block:first-of-type { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 56rem) {
  .block { grid-template-columns: 1fr; }
  .block > h2 { grid-row: auto; margin-bottom: .9rem; }
  .block > :not(h2) { grid-column: 1; }
}

/* ── Forms (subscribe, submit, reminder, settings): a glass panel ── */

.filters fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
form.filters { max-width: 40rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--glass); border-radius: 1.1rem; background: var(--glass-fill); }
form.filters > div { margin-bottom: 1.15rem; }
form.filters > div > label { color: var(--ink); font-weight: 550; font-size: .9375rem; }
form.filters p { margin: 0 0 .85rem; }
form.filters p:last-child { margin-bottom: 0; }
form.filters .helptext, form.filters .errorlist { display: block; margin: .35rem 0 0; font-size: .875rem; color: var(--muted); }
form.filters .errorlist { list-style: none; padding: 0; color: var(--error); }
form.filters input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); vertical-align: -.18em; margin: 0 .5rem 0 0; }
form.filters div:has(> input[type="checkbox"]) > label, form.filters label:has(input[type="checkbox"]) { display: inline; color: var(--ink); font-size: .9375rem; font-weight: 450; }
form.filters ul:not(.errorlist):not(.switches) { list-style: none; padding: 0; margin: .35rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
form.filters ul:not(.errorlist):not(.switches) li { display: flex; }
form.filters ul:not(.errorlist):not(.switches) label {
  display: inline-flex; align-items: center; min-height: 2.75rem; margin: 0; padding: .4rem .95rem;
  border: 1px solid var(--glass); border-radius: 999px; color: var(--ink); font-size: .9375rem; font-weight: 450; cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
form.filters ul:not(.errorlist):not(.switches) label:hover { border-color: rgb(255 255 255 / 0.3); }
form.filters ul:not(.errorlist):not(.switches) label:has(input:checked) { border-color: rgb(255 255 255 / 0.6); background: rgb(255 255 255 / 0.08); }
form.filters ul:not(.errorlist):not(.switches) label input { accent-color: var(--accent); }
form.filters fieldset > legend, form.filters div > fieldset > legend { padding: 0; margin-bottom: .25rem; font-size: .9375rem; font-weight: 550; }
form.filters textarea { min-height: 8rem; resize: vertical; }
form.filters .muted { font-size: .875rem; }
form.filters button[type="submit"] { margin-top: .25rem; }

/* ── Text pages (about, privacy, forms) ──────────────────── */

.prose { max-width: calc(68ch + 2 * var(--gutter)); }
.prose--wide { max-width: var(--container); }
.prose > h1 { margin-bottom: 0; }
.prose > h1 + .lead, .prose > .lead:first-of-type { margin-top: 1.5rem; }
.prose > h2 { margin: 2.2em 0 .6em; font-size: calc(clamp(1.375rem, 2.4vw, 1.75rem) * var(--text-scale)); letter-spacing: -0.03em; color: var(--ink-bright); }
.prose > h3 { margin: 1.6em 0 .5em; font-size: 1.1875rem; letter-spacing: -0.015em; }
.prose > p, .prose > ul, .prose > ol { font-size: calc(1.0625rem * var(--text-scale)); line-height: 1.65; }
.prose > ul, .prose > ol, .prose > section ul:not([class]) { padding-left: 1.25em; margin: 0 0 1.25em; }
.prose > ul > li + li, .prose > ol > li + li { margin-top: .45em; }
.prose > ul > li::marker, .prose > ol > li::marker { color: var(--muted); }
.prose > form.filters { margin-top: 1.75rem; }
.prose > p.lead { font-size: calc(clamp(1.0625rem, 1.5vw, 1.3125rem) * var(--text-scale)); line-height: 1.42; }
.prose > p.muted { font-size: .9375rem; }
.prose > .lead + p.muted { margin-top: 1rem; }
.prose > p.count { font-size: .8125rem; line-height: 1.5; }
.prose > .banner { margin-top: 1.5rem; }

/* ── Footer (same as protu.lv) ───────────────────────────── */

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 2rem;
  max-width: var(--container); margin: 0 auto; padding: 2rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--rule); color: var(--muted); font-size: .9375rem;
}
.foot p { margin: 0; display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.foot strong { color: var(--ink); font-weight: 600; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--accent-ink); }
.foot-nav { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; }
@media (max-width: 40rem) { .foot-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; } }

/* The honeypot: present for a bot, invisible and unreachable for a person. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
label:has(.honeypot), div:has(> input.honeypot), p:has(> input.honeypot) { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── The printable board sheet ───────────────────────────── */

.poster__sub { color: var(--muted); font-family: var(--mono); }
.poster__list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.poster__list li { display: grid; grid-template-columns: 7.5rem 1fr; gap: .2rem 1rem; padding: .7rem 0; border-top: 2px solid var(--ink); }
.poster__when { font-family: var(--mono); font-size: 1.1rem; font-weight: 700; }
.poster__title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; }
.poster__who, .poster__link { grid-column: 2; color: var(--muted); font-size: .95rem; }
.poster__link { font-family: var(--mono); }

/* ── Reduced motion and print ────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  :root { --ground: #fff; --ink: #000; --ink-bright: #000; --ink-far: #000; --muted: #333; --rule: #000; color-scheme: light; }
  body { font-size: 11pt; }
  .bar::after, .band::before, .card::before, .page-head::after, .call__head::after { display: none; }
  .bar-nav, .bar-end, .find, .pager, .foot, button, .follow, .actions, #atgadinat, #nosutit, .no-print { display: none; }
  .card { background: none !important; break-inside: avoid; padding-left: 0; }
  .card__link::after { content: " (" attr(href) ")"; position: static; font-size: 8pt; }
  a { text-decoration: none; color: #000; }
  .poster { max-width: none; }
  .poster__list li { border-top: 2px solid #000; break-inside: avoid; }
  @page { size: A4; margin: 14mm; }
}
