/* ==========================================================================
   SRCS LEGAL — Design System & Multi-Page Stylesheet
   Palette: Deep Navy (#0B2545), Antique Gold (#C9A227), Warm Parchment (#F4F0E8)
   Typography: Self-hosted Playfair Display (serif) + Inter (sans-serif)
   Security: Strictly self-hosted assets; zero external font/CDN imports;
             all state transitions use CSS classes (CSP style-src 'self' safe).
   ========================================================================== */

/* 1. Self-Hosted Fonts (SIL OFL — stored locally in /fonts/) */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/playfair-display-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/playfair-display-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/playfair-display-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/playfair-display-latin-600-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/playfair-display-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin-700-normal.woff2') format('woff2');
}

/* 2. Design Tokens */
:root {
  --bg-cream: #F4F0E8;
  --bg-ivory: #FAF8F3;
  --bg-stone: #EAE4D6;
  --bg-stone-deep: #DDD5C3;
  --bg-arch-top: #E6E0D1;
  --bg-arch-bottom: #F5F1E9;

  --navy: #0B2545;
  --navy-deep: #071930;
  --navy-soft: #14365F;

  --gold: #C9A227;
  --gold-soft: #DFC36B;
  --gold-text: #7D5E0D; /* WCAG AA accessible gold-bronze for text on light backgrounds */

  --ink: #141C27;
  --ink-muted: #4A5568;
  --ink-subtle: #646D7A;

  --border-subtle: rgba(11, 37, 69, 0.12);
  --border-strong: rgba(11, 37, 69, 0.22);
  --shadow-soft: 0 14px 40px -18px rgba(11, 37, 69, 0.16);
  --shadow-card: 0 20px 50px -24px rgba(11, 37, 69, 0.22);

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-arch: 180px 180px 24px 24px;
  --radius-pill: 999px;

  --container-max: 1200px;
  --transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* 3. Base Reset & Accessibility */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg-cream);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--bg-ivory);
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 1rem;
}

/* Typography */
h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.25rem, 4.4vw, 3.65rem);
}
h2 {
  font-size: clamp(1.85rem, 3.1vw, 2.75rem);
}
h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
}
h4 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: '//';
  color: var(--gold);
  font-weight: 700;
}

/* 4. Buttons & Pills (Matching Reference UI) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.8rem 1.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background-color: var(--navy);
  color: var(--bg-ivory);
  box-shadow: 0 10px 24px -10px rgba(11, 37, 69, 0.45);
}
.btn-primary:hover {
  background-color: var(--navy-deep);
}
.btn-outline {
  background-color: rgba(250, 248, 243, 0.72);
  color: var(--navy);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  background-color: var(--bg-ivory);
  border-color: var(--navy);
}
.btn-gold {
  background-color: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover {
  background-color: var(--gold-soft);
}
.btn-sm {
  padding: 0.52rem 1rem;
  font-size: 0.84rem;
}

.btn-circle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.22);
  color: var(--gold-soft);
}
.btn-outline .btn-circle-icon,
.arch-link .btn-circle-icon {
  background: var(--navy);
  color: var(--bg-ivory);
}

/* 5. Header & Floating Pill Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 0.9rem 0;
  background: rgba(244, 240, 232, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11, 37, 69, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.brand-emblem {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.4);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--navy);
}
.brand-sub {
  font-size: 0.675rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.nav-pill-group {
  display: none;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 6px 20px -14px rgba(11, 37, 69, 0.22);
}

.nav-link {
  padding: 0.48rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: background-color var(--transition), color var(--transition);
}
.nav-link:hover {
  color: var(--navy);
  background: rgba(11, 37, 69, 0.06);
}
.nav-link.is-active,
.nav-link[aria-current="page"] {
  background: var(--navy);
  color: var(--bg-ivory);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-cta-desktop {
  display: none;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-ivory);
  color: var(--navy);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(7, 25, 48, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
}
.mobile-drawer-panel {
  width: min(88vw, 360px);
  height: 100%;
  background: var(--bg-ivory);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  box-shadow: -12px 0 40px rgba(7, 25, 48, 0.24);
}
.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.mobile-nav-list a {
  display: block;
  padding: 0.78rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--navy);
}
.mobile-nav-list a[aria-current="page"] {
  background: var(--navy);
  color: var(--bg-ivory);
}

@media (min-width: 1024px) {
  .nav-pill-group {
    display: inline-flex;
  }
  .nav-cta-desktop {
    display: inline-flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* 6. Home Hero (Asymmetric 3-Zone Composition matching Reference Design) */
