/* ═══════════════════════════════════════════════
   FinnFastlege — shared article styles
   Matches the main site design system.
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --teal:        #0C4A3E;
  --teal-dark:   #07332B;
  --teal-light:  #E9F1EC;
  --teal-mid:    #CBDFD6;
  --text:        #1C2B26;
  --text-sub:    #45534D;
  --text-muted:  #6B7770;
  --border:      #D8D3C8;
  --border-light:#EAE6DC;
  --bg:          #FFFFFF;
  --bg-page:     #FAF7F1;
  --bg-subtle:   #F5F1E8;
  --radius:      12px;
  --radius-lg:   18px;
  --radius-pill: 999px;
  --font-display:'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:   'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow:      0 2px 10px rgba(28,43,38,.08);
}
html { font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg-page); line-height: 1.7; }

/* ── Header ─────────────────────────── */
.site-header { background: rgba(250,247,241,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; height: 64px; gap: 16px; }
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark { width: 38px; height: 38px; background: var(--teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark svg { width: 19px; height: 19px; }
.logo-text { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.2px; }
.header-nav { margin-left: auto; display: flex; gap: 4px; }
.header-nav a { text-decoration: none; color: var(--text-sub); font-size: .95rem; font-weight: 500; padding: 8px 16px; border-radius: var(--radius-pill); transition: all .15s; }
.header-nav a:hover { color: var(--teal); background: var(--teal-light); }
.header-nav a.active { color: var(--teal); font-weight: 700; background: var(--teal-light); }

/* ── Article index hero ─────────────── */
.hero { background: var(--bg-page); padding: 56px 24px 40px; }
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero h1 { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; letter-spacing: -.4px; color: var(--text); margin-bottom: 12px; line-height: 1.15; }
.hero p { color: var(--text-sub); font-size: 1.1rem; max-width: 560px; }

/* ── Article index grid ─────────────── */
main { max-width: 900px; margin: 0 auto; padding: 8px 24px 80px; }
.section-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--teal); margin: 32px 0 16px; }
.articles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.article-card { background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 0; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s, transform .15s; }
.article-card:hover { box-shadow: var(--shadow); border-color: var(--teal-mid); transform: translateY(-2px); }
.card-img { width: 100%; height: 170px; object-fit: cover; display: block; background: var(--teal-light); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: .8rem; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.article-card h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.2px; margin-bottom: 8px; color: var(--text); line-height: 1.3; }
.article-card p { font-size: .92rem; color: var(--text-sub); margin: 0; flex: 1; }
.read-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; font-size: .88rem; font-weight: 700; color: var(--teal); }
.divider { border: none; border-top: 1px solid var(--border-light); margin: 40px 0 8px; }

/* ── Subtle AI disclosure note ──────── */
.ai-note { font-size: .78rem; color: var(--text-muted); text-align: center; margin-top: 48px; }

/* ── Article page ───────────────────── */
.breadcrumb { font-size: .875rem; color: var(--text-muted); padding: 16px 0 4px; }
.breadcrumb a { color: var(--teal); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }
main h1 { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; line-height: 1.2; letter-spacing: -.4px; margin-bottom: 12px; color: var(--text); }
.meta { font-size: .875rem; color: var(--text-muted); margin-bottom: 32px; }
.lead { font-size: 1.15rem; color: var(--text-sub); margin-bottom: 32px; line-height: 1.75; }
main h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.2px; margin: 44px 0 14px; color: var(--text); }
main h3 { font-size: 1.1rem; font-weight: 700; margin: 28px 0 10px; color: var(--text); }
main p { margin-bottom: 16px; color: var(--text-sub); }
main ul, main ol { margin: 0 0 20px 24px; }
main li { margin-bottom: 8px; color: var(--text-sub); }
main a { color: var(--teal); }

.callout { background: var(--teal-light); border-left: 4px solid var(--teal); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin: 24px 0; }
.callout strong { color: var(--teal-dark); display: block; margin-bottom: 4px; }

