/*
  Example sites: one component kit, three themes.

  The kit is what a Belltower Digital project starts from. Each theme sets the tokens
  a real client would choose: colors, typefaces and corner radius. The examples are
  deliberately light-only, like most government sites, so every color is set here.
*/

.theme-harrow {
  --x-ground: #ffffff;
  --x-surface: #f0f5f7;
  --x-ink: #172a33;
  --x-ink-2: #45585f;
  --x-rule: #c9d9df;
  --x-primary: #0b4f6c;
  --x-primary-strong: #083a50;
  --x-on-primary: #ffffff;
  --x-accent: #f2b134;
  --x-kicker: #0b4f6c;
  --x-link: #0b5a7a;
  --x-focus: #c2410c;
  --x-focus-dark: #f2b134;
  --x-alert: #fdf0c8;
  --x-alert-edge: #9a6700;
  --x-head: "Libre Franklin", "Franklin Gothic Medium", Arial, sans-serif;
  --x-body: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
  --x-radius: 10px;
}

.theme-larch {
  --x-ground: #f6f5f1;
  --x-surface: #ffffff;
  --x-ink: #1c2430;
  --x-ink-2: #4a5360;
  --x-rule: #d8d4c8;
  --x-primary: #1c2d4f;
  --x-primary-strong: #111d35;
  --x-on-primary: #ffffff;
  --x-accent: #9d3528;
  --x-kicker: #9d3528;
  --x-link: #1d4f91;
  --x-focus: #b45309;
  --x-focus-dark: #f5b041;
  --x-alert: #fbeae7;
  --x-alert-edge: #9d3528;
  --x-head: "IBM Plex Serif", Georgia, serif;
  --x-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --x-radius: 2px;
}

.theme-kestrel {
  --x-ground: #f3f9fa;
  --x-surface: #ffffff;
  --x-ink: #0f2a33;
  --x-ink-2: #41606a;
  --x-rule: #cbe1e6;
  --x-primary: #00566b;
  --x-primary-strong: #003f4f;
  --x-on-primary: #ffffff;
  --x-accent: #3bb6c9;
  --x-kicker: #006780;
  --x-link: #006780;
  --x-focus: #c2410c;
  --x-focus-dark: #f5b041;
  --x-alert: #fdf3dc;
  --x-alert-edge: #8a5a00;
  --x-ok: #1b6e45;
  --x-ok-bg: #e2f3e9;
  --x-head: "Figtree", "Segoe UI", Arial, sans-serif;
  --x-body: "Figtree", "Segoe UI", Arial, sans-serif;
  --x-radius: 14px;
}

/* ---------- Base ---------- */

.x {
  margin: 0;
  background: var(--x-ground);
  color: var(--x-ink);
  color-scheme: light;
  font-family: var(--x-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

/* Zero specificity, so every component's own spacing wins over this reset. */
:where(.x) :where(h1, h2, h3, h4, p) {
  margin: 0;
}

.x h1,
.x h2,
.x h3,
.x h4 {
  font-family: var(--x-head);
  line-height: 1.15;
  text-wrap: balance;
}

.x h4 {
  font-size: 1.1rem;
}

.x p {
  text-wrap: pretty;
}

.x a {
  color: var(--x-link);
  text-underline-offset: 0.18em;
}

.x a:hover {
  text-decoration-thickness: 2px;
}

.x :focus-visible {
  outline: 3px solid var(--x-focus);
  outline-offset: 2px;
}

.x main:focus {
  outline: none;
}

.x svg {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.x-wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.x-narrow {
  max-width: 46rem;
}

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

.x-skip {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: #ffffff;
  color: #111111;
  font-weight: 700;
  transform: translateY(-250%);
}

.x-skip:focus {
  transform: none;
}

/* The Belltower Digital label on every example. It looks the same in every theme. */

.demo-bar {
  background: #15222b;
  color: #eef3f1;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.45;
}

.demo-bar p {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.55rem clamp(1rem, 4vw, 2rem);
}

.demo-bar a {
  color: #f4c27a;
  font-weight: 600;
}

.demo-bar a:hover {
  color: #ffffff;
}

.demo-bar :focus-visible {
  outline-color: #f4b35e;
}

/* ---------- Header ---------- */

.x-alert {
  border-bottom: 3px solid var(--x-alert-edge);
  background: var(--x-alert);
}

.x-alert-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding-block: 0.75rem;
}

.x-alert-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--x-head);
  font-weight: 800;
}

.x-alert-label::before {
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--x-alert-edge);
  color: #ffffff;
  content: "!" / "";
  font-size: 0.9rem;
}

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