.hero-section {
  position: relative;
  padding: 2.5rem 0 4rem;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: clamp(5rem, 15vw, 12.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(11, 37, 69, 0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.hero-title {
  margin-bottom: 1.15rem;
}
.hero-title-accent {
  display: block;
  color: var(--gold-text);
  font-weight: 500;
}

.hero-lead {
  font-size: 1.0625rem;
  max-width: 48ch;
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-quick-icons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.quick-icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--border-subtle);
  color: var(--navy);
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}
.quick-icon-pill:hover {
  background: var(--navy);
  color: var(--gold);
  transform: translateY(-2px);
}
.quick-icon-label {
  font-size: 0.8125rem;
  color: var(--ink-subtle);
  margin-left: 0.25rem;
}

/* Hero Center Arch Image */
.hero-centerpiece {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-arch-frame {
  position: relative;
  width: min(100%, 390px);
  border-radius: var(--radius-arch);
  padding: 0.65rem;
  background: linear-gradient(180deg, rgba(228, 221, 204, 0.92), rgba(244, 240, 232, 0.45));
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: var(--shadow-card);
}
.hero-arch-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 170px 170px 18px 18px;
}

/* Hero Right Editorial Column */
.hero-aside {
  display: grid;
  gap: 1.35rem;
}
.hero-exp-card {
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(250, 248, 243, 0.78);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}
.hero-exp-stat {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.hero-exp-stat span {
  color: var(--gold-text);
}
.hero-exp-text {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.city-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.city-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.62rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--navy);
  color: var(--gold-soft);
}

.hero-tag-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(234, 228, 214, 0.65);
  border: 1px solid var(--border-subtle);
}
.practice-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-ivory);
  color: var(--navy);
  border: 1px solid var(--border-subtle);
  transition: background-color var(--transition), color var(--transition);
}
.practice-chip:hover {
  background: var(--navy);
  color: var(--bg-ivory);
}
.practice-chip.is-dark {
  background: var(--navy);
  color: var(--bg-ivory);
}
.practice-chip.is-dark:hover {
  background: var(--navy-deep);
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 3.25rem 0 5rem;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 1fr 0.85fr;
    gap: 2.25rem;
  }
}

/* 7. Key Stats Strip */
.stats-ribbon {
  padding: 1.5rem 0 3.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(250, 248, 243, 0.85);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}
.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-text);
  margin-top: 0.25rem;
}
.stat-detail {
  font-size: 0.8125rem;
  color: var(--ink-subtle);
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

/* 8. Staggered Arch Practice Cards (Signature Section from Reference UI) */
.section {
  padding: 4.25rem 0;
}
.section-alt {
  background: linear-gradient(180deg, rgba(234, 228, 214, 0.45), rgba(244, 240, 232, 0.15));
}

.section-header-split {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.75rem;
}
.section-header-split p {
  max-width: 52ch;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .section-header-split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.arch-showcase-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.arch-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding: 3.1rem 1.75rem 2.25rem;
  border-radius: 170px 170px 24px 24px;
  background: linear-gradient(180deg, var(--bg-arch-top) 0%, var(--bg-arch-bottom) 100%);
  border: 1px solid rgba(11, 37, 69, 0.10);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.arch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(201, 162, 39, 0.55);
}
.arch-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
}
.arch-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.arch-card p {
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}
.arch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: auto auto 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.arch-link:hover {
  color: var(--gold-text);
}

@media (min-width: 768px) {
  .arch-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .arch-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: start;
  }
  .arch-col-stagger {
    margin-top: 3.5rem;
  }
  .arch-col-stack {
    display: grid;
    gap: 1.75rem;
  }
}

.section-footer-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.75rem;
}

