/* cuisor.ro — one ruled column on warm paper.
   Sections are separated by hairlines and whitespace, never by boxes or cards, and the
   only colour on a page is `--alert`, reserved for a fact that contradicts good standing.
   Fonts are system stacks on purpose: a Romanian site must not pull faces from a
   third-party CDN on every page view. */

:root {
  --paper: #faf8f5;
  --ink: #201e1d;
  --ink-soft: #514c48;
  --label: #706b66;
  --muted: #9b9797;
  --faint: #c4bfba;
  --rule: #e1ddd8;
  --rule-strong: #ccc6c0;
  --alert: #8f4436;
  --data: #355a70;
  --data-2: #845922;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 840px;
  /* _feedback.html overwrites this with the tab's measured width. */
  --fb-tab-w: 30px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #e6ded2; }

a { color: var(--ink); text-decoration: none; }
a:hover, a:focus-visible { color: var(--data); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--data); outline-offset: 2px; }

main { flex-grow: 1; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */

.site-header { border-bottom: 1px solid var(--rule); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 78px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.wordmark { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.wordmark:hover, .wordmark:focus-visible { color: var(--ink); text-decoration: none; }
.wordmark__name { font-family: var(--serif); font-size: 23px; line-height: 1; letter-spacing: -0.01em; }
.wordmark__tld { color: var(--muted); }
.wordmark__tagline { font-family: var(--serif); font-size: 12px; font-style: italic; color: var(--label); }

/* ---------- search ---------- */

.search-form { display: flex; align-items: flex-end; gap: 16px; }
.search-form input {
  flex-grow: 1;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  padding: 6px 0;
  outline-offset: 4px;
  -webkit-appearance: none;
}
.search-form input::placeholder { color: var(--muted); }

/* ---------- typeahead ---------- */

.combobox { position: relative; flex-grow: 1; min-width: 0; }
.combobox input { width: 100%; }

/* An overlay needs an edge the ruled page does not: without a border it floats over the
   results underneath it and neither is readable. Kept to one hairline and a soft shadow. */
.suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(32, 30, 29, 0.09);
  /* Tall enough for all SUGGEST_LIMIT rows, capped so it never runs off a short
     viewport. */
  max-height: min(384px, 60vh);
  overflow-y: auto;
}
.suggest[hidden] { display: none; }
.suggest__option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  font-size: 15px;
  cursor: pointer;
}
.suggest__option[aria-selected="true"], .suggest__option:hover { background: #f0eae1; }
.suggest__name { font-family: var(--serif); font-size: 16px; }
.suggest__cui { flex-shrink: 0; font-family: var(--mono); font-size: 12px; color: var(--label); }
/* A box outline around a field whose only edge is a bottom rule reads as a stray
   rectangle. The focus indicator is that rule, tripled and in the accent instead. */
.search-form input:focus-visible {
  outline: none;
  border-bottom-width: 3px;
  border-bottom-color: var(--data);
  padding-bottom: 5px;
}
.search-form--compact input:focus-visible { padding-bottom: 4px; }
.search-form button, .adv__actions button {
  flex-shrink: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 2px;
  height: 44px;
  padding: 0 22px;
  cursor: pointer;
}
.search-form button:hover, .adv__actions button:hover { background: #38332f; }

.search-form--hero input { font-size: 26px; }
.search-form--compact { margin-left: auto; max-width: 380px; }
.search-form--compact input { font-size: 14px; border-bottom-width: 1px; border-bottom-color: var(--rule-strong); }
.search-form--compact button { height: 34px; padding: 0 14px; font-size: 13px; }

.hero { padding: 100px 0 120px; }
.search { padding: 40px 0 8px; }
.took { margin: 22px 0 0; font-family: var(--mono); font-size: 12px; color: var(--label); min-height: 1.1em; }
/* The count line with the export at its right end (search_results.html). */
.took-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-top: 22px; }
.took-row .took { margin-top: 0; }
.took-row__csv { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--label); white-space: nowrap; }
.took-row__csv svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ---------- search results ---------- */

.search-results { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.search-results__item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--rule);
}
.search-results__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.search-results__head .status-strip__item { flex-shrink: 0; }
.search-results__name { font-family: var(--serif); font-size: 20px; letter-spacing: -0.005em; }
.search-results__cui { font-family: var(--mono); font-size: 12.5px; color: var(--label); }
.search-results__empty, .search-results__orphan { margin: 22px 2px 0; font-size: 15px; color: var(--ink-soft); }
.search-results__truncated { margin: 18px 2px 0; font-family: var(--mono); font-size: 12px; color: var(--label); }
.search-results__mode { margin: 14px 2px 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- list pages (/firme, /caen) ---------- */

.list-page { padding: 40px 0 8px; }
.list-page h1 { font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.list-page__lede { margin: 10px 2px 0; font-size: 16px; color: var(--ink-soft); max-width: 62ch; }
.list-page__note { margin: 10px 2px 0; font-size: 13.5px; color: var(--label); max-width: 68ch; }
.list-page__section {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin: 38px 2px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-strong);
}
.list-page__section + .search-results { margin-top: 0; border-top: 0; }

/* Three columns on one ruled row: the link, what it means, how many. The count is set in
   the mono face and right-aligned so 42 counties or 757 codes read as a column of figures
   rather than as text that happens to end in a number. */
.list-index { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.list-index__item {
  display: grid;
  grid-template-columns: minmax(6ch, max-content) 1fr max-content;
  align-items: baseline;
  gap: 4px 16px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--rule);
}
.list-index__link { font-size: 16px; }
.list-index__description { font-size: 14px; color: var(--ink-soft); }
.list-index__count { font-family: var(--mono); font-size: 12.5px; color: var(--label); text-align: right; white-space: nowrap; }

.search-results__figures { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); }