.cta-box { background: var(--teal-dark); color: #fff; border-radius: var(--radius-lg); padding: 36px 32px; text-align: center; margin: 48px 0; }
.cta-box h3 { font-family: var(--font-display); color: #fff; margin: 0 0 12px; font-size: 1.4rem; font-weight: 600; }
.cta-box p { color: rgba(255,255,255,.82); margin: 0 0 22px; }
.cta-btn { display: inline-block; background: #fff; color: var(--teal-dark); font-weight: 700; padding: 13px 30px; border-radius: var(--radius-pill); text-decoration: none; font-size: 1rem; transition: background .15s; }
.cta-btn:hover { background: var(--teal-light); }

table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .9rem; background: var(--bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-light); }
th { background: var(--teal-light); text-align: left; padding: 11px 14px; font-weight: 700; color: var(--teal-dark); border-bottom: 2px solid var(--teal-mid); }
td { padding: 11px 14px; border-bottom: 1px solid var(--border-light); }
tr:last-child td { border-bottom: none; }

.disclaimer { font-size: .8rem; color: var(--text-muted); margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-light); }

/* ── Footer ─────────────────────────── */
footer { background: var(--teal-dark); color: rgba(255,255,255,.78); padding: 36px 24px; font-size: .85rem; text-align: center; margin-top: 40px; }
footer a { color: rgba(255,255,255,.92); }
footer strong { color: #fff; }

/* ── Mobile ─────────────────────────── */
@media (max-width: 700px) {
  .header-inner { padding: 0 16px; height: 56px; }
  .logo-mark { width: 32px; height: 32px; }
  .logo-text { font-size: 17px; }
  .header-nav a { padding: 7px 12px; font-size: .85rem; }
  .hero { padding: 32px 16px 24px; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: .95rem; }
  main { padding: 8px 16px 60px; }
  main h1 { font-size: 1.7rem; }
  main h2 { font-size: 1.3rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 28px 20px; }
}

/* ── Article components ─────────────── */

/* Numbered how-to steps */
.howto, .steps { list-style: none; margin: 24px 0; padding: 0; counter-reset: step; }
.howto > li, .steps > li { counter-increment: step; background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 20px 22px 20px 66px; margin: 0 0 12px; position: relative; }
.howto > li::before, .steps > li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; background: var(--teal); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; font-family: var(--font-body); }
.howto-step-header { font-size: 1.02rem; margin-bottom: 6px; color: var(--text); }
.howto-step-body p, .sc p { margin-bottom: 8px; }
.sc strong { color: var(--text); }

/* On-screen UI label */
.screen-label { display: inline-block; background: var(--teal-light); border: 1px solid var(--teal-mid); color: var(--teal-dark); font-size: .85em; font-weight: 600; padding: 1px 8px; border-radius: 6px; white-space: nowrap; }

/* Timeline */
.timeline { margin: 24px 0; padding-left: 22px; border-left: 2px solid var(--teal-mid); }
.timeline-item { position: relative; padding: 0 0 20px 18px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; background: var(--teal); border-radius: 50%; border: 2.5px solid var(--bg-page); }
.timeline-item strong { display: block; color: var(--text); margin-bottom: 2px; }
.timeline-item p { margin-bottom: 0; }

/* FAQ */
.faq-section { margin: 24px 0; }
.faq-item { background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 10px; }
.faq-item h3 { margin: 0 0 6px; font-size: 1rem; }
.faq-item p { margin-bottom: 0; font-size: .95rem; }

/* Benefit / error / alternative cards */
.benefit-grid, .error-grid, .alternatives-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.benefit-card, .error-card, .alt-card { background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.alt-card { display: block; }
.benefit-icon, .error-card .icon { font-size: 1.3rem; line-height: 1.4; flex-shrink: 0; }
.benefit-card h3, .alt-card h3 { margin: 0 0 6px; font-size: 1rem; }
.benefit-card p, .error-card p, .alt-card p { margin-bottom: 0; font-size: .92rem; }
.error-card strong { color: var(--text); display: block; margin-bottom: 4px; }
@media (max-width: 700px) { .benefit-grid, .error-grid, .alternatives-grid { grid-template-columns: 1fr; } }

/* Highlight box */
.highlight-box { background: var(--bg-subtle); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 22px 24px; margin: 24px 0; }
.highlight-box h3 { margin: 0 0 8px; }
.highlight-box p { margin-bottom: 0; }

/* Callout variants share base .callout style */
.callout.warn, .callout.warning { background: #FDEEE0; border-left-color: #B85300; }
.callout.warn strong, .callout.warning strong { color: #7A3100; }
.callout.tip { background: var(--teal-light); border-left-color: var(--teal); }

/* Comparison table cell states */
.compare-table .check { color: #1A7A38; font-weight: 600; }
.compare-table .no { color: #C0392B; font-weight: 600; }
.compare-table .partial { color: #B85300; font-weight: 600; }
