/* ============================================================================
   TX Law Advisor — Frontend (theme-resilient)
   All rules are scoped under .txla-* root containers and use enough specificity
   to win against typical theme stylesheets. Form elements get explicit resets
   so themes that style raw <input>/<label>/<ol> can't break our layouts.
   ============================================================================ */

:root {
  --txla-fe-bg: #f5f7fb;
  --txla-fe-surface: #ffffff;
  --txla-fe-surface-soft: #fbfcfe;
  --txla-fe-text: #0f1a2e;
  --txla-fe-text-muted: #5d6d86;
  --txla-fe-border: #e3e9f1;
  --txla-fe-border-strong: #cdd7e3;
  --txla-fe-primary: #1f5fff;
  --txla-fe-primary-hover: #1646c4;
  --txla-fe-primary-soft: #eaf0ff;
  --txla-fe-accent: #ffb547;
  --txla-fe-success: #149a5a;
  --txla-fe-warning: #c97c1d;
  --txla-fe-danger: #d23f3f;
  --txla-fe-radius-sm: 10px;
  --txla-fe-radius: 14px;
  --txla-fe-radius-lg: 22px;
  --txla-fe-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 12px rgba(15, 23, 42, 0.05);
  --txla-fe-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  --txla-fe-shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.12);
  --txla-fe-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ----------------------------------------------------------------------------
   Root container scoping + universal box-sizing reset
   ---------------------------------------------------------------------------- */

.txla-directory-shell,
.txla-profile-shell,
.txla-taxonomy-shell,
.txla-account-shell,
.txla-auth-shell,
.txla-claim-shell {
  font-family: var(--txla-fe-font);
  color: var(--txla-fe-text);
  line-height: 1.6;
  font-size: 16px;
  max-width: 1180px;
  margin: 40px auto;
  padding: 0 24px;
}

.txla-directory-shell,
.txla-directory-shell *,
.txla-directory-shell *::before,
.txla-directory-shell *::after,
.txla-profile-shell,
.txla-profile-shell *,
.txla-profile-shell *::before,
.txla-profile-shell *::after,
.txla-taxonomy-shell,
.txla-taxonomy-shell *,
.txla-taxonomy-shell *::before,
.txla-taxonomy-shell *::after,
.txla-account-shell,
.txla-account-shell *,
.txla-account-shell *::before,
.txla-account-shell *::after,
.txla-auth-shell,
.txla-auth-shell *,
.txla-auth-shell *::before,
.txla-auth-shell *::after,
.txla-claim-shell,
.txla-claim-shell *,
.txla-claim-shell *::before,
.txla-claim-shell *::after {
  box-sizing: border-box;
}

/* List + heading + paragraph resets within our scope so themes can't add bullets/margins */
.txla-account-shell ul,
.txla-account-shell ol,
.txla-auth-shell ul,
.txla-auth-shell ol,
.txla-claim-shell ul,
.txla-claim-shell ol,
.txla-directory-shell ul,
.txla-directory-shell ol,
.txla-profile-shell ul,
.txla-profile-shell ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.txla-account-shell h1,
.txla-account-shell h2,
.txla-account-shell h3,
.txla-account-shell h4,
.txla-auth-shell h1,
.txla-auth-shell h2,
.txla-auth-shell h3,
.txla-auth-shell h4,
.txla-claim-shell h1,
.txla-claim-shell h2,
.txla-claim-shell h3,
.txla-claim-shell h4,
.txla-directory-shell h1,
.txla-directory-shell h2,
.txla-directory-shell h3,
.txla-directory-shell h4,
.txla-profile-shell h1,
.txla-profile-shell h2,
.txla-profile-shell h3,
.txla-profile-shell h4 {
  margin: 0;
  font-family: inherit;
  letter-spacing: -0.01em;
  color: var(--txla-fe-text);
  line-height: 1.2;
  font-weight: 700;
}

.txla-account-shell p,
.txla-auth-shell p,
.txla-claim-shell p,
.txla-directory-shell p,
.txla-profile-shell p {
  margin: 0;
}

/* ----------------------------------------------------------------------------
   Form element resets within our scopes — beats theme defaults
   ---------------------------------------------------------------------------- */

.txla-account-shell input[type="text"],
.txla-account-shell input[type="email"],
.txla-account-shell input[type="password"],
.txla-account-shell input[type="tel"],
.txla-account-shell input[type="url"],
.txla-account-shell input[type="number"],
.txla-account-shell input[type="search"],
.txla-account-shell select,
.txla-account-shell textarea,
.txla-auth-shell input[type="text"],
.txla-auth-shell input[type="email"],
.txla-auth-shell input[type="password"],
.txla-auth-shell input[type="tel"],
.txla-auth-shell input[type="url"],
.txla-auth-shell input[type="number"],
.txla-auth-shell input[type="search"],
.txla-auth-shell select,
.txla-auth-shell textarea,
.txla-claim-shell input[type="text"],
.txla-claim-shell input[type="email"],
.txla-claim-shell input[type="search"],
.txla-directory-shell input[type="text"],
.txla-directory-shell input[type="email"],
.txla-directory-shell input[type="search"],
.txla-profile-shell input[type="text"],
.txla-profile-shell input[type="email"],
.txla-profile-shell input[type="password"],
.txla-profile-shell input[type="tel"],
.txla-profile-shell input[type="url"],
.txla-profile-shell input[type="search"],
.txla-profile-shell select,
.txla-profile-shell textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--txla-fe-border-strong);
  border-radius: var(--txla-fe-radius-sm);
  padding: 12px 14px;
  background: #fff;
  font: inherit;
  color: var(--txla-fe-text);
  line-height: 1.4;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.txla-account-shell textarea,
.txla-auth-shell textarea,
.txla-profile-shell textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

