/* ==========================================================================
   Blue Star Development — site styles
   Built on the Bluebooks design system. Use the tokens below; avoid raw hex.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Colour */
  --surface-100: #f7f8fb;   /* page background */
  --surface-200: #ffffff;   /* cards, panels, inputs */
  --surface-300: #eef1f6;   /* hover fills, input wells */
  --border: #dfe4ec;
  --ink: #1f2937;           /* primary text */
  --ink-muted: #5b6676;     /* secondary text */
  --brand: #1d6fd8;
  --brand-hover: #1a5fc0;
  --on-brand: #ffffff;
  --brand-soft: #e6f0fc;
  --success: #237a4d;
  --warning: #8a5300;
  --danger: #c92a2a;
  --footer-bg: #1c2130;
  --footer-ink: #e9edf5;
  --footer-muted: #aab3c4;
  --footer-border: #3a4256;
  --photo-before: #d9dee6;
  --photo-after: #e6f0fc;

  /* Type */
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-18: 72px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 6px 16px rgba(16, 24, 40, 0.08);

  --container: 1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  background: var(--surface-100);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
h1, h2, h3, p { margin: 0; }
input, select, textarea, button { font: inherit; color: var(--ink); }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }
@media (max-width: 640px) { .container { padding: 0 var(--space-4); } }