.x-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1rem;
}

.x-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--x-ink);
  text-decoration: none;
}

.x .x-brand:hover {
  color: var(--x-ink);
  text-decoration: none;
}

.x-seal {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
}

.x-brand-text {
  display: grid;
  line-height: 1.1;
}

.x-brand-kicker {
  color: var(--x-ink-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.x-brand-name {
  font-family: var(--x-head);
  font-size: 1.65rem;
  font-weight: 800;
}

.x-header-note {
  color: var(--x-ink-2);
  font-weight: 700;
}

.x-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.x-nav a {
  display: inline-block;
  padding-block: 0.5rem;
  color: var(--x-ink);
  font-weight: 700;
  text-decoration: none;
}

.x .x-nav a:hover {
  color: var(--x-link);
  text-decoration: underline;
}

/* Harrow Falls: navigation on a full-width band. */

.x-navbar {
  --x-focus: var(--x-focus-dark);
  background: var(--x-primary);
}

.x-navbar .x-nav a {
  padding-block: 0.7rem;
  color: var(--x-on-primary);
}

.x .x-navbar .x-nav a:hover {
  color: var(--x-on-primary);
}

/* Larch County: the whole header on the dark primary color. */

.x-header--band {
  --x-focus: var(--x-focus-dark);
  border-bottom: 4px solid var(--x-accent);
  background: var(--x-primary);
}

.x-header--band .x-brand,
.x .x-header--band .x-brand:hover,
.x-header--band .x-nav a,
.x .x-header--band .x-nav a:hover {
  color: var(--x-on-primary);
}

.x-header--band .x-brand-kicker {
  color: #c9d3e6;
}

.x-header--band .s-bg {
  stroke: #ffffff;
  stroke-width: 1.5;
}

/* Kestrel Valley: pill-shaped links. */

.x-nav--pills {
  gap: 0.4rem;
}

.x-nav--pills a {
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--x-rule);
  border-radius: 999px;
  background: var(--x-surface);
}

.x .x-nav--pills a:hover {
  border-color: var(--x-primary);
  text-decoration: none;
}

/* Seals */

.s-bg {
  fill: var(--x-primary);
}

.s-ring {
  fill: none;
  stroke: var(--x-on-primary);
  stroke-width: 1.2;
}

.s-fg {
  fill: var(--x-on-primary);
}

.s-cut {
  fill: none;
  stroke: var(--x-primary);
  stroke-linecap: round;
  stroke-width: 2;
}

.s-line {
  fill: none;
  stroke: var(--x-on-primary);
  stroke-linecap: round;
  stroke-width: 2;
}

/* ---------- Layout ---------- */

.x-hero {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.x-hero h1 {
  max-width: 24ch;
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem);
  font-weight: 800;
}

.x-hero p {
  max-width: 40em;
  margin-top: 0.75rem;
  color: var(--x-ink-2);
  font-size: 1.15rem;
}

.x-section {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.x-section h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 800;
}

.x-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.x-tint {
  background: var(--x-surface);
}

.x-lead {
  max-width: 42em;
  margin-bottom: 1.25rem;
  color: var(--x-ink-2);
}

.x-kicker {
  margin-bottom: 0.5rem;
  color: var(--x-kicker);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.x-meta,
.x-note {
  color: var(--x-ink-2);
  font-size: 0.95rem;
}

.x-note {
  margin-top: 1.25rem;
}

.x-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem 3rem;
  align-items: start;
}

.x-two > * {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

@media (min-width: 56rem) {
  .x-two {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  }
}

.x-list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding-left: 1.3rem;
}

.x-plain {
  padding-left: 0;
  list-style: none;
}

.x-callout {
  display: grid;
  gap: 0.6rem;
  padding: 1.1rem 1.25rem;
  border: 2px solid var(--x-rule);
  border-radius: var(--x-radius);
  background: var(--x-surface);
}

.x-tint .x-callout {
  background: var(--x-ground);
}

.x-callout--warn,
.x-tint .x-callout--warn {
  border-color: var(--x-alert-edge);
  background: var(--x-alert);
}

.x-callout--accent {
  border-color: var(--x-primary);
}

.x .x-callout-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.x-side {
  display: grid;
  gap: 1rem;
}

/* ---------- Components ---------- */

.x-crumbs {
  padding-top: 1.25rem;
  font-size: 0.95rem;
}

.x-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.x-crumbs li + li::before {
  margin-right: 0.35rem;
  color: var(--x-ink-2);
  content: "/" / "";
}

.x-page {
  padding-top: 1rem;
}

.x-page h1 {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  font-weight: 800;
}

.x-tasks {
  display: grid;
  gap: 0.9rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.x-tasks a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.25rem;
  padding: 0.9rem 1.1rem;
  border: 2px solid var(--x-rule);
  border-radius: var(--x-radius);
  background: var(--x-ground);
  color: var(--x-ink);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.x .x-tasks a:hover {
  border-color: var(--x-primary);
  color: var(--x-ink);
}

.x-tasks a::after {
  margin-left: auto;
  color: var(--x-primary);
  content: "\2192" / "";
  font-size: 1.3rem;
}

@media (min-width: 30rem) {
  .x-tasks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 52rem) {
  .x-tasks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.x-ways {
  display: grid;
  gap: 1.25rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.x-ways li {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding-top: 0.9rem;
  border-top: 3px solid var(--x-primary);
}

@media (min-width: 34rem) {
  .x-ways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .x-ways {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.x-meetings {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--x-rule);
  list-style: none;
}

.x-meetings li {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: 0.25rem 1.25rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--x-rule);
}

.x-meetings li > div {
  display: grid;
  gap: 0.2rem;
}

.x-date {
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 0.45rem 0.4rem;
  border-radius: var(--x-radius);
  background: var(--x-primary);
  color: var(--x-on-primary);
  font-weight: 700;
  line-height: 1.05;
}

.x-date span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.x-date b {
  font-family: var(--x-head);
  font-size: 1.8rem;
}

.x-news {
  display: grid;
  gap: 1.5rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.x-news li {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--x-rule);
}

.x-news time {
  color: var(--x-ink-2);
  font-size: 0.95rem;
}

@media (min-width: 56rem) {
  .x-news {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.x-links {
  display: grid;
  gap: 0 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.x-links a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--x-rule);
  font-size: 1.1rem;
  font-weight: 600;
}

@media (min-width: 40rem) {
  .x-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.x-notices {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.x-notices li {
  display: grid;
  gap: 0.3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--x-rule);
}

/* Tables scroll inside their own box on narrow screens, never the page. */

.x-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--x-rule);
  border-radius: var(--x-radius);
  background: var(--x-surface);
}

.x-tint .x-table-wrap {
  background: var(--x-ground);
}

.x-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.x-table caption {
  padding: 0.9rem 1rem 0.6rem;
  font-family: var(--x-head);
  font-weight: 700;
  text-align: left;
}

.x-table th,
.x-table td {
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--x-rule);
  text-align: left;
  vertical-align: top;
}

.x-table thead th {
  font-size: 0.95rem;
}

/* The caption text stays in view while a wide table scrolls under it. */
.x-table caption span {
  position: sticky;
  left: 1rem;
  display: inline-block;
  max-width: calc(100vw - 5rem);
}

.x-table .num {
  text-align: right;
}

.x-table .nowrap,
.x-table .num {
  white-space: nowrap;
}

.x-cell-note {
  display: block;
  color: var(--x-ink-2);
  font-weight: 400;
}

.x-scroll-hint {
  margin-bottom: 0.5rem;
  color: var(--x-ink-2);
  font-size: 0.95rem;
}

@media (min-width: 50rem) {
  .x-scroll-hint {
    display: none;
  }
}

@media (max-width: 40rem) {
  .x-table th,
  .x-table td {
    padding: 0.55rem 0.6rem;
  }

  .x-table caption {
    padding-inline: 0.6rem;
  }

  .x-table caption span {
    left: 0.6rem;
  }
}

.x-table tbody tr:target {
  background: var(--x-alert);
}

.x-table--wide {
  min-width: 56rem;
}

.x-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  margin: 0;
}

.x-facts dt {
  font-weight: 700;
}

.x-facts dd {
  margin: 0;
}

@media (max-width: 36rem) {
  .x-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }

  .x-facts dd {
    margin-bottom: 0.6rem;
  }
}

.x-bill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 0.35rem 1rem;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.x-bill dd {
  margin: 0;
  text-align: right;
}

.x-bill dt:last-of-type,
.x-bill dd:last-of-type {
  padding-top: 0.45rem;
  border-top: 2px solid var(--x-ink);
  font-weight: 700;
}

.x-defs {
  display: grid;
  gap: 0.3rem;
  margin: 1.25rem 0 0;
}

.x-defs div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
}