.txla-account-shell input[type="text"]:focus,
.txla-account-shell input[type="email"]:focus,
.txla-account-shell input[type="password"]:focus,
.txla-account-shell input[type="tel"]:focus,
.txla-account-shell input[type="url"]:focus,
.txla-account-shell input[type="number"]:focus,
.txla-account-shell input[type="search"]:focus,
.txla-account-shell select:focus,
.txla-account-shell textarea:focus,
.txla-auth-shell input[type="text"]:focus,
.txla-auth-shell input[type="email"]:focus,
.txla-auth-shell input[type="password"]:focus,
.txla-auth-shell input[type="tel"]:focus,
.txla-auth-shell input[type="url"]:focus,
.txla-auth-shell input[type="number"]:focus,
.txla-auth-shell input[type="search"]:focus,
.txla-auth-shell select:focus,
.txla-auth-shell textarea:focus,
.txla-claim-shell input:focus,
.txla-directory-shell input:focus,
.txla-profile-shell input:focus,
.txla-profile-shell select:focus,
.txla-profile-shell textarea:focus {
  outline: none;
  border-color: var(--txla-fe-primary);
  box-shadow: 0 0 0 4px rgba(31, 95, 255, 0.15);
}

/* Labels: stacked, bold-ish */
.txla-account-shell label,
.txla-auth-shell label,
.txla-profile-shell label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--txla-fe-text);
  margin: 0;
}

.txla-account-shell .txla-form-grid > label,
.txla-auth-shell .txla-form-grid > label,
.txla-auth-shell .txla-grid-2 > label,
.txla-profile-shell .txla-form-grid > label,
.txla-profile-shell .txla-grid-2 > label {
  display: grid;
  gap: 6px;
}

/* ----------------------------------------------------------------------------
   Eyebrow / muted helpers
   ---------------------------------------------------------------------------- */

.txla-eyebrow {
  display: block;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--txla-fe-primary);
  font-size: 11px;
  font-weight: 800;
}

.txla-muted {
  color: var(--txla-fe-text-muted);
  font-size: 14px;
}

/* ----------------------------------------------------------------------------
   Buttons (high specificity to beat theme button styles)
   ---------------------------------------------------------------------------- */

.txla-account-shell .txla-button,
.txla-account-shell .txla-button-secondary,
.txla-auth-shell .txla-button,
.txla-auth-shell .txla-button-secondary,
.txla-claim-shell .txla-button,
.txla-claim-shell .txla-button-secondary,
.txla-directory-shell .txla-button,
.txla-directory-shell .txla-button-secondary,
.txla-directory-shell .txla-page-button,
.txla-profile-shell .txla-button,
.txla-profile-shell .txla-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--txla-fe-font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  background: var(--txla-fe-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(31, 95, 255, 0.22);
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}

.txla-account-shell .txla-button:hover,
.txla-account-shell .txla-button:focus-visible,
.txla-auth-shell .txla-button:hover,
.txla-auth-shell .txla-button:focus-visible,
.txla-claim-shell .txla-button:hover,
.txla-claim-shell .txla-button:focus-visible,
.txla-directory-shell .txla-button:hover,
.txla-directory-shell .txla-button:focus-visible,
.txla-profile-shell .txla-button:hover,
.txla-profile-shell .txla-button:focus-visible {
  background: var(--txla-fe-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22, 70, 196, 0.3);
}

.txla-account-shell .txla-button-secondary,
.txla-auth-shell .txla-button-secondary,
.txla-claim-shell .txla-button-secondary,
.txla-directory-shell .txla-button-secondary,
.txla-directory-shell .txla-page-button,
.txla-profile-shell .txla-button-secondary {
  background: var(--txla-fe-primary-soft);
  color: var(--txla-fe-primary);
  border-color: rgba(31, 95, 255, 0.18);
  box-shadow: none;
}

.txla-account-shell .txla-button-secondary:hover,
.txla-account-shell .txla-button-secondary:focus-visible,
.txla-auth-shell .txla-button-secondary:hover,
.txla-auth-shell .txla-button-secondary:focus-visible,
.txla-profile-shell .txla-button-secondary:hover,
.txla-profile-shell .txla-button-secondary:focus-visible {
  background: #d8e3ff;
  color: var(--txla-fe-primary-hover);
  border-color: rgba(31, 95, 255, 0.4);
  transform: translateY(-1px);
}

.txla-account-shell .txla-button[disabled],
.txla-auth-shell .txla-button[disabled],
.txla-account-shell .txla-button-secondary[disabled],
.txla-auth-shell .txla-button-secondary[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ----------------------------------------------------------------------------
   Status pill
   ---------------------------------------------------------------------------- */

.txla-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: #eef2f8;
  color: var(--txla-fe-text-muted);
  line-height: 1.2;
  white-space: nowrap;
}

.txla-status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.txla-status-pill.is-success { background: #e6f6ee; color: var(--txla-fe-success); }
.txla-status-pill.is-warning { background: #fdf1de; color: var(--txla-fe-warning); }
.txla-status-pill.is-danger  { background: #fde4e4; color: var(--txla-fe-danger); }

/* ============================================================================
   AUTH (login + register) shell
   ============================================================================ */

.txla-auth-shell {
  max-width: 560px;
  margin: 56px auto;
}

.txla-auth-card {
  background: var(--txla-fe-surface);
  border: 1px solid var(--txla-fe-border);
  border-radius: var(--txla-fe-radius-lg);
  padding: 40px 36px;
  box-shadow: var(--txla-fe-shadow);
}

.txla-auth-card h2 {
  font-size: 28px;
  margin: 0 0 10px;
}

.txla-auth-card > p {
  color: var(--txla-fe-text-muted);
  font-size: 15px;
  margin: 0 0 24px;
}

.txla-auth-shell .txla-form-grid {
  display: grid;
  gap: 16px;
}

.txla-auth-shell .txla-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.txla-auth-shell .txla-form-grid label small {
  font-weight: 500;
  color: var(--txla-fe-text-muted);
  font-size: 12px;
}

.txla-auth-shell .txla-inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--txla-fe-text-muted);
  font-size: 14px;
  cursor: pointer;
}

.txla-auth-shell .txla-inline-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--txla-fe-primary);
  cursor: pointer;
}

.txla-auth-shell .txla-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.txla-auth-shell .txla-form-message {
  min-height: 22px;
  font-weight: 600;
  font-size: 13px;
  color: var(--txla-fe-primary);
}

