/*
 * archce.css — ArchCE Hub custom stylesheet
 * Extends Bootstrap 5.3 dark mode (data-bs-theme="dark")
 * WCAG 2.2 AA compliant
 */

/* ── 1. Bootstrap dark-mode token overrides ─────────────────────────────── */
[data-bs-theme="dark"] {
  --bs-body-bg:            #111827;
  --bs-body-color:         #e2e8f0;
  --bs-primary:            #3b82f6;
  --bs-primary-rgb:        59, 130, 246;
  --bs-link-color:         #60a5fa;
  --bs-link-hover-color:   #93c5fd;
  --bs-card-bg:            #1e293b;
  --bs-card-border-color:  #334155;
  --bs-border-color:       #334155;
  --bs-secondary-bg:       #1e293b;
  --bs-tertiary-bg:        #0f172a;
  --bs-secondary-color:    #94a3b8;
  --bs-emphasis-color:     #f1f5f9;
  --bs-nav-pills-link-active-bg: #3b82f6;
}

/* ── 2. Brand palette ────────────────────────────────────────────────────── */
:root {
  --arch-primary:         #2563eb;  /* darkened from #3b82f6 for WCAG AA on white (5.17:1) */
  --arch-primary-hover:   #1e40af;  /* hover/focus shade for --arch-primary (8.72:1) */
  --arch-success:         #15803d;  /* darkened from #16a34a for WCAG AA on white (5.02:1) */
  --arch-success-hover:   #166534;  /* hover/focus shade for --arch-success (7.13:1) */
  --arch-dark:            #111827;
  --arch-card:            #1e293b;
  --arch-border:          #334155;
  --arch-muted:           #94a3b8;
  --arch-deep:            #0f172a;
  --arch-mid:             #1d2a45;
  --arch-text:            #e2e8f0;
  --arch-text-light:      #f1f5f9;
  --arch-text-2:          #94a3b8;  /* legibility-safe muted text on dark bg (≥6.9:1) */
  --arch-text-3:          #cbd5e1;  /* contrast-passing muted text on mid bg (≥6.9:1) */
}

