/*
  Small-business example sites: one kit, two themes.

  These are deliberately not the government kit (examples.css). A shop or a trade wants a
  warmer page with a price, an hour and a phone number near the top. What stays the same is
  the floor: WCAG 2.1 AA, no layout that breaks at 320 px, and nothing that needs a script.
  Light-only, so every color is set here.
*/

.theme-pennylark {
  --sb-ground: #fbf5ea;
  --sb-surface: #ffffff;
  --sb-tint: #f3e6d0;
  --sb-ink: #2b1d14;
  --sb-ink-2: #5c4a3d;
  --sb-rule: #e2d2b8;
  --sb-primary: #9c3d1f;
  --sb-primary-strong: #7c2e15;
  --sb-on-primary: #ffffff;
  --sb-accent: #e3a73a;
  --sb-on-accent: #2b1d14;
  --sb-dark: #33261c;
  --sb-on-dark: #fbf5ea;
  --sb-on-dark-2: #e6d6bd;
  --sb-link: #8a3318;
  --sb-focus: #1d4f91;
  --sb-focus-dark: #ffd27a;
  --sb-ok: #2f5d3a;
  --sb-ok-bg: #e3f0e2;
  --sb-head: "Fraunces", Georgia, "Times New Roman", serif;
  --sb-body: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  --sb-head-weight: 600;
  --sb-head-spacing: -0.015em;
  --sb-radius: 18px;
  --sb-radius-sm: 10px;
}

.theme-ironvane {
  --sb-ground: #f3f5f7;
  --sb-surface: #ffffff;
  --sb-tint: #e6ebf0;
  --sb-ink: #14202b;
  --sb-ink-2: #46535f;
  --sb-rule: #cfd8e0;
  --sb-primary: #16283a;
  --sb-primary-strong: #0d1a27;
  --sb-on-primary: #ffffff;
  --sb-accent: #ff7a1a;
  --sb-on-accent: #14202b;
  --sb-dark: #16283a;
  --sb-on-dark: #ffffff;
  --sb-on-dark-2: #cbd6e0;
  --sb-link: #0f5c99;
  --sb-focus: #b3261e;
  --sb-focus-dark: #ffd27a;
  --sb-ok: #1b6e45;
  --sb-ok-bg: #e2f3e9;
  --sb-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --sb-body: "Barlow", "Segoe UI", Arial, sans-serif;
  --sb-head-weight: 700;
  --sb-head-spacing: 0;
  --sb-radius: 6px;
  --sb-radius-sm: 4px;
}

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

.x {
  margin: 0;
  background: var(--sb-ground);
  color: var(--sb-ink);
  color-scheme: light;
  font-family: var(--sb-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;
}

:where(.x) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) {
  margin: 0;
}

:where(.x) :where(ul[role="list"], ol[role="list"]) {
  padding: 0;
  list-style: none;
}

.x h1,
.x h2,
.x h3 {
  font-family: var(--sb-head);
  font-weight: var(--sb-head-weight);
  letter-spacing: var(--sb-head-spacing);
  line-height: 1.08;
  text-wrap: balance;
}

.x h1 {
  font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.4rem);
}

.x h2 {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem);
}

.x h3 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.theme-ironvane h1,
.theme-ironvane h2 {
  text-transform: uppercase;
}

.theme-ironvane h3 {
  font-size: 1.5rem;
}

.x p {
  text-wrap: pretty;
}

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

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

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

.x main:focus {
  outline: none;
}

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

[hidden] {
  display: none !important;
}

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

.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 Bell Tower Digital label on every example. Same as the government examples. */

.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: 74rem;
  margin: 0 auto;
  padding: 0.55rem clamp(1rem, 4vw, 2rem);
}

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

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

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

/* ---------- Buttons ---------- */