.txla-auth-shell .txla-form-message.is-error { color: var(--txla-fe-danger); }
.txla-auth-shell .txla-form-message.is-success { color: var(--txla-fe-success); }

/* Onboarding stepper (theme-immune) */
.txla-auth-shell .txla-stepper {
  display: grid;
  gap: 10px;
  margin: 8px 0 24px;
  padding: 18px;
  background: var(--txla-fe-primary-soft);
  border-radius: var(--txla-fe-radius);
}

.txla-auth-shell .txla-stepper__step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--txla-fe-text);
  line-height: 1.4;
}

.txla-auth-shell .txla-stepper__num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--txla-fe-primary);
  font-weight: 800;
  font-size: 13px;
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.txla-auth-shell .txla-stepper__text {
  flex: 1 1 auto;
  font-weight: 500;
  color: var(--txla-fe-text);
}

/* ============================================================================
   ACCOUNT dashboard shell
   ============================================================================ */

.txla-account-shell {
  max-width: 1180px;
}

.txla-account-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 36px 40px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f5fc 60%, #e7eefb 100%);
  border: 1px solid var(--txla-fe-border);
  border-radius: var(--txla-fe-radius-lg);
  box-shadow: var(--txla-fe-shadow);
  position: relative;
  overflow: hidden;
}

.txla-account-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(31, 95, 255, 0.18) 0%, rgba(31, 95, 255, 0) 70%);
  pointer-events: none;
}

.txla-account-hero__intro {
  position: relative;
  z-index: 1;
  flex: 1 1 320px;
  min-width: 0;
}

.txla-account-hero__title {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 8px;
}

.txla-account-hero__email {
  color: var(--txla-fe-text-muted);
  font-size: 14px;
  margin: 0;
}

.txla-account-status-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 14px;
  flex: 0 1 auto;
}

.txla-status-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--txla-fe-border);
  border-radius: var(--txla-fe-radius);
  backdrop-filter: blur(6px);
  min-width: 0;
}

.txla-status-card__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--txla-fe-text-muted);
}

.txla-account-status-grid .txla-status-pill {
  align-self: flex-start;
}

/* Wizard step (flex, not grid — survives theme overrides better) */
.txla-account-wizard {
  margin-bottom: 28px;
}

.txla-wizard-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--txla-fe-border);
  border-left: 4px solid var(--txla-fe-primary);
  border-radius: var(--txla-fe-radius);
  box-shadow: var(--txla-fe-shadow-sm);
}

.txla-wizard-step__icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--txla-fe-primary-soft);
  color: var(--txla-fe-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  font-style: normal;
  line-height: 1;
}

.txla-wizard-step__body {
  flex: 1 1 auto;
  min-width: 0;
}

.txla-wizard-step__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.txla-wizard-step__copy {
  margin: 0 0 16px;
  color: var(--txla-fe-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.txla-wizard-step.is-success { border-left-color: var(--txla-fe-success); }
.txla-wizard-step.is-success .txla-wizard-step__icon {
  background: #e6f6ee;
  color: var(--txla-fe-success);
}

.txla-wizard-step.is-danger { border-left-color: var(--txla-fe-danger); }
.txla-wizard-step.is-danger .txla-wizard-step__icon {
  background: #fde4e4;
  color: var(--txla-fe-danger);
}

.txla-wizard-step.is-cta {
  background: linear-gradient(135deg, #f4f8ff, #ffffff);
}

/* Account content grid */
.txla-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.txla-account-grid > .txla-section-card {
  margin: 0;
}

.txla-account-grid .txla-section-card--full {
  grid-column: 1 / -1;
}

.txla-account-firm {
  display: flex;
  gap: 18px;
  align-items: center;
}

.txla-account-firm img {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--txla-fe-border);
  background: #fff;
  flex: 0 0 auto;
}

.txla-account-firm h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.txla-account-firm h3 a {
  color: var(--txla-fe-text);
  text-decoration: none;
}

.txla-account-firm h3 a:hover {
  color: var(--txla-fe-primary);
}

.txla-account-footer {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
}

/* Section card (used inside account dashboard + profile) */
.txla-account-shell .txla-section-card,
.txla-profile-shell .txla-section-card,
.txla-directory-shell .txla-section-card {
  background: var(--txla-fe-surface);
  border: 1px solid var(--txla-fe-border);
  border-radius: var(--txla-fe-radius);
  padding: 24px 26px;
  box-shadow: var(--txla-fe-shadow-sm);
}

.txla-account-shell .txla-section-card h2,
.txla-profile-shell .txla-section-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
}

/* ============================================================================
   CLAIM search shell
   ============================================================================ */

.txla-claim-shell {
  max-width: 920px;
  margin: 48px auto;
}

.txla-claim-shell .txla-claim-header {
  margin-bottom: 18px;
}

.txla-claim-shell .txla-claim-header h2 {
  font-size: 30px;
  margin: 0 0 8px;
}

.txla-claim-shell .txla-claim-header p {
  color: var(--txla-fe-text-muted);
  font-size: 15px;
}

.txla-claim-shell .txla-claim-search,
.txla-account-shell .txla-claim-search {
  background: #fff;
  border: 1px solid var(--txla-fe-border);
  border-radius: var(--txla-fe-radius);
  padding: 20px 22px;
  box-shadow: var(--txla-fe-shadow-sm);
}

.txla-claim-shell .txla-claim-search-input,
.txla-account-shell .txla-claim-search-input {
  display: block;
  width: 100%;
  border: 1px solid var(--txla-fe-border-strong);
  border-radius: 999px;
  padding: 14px 20px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--txla-fe-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.txla-claim-shell .txla-claim-search-input:focus,
.txla-account-shell .txla-claim-search-input:focus {
  outline: none;
  border-color: var(--txla-fe-primary);
  box-shadow: 0 0 0 4px rgba(31, 95, 255, 0.15);
}

.txla-claim-results {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.txla-claim-result {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--txla-fe-surface-soft);
  border: 1px solid var(--txla-fe-border);
  border-radius: var(--txla-fe-radius);
}

.txla-claim-result h4 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
}

.txla-claim-result p {
  margin: 0;
  font-size: 13px;
  color: var(--txla-fe-text-muted);
}

.txla-claim-result__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ============================================================================
   DIRECTORY shell
   ============================================================================ */

.txla-directory-shell {
  max-width: 1280px;
  margin-top: 0;
}

.txla-directory-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 32px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  border: 1px solid var(--txla-fe-border);
  border-radius: var(--txla-fe-radius-lg);
  box-shadow: var(--txla-fe-shadow-sm);
  position: relative;
  overflow: hidden;
}

