/* ConfiDentist Blog — shared article styles
   Design system mirrors /confitalk/ and the main site. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #072C5E;
  --navy-mid:    #1C3165;
  --gold:        #0f7ae5;
  --gold-dark:   #0a5cb8;
  --gold-light:  #5cb2f7;
  --gold-bg:     #e9f3fd;
  --teal:        #3BAFBF;
  --bg:          #ffffff;
  --bg-soft:     #f6f8fb;
  --text:        #1a1f2e;
  --muted:       #586175;
  --border:      #dde3ee;
  --radius:      .75rem;
  --shadow-sm:   0 1px 4px rgba(7,44,94,.06), 0 4px 16px rgba(7,44,94,.06);
  --shadow-md:   0 4px 24px rgba(7,44,94,.10), 0 1px 4px rgba(7,44,94,.06);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: .3rem; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 500; background: var(--gold); color: #fff; font-weight: 700; padding: .6rem 1rem; border-radius: 0 0 .4rem 0; text-decoration: none; }
.skip-link:focus { left: 0; }

/* ── NAV ── */
nav.site { position: sticky; top: 0; z-index: 200; background: var(--navy); border-bottom: 2px solid var(--gold); }
.nav-inner { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: .02em; }
.nav-logo span { color: var(--gold-light); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-link { color: rgba(255,255,255,.75); font-size: .82rem; text-decoration: none; transition: color .2s; }
.nav-link:hover { color: #fff; }
.nav-cta { background: var(--gold); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .5rem 1.25rem; border-radius: .35rem; text-decoration: none; transition: background .2s; }
.nav-cta:hover { background: var(--gold-light); }

/* ── BREADCRUMBS ── */
.crumbs { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.crumbs-inner { max-width: 820px; margin: 0 auto; padding: .85rem 1.5rem; font-size: .78rem; color: var(--muted); }
.crumbs-inner a { color: var(--gold-dark); text-decoration: none; }
.crumbs-inner a:hover { text-decoration: underline; }
.crumbs-inner span[aria-current] { color: var(--navy); font-weight: 600; }
.crumbs-sep { margin: 0 .5rem; color: var(--border); }

/* ── ARTICLE HERO ── */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #0f3d72 100%); padding: 3.5rem 1.5rem; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.hero-inner { max-width: 760px; margin: 0 auto; text-align: left; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(15,122,229,.18); border: 1px solid rgba(15,122,229,.45); color: var(--gold-light); border-radius: .35rem; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: .35rem 1rem; margin-bottom: 1.25rem; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; color: #fff; margin-bottom: 1rem; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-sub { font-size: 1.03rem; color: rgba(255,255,255,.78); max-width: 640px; line-height: 1.7; font-weight: 300; }
.hero-meta { margin-top: 1.5rem; font-size: .8rem; color: rgba(255,255,255,.6); display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
.hero-meta .byline { color: var(--gold-light); font-weight: 600; }
.hero-meta .dot { opacity: .5; }

/* ── ARTICLE BODY ── */
.article-wrap { padding: 3rem 1.5rem 1rem; }
.article { max-width: 720px; margin: 0 auto; }
.article > p { font-size: 1.02rem; line-height: 1.85; color: var(--text); margin-bottom: 1.25rem; }
.article .lede { font-size: 1.15rem; line-height: 1.8; color: var(--navy-mid); font-weight: 400; margin-bottom: 1.75rem; }
.article h2 { font-family: 'Playfair Display', serif; font-size: 1.55rem; font-weight: 700; color: var(--navy); line-height: 1.3; margin: 2.5rem 0 1rem; }
.article h3 { font-family: 'Inter', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--navy-mid); line-height: 1.4; margin: 1.75rem 0 .75rem; }
.article ul, .article ol { margin: 0 0 1.5rem 1.35rem; }
.article li { font-size: 1.02rem; line-height: 1.8; color: var(--text); margin-bottom: .55rem; padding-left: .2rem; }
.article strong { color: var(--navy); font-weight: 700; }
.article a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.article a:hover { color: var(--gold); }
.article blockquote { border-left: 3px solid var(--gold); background: var(--bg-soft); padding: 1rem 1.35rem; margin: 1.75rem 0; border-radius: 0 .5rem .5rem 0; color: var(--muted); font-style: italic; }

/* ── TABLE ── */
.article .table-scroll { overflow-x: auto; margin: 1.75rem 0; }
.article table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 460px; }
.article th, .article td { text-align: left; padding: .75rem .9rem; border: 1px solid var(--border); vertical-align: top; line-height: 1.6; }
.article thead th { background: var(--navy); color: #fff; font-weight: 600; }
.article tbody tr:nth-child(even) { background: var(--bg-soft); }

/* ── CALLOUT / KEY TAKEAWAY ── */
.callout { background: var(--gold-bg); border: 1px solid rgba(15,122,229,.25); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.callout .callout-label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .5rem; display: block; }
.callout p { font-size: .96rem; line-height: 1.75; color: var(--navy-mid); margin: 0; }

/* ── FAQ ── */
.faq { margin: 2.5rem 0 0; }
.faq h2 { margin-bottom: 1.25rem; }
.faq-item { border-top: 1px solid var(--border); padding: 1.25rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item h3 { margin: 0 0 .5rem; color: var(--navy); font-size: 1.05rem; }
.faq-item p { font-size: .98rem; line-height: 1.8; color: var(--muted); margin: 0; }

/* ── LEARN MORE CALLOUT ── */
.learn-more { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); border-radius: var(--radius); padding: 2rem 2rem; margin: 2.75rem 0 0; color: #fff; box-shadow: var(--shadow-md); }
.learn-more .lm-label { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: .6rem; display: block; }
.learn-more p { font-size: .98rem; line-height: 1.75; color: rgba(255,255,255,.82); margin: 0; }
.learn-more p a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.learn-more p a:hover { color: var(--gold-light); }

/* ── AUTHOR / REVIEW BOX ── */
.review-box { max-width: 720px; margin: 2.5rem auto 0; padding: 1.25rem 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); font-size: .86rem; line-height: 1.7; color: var(--muted); }
.review-box strong { color: var(--navy); }

/* ── SOURCES ── */
.sources { max-width: 720px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.sources h2 { font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .85rem; }
.sources ul { list-style: none; margin: 0; }
.sources li { font-size: .85rem; line-height: 1.7; color: var(--muted); margin-bottom: .5rem; }
.sources a { color: var(--gold-dark); text-decoration: none; }
.sources a:hover { text-decoration: underline; }

/* ── MEDICAL DISCLAIMER ── */
.med-disclaimer { max-width: 720px; margin: 1.75rem auto 0; font-size: .78rem; line-height: 1.65; color: var(--muted); opacity: .85; font-style: italic; }

/* ── RELATED ── */
.related { max-width: 720px; margin: 2.75rem auto 0; padding-top: 1.75rem; border-top: 1px solid var(--border); }
.related h2 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--navy); margin-bottom: 1rem; }
.related ul { list-style: none; margin: 0; display: grid; gap: .6rem; }
.related a { color: var(--gold-dark); text-decoration: none; font-size: .95rem; font-weight: 500; }
.related a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer { background: var(--navy); color: rgba(255,255,255,.5); padding: 2.5rem 1.5rem; text-align: center; font-size: .78rem; line-height: 1.9; border-top: 1px solid rgba(255,255,255,.08); margin-top: 3.5rem; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: .35rem; }
.footer-logo span { color: var(--gold-light); }
footer a { color: var(--gold-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-disclaimer { margin-top: 1.25rem; font-size: .68rem; opacity: .5; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ── BLOG INDEX ── */
.index-section { padding: 3rem 1.5rem; max-width: 1080px; margin: 0 auto; }
.cluster { margin-bottom: 3rem; }
.cluster-head { border-left: 3px solid var(--gold); padding-left: 1rem; margin-bottom: 1.5rem; }
.cluster-head .cluster-kicker { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); display: block; margin-bottom: .3rem; }
.cluster-head h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--navy); font-weight: 700; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.card { display: block; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem 1.5rem; text-decoration: none; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.card .card-cat { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: .5rem; display: block; }
.card h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--navy); line-height: 1.35; margin-bottom: .5rem; }
.card p { font-size: .88rem; line-height: 1.65; color: var(--muted); }

@media (max-width: 520px) { .nav-link { display: none; } .hero { padding: 2.5rem 1.25rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .001ms !important; } }