.x-defs dt {
  font-weight: 700;
}

.x-defs dd {
  margin: 0;
  color: var(--x-ink-2);
}

/* Meeting agenda */

/* Top-level items stay list items, so they keep their numbers. */

.x-agenda {
  margin: 0;
  padding-left: 1.75rem;
}

.x-agenda > li + li {
  margin-top: 1rem;
}

.x-agenda > li > p + p {
  margin-top: 0.2rem;
}

.x-agenda > li::marker {
  color: var(--x-primary);
  font-family: var(--x-head);
  font-weight: 800;
}

.x-agenda ol {
  display: grid;
  gap: 0.75rem;
  margin: 0.75rem 0 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--x-rule);
  list-style: none;
}

.x-agenda ol > li {
  display: grid;
  gap: 0.2rem;
}

.x-item-title {
  font-weight: 700;
}

.x-agenda p:not(.x-item-title) {
  color: var(--x-ink-2);
}

/* Forms */

.x-form {
  display: grid;
  gap: 1.6rem;
  max-width: 36rem;
}

.x-field,
.x-form fieldset {
  display: grid;
  gap: 0.4rem;
}

.x-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.x-label,
.x-form legend {
  font-size: 1.1rem;
  font-weight: 700;
}

.x-form legend {
  margin-bottom: 0.4rem;
  padding: 0;
}