.txla-directory-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(31, 95, 255, 0.10) 0%, rgba(31, 95, 255, 0) 70%);
  pointer-events: none;
}

/* When the directory shortcode is wrapped in the theme's "snug" section
   (typically the homepage, where the theme already renders its own hero),
   the inner directory-hero would be a redundant second hero — collapse it. */
.tx-section--snug .txla-directory-shell .txla-directory-hero {
  display: none;
}
.tx-section--snug .txla-directory-shell {
  margin: 0 auto;
  padding: 0 24px;
}
.tx-section--snug .txla-directory-shell > .txla-spotlight,
.tx-section--snug .txla-directory-shell > .txla-map-panel {
  margin-top: 0;
}

.txla-directory-hero > div {
  position: relative;
  z-index: 1;
}

.txla-directory-hero h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin: 0 0 12px;
}

.txla-directory-hero > div > p {
  margin: 0;
  color: var(--txla-fe-text-muted);
  font-size: 16px;
  max-width: 720px;
}

.txla-directory-search {
  position: relative;
  margin-top: 12px;
  max-width: 540px;
}

.txla-directory-shell .txla-search-input {
  width: 100%;
  border: 1px solid var(--txla-fe-border-strong);
  border-radius: 999px;
  padding: 14px 18px 14px 46px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  box-shadow: var(--txla-fe-shadow-sm);
}

.txla-directory-search::before {
  content: "⌕";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--txla-fe-text-muted);
  pointer-events: none;
}

.txla-featured-module,
.txla-map-panel,
.txla-list-shell,
.txla-practice-filters {
  background: var(--txla-fe-surface);
  border: 1px solid var(--txla-fe-border);
  border-radius: var(--txla-fe-radius-lg);
  box-shadow: var(--txla-fe-shadow-sm);
  padding: 28px;
  margin-bottom: 24px;
}

.txla-map-panel {
  padding: 12px;
}

.txla-map {
  height: 520px;
  border-radius: var(--txla-fe-radius);
  overflow: hidden;
}

.txla-section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.txla-section-header h3,
.txla-list-shell h3,
.txla-featured-module h3 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
}

.txla-section-header p {
  margin: 0;
  color: var(--txla-fe-text-muted);
  font-size: 14px;
}

.txla-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

/* Practice-area pills */
.txla-practice-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
}

.txla-practice-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--txla-fe-border);
  background: #fff;
  color: var(--txla-fe-text);
  font-weight: 600;
  font-size: 14px;
  transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.15s;
}

.txla-practice-pill:hover,
.txla-practice-pill:focus-visible {
  border-color: var(--txla-fe-primary);
  color: var(--txla-fe-primary);
  background: var(--txla-fe-primary-soft);
  transform: translateY(-1px);
}

.txla-practice-pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.txla-practice-pill.is-active {
  background: var(--txla-fe-primary);
  color: #fff;
  border-color: var(--txla-fe-primary);
}

/* Cards grid */
.txla-featured-grid,
.txla-list-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.txla-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--txla-fe-border);
  border-radius: var(--txla-fe-radius-lg);
  background: #fff;
  box-shadow: var(--txla-fe-shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.txla-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--txla-fe-shadow);
  border-color: #c7d4ec;
}

.txla-card-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.txla-card-head h4 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
}

.txla-card-head h4 a {
  color: var(--txla-fe-text);
  text-decoration: none;
}

.txla-card-head h4 a:hover {
  color: var(--txla-fe-primary);
}

.txla-card-head p {
  margin: 0;
  color: var(--txla-fe-text-muted);
  font-size: 13px;
}

.txla-card-logo,
.txla-popup-card img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--txla-fe-primary-soft);
  border: 1px solid var(--txla-fe-border);
  flex: none;
}

.txla-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.txla-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--txla-fe-accent);
  font-size: 16px;
  letter-spacing: 1px;
}

.txla-rating-meta {
  color: var(--txla-fe-text-muted);
  font-size: 13px;
}

.txla-card a[href^="tel:"] {
  color: var(--txla-fe-text);
  text-decoration: none;
  font-weight: 600;
}

.txla-card a[href^="tel:"]:hover {
  color: var(--txla-fe-primary);
}

.txla-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #ffb547 0%, #ff8a3d 100%);
  color: #1a1306;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(255, 138, 61, 0.35);
}

/* Pagination */
.txla-list-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
  justify-content: center;
}

.txla-directory-shell .txla-page-button {
  background: #fff;
  color: var(--txla-fe-text);
  border-color: var(--txla-fe-border);
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 10px;
  box-shadow: none;
}

.txla-directory-shell .txla-page-button:hover,
.txla-directory-shell .txla-page-button:focus-visible {
  border-color: var(--txla-fe-primary);
  color: var(--txla-fe-primary);
  transform: translateY(-1px);
}

.txla-directory-shell .txla-page-button.is-active {
  background: var(--txla-fe-primary);
  color: #fff;
  border-color: var(--txla-fe-primary);
  box-shadow: 0 4px 14px rgba(31, 95, 255, 0.22);
}

/* ============================================================================
   PROFILE shell (single attorney)
   ============================================================================ */

.txla-profile-shell {
  max-width: 1180px;
}

.txla-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 36px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f5fc 60%, #e7eefb 100%);
  border: 1px solid var(--txla-fe-border);
  border-radius: var(--txla-fe-radius-lg);
  box-shadow: var(--txla-fe-shadow);
  position: relative;
  overflow: hidden;
}