/* 9. Who We Are / About Split Section */
.about-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}
.glass-stat {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(234, 228, 214, 0.56));
  border: 1px solid rgba(11, 37, 69, 0.11);
}
.glass-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--navy);
  line-height: 1.15;
}
.glass-stat span {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.about-visual-frame {
  position: relative;
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(221, 213, 195, 0.72), rgba(250, 248, 243, 0.9));
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}
.about-visual-frame img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.about-visual-caption {
  margin-top: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--bg-ivory);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}
.about-visual-caption strong {
  color: var(--gold-soft);
}

@media (min-width: 960px) {
  .about-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

/* 10. Founder Spotlight Section (Editorial Portrait + Quote Deck) */
.founder-spotlight {
  display: grid;
  gap: 2.25rem;
  align-items: center;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-ivory);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}
.founder-study-card {
  position: relative;
  border-radius: var(--radius-arch);
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: var(--bg-stone);
}
.founder-study-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.founder-nameplate {
  padding: 1.1rem 1.25rem;
  background: var(--navy);
  color: var(--bg-ivory);
  text-align: center;
}
.founder-nameplate h3 {
  color: var(--bg-ivory);
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}
.founder-nameplate p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--gold-soft);
}

.founder-deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.quote-glyph {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 0.7;
  color: var(--gold);
  user-select: none;
}
.deck-counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-subtle);
  letter-spacing: 0.08em;
}
.founder-slide {
  min-height: 170px;
}
.founder-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.42;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.founder-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.founder-meta-list li {
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--bg-cream);
  border-left: 3px solid var(--gold);
  font-size: 0.9375rem;
  color: var(--navy);
}

.deck-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}
.deck-arrows {
  display: inline-flex;
  gap: 0.6rem;
}
.circle-arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-cream);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}
.circle-arrow-btn:hover,
.circle-arrow-btn.is-primary {
  background: var(--navy);
  color: var(--bg-ivory);
  border-color: var(--navy);
}

@media (min-width: 900px) {
  .founder-spotlight {
    grid-template-columns: 0.78fr 1.22fr;
    padding: 2.75rem 3rem;
    gap: 3rem;
  }
}

/* 11. Pan-India Curved Path Journey (Matching Wavy Timeline Section) */
.network-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.network-nodes {
  display: grid;
  gap: 0.9rem;
}
.network-wave-svg {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.75rem;
}
.node-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}
.node-pill-btn {
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-ivory);
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition), transform var(--transition);
}
.node-pill-btn:hover,
.node-pill-btn.is-active {
  background: var(--navy);
  color: var(--bg-ivory);
  border-color: var(--navy);
  transform: translateY(-2px);
}
.node-pill-btn strong {
  display: block;
  font-size: 0.9rem;
  font-family: var(--font-serif);
}
.node-pill-btn span {
  font-size: 0.78rem;
  opacity: 0.85;
}
.network-detail-box {
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(234, 228, 214, 0.72);
  border: 1px solid rgba(201, 162, 39, 0.45);
}
.network-detail-box h4 {
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}
.network-detail-box p {
  margin: 0;
  font-size: 0.92rem;
}

@media (min-width: 960px) {
  .network-split {
    grid-template-columns: 0.88fr 1.12fr;
    gap: 3rem;
  }
}

/* 12. Contact Split & Minimalist Underline Form (Matching Reference Design) */
.contact-split-card {
  display: grid;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-ivory);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}
.contact-photo-pane {
  position: relative;
  min-height: 300px;
  background: var(--navy-deep);
}
.contact-photo-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}
.contact-photo-overlay {
  position: absolute;
  inset: auto 1.25rem 1.25rem 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(7, 25, 48, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--bg-ivory);
}
.contact-photo-overlay h3 {
  color: var(--gold-soft);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.contact-photo-overlay p {
  color: rgba(250, 248, 243, 0.88);
  font-size: 0.86rem;
  margin: 0;
}

.contact-form-pane {
  padding: 2rem 1.5rem;
}

.contact-form {
  display: grid;
  gap: 1.15rem;
}
.form-row-2 {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field-group {
  display: grid;
  gap: 0.35rem;
}
.field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
}
.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 0.7rem 0.25rem;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  background: transparent;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color var(--transition);
}
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-bottom-color: var(--navy);
  box-shadow: 0 2px 0 0 var(--gold);
}
.field-textarea {
  min-height: 92px;
  resize: vertical;
}

