/* ============================================
   THE EXECUTIVE COACHING GROUP
   Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --navy:       #1a2744;
  --navy-light: #243358;
  --navy-dark:  #111b30;
  --gold:       #b8962e;
  --gold-light: #d4ae4a;
  --gold-pale:  #f5edd8;
  --slate:      #4a5568;
  --slate-light:#6b7280;
  --text:       #1a1a2e;
  --text-muted: #6b7280;
  --bg:         #ffffff;
  --bg-soft:    #f8f9fc;
  --bg-mid:     #f0f2f7;
  --border:     #e2e6ef;
  --border-mid: #c9d0de;
  --white:      #ffffff;
  --success:    #0d7a4e;
  --error:      #c0392b;
  --warning:    #d4830a;

  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  14px;
  --radius-xl:  20px;

  --shadow-sm:  0 1px 4px rgba(26, 39, 68, 0.08);
  --shadow:     0 4px 16px rgba(26, 39, 68, 0.10);
  --shadow-lg:  0 8px 32px rgba(26, 39, 68, 0.14);
  --shadow-xl:  0 16px 48px rgba(26, 39, 68, 0.18);

  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --max-w: 1200px;
  --max-w-content: 800px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-body); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--slate);
}

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 24px;
}

.site-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-nav__logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.site-nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-nav__logo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}

.site-nav__logo-sub {
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.site-nav__links a {
  color: rgba(255,255,255,0.78);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav__links a:hover { color: var(--white); }

.site-nav__links a.active { color: var(--gold-light); }

.site-nav__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- Buttons --- */
.btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  line-height: 1;
  box-sizing: border-box;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--border-mid);
}

.btn--outline-dark:hover {
  background: var(--bg-soft);
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn--navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--danger {
  background: rgba(192, 57, 43, 0.08);
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.3);
}

.btn--danger:hover {
  background: rgba(192, 57, 43, 0.15);
  border-color: #c0392b;
  color: #c0392b;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--sm {
  padding: 7px 16px;
  font-size: 0.82rem;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 150, 46, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 150, 46, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Hero right-column stat cards on dark background */
.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero__stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
}

.hero__stat-card .stat-card__number {
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.hero__stat-card .stat-card__label {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.hero__stat-card--wide {
  grid-column: 1 / -1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184, 150, 46, 0.15);
  border: 1px solid rgba(184, 150, 46, 0.35);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero .lead {
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Gold Rule Divider --- */
.gold-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
}

.gold-rule::before {
  content: '';
  width: 36px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.gold-rule span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- Section Titles --- */
.section-title {
  margin-bottom: 12px;
}

.section-intro {
  color: var(--slate);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 56px;
}

/* --- Who We Are --- */
.who-we-are {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.who-we-are__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.who-we-are__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.who-we-are__image-block {
  position: relative;
  padding-top: 56px; /* aligns first card with the h2 heading on the left */
}

.henley-badge {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  color: var(--white);
}

.henley-badge__logo {
  margin-bottom: 16px;
}

.henley-badge__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.henley-badge__text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 0;
}

.henley-badge__link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--gold-light);
  font-weight: 500;
}

/* --- Philosophy --- */
.philosophy {
  background: var(--navy);
  color: var(--white);
}

.philosophy h2 { color: var(--white); }

.philosophy .section-intro { color: rgba(255,255,255,0.7); }

.philosophy__body {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  line-height: 1.8;
}

.philosophy__body p { margin-bottom: 1.2rem; }

/* Philosophy two-column layout — extracted from inline style for responsive control */
.philosophy__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.philosophy__standards {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.standard-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  transition: background 0.2s;
}

.standard-card:hover { background: rgba(255,255,255,0.09); }

.standard-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.standard-card__icon {
  width: 36px;
  height: 36px;
  background: rgba(184, 150, 46, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.standard-card__icon svg {
  width: 18px;
  height: 18px;
  color: var(--gold-light);
}

.standard-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  font-family: var(--font-body);
}

.standard-card__text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0;
  line-height: 1.6;
}

.standard-card__link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 500;
}

