﻿/* ============================================================
   BRISTOW & SUTOR — BASE LAYOUT, HEADER, HERO, FOOTER
   ============================================================ */

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

html { scroll-behavior: smooth; font-size: 10.8px; }

body {
  font-family: var(--font-primary);
  color: var(--bs-body-text);
  background: var(--bs-off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open, body.modal-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bs-dark-blue); text-decoration: none; }
a:hover { color: var(--bs-gold); }
a:focus-visible { outline: 2px solid var(--bs-gold); outline-offset: 2px; border-radius: 2px; }

/* ---- SECTION WRAPPERS ---- */
.section { max-width: 1160px; margin: 0 auto; padding: var(--space-xl) var(--space-lg); }
.bg-white  { background: var(--bs-white); }
.bg-light  { background: var(--bs-off-white); }
.bg-dark   { background: var(--bs-dark-blue); color: var(--bs-white); }

.section-title {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bs-gold); margin-bottom: 0.59rem;
}
.section-heading {
  font-size: 2rem; font-weight: 700; color: var(--bs-dark-blue); margin-bottom: 0.3rem;
}
.bg-dark .section-heading { color: var(--bs-white); }
.section-divider {
  width: 38.4px; height: 3.2px; background: var(--bs-gold); border-radius: 2px; margin: 1.19rem 0 25.6px;
}

/* ---- SITE HEADER ---- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: var(--bs-dark-blue);
  box-shadow: var(--shadow-md);
  height: 51.2px;
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 19.2px;
  height: 100%; display: flex; align-items: center; gap: 1.19rem;
}
.logo-area { flex-shrink: 0; display: flex; align-items: center; position: relative; }
.logo-icon {
  height: 40px; width: auto;
  opacity: 0; /* kept for layout sizing + alt text; repainted via ::after mask below */
}
.logo-area::after {
  content: "";
  position: absolute; inset: 0;
  background-color: var(--bs-gold);
  -webkit-mask: url('../images/logo_nav.svg') no-repeat center / contain;
          mask: url('../images/logo_nav.svg') no-repeat center / contain;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
  pointer-events: none;
}

/* ---- HEADER NAV ---- */
.header-nav {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: nowrap; overflow: visible;
}
.header-nav > a {
  font-size: var(--text-body); line-height: var(--line-body); font-weight: 600; color: rgba(255,255,255,0.9);
  padding: 0.74rem 8px; white-space: nowrap; border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.header-nav > a:hover { color: var(--bs-gold); border-bottom-color: var(--bs-gold); }
.header-nav > a:focus-visible { outline: 2px solid var(--bs-gold); outline-offset: 2px; }

/* Nav dropdown trigger styled like nav link */
.nav-dd-trigger {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-primary); font-size: var(--text-body); line-height: var(--line-body); font-weight: 600;
  color: rgba(255,255,255,0.9); padding: 0.74rem 8px;
  display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.nav-dd-trigger:hover { color: var(--bs-gold); border-bottom-color: var(--bs-gold); }
.nav-dd-trigger:focus-visible { outline: 2px solid var(--bs-gold); outline-offset: 2px; }
.nav-dd-trigger .dd-chevron {
  width: 9.6px; height: 9.6px; transition: transform var(--transition-fast); flex-shrink: 0;
}
.bs-dropdown.is-open .nav-dd-trigger .dd-chevron { transform: rotate(180deg); }

/* ---- HEADER RIGHT ---- */
.header-right { flex-shrink: 0; display: flex; align-items: center; gap: 1.1rem; }

/* Case quick search (Case ID / Case Ref) */
.header-search {
  position: relative;
  display: flex; align-items: center; gap: 0.44rem;
  background: var(--bs-off-white); border: 1px solid var(--bs-light-grey);
  border-radius: var(--radius-md); padding: 0 10px; height: 28.8px;
  min-width: 0; transition: border-color var(--transition-fast), background var(--transition-fast);
}
.header-search-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 176px;
  background: var(--bs-white); border: 1px solid var(--bs-light-grey);
  border-radius: 8px; box-shadow: var(--shadow-md); padding: 4px;
  z-index: var(--z-dropdown);
}
.header-search-menu[hidden] { display: none; }
.header-search-menu-item {
  display: flex; align-items: center; gap: 0.59rem;
  padding: 6.4px 9.6px; border-radius: 6px;
  font-size: var(--text-xs); line-height: var(--line-xs); font-weight: 600; color: var(--bs-dark-blue);
  text-decoration: none; white-space: nowrap;
}
.header-search-menu-item svg { width: 12.8px; height: 12.8px; flex-shrink: 0; color: var(--bs-muted); }
.header-search-menu-item:hover { background: var(--bs-off-white); color: var(--bs-gold); }
.header-search-menu-item:hover svg { color: var(--bs-gold); }
.header-search-menu-sep { height: 1px; background: var(--bs-light-grey); margin: 4px 2px; }
.header-search-menu-head {
  padding: 4.8px 9.6px 2px; font-size: var(--text-xs); line-height: var(--line-xs); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--bs-muted-text);
}
.header-search-menu-empty { padding: 6.4px 9.6px; font-size: var(--text-xs); line-height: var(--line-xs); color: var(--bs-muted-text); font-style: italic; }
.header-search-menu-recent { max-width: 288px; }
.hs-recent-ref { font-weight: 700; flex-shrink: 0; }
.hs-recent-open-new {
  display: inline-flex; flex-shrink: 0; color: var(--bs-muted);
}
.hs-recent-open-new svg { width: 12.8px; height: 12.8px; }
.hs-recent-open-new:hover { color: var(--bs-gold); }
.hs-recent-name {
  font-weight: 500; color: var(--bs-muted-text); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.header-search-menu-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
}
.header-search-menu-footer-item { font-size: var(--text-xs); line-height: var(--line-xs); color: var(--bs-dark-blue); }