/* ── 3. Base layout ──────────────────────────────────────────────────────── */
body {
  background-color: var(--arch-dark);
  color: var(--arch-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* ── 4. Button overrides ─────────────────────────────────────────────────── */
.btn-primary                   { background-color: var(--arch-primary); border-color: var(--arch-primary); color: #fff; }
.btn-primary:hover,
.btn-primary:focus-visible     { background-color: var(--arch-primary-hover); border-color: var(--arch-primary-hover); color: #fff; }
.btn-outline-primary           { color: var(--arch-primary); border-color: var(--arch-primary); }
.btn-outline-primary:hover     { background-color: var(--arch-primary); color: #fff; }
.btn-outline-secondary         { color: var(--arch-muted); border-color: #475569; }
.btn-outline-secondary:hover   { background-color: var(--arch-border); color: var(--arch-text); border-color: #475569; }
.btn-outline-light             { color: var(--arch-text); border-color: #475569; }
.btn-outline-light:hover       { background-color: var(--arch-border); color: var(--arch-text); }
.btn-outline-success           { color: #4ade80; border-color: #4ade80; }
.btn-outline-success:hover     { background-color: #4ade80; color: #000; }
.btn-success                   { background-color: var(--arch-success); border-color: var(--arch-success); }
.btn-success:hover             { background-color: var(--arch-success-hover); border-color: var(--arch-success-hover); }

/* App-specific header action buttons */
.btn-header                    { background: var(--arch-border); border-color: var(--arch-border); color: var(--arch-text-3); }
.btn-header:hover,
.btn-header:focus-visible      { background: #475569; border-color: #475569; color: var(--arch-text); }
.btn-header:active             { background: var(--arch-card); border-color: var(--arch-card); }

/* ── 5. Colour utilities ─────────────────────────────────────────────────── */
.bg-primary                    { background-color: var(--arch-primary) !important; }
.text-primary                  { color: var(--arch-primary) !important; }
.text-muted                    { color: var(--arch-muted) !important; }
.text-secondary                { color: var(--arch-text-2) !important; }
.border-primary                { border-color: var(--arch-primary) !important; }
.bg-light                      { background-color: var(--arch-card) !important; }
.text-dark                     { color: var(--arch-text) !important; }
.bg-white                      { background-color: var(--arch-card) !important; }

/* Semantic status colours — brighter for dark backgrounds */
.text-success { color: #4ade80 !important; }
.text-warning { color: #fbbf24 !important; }
.text-danger  { color: #f87171 !important; }
.text-info    { color: #38bdf8 !important; }
.bg-success   { background-color: var(--arch-success) !important; }
.bg-warning   { background-color: #d97706 !important; }
.bg-danger    { background-color: #dc2626 !important; }
.bg-info      { background-color: #0369a1 !important; }
.bg-secondary { background-color: var(--arch-border) !important; }
.border-success { border-color: var(--arch-success) !important; }
.border-warning { border-color: #d97706 !important; }
.border-danger  { border-color: #dc2626 !important; }

/* ── 6. Navbar ───────────────────────────────────────────────────────────── */
.navbar-brand      { font-weight: 700; letter-spacing: .5px; font-size: 1.25rem; }
.navbar-archce     { background-color: var(--arch-deep) !important; border-bottom: 1px solid #1e293b; }
.navbar-archce .navbar-nav .nav-link         { color: #cbd5e1; }
.navbar-archce .navbar-nav .nav-link:hover,
.navbar-archce .navbar-nav .nav-link:focus   { color: var(--arch-text-light); }
.navbar-archce .navbar-toggler-icon          { filter: invert(1); }

/* ── 7. Cards ────────────────────────────────────────────────────────────── */
.card         { background-color: var(--arch-card); border-color: var(--arch-border); color: var(--arch-text); }
.card-header  { border-bottom-color: var(--arch-border); }
.card-footer  { border-top-color: var(--arch-border); background-color: transparent; }
.border-bottom { border-color: var(--arch-border) !important; }
.border-top    { border-color: var(--arch-border) !important; }

/* ── 8. Forms ────────────────────────────────────────────────────────────── */
.form-control,
.form-select {
  background-color: var(--arch-card);
  border-color: var(--arch-border);
  color: var(--arch-text);
}
.form-control:focus,
.form-select:focus {
  background-color: var(--arch-card);
  border-color: var(--arch-primary);
  color: var(--arch-text);
  box-shadow: 0 0 0 .25rem rgba(59,130,246,.25);
}
.form-control::placeholder  { color: #64748b; }
.form-check-input           { background-color: #334155; border-color: #475569; }
.form-check-input:checked   { background-color: var(--arch-primary); border-color: var(--arch-primary); }
.input-group-text           { background-color: #0f172a; border-color: var(--arch-border); color: var(--arch-muted); }

/* ── 9. Dropdowns ────────────────────────────────────────────────────────── */
.dropdown-menu          { background-color: #1e293b; border-color: #334155; }
.dropdown-item          { color: var(--arch-text); }
.dropdown-item:hover,
.dropdown-item:focus    { background-color: #334155; color: var(--arch-text-light); }
.dropdown-divider       { border-color: #334155; }

/* ── 10. Alerts ──────────────────────────────────────────────────────────── */
.alert-success   { background-color: rgba(22,163,74,.15);  border-color: #16a34a; color: #4ade80; }
.alert-warning   { background-color: rgba(217,119,6,.15);  border-color: #d97706; color: #fbbf24; }
.alert-danger    { background-color: rgba(220,38,38,.15);  border-color: #dc2626; color: #f87171; }
.alert-info      { background-color: rgba(56,189,248,.12); border-color: #38bdf8; color: #7dd3fc; }
.alert-secondary { background-color: rgba(51,65,85,.5);   border-color: #334155; color: var(--arch-muted); }
.alert-warning .alert-link, .alert-warning a  { color: #fbbf24; }
.alert-danger  .alert-link, .alert-danger  a  { color: #f87171; }
.alert-info    .alert-link, .alert-info    a  { color: #7dd3fc; }
.alert-success .alert-link, .alert-success a  { color: #4ade80; }

/* ── Tutorial walkthrough (Driver.js overrides) ─────────────────────────────── */
/* Spotlight overlay backdrop */
.driver-overlay  { fill: rgba(8, 12, 24, .72); }

/* Popover card */
.driver-popover.tutorial-popover {
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid rgba(99,102,241,.55);
  border-radius: .6rem;
  box-shadow: 0 12px 32px rgba(0,0,0,.55);
  max-width: 360px;
  font-size: .9rem;
}
.driver-popover.tutorial-popover .driver-popover-title {
  color: #c7d2fe;
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 .35rem;
}
.driver-popover.tutorial-popover .driver-popover-description {
  color: #cbd5e1;
  line-height: 1.45;
}
.driver-popover.tutorial-popover .driver-popover-progress-text {
  color: #94a3b8;
  font-size: .75rem;
}
.driver-popover.tutorial-popover .driver-popover-footer { margin-top: .75rem; }
.driver-popover.tutorial-popover .driver-popover-close-btn {
  color: #94a3b8;
  font-size: 1.4rem;
}
.driver-popover.tutorial-popover .driver-popover-close-btn:hover { color: #f87171; }
.driver-popover.tutorial-popover button.driver-popover-prev-btn,
.driver-popover.tutorial-popover button.driver-popover-next-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border: none;
  color: #fff;
  text-shadow: none;
  border-radius: .35rem;
  padding: .35rem .8rem;
  font-size: .85rem;
  font-weight: 500;
}
.driver-popover.tutorial-popover button.driver-popover-prev-btn:hover,
.driver-popover.tutorial-popover button.driver-popover-next-btn:hover {
  filter: brightness(1.15);
}
.driver-popover.tutorial-popover .driver-popover-arrow-side-top.driver-popover-arrow,
.driver-popover.tutorial-popover .driver-popover-arrow-side-bottom.driver-popover-arrow,
.driver-popover.tutorial-popover .driver-popover-arrow-side-left.driver-popover-arrow,
.driver-popover.tutorial-popover .driver-popover-arrow-side-right.driver-popover-arrow {
  border-color: rgba(99,102,241,.55);
}
/* Custom skip link inside the popover */
.tutorial-popover-skip {
  display: inline-block;
  margin-left: .75rem;
  color: #94a3b8;
  font-size: .8rem;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.tutorial-popover-skip:hover { color: #f87171; }

/* Floating "Resume tutorial" pill on non-tutorial pages */
.tutorial-resume-pill {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
  transition: transform .15s ease, filter .15s ease;
}
.tutorial-resume-pill:hover {
  color: #fff;
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.tutorial-resume-pill .tutorial-resume-step {
  background: rgba(255,255,255,.2);
  border-radius: 999px;
  padding: .1rem .5rem;
  font-size: .7rem;
  font-weight: 600;
}

/* ── 11. Tables ──────────────────────────────────────────────────────────── */
.table                          { color: var(--arch-text); --bs-table-color: var(--arch-text); --bs-table-bg: transparent; }
.table > :not(caption) > * > *  { background-color: transparent; box-shadow: none; }
.table-hover tbody tr:hover td,
.table-hover tbody tr:hover th  { --bs-table-bg-state: rgba(59,130,246,.08); }
.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-bg-type: rgba(255,255,255,.03); }
thead.table-dark, .table-dark   { --bs-table-bg: #0f172a; }

/* ── 12. List groups ─────────────────────────────────────────────────────── */
.list-group-item                { background-color: var(--arch-card); border-color: var(--arch-border); color: var(--arch-text); }
.list-group-item-action:hover   { background-color: #334155; color: var(--arch-text-light); }
.list-group-item-action:focus   { background-color: #334155; color: var(--arch-text-light); }

/* ── 13. Progress bars ───────────────────────────────────────────────────── */
.progress         { height: 10px; border-radius: 5px; background: var(--arch-deep); }
.progress-bar     { border-radius: 5px; transition: width .6s ease; }
.progress-sm      { height: 6px; }
.confidence-bar .progress-bar { background: linear-gradient(90deg, var(--arch-primary), #38bdf8); }

/* ── 14. Badges ──────────────────────────────────────────────────────────── */
.badge.bg-primary   { background-color: var(--arch-primary) !important; }
.badge.bg-secondary { background-color: #334155 !important; }
.badge-pro-plus     { background: #d97706; color: #111827; font-weight: 700; font-size: .72rem; padding: 3px 7px; border-radius: 5px; }

/* ── 15. Section background helpers ─────────────────────────────────────── */
.section-bg-light  { background-color: var(--arch-deep); }
.section-bg-mid    { background-color: var(--arch-mid); }
.section-bg-dark   { background-color: #060d1a; color: var(--arch-text); }
.section-py        { padding-top: 64px; padding-bottom: 64px; }

/* ── 16. Section heading labels ──────────────────────────────────────────── */
.section-eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--arch-primary); margin-bottom: 10px;
  display: block;
}
.section-title {
  font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--arch-text-light); line-height: 1.2;
}

/* ── 17. Hero section ────────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #060d1a 0%, #1e3a8a 50%, #3b82f6 100%);
  color: #fff;
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 14px; margin-bottom: 20px;
}
.hero-headline {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -.02em;
}
.hero-sub { font-size: 1.15rem; opacity: .78; max-width: 540px; margin: 0 auto; }
.hero-cta-primary {
  background: var(--arch-primary); color: #fff; border: none;
  font-weight: 700; padding: 14px 32px; font-size: 1.05rem;
  border-radius: 8px; transition: transform .15s, box-shadow .15s;
}
.hero-cta-primary:hover,
.hero-cta-primary:focus-visible {
  background: #2563eb; color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59,130,246,.4);
}
.hero-cta-secondary {
  background: transparent; color: #e2e8f0;
  border: 2px solid rgba(255,255,255,.35); font-weight: 600;
  padding: 13px 32px; font-size: 1.05rem;
  border-radius: 8px; transition: border-color .15s, background .15s;
}
.hero-cta-secondary:hover,
.hero-cta-secondary:focus-visible {
  border-color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.07); color: #fff;
}

/* ── 18. Stats bar ───────────────────────────────────────────────────────── */
.stats-bar         { background: var(--arch-card); border-bottom: 1px solid var(--arch-border); }
.stat-item         { text-align: center; padding: 18px 24px; }
.stat-number       { font-size: 1.7rem; font-weight: 800; color: var(--arch-primary); line-height: 1; }
.stat-label        { font-size: .78rem; color: var(--arch-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.stat-divider      { width: 1px; background: var(--arch-border); align-self: stretch; margin: 12px 0; }

/* ── 19. AIA transcript callout bar ─────────────────────────────────────── */
.aia-callout-bar {
  background: var(--arch-mid);
  border-top: 1px solid var(--arch-border);
  border-bottom: 1px solid var(--arch-border);
  padding: 22px 0;
}
.aia-callout-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 780px;
  margin: 0 auto;
}
.aia-callout-icon {
  flex-shrink: 0;
  font-size: 1.6rem;
  color: var(--arch-primary);
  line-height: 1.2;
}
.aia-callout-headline {
  font-weight: 700;
  font-size: 1rem;
  color: var(--arch-text-light);
  margin: 0 0 .35rem;
}
.aia-callout-body {
  font-size: .88rem;
  color: var(--arch-muted);
  margin: 0;
  line-height: 1.55;
}

/* ── 20. Feature cards ───────────────────────────────────────────────────── */
.feature-card {
  border: 1px solid var(--arch-border); border-radius: 12px;
  background: var(--arch-card); box-shadow: 0 2px 12px rgba(0,0,0,.3);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  height: 100%; padding: 1.25rem;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59,130,246,.2);
  border-color: var(--arch-primary);
}
.feature-icon-wrap {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 14px; flex-shrink: 0;
}

/* ── 20. License cards (dashboard + index mockup) ────────────────────────── */
.license-card             { border-radius: 10px; overflow: hidden; }
.license-card .card-body  { background: var(--arch-card); }
.license-stat-box {
  background: var(--arch-deep); border-radius: 6px;
  padding: 8px; text-align: center;
}

/* ── 21. Pricing cards ───────────────────────────────────────────────────── */
.pricing-card {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.4);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--arch-border); background: var(--arch-card);
}
.pricing-card.featured {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(59,130,246,.3);
  border-color: var(--arch-primary);
}
.pricing-card:hover                        { transform: translateY(-4px) scale(1.01); }
.pricing-card.featured:hover               { transform: translateY(-4px) scale(1.04); }
.pricing-card .card-header                 { background: var(--arch-card); border-bottom-color: var(--arch-border); }
.pricing-card.featured .card-header        { background: var(--arch-primary) !important; color: #fff !important; border-bottom-color: var(--arch-primary) !important; }
.pricing-card.border-warning .card-header  { background: #d97706 !important; color: #111827 !important; border-bottom-color: #d97706 !important; }

/* ── 22. Testimonials (hidden scaffold — activate by removing this rule) ─── */
.testimonials-section   { display: none !important; }
.testimonial-card       { border: 1px solid var(--arch-border); border-radius: 12px; background: var(--arch-card); }
.testimonial-stars      { color: #fbbf24; font-size: 1.1rem; }
.testimonial-avatar     { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; }

/* ── 23. CTA band ────────────────────────────────────────────────────────── */
.cta-band { background: #060d1a; color: var(--arch-text); }

/* ── 24. Footer ──────────────────────────────────────────────────────────── */
footer {
  color: #64748b; font-size: .85rem;
  background: #060d1a; border-top: 1px solid #1e293b;
}
.footer-heading  { color: var(--arch-text); }
.footer-brand    { color: var(--arch-text); }
.footer-link     { color: #64748b; text-decoration: none; }
.footer-link:hover { color: var(--arch-muted); }
.footer-social   { display: none; }  /* hidden until social accounts exist */
.footer-copy     { color: #475569; }
.footer-bottom   { border-top: 1px solid #1e293b; padding-top: 12px; }

/* ── 25. App: status colours ─────────────────────────────────────────────── */
.status-complete { color: #4ade80; }
.status-on_track { color: #60a5fa; }
.status-warning  { color: #fbbf24; }
.status-critical { color: #f87171; }
.status-overdue  { color: #f87171; font-weight: 700; }

.badge-complete  { background: #16a34a; color: #fff; }
.badge-on_track  { background: var(--arch-primary); color: #fff; }
.badge-warning   { background: #d97706; color: #111827; }
.badge-critical  { background: #dc2626; color: #fff; }
.badge-overdue   { background: #7f1d1d; color: #fca5a5; }

/* ── 26. Upload drag zone ────────────────────────────────────────────────── */
.drag-zone {
  border: 2.5px dashed #475569; border-radius: 12px;
  padding: 40px; text-align: center; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.drag-zone.dragover { background: rgba(59,130,246,.1); border-color: var(--arch-primary); }

/* ── 27. Misc app utilities ──────────────────────────────────────────────── */
.ct-hours-row { display: none; }

/* ── 28. Help overlay ────────────────────────────────────────────────────── */
.help-overlay {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 380px; max-width: 100vw;
  background: var(--arch-card);
  box-shadow: -4px 0 24px rgba(0,0,0,.4);
  z-index: 1060; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease;
}
.help-overlay-header {
  background: var(--arch-deep); color: #fff;
  padding: 14px 16px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--arch-border);
}
.help-close-btn {
  background: none; border: none; color: #fff;
  font-size: 1.3rem; line-height: 1; cursor: pointer; margin-left: auto;
}
.help-messages {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.help-msg {
  border-radius: 12px; padding: 10px 14px; font-size: .9rem;
  max-width: 88%; white-space: pre-wrap; word-break: break-word;
}
.help-msg-assistant { background: var(--arch-deep); border-radius: 12px 12px 12px 0; color: var(--arch-text); }
.help-msg-user      { background: var(--arch-primary); color: #fff; border-radius: 12px 12px 0 12px; align-self: flex-end; }
.help-input-row     { padding: 10px; border-top: 1px solid var(--arch-border); display: flex; gap: 8px; }
.help-input {
  flex: 1; background: var(--arch-deep);
  border: 1px solid var(--arch-border); border-radius: 6px;
  padding: 8px 12px; font-size: .9rem; color: var(--arch-text);
}
.help-input:focus { border-color: var(--arch-primary); box-shadow: 0 0 0 .25rem rgba(59,130,246,.25); outline: none; }
.help-send { background: var(--arch-primary); color: #fff; border: none; border-radius: 6px; padding: 8px 14px; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.help-send:hover { background: #2563eb; }
.help-email-toggle-btn {
  width: 100%; background: none; border: 1px solid var(--arch-primary);
  color: var(--arch-primary); border-radius: 6px; padding: 7px; font-size: .85rem; cursor: pointer;
}
.help-email-subform   { padding: 10px; border-top: 1px solid var(--arch-border); }
.help-email-field {
  width: 100%; background: var(--arch-deep); border: 1px solid var(--arch-border);
  border-radius: 6px; padding: 7px 10px; font-size: .85rem;
  color: var(--arch-text); box-sizing: border-box; margin-bottom: 8px;
}
.help-email-field:focus { border-color: var(--arch-primary); outline: none; }
.help-email-textarea {
  width: 100%; background: var(--arch-deep); border: 1px solid var(--arch-border);
  border-radius: 6px; padding: 7px 10px; font-size: .85rem;
  color: var(--arch-text); resize: vertical; min-height: 80px; box-sizing: border-box;
}
.help-email-textarea:focus { border-color: var(--arch-primary); outline: none; }
.help-email-send-btn {
  margin-top: 8px; width: 100%; background: #16a34a; color: #fff;
  border: none; border-radius: 6px; padding: 8px; font-size: .85rem; cursor: pointer;
}
.help-email-send-btn:hover { background: #15803d; }
.help-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1055; }

/* ── 29. Accessibility: focus indicators (WCAG 2.4.11) ──────────────────── */
:focus-visible {
  outline: 2px solid var(--arch-primary);
  outline-offset: 2px;
}
.btn:focus-visible {
  outline: 2px solid var(--arch-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(59,130,246,.25);
}
a:focus-visible {
  outline: 2px solid var(--arch-primary);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Skip-to-content link (WCAG 2.4.1) */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--arch-primary); color: #fff;
  padding: .5rem 1rem; border-radius: 0 0 6px 6px;
  font-weight: 700; z-index: 9999; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; }