/* The two mono lines under a company name are secondary: the name and its status answer the
   question, and the identifiers are there to be checked, not read. Set a step down from the
   search page's own rows, which stay at 12.5px — a name search returns few enough rows that
   the line is the result, while a hundred of them in a ranked list is texture. */
.list-page .search-results__cui,
.list-page .search-results__figures { font-size: 11px; line-height: 1.45; }
.list-page .search-results__figures { color: var(--label); }

.list-page__footer { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--rule); }
.list-page__footer .list-page__note:first-child { margin-top: 0; }

/* ---------- status markers ---------- */

.marker { flex-shrink: 0; width: 18px; height: 18px; }
.marker--ok { color: var(--ink); }
.marker--alert { color: var(--alert); }
.marker--neutral { color: var(--rule-strong); }

.status-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
}
.status-strip__item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; letter-spacing: 0.01em; }
.status-strip__item--debtor,
.status-strip__item--dissolved,
.status-strip__item--inactive { color: var(--alert); font-weight: 500; }
.status-strip__data-age { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- ruled sections ---------- */

.company { padding: 40px 0 8px; }
.company h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.company__ident { margin: 12px 0 0; font-family: var(--mono); font-size: 13.5px; color: var(--label); }

.company > section, .company > .sec {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  margin-top: 34px;
}
.company > section > h2 {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label);
}
.company h3 { margin: 26px 0 12px; font-size: 13.5px; font-weight: 600; }

/* ---------- key/value rows ---------- */

.company dl:not(.headline-figures) { display: grid; grid-template-columns: 230px 1fr; gap: 11px 24px; margin: 0; }
.company dl:not(.headline-figures) > dt { font-size: 13.5px; color: var(--label); }
.company dl:not(.headline-figures) > dd { margin: 0; font-size: 14.5px; }

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

table { border-collapse: collapse; }

