@import url('/tokens.css');

:root {
  --primary: var(--atlas-ink, #0F1B2D);
  --accent: var(--atlas-crm, #2463B0);
  --bg: var(--atlas-paper, #FFFFFF);
  --card-bg: var(--atlas-paper, #FFFFFF);
  --border: var(--atlas-ink, #0F1B2D);
  --text: var(--atlas-ink, #0F1B2D);
  --text-muted: var(--atlas-muted, #43536B);
  --tag-vyohm: var(--atlas-signal, #F4C430);
  --tag-vyohm-bg: #fffbeb;
  --tag-verified: #15803d;
  --tag-verified-bg: #dcfce7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--atlas-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  background-color: var(--atlas-paper, #FFFFFF);
  color: var(--atlas-ink, #0F1B2D);
  line-height: 1.6;
}

main {
  max-width: var(--atlas-content, 1120px);
  margin: 2.5rem auto;
  padding: 0 var(--atlas-gutter, 32px);
}

h1 {
  font-family: var(--atlas-font-display, inherit);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--atlas-ink);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--atlas-font-display, inherit);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--atlas-ink);
  margin: 1.5rem 0 0.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--atlas-font-display, inherit);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--atlas-ink);
  margin: 1.25rem 0 0.5rem;
}

p { margin-bottom: 1rem; }

.spreadsheet-warning {
  background: var(--atlas-wash, #F6F8FA);
  border: 1.5px solid var(--atlas-ink);
  border-left: 6px solid var(--atlas-signal, #F4C430);
  padding: 1rem 1.25rem;
  border-radius: var(--atlas-radius, 0);
  margin-bottom: 2rem;
  color: var(--atlas-ink);
  font-weight: 500;
}

.table-container {
  background: var(--atlas-paper);
  border-radius: var(--atlas-radius, 0);
  border: 1.5px solid var(--atlas-ink);
  overflow-x: auto;
  box-shadow: none;
}

table.provider-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

table.provider-table th {
  background: var(--atlas-sea, #E4EDF2);
  padding: 0.85rem 1rem;
  font-family: var(--atlas-font-mono, monospace);
  font-size: 12px;
  font-weight: 600;
  color: var(--atlas-ink);
  border-bottom: 2px solid var(--atlas-ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

table.provider-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--atlas-rule, #C5D1DB);
  vertical-align: middle;
}

table.provider-table tr:hover {
  background: var(--atlas-wash, #F6F8FA);
}

tr.vyohm-owned {
  background: #fffdf5;
}
tr.vyohm-owned:hover {
  background: #fef9c3;
}

.vyohm-label {
  display: block;
  font-family: var(--atlas-font-mono, monospace);
  font-size: 0.75rem;
  font-weight: 700;
  color: #92400e;
  background: var(--tag-vyohm-bg);
  border: 1px solid #fde68a;
  padding: 0.15rem 0.4rem;
  border-radius: var(--atlas-radius, 0);
  margin-top: 0.35rem;
  width: fit-content;
}

.badge-verified {
  background: var(--tag-verified-bg);
  color: var(--tag-verified);
  font-family: var(--atlas-font-mono, monospace);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--atlas-radius, 0);
  border: 1px solid #bbf7d0;
}

dl.provider-facts {
  background: var(--atlas-paper);
  padding: 1.5rem;
  border-radius: var(--atlas-radius, 0);
  border: 1.5px solid var(--atlas-ink);
  margin-bottom: 1.5rem;
}
dl.provider-facts dt { font-weight: 700; color: var(--atlas-muted); font-size: 0.85rem; text-transform: uppercase; margin-top: 1rem; }
dl.provider-facts dt:first-child { margin-top: 0; }
dl.provider-facts dd { font-size: 1.1rem; color: var(--atlas-ink); margin-top: 0.2rem; }

.vyohm-disclosure {
  background: #fffdf5;
  border: 1.5px solid var(--atlas-signal, #F4C430);
  border-left: 6px solid var(--atlas-signal, #F4C430);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--atlas-radius, 0);
}

/* ==========================================================================
   Editorial Article Styles & Typography (Question Detail Pages)
   ========================================================================== */

main.article-main {
  max-width: 840px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.breadcrumb {
  margin-bottom: 1.5rem;
}
.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

h1.article-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.reviewer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.reviewer-name {
  font-size: 0.95rem;
  color: var(--text);
}
.reviewer-name strong {
  color: var(--primary);
  font-weight: 700;
}

.article-meta-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.meta-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

/* Article Card & Prose Typography */
.answer-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .answer-card {
    padding: 1.5rem;
  }
}

.prose {
  font-size: 1.075rem;
  line-height: 1.8;
  color: #27272a;
}

.prose h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary);
  margin: 2.25rem 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f1f5f9;
  letter-spacing: -0.015em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin: 1.85rem 0 0.65rem;
}

.prose h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #334155;
  margin: 1.5rem 0 0.5rem;
}

.prose p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.prose strong {
  color: #09090b;
  font-weight: 700;
}

.prose em {
  font-style: italic;
}

.prose ul, .prose ol {
  margin: 1rem 0 1.5rem 1.75rem;
  padding: 0;
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.prose li::marker {
  color: var(--accent);
}

.prose blockquote {
  background: #f8fafc;
  border-left: 4px solid var(--accent);
  padding: 1.15rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 8px 8px 0;
  color: #334155;
  font-size: 1.025rem;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.prose a:hover {
  color: #1d4ed8;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.prose th {
  background: #f8fafc;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--border);
  text-align: left;
}

.prose td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: #334155;
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose tr:hover {
  background: #fdfdfd;
}

.prose code {
  background: #f1f5f9;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  color: #0f172a;
}

/* Sources Section */
.sources-section {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.sources-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.source-item {
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.source-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
}

.source-link:hover {
  text-decoration: underline;
}

.source-meta {
  color: var(--text-muted);
}

.source-claim {
  color: #334155;
}

.expert-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 1rem;
}

.expert-editorial-note {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  color: #166534;
  font-size: 0.925rem;
  line-height: 1.6;
}

.editorial-policy-title {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: #14532d;
}

/* ==========================================================================
   Question-Driven Provider Detail Pages (Gemini Research & Verification)
   ========================================================================== */

.badge-ai {
  background: #eff6ff;
  color: #1e40af;
  border: 1.5px solid #bfdbfe;
  font-family: var(--atlas-font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--atlas-radius, 0);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-verified-expert {
  background: #dcfce7;
  color: #15803d;
  border: 1.5px solid #bbf7d0;
  font-family: var(--atlas-font-mono, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--atlas-radius, 0);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.provider-overview-card {
  background: var(--atlas-paper, #ffffff);
  border: 1.5px solid var(--atlas-ink);
  border-radius: var(--atlas-radius, 0);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: none;
}

.provider-specs-card {
  background: var(--atlas-paper, #ffffff);
  border: 1.5px solid var(--atlas-ink);
  border-radius: var(--atlas-radius, 0);
  padding: 1.5rem;
  margin-top: 2.5rem;
  box-shadow: none;
}

.faq-section {
  margin: 2.5rem 0;
}

.faq-section-header {
  margin-bottom: 1.25rem;
}

.faq-card {
  background: var(--atlas-paper, #ffffff);
  border: 1.5px solid var(--atlas-ink);
  border-radius: var(--atlas-radius, 0);
  margin-bottom: 1rem;
  box-shadow: none;
  overflow: hidden;
}

.faq-card[open] {
  border-color: var(--atlas-ink);
  box-shadow: none;
}

.faq-summary {
  padding: 1.2rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

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

.faq-summary:hover {
  background: #f8fafc;
}

.faq-question-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.faq-badge-container {
  margin-left: 1rem;
  flex-shrink: 0;
}

.faq-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
}

.faq-answer-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
  margin-top: 1rem;
}

.faq-answer-text p {
  margin-bottom: 0.85rem;
}

.faq-answer-text ul, .faq-answer-text ol {
  margin: 0.75rem 0 0.85rem 1.5rem;
}

.faq-answer-text li {
  margin-bottom: 0.35rem;
}

.faq-answer-text strong {
  color: var(--primary);
}

.faq-meta-footer {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.faq-sources-list {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.faq-sources-list strong {
  color: var(--primary);
}

.faq-sources-list ul {
  list-style: none;
  margin: 0.35rem 0 0 0;
  padding: 0;
}

.faq-sources-list li {
  margin-bottom: 0.25rem;
}

.faq-sources-list a {
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}

.faq-sources-list a:hover {
  text-decoration: underline;
}