/* Honeypot invisible to real users without display:none detection tricks */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.83rem;
  color: var(--ink-muted);
}
.checkbox-row input {
  margin-top: 0.25rem;
  accent-color: var(--navy);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.form-status {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}
.form-status.is-success {
  background: rgba(11, 37, 69, 0.08);
  border: 1px solid var(--navy);
  color: var(--navy);
}
.form-status.is-error {
  background: rgba(168, 36, 36, 0.08);
  border: 1px solid #9B2C2C;
  color: #742A2A;
}
.form-fallback-box {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (min-width: 900px) {
  .contact-split-card {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .contact-form-pane {
    padding: 2.75rem 3rem;
  }
}

/* 13. Pre-Footer CTA & Multi-Column Footer */
.prefooter {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  background: rgba(234, 228, 214, 0.45);
}
.prefooter-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.prefooter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 820px) {
  .prefooter-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(250, 248, 243, 0.84);
  padding: 3.75rem 0 1.75rem;
}
.footer-grid {
  display: grid;
  gap: 2.25rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(250, 248, 243, 0.14);
}
.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--bg-ivory);
  margin-bottom: 0.65rem;
}
.footer-desc {
  color: rgba(250, 248, 243, 0.74);
  font-size: 0.9rem;
  max-width: 34ch;
}
.footer-col h4 {
  color: var(--gold-soft);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.footer-links a {
  color: rgba(250, 248, 243, 0.78);
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--gold-soft);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.825rem;
  color: rgba(250, 248, 243, 0.65);
}
.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-bottom-links a:hover,
.footer-reset-btn:hover {
  color: var(--gold-soft);
}
.footer-reset-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font-size: inherit;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.15fr;
  }
}

/* 14. Inner Pages Components (Page Hero, Cards, Tabs, Sidebar, Breadcrumbs) */
.page-banner {
  padding: 2.75rem 0 2.5rem;
  background: linear-gradient(180deg, rgba(234, 228, 214, 0.65), rgba(244, 240, 232, 0.25));
  border-bottom: 1px solid var(--border-subtle);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.825rem;
  color: var(--ink-subtle);
  margin-bottom: 1rem;
}
.breadcrumb a:hover {
  color: var(--navy);
  text-decoration: underline;
}
.page-banner-lead {
  max-width: 64ch;
  font-size: 1.0625rem;
  margin-bottom: 0;
}

.cards-grid-3 {
  display: grid;
  gap: 1.35rem;
}
.cards-grid-2 {
  display: grid;
  gap: 1.35rem;
}
@media (min-width: 700px) {
  .cards-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.editorial-card {
  display: flex;
  flex-direction: column;
  padding: 1.65rem;
  border-radius: var(--radius-md);
  background: var(--bg-ivory);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), border-color var(--transition);
}
.editorial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.55);
}
.card-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.24rem 0.68rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg-stone);
  color: var(--navy);
  margin-bottom: 0.85rem;
}
.card-tag.is-navy {
  background: var(--navy);
  color: var(--gold-soft);
}
.editorial-card p:last-child {
  margin-bottom: 0;
}
.card-footer-link {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.card-footer-link:hover {
  color: var(--gold-text);
}

/* Filter Toolbar */
.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-tab {
  padding: 0.52rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-ivory);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}
.filter-tab.is-active,
.filter-tab:hover {
  background: var(--navy);
  color: var(--bg-ivory);
  border-color: var(--navy);
}
.filter-search {
  width: min(100%, 290px);
  padding: 0.58rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-ivory);
  font-size: 0.9rem;
}

/* Practice Detail Layout with Persistent Domain Sidebar */
.detail-layout {
  display: grid;
  gap: 2.25rem;
  align-items: start;
}
.detail-sidebar {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-ivory);
  border: 1px solid var(--border-subtle);
}
.detail-sidebar h3 {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}
.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.sidebar-nav a {
  display: block;
  padding: 0.62rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
}
.sidebar-nav a:hover {
  background: var(--bg-stone);
  color: var(--navy);
}
.sidebar-nav a[aria-current="page"] {
  background: var(--navy);
  color: var(--bg-ivory);
  font-weight: 600;
}

