/*
 * Article layout & typography – Linear-inspired readability
 * Breadcrumbs & footer: guides-shell.css (unchanged)
 */

/* Page shell: fixed nav offset, light background, typography base */
body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.75;
  color: #1a1a1a;
  background: #fff;
  margin: 0;
  padding: 0;
  padding-top: 80px;
}

/* Centered reading column, optimal line length (~65–75ch), generous whitespace */
.article,
.article-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px 80px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Header: category/subtitle above, title dominant, meta subtle */
.article header,
.article .article-header {
  border: none;
  padding-bottom: 32px;
  margin-bottom: 40px;
}

.article header h1,
.article .article-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #0f0f0f;
  margin: 0 0 16px;
}

.article .subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 16px;
  max-width: 60ch;
}

.article .meta {
  font-size: 0.875rem;
  color: #9ca3af;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

/* Section headings: clear hierarchy, ample spacing */
.article h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin: 48px 0 16px;
  padding-top: 32px;
  border-top: 1px solid #f3f4f6;
  line-height: 1.35;
}

.article h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #374151;
  margin: 32px 0 12px;
  line-height: 1.4;
}

.article h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #4b5563;
  margin: 24px 0 10px;
  line-height: 1.4;
}

/* Body: comfortable reading */
.article p {
  margin: 0 0 20px;
  font-size: 1.0625rem;
  color: #1f2937;
  line-height: 1.8;
}

.article ul,
.article ol {
  margin: 0 0 24px 1.5em;
  padding-left: 0.25em;
}

.article li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* Links */
.article a {
  color: #00a4e4;
  text-decoration: none;
  transition: color 0.2s;
}

.article a:hover {
  color: #0087c4;
  text-decoration: underline;
}

/* Callouts: subtle, clean */
.article .callout,
.article .highlight-box,
.article .tip-box,
.article .tip {
  background: #f8fafc;
  border-left: 4px solid #00a4e4;
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 6px 6px 0;
  font-size: 0.9375rem;
}

.article .callout strong,
.article .highlight-box strong,
.article .tip-box strong,
.article .tip strong {
  color: #1f2937;
}

/* Tables */
.article .table-wrap,
.article .table-container {
  overflow-x: auto;
  margin: 24px 0 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.article th,
.article td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e5e7eb;
}

.article th {
  background: #f9fafb;
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
  text-transform: none;
  letter-spacing: 0;
}

.article tr:nth-child(even) td {
  background: #fafbfc;
}

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

/* FAQ */
.article .faq {
  margin-top: 24px;
}

.article .faq details {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: #fff;
}

.article .faq details:hover {
  border-color: #d1d5db;
}

.article .faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #1f2937;
  font-size: 1rem;
}

.article .faq p {
  margin: 12px 0 0;
}

.article .faq-item {
  margin-bottom: 20px;
}

.article .faq-item:last-child {
  margin-bottom: 0;
}

.article .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.article .related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.article .related-links a {
  font-size: 0.95rem;
}

/* Figures */
.article figure,
.article .figure {
  margin: 32px 0 40px;
}

.article figure img,
.article .figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  border: 1px solid #f3f4f6;
}

.article figcaption,
.article .figure figcaption,
.article .figure-caption {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 12px;
  line-height: 1.5;
}

/* Chart / diagram containers */
.article .chart-container {
  margin: 32px 0;
  position: relative;
  min-height: 200px;
}

.article .source-credit {
  margin-top: 12px;
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
}

/* Place cards (e.g. cafe listings) */
.article .place-card {
  padding: 20px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin: 20px 0;
  background: #fff;
}

.article .place-meta {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Article footer */
.article footer,
.article .article-footer {
  border-top: 1px solid #f3f4f6;
  padding-top: 24px;
  margin-top: 48px;
  font-size: 0.875rem;
  color: #9ca3af;
  text-align: center;
}

.article footer p,
.article .article-footer p {
  margin: 0 0 4px;
  font-size: inherit;
}

.article footer p:last-child,
.article .article-footer p:last-child {
  margin-bottom: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .article {
    padding: 32px 24px 56px;
    margin: 0;
    box-shadow: none;
  }

  .article header h1,
  .article .article-header h1 {
    font-size: 1.625rem;
  }

  .article .subtitle {
    font-size: 1rem;
  }

  .article h2 {
    font-size: 1.35rem;
    margin-top: 36px;
    padding-top: 28px;
  }

  .article h3 {
    font-size: 1.1rem;
  }
}