.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.theme-ironvane .sb-btn {
  border-radius: var(--sb-radius);
  font-family: var(--sb-head);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.x .sb-btn-primary {
  background: var(--sb-primary);
  color: var(--sb-on-primary);
}

.x .sb-btn-primary:hover {
  background: var(--sb-primary-strong);
}

.x .sb-btn-accent {
  background: var(--sb-accent);
  color: var(--sb-on-accent);
}

.x .sb-btn-accent:hover {
  background: var(--sb-on-accent);
  color: var(--sb-accent);
}

.x .sb-btn-ghost {
  border-color: currentColor;
  background: transparent;
  color: var(--sb-ink);
}

.x .sb-btn-ghost:hover {
  background: var(--sb-ink);
  border-color: var(--sb-ink);
  color: var(--sb-ground);
}

.sb-dark .sb-btn-ghost,
.sb-hero--dark .sb-btn-ghost {
  color: var(--sb-on-dark);
}

.x .sb-dark .sb-btn-ghost:hover,
.x .sb-hero--dark .sb-btn-ghost:hover {
  background: var(--sb-on-dark);
  border-color: var(--sb-on-dark);
  color: var(--sb-dark);
}

/* ---------- Top strip and header ---------- */

.sb-strip {
  background: var(--sb-accent);
  color: var(--sb-on-accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.sb-strip p {
  padding-block: 0.45rem;
  text-align: center;
}

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

.theme-ironvane .sb-header {
  background: var(--sb-surface);
}

.sb-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.9rem;
}

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

.sb-brand svg {
  flex: none;
}

.sb-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.sb-brand-name {
  font-family: var(--sb-head);
  font-weight: var(--sb-head-weight);
  font-size: 1.6rem;
  letter-spacing: var(--sb-head-spacing);
}

.theme-ironvane .sb-brand-name {
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.sb-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.3rem;
}

.x .sb-nav a {
  display: inline-block;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--sb-ink);
  font-weight: 700;
  text-decoration: none;
}

.theme-ironvane .sb-nav a {
  border-radius: var(--sb-radius-sm);
}

.x .sb-nav a:hover {
  background: var(--sb-tint);
  text-decoration: underline;
}

.x .sb-nav a[aria-current="page"] {
  background: var(--sb-tint);
}

.sb-header-call {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}

.sb-header-call span:first-child {
  color: var(--sb-ink-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sb-phone {
  font-family: var(--sb-head);
  font-weight: var(--sb-head-weight);
  font-size: 1.9rem;
  letter-spacing: 0.02em;
}

/* ---------- Hero ---------- */

.sb-hero {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.sb-hero--dark {
  background: var(--sb-dark);
  color: var(--sb-on-dark);
}

.sb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.sb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--sb-ok-bg);
  color: var(--sb-ok);
  font-size: 0.92rem;
  font-weight: 700;
}

.sb-eyebrow::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: currentColor;
}

.sb-hero--dark .sb-eyebrow {
  border-radius: var(--sb-radius-sm);
  background: var(--sb-accent);
  color: var(--sb-on-accent);
  font-family: var(--sb-head);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sb-hero h1 em {
  color: var(--sb-primary);
  font-style: italic;
}

.sb-hero--dark h1 em {
  color: var(--sb-accent);
  font-style: normal;
}

.sb-lead {
  max-width: 36rem;
  margin-top: 1.2rem;
  color: var(--sb-ink-2);
  font-size: 1.2rem;
}

.sb-hero--dark .sb-lead,
.sb-dark .sb-lead {
  color: var(--sb-on-dark-2);
}

.sb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.sb-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--sb-rule);
  color: var(--sb-ink-2);
  font-size: 0.98rem;
}

.sb-hero--dark .sb-hero-facts {
  border-top-color: #34495e;
  color: var(--sb-on-dark-2);
}

.sb-hero-facts strong {
  display: block;
  color: var(--sb-ink);
  font-size: 1.05rem;
}

.sb-hero--dark .sb-hero-facts strong {
  color: var(--sb-on-dark);
}

.sb-hero-art {
  position: relative;
}

.sb-hero-art svg {
  display: block;
  width: 100%;
}

/* ---------- Sections ---------- */

.sb-section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.sb-section--tint {
  background: var(--sb-tint);
}

