/* ============================================================
   Canadian Insurance Registry — Design System
   WP-06 Part 15: UI Consistency
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --clr-primary:    #0f4c81;
  --clr-primary-d:  #0a3460;
  --clr-primary-l:  #1a6ab0;
  --clr-accent:     #c8102e;
  --clr-bg:         #f8f9fa;
  --clr-surface:    #ffffff;
  --clr-border:     #dee2e6;
  --clr-text:       #212529;
  --clr-text-muted: #6c757d;
  --clr-success:    #198754;
  --clr-warning:    #ffc107;
  --clr-danger:     #dc3545;
  --clr-info:       #0dcaf0;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.12);

  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Consolas', 'Courier New', monospace;

  --max-w: 1200px;
  --header-h: 64px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--clr-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ---- Skip link (Accessibility WP-06 Part 14) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--clr-primary);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { top: 0; }

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; }
.page-main { flex: 1; padding: 2rem 0; }

/* ---- Clerk sign-in ------------------------------------------------------ */
.auth-page {
  flex: 1;
  padding: 3.5rem 1rem 5rem;
  background: linear-gradient(150deg, #f8f9fa 0%, #eef4f9 100%);
}
.auth-shell {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 3.5rem;
  align-items: center;
}
.auth-intro { padding: 1rem 0; }
.auth-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}
.auth-kicker {
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .76rem;
  font-weight: 700;
  margin-bottom: .6rem;
}
.auth-intro h1 {
  color: var(--clr-primary-d);
  font-family: 'Montserrat', var(--font-sans);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.auth-lede { color: var(--clr-text); font-size: 1.1rem; max-width: 30rem; }
.auth-trust { color: var(--clr-text-muted); font-size: .9rem; margin-top: 1.25rem; max-width: 30rem; }
.auth-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  min-height: 390px;
}
.auth-status {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  border-radius: var(--radius-sm);
  padding: .8rem;
  margin-bottom: 1rem;
  font-size: .9rem;
}
.auth-status span:last-child { display: block; }
.auth-status-loading { background: #eef4f9; color: var(--clr-primary-d); }
.auth-status-error { background: #fff2f0; color: #8b1e16; border: 1px solid #f0b9b2; flex-direction: column; }
.auth-status-error strong { font-weight: 700; }
.auth-spinner {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  border: 2px solid rgba(15,76,129,.2);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: auth-spin .8s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-help { border-top: 1px solid var(--clr-border); margin-top: 1.5rem; padding-top: 1rem; font-size: .9rem; text-align: center; }
@media (max-width: 760px) {
  .auth-shell { grid-template-columns: 1fr; gap: 1.5rem; max-width: 500px; }
  .auth-intro { text-align: center; }
  .auth-mark { margin-left: auto; margin-right: auto; }
  .auth-page { padding-top: 2rem; }
}

/* ---- Header ---- */
.site-header {
  background: var(--clr-primary);
  color: #fff;
  height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}
.site-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.site-logo:hover { text-decoration: none; color: #fff; }
.site-logo span { color: var(--clr-warning); }

.site-nav { display: flex; gap: 0; }
.site-nav a {
  color: rgba(255,255,255,.85);
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s;
}
.site-nav a:hover, .site-nav a.active {
  background: rgba(255,255,255,.15);
  color: #fff;
  text-decoration: none;
}

.header-search { display: flex; gap: .5rem; flex: 0 1 360px; }
.header-search input {
  flex: 1;
  padding: .4rem .75rem;
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .9rem;
  outline: none;
  transition: border-color .15s, background .15s;
}
.header-search input::placeholder { color: rgba(255,255,255,.6); }
.header-search input:focus {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.18);
}
.header-search button {
  padding: .4rem .9rem;
  background: var(--clr-warning);
  color: var(--clr-text);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: .85rem;
  transition: background .15s;
}
.header-search button:hover { background: #e0a800; }

/* ---- Breadcrumbs ---- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  list-style: none;
  font-size: .85rem;
  padding: .75rem 0;
  color: var(--clr-text-muted);
}
.breadcrumb li + li::before { content: "›"; margin-right: .25rem; }
.breadcrumb a { color: var(--clr-primary); }
.breadcrumb li:last-child { color: var(--clr-text); font-weight: 500; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-d) 60%, #061e38 100%);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.hero h1 { font-size: 2.25rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .75rem; }
.hero p { font-size: 1.1rem; opacity: .85; max-width: 580px; margin: 0 auto 2rem; }

.hero-search {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.hero-search input {
  flex: 1;
  padding: 1rem 1.25rem;
  border: none;
  font-size: 1rem;
  outline: none;
}
.hero-search button {
  padding: 1rem 1.75rem;
  background: var(--clr-accent);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s;
}
.hero-search button:hover { background: #a50d24; }

/* ---- Stats bar ---- */
.stats-bar {
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  padding: 1rem 0;
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  text-align: center;
}
.stat-item strong { display: block; font-size: 1.75rem; font-weight: 800; color: var(--clr-primary); }
.stat-item span { font-size: .8rem; color: var(--clr-text-muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---- Cards ---- */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.card-meta { font-size: .8rem; color: var(--clr-text-muted); margin-bottom: .5rem; }
.card-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }

.entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* ---- Entity list (table alternative) ---- */
.entity-list { list-style: none; }
.entity-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--clr-border);
}
.entity-list li:last-child { border-bottom: none; }
.entity-name { font-weight: 600; }
.entity-code { font-size: .75rem; font-family: var(--font-mono); color: var(--clr-text-muted); }

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: .7rem;
  font-weight: 700;
  padding: .2em .5em;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.badge-carrier  { background: #d9e8f5; color: #0a3460; }
.badge-mga      { background: #d4edda; color: #155724; }
.badge-brokerage{ background: #fff3cd; color: #664d03; }
.badge-advisor  { background: #e2d9f3; color: #432874; }
.badge-active   { background: #d4edda; color: #155724; }
.badge-proposed { background: #fff3cd; color: #664d03; }
.badge-inactive { background: #f8d7da; color: #721c24; }
.badge-verified { background: #d1e7dd; color: #0a3622; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
  text-decoration: none;
}
.btn-primary  { background: var(--clr-primary); color: #fff; }
.btn-primary:hover { background: var(--clr-primary-d); color: #fff; text-decoration: none; }
.btn-outline  { background: transparent; border-color: var(--clr-primary); color: var(--clr-primary); }
.btn-outline:hover { background: var(--clr-primary); color: #fff; text-decoration: none; }
.btn-sm { padding: .3rem .65rem; font-size: .8rem; }
.btn-danger { background: var(--clr-danger); color: #fff; }

/* ---- Sections ---- */
.section { padding: 2.5rem 0; }
.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--clr-border);
  margin-left: .5rem;
}

/* ---- Domain cards (Homepage) ---- */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.domain-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-top: 4px solid var(--clr-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow .2s;
  text-decoration: none;
  display: block;
  color: var(--clr-text);
}
.domain-card:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.domain-card.carriers  { border-top-color: var(--clr-primary); }
.domain-card.mgas      { border-top-color: var(--clr-success); }
.domain-card.brokerages{ border-top-color: #e67e22; }
.domain-card.advisors  { border-top-color: #8e44ad; }
.domain-card .dc-count { font-size: 2.25rem; font-weight: 800; line-height: 1; margin-bottom: .25rem; }
.domain-card .dc-label { font-size: .85rem; color: var(--clr-text-muted); text-transform: uppercase; letter-spacing: .05em; }
.domain-card .dc-desc  { font-size: .9rem; margin-top: .75rem; color: var(--clr-text-muted); }

/* ---- Search / Filters ---- */
.filter-bar {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: flex-end;
}
.filter-bar label { font-size: .8rem; font-weight: 600; display: block; margin-bottom: .25rem; color: var(--clr-text-muted); }
.filter-bar input,
.filter-bar select {
  padding: .45rem .75rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  outline: none;
  transition: border-color .15s;
}
.filter-bar input:focus,
.filter-bar select:focus { border-color: var(--clr-primary); }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  gap: .3rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 .5rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--clr-primary);
  background: var(--clr-surface);
  transition: background .15s;
}
.pagination a:hover { background: var(--clr-bg); text-decoration: none; }
.pagination .active { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.pagination .disabled { color: var(--clr-text-muted); cursor: default; }

/* ---- Tables ---- */
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th {
  background: var(--clr-bg);
  padding: .6rem .875rem;
  text-align: left;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--clr-text-muted);
  border-bottom: 2px solid var(--clr-border);
}
.data-table td {
  padding: .75rem .875rem;
  border-bottom: 1px solid var(--clr-border);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--clr-bg); }
.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--clr-border); }

/* ---- Entity profile ---- */
.profile-header {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.profile-name { font-size: 1.75rem; font-weight: 800; color: var(--clr-primary); margin-bottom: .4rem; }
.profile-code { font-size: .85rem; font-family: var(--font-mono); color: var(--clr-text-muted); }
.profile-meta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }

.profile-section {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.profile-section h3 {
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--clr-text-muted);
  margin-bottom: .75rem;
  font-weight: 700;
}
.kv-list { display: grid; grid-template-columns: auto 1fr; gap: .4rem .75rem; font-size: .9rem; }
.kv-list dt { color: var(--clr-text-muted); font-weight: 500; }
.kv-list dd { font-weight: 600; }

/* ---- Alphabet browse ---- */
.alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: 1.5rem;
}
.alpha-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  color: var(--clr-primary);
  transition: background .15s;
}
.alpha-nav a:hover { background: var(--clr-primary); color: #fff; text-decoration: none; }
.alpha-nav a.active { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.alpha-nav a.empty { color: var(--clr-border); cursor: default; border-color: #eee; }

/* ---- Province grid ---- */
.province-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
}
.province-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: var(--clr-primary);
  transition: box-shadow .15s;
}
.province-card:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.province-card .pc-code { font-size: 1.4rem; font-weight: 800; }
.province-card .pc-name { font-size: .75rem; color: var(--clr-text-muted); margin-top: .2rem; }

/* ---- Search results ---- */
.search-result {
  padding: 1rem;
  border-bottom: 1px solid var(--clr-border);
}
.search-result:last-child { border-bottom: none; }
.search-result:hover { background: var(--clr-bg); }
.search-result-title { font-size: 1.05rem; font-weight: 700; }
.search-result-meta  { font-size: .82rem; color: var(--clr-text-muted); margin-top: .25rem; }

/* ---- Empty states ---- */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--clr-text-muted);
}
.empty-state svg { margin-bottom: .75rem; opacity: .35; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.empty-state p { font-size: .9rem; }

/* ---- Loading skeleton ---- */
.skeleton {
  background: linear-gradient(90deg, #e9ecef 25%, #dee2e6 50%, #e9ecef 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---- Footer ---- */
.site-footer {
  background: var(--clr-primary-d);
  color: rgba(255,255,255,.7);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
  font-size: .875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.footer-col a { display: block; color: rgba(255,255,255,.65); margin-bottom: .3rem; font-size: .85rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
}
.footer-bottom a { color: rgba(255,255,255,.6); }

/* ---- Alerts / notifications ---- */
.alert {
  padding: .875rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
  margin-bottom: 1rem;
  font-size: .9rem;
}
.alert-info    { background: #cff4fc; border-color: var(--clr-info);    color: #055160; }
.alert-success { background: #d1e7dd; border-color: var(--clr-success); color: #0a3622; }
.alert-warning { background: #fff3cd; border-color: var(--clr-warning); color: #664d03; }
.alert-danger  { background: #f8d7da; border-color: var(--clr-danger);  color: #842029; }

/* ---- Admin ---- */
.admin-banner {
  background: #fff3cd;
  border-bottom: 2px solid var(--clr-warning);
  padding: .5rem 0;
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  color: #664d03;
}
.quality-score {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}
.quality-score.good    { color: var(--clr-success); }
.quality-score.warning { color: var(--clr-warning); }
.quality-score.poor    { color: var(--clr-danger);  }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .header-search { flex: 0 1 200px; }
  .hero h1 { font-size: 1.6rem; }
  .entity-grid { grid-template-columns: 1fr; }
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .domain-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; border-radius: var(--radius-sm); }
  .hero-search input, .hero-search button { border-radius: var(--radius-sm); }
}

/* ============================================================
   WP-21 — Consumer + Industry Product Foundation
   ============================================================ */

/* ---- Mobile nav toggle ---- */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: #fff;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.mobile-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile nav overlay ---- */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 90;
}
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 90vw);
  height: 100%;
  background: var(--clr-primary-d);
  z-index: 95;
  transition: right .28s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-nav-drawer.open { right: 0; }
.mobile-nav-overlay.open { display: block; }
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-drawer-header .drawer-logo { color: #fff; font-weight: 700; font-size: 1rem; }
.mobile-drawer-close { background: none; border: none; color: rgba(255,255,255,.7); cursor: pointer; font-size: 1.4rem; line-height: 1; }
.mobile-drawer-section { padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-drawer-section-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.45); padding: .25rem 1.25rem .5rem; }
.mobile-drawer-link {
  display: block;
  color: rgba(255,255,255,.8);
  padding: .6rem 1.25rem;
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.mobile-drawer-link:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.mobile-drawer-link.highlight { color: var(--clr-warning); }

@media (max-width: 768px) {
  .mobile-nav-toggle { display: flex; }
  .site-nav { display: none; }
}

/* ---- Audience ribbon ---- */
.audience-ribbon {
  background: #ecf3fb;
  border-bottom: 1px solid #c5d9ee;
  padding: .45rem 0;
  font-size: .8rem;
  color: var(--clr-text-muted);
}
.audience-ribbon .container { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.audience-ribbon a { color: var(--clr-primary); font-weight: 600; }
.audience-ribbon a:hover { text-decoration: underline; }
.audience-ribbon .sep { color: var(--clr-border); }

/* ---- Homepage hero — two-audience ---- */
.hero-wp21 {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-d) 60%, #061e38 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  text-align: center;
}
.hero-wp21 h1 { font-size: 2.35rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: .6rem; line-height: 1.15; }
.hero-wp21 .hero-sub { font-size: 1.05rem; opacity: .82; max-width: 580px; margin: 0 auto 2rem; line-height: 1.55; }
.hero-cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-cta-row .btn-hero-primary {
  background: var(--clr-accent);
  color: #fff;
  padding: .85rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .12s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.hero-cta-row .btn-hero-primary:hover { background: #a50d24; text-decoration: none; transform: translateY(-1px); }
.hero-cta-row .btn-hero-secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
  padding: .85rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid rgba(255,255,255,.35);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: background .15s;
}
.hero-cta-row .btn-hero-secondary:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.hero-search-row { max-width: 580px; margin: 0 auto; }
.hero-search-row form { display: flex; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
.hero-search-row input { flex: 1; padding: .9rem 1.25rem; border: none; font-size: .97rem; outline: none; }
.hero-search-row button { padding: .9rem 1.5rem; background: var(--clr-warning); color: var(--clr-text); border: none; font-weight: 700; cursor: pointer; font-size: .9rem; transition: background .15s; }
.hero-search-row button:hover { background: #e0a800; }
.hero-search-label { font-size: .78rem; opacity: .6; margin-top: .5rem; }

/* ---- Intent cards ---- */
.intent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.intent-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: var(--clr-text);
  display: block;
  transition: box-shadow .2s, transform .15s, border-color .15s;
  position: relative;
}
.intent-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; border-color: var(--clr-primary-l); }
.intent-card .ic-icon { font-size: 1.75rem; margin-bottom: .6rem; display: block; }
.intent-card .ic-title { font-size: 1rem; font-weight: 700; color: var(--clr-primary); margin-bottom: .35rem; }
.intent-card .ic-desc { font-size: .85rem; color: var(--clr-text-muted); line-height: 1.5; }
.intent-card .ic-arrow { position: absolute; top: 1.1rem; right: 1.1rem; color: var(--clr-border); font-size: .9rem; transition: color .15s; }
.intent-card:hover .ic-arrow { color: var(--clr-primary); }
.intent-card.consumer { border-top: 3px solid var(--clr-accent); }
.intent-card.industry { border-top: 3px solid var(--clr-primary); }

/* ---- Audience section headers ---- */
.audience-section-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.audience-section-header h2 { font-size: 1.35rem; font-weight: 800; color: var(--clr-primary); margin: 0; }
.audience-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .2em .6em;
  border-radius: 30px;
}
.audience-label.consumer { background: #fde9ec; color: var(--clr-accent); }
.audience-label.industry { background: #d9e8f5; color: var(--clr-primary-d); }

/* ---- Learn / Education cards ---- */
.learn-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.learn-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  text-decoration: none;
  color: var(--clr-text);
  transition: box-shadow .2s, border-color .15s;
}
.learn-card:hover { box-shadow: var(--shadow-md); border-color: var(--clr-primary-l); text-decoration: none; }
.learn-card .lc-tag {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--clr-accent);
  margin-bottom: .15rem;
}
.learn-card .lc-title { font-size: 1.05rem; font-weight: 700; color: var(--clr-primary); line-height: 1.3; }
.learn-card .lc-desc { font-size: .875rem; color: var(--clr-text-muted); line-height: 1.5; flex: 1; }
.learn-card .lc-footer { font-size: .8rem; color: var(--clr-primary); font-weight: 600; display: flex; align-items: center; gap: .3rem; margin-top: .25rem; }

/* Learn hub hero */
.learn-hero {
  background: linear-gradient(135deg, #4a1942 0%, #1a0d2e 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
}
.learn-hero h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: .6rem; }
.learn-hero p { font-size: 1rem; opacity: .82; max-width: 560px; line-height: 1.55; }
.learn-breadcrumb { margin-top: 1.25rem; font-size: .82rem; }
.learn-breadcrumb a { color: rgba(255,255,255,.65); }
.learn-breadcrumb a:hover { color: #fff; }
.learn-breadcrumb .sep { opacity: .45; margin: 0 .35rem; }

/* ---- Article / Reading experience ---- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .article-sidebar { display: none; } }

.article-body {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 2rem 2.25rem;
}
.article-body h2 { font-size: 1.4rem; font-weight: 800; color: var(--clr-primary); margin: 2rem 0 .75rem; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--clr-text); margin: 1.5rem 0 .5rem; }
.article-body p { margin-bottom: 1rem; line-height: 1.7; color: var(--clr-text); }
.article-body ul, .article-body ol { margin: .75rem 0 1rem 1.5rem; }
.article-body li { margin-bottom: .35rem; line-height: 1.6; }
.article-body strong { color: var(--clr-text); }
.article-body a { color: var(--clr-primary); }

.article-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--clr-text-muted);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--clr-border);
}
.article-meta .meta-item { display: flex; align-items: center; gap: .3rem; }

/* Callouts */
.callout {
  border-left: 4px solid;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
  font-size: .9rem;
  line-height: 1.6;
}
.callout-info { background: #e8f4fd; border-color: #3498db; color: #1a4f6e; }
.callout-tip { background: #e8f8f0; border-color: var(--clr-success); color: #0a3622; }
.callout-warning { background: #fff8e1; border-color: var(--clr-warning); color: #664d03; }
.callout-definition { background: #f3f0fb; border-color: #8e44ad; color: #3d1670; }
.callout strong, .callout .callout-title { font-weight: 700; display: block; margin-bottom: .3rem; }

/* Article sidebar */
.article-sidebar-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.article-sidebar-card h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--clr-text-muted); margin-bottom: .75rem; font-weight: 700; }
.sidebar-toc { list-style: none; padding: 0; }
.sidebar-toc li { padding: .3rem 0; border-bottom: 1px solid var(--clr-border); }
.sidebar-toc li:last-child { border-bottom: none; }
.sidebar-toc a { font-size: .85rem; color: var(--clr-primary); }
.sidebar-nav-link { display: block; padding: .45rem 0; font-size: .88rem; color: var(--clr-primary); border-bottom: 1px solid var(--clr-border); }
.sidebar-nav-link:last-child { border-bottom: none; }
.sidebar-nav-link.active { font-weight: 700; }

/* ---- Journey / 101 progress ---- */
.journey-progress {
  display: flex;
  gap: 0;
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--clr-border);
}
.journey-step-dot {
  flex: 1;
  padding: .6rem .25rem;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  background: var(--clr-text-muted);
  transition: background .2s;
  cursor: pointer;
  border: none;
  position: relative;
}
.journey-step-dot.active { background: var(--clr-primary); color: #fff; }
.journey-step-dot.done { background: var(--clr-success); color: #fff; }
.journey-section { display: none; }
.journey-section.active { display: block; }
.journey-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--clr-border); }
.journey-counter { font-size: .82rem; color: var(--clr-text-muted); }

/* ---- Comparison table (Term vs Permanent) ---- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 1.5rem 0;
}
.compare-table thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: .85rem;
  font-weight: 700;
}
.compare-table thead .th-feature { background: var(--clr-bg); color: var(--clr-text-muted); width: 30%; }
.compare-table thead .th-term { background: #1a6ab0; color: #fff; }
.compare-table thead .th-permanent { background: #155724; color: #fff; }
.compare-table tbody td { padding: .875rem 1.25rem; vertical-align: top; border-bottom: 1px solid var(--clr-border); font-size: .9rem; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: #fafafa; }
.compare-table .td-feature { font-weight: 600; color: var(--clr-text-muted); font-size: .85rem; }
.compare-check { color: var(--clr-success); font-weight: 700; }
.compare-cross { color: var(--clr-danger); font-weight: 700; }
.compare-neutral { color: var(--clr-text-muted); }

/* ---- Interactive tool ---- */
.tool-container {
  max-width: 720px;
  margin: 0 auto;
}
.tool-header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}
.tool-header h1 { font-size: 1.8rem; font-weight: 800; color: var(--clr-primary); margin-bottom: .5rem; }
.tool-header p { color: var(--clr-text-muted); font-size: .95rem; }
.tool-progress-bar {
  height: 4px;
  background: var(--clr-border);
  border-radius: 4px;
  margin: 0 0 2rem;
  overflow: hidden;
}
.tool-progress-bar-fill { height: 100%; background: var(--clr-primary); border-radius: 4px; transition: width .3s ease; }

.tool-question-panel {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 1rem;
}
.tool-question-panel h2 { font-size: 1.2rem; font-weight: 700; color: var(--clr-text); margin-bottom: 1.25rem; line-height: 1.4; }
.tool-options { display: flex; flex-direction: column; gap: .6rem; }
.tool-option {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .9rem 1.1rem;
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--clr-surface);
  font-size: .95rem;
  font-weight: 500;
  transition: border-color .15s, background .15s;
  text-align: left;
  color: var(--clr-text);
  width: 100%;
}
.tool-option:hover { border-color: var(--clr-primary-l); background: #f0f5fb; }
.tool-option.selected { border-color: var(--clr-primary); background: #e9f1f9; color: var(--clr-primary-d); }
.tool-option .to-icon { font-size: 1.2rem; flex-shrink: 0; }
.tool-option-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.tool-question-count { font-size: .8rem; color: var(--clr-text-muted); }

.tool-result-panel {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}
.tool-result-score {
  font-size: 3rem;
  margin-bottom: .25rem;
}
.tool-result-title { font-size: 1.3rem; font-weight: 800; color: var(--clr-primary); margin-bottom: .6rem; }
.tool-result-body { font-size: .95rem; line-height: 1.6; color: var(--clr-text); max-width: 500px; margin: 0 auto 1.75rem; }
.tool-result-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.tool-disclaimer { font-size: .75rem; color: var(--clr-text-muted); margin-top: 1.25rem; border-top: 1px solid var(--clr-border); padding-top: 1rem; line-height: 1.5; }

/* ---- Glossary ---- */
.glossary-alpha-bar { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1.5rem; }
.glossary-alpha-bar a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm); font-weight: 700; font-size: .85rem;
  color: var(--clr-primary); transition: background .15s;
}
.glossary-alpha-bar a:hover { background: var(--clr-primary); color: #fff; text-decoration: none; }
.glossary-alpha-bar a.has-terms { border-color: var(--clr-primary-l); }
.glossary-section { margin-bottom: 2rem; }
.glossary-letter { font-size: 1.5rem; font-weight: 900; color: var(--clr-primary); margin-bottom: .75rem; padding-bottom: .35rem; border-bottom: 2px solid var(--clr-border); }
.glossary-term-block { padding: .875rem 0; border-bottom: 1px solid var(--clr-border); }
.glossary-term-block:last-child { border-bottom: none; }
.glossary-term-name { font-weight: 700; font-size: 1rem; color: var(--clr-text); margin-bottom: .3rem; }
.glossary-term-def { font-size: .9rem; color: var(--clr-text-muted); line-height: 1.6; }
.glossary-term-related { font-size: .8rem; margin-top: .35rem; color: var(--clr-text-muted); }
.glossary-term-related a { color: var(--clr-primary); }

/* ---- Trust / verification ---- */
.trust-hero {
  background: linear-gradient(135deg, #0a4a3a 0%, #062e25 100%);
  color: #fff;
  padding: 2.75rem 0;
}
.trust-hero h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: .5rem; }
.trust-hero p { opacity: .82; font-size: .97rem; max-width: 560px; line-height: 1.55; }

.verification-level {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
}
.verification-level.level-5 { background: #d1e7dd; }
.verification-level.level-4 { background: #d9e8f5; }
.verification-level.level-3 { background: #fff8e1; }
.verification-level.level-2 { background: #f8f9fa; }
.vl-badge {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.vl-content { flex: 1; }
.vl-title { font-weight: 700; font-size: .9rem; margin-bottom: .2rem; }
.vl-desc { font-size: .84rem; color: var(--clr-text-muted); line-height: 1.5; }

/* ---- Industry landing ---- */
.industry-hero {
  background: linear-gradient(135deg, #0f4c81 0%, #0a3460 100%);
  color: #fff;
  padding: 3rem 0;
}
.industry-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: .6rem; }
.industry-hero p { opacity: .82; font-size: 1rem; max-width: 580px; line-height: 1.55; }
.industry-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0 0;
}
.industry-stat { text-align: center; }
.industry-stat strong { display: block; font-size: 2rem; font-weight: 900; }
.industry-stat span { font-size: .75rem; opacity: .7; text-transform: uppercase; letter-spacing: .05em; }
.industry-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.industry-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-decoration: none;
  color: var(--clr-text);
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: box-shadow .2s, border-color .15s;
}
.industry-card:hover { box-shadow: var(--shadow-md); border-color: var(--clr-primary-l); text-decoration: none; }
.industry-card .ic-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .25rem; }
.industry-card .ic-head .icon { font-size: 1.4rem; }
.industry-card .ic-head strong { font-size: 1rem; font-weight: 700; color: var(--clr-primary); }
.industry-card .ic-count { font-size: 1.5rem; font-weight: 800; color: var(--clr-primary); }
.industry-card .ic-desc { font-size: .84rem; color: var(--clr-text-muted); line-height: 1.45; }

/* ---- Recently Updated ---- */
.recent-feed { display: flex; flex-direction: column; gap: 0; }
.recent-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--clr-border);
  text-decoration: none;
  color: var(--clr-text);
}
.recent-item:hover { background: var(--clr-bg); margin: 0 -.5rem; padding-left: .5rem; padding-right: .5rem; text-decoration: none; }
.recent-item:last-child { border-bottom: none; }
.recent-dot {
  width: 10px; height: 10px; border-radius: 50%; margin-top: .35rem;
  background: var(--clr-success); flex-shrink: 0;
}
.recent-dot.create { background: var(--clr-primary); }
.recent-dot.update { background: var(--clr-success); }
.recent-dot.relationship { background: #8e44ad; }
.recent-body { flex: 1; }
.recent-name { font-weight: 600; font-size: .92rem; color: var(--clr-primary); }
.recent-event { font-size: .83rem; color: var(--clr-text-muted); margin-top: .1rem; }
.recent-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.recent-date { font-size: .75rem; color: var(--clr-text-muted); white-space: nowrap; }

/* ---- Suggest update form ---- */
.suggest-form-wrap {
  max-width: 680px;
  margin: 0 auto;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: var(--clr-text); }
.form-group input[type=text],
.form-group input[type=email],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .6rem .9rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color .15s;
  background: var(--clr-surface);
  color: var(--clr-text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--clr-primary); }
.form-group .hint { font-size: .78rem; color: var(--clr-text-muted); margin-top: .3rem; }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-required { color: var(--clr-danger); margin-left: .15rem; }
.suggest-form-notice {
  background: #e8f4fd;
  border: 1px solid #b8d9f0;
  border-radius: var(--radius-sm);
  padding: .875rem 1rem;
  font-size: .85rem;
  color: #1a4f6e;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}
.success-panel {
  text-align: center;
  padding: 3rem 1rem;
}
.success-panel .success-icon { font-size: 3rem; margin-bottom: .75rem; }
.success-panel h2 { font-size: 1.4rem; font-weight: 800; color: var(--clr-success); margin-bottom: .5rem; }
.success-panel p { color: var(--clr-text-muted); font-size: .95rem; }

/* ---- Trust badge enhancements (entity profile) ---- */
.trust-panel {
  background: #e8f8f0;
  border: 1px solid #a8d8bb;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.trust-panel-header { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.trust-panel-header .badge-verified-lg { font-size: .9rem; font-weight: 700; color: var(--clr-success); }
.trust-source-list { list-style: none; padding: 0; margin: 0; }
.trust-source-list li { padding: .3rem 0; font-size: .85rem; color: var(--clr-text-muted); border-bottom: 1px solid rgba(0,0,0,.06); }
.trust-source-list li:last-child { border-bottom: none; }

.freshness-bar { display: flex; gap: .35rem; align-items: center; font-size: .8rem; color: var(--clr-text-muted); }
.freshness-dot { width: 8px; height: 8px; border-radius: 50%; }
.freshness-dot.current { background: var(--clr-success); }
.freshness-dot.stale { background: var(--clr-warning); }
.freshness-dot.unknown { background: var(--clr-border); }

/* ---- CTA panels ---- */
.cta-panel {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-d) 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.cta-panel h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .35rem; }
.cta-panel p { opacity: .82; font-size: .9rem; margin: 0; }
.cta-panel .btn-cta { background: var(--clr-warning); color: var(--clr-text); border: none; padding: .7rem 1.5rem; font-weight: 700; border-radius: var(--radius-sm); white-space: nowrap; transition: background .15s; }
.cta-panel .btn-cta:hover { background: #e0a800; text-decoration: none; color: var(--clr-text); }

/* ---- WP-21 responsive additions ---- */
@media (max-width: 768px) {
  .hero-wp21 h1 { font-size: 1.65rem; }
  .intent-grid { grid-template-columns: 1fr 1fr; }
  .article-body { padding: 1.25rem 1rem; }
  .compare-table thead th, .compare-table tbody td { padding: .6rem .75rem; font-size: .82rem; }
  .cta-panel { flex-direction: column; text-align: center; }
  .tool-question-panel { padding: 1.25rem; }
  .industry-stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .intent-grid { grid-template-columns: 1fr; }
  .hero-cta-row { flex-direction: column; align-items: center; }
  .hero-cta-row .btn-hero-primary, .hero-cta-row .btn-hero-secondary { width: 100%; justify-content: center; }
  .tool-result-actions { flex-direction: column; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   WP-22: Consumer Utility, Industry Intelligence, Trust UX
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Trust Panel (entity profile sidebar) ────────────────────────── */
.trust-panel { }
.completeness-bar-wrap {
  height: 10px; background: #eee; border-radius: 5px;
  overflow: hidden; margin: .5rem 0 .3rem;
}
.completeness-bar {
  height: 100%; border-radius: 5px; transition: width .4s;
}
.completeness-green  { background: #27ae60; }
.completeness-blue   { background: var(--clr-primary, #1a5c8f); }
.completeness-amber  { background: #e67e22; }
.completeness-red    { background: #c0392b; }
.completeness-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; color: var(--clr-text-muted);
}
.completeness-band { font-weight: 700; font-size: .78rem; }
.completeness-band-green  { color: #27ae60; }
.completeness-band-blue   { color: var(--clr-primary, #1a5c8f); }
.completeness-band-amber  { color: #e67e22; }
.completeness-band-red    { color: #c0392b; }
.completeness-score { color: var(--clr-text-muted); }

.trust-badge {
  display: inline-block; padding: .25rem .6rem; border-radius: .3rem;
  font-size: .8rem; font-weight: 600;
}
.trust-badge-verified { background: #d4edda; color: #155724; }
.trust-badge-stale    { background: #fff3cd; color: #856404; }
.trust-badge-unknown  { background: #f8f9fa; color: var(--clr-text-muted); }

/* ── What Changed (industry/changes.html) ───────────────────────── */
/* Styles now inlined in the template per design decision */

/* ── Relationship Explorer (industry/relationships.html) ──────────── */
/* Styles now inlined in the template per design decision */

/* ── Life Event Journeys ─────────────────────────────────────────── */
.audience-section-header {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem;
}
.audience-section-header h2 { margin: 0; }
.audience-label {
  font-size: .72rem; font-weight: 700; padding: .2rem .55rem;
  border-radius: 2rem; letter-spacing: .05em; text-transform: uppercase;
}
.audience-label.consumer { background: #d4edda; color: #155724; }
.audience-label.professional { background: #cce5ff; color: #004085; }

/* ── Industry Intelligence section on /industry ──────────────────── */
.industry-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }

/* ── WP-22 Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .rel-stats-row { grid-template-columns: repeat(2, 1fr); }
  .rel-search { width: 100%; }
  .completeness-bar-wrap { height: 8px; }
  .industry-card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .industry-card-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .completeness-bar { transition: none; }
  .changes-filter-btn { transition: none; }
  .change-item { transition: none; }
}
