/*
 * Shared cinematic theme.
 * Extends the homepage's navy / cream / gold art direction to every public,
 * account, booking and payment screen without changing application behavior.
 */

.site-theme-dark {
  --dark-canvas: #06121d;
  --dark-canvas-deep: #040d15;
  --dark-surface: #0a1a28;
  --dark-surface-raised: #0e2435;
  --dark-surface-soft: rgba(14, 36, 53, .76);
  --dark-cream: #f5eddd;
  --dark-text: #e4e9e7;
  --dark-muted: #9ba9ae;
  --dark-muted-soft: #71818a;
  --dark-gold: #d9ad50;
  --dark-gold-soft: #ecd79f;
  --dark-line: rgba(236, 215, 159, .16);
  --dark-line-soft: rgba(255, 255, 255, .085);
  --dark-shadow: 0 24px 70px rgba(0, 0, 0, .24);
  color: var(--dark-text);
  background: var(--dark-canvas);
}

.site-theme-dark main {
  position: relative;
  isolation: isolate;
  min-height: 64vh;
  background:
    radial-gradient(circle at 86% 8%, rgba(52, 95, 125, .18), transparent 31rem),
    radial-gradient(circle at 8% 84%, rgba(217, 173, 80, .055), transparent 27rem),
    var(--dark-canvas);
}

.site-theme-dark main::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .12;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  pointer-events: none;
}

.site-theme-dark ::selection { color: var(--dark-canvas); background: var(--dark-gold); }

/* Global chrome ----------------------------------------------------------- */
.site-theme-dark .site-header {
  border-color: var(--dark-line-soft);
  background: rgba(5, 15, 24, .88);
  box-shadow: 0 10px 36px rgba(0, 0, 0, .12);
  backdrop-filter: blur(22px) saturate(1.15);
}

.site-theme-dark .brand { color: var(--dark-cream); }
.site-theme-dark .brand-logo-mark { filter: drop-shadow(0 0 15px rgba(217, 173, 80, .15)); }
.site-theme-dark .brand-copy small,
.site-theme-dark .main-nav > a { color: var(--dark-muted); }
.site-theme-dark .main-nav > a:hover,
.site-theme-dark .account-link,
.site-theme-dark .link-button { color: var(--dark-cream); }
.site-theme-dark .main-nav > a::after { background: var(--dark-gold); }

.site-theme-dark .language-pill,
.site-theme-dark .menu-btn {
  color: var(--dark-gold-soft);
  border-color: var(--dark-line);
  background: rgba(255, 255, 255, .035);
}
.site-theme-dark .language-pill:hover,
.site-theme-dark .menu-btn:hover { border-color: rgba(236, 215, 159, .34); background: rgba(255, 255, 255, .07); }
.site-theme-dark .menu-btn span { background: var(--dark-cream); }

.site-theme-dark .skip-link { color: var(--dark-canvas); background: var(--dark-gold); }

/* Type and actions -------------------------------------------------------- */
.site-theme-dark .eyebrow,
.site-theme-dark .summary-kicker,
.site-theme-dark .hero-kicker { color: var(--dark-gold); }

.site-theme-dark .page-heading h1,
.site-theme-dark .page-hero h1,
.site-theme-dark .section h2,
.site-theme-dark .section-head h2,
.site-theme-dark .panel h1,
.site-theme-dark .panel h2,
.site-theme-dark .panel h3,
.site-theme-dark .auth-card h1,
.site-theme-dark .booking-summary h3,
.site-theme-dark .error-page h1 { color: var(--dark-cream); }

.site-theme-dark .page-heading p,
.site-theme-dark .lead,
.site-theme-dark .muted,
.site-theme-dark .secure-note,
.site-theme-dark .filter-result-count,
.site-theme-dark .contact-summary,
.site-theme-dark .prose,
.site-theme-dark .rich-content,
.site-theme-dark .section-copy p { color: var(--dark-muted); }