/* --- Coach Cards Grid --- */
.coaches {
  background: var(--bg);
}

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

.coach-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.coach-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-mid);
}

.coach-card__photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-mid);
  position: relative;
}

.coach-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* face-biased default; overridden per-coach via inline style */
  transition: transform 0.4s;
}

.coach-card:hover .coach-card__photo img { transform: scale(1.04); }

.coach-card__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-mid), var(--bg-soft));
}

.coach-card__photo-initials {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.4;
}

.coach-card__body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.coach-card__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.coach-card__qualifications {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.coach-card__tagline {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.coach-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--bg-soft);
  color: var(--slate);
  border: 1px solid var(--border);
}

.tag--navy {
  background: rgba(26, 39, 68, 0.06);
  color: var(--navy);
  border-color: rgba(26, 39, 68, 0.12);
}

.tag--gold {
  background: var(--gold-pale);
  color: var(--gold);
  border-color: rgba(184, 150, 46, 0.2);
}

.coach-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.coach-card__view {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.coach-card__view svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.coach-card:hover .coach-card__view svg { transform: translateX(3px); }

/* --- Individual Coach Profile Page --- */
.profile-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 60px 0;
}

.profile-hero__inner {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 48px;
  align-items: start;
}

.profile-photo {
  width: 290px;
  height: 218px;  /* 4:3 landscape — matches crop widget and home page card */
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-mid);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.profile-photo__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.profile-photo__initials {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
}

.profile-meta__name {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: 4px;
}

.profile-meta__quals {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.profile-meta__tagline {
  font-size: 1.1rem;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 560px;
}

.profile-meta__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.profile-meta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-body {
  padding: 64px 0;
}

.profile-body__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

.profile-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.profile-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.profile-section h3 {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-section h3::before {
  content: '';
  display: block;
  width: 3px;
  height: 20px;
  background: var(--gold);
  border-radius: 2px;
}

.sidebar-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card h4 {
  color: var(--navy);
  margin-bottom: 14px;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
}

.sidebar-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-card__list li {
  font-size: 0.88rem;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Quals list: top-align items so bullet tracks the first line, not the midpoint of wrapped text */
.sidebar-card__list--quals li {
  align-items: flex-start;
}
.sidebar-card__list--quals li::before {
  margin-top: 6px;
}

/* Section subheadings within a sidebar card (e.g. Qualifications / Certifications) */
.sidebar-card__subheading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.sidebar-card__subheading--spaced {
  margin-top: 18px;
}

.sidebar-contact {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.sidebar-contact h4 {
  color: var(--white);
  margin-bottom: 16px;
}

.sidebar-contact p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

/* --- Login / Auth --- */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-xl);
}

.auth-card__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.auth-card__logo-mark {
  width: 42px;
  height: 42px;
}

.auth-card__logo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.auth-card__logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
}

.auth-card h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.auth-card__sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.auth-tab.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* --- Forms --- */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

label .required {
  color: var(--error);
  margin-left: 3px;
}

label .hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.1);
}

input::placeholder,
textarea::placeholder { color: var(--border-mid); }

textarea {
  resize: vertical;
  min-height: 100px;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Multi-select chips */
.multi-select-wrapper {
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s;
}

.multi-select-wrapper:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.1);
}

.multi-select-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  min-height: 44px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 500;
}

.chip__remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.2s;
}

.chip__remove:hover { color: var(--white); }

.multi-select-dropdown {
  border-top: 1px solid var(--border);
  max-height: 200px;
  overflow-y: auto;
}

.multi-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s;
  color: var(--text);
}

.multi-select-option:hover { background: var(--bg-soft); }
.multi-select-option.selected { background: rgba(26, 39, 68, 0.04); }

.multi-select-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  cursor: pointer;
}

/* Language selector */
.lang-add-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  flex-wrap: wrap;
}

