/* Local High-Quality Vazirmatn Typography (Offline & Fast) */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}


:root {
  /* Daadboom-Blakes Architectural Color System (WCAG 2.2 AA Contrast Compliant) */
  --bg-main: #F7F5F0;
  --bg-card: #FFFFFF;
  --bg-subtle: #F7F5F0;
  --bg-alt: #F7F5F0;
  --bg-surface: #FFFFFF;
  --bg-body: #F7F5F0;
  --bg-warm: #F7F5F0;
  --primary-navy: #17283C;
  --primary-dark: #111E2D;
  --primary-footer: #1B2B3D;
  --primary-light: #253D5B;
  --accent-gold: #C8A252;
  --accent-gold-hover: #B18B3B;
  --accent-gold-text: #8A6518; /* WCAG >= 4.5:1 text token on light surfaces */
  --accent-gold-soft: rgba(200, 162, 82, 0.14);
  --accent-terracotta: #A1432E;
  --accent-green: #2E6B47;

  --text-main: #20242A;
  --text-color: var(--text-main);
  --text-muted: #596573;
  --text-light: #505E6E;
  --text-inverse: #FFFFFF;

  --border-color: #E5E7EB;
  --border-light: #E5E7EB;

  --shadow-sm: 0 1px 4px rgba(17, 30, 45, 0.04);
  --shadow-md: 0 4px 16px rgba(17, 30, 45, 0.06);
  --shadow-lg: 0 10px 28px rgba(17, 30, 45, 0.08);

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 4px;
  --radius-full: 9999px;

  /* Design System Spacing Scale (Tokens - Task 10.5) */
  --space-2xs: 0.25rem; /* 4px */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 0.75rem;  /* 12px */
  --space-md: 1rem;     /* 16px */
  --space-lg: 1.5rem;   /* 24px */
  --space-xl: 2rem;     /* 32px */
  --space-2xl: 3rem;    /* 48px */
  --space-3xl: 4.5rem;  /* 72px */
  --space-card: 1.75rem; /* Standardized Card Padding */

  /* Design System Typography Scale (Fluid & Semantic - Task 10.4) */
  --font-h1: clamp(1.85rem, 4vw, 2.45rem);
  --font-h2: clamp(1.4rem, 2.8vw, 1.85rem);
  --font-h3: clamp(1.15rem, 2vw, 1.35rem);
  --font-h4: 1.1rem;
  --font-body: 1rem;
  --font-sm: 0.875rem;
  --font-xs: 0.75rem;
  
  --lh-tight: 1.35;
  --lh-normal: 1.65;
  --lh-relaxed: 1.85;

  /* CTA Button Tokens (Task 10.1) */
  --btn-primary-bg: var(--accent-gold);
  --btn-primary-hover: var(--accent-gold-hover);
  --btn-primary-text: #FFFFFF;
  --btn-secondary-border: var(--accent-gold);
  --btn-secondary-text: var(--accent-gold-text);
  --btn-secondary-hover-bg: var(--accent-gold);
  --btn-secondary-hover-text: #FFFFFF;
  
  --container-max: 1320px;
  --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility */
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Design System: Semantic Typography Scale (Task 10.4)
   ========================================================================== */
h1, .h1 {
  font-size: var(--font-h1);
  font-weight: 800;
  color: var(--primary-navy);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-md);
  letter-spacing: -0.015em;
}

h2, .h2 {
  font-size: var(--font-h2);
  font-weight: 800;
  color: var(--primary-navy);
  line-height: var(--lh-tight);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-size: var(--font-h3);
  font-weight: 700;
  color: var(--primary-navy);
  line-height: var(--lh-normal);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

h4, .h4 {
  font-size: var(--font-h4);
  font-weight: 700;
  color: var(--primary-navy);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-xs);
}