.financial-history, .procurement-history, .tva-periods table, .peer-table, .state-aid-history,
.court-cases-history {
  width: 100%;
  font-size: 13px;
  white-space: normal;
}
.financial-history th, .financial-history td,
.procurement-history th, .procurement-history td,
.tva-periods th, .tva-periods td,
.peer-table th, .peer-table td,
.state-aid-history th, .state-aid-history td,
.court-cases-history th, .court-cases-history td {
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 8px 14px 8px 0;
  text-align: left;
  vertical-align: top;
}
.financial-history thead th, .procurement-history thead th, .tva-periods thead th,
.peer-table thead th, .state-aid-history thead th, .court-cases-history thead th {
  background: transparent;
  border-bottom: 1px solid var(--rule-strong);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--label);
  white-space: nowrap;
}
.financial-history td, .financial-history tbody th { font-family: var(--mono); }
.financial-history td { text-align: right; }
.financial-history th[scope="row"] { text-align: left; font-weight: 400; background: var(--paper); }
.procurement-history td:nth-child(1), .procurement-history td:nth-child(2),
.tva-periods td:nth-child(1), .tva-periods td:nth-child(2), .tva-periods td:nth-child(3),
.state-aid-history td:nth-child(3), .state-aid-history td:nth-child(4), .state-aid-history td:nth-child(5) {
  font-family: var(--mono);
  white-space: nowrap;
}

/* A table's last row must not paint a bottom rule. The section boundary below already draws
   one 34px further down, so the two together read as a pair of lines with a dead gap between
   them — the ruled layout's one failure mode. The section rule is the closing rule. */
.financial-history tbody tr:last-child td,
.financial-history tbody tr:last-child th,
.procurement-history tbody tr:last-child td,
.tva-periods tbody tr:last-child td,
.peer-table tbody tr:last-child td,
.state-aid-history tbody tr:last-child td,
.court-cases-history tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- footer ---------- */

/* Every page ends on the same block: the site's other pages as three ruled rows — a label
   column in the table-head voice, the pages as chips, the vocabulary /alternativa uses for
   its official sources (alternativa.css `.sources__*`, same values) — then the colophon line,
   a rotating tagline and the deploy version. Set one step quieter than the /alternativa
   strip it borrows from — hairline borders in `--rule`, text in `--label` — so the block is
   there for a reader who looks for it and recedes for one who does not; hover brings a chip
   back to full ink. Scoped to `.site-footer`: the list, docs and comparison pages carry a
   `<footer class="list-page__footer">` of their own inside the article, and this block is
   not theirs. */