/* Text size preference control (user menu) */
.dd-fontsize {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.59rem; padding: 6.4px 14.4px;
}
.dd-fontsize-label { font-size: var(--text-xs); line-height: var(--line-xs); font-weight: 600; color: var(--bs-dark-blue); white-space: nowrap; }
.dd-fontsize-controls { display: flex; align-items: center; gap: 4px; }
.dd-fontsize-btn {
  width: 22.4px; height: 22.4px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--bs-light-grey); border-radius: 6px; background: var(--bs-white);
  font-family: var(--font-primary); font-size: var(--text-xs); font-weight: 700;
  color: var(--bs-dark-blue); cursor: pointer; line-height: 1;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.dd-fontsize-btn:hover { border-color: var(--bs-gold); color: var(--bs-gold); }
.dd-fontsize-value {
  min-width: 33.6px; text-align: center; background: none; border: none;
  font-family: var(--font-primary); font-size: var(--text-xs); font-weight: 700;
  color: var(--bs-muted-text); cursor: pointer; padding: 0;
}
.dd-fontsize-value:hover { color: var(--bs-gold); }
.header-search:focus-within { border-color: var(--bs-gold); background: var(--bs-white); }
.header-search-icon { width: 12.8px; height: 12.8px; color: var(--bs-muted); flex-shrink: 0; }
.header-search-input {
  border: none; background: transparent; outline: none;
  font-family: var(--font-primary); font-size: var(--text-body); line-height: var(--line-body); color: var(--bs-body-text);
  width: 128px; min-width: 0; padding: 0;
}
.header-search-input::placeholder { color: var(--bs-mid-grey); }
.header-search-input::-webkit-search-cancel-button { display: none; }
.header-search-open-new {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 16px; height: 16px; padding: 0; border: none; background: transparent;
  color: var(--bs-muted); cursor: pointer;
}
.header-search-open-new svg { width: 12.8px; height: 12.8px; }
.header-search-open-new:hover { color: var(--bs-gold); }
@media (max-width: 900px) { .header-search { display: none; } }