.sb-section--surface {
  background: var(--sb-surface);
}

.sb-dark {
  background: var(--sb-dark);
  color: var(--sb-on-dark);
}

.x .sb-dark a:not(.sb-btn) {
  color: var(--sb-on-dark);
}

.sb-dark :focus-visible,
.sb-hero--dark :focus-visible,
.sb-footer :focus-visible {
  outline-color: var(--sb-focus-dark);
}

.sb-head {
  max-width: 44rem;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

.sb-kicker {
  margin-bottom: 0.6rem;
  color: var(--sb-primary);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.theme-ironvane .sb-kicker {
  color: #a8450a;
}

.sb-dark .sb-kicker {
  color: var(--sb-accent);
}

.sb-intro {
  margin-top: 0.9rem;
  color: var(--sb-ink-2);
  font-size: 1.12rem;
}

.sb-dark .sb-intro {
  color: var(--sb-on-dark-2);
}

/* Cards */

.sb-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.sb-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--sb-rule);
  border-radius: var(--sb-radius);
  background: var(--sb-surface);
}

.sb-card svg {
  color: var(--sb-primary);
}

.theme-ironvane .sb-card {
  border-top: 4px solid var(--sb-accent);
}

.sb-card p {
  color: var(--sb-ink-2);
}

.sb-card .sb-price {
  margin-top: auto;
  padding-top: 0.7rem;
  color: var(--sb-ink);
  font-weight: 800;
}

.sb-tag {
  align-self: flex-start;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--sb-tint);
  color: var(--sb-ink);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Two-column split */

.sb-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}

.sb-prose > * + * {
  margin-top: 1rem;
}

.sb-prose p {
  color: var(--sb-ink-2);
}

.sb-dark .sb-prose p {
  color: var(--sb-on-dark-2);
}

.sb-sign {
  font-family: var(--sb-head);
  font-style: italic;
  font-size: 1.3rem;
}

/* Numbered steps */

.sb-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.sb-steps li {
  counter-increment: step;
}

.sb-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: var(--sb-accent);
  color: var(--sb-on-accent);
  font-family: var(--sb-head);
  font-weight: 700;
  font-size: 1.3rem;
}

.theme-ironvane .sb-steps li::before {
  border-radius: var(--sb-radius-sm);
}

.sb-steps p {
  margin-top: 0.35rem;
  color: var(--sb-ink-2);
}

.sb-dark .sb-steps p {
  color: var(--sb-on-dark-2);
}

/* Tables: hours, prices, menus. They scroll inside their own box, never the page. */

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

.sb-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--sb-ink);
}

.sb-table caption {
  padding: 1rem 1.25rem 0.4rem;
  font-family: var(--sb-head);
  font-weight: var(--sb-head-weight);
  font-size: 1.3rem;
  text-align: left;
}

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

.sb-table thead th {
  border-top: 0;
  color: var(--sb-ink-2);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sb-table td:last-child,
.sb-table thead th:last-child {
  text-align: right;
  white-space: nowrap;
}

.sb-table tbody th {
  font-weight: 700;
}

.sb-table .sb-sub {
  display: block;
  color: var(--sb-ink-2);
  font-size: 0.94rem;
  font-weight: 400;
}

.sb-table tr.is-today th,
.sb-table tr.is-today td {
  background: var(--sb-ok-bg);
}

.sb-note {
  margin-top: 0.9rem;
  color: var(--sb-ink-2);
  font-size: 0.95rem;
}

.sb-dark .sb-note {
  color: var(--sb-on-dark-2);
}

/* Visit block */

.sb-visit-list {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.4rem;
}

.sb-visit-list dt {
  color: var(--sb-ink-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sb-dark .sb-visit-list dt {
  color: var(--sb-on-dark-2);
}

.sb-map {
  overflow: hidden;
  border: 1px solid var(--sb-rule);
  border-radius: var(--sb-radius);
  background: var(--sb-surface);
}

.sb-map svg {
  display: block;
  width: 100%;
}

.sb-map figcaption {
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--sb-rule);
  color: var(--sb-ink-2);
  font-size: 0.95rem;
}

/* Check list and area list */

.sb-checks {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.sb-checks li {
  position: relative;
  padding-left: 2rem;
}

.sb-checks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.3rem;
  width: 0.55rem;
  height: 1rem;
  border: solid var(--sb-accent);
  border-width: 0 0.2rem 0.2rem 0;
  transform: rotate(45deg);
}

.sb-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.sb-areas li {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--sb-rule);
  border-radius: 999px;
  background: var(--sb-surface);
  font-weight: 600;
}

.theme-ironvane .sb-areas li {
  border-radius: var(--sb-radius-sm);
}

/* FAQ */

.sb-faq {
  display: grid;
  gap: 0.75rem;
}

.sb-faq details {
  border: 1px solid var(--sb-rule);
  border-radius: var(--sb-radius);
  background: var(--sb-surface);
}

.sb-faq summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1.08rem;
  cursor: pointer;
}