.site-footer { margin-top: 46px; border-top: 1px solid var(--rule); }
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 22px;
  padding-bottom: 26px;
}
.site-footer__nav {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 20px;
  align-items: baseline;
  margin: 0;
}
.site-footer__label {
  margin: 0;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer__links { margin: 0; display: flex; flex-wrap: wrap; gap: 7px; }
/* One rule for the link and for the one button (Contact opens the Scrie-ne drawer), so the
   row reads as one set: the button drops its browser face and takes the chip's. */
.site-footer__chip {
  font: inherit;
  font-size: 11px;
  line-height: 1.2;
  color: var(--label);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 4px 9px;
  cursor: pointer;
  text-decoration: none;
}
.site-footer__chip:hover, .site-footer__chip:focus-visible {
  color: var(--ink);
  border-color: var(--rule-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer__colophon {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.tagline { margin: 0; font-family: var(--serif); font-size: 15px; font-style: italic; color: var(--label); }
.deploy-version { margin: 0; font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: 0.03em; }

/* ---------- 404 ---------- */

/* The one page with no header and no footer (base.html's `body` block). It is a stamp,
   one joke and one way home on an empty sheet, centred, so nothing competes with it. */
.page-404 { justify-content: center; align-items: center; text-align: center; padding: 32px 20px 56px; }
/* flex-grow:0 overrides the site-wide `main { flex-grow: 1 }`, which would otherwise
   stretch this <main> to full height and leave `justify-content: center` nothing to do. */
.not-found { max-width: 46ch; flex-grow: 0; }

/* Crooked on purpose: a stamp pressed by hand never lands square. */
.not-found__stamp { display: block; width: 172px; height: auto; margin: 0 auto 30px; color: var(--label); transform: rotate(-6deg); }
.not-found__stamp .stamp-arc { font-family: var(--sans); font-size: 13px; letter-spacing: 3.2px; }
/* Set smaller and tighter than the crown: it is twice the text on a shorter arc. */
.not-found__stamp .stamp-arc--bottom { font-size: 12px; letter-spacing: 2.4px; }
.not-found__stamp .stamp-num { font-family: var(--serif); font-size: 58px; letter-spacing: 1px; }

.not-found h1 { font-family: var(--serif); font-size: clamp(30px, 7vw, 40px); font-weight: 400; line-height: 1.15; margin: 0 0 16px; }
.not-found__lead { margin: 0 0 40px; font-size: 17px; line-height: 1.55; color: var(--ink-soft); }
.not-found__home { display: inline-block; font-family: var(--serif); font-size: 20px; color: var(--label); }
.not-found__home:hover, .not-found__home:focus-visible { color: var(--ink); text-decoration: none; }
.not-found__home .wordmark__tld { color: var(--faint); }

/* ---------- "scrie-ne" ---------- */

/* A vertical tab on the right edge, and the drawer it opens off. Ink on paper,
   not colour: `--alert` stays reserved for a fact that contradicts good
   standing, so a feedback tab has no claim on it. Shape follows the search
   button — flat ink, 2px radius. */
.fb-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  writing-mode: vertical-rl;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 9px;
  cursor: pointer;
  color: var(--paper);
  background: var(--ink);
  border: 0;
  border-radius: 2px 0 0 2px;
}
.fb-tab:hover { background: #38332f; }

/* The panel opens off the tab rather than in the middle of the screen: pinned
   right, centred on the tab, with right padding exactly the tab's width so the
   two butt together. */
.fb-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 24px var(--fb-tab-w) 24px 24px;
}
/* display:flex would otherwise beat the hidden attribute. */
.fb-modal[hidden] { display: none; }
.fb-backdrop { position: absolute; inset: 0; background: rgba(32, 30, 29, 0.42); }

/* Same overlay language as .suggest: one hairline and a soft shadow, because a
   ruled page gives an overlay no edge of its own. */
.fb-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  max-height: 100%;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(32, 30, 29, 0.09);
  animation: fb-open 0.16s ease-out;
}
/* Replays every time the panel goes from hidden to shown, so it reads as the
   tab unfolding rather than a box appearing. */
@keyframes fb-open {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .fb-panel { animation: none; } }

/* min-height:0 or the flex child refuses to shrink and the panel outgrows a
   short viewport. */
.fb-body { flex: 1; min-height: 0; overflow-y: auto; }
/* Sized to the form's two fields — see _feedback.html on why this is fixed. */
.fb-panel iframe { display: block; width: 100%; height: 320px; border: 0; }

/* Floats over the form's own top padding — small and quiet, since the tab
   already named this thing. */
.fb-close {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  width: 28px;
  height: 28px;
  padding: 0;
  line-height: 1;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 2px;
}
.fb-close:hover { color: var(--ink); background: #f0eae1; }

/* ---------- advanced search ---------- */

/* The panel is a <details> under the search field (partials/_advanced_search.html), in
   the footer's vocabulary: a label column in the table-head voice, hairline rules, chips.
   Its summary is the one line the homepage carries under the field — set in the label
   colour so the field stays the page and the panel stays an offer. */
.adv { margin: 0; }
.adv__summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--label);
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}
.adv__summary::-webkit-details-marker { display: none; }
.adv__summary:hover { color: var(--ink); }
.adv__summary svg { width: 14px; height: 14px; transition: transform 0.15s; }
.adv[open] > .adv__summary svg { transform: rotate(180deg); }
.adv__panel { margin-top: 22px; padding-top: 24px; border-top: 1px solid var(--rule); }
.adv__grid { display: grid; grid-template-columns: 140px 1fr; gap: 22px 24px; align-items: baseline; margin: 0; }
.adv__label { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--label); }
.adv__field { margin: 0; min-width: 0; }
/* The panel's inputs take the compact form's rule — one hairline, not the hero's two. */
.line {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 5px 0;
  -webkit-appearance: none;
}
.line::placeholder { color: var(--muted); }
.line:focus-visible { outline: none; border-bottom-width: 2px; border-bottom-color: var(--data); padding-bottom: 4px; }
.line--short { width: 12ch; font-family: var(--mono); font-size: 14px; }
/* A date as three fields, day / month / year: each is checked on its own, tab moves
   between them, and no browser can paint a date of its own into a text field. */