.txla-profile-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(31, 95, 255, 0.18) 0%, rgba(31, 95, 255, 0) 70%);
  pointer-events: none;
}

.txla-profile-hero > div {
  position: relative;
  z-index: 1;
}

.txla-profile-hero h1 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 0 0 12px;
}

.txla-profile-hero p {
  margin: 0 0 4px;
  color: var(--txla-fe-text-muted);
}

.txla-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.txla-profile-logo {
  width: 132px;
  height: 132px;
  border-radius: 24px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--txla-fe-border);
  box-shadow: var(--txla-fe-shadow);
}

.txla-stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.txla-stat-chip {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--txla-fe-border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  color: var(--txla-fe-text);
  backdrop-filter: blur(4px);
}

.txla-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 24px;
}

.txla-profile-layout > div,
.txla-profile-layout > aside {
  min-width: 0;
}

.txla-imported-panel dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 10px 18px;
  margin: 0;
}

.txla-imported-panel dt {
  font-weight: 700;
  color: var(--txla-fe-text-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  align-self: center;
  margin: 0;
}

.txla-imported-panel dd {
  margin: 0;
  font-size: 14px;
  word-break: break-word;
}

/* Profile forms */
.txla-profile-shell .txla-form-grid,
.txla-profile-shell .txla-claim-form,
.txla-profile-shell .txla-review-form {
  display: grid;
  gap: 14px;
}

.txla-profile-shell .txla-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

/* Reviews */
.txla-review-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.txla-review {
  background: var(--txla-fe-surface-soft);
  border: 1px solid var(--txla-fe-border);
  border-radius: var(--txla-fe-radius);
  padding: 16px 18px;
}

.txla-review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.txla-review-head strong {
  font-size: 15px;
}

.txla-review-date {
  color: var(--txla-fe-text-muted);
  font-size: 12px;
  margin: 8px 0 0;
}

/* Sidebar */
.txla-sidebar-card {
  background: var(--txla-fe-surface);
  border: 1px solid var(--txla-fe-border);
  border-radius: var(--txla-fe-radius-lg);
  box-shadow: var(--txla-fe-shadow-sm);
  padding: 24px;
  margin-bottom: 24px;
  position: sticky;
  top: 24px;
}

.txla-sidebar-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
}

.txla-sidebar-card p {
  margin: 0 0 8px;
  font-size: 14px;
}

.txla-sidebar-card ul {
  display: grid;
  gap: 6px;
}

.txla-sidebar-card ul a {
  color: var(--txla-fe-primary);
  text-decoration: none;
  font-weight: 600;
}

.txla-sidebar-card ul a:hover {
  text-decoration: underline;
}

/* Verified badge */
.txla-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
  margin-left: 10px;
  padding: 4px 10px 4px 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f5fff 0%, #4a86ff 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(31, 95, 255, 0.3);
}

.txla-verified-badge svg {
  display: block;
  color: rgba(255, 255, 255, 0.95);
}

/* Star input widget */
.txla-rating-field {
  display: grid;
  gap: 8px;
}

.txla-rating-field__label {
  font-weight: 600;
  font-size: 13px;
  color: var(--txla-fe-text);
}

.txla-star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}

.txla-star-input__radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.txla-star-input__star {
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #d4dae6;
  transition: color 0.15s, transform 0.1s;
  user-select: none;
}

.txla-star-input__star:hover,
.txla-star-input__star:hover ~ .txla-star-input__star,
.txla-star-input__radio:checked ~ .txla-star-input__star {
  color: var(--txla-fe-accent);
  transform: scale(1.05);
}