.btn-header-contact {
  background: var(--bs-dark-blue); color: var(--bs-white);
  border: none; border-radius: var(--radius-pill);
  padding: 0.59rem 14.4px; font-family: var(--font-primary); font-size: var(--text-body); line-height: var(--line-body); font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: background var(--transition-fast);
}
.btn-header-contact:hover { background: #003d58; }

.btn-header-pay {
  background: var(--bs-gold); color: var(--bs-white);
  border: none; border-radius: var(--radius-pill);
  padding: 0.59rem 14.4px; font-family: var(--font-primary); font-size: var(--text-body); line-height: var(--line-body); font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: background var(--transition-fast);
}
.btn-header-pay:hover { background: #a67a32; }

/* Hamburger */
.header-menu-btn {
  display: none; flex-direction: column; justify-content: space-between;
  width: 22.4px; height: 16px; background: none; border: none; cursor: pointer; padding: 0;
}
.header-menu-btn span {
  display: block; height: 1.6px; background: #fff;
  border-radius: 2px; transition: all var(--transition-normal);
}

/* ---- MOBILE NAV ---- */
.mobile-nav-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,22,40,0.7);
  z-index: 1500; opacity: 0; transition: opacity var(--transition-normal);
}
.mobile-nav-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(256px, 90vw);
  background: var(--bs-white); z-index: 1600; overflow-y: auto;
  transform: translateX(100%); transition: transform var(--transition-normal);
  display: flex; flex-direction: column;
}
.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.48rem 16px 12.8px; border-bottom: 1px solid var(--bs-light-grey);
}
.mobile-nav-header img { height: 25.6px; width: auto; }
.mobile-nav-close {
  background: none; border: none; font-size: 1.6rem; cursor: pointer;
  color: var(--bs-dark-blue); line-height: 1; padding: 0.3rem 6.4px;
}
.mobile-nav-links {
  flex: 1; display: flex; flex-direction: column; padding: 0.89rem 0;
}
.mobile-nav-links a {
  display: block; padding: 0.89rem 19.2px; font-size: var(--text-body); line-height: var(--line-body); font-weight: 600;
  color: var(--bs-dark-blue); border-bottom: 1px solid var(--bs-off-white);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.mobile-nav-links a:hover { background: var(--bs-off-white); color: var(--bs-gold); }
.mobile-nav-footer {
  padding: 1.19rem 16px; border-top: 1px solid var(--bs-light-grey);
  display: flex; gap: 0.74rem;
}
.mobile-nav-footer .btn-header-contact,
.mobile-nav-footer .btn-header-pay { flex: 1; text-align: center; }

body.menu-open .mobile-nav-overlay { display: block; opacity: 1; }
body.menu-open .mobile-nav-panel   { transform: translateX(0); }

/* ---- HERO ---- */
.hero {
  background: var(--bs-dark-blue);
  position: relative; overflow: hidden;
  display: flex; align-items: center; min-height: 304px;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1160px; width: 100%; margin: 0 auto;
  padding: 48px var(--space-lg);
}
.hero-content h2 {
  font-family: var(--font-secondary); font-size: 3.5rem; color: var(--bs-white);
  line-height: 1.05; margin-bottom: 1.19rem;
}
.hero-content h2 em { color: var(--bs-gold); font-style: italic; }
.hero-content p {
  font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 448px;
  margin-bottom: 1.48rem; line-height: 1.7;
}
.hero-tagline {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bs-turquoise); opacity: 0.9;
}
.hex-deco {
  position: absolute; right: -60px; top: -40px;
  display: grid; grid-template-columns: repeat(4, 72px);
  gap: 0.44rem; opacity: 0.12;
}
.hex-cell {
  width: 57.6px; height: 64px;
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  background: var(--bs-white);
}
.hex-cell.turq  { background: var(--bs-turquoise); opacity: 0.8; }
.hex-cell.pink  { background: var(--bs-pink); opacity: 0.8; }

/* ---- MANIFESTO ---- */
.manifesto-block {
  max-width: 656px;
  padding: 2.67rem 32px;
  border-left: 4px solid var(--bs-gold);
  background: rgba(255,255,255,0.05);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.manifesto-block blockquote {
  font-size: 1.08rem; line-height: 1.8; color: rgba(255,255,255,0.85);
  font-weight: 300; font-style: italic; margin-bottom: 1.48rem;
}
.tagline {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bs-gold);
}

/* ---- TYPE SCALE HELPERS ---- */
.font-montserrat  { font-family: var(--font-primary); }
.font-playfair    { font-family: var(--font-secondary); }
.fw-300 { font-weight: 300; font-size: 1.5rem; }
.fw-400 { font-weight: 400; font-size: 1.5rem; }
.fw-700 { font-weight: 700; font-size: 1.5rem; }
.fi     { font-style: italic; }
.gold-text { color: var(--bs-gold); }

.ts-display { font-family: var(--font-secondary); font-size: 2.6rem; font-style: italic; color: var(--bs-dark-blue); font-weight: 700; margin-bottom: 1.04rem; line-height: 1.15; }
.ts-h1      { font-size: 2.5rem; font-weight: 700; color: var(--bs-dark-blue); margin-bottom: 0.74rem; }
.ts-h2      { font-size: 2rem;   font-weight: 700; color: var(--bs-dark-blue); margin-bottom: 0.74rem; }
.ts-h3      { font-size: 1.5rem; font-weight: 700; color: var(--bs-dark-blue); margin-bottom: 0.74rem; }
.ts-h4      { font-size: 1.15rem;font-weight: 700; color: var(--bs-dark-blue); margin-bottom: 0.59rem; }
.ts-body    { font-size: 1rem;   color: var(--bs-body-text); line-height: 1.7; margin-bottom: 0.59rem; }
.ts-small   { font-size: 0.85rem; color: var(--bs-muted); font-weight: 300; margin-bottom: 0.59rem; }
.ts-label   { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--bs-muted); }