.lang-select {
  flex: 1;
  min-width: 140px;
  height: 36px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-size: 0.88rem;
  padding: 0 10px;
  cursor: pointer;
}

.lang-select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.1);
}

/* Coaching qualifications & certifications widget */
.cq-group {
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  margin-bottom: 10px;
}
.cq-group:last-child { margin-bottom: 0; }

.cq-group__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 6px 14px;
  border-bottom: 1px solid var(--border);
}

.cq-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.cq-row:last-child { border-bottom: none; }
.cq-row:hover { background: var(--bg-soft); }
.cq-row--active { background: rgba(26, 39, 68, 0.03); }

.cq-row__label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0;
  letter-spacing: 0;
  line-height: 1.4;
}
.cq-row__label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--navy);
  cursor: pointer;
}

.cq-dates {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cq-month {
  height: 30px;
  width: 128px;
  padding: 0 26px 0 8px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius);
  background: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  appearance: none;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
}

.cq-year {
  width: 74px;
  height: 30px;
  padding: 0 8px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.82rem;
  color: var(--text);
}

.cq-month:focus,
.cq-year:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.1);
}

/* Other / custom entries */
.cq-row--other { gap: 8px; }

.cq-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.15s;
  flex-shrink: 0;
}
.cq-remove:hover { color: var(--error); }

.cq-other-text {
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 0 10px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
}
.cq-other-text:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.1);
}

.cq-add-other {
  display: inline-flex;
  align-items: center;
  margin: 8px 14px;
  padding: 4px 14px;
  border: 1.5px dashed var(--border-mid);
  border-radius: 50px;
  background: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.cq-add-other:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* In-widget section divider between qualifications and certifications */
.cq-section-divider {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
  margin: 18px 0 8px;
}
.cq-section-divider__hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 8px;
}

/* Divider between coaching quals and non-coaching credentials */
.cred-section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 22px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}
.cred-section-divider::before,
.cred-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Other qualifications & credentials tag-input */
.cred-widget {
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cred-widget:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.1);
}
.cred-chips {
  padding: 10px 12px 6px;
  border-bottom: 1px solid var(--border);
}
.cred-input-wrap {
  position: relative;
}
.cred-input {
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  box-sizing: border-box;
}
.cred-input:focus { outline: none; }
.cred-input::placeholder { color: var(--border-mid); }
.cred-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  z-index: 200;
  max-height: 230px;
  overflow-y: auto;
}
.cred-dropdown__item {
  padding: 9px 14px;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.1s;
  border-bottom: 1px solid var(--border);
}
.cred-dropdown__item:last-child { border-bottom: none; }
.cred-dropdown__item:hover,
.cred-dropdown__item--active { background: var(--bg-soft); }
.cred-dropdown__item strong {
  color: var(--navy);
  font-weight: 700;
}

@media (max-width: 600px) {
  .cq-row { flex-wrap: wrap; gap: 6px; }
  .cq-dates { width: 100%; padding-left: 25px; }
  .cq-month { flex: 1; width: auto; }
  .cq-year  { width: 80px; }
  .cq-row--other .cq-other-text { width: 100%; }
  .cq-row--other .cq-dates { padding-left: 0; }
}

/* Expand button for tag groups on the home page */
.tag-expand-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 3px 12px;
  border: 1px solid var(--border-mid);
  border-radius: 50px;
  background: none;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.tag-expand-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* Photo drag-to-reposition widget */
.photo-crop-widget {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.photo-crop-frame {
  width: 280px;
  height: 210px;    /* 4:3 — matches .coach-card__photo aspect ratio */
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-mid);
  cursor: grab;
  position: relative;
  user-select: none;
  touch-action: none;
  background: var(--bg-mid);
}

.photo-crop-frame:active { cursor: grabbing; }

.photo-crop-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  pointer-events: none;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Featured tags picker */
.featured-tags-wrap {
  padding: 16px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
}

/* Each Industry / Focus Area group is a block so the heading is always on its own line */
.featured-tags-group {
  margin-bottom: 16px;
}