.txla-star-input__radio:focus-visible + .txla-star-input__star {
  outline: 2px solid var(--txla-fe-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Form messages */
.txla-form-message,
.txla-purchase-message {
  min-height: 22px;
  color: var(--txla-fe-primary);
  font-weight: 600;
  font-size: 13px;
}

.txla-form-message.is-error,
.txla-purchase-message.is-error { color: var(--txla-fe-danger); }

.txla-form-message.is-success,
.txla-purchase-message.is-success { color: var(--txla-fe-success); }

/* ============================================================================
   MAP markers + popups + scroll lock
   ============================================================================ */

.txla-map--scroll-locked {
  position: relative;
}

.txla-map--scroll-locked::after {
  content: "Click map to enable scroll zoom";
  position: absolute;
  inset: auto 0 12px 0;
  margin: 0 auto;
  padding: 6px 14px;
  width: max-content;
  max-width: calc(100% - 32px);
  background: rgba(15, 26, 46, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  pointer-events: none;
  z-index: 500;
  letter-spacing: 0.02em;
}

.txla-marker {
  filter: drop-shadow(0 6px 10px rgba(15, 26, 46, 0.28));
  transition: transform 0.15s ease, filter 0.15s ease;
}

.txla-marker:hover {
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 10px 16px rgba(15, 26, 46, 0.4));
  z-index: 1000 !important;
}

.txla-marker--featured {
  filter: drop-shadow(0 4px 0 rgba(255, 181, 71, 0.55)) drop-shadow(0 8px 14px rgba(15, 26, 46, 0.35));
}

.txla-marker--featured:hover {
  filter: drop-shadow(0 4px 0 rgba(255, 181, 71, 0.75)) drop-shadow(0 12px 20px rgba(15, 26, 46, 0.45));
}

.marker-cluster {
  background: rgba(31, 95, 255, 0.18) !important;
}

.marker-cluster div {
  background: var(--txla-fe-primary) !important;
  color: #fff !important;
  font-family: var(--txla-fe-font);
  font-weight: 700;
}

.marker-cluster span {
  line-height: 30px !important;
}

.leaflet-popup-content {
  margin: 14px 16px;
  font-family: var(--txla-fe-font);
}

.leaflet-popup-content-wrapper {
  border-radius: var(--txla-fe-radius);
  box-shadow: var(--txla-fe-shadow);
}

.txla-popup-card {
  max-width: 260px;
  display: grid;
  gap: 8px;
  position: relative;
}

.txla-popup-badge {
  align-self: flex-start;
  background: linear-gradient(135deg, #ffb547 0%, #ff8a3d 100%);
  color: #1a1306;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.txla-popup-card h4 {
  margin: 0;
  font-size: 16px;
}

.txla-popup-card p {
  margin: 0;
  color: var(--txla-fe-text-muted);
  font-size: 13px;
}

.txla-popup-practice {
  font-size: 12px !important;
  color: var(--txla-fe-primary) !important;
  font-weight: 600;
}

.txla-popup-card a.txla-button {
  margin-top: 4px;
}

/* ============================================================================
   Responsive breakpoints
   ============================================================================ */

@media (max-width: 960px) {
  .txla-profile-layout {
    grid-template-columns: 1fr;
  }

  .txla-profile-hero,
  .txla-directory-hero,
  .txla-account-hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .txla-account-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .txla-account-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .txla-account-grid {
    grid-template-columns: 1fr;
  }

  .txla-imported-panel dl {
    grid-template-columns: 1fr;
  }

  .txla-sidebar-card {
    position: static;
  }

  .txla-map {
    height: 380px;
  }
}

@media (max-width: 600px) {
  .txla-directory-shell,
  .txla-profile-shell,
  .txla-taxonomy-shell,
  .txla-account-shell,
  .txla-auth-shell,
  .txla-claim-shell {
    margin: 20px auto;
    padding: 0 16px;
  }

  .txla-auth-card {
    padding: 28px 22px;
  }

  .txla-auth-card h2 {
    font-size: 24px;
  }

  .txla-account-hero,
  .txla-directory-hero,
  .txla-profile-hero {
    padding: 24px;
  }

  .txla-account-status-grid {
    grid-template-columns: 1fr;
  }

  .txla-wizard-step {
    padding: 20px;
    gap: 14px;
  }

  .txla-wizard-step__icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 16px;
  }

  .txla-section-card {
    padding: 20px;
  }

  .txla-claim-result {
    padding: 16px;
  }
}

/* ============================================================================
   Sprint 2 — Spotlight rail, badges, facet bar, tier picker, disclaimer bar.
   Scoped under our root containers so themes can't override them.
   ============================================================================ */

.txla-directory-shell .txla-spotlight {
  margin: 32px 0;
}

.txla-directory-shell .txla-spotlight-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.txla-directory-shell .txla-spotlight-card {
  position: relative;
  background: var(--txla-fe-surface);
  border: 1px solid var(--txla-fe-border);
  border-radius: var(--txla-fe-radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--txla-fe-shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.txla-directory-shell .txla-spotlight-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--txla-fe-shadow);
}

.txla-directory-shell .txla-spotlight-card.is-pro {
  border-color: #d8b14b;
  background: linear-gradient(180deg, #fff8e7 0%, #ffffff 70%);
}

.txla-directory-shell .txla-spotlight-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.txla-directory-shell .txla-spotlight-card__head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.txla-directory-shell .txla-spotlight-card__logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--txla-fe-surface-soft);
  border: 1px solid var(--txla-fe-border);
}

.txla-directory-shell .txla-spotlight-card__heading h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.txla-directory-shell .txla-spotlight-card__heading h4 a {
  color: var(--txla-fe-text);
  text-decoration: none;
}

.txla-directory-shell .txla-spotlight-card__heading h4 a:hover {
  color: var(--txla-fe-primary);
}

.txla-directory-shell .txla-spotlight-card__tagline {
  font-size: 14px;
  color: var(--txla-fe-text);
  margin: 0;
}

.txla-directory-shell .txla-spotlight-card__rating {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.txla-directory-shell .txla-spotlight-card__practice {
  font-size: 12px;
  color: var(--txla-fe-text-muted);
  margin: 0;
}

.txla-directory-shell .txla-spotlight-card__actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Card list — tighter badge row, consistent across home + spotlight + list */
.txla-directory-shell .txla-card,
.txla-account-shell .txla-card,
.txla-profile-shell .txla-card {
  position: relative;
}

.txla-directory-shell .txla-card.is-pro,
.txla-account-shell .txla-card.is-pro {
  border-color: #d8b14b;
}

.txla-directory-shell .txla-card__badges,
.txla-account-shell .txla-card__badges,
.txla-profile-shell .txla-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.txla-directory-shell .txla-card__flags,
.txla-account-shell .txla-card__flags,
.txla-profile-shell .txla-card__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.txla-directory-shell .txla-card__flag-chip,
.txla-account-shell .txla-card__flag-chip,
.txla-profile-shell .txla-card__flag-chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--txla-fe-surface-soft);
  border: 1px solid var(--txla-fe-border);
  color: var(--txla-fe-text-muted);
}

/* Badge variants used everywhere — list cards, spotlight, popups, profile hero */
.txla-directory-shell .txla-badge,
.txla-account-shell .txla-badge,
.txla-profile-shell .txla-badge,
.txla-spotlight-card .txla-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff4dc, #ffe5b8);
  color: #7a4a00;
  border: 1px solid #f1c878;
}