p, .body-text {
  font-size: var(--font-body);
  line-height: var(--lh-relaxed);
  color: var(--text-main);
  margin-bottom: var(--space-md);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

/* Header & Navigation */
.site-header {
  width: 100%;
  z-index: 1000;
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* 1. Homepage Header: Completely transparent overlay on top of hero background photo */
.site-header-home {
  position: absolute;
  top: 0;
  left: 0;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header-home.scrolled {
  position: fixed;
  background: rgba(7, 21, 36, 0.96) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

/* 2. Interior Pages Header: Sticky, with uploaded background image (or rich dark navy-gold gradient) */
.site-header-interior {
  position: sticky;
  top: 0;
  background-color: #071524;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
              linear-gradient(135deg, #071524 0%, #0d253f 60%, #17283c 100%);
  border-bottom: 2px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.site-header-interior.scrolled {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.45);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--accent-gold, #D4AF37);
  font-weight: 600;
}

/* Nav Menu */
.mobile-drawer-only,
.mobile-only {
  display: none !important;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-menu li {
  margin: 0;
  padding: 0;
  border: none;
}

.nav-link,
.nav-menu a,
a.nav-link {
  font-size: 0.98rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  padding: 0.5rem 0.2rem;
  position: relative;
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: none !important;
  outline: none;
  display: inline-block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-link:focus,
.nav-link:active,
.nav-menu a:hover,
.nav-menu a.active,
.nav-menu a:focus,
.nav-menu a:active {
  color: var(--accent-gold, #D4AF37);
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: none !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 2.5px;
  background-color: var(--accent-gold);
  transition: width 0.25s ease;
  border-radius: var(--radius-full);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}


/* Navigation CTA Button */
.nav-cta-item {
  display: flex;
  align-items: center;
}

.nav-cta-btn {
  background: linear-gradient(135deg, #B8860B 0%, #D4AF37 100%) !important;
  color: #071524 !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: var(--radius-sm);
  padding: 0.45rem 1rem !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
  position: relative;
  text-decoration: none !important;
}

.nav-cta-btn::after {
  display: none !important;
}

.nav-cta-btn:hover {
  background: linear-gradient(135deg, #D4AF37 0%, #F1D279 100%) !important;
  color: #071524 !important;
  border-color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.5);
  transform: translateY(-1px);
}

.nav-cta-btn:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

.desktop-only {
  display: inline;
}
li.desktop-only {
  display: list-item !important;
}
li.nav-cta-item.desktop-only {
  display: flex !important;
}

@media (max-width: 1200px) and (min-width: 993px) {
  .nav-menu {
    gap: 0.85rem !important;
  }
  .nav-link, .nav-menu a {
    font-size: 0.91rem !important;
    padding: 0.45rem 0.1rem !important;
  }
  .header-search-input {
    width: 150px;
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .nav-menu {
    gap: 0.6rem !important;
  }
  .nav-link, .nav-menu a {
    font-size: 0.85rem !important;
  }
  .header-search-input {
    width: 120px;
  }
  .nav-cta-btn {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.82rem !important;
    gap: 0.3rem !important;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   Design System: Standardized Button Hierarchy (Task 10.1)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1.45rem;
  font-size: var(--font-body, 0.95rem);
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.25s ease;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.3;
  min-height: 44px; /* WCAG 2.5.8 Touch Target Requirement */
  box-sizing: border-box;
}

/* 1. Primary CTA: Solid Gold #C8A252 with Crisp Deep Navy Text */
.btn-primary,
.btn-gold {
  background-color: var(--accent-gold);
  color: #111E2D !important;
  border-color: var(--accent-gold);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(17, 30, 45, 0.08);
}

.btn-primary:hover,
.btn-gold:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  color: #111E2D !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(17, 30, 45, 0.14);
}

/* 2. Secondary CTA: Outline / Ghost */
.btn-secondary,
.btn-outline,
.btn-outline-gold {
  background: transparent;
  border-color: var(--accent-gold);
  color: var(--accent-gold-text) !important;
}

.btn-secondary:hover,
.btn-outline:hover,
.btn-outline-gold:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #111E2D !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 30, 45, 0.1);
}

/* 3. Neutral / Navy Institutional Button */
.btn-navy {
  background-color: var(--primary-navy);
  color: #FFFFFF !important;
  border-color: var(--primary-navy);
}

.btn-navy:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 40, 60, 0.2);
}

.btn-outline-navy {
  background: transparent;
  border-color: var(--primary-navy);
  color: var(--primary-navy) !important;
}

.btn-outline-navy:hover {
  background: var(--primary-navy);
  border-color: var(--primary-navy);
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* Size Variants */
.btn-sm {
  padding: 0.42rem 1.05rem;
  font-size: 0.86rem;
  min-height: 38px;
}

.btn-md {
  padding: 0.65rem 1.45rem;
  font-size: 0.95rem;
  min-height: 44px;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  min-height: 48px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  cursor: pointer;
  padding: 0.5rem;
  color: #FFFFFF;
  transition: all 0.2s ease;
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(circle at 10% 20%, rgba(184, 137, 40, 0.06) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(23, 40, 60, 0.05) 0%, transparent 45%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border: 1px solid rgba(184, 137, 40, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-slogan {
  font-size: 1.25rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.95;
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-card-floating {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  width: 100%;
}

.quote-icon {
  font-size: 2.8rem;
  color: var(--accent-gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-card-floating h3 {
  font-size: 1.3rem;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.hero-card-floating p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

/* Section Common */
.section {
  padding: 4.5rem 0;
}

.section-bg-alt {
  background-color: var(--bg-alt);
}

.section-bg-card {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header,
.section-header-editorial {
  text-align: right;
  max-width: 760px;
  margin: 0 0 2.75rem 0;
}

.section-subtitle {
  display: inline-block;
  color: var(--accent-gold-text);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.35;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.9;
}

/* Story Lawyer Section (وکیل قصه) */
.story-manifesto-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.story-header-flex {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
}

.story-badge-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.story-titles h3 {
  font-size: 1.6rem;
  color: var(--primary-navy);
  font-weight: 800;
}

.story-titles p {
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.95rem;
}

.story-body-text {
  color: var(--text-main);
  line-height: 2.1;
  font-size: 1.05rem;
}

.story-body-text p {
  margin-bottom: 1.4rem;
}

.story-body-text .highlight-quote {
  background: var(--bg-subtle);
  border-right: 4px solid var(--accent-gold);
  padding: 1.25rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--primary-navy);
  margin: 1.5rem 0;
}

/* Cards & Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ==========================================================================
   Design System: Standardized Card Architecture (Task 10.3)
   ========================================================================== */
.card,
.base-card,
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-card, 1.75rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card:hover,
.base-card:hover,
.content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold);
}

/* Card Sub-components */
.card-icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-md);
  display: inline-block;
  color: var(--accent-gold);
}

.card-title {
  font-size: var(--font-h3, 1.25rem);
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: var(--space-xs);
  line-height: 1.45;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.card-link:hover {
  color: var(--accent-gold-hover);
  gap: 0.6rem;
}

.card-clickable {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(23, 40, 60, 0.08);
}

.card-clickable:focus-visible {
  outline: 2.5px solid var(--accent-gold);
  outline-offset: 3px;
}

.card-clickable:hover .card-link {
  color: var(--accent-gold-hover);
  gap: 0.6rem;
}

/* Card Semantic Variants */
.card-flat {
  box-shadow: none;
}
.card-flat:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-color);
}

.card-highlight {
  border-right: 4px solid var(--accent-gold);
}

.card-subtle {
  background: var(--bg-subtle);
  border-color: var(--border-light);
}

/* Public Cases Pill Card */
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--accent-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.case-card:hover::before {
  opacity: 1;
}

/* Contact Section & Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-panel {
  background: var(--primary-navy);
  color: var(--text-inverse);
  padding: 1.15rem 1.35rem 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.contact-info-panel h3 {
  font-size: 1.15rem;
  color: var(--accent-gold);
  margin-bottom: 0.15rem;
  font-weight: 800;
}

.contact-info-panel p.intro {
  color: #C0CAD5;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 0.35rem;
}

.contact-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0.25rem 0 0.35rem 0;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0;
}

.contact-detail-full {
  grid-column: span 2;
}

.detail-icon {
  font-size: 1.02rem;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.detail-content h4 {
  font-size: 0.72rem;
  color: #94A3B8;
  margin-bottom: 0.02rem;
  font-weight: 500;
}

.detail-content p, .detail-content a {
  font-size: 0.83rem;
  color: var(--text-inverse);
  font-weight: 500;
  text-decoration: none;
  line-height: 1.4;
}

.social-links-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #E2E8F0;
  transition: all 0.25s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.social-icon-btn:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(158, 111, 24, 0.35);
}

.social-icon-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: #E2E8F0;
  transition: all 0.2s ease;
}

.social-pill:hover {
  background: var(--accent-gold);
  color: #FFFFFF;
}

/* Modern Form */
.form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-navy);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(23, 40, 60, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.alert-box {
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  display: none;
}

.alert-success {
  background: #EAF7EE;
  color: #1E6B38;
  border: 1px solid #B6E5C4;
}

.alert-error {
  background: #FDF0ED;
  color: #9C2E1A;
  border: 1px solid #F5C3B8;
}

/* Footer */
.site-footer {
  background-color: var(--primary-navy);
  color: #D3DBE4;
  padding: 3.25rem 0 3.25rem;
  margin-top: auto;
  border-top: 3px solid var(--accent-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 2.5rem;
  margin-bottom: 1.85rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-about p {
  font-size: 0.92rem;
  line-height: 1.9;
  color: #B1BECB;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #B1BECB;
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-right: 4px;
}

.footer-bottom {
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-accreditation-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-md);
  padding: 0.7rem 1.1rem;
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-accreditation-main {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
  min-width: 240px;
}

.footer-accreditation-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1.5px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-accreditation-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.65rem;
}

.footer-accreditation-text strong {
  color: #FFFFFF;
  font-size: 0.92rem;
}

.footer-accreditation-text span {
  color: #CBD5E1;
  font-size: 0.8rem;
}

.footer-accreditation-btn {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  white-space: nowrap;
}

.footer-legal-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.9rem 0;
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem 1.25rem;
  font-size: 0.84rem;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
}

.footer-legal-links a {
  color: #C2CFDC;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--accent-gold);
}

.footer-legal-sep {
  color: rgba(255, 255, 255, 0.25);
}

.footer-compliance-badge {
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.footer-compliance-badge:hover {
  text-decoration: underline;
}

.footer-compliance-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2E6B47;
  flex-shrink: 0;
}

.footer-bottom p {
  color: #CBD5E1;
  margin-bottom: 0;
}

/* ==========================================================================
   Design System: Scroll-to-Top Component (Task 10.2)
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  width: 44px;
  height: 44px;
  background-color: var(--primary-navy);
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease, color 0.2s ease;
  z-index: 990;
}

.back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: var(--accent-gold);
  color: #FFFFFF !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(158, 111, 24, 0.4);
}

.back-to-top-btn:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    right: 12px;
    left: auto;
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   Design System: Footer Mobile Accordion (Task 10.2)
   ========================================================================== */
.footer-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.footer-accordion-icon {
  display: none;
  transition: transform 0.25s ease;
  font-size: 0.85rem;
  color: var(--accent-gold);
}

@media (max-width: 768px) {
  .footer-col-collapsible .footer-accordion-header {
    cursor: pointer;
    user-select: none;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.8rem;
  }
  
  .footer-col-collapsible .footer-accordion-header::after {
    display: none;
  }

  .footer-accordion-icon {
    display: inline-block;
  }

  .footer-col-collapsible .footer-links {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
    margin-bottom: 0;
  }

  .footer-col-collapsible.is-open .footer-links {
    max-height: 450px;
    opacity: 1;
    margin-bottom: 1.5rem;
  }

  .footer-col-collapsible.is-open .footer-accordion-icon {
    transform: rotate(180deg);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .header-search-input {
    width: 140px;
  }
  .header-search-input:focus {
    width: 190px;
  }
  .nav-menu {
    gap: 1.1rem;
  }
  
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .desktop-only,
  li.desktop-only {
    display: none !important;
  }
  .header-actions {
    display: none;
  }
  
  .mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    right: 0;
    left: 0;
    z-index: 1005;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: rgba(7, 21, 36, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem 1.5rem 5.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid var(--accent-gold);
    gap: 1rem;
  }
  
  .nav-menu.open {
    display: flex;
  }

  .mobile-drawer-only,
  .mobile-only {
    display: block !important;
  }
  li.mobile-drawer-only,
  li.mobile-only {
    display: list-item !important;
  }
  
  .hero-title {
    font-size: clamp(1.35rem, 4.2vw, 1.55rem);
    line-height: 1.45;
    margin-bottom: 0.85rem;
  }
  
  .hero-slogan {
    font-size: 0.98rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
  }
  
  .grid-3, .grid-2, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .story-manifesto-box {
    padding: 1.8rem;
  }
}

/* Authentication Styles */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background-color: #FFFFFF;
  color: #3C4043;
  border: 1px solid #DADCE0;
  border-radius: var(--radius-full);
  font-size: 0.96rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-google:hover {
  background-color: #F8F9FA;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.15);
  border-color: #D2E3FC;
  transform: translateY(-1px);
}

.google-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.divider-text {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.75rem 0;
  color: var(--text-light);
  font-size: 0.85rem;
}

.divider-text::before, .divider-text::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}

.divider-text span {
  padding: 0 1rem;
}

/* =============================================================
   Header User Profile Dropdown & Search Bar
   ============================================================= */

/* Search Bar in Header */
.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-input {
  width: 190px;
  background: #F4F6F9;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-full);
  padding: 0.42rem 2.1rem 0.42rem 0.85rem;
  font-size: 0.85rem;
  color: var(--primary-navy);
  font-family: inherit;
  transition: all 0.25s ease;
  outline: none;
}

.header-search-input:focus {
  width: 250px;
  background: #ffffff;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(184, 137, 40, 0.15);
}

.header-search-icon {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.header-search-input:focus ~ .header-search-icon {
  color: var(--accent-gold);
}

/* Live Search Suggestions Dropdown */
.search-suggestions-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 12px 30px rgba(23, 40, 60, 0.15);
  z-index: 1000;
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
  animation: fadeInDown 0.2s ease;
}

.search-suggestions-dropdown.active {
  display: block;
}

.suggestion-item {
  display: block;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid #F1F5F9;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: #F8FAFC;
}

.suggestion-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: #ffffff;
  display: inline-block;
  margin-bottom: 0.2rem;
}

.suggestion-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-desc {
  font-size: 0.78rem;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-view-all {
  display: block;
  text-align: center;
  padding: 0.55rem;
  background: #F8FAFC;
  color: var(--accent-gold);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border-top: 1px solid var(--border-light);
}

.suggestion-view-all:hover {
  background: #F1F5F9;
}

/* User Profile Dropdown Container */
.user-dropdown-container {
  position: relative;
}

.user-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #F4F6F9;
  border: 1px solid #E2E8F0;
  padding: 0.3rem 0.75rem 0.3rem 0.45rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  color: var(--primary-navy);
}

.user-dropdown-trigger:hover,
.user-dropdown-container.open .user-dropdown-trigger {
  background: #ffffff;
  border-color: var(--accent-gold);
  box-shadow: 0 2px 10px rgba(23, 40, 60, 0.08);
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #17283C, #2E4560);
  color: #E5C378;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-name-label {
  font-size: 0.9rem;
  font-weight: 700;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chevron-icon {
  color: #64748B;
  transition: transform 0.2s ease;
}

.user-dropdown-container.open .chevron-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu Popup */
.user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 235px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  box-shadow: 0 12px 35px rgba(23, 40, 60, 0.15);
  z-index: 1000;
  overflow: hidden;
  animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown-container.open .user-dropdown-menu {
  display: block;
}

.user-dropdown-header {
  padding: 0.9rem 1rem;
  background: #FAF8F5;
  border-bottom: 1px solid var(--border-light);
}

.user-dropdown-name {
  font-weight: 800;
  color: var(--primary-navy);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.user-dropdown-role {
  margin-bottom: 0.3rem;
}

.badge-role-supervisor {
  font-size: 0.72rem;
  font-weight: 700;
  background: #FEF3C7;
  color: #92400E;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #FDE68A;
}

.badge-role-trainee {
  font-size: 0.72rem;
  font-weight: 700;
  background: #EFF6FF;
  color: #1E40AF;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #DBEAFE;
}

.user-dropdown-email {
  font-size: 0.78rem;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-body {
  padding: 0.4rem 0;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  color: var(--primary-navy);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.15s ease;
}

.user-dropdown-item svg {
  color: #64748B;
  transition: color 0.15s;
}

.user-dropdown-item:hover {
  background: #F8FAFC;
  color: var(--accent-gold);
}

.user-dropdown-item:hover svg {
  color: var(--accent-gold);
}

.user-dropdown-footer {
  border-top: 1px solid var(--border-light);
  padding: 0.3rem 0;
  background: #FFFDFD;
}

.user-dropdown-item.logout-item {
  color: #DC2626;
}

.user-dropdown-item.logout-item svg {
  color: #DC2626;
}

.user-dropdown-item.logout-item:hover {
  background: #FEF2F2;
  color: #B91C1C;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Flash Messages (Floating Compact Toast Overlay) */
.messages-container {
  position: fixed;
  top: 85px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: auto;
  max-width: 90vw;
  padding: 0;
  margin: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.msg-item {
  pointer-events: auto;
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: toastSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-sizing: border-box;
}

@keyframes toastSlideDown {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.msg-item .msg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.msg-item .msg-text {
  white-space: nowrap;
  letter-spacing: -0.01em;
}

@media (max-width: 576px) {
  .msg-item .msg-text {
    white-space: normal;
    text-align: right;
  }
}

.msg-item .msg-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: inherit;
  opacity: 0.65;
  transition: opacity 0.2s, transform 0.2s;
  padding: 0 0.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  margin-right: 0.25rem;
}

.msg-item .msg-close-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}

.msg-success {
  background: rgba(10, 30, 20, 0.94);
  color: #A7F3D0;
  border: 1px solid rgba(52, 211, 153, 0.45);
}

.msg-error {
  background: rgba(35, 12, 12, 0.94);
  color: #FECACA;
  border: 1px solid rgba(248, 113, 113, 0.45);
}

.msg-warning {
  background: rgba(35, 25, 10, 0.94);
  color: #FDE68A;
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.msg-info {
  background: rgba(13, 30, 48, 0.94);
  color: #E2E8F0;
  border: 1px solid rgba(212, 175, 55, 0.45);
}

/* Admin Quick Bar */
.admin-topbar {
  background: linear-gradient(90deg, #121E2C 0%, #1B2E44 100%);
  color: #FFFFFF;
  border-bottom: 2px solid var(--accent-gold);
  padding: 0.65rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.admin-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-topbar-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.92rem;
}

.admin-badge-pill {
  background: var(--accent-gold);
  color: #FFFFFF;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-topbar-link {
  color: #D1DBE5;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.admin-topbar-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}



/* ==========================================================================
   Trainee & Confidential Case Portal Styles
   ========================================================================== */

/* Header enhancements */
.role-pill-mini {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-left: 0.35rem;
}
.role-pill-mini.supervisor {
  background: rgba(184, 137, 40, 0.2);
  color: #8C6514;
}
.role-pill-mini.trainee {
  background: rgba(28, 100, 242, 0.15);
  color: #1C64F2;
}

.nav-case-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Home Portal Hero Features */
.portal-features-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.75rem 0;
}

.portal-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.portal-feat-item:hover {
  transform: translateY(-2px);
  background: #FFFFFF;
}

.portal-feat-item .feat-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.portal-feat-item strong {
  display: block;
  color: var(--primary-navy);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.portal-feat-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.55;
}

/* Trainee Login Card on Home Page */
.trainee-login-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: 0 16px 40px rgba(23, 40, 60, 0.12);
  border: 1px solid var(--border-color);
  position: relative;
}

.card-login-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.card-login-header .lock-icon {
  font-size: 2.2rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.card-login-header h3 {
  font-size: 1.35rem;
  color: var(--primary-navy);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.card-login-header p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon {
  position: absolute;
  right: 0.9rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  pointer-events: none;
}

.input-with-icon .form-control {
  padding-right: 2.6rem;
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-light);
}

.login-divider span {
  padding: 0 0.75rem;
}

.btn-google-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-google-login:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  box-shadow: var(--shadow-sm);
}

.card-login-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.card-login-footer .register-link {
  color: var(--accent-gold);
  font-weight: 700;
  margin-right: 0.35rem;
  text-decoration: none;
}

.card-login-footer .register-link:hover {
  text-decoration: underline;
}

/* Trainee Welcome Card (Logged In) */
.trainee-welcome-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(23, 40, 60, 0.12);
  border: 1px solid var(--border-color);
}

.welcome-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.welcome-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(184, 137, 40, 0.12);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.welcome-role {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.welcome-name {
  font-size: 1.25rem;
  color: var(--primary-navy);
  margin: 0.1rem 0;
}

.welcome-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.wstat {
  background: var(--bg-surface);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-light);
}

.wstat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.wstat-lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quick-cases-list {
  margin-bottom: 1.25rem;
}

.quick-case-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  margin-bottom: 0.45rem;
  transition: all 0.2s ease;
}

.quick-case-item:hover {
  background: #FFFFFF;
  border-color: var(--accent-gold);
}

.qc-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.qc-title {
  display: block;
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 600;
}

/* Trainee Dashboard Page */
.trainee-dash-header {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trainee-dash-profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.trainee-avatar {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: var(--primary-navy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.badge-supervisor {
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.badge-trainee {
  background: #EBF3FC;
  color: #1C64F2;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.trainee-name {
  font-size: 1.6rem;
  color: var(--primary-navy);
  margin: 0.25rem 0;
}

.trainee-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.trainee-header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.dash-stat-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1.4rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.confidential-banner {
  background: rgba(23, 40, 60, 0.04);
  border: 1px dashed rgba(23, 40, 60, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2rem;
  color: var(--primary-navy);
  font-size: 0.9rem;
  line-height: 1.65;
}

.confidential-banner .confidential-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Cases Table */
.trainee-cases-section {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.cases-section-head {
  margin-bottom: 1.5rem;
}

.cases-table-wrapper {
  overflow-x: auto;
}

.cases-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: right;
}

.cases-table th {
  background: var(--bg-surface);
  color: var(--primary-navy);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.9rem 1rem;
  border-bottom: 2px solid var(--border-color);
}

.cases-table td {
  padding: 1.1rem 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
  vertical-align: middle;
}

.cases-table tr:hover td {
  background: rgba(244, 240, 232, 0.4);
}

.case-number-badge {
  font-family: monospace, inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(184, 137, 40, 0.1);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  direction: ltr;
  display: inline-block;
}

.case-main-title {
  color: var(--primary-navy);
  font-weight: 700;
  text-decoration: none;
  display: block;
  margin-bottom: 0.2rem;
}

.case-main-title:hover {
  color: var(--accent-gold);
}

.case-client-name {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.case-branch {
  font-size: 0.85rem;
  color: var(--text-main);
}

.trainee-pill {
  font-size: 0.85rem;
  color: #1C64F2;
  font-weight: 600;
}

.supervisor-pill {
  font-size: 0.85rem;
  color: #92400E;
  font-weight: 600;
}

.badge-unassigned {
  font-size: 0.78rem;
  color: #DC2626;
  background: #FEE2E2;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.status-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.status-open { background: #EBF3FC; color: #1C64F2; }
.status-investigating { background: #FEF3C7; color: #D97706; }
.status-pleading { background: #EDE9FE; color: #6D28D9; }
.status-hearing { background: #FCE7F3; color: #DB2777; }
.status-closed { background: #E1F7EC; color: #0E9F6E; }
.status-archived { background: #F3F4F6; color: #4B5563; }

.files-counter {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.empty-cases-box {
  text-align: center;
  padding: 3.5rem 1rem;
}

/* Case Detail Page */
.case-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.back-link {
  color: var(--primary-navy);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
}

.back-link:hover {
  color: var(--accent-gold);
}

.case-nav-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.confidential-pill {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.case-main-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.case-header-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.75rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 860px) {
  .case-header-grid {
    grid-template-columns: 1fr;
  }
}

.case-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
}

.case-headline {
  font-size: 1.7rem;
  color: var(--primary-navy);
  margin: 0.35rem 0;
  font-weight: 800;
}

.case-subtext {
  font-size: 1.05rem;
  color: var(--text-main);
}

.case-header-meta {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.meta-title {
  color: var(--text-muted);
}

.meta-val {
  color: var(--primary-navy);
  font-weight: 600;
}

.hearing-highlight {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.case-desc-box {
  margin-bottom: 1.5rem;
}

.supervisor-instruction-box {
  background: #FFFBF0;
  border: 1.5px solid #F3D99F;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
}

.instruction-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.instruction-header h4 {
  margin: 0;
  color: #8C6514;
  font-size: 1rem;
  font-weight: 700;
}

/* Two column workspace */
.case-workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

@media (max-width: 900px) {
  .case-workspace-grid {
    grid-template-columns: 1fr;
  }
}

.section-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-section-title {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.doc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}

.doc-card:hover {
  background: #FFFFFF;
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-sm);
}

.doc-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.doc-type-badge {
  font-size: 0.75rem;
  background: rgba(23, 40, 60, 0.08);
  color: var(--primary-navy);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.doc-notes {
  font-size: 0.85rem;
  color: var(--text-main);
  margin: 0.25rem 0;
  line-height: 1.5;
}

.doc-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
}

.supervisor-upload-section,
.trainee-submit-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-color);
}

.empty-sub-box {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-light);
}

.empty-sub-box span {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Trainee Reports Timeline */
.report-entry {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.report-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.report-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.report-type-badge {
  font-size: 0.78rem;
  background: var(--primary-navy);
  color: #FFFFFF;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.badge-approved {
  font-size: 0.75rem;
  background: #E1F7EC;
  color: #0E9F6E;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.badge-pending {
  font-size: 0.75rem;
  background: #FEF3C7;
  color: #D97706;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.report-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.report-title {
  font-size: 1.05rem;
  color: var(--primary-navy);
  margin: 0.35rem 0 0.6rem;
  font-weight: 700;
}

.report-content-text {
  font-size: 0.92rem;
  color: var(--text-main);
  background: #FFFFFF;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.report-attachment-box {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.supervisor-feedback-box {
  margin-top: 0.85rem;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: #1E40AF;
}

.supervisor-feedback-box strong {
  display: block;
  margin-bottom: 0.25rem;
}

.supervisor-feedback-box p {
  margin: 0;
  line-height: 1.5;
}

/* Custom form utilities */
.custom-form .form-group {
  margin-bottom: 1.15rem;
}

.custom-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 0.4rem;
}

.custom-form .form-row {
  display: flex;
  gap: 1rem;
}

.custom-form .form-row .half {
  flex: 1;
}

@media (max-width: 768px) {
  .custom-form .form-row {
    flex-direction: column;
    gap: 0;
  }
}

.custom-form input[type="text"],
.custom-form input[type="password"],
.custom-form input[type="email"],
.custom-form input[type="file"],
.custom-form select,
.custom-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 0.92rem;
  background: #FFFFFF;
  color: var(--text-main);
  box-sizing: border-box;
}

.custom-form textarea {
  resize: vertical;
  min-height: 90px;
}

.custom-form input:focus,
.custom-form select:focus,
.custom-form textarea:focus {
  border-color: var(--accent-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 137, 40, 0.15);
}

.form-error {
  color: #DC2626;
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

/* =============================================================
   Sleek Homepage Hero Showcase Card
   ============================================================= */
.hero-showcase-card {
  background: #FFFFFF;
  border: 1px solid rgba(184, 137, 40, 0.22);
  border-radius: 20px;
  padding: 2.4rem 2rem;
  box-shadow: 0 20px 45px rgba(23, 40, 60, 0.08), 0 2px 8px rgba(184, 137, 40, 0.05);
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-showcase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(23, 40, 60, 0.12), 0 4px 14px rgba(184, 137, 40, 0.1);
}

.showcase-emblem-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
}

.showcase-emblem-img {
  height: 96px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(184, 137, 40, 0.28));
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}

.hero-showcase-card:hover .showcase-emblem-img {
  transform: scale(1.04);
}

.showcase-firm-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 0 0 0.2rem 0;
  letter-spacing: -0.3px;
}

.showcase-firm-en {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.showcase-quote-box {
  background: linear-gradient(135deg, rgba(244, 240, 232, 0.75) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-right: 3px solid var(--accent-gold);
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  margin: 1.35rem 0;
  text-align: right;
  position: relative;
}

.showcase-quote-text {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--primary-navy);
  margin: 0 0 0.45rem 0;
}

.showcase-quote-text strong {
  color: var(--accent-gold);
  font-weight: 700;
}

.showcase-quote-author {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.showcase-features-badges {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.25rem 0;
  text-align: right;
}

.s-badge-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.9rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 500;
  transition: all 0.2s ease;
}

.s-badge-item:hover {
  background: #FFFFFF;
  border-color: var(--accent-gold);
  transform: translateX(-2px);
}

.s-badge-icon {
  font-size: 1.1rem;
}

.showcase-footer-link {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.showcase-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-gold);
  font-size: 0.9rem;
  font-weight: 700;
  transition: gap 0.2s ease;
}

.showcase-more-link:hover {
  gap: 0.65rem;
  color: var(--primary-navy);
}

@media (max-width: 991px) {
  .hero-showcase-card {
    max-width: 100%;
    margin-top: 2rem;
  }
}

/* =============================================================
   Contact Map & Neshan Navigation Card
   ============================================================= */
.contact-map-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 180px;
}

.map-embed-wrap {
  width: 100%;
  flex: 1;
  min-height: 165px;
  position: relative;
  background: linear-gradient(135deg, #F5F2EA 0%, #EAECEF 100%);
  overflow: hidden;
}

.office-map-iframe {
  width: 100%;
  height: 100%;
  min-height: 165px;
  border: 0;
  display: block;
}

.neshan-navigation-box {
  padding: 0.65rem 1rem;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex-shrink: 0;
  border-top: 1px solid var(--border-light);
}

.neshan-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.neshan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.neshan-destination {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.neshan-actions-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-neshan-main {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF !important;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.22);
  transition: all 0.25s ease;
}

.btn-neshan-main:hover {
  background: linear-gradient(135deg, #0369A1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.neshan-icon-wrap {
  background: #FFFFFF;
  border-radius: var(--radius-full);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.neshan-btn-text strong {
  font-size: 0.82rem;
  font-weight: 800;
  color: #FFFFFF;
}

.map-alt-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle, #F8FAFC);
  border: 1px solid var(--border-light, #E2E8F0);
  color: var(--text-main, #334155);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.map-alt-pill:hover {
  background: #E2E8F0;
  color: var(--primary-navy);
}

.alternative-maps-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

.map-alt-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.map-alt-pill:hover {
  background: #FFFFFF;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}


/* ============================================================
   CONSULTATION FORM & STREAMLINED SEARCH POP-OVER STYLES
   ============================================================ */

/* 1. Header Search Toggle & Popover */
.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.header-search-toggle-btn:hover,
.header-search-toggle-btn.active {
  background: var(--accent-gold);
  color: #071524;
  border-color: var(--accent-gold);
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.4);
}

.header-search-popover {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 360px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(23, 40, 60, 0.16);
  padding: 0.75rem;
  z-index: 1050;
  animation: fadeInDown 0.2s ease;
}

.header-search-popover.active {
  display: block;
}

@media (max-width: 576px) {
  .header-search-popover {
    width: 290px;
    left: -20px;
  }
}

.header-search-popover-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  transition: border-color 0.2s ease;
}

.header-search-popover-form:focus-within {
  border-color: var(--accent-gold);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(184, 137, 40, 0.15);
}

.header-search-popover-form .header-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.45rem 0.5rem;
  font-size: 0.9rem;
  outline: none;
  color: var(--primary-navy);
  font-family: inherit;
  width: 100%;
}

.header-search-submit-btn {
  background: transparent;
  border: none;
  color: var(--primary-navy);
  cursor: pointer;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.header-search-submit-btn:hover {
  background: var(--accent-gold);
  color: #FFFFFF;
}

.header-search-close-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.header-search-close-btn:hover {
  color: #DC2626;
}

/* 2. Consultation Section Grid & Card */
.consultation-section-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.75rem;
  align-items: stretch;
}

@media (max-width: 992px) {
  .consultation-section-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.consultation-form-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.85rem;
  box-shadow: 0 10px 30px rgba(23, 40, 60, 0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.consultation-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--primary-navy));
}

.c-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent-gold-soft);
  color: #8C6615;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.c-form-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.45rem;
}

.c-form-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.6rem;
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748B' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.75rem center;
  padding-left: 2rem !important;
}

.required-star {
  color: #DC2626;
  font-weight: 700;
}

.optional-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.consultation-submit-btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.form-trust-guarantee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.65rem 0.85rem;
  background: #F8FAFC;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.form-trust-guarantee svg {
  flex-shrink: 0;
  color: var(--accent-gold);
}

.contact-side-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
}

.spinner-svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* ============================================================
   CRO FUNNEL ENHANCEMENTS & ACCESSIBILITY STYLES
   ============================================================ */

/* Context Passing Badge */
.context-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFFBEB;
  border: 1.5px solid #F59E0B;
  color: #92400E;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1rem;
  width: 100%;
  animation: fadeInDown 0.25s ease;
}

.context-badge-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.context-badge-text {
  flex: 1;
  line-height: 1.5;
}

.context-badge-reset-btn {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid #D97706;
  color: #B45309;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.context-badge-reset-btn:hover {
  background: #F59E0B;
  color: #FFFFFF;
}

/* Form Accessibility & Touch Targets */
.form-field-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 400;
}

.form-control {
  min-height: 48px;
  font-size: 0.98rem;
  border-radius: var(--radius-sm);
}

.form-control:focus {
  border-color: var(--accent-gold) !important;
  box-shadow: 0 0 0 3px rgba(184, 137, 40, 0.2) !important;
}

.form-control.is-invalid {
  border-color: #DC2626 !important;
  background-color: #FEF2F2 !important;
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
}

/* Supervisor Phones Card in Contact Panel */
.supervisor-phones-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.25rem;
}

.supervisor-phones-card .detail-content h4 {
  color: var(--accent-gold);
  font-weight: 700;
}

.supervisor-phones-card a:hover {
  text-decoration: underline !important;
}

@media (max-width: 768px) {
  .consultation-form-card {
    padding: 1.5rem 1.1rem;
  }
  .consultation-submit-btn {
    min-height: 50px;
    font-size: 1.02rem;
  }
}


/* ============================================================
   WCAG 2.2 AA ACCESSIBILITY ENHANCEMENTS
   ============================================================ */

/* WCAG 2.4.1 Bypass Blocks: Skip to Content */
.skip-link {
  position: absolute;
  top: -120px;
  right: 1.5rem;
  background: var(--primary-navy);
  color: #FFFFFF !important;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  z-index: 99999;
  border: 2px solid var(--accent-gold);
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: top 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1.25rem;
  outline: 3px solid #F6D889 !important;
  outline-offset: 3px !important;
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* WCAG 2.4.7 & 2.4.11 Focus Appearance (Distinct, contrast >= 3:1 outline) */
:focus-visible {
  outline: 2.5px solid var(--accent-gold-text, #9E6F18) !important;
  outline-offset: 2.5px !important;
}

/* Focus ring on dark navy backgrounds */
.site-footer :focus-visible,
.contact-info-panel :focus-visible,
[style*="background:var(--primary-navy)"] :focus-visible,
.btn-primary:focus-visible {
  outline: 2.5px solid #F6D889 !important;
  outline-offset: 2.5px !important;
}

/* Remove default outlines on mouse click while preserving keyboard accessibility */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

/* Form controls visible focus state */
.form-control:focus-visible {
  outline: 2.5px solid var(--accent-gold, #9E6F18) !important;
  outline-offset: 1px !important;
  border-color: var(--accent-gold, #9E6F18) !important;
  box-shadow: 0 0 0 3px rgba(158, 111, 24, 0.2) !important;
}

/* WCAG 2.5.8 Touch Target Sizes (Min 44x44px for primary controls, min 24x24px for secondary) */
.mobile-toggle {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.header-search-toggle-btn {
  min-width: 44px !important;
  min-height: 44px !important;
  width: 44px !important;
  height: 44px !important;
}

.header-search-submit-btn,
.header-search-close-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.context-badge-reset-btn {
  min-height: 32px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn {
  min-height: 44px;
}

.btn-sm {
  min-height: 38px;
}

@media (max-width: 768px) {
  .btn,
  .btn-sm,
  .btn-gold,
  .btn-outline,
  .social-pill,
  .map-alt-pill,
  .btn-neshan-main {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-link,
  .nav-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}


/* ==========================================================================
   Legal & Compliance Pages Styling (Privacy, Terms, Disclaimer, Unified)
   ========================================================================== */

.legal-page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.legal-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  background: rgba(200, 162, 82, 0.14);
  color: var(--accent-gold-text);
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid rgba(200, 162, 82, 0.35);
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 90px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.legal-sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-toc-link {
  display: block;
  font-size: 0.88rem;
  color: var(--text-color);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  border-right: 3px solid transparent;
}

.legal-toc-link:hover,
.legal-toc-link:focus-visible {
  background: rgba(158, 111, 24, 0.08);
  color: var(--accent-gold-text);
  border-right-color: var(--accent-gold);
}

.legal-doc-switchers {
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.legal-doc-switcher-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-radius: 3px;
  font-size: 0.85rem;
  text-decoration: none;
  background: var(--bg-subtle);
  color: var(--primary-navy);
  font-weight: 600;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.legal-doc-switcher-btn:hover {
  background: var(--primary-navy);
  color: #FFFFFF;
  border-color: var(--primary-navy);
}

.legal-doc-switcher-btn.active {
  background: rgba(200, 162, 82, 0.14);
  color: var(--accent-gold-text);
  border-color: var(--accent-gold);
  font-weight: 700;
}

.legal-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-sm);
}

.legal-section {
  margin-bottom: 2.75rem;
  scroll-margin-top: 110px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section-title {
  font-size: 1.35rem;
  color: var(--primary-navy);
  font-weight: 800;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--border-color);
}

.legal-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 3px;
  background: var(--primary-navy);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.legal-lead-text {
  font-size: 1.02rem;
  line-height: 2;
  color: var(--text-color);
  margin-bottom: 1.25rem;
  text-align: right;
}

.legal-text-p {
  font-size: 0.98rem;
  line-height: 1.95;
  color: var(--text-color);
  margin-bottom: 1rem;
  text-align: right;
}

.legal-list {
  padding-right: 1.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.95;
}

.legal-list li {
  margin-bottom: 0.65rem;
  color: var(--text-color);
  font-size: 0.96rem;
}

.legal-list li strong {
  color: var(--primary-navy);
}

.legal-callout-gold {
  background: #F7F5F0;
  border: 1px solid #E5E7EB;
  border-right: 3px solid var(--accent-gold);
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.legal-callout-navy {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-right: 3px solid var(--primary-navy);
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.legal-callout-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-callout-gold .legal-callout-title {
  color: var(--accent-gold-text);
}

.legal-callout-navy .legal-callout-title {
  color: var(--primary-navy);
}

.legal-unified-tabnav {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.75rem;
  overflow-x: auto;
}

.legal-unified-tab {
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  white-space: nowrap;
  transition: all 0.2s;
}

.legal-unified-tab:hover,
.legal-unified-tab.active {
  background: var(--primary-navy);
  color: #FFFFFF;
  border-color: var(--primary-navy);
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
  .legal-content-card {
    padding: 1.75rem 1.25rem;
  }
}


/* ==========================================================================
   Mobile UX & Responsive Enhancements (Sticky Bar, Header Controls, Tables)
   ========================================================================== */

/* Desktop defaults: hide mobile-only interactive controls */
.mobile-header-controls {
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

li.mobile-drawer-only.pwa-drawer-install-item[hidden],
.pwa-install-banner[hidden],
.pwa-install-action-btn[hidden],
.pwa-ios-guide[hidden],
.pwa-inapp-guide[hidden] {
  display: none !important;
}

.pwa-drawer-install-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.14);
  color: #F3D98B;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pwa-drawer-install-btn:hover,
.pwa-drawer-install-btn:focus-visible {
  background: var(--accent-gold);
  color: #FFFFFF;
}

.pwa-install-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 989;
  max-width: 420px;
  background: rgba(23, 40, 60, 0.98);
  color: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 14px;
  padding: 0.72rem 0.85rem;
  box-shadow: 0 12px 32px rgba(7, 21, 36, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pwa-install-banner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.pwa-install-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
}

.pwa-install-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #FAF7F2 0%, #EFE6D5 100%);
  color: #17283C;
  border: 1.5px solid #D4AF37;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.pwa-install-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.pwa-install-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pwa-install-text strong {
  font-size: 0.84rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
}

.pwa-install-text span {
  font-size: 0.72rem;
  color: #CBD5E1;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.pwa-install-action-btn {
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  border-radius: 9px;
  border: 1px solid rgba(243, 217, 139, 0.45);
  background: var(--accent-gold, #9E6F18);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.pwa-install-action-btn:hover {
  background: var(--accent-gold-hover, #865C0F);
}

.pwa-install-dismiss-btn {
  min-width: 34px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #E2E8F0;
  font-size: 0.92rem;
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pwa-install-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.pwa-ios-guide,
.pwa-inapp-guide {
  margin-top: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(212, 175, 55, 0.32);
  font-size: 0.76rem;
  line-height: 1.7;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pwa-guide-body {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  flex: 1 1 200px;
  min-width: 0;
}

.pwa-ios-guide svg,
.pwa-inapp-guide svg {
  flex-shrink: 0;
  color: #F3D98B;
}

.pwa-guide-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.02rem 0.38rem;
  margin: 0 0.12rem;
  border-radius: 5px;
  background: rgba(243, 217, 139, 0.18);
  border: 1px solid rgba(243, 217, 139, 0.45);
  color: #F3D98B;
  font-weight: 800;
  font-size: 0.72rem;
  direction: ltr;
}

.pwa-copy-link-btn {
  min-height: 32px;
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(243, 217, 139, 0.55);
  background: rgba(158, 111, 24, 0.92);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.pwa-copy-link-btn:hover {
  background: var(--accent-gold-hover, #865C0F);
}

body.has-pwa-banner .back-to-top-btn {
  bottom: calc(36px + var(--pwa-banner-height, 92px));
}

/* Responsive Table Wrapper */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-md);
}

@media (max-width: 768px) {
  /* Safe-area buffer for bottom navigation bar & floating triggers so content is never obscured */
  body {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Header Controls on Mobile (Quick Call + Hamburger) */
  .mobile-header-controls {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
  }

  .mobile-header-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0.4rem 0.85rem;
    border-radius: 9px;
    background: rgba(212, 175, 55, 0.16);
    color: #F3D98B !important;
    border: 1px solid rgba(212, 175, 55, 0.45);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .mobile-header-call-btn:hover,
  .mobile-header-call-btn:active {
    background: var(--accent-gold);
    color: #FFFFFF !important;
  }

  .mobile-header-call-btn:focus-visible {
    outline: 2.5px solid #F3D98B !important;
    outline-offset: 2px !important;
  }

  /* Mobile Bottom Navigation Bar (4-Tab App Shell) */
  .mobile-bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.25rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(23, 40, 60, 0.12);
    box-shadow: 0 -4px 20px rgba(23, 40, 60, 0.08);
    padding-top: 0.35rem;
    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

  .bottom-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 48px;
    padding: 0.32rem 0.2rem;
    border-radius: 10px;
    color: var(--text-light, #505E6E);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item:active {
    transform: scale(0.96);
  }

  .bottom-nav-item:focus-visible {
    outline: 2.5px solid var(--accent-gold-text) !important;
    outline-offset: 1px !important;
  }

  .bottom-nav-icon {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    color: inherit;
  }

  .bottom-nav-label {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .bottom-nav-item.active {
    color: var(--primary-navy, #17283C);
    background: rgba(158, 111, 24, 0.12);
  }

  .bottom-nav-item.active::before {
    content: "";
    position: absolute;
    top: 0;
    width: 26px;
    height: 2.5px;
    border-radius: 999px;
    background: var(--accent-gold, #9E6F18);
  }

  .bottom-nav-item.active .bottom-nav-icon {
    color: var(--accent-gold, #9E6F18);
  }

  .bottom-nav-item.active .bottom-nav-label {
    font-weight: 800;
    color: var(--primary-navy, #17283C);
  }

  .pwa-install-banner {
    left: 12px;
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 24px);
  }

  body.has-pwa-banner .back-to-top-btn {
    bottom: calc(90px + var(--pwa-banner-height, 108px) + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Responsive Tables on Mobile */
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
  }

  .cases-table {
    min-width: 580px;
  }

  /* Long text & content word wrap */
  article,
  .article-body,
  .story-body-text,
  .legal-text-p,
  .legal-lead-text,
  .card-desc,
  .section-desc {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
  }

  /* Nav Menu Drawer Links */
  .nav-menu .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
  }
}

/* Micro-screen optimizations (iPhone SE / 375px and 320px) */
@media (max-width: 375px) {
  .hero-title {
    font-size: 1.42rem;
    line-height: 1.4;
  }

  .hero-slogan {
    font-size: 0.92rem;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .brand-logo {
    height: 44px;
  }

  .bottom-nav-label {
    font-size: 0.67rem;
  }

  .bottom-nav-icon {
    width: 19px;
    height: 19px;
  }

  .mobile-header-call-btn .mobile-call-text {
    display: none; /* Collapse to icon-only on very narrow screen */
  }

  .mobile-header-call-btn {
    padding: 0.4rem;
    width: 44px;
    height: 44px;
  }
}


/* Auth page responsive container */
.auth-section {
  padding-top: 3.5rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .auth-section {
    padding-top: 1.5rem !important;
    padding-bottom: 2rem !important;
    min-height: auto !important;
    align-items: flex-start !important;
  }
}


/* ========================================================
   LEGAL ARTICLE TYPOGRAPHY & READING EXPERIENCE (6.1 - 6.4)
   ======================================================== */

:root {
  --article-max-width: 720px;
  --article-font-size: 1.02rem; /* refined & delicate typography */
  --article-line-height: 1.82;  /* comfortable legal reading cadence */
  --article-paragraph-gap: 1.3em;
  --article-sidebar-width: 310px;
}

/* Article Container & Two-Column Reading Layout */
.article-reading-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.article-reading-container-single {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.article-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 310px;
  gap: 2.75rem;
  align-items: start;
}

.article-main-content {
  max-width: 720px;
  width: 100%;
  box-sizing: border-box;
}

/* Article Body Typography (Strictly RTL, Natural Right Alignment, NO Justify) */
.article-body-text {
  font-family: var(--font-family);
  font-size: var(--article-font-size);
  font-weight: 350;
  line-height: var(--article-line-height);
  color: var(--text-main, #1F2937);
  text-align: right;
  direction: rtl;
  letter-spacing: -0.015em;
}

.article-body-text p {
  margin-top: 0;
  margin-bottom: var(--article-paragraph-gap);
  text-align: right;
  font-weight: 350;
  line-height: var(--article-line-height);
}

.article-body-text p:last-child {
  margin-bottom: 0;
}

/* Headings (H2 / H3) - Visually Prominent & Scannable */
.article-body-text h2,
.article-h2 {
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--primary-navy, #17283C);
  margin-top: 2.2em;
  margin-bottom: 0.85em;
  line-height: 1.45;
  border-right: 4px solid var(--accent-gold, #9E6F18);
  padding-right: 0.85rem;
  scroll-margin-top: 100px;
}

.article-body-text h3,
.article-h3 {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--primary-light, #253D5B);
  margin-top: 1.8em;
  margin-bottom: 0.7em;
  line-height: 1.5;
  scroll-margin-top: 100px;
}

/* Legal Callout Boxes (Legal Warning, Tip, Statute) */
.legal-callout {
  border-radius: 12px;
  padding: 1.35rem 1.6rem;
  margin: 2em 0;
  line-height: 1.85;
  font-size: 0.98rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  direction: rtl;
  text-align: right;
  box-sizing: border-box;
}

.legal-callout-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.legal-callout-body {
  margin: 0;
  line-height: 1.85;
}

/* Warning Callout: Contrast > 7:1 (exceeds WCAG 4.5:1 requirement) */
.legal-callout-warning {
  background-color: #FFFBEB;
  border: 1px solid #FCD34D;
  border-right: 5px solid #D97706;
  color: #78350F;
}

.legal-callout-warning .legal-callout-header {
  color: #92400E;
}

/* Tip Callout */
.legal-callout-tip {
  background-color: #F0FDF4;
  border: 1px solid #86EFAC;
  border-right: 5px solid #16A34A;
  color: #14532D;
}

.legal-callout-tip .legal-callout-header {
  color: #166534;
}

/* Law / Statute Quote Callout */
.legal-callout-law {
  background-color: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-right: 5px solid var(--primary-navy, #17283C);
  color: #1E293B;
}

.legal-callout-law .legal-callout-header {
  color: var(--primary-navy, #17283C);
}

/* Blockquote for statutory quotes */
.legal-blockquote {
  background: rgba(23, 40, 60, 0.04);
  border-right: 4px solid var(--accent-gold, #9E6F18);
  padding: 1.15rem 1.6rem;
  margin: 1.8em 0;
  border-radius: 0 10px 10px 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--primary-navy, #17283C);
  line-height: 1.95;
  font-style: normal;
  direction: rtl;
  text-align: right;
}

/* Legal Statute Badge (e.g. ماده ۲) */
.legal-statute-badge {
  font-weight: 700;
  color: var(--primary-navy, #17283C);
  background: rgba(158, 111, 24, 0.12);
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  font-size: 0.94em;
  display: inline-block;
  white-space: nowrap;
}

/* Ordered and Unordered Lists in Articles */
.article-body-text ol,
.article-body-text ul {
  padding-right: 1.5rem;
  padding-left: 0;
  margin-top: 0.75rem;
  margin-bottom: var(--article-paragraph-gap);
  direction: rtl;
}

.article-body-text li {
  margin-bottom: 0.95rem;
  line-height: var(--article-line-height);
}

.article-body-text li:last-child {
  margin-bottom: 0;
}

/* Reading Companion Sidebar */
.article-reading-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.sidebar-widget-card {
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.sidebar-widget-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--primary-navy, #17283C);
  margin-bottom: 0.9rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-light, #F1F5F9);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Table of Contents (TOC) */
.article-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.article-toc-link {
  display: block;
  font-size: 0.86rem;
  color: var(--text-muted, #64748B);
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  border-right: 3px solid transparent;
  transition: all 0.2s ease;
  line-height: 1.6;
}

.article-toc-link:hover,
.article-toc-link.active {
  color: var(--accent-gold-text, #966712);
  background: rgba(158, 111, 24, 0.08);
  border-right-color: var(--accent-gold, #9E6F18);
  font-weight: 700;
}

/* Reading Time Indicator */
.reading-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--accent-gold-text, #966712);
  background: rgba(158, 111, 24, 0.09);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
}

/* Reading Consultation Card */
.sidebar-consult-card {
  background: linear-gradient(145deg, #17283C 0%, #0d1b2a 100%);
  color: #FFFFFF;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(23, 40, 60, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.sidebar-consult-card h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.sidebar-consult-card p {
  color: #CBD5E1;
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .article-reading-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-reading-sidebar {
    position: static;
    order: 2; /* Moves below article on tablet and mobile */
    max-width: 720px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .article-reading-container,
  .article-reading-container-single {
    padding: 0 1rem;
  }

  .article-body-text {
    font-size: 1.02rem; /* ~16.3px */
    line-height: 1.8;
  }

  .article-body-text h2,
  .article-h2 {
    font-size: 1.3rem;
    margin-top: 1.8em;
  }

  .article-body-text h3,
  .article-h3 {
    font-size: 1.12rem;
    margin-top: 1.5em;
  }

  .legal-callout {
    padding: 1.15rem 1.25rem;
    margin: 1.5em 0;
  }
}


/* ==========================================================================
   Legal Trust Signals & Credibility Framework (7.1, 7.2, 7.3, 7.4)
   ========================================================================== */
.site-trust-bar {
  background-color: #0C1E30;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  color: #F1F5F9;
  font-size: 0.82rem;
  line-height: 1.4;
  position: relative;
  z-index: 990;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
}

.trust-bar-scroll-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.85rem;
  flex-wrap: nowrap;
}

.trust-signal-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #F1F5F9;
  white-space: nowrap;
  font-weight: 500;
}

.trust-signal-icon {
  width: 16px;
  height: 16px;
  color: #F59E0B;
  flex-shrink: 0;
}

.trust-signal-text {
  letter-spacing: 0.2px;
}

.trust-signal-text strong {
  color: #FFFFFF;
  font-weight: 700;
}

.trust-bar-divider {
  color: rgba(212, 175, 55, 0.4);
  font-size: 0.75rem;
  user-select: none;
}

.bar-membership-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(13, 37, 63, 0.05);
  color: var(--primary-navy);
  border: 1px solid rgba(13, 37, 63, 0.18);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s;
}

.bar-membership-badge:hover {
  background: rgba(13, 37, 63, 0.08);
  border-color: var(--accent-gold);
}

.lawyer-credentials-strip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.86rem;
}

/* Responsive adaptations for Trust Bar */
@media (max-width: 991px) {
  .trust-bar-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 0.25rem 0;
    gap: 0.85rem;
  }
  .trust-bar-scroll-wrapper::-webkit-scrollbar {
    display: none;
  }
  .trust-signal-item {
    font-size: 0.78rem;
    flex-shrink: 0;
  }
  .footer-accreditation-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .site-trust-bar {
    font-size: 0.75rem;
  }
  .trust-bar-scroll-wrapper {
    gap: 0.65rem;
  }
  .trust-signal-icon {
    width: 14px;
    height: 14px;
  }
}


/* ==========================================================================
   Article Journey, Share Buttons & Related Content (9.1, 9.2, 9.3, 9.4)
   ========================================================================== */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.share-whatsapp {
  background: #E8F5E9;
  color: #1B5E20;
  border-color: #A5D6A7;
}
.share-whatsapp:hover {
  background: #25D366;
  color: #FFFFFF;
}

.share-telegram {
  background: #E1F5FE;
  color: #0277BD;
  border-color: #81D4FA;
}
.share-telegram:hover {
  background: #0088CC;
  color: #FFFFFF;
}

.share-eitaa {
  background: #FFF3E0;
  color: #E65100;
  border-color: #FFCC80;
}
.share-eitaa:hover {
  background: #FF6F00;
  color: #FFFFFF;
}

.share-bale {
  background: #E0F2F1;
  color: #004D40;
  border-color: #80CBC4;
}
.share-bale:hover {
  background: #00897B;
  color: #FFFFFF;
}

.share-copy {
  background: var(--bg-subtle, #F8FAFC);
  color: var(--primary-navy, #17283C);
  border-color: var(--border-color, #E2E8F0);
}
.share-copy:hover {
  background: var(--primary-navy, #17283C);
  color: #FFFFFF;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 860px) {
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Footer E-Namad Trust Badge Container
   ========================================================================== */
.footer-enamad-box {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-enamad-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.footer-enamad-box a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}

.footer-enamad-box img {
  max-width: 78px !important;
  max-height: 78px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
  object-fit: contain;
}

@media (max-width: 768px) {
  .footer-trust-seals {
    justify-content: flex-start;
    margin-top: 1.5rem;
  }
}

/* =============================================================
   Full-Width Edge-to-Edge Hero Architecture (Vaziri Law Benchmark)
   ============================================================= */
.hero-section-fullwidth {
  width: 100%;
  position: relative;
  padding: calc(80px + 3.5rem) 0 4.5rem;
  background-color: #071524;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.16) 0%, transparent 65%),
              linear-gradient(145deg, #071524 0%, #0d2238 50%, #071524 100%);
  color: #FFFFFF;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.hero-section-fullwidth::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(212, 175, 55, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-container-wide {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.hero-content-center {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-prestige-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.35rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 9999px;
  color: #E6C364;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-prestige-pill .pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E6C364;
  box-shadow: 0 0 8px #E6C364;
  display: inline-block;
}

.hero-title-lead {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.35;
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero-title-lead .gold-text {
  color: #E6C364;
  background: linear-gradient(135deg, #FFF0BA 0%, #E6C364 50%, #B88928 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-lead-slogan {
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  color: rgba(244, 240, 232, 0.9);
  font-weight: 500;
  line-height: 1.9;
  max-width: 780px;
  margin: 0 auto 1.5rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-lead-desc {
  font-size: 1rem;
  color: rgba(244, 240, 232, 0.75);
  line-height: 1.9;
  max-width: 740px;
  margin: 0 auto 2.25rem;
}

.hero-actions-lead {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #FFFFFF;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-text-white {
  background: transparent;
  color: rgba(244, 240, 232, 0.85) !important;
  border: none;
  padding: 0.75rem 1.2rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.btn-text-white:hover {
  color: #E6C364 !important;
  transform: translateX(-3px);
}

/* 3 Pillars Authority Ribbon */
.hero-pillars-ribbon {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 20px;
  padding: 2rem 2.25rem;
  margin-top: 4.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.pillar-ribbon-col {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.pillar-ribbon-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.pillar-ribbon-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
}

.pillar-ribbon-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.pillar-ribbon-desc {
  font-size: 0.88rem;
  color: rgba(244, 240, 232, 0.75);
  line-height: 1.75;
  margin: 0;
}

.pillar-ribbon-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  align-self: stretch;
}

@media (max-width: 991px) {
  .hero-section-fullwidth {
    padding: calc(75px + 2rem) 0 3.5rem;
  }
  .hero-pillars-ribbon {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
    margin-top: 3rem;
  }
  .pillar-ribbon-divider {
    display: none;
  }
}

/* Workflow Step Cards (Section 1 Refinement) */
.section-workflow {
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border-color);
  padding: 5rem 0;
}

.workflow-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.workflow-step-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.6rem;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.workflow-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(23, 40, 60, 0.08);
  border-color: var(--accent-gold);
}

.workflow-step-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-gold);
  opacity: 0.9;
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -1px;
  font-feature-settings: "ss01";
}

.workflow-step-card .card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

.workflow-step-card .card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 991px) {
  .workflow-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .workflow-steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Step 2: Responsive Portal Grids, Auth Mobile Polish, Enamad & Vector Map
   ========================================================================== */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.form-grid-2-1 {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1.25rem;
}

.profile-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.case-task-row-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.case-task-row-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.responsive-auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .profile-main-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .form-grid-2,
  .form-grid-2-1,
  .case-task-row-top,
  .case-task-row-bottom {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .site-footer {
    padding: 3.5rem 0 calc(5.75rem + env(safe-area-inset-bottom, 0px));
  }

  body.auth-page {
    padding-bottom: 16px !important;
  }

  body.auth-page .mobile-bottom-nav,
  body.auth-page .pwa-install-banner {
    display: none !important;
  }

  body.auth-page .back-to-top-btn {
    bottom: 16px !important;
  }

  body.auth-page .auth-section {
    padding-top: 1.25rem !important;
    min-height: calc(100vh - 96px) !important;
  }
}

/* Enamad Trust Seal Graceful Fallback */
.footer-enamad-box {
  position: relative;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-enamad-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.enamad-link {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--primary-navy);
}

.enamad-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  text-align: center;
  transition: opacity 0.25s ease;
}

.enamad-fallback-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.15;
  white-space: nowrap;
}

.enamad-fallback-sub {
  font-size: 0.56rem;
  font-weight: 700;
  color: #7C5A10;
  background: rgba(212, 175, 55, 0.16);
  padding: 2px 5px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.25;
  display: inline-block;
  max-width: 100%;
}

.enamad-official-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
  font-size: 0;
  color: transparent;
}

/* Office Yousef-Abad Vector Map Card (Zero Third-Party Console Errors) */
.office-map-preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 175px;
  background: #F4F1EA;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  overflow: hidden;
}

.office-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.office-map-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.office-map-zone-pill {
  background: rgba(23, 40, 60, 0.9);
  color: #F8FAFC;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
}

.office-map-coords {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-navy);
  border: 1px solid rgba(23, 40, 60, 0.14);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  direction: ltr;
}

.office-map-pin-center {
  position: relative;
  z-index: 2;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid var(--accent-gold);
  border-radius: 12px;
  padding: 0.5rem 0.85rem;
  box-shadow: 0 8px 20px rgba(23, 40, 60, 0.14);
  margin: 0.4rem 0;
}

.office-map-pin-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(158, 111, 24, 0.18);
}

.office-map-pin-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.office-map-pin-text strong {
  font-size: 0.84rem;
  color: var(--primary-navy);
}

.office-map-pin-text span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.office-map-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.office-map-streets {
  background: rgba(255, 255, 255, 0.88);
  color: #334155;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.map-live-toggle {
  background: #FFFFFF;
  color: var(--primary-navy);
  border: 1px solid rgba(23, 40, 60, 0.25);
  border-radius: 8px;
  padding: 0.28rem 0.7rem;
  font-family: var(--font-family);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.map-live-toggle:hover {
  background: var(--primary-navy);
  color: #FFFFFF;
  border-color: var(--primary-navy);
}

/* ==========================================================================
   Digital Hamesh Engine: Vertical Legal Ledger & Co-Lawyer Collaboration
   ========================================================================== */
.case-phase-banner {
  background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
  border: 1.5px solid #86EFAC;
  border-right: 5px solid #16A34A;
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.08);
}

.case-phase-banner-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.hamesh-tasks-stack {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-bottom: 1.5rem;
}

.hamesh-task-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  padding: 1.35rem;
  box-shadow: 0 3px 14px rgba(23, 40, 60, 0.04);
}

.hamesh-task-card--completed {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.hamesh-task-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1rem;
}

.hamesh-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.workflow-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

.workflow-badge--hamesh {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.workflow-badge--peer {
  background: #F5F3FF;
  color: #6D28D9;
  border: 1px solid #DDD6FE;
}

.hamesh-status-pill {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
}

.hamesh-status-pill--pending_review {
  background: #EFF6FF;
  color: #1E40AF;
  border-color: #93C5FD;
}

.hamesh-status-pill--revision_required {
  background: #FFFBEB;
  color: #B45309;
  border-color: #FCD34D;
}

.hamesh-status-pill--approved,
.hamesh-status-pill--filed_in_sana {
  background: #DCFCE7;
  color: #15803D;
  border-color: #86EFAC;
}

.statutory-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
  background: #FFF7ED;
  color: #9A3412;
  border: 1px solid #FDBA74;
}

.statutory-badge--overdue {
  background: #FEF2F2;
  color: #B91C1C;
  border-color: #FCA5A5;
}

.sana-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #6EE7B7;
  border-radius: 8px;
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  margin-top: 0.5rem;
}

/* Vertical Legal Ledger (دفترچه هامش عمودی) */
.hamesh-ledger {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-right: 1rem;
  border-right: 2px dashed #CBD5E1;
  margin: 0.9rem 0 1.15rem;
}

.hamesh-entry {
  position: relative;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-right: 5px solid #64748B;
  border-radius: 10px;
  padding: 0.9rem 1.05rem;
}

.hamesh-entry--initial_instruction {
  background: #F8FAFF;
  border-color: #DBEAFE;
  border-right-color: #2563EB;
}

.hamesh-entry--progress_report {
  background: #F8FAFC;
  border-color: #CBD5E1;
  border-right-color: #475569;
}

.hamesh-entry--revision_request {
  background: #FFFBEB;
  border-color: #FDE68A;
  border-right-color: #D97706;
}

.hamesh-entry--approval,
.hamesh-entry--sana_filing {
  background: #F0FDF4;
  border-color: #BBF7D0;
  border-right-color: #16A34A;
}

.hamesh-entry--note {
  background: #FAF8F5;
  border-color: #E2DBD0;
  border-right-color: var(--accent-gold);
}

.hamesh-entry-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.hamesh-entry-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.hamesh-version-pill {
  background: #334155;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
}

.hamesh-entry-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hamesh-entry-body {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-main);
  white-space: pre-line;
  margin: 0;
}

.hamesh-entry-attachment {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(100, 116, 139, 0.25);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.hamesh-action-box {
  background: #FAF7F2;
  border: 1px solid #E2DBD0;
  border-radius: 12px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hamesh-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hamesh-decision-panel {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.95rem;
}

.hamesh-decision-panel--approve {
  border-top: 3px solid #16A34A;
}

.hamesh-decision-panel--revision {
  border-top: 3px solid #D97706;
}

.hamesh-status-notice {
  background: #EFF6FF;
  color: #1E3A8A;
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.hamesh-note-details summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-navy);
}

@media (max-width: 768px) {
  .hamesh-task-card {
    padding: 1rem;
  }

  .hamesh-ledger {
    padding-right: 0.7rem;
  }

  .hamesh-decision-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   Case Deliberation & Advisory Room (شورای دفاع و اتاق مشورت)
   ============================================================= */
.delib-privacy-banner {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1.5px solid #F59E0B;
  border-right: 5px solid #B45309;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #78350F;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.delib-anonymous-reminder {
  background: #FFF7ED;
  border: 1px solid #FDBA74;
  border-right: 4px solid #EA580C;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #9A3412;
  font-size: 0.84rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.delib-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.delib-status-pill--open {
  background: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #93C5FD;
}

.delib-status-pill--decided {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}

.delib-status-pill--archived {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

.delib-origin-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #EFF6FF;
  color: #1E3A8A;
  border: 1px solid #BFDBFE;
  border-radius: 8px;
  padding: 0.2rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.delib-origin-tag:hover {
  background: #DBEAFE;
}

.delib-list-card {
  background: #FAFBFD;
  border: 1px solid #E2E8F0;
  border-right: 4px solid var(--primary-navy);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.delib-ledger {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-right: 1rem;
  border-right: 2px dashed #CBD5E1;
  margin: 1rem 0 1.25rem;
}

.delib-arg {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-right: 5px solid #475569;
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.delib-arg--option_strategy {
  background: #F8FAFF;
  border-color: #DBEAFE;
  border-right-color: #1D4ED8;
}

.delib-arg--legal_basis {
  background: #F0FDF4;
  border-color: #BBF7D0;
  border-right-color: #15803D;
}

.delib-arg--devils_advocate {
  background: #FEF2F2;
  border-color: #FECACA;
  border-right-color: #DC2626;
}

.delib-arg--risk_assessment {
  background: #FAF5FF;
  border-color: #E9D5FF;
  border-right-color: #7E22CE;
}

.delib-type-tag {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
}

.delib-arg--option_strategy .delib-type-tag {
  background: #DBEAFE;
  color: #1E40AF;
}

.delib-arg--legal_basis .delib-type-tag {
  background: #DCFCE7;
  color: #166534;
}

.delib-arg--devils_advocate .delib-type-tag {
  background: #FEE2E2;
  color: #991B1B;
}

.delib-arg--risk_assessment .delib-type-tag {
  background: #F3E8FF;
  color: #6B21A8;
}

.delib-citation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.55rem;
}

.delib-two-col-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.delib-consultant-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E3A8A;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.delib-revoke-btn {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.delib-revoke-btn:hover {
  background: #FECACA;
}

@media (max-width: 900px) {
  .delib-two-col-grid {
    grid-template-columns: 1fr;
  }

  .delib-ledger {
    padding-right: 0.65rem;
  }
}

@media (min-width: 769px) {
  .nav-link {
    white-space: nowrap;
  }
}

/* ==========================================================================
   Phase 3 (Path B): «خارج از پرونده» (Lawyer Narratives Magazine Module)
   ========================================================================== */
.narrative-page-shell {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.narrative-hero-banner {
  background: linear-gradient(135deg, #102033 0%, #17283C 60%, #223852 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 3rem 2.25rem;
  margin-bottom: 2.25rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.narrative-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.narrative-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(212, 175, 55, 0.14);
  color: #F3D98B;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.narrative-hero-title {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 900;
  color: #FFFFFF;
  margin: 0 0 0.85rem 0;
  line-height: 1.3;
}

.narrative-hero-tagline {
  font-size: 1.08rem;
  color: #D7E1EC;
  line-height: 1.9;
  margin: 0 auto 1.75rem;
  max-width: 680px;
}

.narrative-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.narrative-filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.narrative-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.narrative-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 320px;
  max-width: 480px;
}

.narrative-search-form .form-control {
  min-height: 42px;
  font-size: 0.92rem;
}

.narrative-format-tabs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.narrative-chips-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-light);
}

.narrative-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--primary-navy);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.narrative-chip:hover {
  border-color: var(--accent-gold);
  background: var(--accent-gold-soft);
  color: var(--primary-navy);
}

.narrative-chip.active {
  background: var(--primary-navy);
  color: #FFFFFF;
  border-color: var(--primary-navy);
}

.narrative-chip--format.active {
  background: var(--accent-gold);
  color: #FFFFFF;
  border-color: var(--accent-gold);
}

.narrative-featured-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF6EE 100%);
  border: 1.5px solid rgba(158, 111, 24, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.narrative-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-gold);
  color: #FFFFFF;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.narrative-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.narrative-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.narrative-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(158, 111, 24, 0.45);
}

.narrative-card--corridor {
  background: #FAF6EE;
  border-right: 4px solid var(--accent-gold);
}

.narrative-meta-badges {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.narrative-moment-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(23, 40, 60, 0.07);
  color: var(--primary-navy);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.narrative-format-badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent-gold-soft);
  color: var(--accent-gold-text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.narrative-audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}

.narrative-card-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.55;
  margin: 0 0 0.75rem 0;
}

.narrative-card-title a {
  color: inherit;
  text-decoration: none;
}

.narrative-card-title a:hover {
  color: var(--accent-gold);
}

.narrative-card-excerpt {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin: 0 0 1rem 0;
}

.narrative-corridor-quote {
  font-size: 0.94rem;
  color: var(--primary-navy);
  font-weight: 600;
  line-height: 1.85;
  padding: 0.75rem 0.95rem;
  background: rgba(255, 255, 255, 0.75);
  border-right: 3px solid var(--accent-gold);
  border-radius: 6px;
  margin-bottom: 1rem;
}

.narrative-author-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border-light);
}

.narrative-portrait-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  border: 2px solid rgba(23, 40, 60, 0.18);
  flex-shrink: 0;
  background: #E2E8F0;
}

.narrative-portrait-lg {
  width: 72px;
  height: 72px;
  border-width: 2.5px;
  border-color: var(--accent-gold);
}

.narrative-avatar-fallback {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: #F3D98B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.08rem;
  flex-shrink: 0;
  border: 2px solid rgba(212, 175, 55, 0.45);
}

.narrative-avatar-fallback.narrative-portrait-lg {
  width: 72px;
  height: 72px;
  font-size: 1.6rem;
}

.narrative-card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.narrative-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 2rem 0 3rem;
}

.narrative-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--primary-navy);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.narrative-page-link:hover {
  border-color: var(--accent-gold);
  background: var(--accent-gold-soft);
}

.narrative-page-link.active {
  background: var(--primary-navy);
  color: #FFFFFF;
  border-color: var(--primary-navy);
}

.narrative-charter-box {
  background: linear-gradient(135deg, #FAF7F2 0%, #F4EFE4 100%);
  border: 1px solid var(--border-color);
  border-right: 5px solid var(--primary-navy);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin-top: 2rem;
}

/* Detail Reading View (Single Column 720px Magazine Layout) */
.narrative-detail-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.narrative-preview-banner {
  background: #FFFBEB;
  border: 1.5px solid #F59E0B;
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  margin-bottom: 1.75rem;
  color: #78350F;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.narrative-audio-box {
  background: #FAF6EE;
  border: 1px solid rgba(158, 111, 24, 0.32);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.narrative-audio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
}

.narrative-pull-quote {
  background: rgba(23, 40, 60, 0.04);
  border-right: 4px solid var(--accent-gold);
  border-radius: 0 12px 12px 0;
  padding: 1.35rem 1.75rem;
  margin: 2rem 0;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.95;
  color: var(--primary-navy);
}

.narrative-body-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.35rem 2.25rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.narrative-body-content {
  font-size: 1.07rem;
  line-height: 2;
  color: var(--text-main);
  text-align: right;
}

.narrative-body-content p {
  margin-top: 0;
  margin-bottom: 1.45em;
  line-height: 2;
}

.narrative-author-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.85rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.narrative-invite-box {
  background: var(--primary-navy);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2.15rem;
  text-align: center;
  margin-top: 2rem;
}

/* Submission Form */
.narrative-submit-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

.narrative-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.narrative-form-section-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--primary-navy);
  padding-bottom: 0.55rem;
  margin: 1.75rem 0 1.15rem 0;
  border-bottom: 1px solid var(--border-light);
}

.narrative-form-section-title:first-child {
  margin-top: 0;
}

.narrative-honeypot-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.narrative-charter-check {
  background: #FAF6EE;
  border: 1.5px solid rgba(158, 111, 24, 0.35);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.narrative-charter-check input[type="checkbox"] {
  margin-top: 0.3rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.narrative-account-portrait-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #F8FAFC;
  border: 1.5px solid rgba(23, 40, 60, 0.16);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.05rem;
  margin-bottom: 0.75rem;
}

.narrative-account-portrait-empty {
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 0.7rem 0.95rem;
  margin-bottom: 0.65rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.narrative-file-reselect-alert {
  margin-top: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: #FFFBEB;
  border: 1px solid #F59E0B;
  border-radius: 6px;
  color: #92400E;
  font-size: 0.82rem;
  line-height: 1.7;
  font-weight: 600;
}

.narrative-revision-alert {
  padding: 0.95rem 1.2rem;
  background: #FEF2F2;
  border: 1.5px solid #FCA5A5;
  border-radius: var(--radius-md);
  color: #991B1B;
  font-size: 0.9rem;
}

.profile-writings-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 4px 18px rgba(23, 40, 60, 0.04);
}

.profile-writings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.15rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid var(--border-light);
}

.profile-writings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.profile-writings-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.profile-writing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: #FCFBF8;
}

.writing-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.22rem 0.68rem;
  border-radius: 999px;
  white-space: nowrap;
}

.writing-status-pill.is-draft {
  background: #F1F5F9;
  color: #475569;
}

.writing-status-pill.is-pending {
  background: #FEF3C7;
  color: #92400E;
}

.writing-status-pill.is-rejected {
  background: #FEE2E2;
  color: #991B1B;
}

.writing-status-pill.is-published {
  background: #DCFCE7;
  color: #166534;
}

.narrative-featured-side {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
}

.narrative-featured-cover-link {
  display: block;
  width: clamp(230px, 26vw, 330px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(23, 40, 60, 0.12);
  box-shadow: var(--shadow-sm);
}

.narrative-featured-cover-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
}

.narrative-card-cover-link {
  display: block;
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(23, 40, 60, 0.08);
}

.narrative-card-cover-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.narrative-card:hover .narrative-card-cover-img {
  transform: scale(1.02);
}

.narrative-detail-cover-wrap {
  margin: 0 0 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
}

.narrative-detail-cover-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  display: block;
}

.narrative-detail-cover-caption {
  display: block;
  padding: 0.5rem 0.9rem;
  background: #F8FAFC;
  color: #64748B;
  font-size: 0.8rem;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.content-card-cover-link {
  display: block;
  margin-bottom: 0.9rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.content-card-cover-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
}

@media (max-width: 992px) {
  .narrative-featured-cover-link {
    width: 100%;
  }
  .narrative-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .narrative-featured-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .narrative-page-shell {
    padding-top: 2rem;
    padding-bottom: 4rem;
  }
  .narrative-hero-banner {
    padding: 2.15rem 1.35rem;
  }
  .narrative-grid {
    grid-template-columns: 1fr;
  }
  .narrative-body-card,
  .narrative-form-card {
    padding: 1.45rem 1.25rem;
  }
  .narrative-author-box {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================================
   WEB PUSH NOTIFICATIONS CARD & DASHBOARD STATUS PILL
   ======================================================== */

.push-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  box-shadow: 0 4px 18px rgba(23, 40, 60, 0.04);
}

.push-card [hidden] {
  display: none !important;
}

.push-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.push-card-title {
  font-size: 1.06rem;
  color: var(--primary-navy);
  margin: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.push-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.push-status-pill.is-active {
  background: #DCFCE7;
  color: #166534;
}

.push-status-pill.is-idle {
  background: #F1F5F9;
  color: #475569;
}

.push-status-pill.is-blocked {
  background: #FEE2E2;
  color: #991B1B;
}

.push-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 1rem;
}

.push-ios-hint,
.push-blocked-hint {
  font-size: 0.8rem;
  line-height: 1.7;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  margin-bottom: 0.9rem;
}

.push-ios-hint {
  background: #FAF6EE;
  border: 1px solid rgba(158, 111, 24, 0.35);
  color: #7C520E;
}

.push-blocked-hint {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.push-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.push-btn-full {
  width: 100%;
  justify-content: center;
  min-height: 44px;
  font-weight: 700;
}

.push-btn-half {
  flex: 1 1 130px;
  justify-content: center;
  min-height: 44px;
  font-size: 0.82rem;
}

.push-btn-danger {
  border-color: #FCA5A5 !important;
  color: #B91C1C !important;
}

.push-btn-danger:hover {
  background: #FEF2F2 !important;
  color: #991B1B !important;
}

.push-meta-row {
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.push-feedback-msg {
  margin-top: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.6;
}

.push-feedback-msg.is-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.push-feedback-msg.is-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.dashboard-push-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: var(--primary-navy);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dashboard-push-pill:hover {
  border-color: var(--accent-gold);
  background: #FAF6EE;
}

.dashboard-push-pill.is-active {
  background: #ECFDF5;
  border-color: #86EFAC;
  color: #166534;
}

/* ========================================================
   SEAMLESS BRANDED PWA LAUNCH SPLASH SCREEN (STANDALONE)
   ======================================================== */
.pwa-launch-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: #17283C;
  overflow: hidden;
  padding: 1.5rem;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.32s ease, transform 0.32s ease;
  will-change: opacity, transform;
}

.pwa-launch-splash[hidden] {
  display: none;
}

html.pwa-launch-splash-active #daadboomLaunchSplash {
  display: flex;
}

.pwa-launch-splash.is-leaving {
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
}

.pwa-splash-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(76vw, 380px);
  height: min(76vw, 380px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.24) 0%,
    rgba(158, 111, 24, 0.1) 44%,
    transparent 72%
  );
  pointer-events: none;
  will-change: transform, opacity;
  animation: pwaSplashHaloPulse 2.4s ease-in-out infinite;
}

.pwa-splash-sweep {
  position: absolute;
  top: -35%;
  left: -30%;
  width: 160%;
  height: 170%;
  background: linear-gradient(
    115deg,
    transparent 34%,
    rgba(243, 217, 139, 0.06) 44%,
    rgba(243, 217, 139, 0.2) 50%,
    rgba(243, 217, 139, 0.06) 56%,
    transparent 66%
  );
  pointer-events: none;
  will-change: transform, opacity;
  animation: pwaSplashLightSweep 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pwa-splash-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
}

.pwa-splash-emblem {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  background: rgba(12, 26, 42, 0.88);
  border: 1.5px solid rgba(212, 175, 55, 0.48);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.38), inset 0 0 18px rgba(212, 175, 55, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin-bottom: 0.55rem;
}

.pwa-splash-logo {
  height: 78px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

.pwa-splash-brand-fa {
  font-size: 1.32rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.2px;
  line-height: 1.35;
}

.pwa-splash-brand-en {
  font-size: 0.86rem;
  font-weight: 700;
  color: #F3D98B;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1.3;
  margin-right: -0.32em;
}

@keyframes pwaSplashHaloPulse {
  0% {
    transform: translate3d(-50%, -50%, 0) scale(0.92);
    opacity: 0.7;
  }
  50% {
    transform: translate3d(-50%, -50%, 0) scale(1.08);
    opacity: 1;
  }
  100% {
    transform: translate3d(-50%, -50%, 0) scale(0.95);
    opacity: 0.78;
  }
}

@keyframes pwaSplashLightSweep {
  0% {
    transform: translate3d(-75%, -10%, 0) rotate(-18deg);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  82% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(75%, 10%, 0) rotate(-18deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pwa-splash-halo,
  .pwa-splash-sweep {
    animation: none !important;
  }
  .pwa-launch-splash {
    transition: opacity 0.15s ease !important;
    transform: none !important;
  }
}

/* ========================================================
   BLAKES EDITORIAL SYSTEM — HEADER, HERO, HOME BANDS & NARRATIVE COMMENTS (v21)
   ======================================================== */

/* Tier 1: Slim Dark Utility Bar — Relative Flow (Scrolls Offscreen Like Blakes) */
.header-utility-bar {
  position: relative;
  z-index: 1010;
  width: 100%;
  min-height: 34px;
  background: #111E2D;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
}

/* Tier 2 Wrapper: Sticky White Navigation Bar ONLY */
.site-header-blakes {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #FFFFFF;
  box-shadow: 0 1px 0 rgba(229, 231, 235, 0.9);
  transition: box-shadow 0.25s ease;
}

.site-header-blakes.scrolled {
  box-shadow: 0 6px 24px rgba(17, 30, 45, 0.09);
}

.header-utility-inner {
  width: 100%;
  padding-inline: clamp(16px, 3.2vw, 48px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-utility-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.utility-sep {
  width: 1px;
  height: 11px;
  background: rgba(226, 232, 240, 0.28);
  flex-shrink: 0;
}

.utility-link,
.utility-user-trigger {
  background: transparent;
  border: none;
  color: #E2E8F0;
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 500;
  line-height: 1.4;
  padding: 0.2rem 0.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.utility-link:hover,
.utility-link.active,
.utility-user-trigger:hover,
.utility-user-wrap.open .utility-user-trigger {
  color: #E6C364;
}

.utility-user-wrap {
  position: relative;
}

.utility-user-wrap .user-dropdown-menu {
  left: 0;
  right: auto;
  top: calc(100% + 6px);
  border-radius: 2px;
}

.utility-user-wrap .badge-role-member {
  background: #F3F4F6;
  color: #4B5563;
  padding: 0.15rem 0.55rem;
  border-radius: 2px;
  font-size: 0.74rem;
  font-weight: 700;
}

/* Tier 2: Main White Navigation Bar + Slanted Navy Brand Block */
.header-main-bar {
  width: 100%;
  height: 74px;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  position: relative;
}

.header-main-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding-inline-start: 0;
  padding-inline-end: clamp(16px, 3.2vw, 48px);
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.header-brand-dock {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.header-brand-dock::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #C8A252;
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

.site-header-blakes .brand-logo-wrap {
  position: relative;
  z-index: 1;
  background: #17283C;
  margin-left: 3px;
  height: 100%;
  padding: 0 clamp(1.15rem, 2.4vw, 2.1rem) 0 clamp(1.9rem, 3.1vw, 2.65rem);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%);
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
}

.site-header-blakes .brand-logo,
.site-header-blakes .brand-emblem-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: rgba(244, 240, 224, 0.28);
  flex-shrink: 0;
}

.brand-wordmark-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-main-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.site-header-blakes .nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.5vw, 1.75rem);
  margin: 0;
  padding: 0;
}

.site-header-blakes .nav-link,
.site-header-blakes .nav-menu a.nav-link {
  color: #17283C;
  text-shadow: none;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 0.55rem 0.1rem;
  border-radius: 0;
  white-space: nowrap;
}

.site-header-blakes .nav-link:hover,
.site-header-blakes .nav-link.active,
.site-header-blakes .nav-menu a.nav-link:hover,
.site-header-blakes .nav-menu a.nav-link.active {
  color: #9E6F18;
}

.site-header-blakes .nav-link::after {
  height: 2px;
  border-radius: 0;
  background-color: #C8A252;
}

.header-main-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
  flex-shrink: 0;
}

/* Inline Expandable Search Directly Opposite Magnifier Icon */
.site-header-blakes .header-search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.header-inline-search-form {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 40px;
  width: clamp(195px, 19vw, 255px);
  padding-inline: 0.55rem;
  background: #FFFFFF;
  border: 1.5px solid #17283C;
  border-radius: 6px;
}

.header-inline-search-form[hidden] {
  display: none !important;
}

.header-inline-submit-icon {
  background: transparent;
  border: none;
  color: #17283C;
  padding: 0.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.header-inline-submit-icon:hover {
  color: #9E6F18;
}

.header-inline-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  color: #17283C;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  padding: 0.2rem 0.15rem;
}

.site-header-blakes .header-search-close-btn {
  padding: 0.15rem 0.3rem;
  font-size: 1.05rem;
  line-height: 1;
  color: #64748B;
  flex-shrink: 0;
}

.site-header-blakes .search-suggestions-dropdown {
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  width: 300px;
  border-radius: 2px;
}

.site-header-blakes .header-search-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid #E5E7EB;
  color: #17283C;
  flex-shrink: 0;
}

.site-header-blakes .header-search-toggle-btn:hover,
.site-header-blakes .header-search-toggle-btn.active {
  background: #17283C;
  color: #FFFFFF;
  border-color: #17283C;
  box-shadow: none;
}

.site-header-blakes .mobile-toggle {
  border-radius: 2px;
  background: transparent;
  border: 1px solid #CBD5E1;
  color: #17283C;
  min-width: 42px;
  min-height: 42px;
}

.site-header-blakes .mobile-toggle:hover {
  background: #F8FAFC;
  border-color: #17283C;
  color: #17283C;
}

@media (max-width: 992px) and (min-width: 769px) {
  .site-header-blakes .nav-menu {
    gap: 0.95rem !important;
  }
  .site-header-blakes .nav-link,
  .site-header-blakes .nav-menu a.nav-link {
    font-size: 0.87rem !important;
  }
  .site-header-blakes .brand-logo,
  .site-header-blakes .brand-emblem-img {
    height: 31px;
  }
  .brand-wordmark-img {
    height: 30px;
  }
  .site-header-blakes .brand-logo-wrap {
    padding: 0 1rem 0 1.65rem;
  }
}

@media (max-width: 768px) {
  .header-utility-bar {
    min-height: 32px;
  }
  .header-utility-inner {
    padding-inline: 14px;
  }
  .header-utility-links {
    gap: 0.65rem;
  }
  .utility-link,
  .utility-user-trigger {
    font-size: 0.74rem;
  }
  .header-main-bar {
    height: 62px;
  }
  .header-main-inner {
    padding-inline-end: 12px;
    gap: 0.5rem;
  }
  .header-brand-dock::before {
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
  }
  .site-header-blakes .brand-logo-wrap {
    margin-left: 2.5px;
    padding: 0 0.85rem 0 1.35rem;
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
    gap: 0.5rem;
  }
  .site-header-blakes .brand-logo,
  .site-header-blakes .brand-emblem-img {
    height: 30px;
  }
  .brand-divider {
    height: 20px;
  }
  .brand-wordmark-img {
    height: 26px;
  }
  .header-inline-search-form.is-open {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    width: min(270px, calc(100vw - 115px));
    z-index: 1030;
    box-shadow: 0 8px 24px rgba(17, 30, 45, 0.14);
  }
  .site-header-blakes .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1.25rem 1.35rem 5.5rem;
    max-height: calc(100vh - 96px);
    background: rgba(17, 30, 45, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 2px solid #C8A252;
  }
  .site-header-blakes .nav-menu.open {
    display: flex;
  }
  .site-header-blakes .header-main-nav {
    flex: 0 0 auto;
  }
  .site-header-blakes .nav-menu .nav-link,
  .site-header-blakes .nav-menu a.nav-link {
    color: rgba(255, 255, 255, 0.92);
    border-radius: 2px;
  }
  .site-header-blakes .nav-menu .nav-link:hover,
  .site-header-blakes .nav-menu .nav-link.active {
    color: #E6C364;
  }
}

@media (max-width: 390px) {
  .site-header-blakes .brand-logo,
  .site-header-blakes .brand-emblem-img {
    height: 26px;
  }
  .brand-wordmark-img {
    height: 24px;
  }
  .site-header-blakes .brand-logo-wrap {
    padding: 0 0.65rem 0 1.1rem;
    gap: 0.42rem;
  }
}

/* Full-Bleed Blakes Hero & 1-or-5 Slide Carousel */
.hero-section-fullwidth.hero-section-blakes {
  position: relative;
  width: 100%;
  min-height: clamp(500px, 74vh, 660px);
  padding: 0;
  margin: 0;
  border-radius: 0;
  background-color: #111E2D;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid rgba(200, 162, 82, 0.28);
}

.hero-section-fullwidth.hero-section-blakes::before {
  display: none;
}

.hero-admin-overlay-strip {
  position: relative;
  z-index: 8;
  padding-top: 1rem;
  background: linear-gradient(180deg, rgba(17, 30, 45, 0.72) 0%, transparent 100%);
}

.hero-slides-track {
  position: relative;
  width: 100%;
  min-height: clamp(500px, 74vh, 660px);
  display: grid;
  grid-template-areas: "slide";
}

.hero-slide-item {
  grid-area: slide;
  position: relative;
  width: 100%;
  min-height: inherit;
  background-color: #111E2D;
  background-image: radial-gradient(ellipse at 20% 35%, rgba(200, 162, 82, 0.16) 0%, transparent 56%),
                    linear-gradient(135deg, #17283C 0%, #111E2D 64%, #0B1420 100%);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide-item.theme-light_bg {
  background-color: #F7F5F0;
  background-image: radial-gradient(ellipse at 80% 70%, rgba(200, 162, 82, 0.1) 0%, transparent 55%),
                    linear-gradient(135deg, #FFFFFF 0%, #F7F5F0 100%);
}

.hero-slide-item.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.hero-directional-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-scrim-dark_bg {
  background:
    linear-gradient(to left, rgba(17, 30, 45, 0.88) 0%, rgba(17, 30, 45, 0.58) 38%, rgba(17, 30, 45, 0.14) 100%),
    linear-gradient(to top, rgba(17, 30, 45, 0.84) 0%, rgba(17, 30, 45, 0.2) 52%, rgba(17, 30, 45, 0.06) 100%);
}

.hero-scrim-light_bg {
  background:
    linear-gradient(to left, rgba(247, 245, 240, 0.92) 0%, rgba(247, 245, 240, 0.68) 40%, rgba(247, 245, 240, 0.14) 100%),
    linear-gradient(to top, rgba(247, 245, 240, 0.88) 0%, rgba(247, 245, 240, 0.25) 52%, rgba(247, 245, 240, 0.06) 100%);
}

.hero-blakes-frame {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 2rem;
  padding-bottom: clamp(3.25rem, 7vh, 5rem);
  position: relative;
  z-index: 2;
}

.hero-has-carousel .hero-blakes-frame {
  padding-bottom: clamp(4.25rem, 8.5vh, 5.75rem);
}

.hero-editorial-copy {
  max-width: 550px;
  width: 100%;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.hero-section-blakes .hero-title-lead {
  font-size: clamp(1.7rem, 2.65vw, 2.5rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.4;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
}

.hero-slide-item.theme-light_bg .hero-title-lead {
  color: #17283C;
  text-shadow: none;
}

.hero-signature-line {
  width: 52px;
  height: 2px;
  background: #C8A252;
  margin: 0 0 1rem 0;
  flex-shrink: 0;
}

.hero-section-blakes .hero-lead-desc {
  font-size: clamp(0.98rem, 1.35vw, 1.1rem);
  color: rgba(244, 240, 224, 0.94);
  line-height: 1.85;
  max-width: 520px;
  margin: 0 0 1.55rem 0;
  text-align: right;
}

.hero-slide-item.theme-light_bg .hero-lead-desc {
  color: #20242A;
}

.hero-slide-item.theme-light_bg .btn-ghost-editorial {
  border-color: #17283C;
  background: rgba(255, 255, 255, 0.55);
  color: #17283C !important;
}

.hero-slide-item.theme-light_bg .btn-ghost-editorial:hover {
  background: #17283C;
  color: #FFFFFF !important;
}

.hero-slide-item.theme-light_bg .hero-secondary-text-link {
  color: #17283C !important;
  border-bottom-color: #9E6F18;
}

/* Carousel Bottom-Center Translucent Control Capsule */
.hero-carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(17, 30, 45, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-carousel-toggle-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease;
}

.hero-carousel-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.28s ease, background-color 0.2s ease, border-radius 0.2s ease;
}

.hero-carousel-dot.is-active {
  width: 28px;
  height: 6px;
  border-radius: 3px;
  background: #FFFFFF;
}

.admin-topbar-editorial {
  width: 100%;
  margin-bottom: 0;
  border-radius: 2px;
  background: rgba(17, 30, 45, 0.86);
  border: 1px solid rgba(200, 162, 82, 0.38);
  padding: 0.55rem 1.1rem;
}

.admin-badge-editorial {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 2px;
  background: rgba(200, 162, 82, 0.18);
  border: 1px solid rgba(200, 162, 82, 0.45);
  color: #F4F0E0;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-editorial-btn-primary,
.admin-editorial-btn-outline {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-editorial-btn-primary {
  background: #C8A252;
  color: #111E2D !important;
}

.admin-editorial-btn-outline {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF !important;
}

.hero-actions-editorial {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1.35rem;
  margin-top: 0;
}

.btn-ghost-editorial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.65rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 2px;
  background: rgba(17, 30, 45, 0.28);
  color: #FFFFFF !important;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-ghost-editorial:hover {
  background: #FFFFFF;
  color: #17283C !important;
  border-color: #FFFFFF;
}

.hero-secondary-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  color: #F4F0E0 !important;
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(200, 162, 82, 0.68);
  padding: 0.25rem 0.05rem;
}

.hero-secondary-text-link:hover {
  color: #E6C364 !important;
  border-bottom-color: #E6C364;
}

/* Alternating Full-Width Editorial Bands */
.section-band-white {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
}

.section-band-bone {
  background-color: #F7F5F0;
  border-bottom: 1px solid #E5E7EB;
}

.section-band-navy {
  background-color: #17283C;
  color: #F4F0E0;
  border-bottom: 1px solid rgba(200, 162, 82, 0.25);
}

.section-pillars-editorial {
  padding: 2.75rem 0;
}

.pillars-architectural-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.pillar-editorial-col {
  padding-inline: clamp(0rem, 2vw, 1.75rem);
  padding-block: 0.5rem;
  border-inline-end: 1px solid #E5E7EB;
}

.pillar-editorial-col:first-child {
  padding-inline-start: 0;
}

.pillar-editorial-col:last-child {
  border-inline-end: none;
  padding-inline-end: 0;
}

.pillar-editorial-index {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #9E6F18;
  margin-bottom: 0.55rem;
  letter-spacing: 0.04em;
}

.pillar-editorial-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #17283C;
  margin: 0 0 0.5rem 0;
}

.pillar-editorial-desc {
  font-size: 0.9rem;
  color: #596573;
  line-height: 1.8;
  margin: 0;
}

.workflow-step-editorial,
.card-editorial,
.consultation-form-editorial,
.contact-panel-editorial {
  border-radius: 2px !important;
}

.card-editorial-index {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9E6F18;
  margin-bottom: 0.75rem;
}

.story-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.story-band-eyebrow {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #C8A252;
  margin-bottom: 0.65rem;
}

.story-band-heading {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.4;
  margin: 0 0 1rem 0;
}

.story-band-sub {
  font-size: 0.96rem;
  color: rgba(244, 240, 224, 0.85);
  line-height: 1.85;
  margin: 0 0 1.75rem 0;
}

.story-band-prose p {
  font-size: 1rem;
  color: rgba(244, 240, 224, 0.9);
  line-height: 2;
  margin: 0 0 1.25rem 0;
}

.story-band-quote {
  border-right: 3px solid #C8A252;
  padding: 0.85rem 1.35rem;
  margin: 1.5rem 0;
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
  font-weight: 600;
  line-height: 1.9;
}

@media (max-width: 992px) {
  .pillars-architectural-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .pillar-editorial-col {
    padding-inline: 0;
    padding-bottom: 1.25rem;
    border-inline-end: none;
    border-bottom: 1px solid #E5E7EB;
  }
  .pillar-editorial-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .story-band-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ========================================================
   OUT OF FILE (/narratives/) EDGE-TO-EDGE HERO, SINGLE-LINE FILTER BAR & COMMENTS
   ======================================================== */

.narrative-hero-banner.narrative-hero-blakes {
  width: 100%;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(200, 162, 82, 0.28);
  margin-bottom: 0;
  padding: clamp(2.75rem, 5.5vw, 4.2rem) 0;
  background: linear-gradient(135deg, #111E2D 0%, #17283C 62%, #1E3249 100%);
  box-shadow: none;
}

.narrative-hero-editorial {
  max-width: 680px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.narrative-hero-blakes .narrative-hero-eyebrow {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  color: #C8A252;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

.narrative-hero-blakes .narrative-hero-tagline {
  margin: 0 0 1.5rem 0;
  max-width: 620px;
}

.narrative-hero-blakes .narrative-hero-actions {
  justify-content: flex-start;
  gap: 1.35rem;
}

.narrative-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #E5E7EB;
  padding: 0.4rem 0 0.85rem;
  margin-bottom: 2.25rem;
  background: transparent;
}

.narrative-filter-primary {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.narrative-tab-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.narrative-tab-link:hover {
  color: #17283C;
}

.narrative-tab-link.active {
  color: #17283C;
  font-weight: 800;
  border-bottom-color: #C8A252;
}

.narrative-filter-vsep {
  width: 1px;
  height: 18px;
  background: #D6CFC3;
}

.narrative-moment-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.narrative-moment-label {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
}

.narrative-moment-select {
  min-height: 36px;
  padding: 0.25rem 0.7rem;
  border: 1px solid #D6CFC3;
  border-radius: 2px;
  background: #FFFFFF;
  color: #17283C;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.narrative-reset-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #9E6F18;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.narrative-inline-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}

.narrative-search-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #D6CFC3;
  border-radius: 2px;
  background: transparent;
  color: #17283C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.narrative-search-icon-btn:hover,
.narrative-search-icon-btn.active {
  background: #17283C;
  color: #FFFFFF;
  border-color: #17283C;
}

.narrative-inline-search-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1.5px solid #17283C;
  padding-bottom: 0.1rem;
}

.narrative-inline-search-form[hidden] {
  display: none !important;
}

.narrative-inline-search-input {
  border: none;
  background: transparent;
  padding: 0.35rem 0.2rem;
  font-size: 0.88rem;
  color: #17283C;
  font-family: inherit;
  min-width: 200px;
  outline: none;
}

.narrative-search-clear-link {
  font-size: 0.78rem;
  color: #9E6F18;
  font-weight: 700;
  padding: 0.2rem 0.35rem;
  white-space: nowrap;
}

.narrative-inline-close-btn {
  background: transparent;
  border: none;
  color: #64748B;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.narrative-sharp-btn {
  border-radius: 2px !important;
}

.narrative-card-editorial,
.narrative-featured-editorial,
.narrative-charter-editorial,
.narrative-invite-editorial {
  border-radius: 2px !important;
}

.narrative-featured-editorial .narrative-featured-badge,
.narrative-card-editorial .narrative-moment-badge,
.narrative-card-editorial .narrative-format-badge,
.narrative-card-editorial .narrative-audio-pill,
.narrative-featured-editorial .narrative-moment-badge,
.narrative-featured-editorial .narrative-format-badge,
.narrative-featured-editorial .narrative-audio-pill {
  border-radius: 2px;
}

.narrative-empty-state {
  background: #FFFFFF;
  border: 1px dashed #D6CFC3;
  border-radius: 2px;
  padding: 3.25rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Pre-Moderated Narrative Comments (#narrative-comments) */
.narrative-comments-section {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid #E2DBD0;
}

.narrative-comments-header {
  margin-bottom: 1.5rem;
}

.narrative-comments-title {
  font-size: 1.38rem;
  font-weight: 800;
  color: #17283C;
  margin: 0 0 0.45rem 0;
}

.narrative-comments-count {
  font-size: 0.96rem;
  font-weight: 600;
  color: #9E6F18;
}

.narrative-comments-privacy-note {
  font-size: 0.88rem;
  color: #596573;
  line-height: 1.8;
  margin: 0;
}

.narrative-comments-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.75rem;
}

.narrative-comment-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid #ECE7DE;
}

.narrative-comment-item.is-official-reply,
.narrative-comment-reply.is-official-reply {
  border-right: 3px solid #C8A252;
  background: #F7F5F0;
  padding-inline: 1rem;
}

.narrative-comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.narrative-comment-author-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.narrative-comment-author {
  font-size: 0.94rem;
  font-weight: 800;
  color: #17283C;
}

.narrative-comment-role {
  font-size: 0.76rem;
  font-weight: 600;
  color: #596573;
  background: #F1EFEA;
  padding: 0.12rem 0.5rem;
  border-radius: 2px;
}

.narrative-comment-official-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #9E6F18;
  border: 1px solid rgba(158, 111, 24, 0.35);
  background: #FFFFFF;
  padding: 0.1rem 0.5rem;
  border-radius: 2px;
}

.narrative-comment-date {
  font-size: 0.78rem;
  color: #596573;
}

.narrative-comment-body {
  font-size: 0.95rem;
  color: #20242A;
  line-height: 1.85;
}

.narrative-comment-actions {
  margin-top: 0.5rem;
}

.nc-reply-btn {
  background: transparent;
  border: none;
  padding: 0.15rem 0;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: #9E6F18;
  cursor: pointer;
}

.nc-reply-btn:hover {
  text-decoration: underline;
}

.narrative-comment-replies {
  margin-top: 0.9rem;
  margin-inline-start: 1.35rem;
  padding-inline-start: 1rem;
  border-right: 2px solid #E2DBD0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.narrative-comment-reply {
  padding: 0.75rem 0.9rem;
  background: #FAF9F6;
  border-radius: 2px;
}

.narrative-comments-empty {
  font-size: 0.92rem;
  color: #596573;
  padding: 1rem 0;
  margin: 0 0 1.25rem 0;
  border-bottom: 1px solid #ECE7DE;
}

.narrative-comment-form {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 2px;
  padding: 1.5rem;
  margin-top: 1.25rem;
}

.narrative-comment-form-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #17283C;
  margin: 0 0 1rem 0;
}

.nc-reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #FAF6EE;
  border: 1px solid rgba(200, 162, 82, 0.45);
  border-radius: 2px;
  padding: 0.5rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.84rem;
  color: #17283C;
}

.nc-reply-banner[hidden] {
  display: none !important;
}

.nc-reply-cancel-btn {
  background: transparent;
  border: none;
  color: #991B1B;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.narrative-comment-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.narrative-comment-input {
  border-radius: 2px !important;
}

.nc-field-error {
  display: block;
  margin-top: 0.25rem;
  color: #991B1B;
  font-size: 0.8rem;
  font-weight: 600;
}

.narrative-comment-form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .hero-section-fullwidth.hero-section-blakes {
    min-height: clamp(440px, 64vh, 560px);
  }
  .narrative-filter-bar {
    gap: 0.75rem;
  }
  .narrative-filter-vsep {
    display: none;
  }
  .narrative-inline-search-input {
    min-width: 150px;
  }
  .narrative-comment-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ========================================================
   BLAKES SEARCH PAGE, ABOUT ACCREDITATION & LIGHT SLATE FOOTER (v21)
   ======================================================== */

.search-results-blakes {
  background: #FFFFFF;
  min-height: 75vh;
  padding: clamp(2.5rem, 5vw, 4.25rem) 0 5rem;
}

.search-results-container {
  max-width: 960px;
}

.search-editorial-header {
  margin-bottom: 2rem;
}

.search-editorial-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  color: #17283C;
  margin: 0 0 0.85rem 0;
}

.search-editorial-form {
  display: flex;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: 1.5rem;
  max-width: 680px;
}

.search-editorial-input-box {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1.5px solid #17283C;
  border-radius: 6px;
  padding-inline: 0.85rem;
  background: #FFFFFF;
}

.search-editorial-icon {
  color: #17283C;
  flex-shrink: 0;
}

.search-editorial-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.68rem 0;
  font-family: inherit;
  font-size: 1rem;
  color: #17283C;
  outline: none;
}

.search-editorial-clear {
  color: #64748B;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.2rem 0.35rem;
  text-decoration: none;
}

.search-editorial-clear:hover {
  color: #991B1B;
}

.search-editorial-submit {
  border-radius: 6px;
  min-height: 44px;
  padding-inline: 1.5rem;
}

.search-summary-line {
  margin: 1.35rem 0 0;
  font-size: 0.96rem;
  color: #596573;
}

.search-query-highlight {
  color: #9E6F18;
  font-weight: 800;
}

.search-total-badge {
  font-size: 0.85rem;
  color: #64748B;
  margin-inline-start: 0.35rem;
}

.search-tabs-bar {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  overflow-x: auto;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

.search-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #596573;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.search-tab-link:hover {
  color: #17283C;
}

.search-tab-link.active {
  color: #17283C;
  font-weight: 800;
  border-bottom-color: #C8A252;
}

.search-tab-count {
  font-size: 0.82rem;
  color: #64748B;
}

.search-tab-link.active .search-tab-count {
  color: #9E6F18;
}

.search-results-list {
  display: flex;
  flex-direction: column;
}

.search-result-row {
  padding: 1.45rem 0;
  border-bottom: 1px solid #E5E7EB;
}

.search-result-date {
  font-size: 0.8rem;
  color: #596573;
  margin-bottom: 0.35rem;
}

.search-result-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #17283C;
  line-height: 1.45;
  margin: 0 0 0.45rem 0;
}

.search-result-title a {
  color: inherit;
  text-decoration: none;
}

.search-result-title a:hover {
  color: #9E6F18;
}

.search-result-excerpt {
  font-size: 0.94rem;
  color: #4B5563;
  line-height: 1.8;
  margin: 0 0 0.55rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-path a {
  font-size: 0.8rem;
  color: #64748B;
  text-decoration: none;
  unicode-bidi: plaintext;
}

.search-result-path a:hover {
  color: #17283C;
  text-decoration: underline;
}

.search-empty-state {
  padding: 2.5rem 0;
  border-bottom: 1px solid #E5E7EB;
}

.search-empty-state h2 {
  font-size: 1.2rem;
  color: #17283C;
  margin: 0 0 0.65rem 0;
}

.search-empty-state p {
  font-size: 0.94rem;
  color: #596573;
  margin: 0;
}

.search-reset-inline-link {
  color: #9E6F18;
  font-weight: 700;
  text-decoration: underline;
}

.search-idle-hint {
  font-size: 0.95rem;
  color: #596573;
  margin-top: 1.25rem;
}

/* Bar Accreditation Section Exclusively on /about */
.about-accreditation-box {
  background: #FAF8F3;
  border: 1px solid #E2DBD0;
  border-right: 3px solid #C8A252;
  border-radius: 2px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.about-accreditation-main {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1 1 360px;
}

.about-accreditation-icon {
  width: 44px;
  height: 44px;
  border-radius: 2px;
  background: rgba(200, 162, 82, 0.14);
  border: 1px solid rgba(200, 162, 82, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-accreditation-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #17283C;
  margin: 0 0 0.35rem 0;
}

.about-accreditation-desc {
  font-size: 0.9rem;
  color: #596573;
  line-height: 1.75;
  margin: 0;
}

/* Light Slate-Navy Blakes-Style 4-Column Footer (#1B2B3D) */
.site-footer.site-footer-blakes {
  background: #1B2B3D;
  color: #CFD8E3;
  border-top: none;
  padding: clamp(3.5rem, 6vw, 5rem) 0 2.25rem;
}

.footer-grid-blakes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
  margin-bottom: 2.75rem;
}

.site-footer-blakes .footer-col h4 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
  padding-bottom: 0;
}

.site-footer-blakes .footer-col h4::after {
  display: none;
}

.site-footer-blakes .footer-links li {
  margin-bottom: 0.65rem;
}

.site-footer-blakes .footer-links a {
  color: #B9C7D8;
  font-size: 0.92rem;
}

.site-footer-blakes .footer-links a:hover {
  color: #E6C364;
  padding-right: 0;
}

.footer-enamad-compact {
  margin-top: 1.15rem;
}

.site-footer-blakes .footer-enamad-box {
  width: 96px;
  height: auto;
  aspect-ratio: 240 / 276;
  padding: 3px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-footer-blakes .footer-enamad-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.site-footer-blakes .footer-enamad-box .enamad-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.site-footer-blakes .footer-enamad-box .enamad-local-seal-img {
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  height: auto !important;
  display: block !important;
  object-fit: contain;
  border-radius: 2px;
}

.site-footer-blakes .enamad-fallback {
  background: #FFFFFF;
  color: #17283C;
  border-radius: 3px;
  padding: 0.42rem 0.65rem;
}

.footer-short-intro {
  font-size: 0.88rem;
  line-height: 1.85;
  color: #B9C7D8;
  margin-bottom: 0.9rem;
}

.footer-contact-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.86rem;
  margin-bottom: 1rem;
}

.footer-contact-item {
  color: #E2E8F0;
  text-decoration: none;
}

.footer-contact-item:hover {
  color: #E6C364;
}

.footer-contact-dot {
  color: rgba(255, 255, 255, 0.35);
}

.footer-social-minimal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-social-line-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #CFD8E3;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-social-line-btn:hover {
  color: #E6C364;
  border-color: #E6C364;
}

.footer-bottom.footer-bottom-blakes {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-brand-signoff {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.footer-emblem-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-wordmark-img {
  height: 26px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-signoff-sep {
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.9rem;
}

.footer-signoff-slogan {
  color: #CFD8E3;
  font-size: 0.86rem;
}

.footer-copyright {
  color: #9FB0C4;
  font-size: 0.82rem;
  margin: 0;
}

@media (max-width: 992px) {
  .footer-grid-blakes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-section-fullwidth.hero-section-blakes,
  .hero-slides-track {
    min-height: clamp(440px, 64vh, 560px);
  }
  .footer-grid-blakes {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-bottom.footer-bottom-blakes {
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
  }
  .search-editorial-form {
    flex-direction: column;
  }
}

/* ==========================================================================
   Unified Full-Width Right-Aligned Internal Page Hero & Tokens (v22)
   ========================================================================== */
.editorial-page-hero {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #111E2D 0%, #17283C 62%, #1E3249 100%);
  background-position: center;
  background-size: cover;
  color: #FFFFFF;
  padding: clamp(2.4rem, 4.8vw, 3.6rem) 0;
  border-bottom: 1px solid rgba(200, 162, 82, 0.28);
}

.editorial-hero-inner {
  max-width: 780px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
}

.editorial-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: rgba(215, 225, 236, 0.82);
  margin-bottom: 1rem;
}

.editorial-breadcrumbs a {
  color: rgba(215, 225, 236, 0.85);
  text-decoration: none;
}

.editorial-breadcrumbs a:hover {
  color: #C8A252;
}

.editorial-breadcrumbs-current {
  color: #FFFFFF;
  font-weight: 700;
}

.editorial-hero-eyebrow {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #C8A252;
  letter-spacing: 0.02em;
  margin-bottom: 0.55rem;
}

.editorial-hero-title {
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.38;
  margin: 0 0 0.95rem 0;
  text-align: right;
}

.editorial-hero-desc {
  font-size: clamp(0.96rem, 1.2vw, 1.06rem);
  color: #D7E1EC;
  line-height: 1.85;
  max-width: 680px;
  margin: 0;
  text-align: right;
}

.editorial-hero-actions,
.editorial-hero-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  margin-top: 1.35rem;
}

.editorial-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #F4F0E0;
  font-size: 0.82rem;
  font-weight: 600;
}

.editorial-cta-band-navy {
  background: #17283C;
  color: #FFFFFF;
  border: 1px solid rgba(200, 162, 82, 0.35);
  border-radius: 4px;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: right;
}

.story-manifesto-box {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.bar-membership-badge,
.tag-pill-sharp {
  border-radius: 2px !important;
}