.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.37rem; margin-bottom: 3.56rem; }
.type-card { padding: 2.07rem 25.6px; background: var(--bs-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.type-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--bs-gold); display: block; margin-bottom: 1.48rem; }
.type-scale { padding: 2.37rem; background: var(--bs-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

/* ---- HEXAGON SHOWCASE ---- */
.hex-showcase { display: flex; flex-wrap: wrap; gap: 2.37rem; align-items: flex-start; }
.hex-item { display: flex; flex-direction: column; align-items: center; gap: 0.89rem; }
.hex-item p { font-size: 0.78rem; color: var(--bs-muted); font-weight: 600; text-align: center; }
.hexagon {
  width: 96px; height: 108px;
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; text-align: center; color: var(--bs-white); line-height: 1.3;
}
.hex-blue  { background: var(--bs-dark-blue); }
.hex-gold  { background: var(--bs-gold); }
.hex-turq  { background: var(--bs-turquoise); }
.hex-pink  { background: var(--bs-pink); }
.hex-pattern {
  width: 96px; display: grid; grid-template-columns: repeat(3,36px); gap: 0.22rem;
}
.hex-pattern .h {
  width: 28.8px; height: 32px;
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
.h1c { background: var(--bs-dark-blue); }
.h2c { background: var(--bs-gold); }
.h3c { background: var(--bs-turquoise); }

/* ---- COLOUR GRID ---- */
.colour-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 1.78rem; }
.colour-card { background: var(--bs-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.colour-swatch { height: 104px; }
/* Tint strip — sits between swatch and info */
.tints {
  display: flex; height: 38.4px;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.tints span { flex: 1; }
.tint-swatch {
  flex: 1; display: flex !important;
  flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 0.37rem; cursor: default;
  position: relative;
}
.tint-pct {
  font-size: 0.5rem; font-weight: 800; line-height: 1;
  color: rgba(0,0,0,0.5);
  white-space: nowrap;
  text-shadow: 0 0 4px rgba(255,255,255,0.8);
}
.tint-pct-light { color: rgba(255,255,255,0.8); text-shadow: none; }
.colour-info { padding: 1.19rem 16px; }
.colour-name  { font-weight: 700; font-size: 0.88rem; color: var(--bs-dark-blue); margin-bottom: 0.59rem; }
.colour-values { font-size: 0.78rem; color: var(--bs-muted); line-height: 1.8; }

/* ---- TONE OF VOICE ---- */
.tov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.78rem; }
.tov-card { padding: 2.07rem 25.6px; border-radius: var(--radius-lg); }
.tov-good  { background: #f0fdf4; border-left: 4px solid #22c55e; }
.tov-avoid { background: #fff7f0; border-left: 4px solid var(--bs-gold); }
.tov-dark  { background: var(--bs-dark-blue); color: var(--bs-white); }
.tov-turq  { background: var(--bs-turquoise); color: var(--bs-dark-blue); }
.tov-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.89rem; }
.tov-card p  { font-size: 0.9rem; line-height: 1.7; margin-bottom: 0.89rem; }
.tov-card ul { padding-left: 1.33rem; }
.tov-card li { font-size: 0.85rem; line-height: 1.8; }

/* ---- TONE OF VOICE — BEFORE/AFTER COMPARISONS ---- */
.tov-compare { display: flex; flex-direction: column; gap: 1.78rem; }
.tov-before-after { background: var(--bs-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.tov-example-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--bs-muted); background: var(--bs-off-white); padding: 0.74rem 16px; border-bottom: 1px solid #e5e9ed; }
.tov-ba-grid { display: grid; grid-template-columns: 1fr 1fr; }
.tov-ba-panel { padding: 1.48rem 19.2px; }
.tov-ba-bad  { border-left: 4px solid #ef4444; background: #fff8f8; }
.tov-ba-good { border-left: 4px solid #22c55e; background: #f0fdf4; }
.tov-ba-tag  { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.74rem; display: flex; align-items: center; gap: 0.3rem; }
.tov-ba-bad  .tov-ba-tag { color: #ef4444; }
.tov-ba-good .tov-ba-tag { color: #16a34a; }
.tov-ba-panel p { font-size: 0.88rem; line-height: 1.75; color: var(--bs-body-text); font-style: italic; margin: 0; }

/* ---- ToV Theme 2: Dark blue inverted ---- */
.tov-theme-dark { background: var(--bs-dark-blue); }
.tov-label-dark { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); border-bottom-color: rgba(255,255,255,0.1); }
.tov-ba-dark-bad  { background: rgba(239,68,68,0.15); border-left: 4px solid #ef4444; }
.tov-ba-dark-good { background: rgba(34,197,94,0.15); border-left: 4px solid #22c55e; }
.tov-ba-dark-bad p, .tov-ba-dark-good p { color: rgba(255,255,255,0.85); }
.tov-tag-bad-dark  { color: #f87171; }
.tov-tag-good-dark { color: #4ade80; }

/* ---- ToV Theme 3: Turquoise stacked layout ---- */
.tov-theme-turq { background: linear-gradient(135deg, #edfbfc 0%, #fff 100%); border-top: 4px solid var(--bs-turquoise); }
.tov-label-turq { background: rgba(37,201,208,0.1); color: var(--bs-dark-blue); border-bottom-color: rgba(37,201,208,0.3); }
.tov-ba-stacked { padding: 1.48rem 19.2px; display: flex; flex-direction: column; gap: 0; }
.tov-ba-stacked-bad  { background: #fff8f8; border: 1px solid #fecaca; border-radius: 6px 6px 0 0; padding: 1.19rem 14.4px; }
.tov-ba-stacked-good { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 0 0 6px 6px; padding: 1.19rem 14.4px; }
.tov-ba-arrow { text-align: center; padding: 0.74rem; }
.tov-tag-bad-turq  { color: #ef4444; }
.tov-tag-good-turq { color: #16a34a; }
.tov-ba-stacked-bad p, .tov-ba-stacked-good p { font-size: 0.88rem; line-height: 1.75; font-style: italic; margin: 0; color: var(--bs-body-text); }

/* ---- ToV Theme 4: Gold quote callout ---- */
.tov-theme-gold { background: linear-gradient(135deg, #fffbf0 0%, #fff 100%); border-top: 4px solid var(--bs-gold); }
.tov-label-gold { background: rgba(190,140,60,0.1); color: var(--bs-dark-blue); border-bottom-color: rgba(190,140,60,0.3); }
.tov-ba-gold-bad  { background: #fafafa; border: 1px solid #e5e7eb; position: relative; }
.tov-ba-gold-good { background: #fffdf5; border: 1px solid #e5c97a; position: relative; }
.tov-ba-quote-mark { font-family: Georgia, serif; font-size: 4rem; line-height: 0.8; color: #e5e7eb; margin-bottom: 0.59rem; }
.tov-quote-gold { color: rgba(190,140,60,0.35); }
.tov-tag-bad-gold  { color: #ef4444; }
.tov-tag-good-gold { color: var(--bs-gold); }
.tov-ba-gold-bad p, .tov-ba-gold-good p { font-size: 0.88rem; line-height: 1.75; font-style: italic; margin: 0; color: var(--bs-body-text); }

/* ---- ToV Theme 5: Pink urgency/contrast ---- */
.tov-theme-pink { background: linear-gradient(135deg, #fdf2f5 0%, #fff 100%); border-top: 4px solid var(--bs-pink); }
.tov-label-pink { background: rgba(213,63,119,0.1); color: var(--bs-dark-blue); border-bottom-color: rgba(213,63,119,0.3); }
.tov-ba-pink-bad  { background: #fafafa; border-left: 4px solid #9ca3af; position: relative; padding-left: 48px !important; }
.tov-ba-pink-good { background: rgba(213,63,119,0.06); border-left: 4px solid var(--bs-pink); position: relative; padding-left: 48px !important; }
.tov-ba-side-label { position: absolute; left: 0; top: 0; bottom: 0; width: 35.2px; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); }
.tov-side-bad { background: #e5e7eb; color: #6b7280; }
.tov-side-good { background: rgba(213,63,119,0.2); color: var(--bs-pink); }
.tov-ba-pink-bad p, .tov-ba-pink-good p { font-size: 0.88rem; line-height: 1.75; font-style: italic; margin: 0; color: var(--bs-body-text); }

/* ---- FOOTER ---- */
.site-footer { background: var(--bs-dark-blue); color: rgba(255,255,255,0.75); padding: 0; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: var(--space-xl) var(--space-lg) var(--space-md); }
.footer-grid  { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.96rem; margin-bottom: 2.96rem; }
.footer-brand h3 { font-size: var(--text-body); font-weight: 700; letter-spacing: 0.12em; color: var(--bs-white); margin-bottom: 1.04rem; }
.footer-brand p  { font-size: var(--text-body); line-height: 1.7; margin-bottom: 0.59rem; }
.footer-brand a  { color: var(--bs-gold); }
.footer-col h4   { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--bs-white); margin-bottom: 1.04rem; }
.footer-col a    { display: block; font-size: var(--text-body); color: rgba(255,255,255,0.65); margin-bottom: 0.59rem; transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--bs-gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.48rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.89rem;
  font-size: var(--text-xs); color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: var(--bs-gold); }

/* ---- CTRL HEADINGS ---- */
.ctrl-heading {
  font-size: 1rem; font-weight: 700; color: var(--bs-dark-blue);
  margin: 2.37rem 0 11.2px; padding-left: 1.04rem;
  border-left: 3px solid var(--bs-gold);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .header-nav  { display: none; }
  .header-menu-btn { display: flex; }
  .section { padding: var(--space-lg) var(--space-sm); }
  .type-grid { grid-template-columns: 1fr; }
  .tov-grid  { grid-template-columns: 1fr; }
  .tov-ba-grid { grid-template-columns: 1fr; }
  .tov-ba-bad  { border-left: none; border-top: 4px solid #ef4444; }
  .tov-ba-good { border-left: none; border-top: 4px solid #22c55e; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hex-deco  { opacity: 0.06; }
}
@media (max-width: 600px) {
  .hero-content h2 { font-size: 2.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .colour-grid { grid-template-columns: 1fr; }
}

/* ---- TABLET BREAKPOINT (between 640px–900px) ---- */
@media (max-width: 640px) {
  .section { padding: var(--space-md) var(--space-sm); }
  .manifesto-block { padding: 1.78rem 16px; }
}

/* ---- PRINT ---- */
@media print {
  .site-header, .hero, .mobile-nav-overlay, .mobile-nav-panel,
  .site-footer .footer-col { display: none !important; }
  .site-footer { padding-top: 8pt; }
  .hex-deco { display: none !important; }
  body { background: white; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mobile-nav-panel { transition: none; }
  .mobile-nav-overlay { transition: none; }
  .header-nav > a { transition: none; }
  .nav-dd-trigger { transition: none; }
}

/* ===========================================================================
   F1c -- Visible focus ring for ALL custom interactive elements (WCAG 2.4.7)
   Uses :focus-visible so mouse users are not affected, only keyboard users.
   =========================================================================== */

/* Filter tabs, audit tabs, quick action buttons */
.dash-tab:focus-visible,
.filter-tab:focus-visible,
.audit-tab:focus-visible,
.quick-action-btn:focus-visible {
    outline: 2px solid var(--bs-gold);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Table icon buttons */
.tbl-icon-btn:focus-visible {
    outline: 2px solid var(--bs-gold);
    outline-offset: 2px;
}

/* Pagination buttons */
.pg-btn:focus-visible {
    outline: 2px solid var(--bs-gold);
    outline-offset: 2px;
}

/* Filter select and sort select */
.filter-select:focus-visible,
.ac-sort-select:focus-visible {
    outline: 2px solid var(--bs-dark-blue);
    outline-offset: 0;
    box-shadow: 0 0 0 3px rgba(0,45,65,0.15);
}

/* Modal close button */
.modal-close:focus-visible {
    outline: 2px solid var(--bs-gold);
    outline-offset: 2px;
    border-radius: 50%;
}

/* Nav dropdown triggers */
.nav-dd-trigger:focus-visible,
.dropdown-toggle:focus-visible {
    outline: 2px solid var(--bs-gold);
    outline-offset: 2px;
    border-radius: 3px;
}

/* aria-invalid visual indicator */
[aria-invalid="true"] {
    border-color: var(--bs-pink) !important;
    box-shadow: 0 0 0 2px rgba(213,63,119,0.15) !important;
}

/* aria-required: subtle focus enhancement */
[aria-required="true"]:focus {
    border-color: var(--bs-dark-blue);
    box-shadow: 0 0 0 3px rgba(0,45,65,0.12);
}

/* ===========================================================================
   GLOBAL SHARED UI COMPONENTS
   Pagination, data table, tabs, filter-bar — used across multiple pages.
   Defined here so every page has access without repeating in page CSS files.
   =========================================================================== */

/* ── Page shell ─────────────────────────────────────────────── */
.page-content  { flex: 1; padding: 2.07rem 0 44.8px; overflow-x: clip; }
.page-container { max-width: 1400px; margin: 0 auto; padding: 0 19.2px; }

/* ── Page header bar ───────────────────────────────────────── */
.page-header-bar { background: var(--bs-white); border-bottom: 1px solid var(--bs-light-grey); }
.page-header-inner {
    max-width: 1400px; margin: 0 auto; padding: 1.04rem 19.2px;
    display: flex; align-items: center; justify-content: space-between; gap: 1.19rem; flex-wrap: wrap;
}
.page-header-left  { display: flex; flex-direction: column; gap: 0.37rem; }
.page-header-right { display: flex; align-items: center; gap: 0.74rem; }
.page-breadcrumb-inline {
    display: flex; align-items: center; gap: 0.44rem; font-size: var(--text-xs); line-height: var(--line-xs);
    color: var(--bs-muted-text); list-style: none; padding: 0; margin: 0;
}
.page-breadcrumb-inline li + li::before { content: '›'; margin-right: 0.44rem; color: var(--bs-mid-grey); }
.page-breadcrumb-inline a { color: var(--bs-dark-blue); text-decoration: none; font-weight: 500; }
.page-breadcrumb-inline a:hover { color: var(--bs-gold); }
.page-breadcrumb-inline .bc-current { color: var(--bs-muted-text); }
.page-title-row { display: flex; align-items: center; gap: 0.74rem; }
.page-title { font-size: var(--text-section); line-height: var(--line-section); font-weight: 700; color: var(--bs-dark-blue); margin: 0; font-family: var(--font-primary); }
.page-title-icon {
    width: 28.8px; height: 25.6px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--bs-dark-blue);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.page-title-icon svg { width: 12.8px; height: 12.8px; }

/* ── Stat cards ─────────────────────────────────────────────── */
.stat-card {
    background: var(--bs-white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); padding: 1.33rem 16px;
    display: flex; flex-direction: column; gap: 0.3rem;
}
.stat-card.sc-blue  { border-top: 3px solid var(--bs-dark-blue); }
.stat-card.sc-gold  { border-top: 3px solid var(--bs-gold); }
.stat-card.sc-turq  { border-top: 3px solid var(--bs-turquoise); }
.stat-card.sc-pink  { border-top: 3px solid var(--bs-pink); }
.stat-card.sc-green { border-top: 3px solid var(--color-success); }
.stat-label  { font-size: var(--text-xs); line-height: var(--line-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bs-muted-text); }
.stat-value  { font-size: 1.8rem; font-weight: 700; color: var(--bs-dark-blue); font-family: var(--font-primary); line-height: 1.1; }
.stat-delta  { font-size: var(--text-xs); line-height: var(--line-xs); color: var(--bs-muted-text); display: flex; align-items: center; gap: 0.22rem; }
.stat-delta.up   { color: var(--color-success); }
.stat-delta.down { color: var(--bs-pink-text); }
.stat-delta.flat { color: var(--bs-muted-text); }

/* ── Tab navigation (shared) ────────────────────────────────── */
.dash-tabs {
    display: flex;
    border-bottom: 2px solid var(--bs-light-grey);
    overflow-x: auto;
}
.dash-tab {
    padding: 0.74rem 14.4px;
    font-size: var(--text-body); line-height: var(--line-body); font-weight: 600;
    color: var(--bs-muted-text);
    background: none; border: none; cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -1.6px;
    transition: color var(--transition-fast), border-color var(--transition-fast);
    font-family: var(--font-primary); white-space: nowrap;
    flex-shrink: 0; text-decoration: none;
}
.dash-tab:hover { color: var(--bs-dark-blue); }
.dash-tab.is-active { color: var(--bs-dark-blue); border-bottom-color: var(--bs-gold); }
.dash-tab-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bs-light-grey); color: var(--bs-muted-text);
    font-size: var(--text-xs); font-weight: 800; border-radius: 799px;
    padding: 0.07rem 4.8px; margin-left: 0.44rem;
}
.dash-tab.is-active .dash-tab-badge { background: rgba(190,140,60,0.15); color: var(--bs-gold); }

/* ── Filter bar (shared) ────────────────────────────────────── */
.filter-bar {
    display: flex; align-items: center; gap: 0.74rem; flex-wrap: wrap;
    padding: 0.89rem 16px; background: var(--bs-off-white);
    border-bottom: 1px solid var(--bs-light-grey);
}
.filter-search {
    display: flex; align-items: center; gap: 0.59rem;
    background: var(--bs-white); border: 1.5px solid var(--bs-light-grey);
    border-radius: var(--radius-md); padding: 0 9.6px; flex: 1; min-width: 144px;
}
.filter-search svg { width: 11.2px; height: 11.2px; stroke: var(--bs-mid-grey); flex-shrink: 0; }
.filter-search input {
    border: none; background: none; padding: 0.52rem 0;
    font-family: var(--font-primary); font-size: var(--text-body); line-height: var(--line-body);
    color: var(--bs-body-text); width: 100%; outline: none;
}
.filter-select {
    padding: 0.52rem 22.4px 5.6px 8px; border: 1.5px solid var(--bs-light-grey);
    border-radius: var(--radius-md); font-family: var(--font-primary); font-size: var(--text-body); line-height: var(--line-body);
    color: var(--bs-dark-blue); background: var(--bs-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpolyline points='1,1 6,7 11,1' fill='none' stroke='%23002D41' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
    appearance: none; -webkit-appearance: none; cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--bs-dark-blue); box-shadow: 0 0 0 3px rgba(0,45,65,0.1); }
.filter-count { font-size: var(--text-xs); line-height: var(--line-xs); color: var(--bs-muted-text); margin-left: auto; white-space: nowrap; }

/* ── Data table (shared) ────────────────────────────────────── */
.dash-data-table { width: 100%; border-collapse: collapse; font-size: var(--text-body); line-height: var(--line-body); }
.dash-data-table thead th {
    background: var(--bs-off-white); color: var(--bs-dark-blue); font-weight: 700;
    font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.08em;
    padding: 0.74rem 12.8px; text-align: left; border-bottom: 2px solid var(--bs-light-grey); white-space: nowrap;
}
.dash-data-table thead th.sortable { cursor: pointer; user-select: none; }
.dash-data-table thead th.sortable:hover { color: var(--bs-gold); }
.dash-data-table tbody tr { border-bottom: 1px solid var(--bs-off-white); transition: background 0.1s; }
.dash-data-table tbody tr:last-child { border-bottom: none; }
.dash-data-table tbody tr:hover { background: rgba(0,45,65,0.025); }
.dash-data-table tbody td { padding: 0.81rem 12.8px; color: var(--bs-body-text); vertical-align: middle; }
.dash-data-table .td-ref { font-weight: 700; color: var(--bs-dark-blue); }
.dash-data-table .td-amount { font-weight: 700; font-family: var(--font-secondary); }
.td-actions { display: flex; gap: 0.3rem; }

/* ── Table icon button (shared) ─────────────────────────────── */
.tbl-icon-btn {
    width: 24px; height: 24px; padding: 0;
    border-radius: var(--radius-sm); border: 1.5px solid var(--bs-light-grey);
    background: var(--bs-white); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--bs-dark-blue); transition: all var(--transition-fast);
    flex-shrink: 0; text-decoration: none;
}
.tbl-icon-btn svg { width: 11.2px; height: 11.2px; pointer-events: none; }
.tbl-icon-btn:hover { border-color: var(--bs-dark-blue); background: var(--bs-dark-blue); color: #fff; }
.tbl-icon-btn.gold:hover { border-color: var(--bs-gold); background: var(--bs-gold); color: #fff; }
.tbl-icon-btn.danger:hover { border-color: var(--bs-pink); background: var(--bs-pink); color: #fff; }

/* ── Pagination (shared) ────────────────────────────────────── */
.pagination {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.89rem 16px; border-top: 1px solid var(--bs-light-grey); font-size: var(--text-body); line-height: var(--line-body);
}
.pagination-info { color: var(--bs-muted-text); }
.pagination-controls { display: flex; align-items: center; gap: 0.3rem; }
.pg-btn {
    min-width: 25.6px; height: 25.6px; padding: 0 6.4px;
    border: 1.5px solid var(--bs-light-grey); border-radius: var(--radius-sm);
    background: var(--bs-white); font-family: var(--font-primary);
    font-size: var(--text-body); color: var(--bs-dark-blue); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast); text-decoration: none;
}
.pg-btn:hover:not(:disabled) { border-color: var(--bs-gold); color: var(--bs-gold); }
.pg-btn.is-active { background: var(--bs-dark-blue); border-color: var(--bs-dark-blue); color: var(--bs-white); }
.pg-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pg-btn-ellipsis { padding: 0 3.2px; color: var(--bs-muted-text); font-size: var(--text-body); line-height: 32px; }

/* ── Panel (shared) ─────────────────────────────────────────── */
.dash-panel {
    background: var(--bs-white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); overflow: hidden; margin-bottom: 1.48rem;
}
.dash-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.04rem 16px; border-bottom: 1px solid var(--bs-light-grey);
}
.dash-panel-header h3 { font-size: var(--text-body); line-height: var(--line-body); font-weight: 700; color: var(--bs-dark-blue); margin: 0; }
.dash-panel-body { padding: 1.48rem; }

/* ── Empty state (shared) ───────────────────────────────────── */
.empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 3.56rem 19.2px; text-align: center;
}
.empty-state-icon {
    width: 44.8px; height: 44.8px; border-radius: 50%;
    background: var(--bs-light-grey);
    display: flex; align-items: center; justify-content: center; margin-bottom: 1.19rem;
}
.empty-state-icon svg { width: 19.2px; height: 19.2px; stroke: var(--bs-mid-grey); }
.empty-state h3, .empty-state h4 { font-size: var(--text-body); line-height: var(--line-body); font-weight: 700; color: var(--bs-dark-blue); margin: 0 0 6.4px; }
.empty-state p { font-size: var(--text-body); line-height: var(--line-body); color: var(--bs-muted-text); margin: 0 0 16px; max-width: 272px; }

/* ── Alert banner (shared) ──────────────────────────────────── */
.de-alert {
    display: flex; align-items: flex-start; gap: 0.89rem;
    padding: 1.04rem 14.4px; border-radius: var(--radius-md);
    margin-bottom: 1.48rem; font-size: var(--text-body); line-height: var(--line-body);
}
.de-alert svg { width: 14.4px; height: 14.4px; flex-shrink: 0; margin-top: 0.07rem; }
.de-alert.info    { background: rgba(37,201,208,0.1);  border-left: 4px solid var(--bs-turquoise); color: #0c6e74; }
.de-alert.warning { background: rgba(245,158,11,0.1);  border-left: 4px solid #f59e0b; color: #8a5700; }
.de-alert.success { background: rgba(34,197,94,0.1);   border-left: 4px solid var(--color-success); color: #14532d; }
.de-alert.danger  { background: rgba(213,63,119,0.08); border-left: 4px solid var(--bs-pink); color: var(--bs-pink); }