.txla-badge.txla-badge--pro,
.txla-spotlight-card .txla-badge--pro {
  background: linear-gradient(135deg, #fff0c2, #ffd56a);
  color: #5b3a00;
  border-color: #d8b14b;
}

.txla-badge.txla-badge--verified,
.txla-spotlight-card .txla-badge--verified {
  background: linear-gradient(135deg, #d6f1e3, #b6e6cc);
  color: #0c5b34;
  border-color: #71c597;
}

.txla-badge.txla-badge--board,
.txla-spotlight-card .txla-badge--board {
  background: linear-gradient(135deg, #e3eafd, #c9d6f9);
  color: #173a7a;
  border-color: #95a8e0;
}

/* Profile hero badges */
.txla-profile-shell .txla-pro-badge,
.txla-profile-shell .txla-board-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 8px;
  vertical-align: middle;
}

.txla-profile-shell .txla-pro-badge {
  background: linear-gradient(135deg, #fff0c2, #ffd56a);
  color: #5b3a00;
  border: 1px solid #d8b14b;
}

.txla-profile-shell .txla-board-badge {
  background: linear-gradient(135deg, #e3eafd, #c9d6f9);
  color: #173a7a;
  border: 1px solid #95a8e0;
}

.txla-profile-shell .txla-board-card {
  border-left: 4px solid #95a8e0;
}

.txla-profile-shell .txla-acr-notice {
  background: linear-gradient(180deg, #fff8eb 0%, #fffefb 100%);
  border-color: #f1c878;
}

/* Facet bar */
.txla-directory-shell .txla-facet-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 8px 0 18px;
  box-shadow: none;
}

.txla-directory-shell .txla-facet-bar__label {
  font-family: var(--txla-fe-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--txla-fe-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.txla-directory-shell .txla-facet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Facet chips share size, font, and shape with practice-area pills so
   "Pro Spotlight / Featured / Board Certified" sit on the same visual row
   as the practice-area buttons without looking like a second-class control. */
.txla-directory-shell .txla-facet-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--txla-fe-border);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--txla-fe-text);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.txla-directory-shell .txla-facet-chip:hover {
  border-color: var(--txla-fe-primary);
  color: var(--txla-fe-primary);
  background: var(--txla-fe-primary-soft);
  transform: translateY(-1px);
}

.txla-directory-shell .txla-facet-chip.is-active {
  background: var(--txla-fe-primary);
  color: #fff;
  border-color: var(--txla-fe-primary);
  box-shadow: 0 4px 12px rgba(31, 95, 255, 0.25);
}

.txla-directory-shell .txla-facet-chip__icon {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
}

.txla-directory-shell .txla-facet-clear {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--txla-fe-primary);
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}

.txla-directory-shell .txla-facet-clear:hover {
  text-decoration: underline;
}

/* Account dashboard — tier picker + billing interval toggle */
.txla-account-shell .txla-billing-toggle {
  display: inline-flex;
  border: 1px solid var(--txla-fe-border-strong);
  border-radius: 999px;
  padding: 4px;
  background: var(--txla-fe-surface-soft);
  margin: 12px 0 18px;
}

.txla-account-shell .txla-billing-toggle__option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  color: var(--txla-fe-text-muted);
  font-weight: 600;
}

.txla-account-shell .txla-billing-toggle__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.txla-account-shell .txla-billing-toggle__option:has(input:checked) {
  background: var(--txla-fe-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(31, 95, 255, 0.25);
}

.txla-account-shell .txla-billing-toggle__hint {
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
}

.txla-account-shell .txla-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.txla-account-shell .txla-tier-card {
  position: relative;
  border: 1px solid var(--txla-fe-border);
  border-radius: var(--txla-fe-radius-lg);
  background: var(--txla-fe-surface);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--txla-fe-shadow-sm);
}

.txla-account-shell .txla-tier-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--txla-fe-shadow);
}