.featured-tags-group:last-child { margin-bottom: 0; }

.featured-tags-group-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.featured-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.featured-tag-btn {
  padding: 5px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--border-mid);
  background: var(--white);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.featured-tag-btn:hover:not(:disabled) {
  border-color: var(--navy);
  color: var(--navy);
}

.featured-tag-btn--on {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.featured-tag-btn--dim {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Collective expertise cards — stacked in the home page right column */
.collective-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 12px;
}

.collective-card h4 {
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.form-error {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 5px;
  display: none;
}

.form-error.visible { display: block; }

/* --- Dashboard --- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 68px);
}

.dashboard-sidebar {
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  padding: 32px 0;
}

.dashboard-sidebar__user {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.dashboard-sidebar__avatar {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 10px;
}

.dashboard-sidebar__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 2px;
}

.dashboard-sidebar__role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dashboard-nav {
  list-style: none;
  padding: 0 12px;
}

.dashboard-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--slate);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}

.dashboard-nav a:hover {
  background: var(--border);
  color: var(--navy);
}

.dashboard-nav a.active {
  background: var(--navy);
  color: var(--white);
}

.dashboard-nav a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dashboard-main {
  padding: 40px 48px;
  max-width: 900px;
}

.dashboard-header {
  margin-bottom: 36px;
}

.dashboard-header h1 {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.dashboard-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.form-section {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 2px solid var(--border);
  scroll-margin-top: 84px;
}

.form-section:last-child {
  border-bottom: none;
}

.form-section__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
}

.form-section__title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}

.form-section__desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  margin-left: 14px;
  line-height: 1.55;
}

/* --- Admin Panel --- */
.admin-panel {
  padding: 40px 0;
}

.pending-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.pending-item__header {
  background: var(--gold-pale);
  border-bottom: 1px solid rgba(184, 150, 46, 0.2);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pending-item__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--warning);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pending-item__body {
  padding: 24px;
}

.pending-item__actions {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

/* --- Alerts & Messages --- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid transparent;
}

.alert--success {
  background: rgba(13, 122, 78, 0.08);
  border-color: rgba(13, 122, 78, 0.2);
  color: var(--success);
}

.alert--error {
  background: rgba(192, 57, 43, 0.08);
  border-color: rgba(192, 57, 43, 0.2);
  color: var(--error);
}

.alert--info {
  background: rgba(26, 39, 68, 0.06);
  border-color: var(--border-mid);
  color: var(--navy);
}

.alert--warning {
  background: rgba(212, 131, 10, 0.1);
  border-color: rgba(212, 131, 10, 0.25);
  color: var(--warning);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 32px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.site-footer__brand p {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-top: 16px;
  color: rgba(255,255,255,0.5);
  max-width: 260px;
}

.site-footer__col h5 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.site-footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__col ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__col ul a:hover { color: var(--white); }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.site-footer__bottom a { color: rgba(255,255,255,0.5); }
.site-footer__bottom a:hover { color: var(--white); }

/* --- Spinner & Loading --- */
.spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner--dark {
  border-color: var(--border-mid);
  border-top-color: var(--navy);
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  flex-direction: column;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Utilities --- */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ── Home page card preview panel (shown on preview.html) ────────────────── */
/* Home page card preview panel — fixed overlay, toggled by banner button */
.card-preview-panel {
  position: fixed;
  right: 24px;
  top: 64px;
  width: 300px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  /* display toggled by JS; starts hidden */
}

.card-preview-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.card-preview-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.card-preview-toggle:hover { color: var(--white); }

.card-preview-panel__body { padding: 12px; }

@media (max-width: 1280px) {
  .card-preview-panel { display: none; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .who-we-are__grid { grid-template-columns: 1fr; gap: 40px; }
  .who-we-are__image-block { padding-top: 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .profile-body__grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  /* Dashboard sidebar: on narrower screens it becomes a horizontal,
     scrollable tab bar instead of disappearing, so the nav links (and,
     on the admin panel, the Regenerate button) stay reachable. */
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0;
  }
  .dashboard-sidebar__user { display: none; }
  .dashboard-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 10px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dashboard-nav li { flex-shrink: 0; }
  .dashboard-nav a {
    padding: 8px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .dashboard-nav a svg { width: 14px; height: 14px; }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .hero { padding: 72px 0 64px; }
  .hero__actions { flex-direction: column; }
  .philosophy__layout { grid-template-columns: 1fr; gap: 40px; } /* collapse 2-col philosophy */
  .philosophy__standards { grid-template-columns: 1fr; }

  /* ── Mobile nav: compact logo ── */
  .site-nav__logo-sub { display: none; }
  .site-nav__logo-name { font-size: 0.85rem; }
  .site-nav__inner { height: auto; min-height: 56px; padding: 8px 0; flex-wrap: wrap; gap: 6px; }

  /* Site nav CTA: compact on mobile */
  .site-nav__cta { gap: 6px; flex-wrap: wrap; }

  /* Dashboard nav: hide secondary actions; abbreviate long labels */
  .dash-nav-actions { gap: 6px !important; flex-wrap: wrap; }
  #view-site-link,
  #nav-refresh-published-btn { display: none !important; }

  /* Abbreviate long button labels on mobile */
  #nav-save-btn { font-size: 0 !important; }
  #nav-save-btn::after { content: 'Save'; font-size: 0.78rem; font-weight: 600; }
  #nav-preview-publish-btn { font-size: 0 !important; }
  #nav-preview-publish-btn::after { content: 'Preview & Publish'; font-size: 0.78rem; font-weight: 600; }

  /* Tighter button padding in the top nav on mobile */
  .site-nav .btn--sm,
  .dash-nav-actions .btn--sm { padding: 6px 11px; font-size: 0.78rem; }
  .profile-hero__inner { grid-template-columns: 1fr; }
  .profile-photo { width: 140px; height: 140px; }
  .form-row { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-nav__links { display: none; }
  .dashboard-main { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .coaches__grid { grid-template-columns: 1fr; }
}

/* --- Char count --- */
.char-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

/* --- Preview badge --- */
.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 131, 10, 0.12);
  border: 1px solid rgba(212, 131, 10, 0.3);
  color: var(--warning);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Publish status toggle --- */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.toggle-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.toggle-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.toggle {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle__track {
  position: absolute;
  inset: 0;
  background: var(--border-mid);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle input:checked + .toggle__track { background: var(--navy); }

.toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle input:checked ~ .toggle__thumb { transform: translateX(20px); }

/* ── Rich text editor (dashboard) ─────────────────────────────────────────── */
.rich-editor {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.rich-editor__toolbar {
  display: flex;
  gap: 2px;
  padding: 5px 8px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.rich-editor__btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--navy);
  min-width: 28px;
  text-align: center;
  appearance: none;
}
.rich-editor__btn:hover { background: var(--bg-mid); border-color: var(--border); }
.rich-editor__btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.rich-editor__content {
  padding: 10px 12px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--navy-dark);
  outline: none;
  overflow-y: auto;
}
.rich-editor__content:focus { box-shadow: 0 0 0 2px var(--gold) inset; }
.rich-editor__content:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  pointer-events: none;
  display: block;
}
.rich-editor__content p,
.rich-editor__content div { margin: 0 0 0.6em; }
.rich-editor__content p:last-child,
.rich-editor__content div:last-child,
.rich-editor__content li:last-child { margin-bottom: 0; }
.rich-editor__content ul,
.rich-editor__content ol { padding-left: 1.4em; margin: 0 0 0.6em; }
.rich-editor__content li { margin-bottom: 0.25em; }

/* ── Formatted prose on profile pages ─────────────────────────────────────── */
.prose p { margin: 0 0 0.75em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 0.75em; }
.prose li { margin-bottom: 0.3em; }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
