/* ============================================================================
   BLANCO Admintool — New Brand Identity stylesheet
   Aligned to blanco.de: brand #339 (header/links), BLACK primary CTAs + headings,
   white inputs with a thin grey border (contact-form style). Root 62.5% (1rem=10px).
   Fonts (Valizas + Neue Helvetica) copied from blanco.de /_nuxt.
   ============================================================================ */

@font-face {
  font-family: "Valizas";
  src: url("/fonts/valizas.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Font resolution mirrors blanco.de exactly: prefer the machine's Helvetica Neue Light
   (font-primary-local), then fall back to the same NeueHelvetica woff2 the site ships. */
@font-face {
  font-family: "font-primary-local";
  src: local("Helvetica Neue Light");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "font-primary-local";
  src: local("Helvetica Neue Bold");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "helveticaneue";
  src: url("/fonts/helvetica-light.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "helveticaneue";
  src: url("/fonts/helvetica-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  font-size: 62.5%; /* 1rem = 10px */

  --blanco-indigo: #339; /* brand — header, links, focus */
  --blanco-indigo-dark: #2a2a80;
  --bg: #fff;
  --fg: #000;
  --on-indigo: #fff;
  --surface-muted: #f5f5f5;
  --border: #bdbdbd; /* input borders (website style) */
  --border-strong: #000;
  --muted: #6b6b6b;
  --ok: #2e9e4f;
  --warn: #e6a100;
  --err: #d23a3a;

  --font-display: "Valizas", Arial, sans-serif;
  --font-body: "font-primary-local", "Helvetica Neue", "helveticaneue", Helvetica, Arial, sans-serif;

  --fs-sm: 1.2rem;
  --fs-base: 1.6rem;
  --fs-lg: 2rem;
  --fs-h3: 2.4rem;
  --fs-h2: 3.2rem;
  --fs-h1: 4rem;
  --maxw: 144rem;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  /* Match blanco.de's text rendering (its global rule sets this); without it macOS
     subpixel-smooths text a touch heavier/wider, so identical text looks slightly bigger. */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings: Valizas, uppercase, BLACK (like the website). */
h1, h2, h3, .display {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.3; /* website Valizas line-height */
  letter-spacing: normal;
  color: var(--fg);
  margin: 0 0 1.6rem;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: 3.2rem; /* sub-headings (e.g. Users), weight 400 from the heading rule */
}

a {
  color: var(--blanco-indigo);
  text-underline-offset: 2px;
}

/* ---- Top bar / header (indigo) ------------------------------------------- */
/* Matches the blanco.de top navigation bar: indigo #339, 8rem tall, ~146px logo,
   white Neue Helvetica 16px items with 4px 8px padding. */
.app-header {
  background: var(--blanco-indigo);
  color: var(--on-indigo);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 8rem;
  padding: 0 3.3rem;
  gap: 1.6rem;
}

.app-header .brand {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.app-header .brand img {
  width: 14.6rem;
  height: auto;
  display: block;
}

.app-header .brand-home {
  display: inline-flex;
  line-height: 0;
}

/* Matches .navigation-menu-item__link on blanco.de: Helvetica bold, 16px/24px, white, 4px 8px. */
.app-header .brand .tool {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 2.4rem;
  color: #fff;
  padding: .4rem .8rem;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  margin-left: 14px;
}

.app-header .app-nav-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 2.4rem;
  color: #fff;
  text-decoration: none;
  padding: .4rem .8rem;
  margin-left: 1.6rem;
}

.app-header .app-nav-link:hover {
  color: #b2bbe8;
}

.app-header .session {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.app-header .session a {
  color: var(--on-indigo);
  text-decoration: underline;
}

.app-header .header-right {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.6rem;
  font-weight: 700;
}

.lang-switch a {
  color: #fff;
  text-decoration: none;
  opacity: .6;
  padding: .4rem .8rem;
}

.lang-switch a:hover {
  color: #b2bbe8;
  opacity: 1;
}

.lang-switch a.active {
  opacity: 1;
  border-bottom: 2px solid #fff;
}

.lang-switch span {
  color: rgba(255, 255, 255, .4);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.6rem 2.4rem;
}

/* ---- Breadcrumbs (website style: black text, arrow separators, bold current) */
/* Breadcrumbs — website style: 16px, black, home icon first, arrow-right separators,
   current (last) crumb bold. */
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 2.4rem;
  padding: 0;
  font-size: 1.6rem;
  color: var(--fg);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

/* arrow-right separator icon after every crumb except the last */
.breadcrumb li:not(:last-child)::after {
  content: "";
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  margin: 0 1.2rem;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12h15M13 6l6 6-6 6'/></svg>") no-repeat center / 1.6rem;
}

.breadcrumb a {
  color: var(--fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb .current {
  font-weight: 700;
}

/* ---- Page head: breadcrumb sits above; title below ----------------------- */
.page-head {
  margin-bottom: 3.2rem;
}

.page-head > h2 {
  margin: 0;
}

/* Page-title headings render like the login/verify h2 (40px / weight 400). */
.page-head > h2, .container > h2 {
  font-size: 4rem;
  font-weight: 400;
}

.page-head .sub {
  color: var(--muted);
  font-size: var(--fs-base);
  margin: .6rem 0 0;
}

.page-head .breadcrumb {
  margin-bottom: 1.6rem;
}

/* ---- Grouped form sections (replaces one big flat grid) ------------------- */
.form-section {
  border-top: 1px solid var(--border);
  padding-top: 2.8rem;
  margin-top: 2.8rem;
}

.form-section:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 3.2rem;
  margin: 0 0 1.6rem;
  color: var(--fg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem 2.4rem;
}

.form-grid .field {
  margin-bottom: 0;
}

.form-grid .span-2 {
  grid-column: span 2;
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .span-2 {
    grid-column: auto;
  }
}

/* Action row that stays visible while scrolling a long form. */
.form-actions {
  position: sticky;
  bottom: 0;
  background: var(--bg);
  padding: 1.6rem 0;
  margin-top: 3.2rem;
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

/* ---- Buttons: primary = black (website CTA); ghost = outline -------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: normal;
  font-size: 2rem;
  line-height: 2.4rem; /* 24px inner text; height 48px = 24 + 12px top/bottom */
  padding: 0 1.6rem;
  text-decoration: none;
  border-radius: 2px;
  height: 4.8rem;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .15s ease;
}

.btn:hover {
  background: #3c3c3c;
  border-color: #3c3c3c;
}

/* Outline button: strong black 1px border that thickens to 2px on hover, no reflow (website style). */
.btn--ghost {
  background: #fff;
  color: var(--fg);
  border-color: transparent;
  box-shadow: inset 0 0 0 1px var(--fg);
}

.btn--ghost:hover {
  background: #fff;
  border-color: transparent;
  box-shadow: inset 0 0 0 2px var(--fg);
}

.btn--sm {
  padding: .7rem 1.4rem;
  font-size: var(--fs-sm);
  line-height: 1.2;
  height: auto;
}

.btn--muted {
  background: #fff;
  color: var(--muted);
  border-color: var(--border);
}

.btn--muted:hover {
  background: #f3f3f3;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* Square icon-only button (website button--square), e.g. the delete/trash action. */
.btn--square {
  padding: .8rem;
  flex: 0 0 auto;
}

.btn--square svg {
  width: 2.4rem;
  height: 2.4rem;
  fill: currentColor;
  display: block;
}

.btn--on-indigo {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn--on-indigo:hover {
  background: rgba(255, 255, 255, .15);
  border-color: #fff;
}

.btn:disabled, .btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.btn:focus-visible {
  outline: 2px solid var(--blanco-indigo);
  outline-offset: 4px;
}

/* ---- Forms: bold black label above, white bordered field (contact form) -- */
label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--fg);
  font-size: var(--fs-base);
  margin: 0 0 .8rem;
  text-transform: none;
}

/* Labels sitting above an input field: small bottom gap, slight left indent (aligns with field). */
.field > label {
  margin: 0 0 .2rem .8rem;
}

input[type=text], input[type=password], input[type=email], input[type=tel],
input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.3rem 1.4rem;
  color: var(--fg);
  line-height: 1.3;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blanco-indigo);
}

input::placeholder, textarea::placeholder {
  color: #9a9a9a;
}

/* Select: website style — chevron sits in a light-grey action box on the right. */
select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  border-radius: 2px;
  padding-right: 6rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='black' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>"),
    linear-gradient(#f3f3f3, #f3f3f3);
  background-repeat: no-repeat, no-repeat;
  background-position: right 1.7rem center, right 0 center;
  background-size: 1.4rem auto, 4.8rem 100%;
}

select:hover {
  border-color: var(--fg);
}

/* Checkbox: website style — white box, black border, black check, no fill. */
input[type=checkbox] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--fg);
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  vertical-align: middle;
}

input[type=checkbox]::after {
  content: "";
  width: .6rem;
  height: 1.1rem;
  margin-top: -2px;
  border: solid var(--fg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity .1s;
}

input[type=checkbox]:checked::after {
  opacity: 1;
}

input[type=checkbox]:focus-visible {
  outline: 2px solid var(--blanco-indigo);
  outline-offset: 4px;
}

input[type=checkbox]:disabled {
  border-color: #d6d6d6;
  cursor: not-allowed;
}

/* Custom dropdown (JS-enhanced select) — styled option list like blanco.de. */
.cselect {
  position: relative;
}

.cselect > select {
  display: none;
}

/* native select hidden once enhanced */
.cselect__control {
  position: relative;
  width: 100%;
  min-height: 4.8rem; /* keep height when the value is empty (else the chevron overflows) */
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--fg);
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.cselect__control:hover {
  border-color: var(--fg);
}

.cselect--open .cselect__control,
.cselect__control:focus-visible {
  outline: none;
  border-color: var(--blanco-indigo);
}

.cselect__value {
  flex: 1 1 auto;
  padding: 1.3rem 5.4rem 1.3rem 1.4rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cselect__value--placeholder {
  color: #9a9a9a;
}

/* Chevron in a spaced grey square (like the password eye), turning 180deg on open. */
.cselect__chevron {
  position: absolute;
  top: 50%;
  right: .8rem;
  transform: translateY(-50%);
  width: 3.8rem;
  height: 3.8rem;
  border-radius: 2px;
  background-color: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .15s ease;
  pointer-events: none;
}

.cselect__chevron::before {
  content: "";
  width: 1.4rem;
  height: .9rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='black' stroke-width='2.2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.4rem auto;
  transition: transform .2s ease;
}

.cselect__control:hover .cselect__chevron {
  background-color: #e9e9e9;
}

.cselect--open .cselect__chevron::before {
  transform: rotate(180deg);
}

.cselect__menu {
  position: absolute;
  z-index: 60;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  margin: 0;
  padding: .8rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  max-height: 32rem;
  overflow-y: auto;
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, .12);
}

.cselect__menu[hidden] {
  display: none;
}

.cselect__option {
  padding: 1.2rem 1.6rem;
  border-radius: 2px;
  cursor: pointer;
}

.cselect__option:hover,
.cselect__option[aria-selected="true"] {
  background: var(--surface-muted);
}

.cselect__option[aria-disabled="true"] {
  color: var(--muted);
  cursor: not-allowed;
}

.field {
  margin-bottom: 1.8rem;
}

.req {
  color: var(--err);
}

/* Password field with a show/hide eye toggle (website input-action button:
   fixed 38x38 grey square, inset with space, black icon that stays black, no focus tint). */
.pw-field {
  position: relative;
}

.pw-field input {
  padding-right: 5.4rem;
}

.pw-toggle {
  position: absolute;
  top: 50%;
  right: .8rem;
  transform: translateY(-50%);
  width: 3.8rem;
  height: 3.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  color: #000;
  padding: 0;
}

.pw-toggle:hover {
  background: #e9e9e9;
}

.pw-toggle:focus-visible {
  outline: none;
}

.pw-toggle svg {
  width: 2rem;
  height: 2rem;
  display: block;
  stroke-width: 2.2px;
}

.pw-toggle .eye-off {
  display: none;
}

.pw-toggle.is-on .eye {
  display: none;
}

.pw-toggle.is-on .eye-off {
  display: block;
}

/* Search field with a magnifier button in an indigo box (website search bar). */
.search-field {
  position: relative;
}

.search-field input[type=search] {
  padding-right: 5.4rem;
}

/* Hide the native clear (×) button. */
.search-field input[type=search]::-webkit-search-cancel-button,
.search-field input[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search-btn {
  position: absolute;
  top: 50%;
  right: .8rem;
  transform: translateY(-50%);
  width: 3.8rem;
  height: 3.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blanco-indigo);
  color: #fff;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
}

.search-btn:hover {
  background: var(--blanco-indigo-dark);
}

.search-btn svg {
  width: 2rem;
  height: 2rem;
  display: block;
}

/* ---- Centred sign-in (website login look: clean white, no grey card) ----- */
.signin-wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 18.3rem 2.4rem;
}

.signin-wrap > h2 {
  font-size: 4rem;
  font-weight: 400;
  margin-bottom: 1.2rem;
}

.signin-wrap .lead {
  color: var(--fg);
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 4rem;
}

.card {
  background: transparent;
  padding: 0;
}

.card h2 {
  margin-bottom: 1.6rem;
}

.card .help {
  color: var(--muted);
  font-size: var(--fs-base);
  margin: 0 0 2.4rem;
}

.alert {
  background: #fdecec;
  border-left: 4px solid var(--err);
  color: #8a1f1f;
  padding: 1.2rem 1.6rem;
  margin-bottom: 1.6rem;
  font-size: var(--fs-base);
}

/* ---- Tabs ----------------------------------------------------------------- */
.tabs {
  display: flex;
  gap: 2.4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.4rem;
}

.tab {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--muted);
  padding: 1.2rem 0;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
}

.tab:hover {
  color: var(--fg);
}

.tab--active {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

.tab:focus-visible {
  outline: 2px solid var(--blanco-indigo);
  outline-offset: 2px;
}

.tab-panel[hidden] {
  display: none;
}

/* ---- Modal / confirmation dialog ----------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.4rem;
  z-index: 1000;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: #fff;
  max-width: 46rem;
  width: 100%;
  padding: 3.2rem;
  box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, .25);
}

.modal h2 {
  font-size: var(--fs-h2);
  margin: 0 0 1.6rem;
}

.modal p {
  margin: 0 0 2.8rem;
  color: var(--fg);
}

.modal-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.modal .modal-sub {
  color: var(--muted);
  font-size: var(--fs-base);
  font-family: var(--font-body);
  text-transform: none;
}

.pwd-error {
  color: var(--err);
  font-size: var(--fs-sm);
  margin: 0 0 1.6rem;
}

.pwd-check {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-weight: 400;
  text-transform: none;
  font-size: var(--fs-base);
}

/* Managed-countries picker: per-country row with a "manage" and an "info-mail" toggle. */
.country-table {
  border-collapse: collapse;
  max-width: 48rem;
}

.country-table th {
  text-align: left;
  font-size: var(--fs-base);
  font-weight: 700;
  padding: 0 2.4rem .8rem 0;
}

.country-table td {
  padding: .4rem 2.4rem .4rem 0;
}

.country-table .pwd-check {
  margin: 0;
}

.country-table input:disabled + span {
  opacity: .45;
}

.btn--danger {
  background: var(--err);
  border-color: var(--err);
  color: #fff;
}

.btn--danger:hover {
  background: #b32f2f;
  border-color: #b32f2f;
}

/* ---- Tables -------------------------------------------------------------- */
table.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-base);
}

table.grid th {
  text-align: left;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding: 1.2rem;
}

table.grid td {
  padding: 1.2rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

table.grid tr:hover td {
  background: var(--surface-muted);
}

table.grid td.actions {
  white-space: nowrap;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: flex-end;
  align-items: center;
}

.row-actions--nowrap {
  flex-wrap: nowrap;
}

/* Grid action buttons render at the main button size (not the small variant). */
.row-actions .btn {
  height: 4.8rem;
  font-size: 2rem;
  line-height: 2.4rem;
  padding: 0 1.6rem;
}

.row-actions form {
  margin: 0;
  display: inline-flex;
}

.status-dot {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
}

.status-dot.ok {
  background: var(--ok);
}

.status-dot.warn {
  background: var(--warn);
}

.status-dot.err {
  background: var(--err);
}

/* User status shown as an icon only (full text in the cell title + sr-only). */
.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.status-icon svg {
  width: 2.4rem;
  height: 2.4rem;
  display: block;
}

.status-icon--ok {
  color: var(--ok);
}

.status-icon--err {
  color: var(--err);
}

.status-icon--pending {
  color: var(--warn);
}

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

/* ---- Toolbar / filters / pager ------------------------------------------- */
.toolbar {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2.4rem;
}

.filterbar {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 2.4rem;
}

.filterbar .field {
  margin-bottom: 0;
}

/* Results count + progress bar (blanco.de search look) above the pager. */
.results {
  text-align: center;
  margin: 3.2rem 0 1.6rem;
}

.results__count {
  color: var(--fg);
  font-size: 1.6rem;
  margin: 0 0 1.2rem;
}

.results__track {
  position: relative;
  height: 1px;
  max-width: 40rem;
  margin: 0 auto;
  background: var(--border);
}

.results__fill {
  position: absolute;
  left: 0;
  top: -1px;
  height: 3px;
  min-width: .8rem;
  background: var(--blanco-indigo);
}

.pager {
  display: flex;
  gap: .8rem;
  justify-content: center;
  align-items: center;
  margin: 2.4rem 0;
  font-size: 2rem;
}

.pager a, .pager span {
  padding: .6rem 1.2rem;
  text-decoration: none;
  line-height: 1;
}

/* First/Prev/Next/Last arrow controls — bigger and bolder so they read clearly. */
.pager a[title] {
  font-size: 2.6rem;
  font-weight: 700;
}

.pager .current {
  background: var(--fg);
  color: #fff;
  font-weight: 700;
}