.txla-account-shell .txla-tier-card.is-pro {
  border-color: #d8b14b;
  background: linear-gradient(180deg, #fff8e7 0%, #ffffff 70%);
}

.txla-account-shell .txla-tier-card.is-current {
  border-color: var(--txla-fe-success);
  background: linear-gradient(180deg, #ebf9f1 0%, #ffffff 60%);
}

.txla-account-shell .txla-tier-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.txla-account-shell .txla-tier-card__head h3 {
  margin: 0;
  font-size: 20px;
}

.txla-account-shell .txla-tier-card__tagline {
  margin: 0;
  font-size: 14px;
  color: var(--txla-fe-text);
  line-height: 1.5;
}

.txla-account-shell .txla-tier-card__price {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--txla-fe-text-muted);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.txla-account-shell .txla-tier-card__price strong {
  font-size: 32px;
  color: var(--txla-fe-text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.txla-account-shell .txla-tier-card__savings {
  font-size: 12px;
  margin: 0;
}

.txla-account-shell .txla-tier-card__features {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.txla-account-shell .txla-tier-card__features li {
  position: relative;
  padding-left: 22px;
  color: var(--txla-fe-text);
}

.txla-account-shell .txla-tier-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  color: var(--txla-fe-success);
  font-weight: 800;
}

.txla-account-shell .txla-tier-card__actions {
  margin-top: auto;
}

/* Popup card badges */
.txla-popup-card .txla-popup-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.txla-popup-card .txla-popup-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff4dc, #ffe5b8);
  color: #7a4a00;
  border: 1px solid #f1c878;
}

.txla-popup-card .txla-popup-badge--pro {
  background: linear-gradient(135deg, #fff0c2, #ffd56a);
  color: #5b3a00;
  border-color: #d8b14b;
}

.txla-popup-card .txla-popup-badge--verified {
  background: linear-gradient(135deg, #d6f1e3, #b6e6cc);
  color: #0c5b34;
  border-color: #71c597;
}

.txla-popup-card .txla-popup-badge--board {
  background: linear-gradient(135deg, #e3eafd, #c9d6f9);
  color: #173a7a;
  border-color: #95a8e0;
}

/* TX Bar advertising disclaimer — base styles shared by floating + inline. */
.txla-disclaimer-bar {
  position: relative;
  font-size: 12.5px;
  line-height: 1.6;
}

.txla-disclaimer-bar .txla-disclaimer-bar__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.txla-disclaimer-bar .txla-disclaimer-bar__short {
  margin: 0;
}

.txla-disclaimer-bar .txla-disclaimer-bar__details {
  margin-top: 6px;
}

.txla-disclaimer-bar summary {
  cursor: pointer;
  font-weight: 600;
  display: inline-block;
}

.txla-disclaimer-bar summary:hover {
  text-decoration: underline;
}

.txla-disclaimer-bar .txla-disclaimer-bar__full {
  margin-top: 8px;
  padding-top: 8px;
  font-size: 12px;
}

.txla-disclaimer-bar .txla-disclaimer-bar__full p {
  margin: 0 0 6px;
}

/* Floating variant — for non-tx themes; pinned strip at the bottom of the page. */
.txla-disclaimer-bar--floating {
  background: #0f1a2e;
  color: #e6ecf7;
  padding: 14px 0;
  border-top: 3px solid #f1c878;
}
.txla-disclaimer-bar--floating .txla-disclaimer-bar__inner {
  padding: 0 24px;
}
.txla-disclaimer-bar--floating summary {
  color: #ffd56a;
}
.txla-disclaimer-bar--floating .txla-disclaimer-bar__full {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #cdd7e3;
}

/* Inline variant — rendered inside .tx-site-footer; tucks under the meta row. */
.txla-disclaimer-bar--inline {
  margin-top: var(--txla-fe-radius, 14px);
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}
.txla-disclaimer-bar--inline .txla-disclaimer-bar__inner {
  max-width: none;
  padding: 0;
}
.txla-disclaimer-bar--inline summary {
  color: rgba(255, 255, 255, 0.78);
}
.txla-disclaimer-bar--inline summary:hover {
  color: #fff;
}
.txla-disclaimer-bar--inline .txla-disclaimer-bar__full {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 720px) {
  .txla-directory-shell .txla-facet-bar {
    padding: 0;
    gap: 8px;
  }
  /* Keep facet chips visually identical to practice-area pills on mobile —
     same font, same shape, just slightly tighter padding so more fit per row. */
  .txla-directory-shell .txla-facet-chip {
    font-size: 13px;
    padding: 7px 12px;
  }
  .txla-account-shell .txla-tier-card__price strong {
    font-size: 26px;
  }
}

/* ============================================================================
   Sprint 3 — Inquiry form, profile analytics, cookie banner.
   ============================================================================ */

.txla-profile-shell .txla-inquiry-card {
  border-left: 4px solid var(--txla-fe-primary);
}

.txla-profile-shell .txla-inquiry-form .txla-inline-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--txla-fe-text);
  background: var(--txla-fe-surface-soft);
  border: 1px solid var(--txla-fe-border);
  border-radius: var(--txla-fe-radius-sm);
  padding: 10px 12px;
}

.txla-profile-shell .txla-inquiry-form .txla-inline-check input[type="checkbox"] {
  margin-top: 2px;
  flex: 0 0 auto;
}

/* Account dashboard — performance card */
.txla-account-shell .txla-perf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.txla-account-shell .txla-perf-card {
  background: var(--txla-fe-surface-soft);
  border: 1px solid var(--txla-fe-border);
  border-radius: var(--txla-fe-radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.txla-account-shell .txla-perf-card__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--txla-fe-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.txla-account-shell .txla-perf-card__value {
  font-size: 28px;
  font-weight: 800;
  color: var(--txla-fe-text);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Account dashboard — recent inquiries list */
.txla-account-shell .txla-inquiry-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.txla-account-shell .txla-inquiry-item {
  background: var(--txla-fe-surface);
  border: 1px solid var(--txla-fe-border);
  border-radius: var(--txla-fe-radius);
  padding: 14px 16px;
  box-shadow: var(--txla-fe-shadow-sm);
}

.txla-account-shell .txla-inquiry-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.txla-account-shell .txla-inquiry-item__head strong {
  display: block;
  font-size: 14px;
}

.txla-account-shell .txla-inquiry-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.txla-account-shell .txla-inquiry-item__msg {
  margin: 8px 0 6px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--txla-fe-text);
}

.txla-account-shell .txla-inquiry-item__actions {
  margin-top: 6px;
}

.txla-account-shell .txla-button--small,
.txla-cookie-banner .txla-button--small {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
}

/* Cookie consent banner — compact, fixed pill at the bottom of the viewport */
.txla-cookie-banner {
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  max-width: 720px;
  margin: 0 auto;
  width: auto;
  background: #0f1a2e;
  color: #e6ecf7;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.35);
  padding: 10px 14px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-size: 13px;
  line-height: 1.45;
  max-height: none;
}

.txla-cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.txla-cookie-banner .txla-cookie-banner__inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.txla-cookie-banner .txla-cookie-banner__copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  flex: 1 1 200px;
  min-width: 0;
}

.txla-cookie-banner .txla-cookie-banner__copy a {
  color: #ffd56a;
  text-decoration: underline;
}

.txla-cookie-banner .txla-cookie-banner__actions {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
  align-self: center;
}

/* Override the directory/account-shell button rules with full specificity
   inside the cookie banner so the buttons render as tight pills, not
   full-width primary CTAs. */
.txla-cookie-banner .txla-button,
.txla-cookie-banner .txla-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
  transform: none !important;
  box-shadow: none;
  min-width: 0;
}

.txla-cookie-banner .txla-button {
  background: #ffd56a;
  color: #0f1a2e;
  border-color: #ffd56a;
}
.txla-cookie-banner .txla-button:hover,
.txla-cookie-banner .txla-button:focus-visible {
  background: #ffe09a;
  border-color: #ffe09a;
  color: #0f1a2e;
}

.txla-cookie-banner .txla-button-secondary {
  background: transparent;
  color: #e6ecf7;
  border-color: rgba(255, 255, 255, 0.3);
}
.txla-cookie-banner .txla-button-secondary:hover,
.txla-cookie-banner .txla-button-secondary:focus-visible {
  border-color: #ffd56a;
  color: #ffd56a;
  background: transparent;
}

@media (max-width: 600px) {
  .txla-cookie-banner {
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    left: max(8px, env(safe-area-inset-left, 0px));
    right: max(8px, env(safe-area-inset-right, 0px));
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 12px;
  }
  .txla-cookie-banner .txla-cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .txla-cookie-banner .txla-cookie-banner__copy {
    font-size: 12px;
    line-height: 1.4;
    flex: none;
    width: 100%;
  }
  .txla-cookie-banner .txla-cookie-banner__actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
    align-self: stretch;
    gap: 6px;
  }
  .txla-cookie-banner .txla-button,
  .txla-cookie-banner .txla-button-secondary {
    padding: 6px 12px;
    font-size: 11px;
  }
  .txla-account-shell .txla-perf-card__value {
    font-size: 22px;
  }
}