.section { padding: var(--space-18) 0; }
.section--white { background: var(--surface-200); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.muted { color: var(--ink-muted); }

/* ---------- Type styles ---------- */
.display { font-size: 36px; line-height: 44px; font-weight: 700; }
.hero-title { font-size: 48px; line-height: 56px; font-weight: 700; letter-spacing: -0.02em; }
.section-title { font-size: 32px; line-height: 40px; font-weight: 700; }
.heading { font-size: 24px; line-height: 32px; font-weight: 600; }
.subheading { font-size: 18px; line-height: 26px; font-weight: 600; }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); max-width: 640px; }
.label { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption { font-size: 12px; line-height: 16px; font-weight: 500; }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
@media (max-width: 640px) {
  .hero-title { font-size: 36px; line-height: 44px; }
  .section-title { font-size: 26px; line-height: 34px; }
  .display { font-size: 30px; line-height: 38px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius-md);
  font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s;
}
.btn--lg { min-height: 48px; padding: 12px 22px; font-size: 16px; }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn--secondary { background: var(--surface-200); color: var(--ink); border-color: var(--border); }
.btn--secondary:hover { background: var(--surface-300); color: var(--ink); }
.btn--outline { background: var(--surface-200); color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand-soft); }
.btn--inverse { background: #fff; color: var(--brand); }
.btn--inverse:hover { background: var(--brand-soft); color: var(--brand-hover); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- Tags ---------- */
.tag {
  display: inline-block; align-self: flex-start;
  font-size: 12px; line-height: 16px; font-weight: 600;
  padding: 4px 8px; border-radius: var(--radius-sm);
  background: var(--brand-soft); color: var(--ink);
}
.tag--success { background: var(--surface-300); color: var(--success); }
.tag--warning { background: var(--surface-300); color: var(--warning); }
.tag--brand { background: var(--brand-soft); color: var(--brand-hover); }
.badge { font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: var(--radius-sm); }
.badge--before { background: var(--ink); color: #fff; }
.badge--after { background: var(--brand); color: #fff; }
.badge--light { background: #fff; color: var(--ink); }

/* ---------- Header ---------- */
.site-header { background: var(--surface-200); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3); padding-top: var(--space-3); padding-bottom: var(--space-3);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 36px; height: 36px; }
.logo__text { font-size: 18px; line-height: 26px; font-weight: 700; }
.logo__text span { font-weight: 500; color: var(--ink-muted); }
.nav { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.nav a {
  font-size: 14px; line-height: 20px; font-weight: 500; padding: 12px 14px;
  border-radius: var(--radius-md); text-decoration: none; color: var(--ink);
}
.nav a:hover { background: var(--surface-300); }
.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.header-actions .plain-link { font-size: 14px; font-weight: 500; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.menu-toggle {
  display: none; min-height: 44px; min-width: 44px; padding: 10px;
  background: var(--surface-200); border: 1px solid var(--border); border-radius: var(--radius-md);
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav-wrap { display: none; width: 100%; flex-direction: column; gap: var(--space-2); padding-bottom: var(--space-2); }
  .site-nav-wrap.is-open { display: flex; }
  .nav { flex-direction: column; }
  .header-actions { flex-direction: column; align-items: stretch; }
}
@media (min-width: 861px) {
  .site-nav-wrap { display: contents; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); }
.site-footer__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-8); padding-top: var(--space-12); padding-bottom: var(--space-8);
}
.site-footer__col { display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer__brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.site-footer__heading { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--footer-muted); }
.site-footer a { color: var(--footer-ink); text-decoration: none; font-size: 14px; padding: 4px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__muted { font-size: 14px; line-height: 20px; color: var(--footer-muted); }
.site-footer__bottom { border-top: 1px solid var(--footer-border); }
.site-footer__bottom .container { padding-top: 20px; padding-bottom: 20px; font-size: 12px; color: var(--footer-muted); }

/* ---------- Cards & grids ---------- */
.card {
  background: var(--surface-200); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--space-6);
}
@media (max-width: 640px) { .card { padding: var(--space-4); } }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-4); }
.grid-auto--wide-gap { gap: var(--space-6); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-8); }
.section-head > div { display: flex; flex-direction: column; gap: var(--space-2); max-width: 620px; }

.service-card {
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: var(--space-3);
  transition: border-color .15s, box-shadow .15s;
}
.service-card:hover { color: var(--ink); border-color: var(--brand); box-shadow: var(--shadow-md); }
.service-card p { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.icon-tile {
  width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.icon-tile svg { width: 24px; height: 24px; stroke: var(--brand); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist--cols { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); column-gap: var(--space-6); }
.checklist li { display: flex; gap: var(--space-2); align-items: flex-start; font-size: 15px; line-height: 22px; }
.checklist svg { width: 20px; height: 20px; flex: none; margin-top: 1px; stroke: var(--success); }

/* ---------- Photo placeholders / images ---------- */
.photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
  background: repeating-linear-gradient(135deg, #eef1f6 0 14px, #e6eaf1 14px 28px);
  display: flex; align-items: flex-end; padding: var(--space-3);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo > .badge { position: relative; z-index: 1; }
.photo--before { background: var(--photo-before); }
.photo--after { background: var(--photo-after); }

.ba-thumb { display: grid; grid-template-columns: 1fr 1fr; height: 210px; }
.ba-thumb > div { position: relative; display: flex; align-items: flex-end; padding: 10px; }
.ba-thumb > div:first-child { background: var(--photo-before); }
.ba-thumb > div:last-child { background: var(--photo-after); justify-content: flex-end; border-left: 2px solid #fff; }
.ba-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-thumb .badge { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { background: var(--surface-200); border-bottom: 1px solid var(--border); }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12); padding-top: var(--space-18); padding-bottom: var(--space-18); }
.hero__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.hero__media { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.hero__media .photo--main { grid-column: span 2; height: 300px; }
.hero__media .photo--small { height: 160px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.trust { display: flex; flex-wrap: wrap; gap: 20px; padding-top: var(--space-2); }
.trust span { display: flex; align-items: center; gap: var(--space-2); font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.trust svg { width: 20px; height: 20px; stroke: var(--success); }

.page-head { background: var(--surface-200); border-bottom: 1px solid var(--border); }
.page-head .container { padding-top: 56px; padding-bottom: var(--space-12); display: flex; flex-direction: column; gap: var(--space-4); }

/* ---------- Process steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-4); }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.step-num {
  width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--brand); color: #fff;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.steps p { font-size: 15px; line-height: 22px; color: var(--ink-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: var(--space-12);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6);
}
.cta-band p { color: var(--brand-soft); }
.cta-band > div { display: flex; flex-direction: column; gap: var(--space-2); max-width: 560px; }
.cta-soft {
  background: var(--brand-soft); border-radius: var(--radius-lg); padding: 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6);
}
.cta-soft > div { display: flex; flex-direction: column; gap: var(--space-2); max-width: 600px; }
@media (max-width: 640px) { .cta-band, .cta-soft { padding: var(--space-6); } }

/* ---------- Pills / filters ---------- */
.pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pill {
  min-height: 44px; padding: 10px 16px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 500; border: 1px solid var(--border);
  background: var(--surface-200); color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center;
}
.pill:hover { background: var(--surface-300); color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Services page ---------- */
.service-row { display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: stretch; scroll-margin-top: 90px; }
.service-row .photo { flex: 1 1 320px; min-height: 240px; border-radius: var(--radius-md); border: 0; }
.service-row__body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-2) 0; }
.service-row__actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; margin-top: auto; padding-top: var(--space-2); }

/* ---------- Portfolio ---------- */
.project-card {
  text-decoration: none; color: var(--ink); background: var(--surface-200);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: box-shadow .15s, border-color .15s;
}
.project-card:hover { color: var(--ink); box-shadow: var(--shadow-md); border-color: var(--brand); }
.project-card__body { padding: 20px; display: flex; flex-direction: column; gap: var(--space-2); }
.project-card__more { font-size: 14px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; padding-top: 4px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-6); }
.featured-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: var(--space-3); }
.featured-card .ba-thumb { height: 220px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }

/* ---------- Project page ---------- */
.breadcrumb { font-size: 14px; color: var(--ink-muted); display: flex; gap: var(--space-2); align-items: center; }
.breadcrumb a { text-decoration: none; font-weight: 500; }
.facts {
  margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: var(--surface-200); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
}
.facts div { padding: var(--space-4) 20px; border-right: 1px solid var(--border); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.facts dd { margin: 4px 0 0; font-size: 16px; font-weight: 600; }

.segmented { display: flex; gap: 4px; padding: 4px; background: var(--surface-300); border-radius: var(--radius-full); }
.segmented button {
  min-height: 40px; padding: 8px 16px; border: 0; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 500; background: transparent;
}
.segmented button[aria-pressed="true"] { background: var(--surface-200); box-shadow: var(--shadow-sm); }

.ba-slider {
  position: relative; height: 560px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--photo-before); --pos: 50%;
  user-select: none;
}
@media (max-width: 640px) { .ba-slider { height: 320px; } }
.ba-slider__layer {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500;
}
.ba-slider__layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider__layer--before { background: repeating-linear-gradient(135deg, #d9dee6 0 16px, #d1d7e0 16px 32px); color: var(--ink-muted); }
.ba-slider__layer--after {
  background: repeating-linear-gradient(135deg, #e6f0fc 0 16px, #dce9fa 16px 32px); color: var(--brand-hover);
  clip-path: inset(0 0 0 var(--pos));
}
.ba-slider__label { position: absolute; top: var(--space-4); z-index: 1; padding: 6px 10px; }
.ba-slider__label--before { left: var(--space-4); }
.ba-slider__label--after { right: var(--space-4); }
.ba-slider__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
  cursor: ew-resize; z-index: 3;
}
.ba-slider__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: #fff; pointer-events: none; z-index: 2;
}
.ba-slider__knob {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: var(--radius-full); background: #fff; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
}
.ba-slider__range:focus-visible ~ .ba-slider__handle .ba-slider__knob { outline: 2px solid var(--brand); outline-offset: 2px; }

.ba-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-4); }
.ba-side figure { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.ba-side .photo { height: 420px; align-items: flex-start; }
.ba-side figcaption { font-size: 14px; color: var(--ink-muted); }
.ba-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-3); padding: var(--space-3); }
.ba-pair .photo { height: 260px; border-radius: var(--radius-md); border: 0; }
.project-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); border-top: 1px solid var(--border); padding-top: var(--space-6); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: var(--space-6); }
.fieldset {
  margin: 0; border: 1px solid var(--border); background: var(--surface-200);
  border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4);
}
.fieldset legend { font-size: 18px; font-weight: 600; padding: 0 var(--space-2); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.input, .select, .textarea {
  min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface-200); font-size: 16px; font-weight: 400; width: 100%;
}
.textarea { line-height: 24px; resize: vertical; padding: 12px; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); }
.field-error { font-size: 13px; color: var(--danger); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.checkbox-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); flex: none; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.choice {
  min-height: 52px; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--surface-200); display: flex; align-items: center; gap: 10px; text-align: left;
  font-size: 15px; font-weight: 500;
}
.choice__box {
  flex: none; width: 20px; height: 20px; border-radius: var(--radius-sm); border: 2px solid var(--border);
  background: var(--surface-200); display: flex; align-items: center; justify-content: center;
}
.choice__box svg { width: 14px; height: 14px; stroke: #fff; opacity: 0; }
.choice[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); }
.choice[aria-pressed="true"] .choice__box { background: var(--brand); border-color: var(--brand); }
.choice[aria-pressed="true"] .choice__box svg { opacity: 1; }

