/* Generated page styles — extends shared.css
   Used by templates/gen/*.html (static page generation output)
*/

/* ── Layout ───────────────────────────────────────────── */

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  max-height: calc(100vh - var(--nav-h) - 2rem);
  overflow-y: auto;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 768px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
}

/* ── Hero banner ──────────────────────────────────────── */

.hub-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-lt));
  padding: 2.5rem 0;
  margin-bottom: 0;
}

.hub-hero .container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}

.hub-hero h1 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 2rem;
  line-height: 1.25;
  margin: 0.5rem 0;
}

.hub-hero__sub {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.5rem;
  font-size: 1rem;
}

.hub-hero__sub a {
  color: var(--gold-lt);
}

.hub-hero--specialty {
  background: linear-gradient(135deg, #1c2e4a, #2d4a7a);
}

.specialty-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* ── Breadcrumb ───────────────────────────────────────── */

.breadcrumb {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.85);
}

/* ── Answer capsule ───────────────────────────────────── */

.answer-capsule {
  background: #f0faf3;
  border-left: 4px solid var(--emerald);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.answer-capsule p {
  margin: 0;
  color: var(--text);
}

.answer-capsule__verify-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--emerald);
}

/* ── Hub body ─────────────────────────────────────────── */

.hub-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

.hub-body section {
  margin-bottom: 2.5rem;
}

.hub-body h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

/* ── Region/city grid ─────────────────────────────────── */

.region-grid,
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.region-card,
.city-card {
  display: flex;
  flex-direction: column;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.region-card:hover,
.city-card:hover {
  border-color: var(--emerald);
  box-shadow: var(--shadow-sm);
}

.region-card__name,
.city-card__name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.region-card__count,
.city-card__count {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ── Practitioner grid ────────────────────────────────── */

.practitioner-grid-section {
  margin-bottom: 2rem;
}

.practitioner-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.practitioner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.practitioner-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.practitioner-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  align-items: flex-start;
  cursor: default;
}

.practitioner-card__avatar img {
  border-radius: 50%;
  object-fit: cover;
}

.practitioner-card__name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.875rem;
  margin: 0;
}

.practitioner-card__meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.15rem 0;
}

.practitioner-card__firm {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.practitioner-card__langs {
  font-size: 0.7rem;
  color: var(--light);
  margin: 0.15rem 0 0;
}

.practitioner-card__status {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.practitioner-card__status--active {
  color: var(--emerald);
}

.practitioner-grid-more {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* ── Adjacent / nearby links ──────────────────────────── */

.adjacent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.adjacent-link {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text);
  text-decoration: none;
}

.adjacent-link:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

/* ── Data tables ──────────────────────────────────────── */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.data-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.data-table td a {
  color: var(--emerald);
  text-decoration: none;
  font-weight: 500;
}

.data-table td a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .data-table {
    display: block;
    overflow-x: auto;
  }
}

/* ── FAQ items ────────────────────────────────────────── */

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.1rem;
  color: var(--muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 1rem 0.85rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

/* ── Highlight boxes ──────────────────────────────────── */

.highlight-box {
  background: #f0faf3;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.875rem;
  margin: 1rem 0;
}

.highlight-box a {
  color: var(--emerald);
  font-weight: 600;
}

.alert--warning {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.875rem;
  color: #78350f;
  margin: 1rem 0;
}

/* ── Profile layout ───────────────────────────────────── */

.profile-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.profile-header__avatar img {
  border-radius: 50%;
  object-fit: cover;
}

.profile-header__info {
  flex: 1;
}

.profile-header__info h1 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.profile-header__title {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.2rem 0;
}

.profile-header__location,
.profile-header__firm {
  font-size: 0.875rem;
  color: var(--text);
  margin: 0.2rem 0;
}

.profile-header__status {
  text-align: center;
  flex-shrink: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
}

.status-badge--active {
  background: #dcfce7;
  color: #15803d;
}

.profile-header__verified {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.5rem;
  line-height: 1.4;
}

.profile-header__verified a {
  color: var(--muted);
}

.profile-contact,
.profile-licence,
.profile-specialties,
.profile-bio {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.profile-contact h2,
.profile-licence h2,
.profile-specialties h2,
.profile-bio h2 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1rem;
  font-size: 0.875rem;
}

dt {
  color: var(--muted);
  font-weight: 600;
}

dd {
  color: var(--text);
}

dd.info-note {
  grid-column: 1 / -1;
  background: #f0faf3;
  border-left: 3px solid var(--emerald);
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  margin-top: -0.25rem;
}

.status-active {
  color: var(--emerald);
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text);
}

.badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  vertical-align: middle;
}

.badge--claimed {
  background: #dbeafe;
  color: #1d4ed8;
}

/* ── Article body ─────────────────────────────────────── */

.article-header {
  margin-bottom: 1.5rem;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.article-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.legal-disclaimer {
  background: #fef9ee;
  border-left: 3px solid var(--gold);
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
  color: #6b4c0d;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1rem;
}

.article-content {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 2rem;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 1.75rem 0 0.75rem;
}

.article-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.25rem 0 0.5rem;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.article-content li {
  margin-bottom: 0.35rem;
}

.article-content blockquote {
  border-left: 3px solid var(--border);
  padding: 0.5rem 1rem;
  color: var(--muted);
  margin: 1rem 0;
  font-style: italic;
  font-size: 0.875rem;
}

.article-related ul {
  list-style: none;
}

.article-related ul li {
  margin-bottom: 0.4rem;
}

.article-related ul li a {
  color: var(--emerald);
  font-size: 0.875rem;
}

.article-footer {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-top: 2rem;
}

/* ── IRB divisions ────────────────────────────────────── */

.irb-divisions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.irb-division-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

.irb-division-card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.irb-division-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.irb-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.irb-note a {
  color: var(--emerald);
}

/* ── Sidebar components ───────────────────────────────── */

.sidebar-verify,
.sidebar-info,
.sidebar-related,
.sidebar-nav {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.sidebar-verify h3,
.sidebar-info h3,
.sidebar-related h3,
.sidebar-nav h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.sidebar-verify p,
.sidebar-info p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.sidebar-related ul,
.sidebar-nav ul {
  list-style: none;
  font-size: 0.8rem;
}

.sidebar-related ul li,
.sidebar-nav ul li {
  margin-bottom: 0.35rem;
}

.sidebar-related ul li a,
.sidebar-nav ul li a {
  color: var(--emerald);
  text-decoration: none;
}

.sidebar-nav ul li a.active {
  font-weight: 700;
  color: var(--navy);
}

/* ── Claim CTA ────────────────────────────────────────── */

.claim-cta {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface);
  font-size: 0.875rem;
}

.claim-cta--unclaimed {
  border-color: #3366cc;
  background: #eef2fb;
}

.claim-cta__eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.claim-cta__headline {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.claim-cta__body {
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
}

.claim-cta__btn {
  display: block;
  background: #3366cc;
  color: #fff;
  text-align: center;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.claim-cta__btn:hover {
  background: #2a56b0;
}

.claim-cta__sub {
  margin: 0.6rem 0 0;
  font-size: 0.7rem;
  color: var(--light);
  text-align: center;
}

/* ── Site footer ──────────────────────────────────────── */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  padding: 2rem 0;
  font-size: 0.8rem;
  margin-top: 2rem;
}

.site-footer .container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}