.sb-faq details p {
  padding: 0 1.25rem 1.2rem;
  color: var(--sb-ink-2);
}

/* Forms */

.sb-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--sb-radius);
  background: var(--sb-surface);
  color: var(--sb-ink);
  box-shadow: 0 18px 40px -24px rgb(0 0 0 / 0.45);
}

.sb-form h2,
.sb-form h3 {
  font-size: 1.7rem;
}

.sb-form > p {
  color: var(--sb-ink-2);
}

.sb-field {
  display: grid;
  gap: 0.3rem;
}

.sb-field label,
.sb-fieldset legend {
  font-weight: 700;
}

.sb-hint {
  color: var(--sb-ink-2);
  font-size: 0.92rem;
  font-weight: 400;
}

.sb-field input,
.sb-field select,
.sb-field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.8rem;
  border: 2px solid #6b7680;
  border-radius: var(--sb-radius-sm);
  background: #ffffff;
  color: var(--sb-ink);
  font: inherit;
}

.sb-form :focus-visible {
  outline-color: var(--sb-focus);
}

.sb-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.sb-fieldset legend {
  padding: 0;
  margin-bottom: 0.4rem;
}

.sb-choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.3rem;
}

.sb-choice input {
  width: 1.4rem;
  height: 1.4rem;
  accent-color: var(--sb-primary);
}

.sb-form .sb-btn {
  width: 100%;
}

.sb-fine {
  color: var(--sb-ink-2);
  font-size: 0.9rem;
}

/* Page title band on inner pages */

.sb-title {
  padding-block: clamp(2rem, 5vw, 3.5rem);
  background: var(--sb-tint);
}

.sb-title h1 {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem);
}

.sb-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.sb-confirm {
  max-width: 40rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 2px solid var(--sb-ok);
  border-radius: var(--sb-radius);
  background: var(--sb-ok-bg);
}

.sb-confirm > * + * {
  margin-top: 1rem;
}

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

.sb-footer {
  padding-block: 3rem 2rem;
  background: var(--sb-dark);
  color: var(--sb-on-dark-2);
}

.sb-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
}

.x .sb-footer h2 {
  margin-bottom: 0.6rem;
  color: var(--sb-on-dark);
  font-size: 1.3rem;
}

.sb-footer p + p {
  margin-top: 0.5rem;
}

.x .sb-footer a {
  color: var(--sb-on-dark);
}

.sb-footer-fine {
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid #ffffff33;
  font-size: 0.92rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 60rem) {
  .sb-hero-grid,
  .sb-split,
  .sb-menu-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sb-hero-art {
    max-width: 30rem;
  }

  .sb-header-call {
    align-items: flex-start;
  }
}

@media (max-width: 30rem) {
  .sb-nav a {
    padding-inline: 0.55rem;
  }

  .sb-table th,
  .sb-table td {
    padding-inline: 0.8rem;
  }

  .sb-actions .sb-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sb-btn,
  .sb-nav a {
    transition: background-color 0.15s, color 0.15s;
  }
}

@media (min-width: 60.0625rem) {
  .sb-cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
