/* Homoeo Talks blog — standalone styles for the statically generated blog.
   A modern, card-based content layout: a light-gray page so white cards and
   article blocks stand out, clean sans-serif type, colored category badges, and
   clear hover/click affordances. Independent of the app's Tailwind build. */

:root {
  --page: #f4f6f8;        /* gray page ground so cards pop */
  --card: #ffffff;
  --ink: #16181d;
  --ink-soft: #384049;
  --muted: #697586;
  --line: #e5e8ec;
  --line-soft: #eef1f4;
  --accent: #1C4848;        /* brand-800 — logo + primary buttons */
  --accent-soft: #1F5050;   /* brand-700 — hover */
  --gold: #B87D2A;          /* gold-600 — footer accents */
  --shadow: 0 1px 2px rgba(16,24,40,.05);
  --shadow-lg: 0 14px 34px rgba(16,24,40,.11);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --logo: "Playfair Display", Georgia, serif;
  --wide: 1120px;
  --read: 760px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); }

/* ── Header (matches the main site logo) ────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap-wide { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo .mark { font-family: var(--logo); font-weight: 700; font-size: 20px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.logo .tag { font-size: 10px; letter-spacing: .04em; color: rgba(31,80,80,.6); margin-top: 5px; }
.site-nav { font-size: 14px; }
.site-nav a { color: var(--ink-soft); margin-left: 22px; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }
.site-nav .cta { background: var(--accent); color: #fff; padding: 9px 16px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.site-nav .cta:hover { background: var(--accent-soft); color: #fff; }
.cta-short { display: none; }
@media (max-width: 640px) {
  .site-nav a:not(.cta) { display: none; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .logo .mark { font-size: 17px; letter-spacing: .14em; }
  .site-header .wrap-wide { height: 60px; }
}

/* ── Footer (matches the main site's brand-900 footer) ──────────────────── */
.site-footer { background: #133636; color: #fff; margin-top: 64px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr; gap: 32px; } }
.fb-mark { font-family: var(--logo); font-weight: 700; font-size: 18px; letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.fb-underline { width: 32px; height: 2px; background: var(--gold, #B87D2A); margin: 12px 0 18px; }
.footer-h { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.footer-muted { font-size: 14px; color: rgba(255,255,255,.6); line-height: 1.6; margin: 0; }
.footer-links { display: flex; flex-direction: column; gap: 13px; font-size: 14px; }
.footer-links a { color: rgba(255,255,255,.7); }
.footer-links a:hover { color: #fff; }
.footer-linkcols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 24px; }
.fb-note { text-align: center; font-size: 11px; color: rgba(255,255,255,.6); max-width: 720px; margin: 0 auto; line-height: 1.6; }
.fb-copy { text-align: center; font-size: 12px; color: rgba(255,255,255,.3); margin: 10px 0 0; }

/* ── Category badges (colored, hashed by category) ──────────────────────── */
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.badge-0 { background: #e0efee; color: #14615f; }
.badge-1 { background: #fbebd1; color: #9a6a12; }
.badge-2 { background: #e2ecfb; color: #1f5bb5; }
.badge-3 { background: #f0e6f6; color: #7a3f96; }
.badge-4 { background: #e4f2e3; color: #2f7d38; }
.badge-5 { background: #fbe4e9; color: #b23a54; }

/* ── Credibility banner (mirrors the booking flow's DoctorBanner) ───────── */
.doc-banner { position: relative; overflow: hidden; border-radius: 18px; background: #F5F0E8; border: 1px solid rgba(214,211,209,.7); box-shadow: 0 1px 3px rgba(16,24,40,.07); margin-bottom: 30px; }
.db-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 38%; }
.db-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 0%; display: block; }
.db-fade { position: absolute; top: 0; bottom: 0; left: -1px; width: 90px; background: linear-gradient(to right, #F5F0E8, rgba(245,240,232,.6), transparent); }
.db-content { position: relative; padding: 30px 36px; min-height: 250px; display: flex; flex-direction: column; justify-content: center; max-width: 62%; }
.db-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0; }
.db-head { font-family: var(--logo); font-weight: 700; color: var(--accent); line-height: 1.06; margin: 10px 0 0; }
.db-head .l1 { display: block; font-size: clamp(1.5rem, 3vw, 2.3rem); white-space: nowrap; }
.db-head .l2 { display: block; font-style: italic; color: var(--gold); font-size: clamp(1.5rem, 3vw, 2.3rem); }
.db-cred { margin-top: 20px; }
.db-divider { display: block; width: 32px; height: 2px; background: rgba(184,125,42,.7); margin-bottom: 12px; }
.db-name { font-family: var(--logo); font-size: 20px; font-weight: 700; color: var(--accent); line-height: 1.2; margin: 0; white-space: nowrap; }
.db-qual { font-size: 14px; color: #57534e; line-height: 1.3; margin: 4px 0 0; }
.db-reg { font-size: 12px; color: var(--gold); line-height: 1.3; margin: 5px 0 0; }
@media (max-width: 640px) {
  .doc-banner { border-radius: 14px; }
  .db-photo { width: 40%; }
  .db-fade { width: 24px; }
  .db-content { padding: 16px 18px; min-height: 118px; max-width: 64%; }
  .db-eyebrow { display: none; }
  .db-head { margin-top: 0; }
  .db-name { font-size: 16px; }
  .db-cred { margin-top: 12px; }
}

/* ── Index masthead + controls ──────────────────────────────────────────── */
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.masthead .wrap-wide { padding-top: 40px; padding-bottom: 40px; }
.masthead h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 10px; color: var(--ink); }
.masthead p { font-size: 17px; color: var(--muted); margin: 0; max-width: 560px; line-height: 1.5; }
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 22px 0 0; }
.search-input { flex: 1 1 240px; min-width: 0; font-size: 15px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-family: inherit; }
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(28,72,72,.1); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { font-family: inherit; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; font-weight: 600; padding: 8px 15px; border-radius: 999px; cursor: pointer; transition: all .15s; }
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Card grid (index + related) ────────────────────────────────────────── */
/* Vertical only — keep the wrap's horizontal padding so cards don't touch the
   screen edges on mobile. */
.grid-section { padding-top: 36px; padding-bottom: 8px; }
.card-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) { .card-grid { grid-template-columns: 1fr 1fr; } }

.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; height: 100%; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d3dae0; }
.post-card:hover .pc-title { color: var(--accent); }
.pc-title { font-size: 1.28rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); margin: 13px 0 8px; }
.pc-excerpt { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0 0 18px; flex: 1 1 auto; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.pc-meta { font-size: 12.5px; color: var(--muted); }
.pc-read { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.empty { color: var(--muted); padding: 46px 0; text-align: center; grid-column: 1 / -1; }

/* ── Article ────────────────────────────────────────────────────────────── */
.article-wrap { max-width: var(--wide); margin: 36px auto 0; padding: 0 24px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

.article-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 46px 60px; }
.article-card h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.16; letter-spacing: -0.025em; color: var(--ink); margin: 14px 0 0; }
.deck { font-size: 1.2rem; line-height: 1.5; color: var(--muted); margin: 16px 0 0; }
.byline { display: flex; align-items: center; gap: 12px; margin: 24px 0 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); overflow: hidden; flex: 0 0 auto; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; display: block; }
.avatar.lg { width: 56px; height: 56px; }
.byline .name { font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.3; }
.byline .meta { color: var(--muted); font-size: 13.5px; }
.rule { border: none; border-top: 1px solid var(--line); margin: 28px 0; }

/* Reading body */
.body { font-size: 1.12rem; line-height: 1.78; color: var(--ink-soft); }
.body > *:first-child { margin-top: 0; }
.body p { margin: 0 0 1.3em; }
.body h2 { font-size: 1.6rem; font-weight: 700; color: var(--ink); line-height: 1.28; margin: 1.8em 0 .5em; letter-spacing: -0.015em; }
.body h3 { font-size: 1.28rem; font-weight: 700; color: var(--ink); margin: 1.5em 0 .4em; }
.body ul, .body ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.body li { margin: .5em 0; padding-left: .2em; }
.body li::marker { color: var(--accent); }
.body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.body blockquote { margin: 1.6em 0; padding: 16px 22px; background: #f0f5f4; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; color: var(--ink); font-size: 1.15rem; line-height: 1.5; font-style: italic; }
.body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--page); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; }
.body img { max-width: 100%; height: auto; border-radius: 10px; }
.body hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }

/* ── CTAs (distinct highlighted blocks) ─────────────────────────────────── */
.insta-cta { margin: 34px 0; padding: 22px 24px; background: linear-gradient(180deg,#fbfcfc,#f2f6f6); border: 1px solid #dfe9e8; border-radius: 14px; }
.insta-cta .h { font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.insta-cta p { margin: 6px 0 15px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 7px; font-family: inherit; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 9px; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-soft); color: #fff; }
.btn-outline { border: 1.5px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: rgba(28,72,72,.06); }

.author-box { display: flex; gap: 14px; align-items: flex-start; margin: 34px 0 0; padding: 22px; background: var(--page); border-radius: 14px; }
.author-box .name { font-weight: 700; color: var(--ink); font-size: 15px; }
.author-box .role { color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 3px; }
.author-box .link { margin-top: 13px; }

/* Related under an article */
.related-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 44px 0 4px; padding: 0 24px; max-width: var(--wide); margin-left: auto; margin-right: auto; }
.related-wrap { max-width: var(--wide); margin: 16px auto 0; padding: 0 24px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .masthead h1 { font-size: 1.9rem; }
  .article-wrap { margin-top: 22px; padding: 0 16px; }
  .breadcrumb { font-size: 12.5px; }
  .article-card { padding: 24px 20px; border-radius: 14px; }
  .article-card h1 { font-size: 1.6rem; line-height: 1.2; letter-spacing: -0.015em; margin-top: 12px; }
  .deck { font-size: 1.05rem; margin-top: 12px; }
  .byline { margin-top: 18px; }
  .avatar { width: 40px; height: 40px; }
  .rule { margin: 22px 0; }
  .body { font-size: 1.03rem; line-height: 1.65; }
  .body p { margin: 0 0 1.15em; }
  .body h2 { font-size: 1.3rem; margin: 1.5em 0 .4em; }
  .body h3 { font-size: 1.12rem; }
  .body blockquote { font-size: 1.05rem; padding: 12px 16px; margin: 1.3em 0; }
  .insta-cta { padding: 18px 18px; }
  .author-box { padding: 18px 16px; }
  .related-title { font-size: 1.2rem; padding: 0 16px; }
  .related-wrap { padding: 0 16px; }
}