.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius-md); background: var(--surface-100);
  padding: var(--space-6); display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  text-align: center; cursor: pointer; position: relative;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone__title { font-size: 15px; font-weight: 600; color: var(--brand); }
.file-list { font-size: 13px; color: var(--ink-muted); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.success-panel { display: flex; flex-direction: column; gap: var(--space-4); }
.status-line { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--success); }
.status-line svg { width: 24px; height: 24px; stroke: var(--success); }

/* Two-column page layouts */
.layout-split { display: flex; flex-wrap: wrap; gap: var(--space-8); align-items: flex-start; padding-top: var(--space-12); padding-bottom: var(--space-18); }
.layout-split__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.layout-split__aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: var(--space-4); }
.numbered { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.numbered li { display: flex; gap: var(--space-3); font-size: 15px; line-height: 22px; }
.numbered .n {
  flex: none; width: 28px; height: 28px; border-radius: var(--radius-full); background: var(--brand-soft);
  color: var(--brand); font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.panel-soft { background: var(--brand-soft); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: 10px; }

/* ---------- Contact ---------- */
.contact-item {
  text-decoration: none; color: var(--ink); background: var(--surface-200); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; display: flex; gap: var(--space-4); align-items: center;
}
.contact-item:hover { color: var(--ink); border-color: var(--brand); }
.contact-item__label { font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.contact-item__value { font-size: 17px; font-weight: 600; color: var(--brand); }

/* ---------- Portal ---------- */
.portal-wrap { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: flex-start; padding-top: var(--space-8); padding-bottom: var(--space-18); }
.portal-nav {
  flex: 1 1 200px; background: var(--surface-200); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-2); display: flex; flex-direction: column; gap: 2px;
}
.portal-nav a {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border-radius: var(--radius-md);
  color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none;
}
.portal-nav a:hover { background: var(--surface-300); }
.portal-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.portal-nav svg { width: 20px; height: 20px; }
.portal-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.portal-cols { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: flex-start; }
.request-list { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; }
.request {
  text-align: left; padding: var(--space-4); border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface-200); display: flex; flex-direction: column; gap: var(--space-2); width: 100%;
}
.request[aria-pressed="true"] { border: 2px solid var(--brand); padding: 15px; }
.request__top { display: flex; justify-content: space-between; gap: var(--space-2); align-items: center; }
.request-detail { flex: 2 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.progress li { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink-muted); }
.progress li::before { content: ""; height: 6px; border-radius: var(--radius-full); background: var(--border); }
.progress li.is-done { color: var(--ink); font-weight: 600; }
.progress li.is-done::before { background: var(--brand); }
.quote-table { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.quote-table__row { display: flex; justify-content: space-between; gap: var(--space-4); padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 15px; }
.quote-table__row span:last-child { font-weight: 500; }
.quote-table__total { display: flex; justify-content: space-between; padding: 14px 16px; background: var(--surface-300); font-weight: 700; }
.note-box { padding: var(--space-4); background: var(--surface-100); border-radius: var(--radius-md); color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.approved-box { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-md); background: var(--surface-300); font-size: 15px; line-height: 22px; }
.approved-box strong { color: var(--success); }
.avatar {
  width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--brand-soft); color: var(--brand);
  font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.signin { display: flex; justify-content: center; padding-top: var(--space-18); padding-bottom: var(--space-18); }
.signin form { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-8); }

/* ==========================================================================
   Utility and layout classes that replace inline style="" attributes, so a
   same-origin Content-Security-Policy (style-src 'self') can be enforced.
   ========================================================================== */
.u-pt-2 { padding-top: var(--space-2); }
.u-pb-8 { padding-bottom: var(--space-8); }
.u-pb-18 { padding-bottom: var(--space-18); }
.u-gap-2 { gap: var(--space-2); }
.u-gap-2px { gap: 2px; }
.u-gap-6px { gap: 6px; }
.u-fw-400 { font-weight: 400; }
.u-fw-600-plain { font-weight: 600; text-decoration: none; }
.u-text-15 { font-size: 15px; line-height: 22px; }
.u-text-16 { font-size: 16px; }
.u-items-start { align-items: flex-start; }
.u-intro { gap: var(--space-2); max-width: 640px; }
.u-panel-pad { padding: 20px; gap: var(--space-2); }
.u-list-section { gap: var(--space-6); padding-top: var(--space-12); padding-bottom: var(--space-18); }
.contact-main { gap: var(--space-8); padding-top: var(--space-12); padding-bottom: var(--space-18); }
.contact-layout { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: flex-start; }
.contact-col { flex: 1 1 300px; gap: var(--space-3); }
.contact-hours { gap: 4px; font-size: 15px; line-height: 22px; }
.empty-state { align-items: flex-start; gap: var(--space-3); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: var(--space-2) var(--space-4); z-index: 100; }
.skip-link:focus { left: var(--space-4); top: var(--space-2); }

/* Sign-in, registration and account forms */
.auth-wrap { max-width: 460px; margin: 0 auto; padding: var(--space-12) var(--space-4) var(--space-18); display: flex; flex-direction: column; gap: var(--space-6); }
.auth-card { display: flex; flex-direction: column; gap: var(--space-4); }
.auth-foot { font-size: 14px; text-align: center; border-top: 1px solid var(--border); padding-top: var(--space-4); }
.auth-foot a, .auth-link { font-weight: 600; text-decoration: none; }
.hint { font-size: 13px; color: var(--ink-muted, #5b6478); }
.notice { border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: 15px; line-height: 22px; background: var(--brand-soft); color: var(--ink); }
.notice--error { background: #fdecec; color: #7a1616; border: 1px solid #f3c2c2; }
.notice--success { background: #e8f5ee; color: #17492e; border: 1px solid #bfe3cf; }
.account-wrap { max-width: 760px; margin: 0 auto; padding: var(--space-12) var(--space-4) var(--space-18); display: flex; flex-direction: column; gap: var(--space-6); }
.account-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.inline-form { display: inline; }

/* Admin tables and rows */
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-scroll { overflow-x: auto; }
.row-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.row-actions form { display: inline-flex; gap: var(--space-2); align-items: center; }
.btn--small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.select--small { min-height: 36px; padding: 4px 8px; font-size: 14px; }
.pager { display: flex; justify-content: space-between; gap: var(--space-4); }
.nowrap { white-space: nowrap; }
.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; }