.detail-article {
  display: grid;
  gap: 1.75rem;
}
.detail-block {
  padding: 1.85rem;
  border-radius: var(--radius-md);
  background: var(--bg-ivory);
  border: 1px solid var(--border-subtle);
}
.statute-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}
.statute-pill-list li {
  padding: 0.35rem 0.78rem;
  border-radius: var(--radius-pill);
  background: var(--bg-cream);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}

@media (min-width: 960px) {
  .detail-layout {
    grid-template-columns: 290px 1fr;
  }
  .detail-sidebar {
    position: sticky;
    top: 6rem;
  }
}

/* Info List & Legal Document Styling */
.prose-card {
  max-width: 820px;
  margin-inline: auto;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-ivory);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}
.prose-card h2 {
  font-size: 1.5rem;
  margin-top: 1.75rem;
}
.prose-card h2:first-child {
  margin-top: 0;
}
.prose-card ul {
  padding-left: 1.25rem;
  color: var(--ink-muted);
}
.prose-card li + li {
  margin-top: 0.45rem;
}

.callout-navy {
  padding: 1.65rem;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: var(--bg-ivory);
}
.callout-navy h3,
.callout-navy h4 {
  color: var(--gold-soft);
}
.callout-navy p {
  color: rgba(250, 248, 243, 0.86);
}