.date { display: inline-flex; align-items: baseline; gap: 3px; }
.date .line { font-family: var(--mono); font-size: 14px; text-align: center; }
.line--day, .line--month { width: 3ch; }
.line--year { width: 5ch; }
.date__sep { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.line[aria-invalid="true"], .line:user-invalid { border-bottom-color: var(--alert); }
/* A date field also draws the browser's picker glyph; twelve characters cut the year. */
.adv__pick { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.adv__pick:empty { display: none; }
.adv__pick span { display: block; }
.range { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; font-size: 14px; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--label);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  text-decoration: none;
}
.chip:hover, .chip:focus-visible { color: var(--ink); border-color: var(--rule-strong); text-decoration: none; }
.chip svg { width: 12px; height: 12px; flex-shrink: 0; }
.chip--on, .chip:has(> input:checked) { color: var(--ink); border-color: var(--ink); font-weight: 500; }
/* The radio is the chip: hidden the accessible way, so it still takes focus and keys. */
.chip > input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; opacity: 0; overflow: hidden; }
.chip:has(> input:focus-visible) { outline: 2px solid var(--data); outline-offset: 2px; }
.adv__actions { display: flex; align-items: center; justify-content: flex-end; gap: 22px; margin-top: 28px; }
.adv__clear { font-size: 13.5px; color: var(--label); }
.adv__note { margin: 14px 2px 0; font-family: var(--mono); font-size: 12px; color: var(--label); }
/* Active filters read back above the folded panel, the two orders on the right. */
.adv-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; }
.adv-strip + .adv .adv__summary { margin-top: 10px; }
.search-results__problem { margin: 14px 2px 0; font-size: 14px; color: var(--alert); }
.search-results__note { margin: 10px 2px 0; font-size: 13.5px; color: var(--label); max-width: 68ch; }
.search-results__next { margin: 14px 2px 0; font-size: 14px; }
.search-results__next a { display: inline-flex; align-items: center; gap: 6px; }
.search-results__next svg { width: 14px; height: 14px; }

/* ---------- narrow viewports ---------- */

@media (max-width: 720px) {
  .site-header__inner { flex-wrap: wrap; gap: 14px 20px; min-height: 0; }
  .search-form--compact { margin-left: 0; max-width: none; width: 100%; }
  .hero { padding: 56px 0 64px; }
  .search-form--hero input { font-size: 20px; }
  .company h1 { font-size: 27px; }
  .company dl:not(.headline-figures) { grid-template-columns: 1fr; gap: 3px; }
  .company dl:not(.headline-figures) > dd { margin-bottom: 12px; }
  .search-results__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .list-page h1 { font-size: 25px; }
  /* The count moves under the link rather than being squeezed into a third column. */
  .list-index__item { grid-template-columns: 1fr; gap: 2px; }
  .list-index__count { text-align: left; }
  .status-strip { flex-direction: column; align-items: flex-start; gap: 0; }
  .status-strip__item { min-height: 44px; font-size: 15px; }
  /* Each row becomes the /alternativa strip: label above, chips below. */
  .site-footer__nav { grid-template-columns: 1fr; gap: 10px 0; }
  .site-footer__links { margin-bottom: 10px; }
  .site-footer__links:last-child { margin-bottom: 0; }
  /* The panel's rows stack like the footer's: label above, control below. */
  .adv__grid { grid-template-columns: 1fr; gap: 8px 0; }
  .adv__field { margin-bottom: 16px; }
  .line { padding: 10px 0; min-height: 44px; }
  .line:focus-visible { padding-bottom: 9px; }
  .chip { padding: 12px 14px; font-size: 14px; min-height: 44px; }
  .adv__summary { min-height: 44px; }
  .took-row__csv { min-height: 44px; }
  .fb-tab { font-size: 10px; letter-spacing: 0.1em; padding: 12px 7px; }
  .fb-modal { padding: 12px var(--fb-tab-w) 12px 12px; }
}