.x-req {
  color: var(--x-ink-2);
  font-weight: 400;
}

.x-hint {
  color: var(--x-ink-2);
  font-size: 0.95rem;
}

.x-input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--x-ink-2);
  border-radius: 6px;
  background: #ffffff;
  color: var(--x-ink);
  font: inherit;
}

.x-textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.x-choice {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.5rem;
}

.x-choice input {
  flex: none;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  accent-color: var(--x-primary);
}

.x-button {
  justify-self: start;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--x-primary);
  border-radius: var(--x-radius);
  background: var(--x-primary);
  color: var(--x-on-primary);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.x-button:hover {
  border-color: var(--x-primary-strong);
  background: var(--x-primary-strong);
}

.x-confirm {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--x-radius);
  background: var(--x-primary);
  color: var(--x-on-primary);
}

.x-confirm h1 {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 2.75rem);
}

.x-confirm strong {
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

/* Service status (Kestrel Valley) */

.x-status-now {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--x-ok);
  border-radius: var(--x-radius);
  background: var(--x-ok-bg);
  color: var(--x-ok);
  font-size: 1.2rem;
  font-weight: 800;
}

.x-status-now::before {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--x-ok);
  color: #ffffff;
  content: "\2713" / "";
  font-size: 1.1rem;
}

.x-status-time {
  color: var(--x-ink-2);
  font-size: 0.95rem;
  font-weight: 400;
}

.x-subhead {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.x-planned {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.x-planned li {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem;
  border: 2px solid var(--x-rule);
  border-radius: var(--x-radius);
  background: var(--x-surface);
}

.x-tag {
  justify-self: start;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--x-alert-edge);
  border-radius: 999px;
  background: var(--x-alert);
  color: var(--x-alert-edge);
  font-size: 0.85rem;
  font-weight: 700;
}

@media (min-width: 50rem) {
  .x-planned {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.x-tag--plain {
  border-color: var(--x-rule);
  background: var(--x-surface);
  color: var(--x-ink-2);
}

/* Events calendar */

.x-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.x-jump a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--x-rule);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.x .x-jump a:hover {
  border-color: var(--x-primary);
}

.x-week {
  padding-top: 1.5rem;
}

/* Business directory */

.x-search {
  display: grid;
  align-items: end;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
  padding: 1.1rem 1.25rem;
  border: 2px solid var(--x-rule);
  border-radius: var(--x-radius);
  background: var(--x-surface);
}

@media (min-width: 48rem) {
  .x-search {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  }
}

.x-status {
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.x-group {
  padding-top: 0.75rem;
}

.x-biz {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.x-biz li {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--x-rule);
  border-radius: var(--x-radius);
  background: var(--x-surface);
}

@media (min-width: 40rem) {
  .x-biz {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .x-biz {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Footer ---------- */

.x-footer {
  --x-focus: var(--x-focus-dark);
  background: var(--x-primary);
  color: var(--x-on-primary);
}

.x-footer a,
.x .x-footer a:hover {
  color: var(--x-on-primary);
}

.x-footer-grid {
  display: grid;
  gap: 1.5rem 2.5rem;
  padding-block: 2.25rem;
}

.x-footer-grid > div {
  display: grid;
  align-content: start;
  gap: 0.5rem;
}

.x .x-footer-title {
  margin: 0;
  font-size: 1.1rem;
}

.x-footer ul {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.x-footer-fine {
  padding-block: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.95rem;
}

@media (min-width: 48rem) {
  .x-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media print {
  .demo-bar,
  .x-navbar,
  .x-nav {
    display: none;
  }
}