/* 15. BCI First-Visit Disclaimer Modal */
.bci-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(7, 25, 48, 0.78);
  backdrop-filter: blur(8px);
}
.bci-modal {
  width: min(100%, 640px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-ivory);
  border: 2px solid var(--gold);
  box-shadow: 0 30px 70px rgba(7, 25, 48, 0.45);
}
.bci-modal-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--gold-soft);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.bci-modal h2 {
  font-size: 1.7rem;
  margin-bottom: 0.9rem;
}
.bci-modal ul {
  margin: 0 0 1.4rem;
  padding-left: 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.bci-modal li + li {
  margin-top: 0.5rem;
}
.bci-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Portal: Status Badge Colours in Modal */
.bci-modal-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.bci-modal-status-badge {
  display: inline-block;
  padding: 0.22rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bci-modal-status-badge.status-open        { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.bci-modal-status-badge.status-in-progress { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.bci-modal-status-badge.status-closed      { background: #f3f4f6; color: #374151; border: 1px solid #d1d5db; }
.bci-modal-status-badge.status-resolved    { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }

/* Portal: Status Pills in Table */
.portal-status-pill.status-open        { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.portal-status-pill.status-in-progress { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.portal-status-pill.status-closed      { background: #f3f4f6; color: #374151; border-color: #d1d5db; }
.portal-status-pill.status-resolved    { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }

/* Portal: Stats Dashboard Cards */
.portal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.portal-stat-card {
  background: var(--parchment);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 0.9rem 1rem;
  text-align: center;
  transition: box-shadow 0.18s;
}
.portal-stat-card:hover { box-shadow: 0 4px 16px rgba(11,37,69,.12); }
.portal-stat-num {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.portal-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}
.portal-stat-card.stat-total  { border-color: var(--gold); }
.portal-stat-card.stat-open   { border-left: 3px solid #3b82f6; }
.portal-stat-card.stat-inprogress { border-left: 3px solid #f59e0b; }
.portal-stat-card.stat-closed { border-left: 3px solid #9ca3af; }
.portal-stat-card.stat-resolved { border-left: 3px solid #10b981; }
.portal-stat-card.stat-type   { border-left: 3px solid rgba(11,37,69,0.3); }

/* Portal: Filter Bar */
.portal-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(11,37,69,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  margin-bottom: 1rem;
}
.filter-select {
  min-width: 140px;
  padding: 0.38rem 0.6rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  background: #fff;
  color: var(--navy);
}
.filter-date-wrap {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.filter-date-label { font-size: 0.8rem; font-weight: 600; color: var(--navy); }
.filter-bar-label { font-size: 0.82rem; font-weight: 600; color: var(--navy); }
.filter-date {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--navy);
}

/* Portal: Edit Notice Form inside Modal */
.notice-edit-form {
  margin-top: 0.75rem;
}
.notice-edit-form .form-group {
  margin-bottom: 0.75rem;
}
.notice-edit-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.notice-edit-form .field-input,
.notice-edit-form .field-select,
.notice-edit-form .field-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--navy);
  background: #fff;
}
.notice-edit-form .field-textarea { resize: vertical; min-height: 80px; }

/* Portal: Danger Delete Button */
.btn.btn-danger {
  color: #dc2626;
  border-color: #fca5a5;
}
.btn.btn-danger:hover {
  background: #fee2e2;
  border-color: #dc2626;
}

/* Portal: Export CSV Button */
.portal-export-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  .portal-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-filter-bar { flex-direction: column; align-items: stretch; }
  .filter-select, .filter-date { width: 100%; }
}

/* 16. Subtle Entrance Reveal (Respecting prefers-reduced-motion) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 480ms ease, transform 480ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .arch-card,
  .btn,
  .editorial-card,
  .client-card {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* 17. Our Esteemed Clients (Text-Only Grid, Navy + Gold, Zero Logos) */
.clients-subtext {
  font-size: 1.02rem;
  color: var(--ink-muted);
  max-width: 60ch;
  margin-bottom: 1.75rem;
}

.clients-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 480px) {
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.05rem;
  }
}
@media (min-width: 1120px) {
  .clients-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.client-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--bg-ivory);
  border: 1px solid rgba(201, 162, 39, 0.72);
  color: var(--navy);
  box-shadow: 0 8px 22px -16px rgba(11, 37, 69, 0.25);
  transition: transform var(--transition), border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}
.client-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: #FFFFFF;
  box-shadow: 0 14px 28px -16px rgba(11, 37, 69, 0.28);
}

.client-card-index {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(11, 37, 69, 0.08);
  color: var(--gold-text);
  font-size: 0.75rem;
  font-weight: 700;
}

.client-card-name {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}

.clients-bci-note {
  margin-top: 1.45rem;
  margin-bottom: 0;
  font-size: 0.84rem;
  color: var(--ink-subtle);
  font-style: italic;
}

/* 18. Secure Role-Based Portals (Bank / Team SRCS / Admin) */
.portal-hub-grid {
  display: grid;
  gap: 1.35rem;
}
@media (min-width: 820px) {
  .portal-hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.portal-auth-wrap {
  max-width: 520px;
  margin-inline: auto;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-ivory);
  border: 1px solid rgba(201, 162, 39, 0.55);
  box-shadow: var(--shadow-card);
}

.portal-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.portal-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: var(--bg-ivory);
  margin-bottom: 1.75rem;
}
.portal-topbar h2,
.portal-topbar h3 {
  color: var(--bg-ivory);
  margin-bottom: 0.2rem;
}
.portal-topbar p {
  color: var(--gold-soft);
  margin: 0;
  font-size: 0.9rem;
}

.portal-panel {
  padding: 1.65rem;
  border-radius: var(--radius-md);
  background: var(--bg-ivory);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
}

.portal-table-wrap {
  overflow-x: auto;
}
.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.portal-table th,
.portal-table td {
  padding: 0.85rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}
.portal-table th {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(234, 228, 214, 0.55);
}

.portal-status-pill {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(11, 37, 69, 0.08);
  color: var(--navy);
  border: 1px solid rgba(201, 162, 39, 0.55);
}

.portal-switcher-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
}
.portal-switcher-links a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

.portal-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.portal-empty {
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-cream);
  border: 1px dashed var(--border-strong);
  color: var(--ink-muted);
  text-align: center;
}

.notice-type-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.notice-type-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.92rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-cream);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}
.notice-type-tab:hover,
.notice-type-tab.is-active {
  background: var(--navy);
  color: var(--bg-ivory);
  border-color: var(--navy);
}

.notice-type-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.38rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(201, 162, 39, 0.22);
  color: var(--gold-text);
}
.notice-type-tab.is-active .notice-type-count,
.notice-type-tab:hover .notice-type-count {
  background: var(--gold);
  color: var(--navy-deep);
}

.notice-modal-meta {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-cream);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.notice-body-box {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  white-space: pre-wrap;
  font-size: 0.92rem;
  color: var(--ink);
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 1.25rem;
}

.save-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.bulk-helper-box {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--bg-cream);
  border: 1px solid rgba(201, 162, 39, 0.45);
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.bulk-helper-box strong {
  color: var(--navy);
}

.bulk-error-list {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.85rem;
}