.site-theme-dark .prose h2,
.site-theme-dark .prose h3,
.site-theme-dark .rich-content h2,
.site-theme-dark .rich-content h3 { color: var(--dark-cream); }
.site-theme-dark .prose a,
.site-theme-dark .rich-content a,
.site-theme-dark .back-link,
.site-theme-dark .text-link,
.site-theme-dark .table-link { color: var(--dark-gold-soft); }

.site-theme-dark .btn-primary,
.site-theme-dark .btn-accent {
  color: #071522;
  border-color: var(--dark-gold);
  background: var(--dark-gold);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}
.site-theme-dark .btn-primary:hover,
.site-theme-dark .btn-accent:hover { border-color: #e6c36f; background: #e6c36f; box-shadow: 0 16px 38px rgba(0, 0, 0, .24); }

.site-theme-dark .btn-secondary,
.site-theme-dark .btn-light,
.site-theme-dark .btn-ghost {
  color: var(--dark-cream);
  border-color: var(--dark-line);
  background: rgba(255, 255, 255, .035);
  box-shadow: none;
}
.site-theme-dark .btn-secondary:hover,
.site-theme-dark .btn-light:hover,
.site-theme-dark .btn-ghost:hover { color: #fff; border-color: rgba(236, 215, 159, .34); background: rgba(255, 255, 255, .075); }
.site-theme-dark .btn-danger-outline { color: #efaaa4; border-color: rgba(225, 113, 104, .35); }
.site-theme-dark .btn-danger-outline:hover { background: rgba(179, 67, 62, .13); }

/* Page structure ---------------------------------------------------------- */
.site-theme-dark .page-hero {
  position: relative;
  overflow: hidden;
  color: var(--dark-text);
  background:
    linear-gradient(115deg, rgba(5, 16, 26, .74), rgba(12, 32, 47, .28)),
    transparent;
}

.site-theme-dark .page-hero::before {
  position: absolute;
  top: -24rem;
  inset-inline-end: -17rem;
  width: 45rem;
  height: 45rem;
  content: "";
  border: 1px solid rgba(236, 215, 159, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 7rem rgba(255,255,255,.009), 0 0 0 14rem rgba(255,255,255,.006);
  pointer-events: none;
}
.site-theme-dark .page-hero > .container { position: relative; z-index: 1; }
.site-theme-dark .page-heading { position: relative; padding-inline-start: 24px; }
.site-theme-dark .page-heading::before { position: absolute; inset-block: 5px; inset-inline-start: 0; width: 1px; content: ""; background: linear-gradient(var(--dark-gold), transparent); }

.site-theme-dark .section-muted,
.site-theme-dark .team-section,
.site-theme-dark .testimonial-section,
.site-theme-dark .tutorials-home-section { color: var(--dark-text); border-color: var(--dark-line-soft); background: transparent; }

.site-theme-dark .panel,
.site-theme-dark .booking-summary,
.site-theme-dark .auth-card,
.site-theme-dark .learning-section-card,
.site-theme-dark .mini-stats > div,
.site-theme-dark .admin-stats > div,
.site-theme-dark .stat-card {
  color: var(--dark-text);
  border-color: var(--dark-line);
  background: linear-gradient(145deg, rgba(15, 39, 57, .84), rgba(8, 25, 38, .9));
  box-shadow: var(--dark-shadow);
}

.site-theme-dark .panel,
.site-theme-dark .booking-summary,
.site-theme-dark .auth-card,
.site-theme-dark .learning-section-card { backdrop-filter: blur(12px); }

.site-theme-dark .card {
  color: var(--dark-text);
  border-color: var(--dark-line-soft);
  background: var(--dark-surface);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .14);
}
.site-theme-dark .card:hover { border-color: var(--dark-line); background: var(--dark-surface-raised); box-shadow: var(--dark-shadow); }
.site-theme-dark .card h3,
.site-theme-dark .card-body h3 { color: var(--dark-cream); }
.site-theme-dark .card-body p,
.site-theme-dark .card > p,
.site-theme-dark .card-topline,
.site-theme-dark .content-meta,
.site-theme-dark .card-footer { color: var(--dark-muted); border-color: var(--dark-line-soft); }
.site-theme-dark .card-footer a,
.site-theme-dark .card-body > a { color: var(--dark-gold-soft); }
.site-theme-dark .card-media { filter: saturate(.35) sepia(.08) contrast(1.06); }
.site-theme-dark .card:hover .card-media { filter: saturate(.72) sepia(.04) contrast(1.04); }
.site-theme-dark .image-icon,
.site-theme-dark .service-number { color: var(--dark-canvas); background: var(--dark-gold); }
.site-theme-dark .price,
.site-theme-dark .payment-amount { color: var(--dark-gold-soft); }

/* Forms and booking ------------------------------------------------------- */
.site-theme-dark .field label,
.site-theme-dark #booking-form h3,
.site-theme-dark .booking-review h3 { color: var(--dark-cream); border-color: var(--dark-line-soft); }
.site-theme-dark .field small,
.site-theme-dark .optional-note,
.site-theme-dark .slot-status,
.site-theme-dark .booking-grid > div:first-child > p,
.site-theme-dark .booking-summary span,
.site-theme-dark .detail-list span,
.site-theme-dark .booking-summary ul { color: var(--dark-muted); }
.site-theme-dark .booking-summary b,
.site-theme-dark .detail-list b,
.site-theme-dark .booking-review dd { color: var(--dark-cream); }
.site-theme-dark .booking-summary > div,
.site-theme-dark .detail-list > div { border-color: var(--dark-line-soft); }

.site-theme-dark .field input:not([type="checkbox"]):not([type="radio"]),
.site-theme-dark .field select,
.site-theme-dark .field textarea,
.site-theme-dark .panel input:not([type="checkbox"]):not([type="radio"]),
.site-theme-dark .panel select,
.site-theme-dark .panel textarea {
  color: var(--dark-text);
  border-color: rgba(255, 255, 255, .13);
  background: rgba(2, 11, 18, .52);
  color-scheme: dark;
}
.site-theme-dark .field input::placeholder,
.site-theme-dark .field textarea::placeholder,
.site-theme-dark .panel input::placeholder,
.site-theme-dark .panel textarea::placeholder { color: var(--dark-muted-soft); }
.site-theme-dark .field input:focus,
.site-theme-dark .field select:focus,
.site-theme-dark .field textarea:focus,
.site-theme-dark .panel input:focus,
.site-theme-dark .panel select:focus,
.site-theme-dark .panel textarea:focus {
  color: #fff;
  border-color: rgba(217, 173, 80, .68);
  background: rgba(3, 14, 23, .8);
  box-shadow: 0 0 0 3px rgba(217, 173, 80, .13);
}
.site-theme-dark .field input[type="checkbox"],
.site-theme-dark .field input[type="radio"] { accent-color: var(--dark-gold); }

.site-theme-dark .date-options button,
.site-theme-dark .slot,
.site-theme-dark .calendar-box,
.site-theme-dark .calendar-head button,
.site-theme-dark .calendar-day {
  color: var(--dark-text);
  border-color: var(--dark-line-soft);
  background: rgba(4, 16, 26, .68);
}
.site-theme-dark .date-options button:hover,
.site-theme-dark .slot:hover,
.site-theme-dark .calendar-head button:hover { color: var(--dark-cream); border-color: var(--dark-line); background: rgba(255,255,255,.07); }
.site-theme-dark .date-options button.active,
.site-theme-dark .slot.active,
.site-theme-dark .calendar-day.selected { color: var(--dark-canvas); border-color: var(--dark-gold); background: var(--dark-gold); }
.site-theme-dark .calendar-day.available { color: #d9e4c6; border-color: rgba(178, 201, 139, .24); background: rgba(108, 140, 82, .13); }
.site-theme-dark .calendar-day.full { color: #ddbd86; border-color: rgba(211, 168, 79, .22); background: rgba(158, 106, 41, .11); }
.site-theme-dark .calendar-day.disabled { color: #58666c; border-color: rgba(255,255,255,.04); background: rgba(255,255,255,.018); }
.site-theme-dark .weekdays span,
.site-theme-dark .calendar-legend { color: var(--dark-muted); }
.site-theme-dark .booking-review { color: var(--dark-text); border-color: var(--dark-line); background: rgba(217, 173, 80, .055); }
.site-theme-dark .booking-review dt { color: var(--dark-muted); }

/* Authentication and payment -------------------------------------------- */
.site-theme-dark .auth-section {
  background:
    radial-gradient(circle at 20% 15%, rgba(42, 79, 102, .28), transparent 30rem),
    radial-gradient(circle at 82% 80%, rgba(217, 173, 80, .08), transparent 25rem),
    var(--dark-canvas);
}
.site-theme-dark .auth-shell { border-color: var(--dark-line); background: var(--dark-surface); box-shadow: 0 35px 90px rgba(0,0,0,.32); }
.site-theme-dark .auth-intro {
  background:
    linear-gradient(145deg, rgba(14, 43, 64, .93), rgba(5, 19, 30, .96)),
    var(--dark-surface-raised);
}
.site-theme-dark .auth-intro::before { position: absolute; top: 35px; inset-inline-start: 35px; width: 45px; height: 1px; content: ""; background: var(--dark-gold); }
.site-theme-dark .auth-intro::after { background: var(--dark-gold); opacity: .08; }
.site-theme-dark .auth-intro h2 { color: var(--dark-cream); }
.site-theme-dark .auth-intro p,
.site-theme-dark .auth-benefits { color: var(--dark-muted); }
.site-theme-dark .auth-card { background: rgba(8, 25, 38, .94); }
.site-theme-dark .auth-card-head p,
.site-theme-dark .auth-card > p,
.site-theme-dark .auth-links,
.site-theme-dark .auth-helper,
.site-theme-dark .auth-footer-note,
.site-theme-dark .otp-resend,
.site-theme-dark .mock-payment-lead { color: var(--dark-muted); }
.site-theme-dark .auth-links a,
.site-theme-dark .auth-helper a,
.site-theme-dark .auth-footer-note a,
.site-theme-dark .auth-back { color: var(--dark-gold-soft); }
.site-theme-dark .auth-helper { border-color: var(--dark-line-soft); }
.site-theme-dark .auth-method-divider::before,
.site-theme-dark .auth-method-divider::after { background-color: var(--dark-line-soft); }
.site-theme-dark .auth-method-divider { color: var(--dark-muted-soft); }
.site-theme-dark .mini-brand,
.site-theme-dark .otp-icon,
.site-theme-dark .otp-explainer span { color: var(--dark-canvas); background: var(--dark-gold); }
.site-theme-dark .mock-sandbox-badge { color: var(--dark-gold-soft); border-color: rgba(217,168,79,.32); background: rgba(217,168,79,.08); }
.site-theme-dark .mock-fail-button { color: #efaaa4; border-color: rgba(225,113,104,.28); }
.site-theme-dark .mock-cancel-button { color: var(--dark-muted); }
.site-theme-dark .mock-cancel-button:hover { color: var(--dark-cream); background: rgba(255,255,255,.05); }

/* Account and management ------------------------------------------------- */
.site-theme-dark .mini-stats span,
.site-theme-dark .admin-stats span,
.site-theme-dark .stat-card span,
.site-theme-dark .booking-facts small { color: var(--dark-muted); }
.site-theme-dark .mini-stats b,
.site-theme-dark .admin-stats b,
.site-theme-dark .stat-card b { color: var(--dark-gold-soft); }
.site-theme-dark .account-menu a { color: var(--dark-muted); }
.site-theme-dark .account-menu a:hover,
.site-theme-dark .account-menu a.active { color: var(--dark-cream); background: rgba(217, 173, 80, .1); }
.site-theme-dark .sidebar-logout { border-color: var(--dark-line-soft); }
.site-theme-dark .sidebar-logout button { color: #efaaa4; }
.site-theme-dark .sidebar-logout button:hover { background: rgba(225, 113, 104, .1); }

.site-theme-dark .table-wrap { border-color: var(--dark-line); background: var(--dark-surface); }
.site-theme-dark table { color: var(--dark-text); background: transparent; }
.site-theme-dark th,
.site-theme-dark td { border-color: var(--dark-line-soft); }
.site-theme-dark th { color: var(--dark-muted); background: rgba(2, 11, 18, .56); }
.site-theme-dark tr:hover td { background: rgba(255,255,255,.018); }
.site-theme-dark .booking-facts > div,
.site-theme-dark .capacity-grid > div,
.site-theme-dark .quick-links > a {
  color: var(--dark-text);
  border: 1px solid var(--dark-line-soft);
  background: rgba(2, 13, 21, .38);
}
.site-theme-dark .booking-facts > div { border-color: var(--dark-line-soft); }
.site-theme-dark .booking-facts b,
.site-theme-dark .capacity-grid b { color: var(--dark-cream); }
.site-theme-dark .quick-links > a { padding: 13px; border-radius: 9px; color: var(--dark-gold-soft); }
.site-theme-dark .quick-links > a:hover { border-color: var(--dark-line); background: rgba(217,173,80,.07); }
.site-theme-dark .revenue-line { border-color: var(--dark-line-soft); }
.site-theme-dark .timeline { border-color: var(--dark-line); }
.site-theme-dark .timeline-item::before { border-color: var(--dark-surface); background: var(--dark-gold); box-shadow: 0 0 0 2px rgba(217,173,80,.2); }

.site-theme-dark .status { color: #bac5c5; background: rgba(146, 165, 169, .13); }
.site-theme-dark .status.confirmed,
.site-theme-dark .status.paid { color: #b8dfbd; background: rgba(83, 151, 94, .15); }
.site-theme-dark .status.pending_payment,
.site-theme-dark .status.checkout_open,
.site-theme-dark .status.created,
.site-theme-dark .status.processing,
.site-theme-dark .status.review { color: #e4c688; background: rgba(190, 137, 46, .15); }
.site-theme-dark .status.failed,
.site-theme-dark .status.expired,
.site-theme-dark .status.cancelled,
.site-theme-dark .status.canceled { color: #efaaa4; background: rgba(179, 67, 62, .16); }
.site-theme-dark .status.refunded { color: #aed4d4; background: rgba(75, 139, 139, .15); }

/* Editorial, about and contact ------------------------------------------- */
.site-theme-dark .content-section-switch a { color: var(--dark-muted); border-color: var(--dark-line-soft); background: rgba(255,255,255,.02); }
.site-theme-dark .content-section-switch a:hover { color: var(--dark-cream); border-color: var(--dark-line); }
.site-theme-dark .content-section-switch a.active { color: var(--dark-canvas); border-color: var(--dark-gold); background: var(--dark-gold); }
.site-theme-dark .learning-section-card h2 { color: var(--dark-cream); }
.site-theme-dark .learning-section-card p { color: var(--dark-muted); }
.site-theme-dark .learning-section-card > span { color: var(--dark-gold); }
.site-theme-dark .learning-section-card:hover { border-color: rgba(217,173,80,.34); transform: translateY(-3px); }
.site-theme-dark .article-page .article-cover,
.site-theme-dark .detail-visual,
.site-theme-dark .contact-visual,
.site-theme-dark .about-image { border: 1px solid var(--dark-line); box-shadow: var(--dark-shadow); }
.site-theme-dark .detail-visual img,
.site-theme-dark .article-cover,
.site-theme-dark .contact-visual img,
.site-theme-dark .about-image img { filter: saturate(.48) sepia(.07) contrast(1.05); }
.site-theme-dark .content-video { border: 1px solid var(--dark-line); box-shadow: var(--dark-shadow); }
.site-theme-dark .detail-visual .content-video { border-width: 1px 0 0; box-shadow: none; }
.site-theme-dark .content-audio { color: var(--dark-muted); border-color: var(--dark-line); background: var(--dark-surface); }
.site-theme-dark .content-audio span { color: var(--dark-gold-soft); }
.site-theme-dark .contact-visual figcaption,
.site-theme-dark .about-image figcaption,
.site-theme-dark .profile-context-visual figcaption { color: var(--dark-muted); background: var(--dark-surface); }
.site-theme-dark .value-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.site-theme-dark .value-chips span { padding: 7px 11px; color: var(--dark-gold-soft); border: 1px solid var(--dark-line); border-radius: 999px; background: rgba(217,173,80,.055); font-size: 11px; }
.site-theme-dark .summary-note { color: #d7c28f; border-color: rgba(217,173,80,.22); background: rgba(217,173,80,.065); }

/* Lawyer directory and profile: preserve the new rich layouts. */
.site-theme-dark .team-page .directory-lawyer-card { border-color: var(--dark-line); background: var(--dark-surface); box-shadow: var(--dark-shadow); }
.site-theme-dark .team-page .directory-lawyer-card:hover { border-color: rgba(217,173,80,.35); box-shadow: 0 30px 72px rgba(0,0,0,.3); }
.site-theme-dark .team-page .directory-lawyer-content { background: linear-gradient(145deg, rgba(14,36,53,.96), rgba(7,23,35,.96)); }
.site-theme-dark .team-page .directory-lawyer-role,
.site-theme-dark .team-page .directory-lawyer-bio,
.site-theme-dark .team-page .directory-lawyer-facts span { color: var(--dark-muted); }
.site-theme-dark .team-page .directory-lawyer-heading h3,
.site-theme-dark .team-page .directory-lawyer-facts strong,
.site-theme-dark .team-page .directory-lawyer-link { color: var(--dark-cream); }
.site-theme-dark .team-page .directory-lawyer-mark,
.site-theme-dark .team-page .directory-lawyer-practices span { color: var(--dark-gold-soft); border-color: var(--dark-line); background: rgba(217,173,80,.06); }
.site-theme-dark .team-page .directory-lawyer-facts { border-color: var(--dark-line-soft); }
.site-theme-dark .team-page .directory-lawyer-link i { color: var(--dark-canvas); background: var(--dark-gold); }

.site-theme-dark .lawyer-profile-page { color: var(--dark-text); background: transparent; }
.site-theme-dark .lawyer-profile-hero { background: linear-gradient(120deg, #06121d, #0d293d); }
.site-theme-dark .lawyer-profile-body { background: transparent; }
.site-theme-dark .lawyer-profile-section { border-color: var(--dark-line); }
.site-theme-dark .lawyer-profile-section-head > span { color: var(--dark-gold); border-color: var(--dark-line); }
.site-theme-dark .lawyer-profile-section-head small,
.site-theme-dark .lawyer-profile-prose,
.site-theme-dark .lawyer-practice-item p,
.site-theme-dark .lawyer-approach-grid p,
.site-theme-dark .lawyer-profile-dossier dt { color: var(--dark-muted); }
.site-theme-dark .lawyer-profile-section-head h2,
.site-theme-dark .lawyer-practice-item h3,
.site-theme-dark .lawyer-approach-grid h3,
.site-theme-dark .lawyer-dossier-head,
.site-theme-dark .lawyer-profile-dossier dd { color: var(--dark-cream); }
.site-theme-dark .lawyer-practice-item,
.site-theme-dark .lawyer-approach-grid > div,
.site-theme-dark .lawyer-profile-dossier { color: var(--dark-text); border-color: var(--dark-line); background: var(--dark-surface); }
.site-theme-dark .lawyer-practice-item:hover { border-color: rgba(217,173,80,.34); background: var(--dark-surface-raised); }
.site-theme-dark .lawyer-practice-item > i { color: var(--dark-canvas); background: var(--dark-gold); }
.site-theme-dark .lawyer-approach-grid { border-color: var(--dark-line); background: var(--dark-line); }
.site-theme-dark .lawyer-dossier-head,
.site-theme-dark .lawyer-profile-dossier dl > div { border-color: var(--dark-line-soft); }
.site-theme-dark .lawyer-dossier-note { color: var(--dark-muted); background: rgba(217,173,80,.065); }
.site-theme-dark .lawyer-profile-cta { border: 1px solid var(--dark-line); background: linear-gradient(145deg, #102d43, #091b2a); }

/* Feedback and footer ----------------------------------------------------- */
.site-theme-dark .alert { color: #c8d9cd; border-color: rgba(116, 171, 127, .26); background: rgba(58, 122, 72, .18); box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.site-theme-dark .alert.warning { color: #e7ce98; border-color: rgba(217,173,80,.25); background: rgba(154,105,30,.17); }
.site-theme-dark .alert.error,
.site-theme-dark .form-errors { color: #f0b2ad; border-color: rgba(211,95,87,.28); background: rgba(151,55,50,.18); }
.site-theme-dark .alert.info { color: #bdd6e5; border-color: rgba(94,151,184,.25); background: rgba(54,112,146,.17); }

.site-theme-dark .site-footer { color: var(--dark-muted); border-top: 1px solid var(--dark-line); background: var(--dark-canvas-deep); }
.site-theme-dark .footer-grid h3,
.site-theme-dark .footer-grid h4 { color: var(--dark-cream); }
.site-theme-dark .footer-grid a { color: var(--dark-muted); }
.site-theme-dark .footer-grid a:hover { color: var(--dark-gold-soft); }
.site-theme-dark .footer-brand p,
.site-theme-dark .footer-grid p,
.site-theme-dark .footer-bottom { color: var(--dark-muted-soft); }
.site-theme-dark .footer-bottom { border-color: var(--dark-line-soft); }

@media (max-width: 900px) {
  .site-theme-dark .main-nav {
    border-color: var(--dark-line);
    background: rgba(5, 17, 27, .98);
    box-shadow: 0 28px 70px rgba(0,0,0,.36);
  }
  .site-theme-dark .main-nav > a:hover { color: var(--dark-cream); background: rgba(217,173,80,.08); }

  .site-theme-dark .booking-grid,
  .site-theme-dark .service-detail-grid,
  .site-theme-dark .about-layout,
  .site-theme-dark .editorial-split,
  .site-theme-dark .faq-layout,
  .site-theme-dark .dashboard-grid,
  .site-theme-dark .auth-shell,
  .site-theme-dark .lawyer-profile-layout,
  .site-theme-dark .lawyer-profile-hero-grid { grid-template-columns: minmax(0, 1fr); }

  .site-theme-dark .booking-summary,
  .site-theme-dark .account-menu,
  .site-theme-dark .lawyer-profile-sidebar { position: static; }

  .site-theme-dark .service-detail-grid .booking-summary { display: block; grid-column: auto; }
  .site-theme-dark .auth-intro { min-height: 280px; }
  .site-theme-dark .lawyer-profile-portrait { min-height: 510px; }
}

@media (max-width: 640px) {
  .site-theme-dark { overflow-x: hidden; }
  .site-theme-dark .container { width: calc(100% - 24px); max-width: var(--container); }
  .site-theme-dark .nav-wrap { gap: 10px; }
  .site-theme-dark .nav-cta { display: none; }
  .site-theme-dark .page-heading { padding-inline-start: 16px; }
  .site-theme-dark .page-hero::before { opacity: .55; }

  .site-theme-dark .booking-grid > *,
  .site-theme-dark .service-detail-grid > *,
  .site-theme-dark .dashboard-grid > *,
  .site-theme-dark .auth-shell > *,
  .site-theme-dark .lawyer-profile-layout > * { min-width: 0; max-width: 100%; }

  .site-theme-dark .cards,
  .site-theme-dark .learning-section-cards,
  .site-theme-dark .mini-stats,
  .site-theme-dark .admin-stats,
  .site-theme-dark .management-grid,
  .site-theme-dark .capacity-grid,
  .site-theme-dark .quick-links { grid-template-columns: minmax(0, 1fr); }

  .site-theme-dark .content-filter-bar { grid-template-columns: minmax(0, 1fr); }
  .site-theme-dark .content-search-field { grid-column: auto; }
  .site-theme-dark .lawyer-profile-portrait { min-height: 420px; }
}

@media (prefers-reduced-motion: no-preference) {
  .site-theme-dark .learning-section-card,
  .site-theme-dark .quick-links > a { transition: transform .2s ease, border-color .2s ease, background .2s ease; }
}
