/* Koaches blog - presentational styles for the static /interview/blog index + post pages.
   Loaded AFTER blog-tokens.css (a verbatim copy of the app's packages/web/design-system/tokens.css),
   so every color/spacing value resolves to the same var(--token) the app ships.
   Adapted from the approved blog platform mockup; only the index + post surfaces
   this PR emits are styled here. */

/* ── Public header (mirrors public-header.css) ── */
.public-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}
.ph-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.ph-logo {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-family: var(--ff-display);
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
}
.ph-logo-mark { display: block; border-radius: 8px; flex-shrink: 0; }
.ph-links { display: flex; align-items: center; justify-content: center; gap: 22px; }
.ph-link {
  font: 600 14px var(--ff-body);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--speed-fast);
}
.ph-link:hover { color: var(--text); }
.ph-link.active { color: var(--primary); }
.ph-actions { flex: 1 1 0; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.ph-signin {
  font: 600 14px var(--ff-body);
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 10px;
}
.ph-signin:hover { color: var(--text); }
.ph-signup {
  background: var(--primary);
  color: var(--text-inverse);
  border-radius: 8px;
  font: 600 14px var(--ff-body);
  padding: 9px 18px;
  text-decoration: none;
  transition: background var(--speed-fast);
}
.ph-signup:hover { background: var(--primary-strong); }
@media (max-width: 720px) { .ph-links { display: none; } }

/* ── Shared primitives ── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font: 600 12px var(--ff-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 5px 16px;
  border-radius: var(--radius-pill);
}
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  color: var(--primary-dark);
  width: fit-content;
}
.btn {
  font-family: var(--ff-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all var(--speed-fast);
}
.btn-primary { background: var(--primary); color: var(--text-inverse); border-radius: 8px; padding: 12px 28px; font-size: 15px; }
.btn-primary:hover { background: var(--primary-strong); transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 38px 0 16px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--ff-display); font-size: 24px; font-weight: 400; color: var(--text); }
.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-lighter);
  border: 1px solid var(--primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.avatar .avatar-mark { width: 68%; height: 68%; object-fit: contain; display: block; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.post-meta .dot { color: var(--border); }

/* ── Post cards + grid ── */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--speed-normal), transform var(--speed-normal), border-color var(--speed-normal);
  min-width: 0;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary); }
.thumb { height: 150px; background: var(--primary-gradient); position: relative; }
.thumb-glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 40px;
  color: rgba(255, 255, 255, 0.35);
}
.pc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 0; }
.pc-title { font-family: var(--ff-display); font-size: 20px; font-weight: 400; line-height: 1.25; color: var(--text); }
.pc-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Index ── */
.blog-hero {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(74, 158, 143, 0.12) 0%, transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(74, 158, 143, 0.04) 1px, transparent 0);
  background-color: var(--bg);
  background-size: 100% 100%, 28px 28px;
  text-align: center;
  padding: 52px 24px 40px;
}
.blog-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin: 18px auto 14px;
  max-width: 640px;
}
.blog-hero h1 em { font-style: italic; color: var(--primary-dark); }
.blog-hero .sub { font-size: 16px; color: var(--text-secondary); line-height: 1.6; max-width: 560px; margin: 0 auto; }
.blog-index-body { padding-bottom: 8px; }

/* ── Search island (progressive enhancement — see scripts/blog/islands/search-island.js) ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.blog-search { position: relative; max-width: 460px; margin: 26px auto 0; text-align: left; }
.blog-search-input {
  width: 100%;
  font: 500 14px var(--ff-body);
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
}
.blog-search-input:focus { outline: none; border-color: var(--primary); box-shadow: var(--shadow-sm); }
.blog-search-input::placeholder { color: var(--text-muted); }
.blog-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
}
.bs-results-list { display: flex; flex-direction: column; gap: 2px; }
.bs-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
}
.bs-result:hover { background: var(--bg-alt); }
.bs-result-title { font: 600 13px var(--ff-body); color: var(--text); }
.bs-result-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bs-empty { font-size: 13px; color: var(--text-muted); padding: 10px; margin: 0; }
.blog-empty { text-align: center; padding: 60px 24px 40px; }
.blog-empty h2 { font-family: var(--ff-display); font-size: 28px; font-weight: 400; color: var(--text); margin-bottom: 8px; }
.blog-empty p { font-size: 15px; color: var(--text-secondary); }

.featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.featured .f-media { background: var(--primary-gradient); min-height: 300px; position: relative; display: block; }
.featured .f-media .thumb-glyph { font-size: 64px; }
/* A post's branded hero fronts the Featured card; left-crop keeps its left-aligned
   title text visible (the badge, being absolute, still overlays). */
.featured .f-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.featured .f-body { padding: 34px 36px; display: flex; flex-direction: column; gap: 14px; justify-content: center; min-width: 0; }
.featured .f-body h3 { font-family: var(--ff-display); font-size: 30px; font-weight: 400; line-height: 1.2; color: var(--text); }
.featured .f-body p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }
.f-actions { margin-top: 6px; }
.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  font: 700 10px var(--ff-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
@media (max-width: 760px) { .featured { grid-template-columns: 1fr; } }

/* ── Post ── */
.breadcrumb { max-width: 760px; margin: 0 auto; padding: 26px 24px 0; font-size: 13px; color: var(--text-muted); display: flex; gap: 7px; flex-wrap: wrap; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb .sep { color: var(--border); }
.article { max-width: 760px; margin: 0 auto; padding: 14px 24px 0; }
.article-head { border-bottom: 1px solid var(--border-light); padding-bottom: 26px; }
.article-head h1 { font-family: var(--ff-display); font-size: clamp(30px, 5vw, 44px); font-weight: 400; line-height: 1.14; color: var(--text); margin: 14px 0; }
.article-head .dek { font-size: 18px; color: var(--text-secondary); line-height: 1.55; }
.byline { display: flex; align-items: center; gap: 11px; margin-top: 22px; }
.byline .avatar { width: 40px; height: 40px; font-size: 14px; }
.byline .b-name { font: 600 14px var(--ff-body); color: var(--text); }
.byline .b-meta { font-size: 12.5px; color: var(--text-muted); }

/* Hero lead image */
.article-hero { max-width: 960px; margin: 28px auto 0; padding: 0 24px; }
.article-hero .ah-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--bg-alt);
}

.prose { max-width: 720px; margin: 0 auto; padding: 34px 24px 0; }
.prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 6px 0 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.prose p { font-size: 17px; line-height: 1.75; color: var(--text); margin-bottom: 22px; }
.prose h2 { font-family: var(--ff-display); font-size: 28px; font-weight: 400; color: var(--text); margin: 38px 0 14px; line-height: 1.25; }
.prose h3 { font: 700 17px var(--ff-body); color: var(--text); margin: 26px 0 10px; }
.prose ul, .prose ol { margin: 0 0 22px 4px; padding-left: 22px; }
.prose li { font-size: 17px; line-height: 1.7; color: var(--text); margin-bottom: 9px; }
.prose strong { font-weight: 600; color: var(--text); }
.prose a { color: var(--primary-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  border-left: 3px solid var(--primary);
  padding: 4px 0 4px 20px;
  margin: 0 0 24px;
  font-family: var(--ff-display);
  font-size: 23px;
  font-style: italic;
  line-height: 1.4;
  color: var(--text-secondary);
}
.prose blockquote p { font-size: inherit; line-height: inherit; color: inherit; margin-bottom: 8px; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 26px;
  font-size: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.prose th {
  background: var(--bg-alt);
  text-align: left;
  font: 700 11px var(--ff-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  padding: 11px 14px;
}
.prose td { padding: 12px 14px; border-top: 1px solid var(--border-light); color: var(--text); line-height: 1.5; vertical-align: top; }
.prose tr:hover td { background: var(--primary-lighter); }

/* Answer-first "Quick answer" callout (AEO device). Must follow .prose p so its
   paragraph styling wins at equal specificity. */
.quick-answer {
  background: linear-gradient(180deg, var(--primary-lighter) 0%, var(--primary-light) 100%);
  border: 1px solid var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin: 2px 0 30px;
}
.quick-answer .qa-label {
  font: 700 11px var(--ff-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.quick-answer p { font-size: 16px; line-height: 1.6; color: var(--text); margin: 0; }

/* ── FAQ (static, always-open) ── */
.faq { max-width: 720px; margin: 12px auto 0; padding: 0 24px; }
.faq h2 { font-family: var(--ff-display); font-size: 28px; font-weight: 400; margin-bottom: 16px; }
.faq-item { border: 1px solid var(--border-light); border-radius: var(--radius-md); background: var(--card); margin-bottom: 10px; overflow: hidden; }
.faq-q { padding: 16px 18px 4px; font: 600 15px var(--ff-body); color: var(--text); }
.faq-a { padding: 4px 18px 16px; font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; }

/* ── Author bio card ── */
.author-card {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 24px;
  display: flex;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.author-card .avatar { width: 56px; height: 56px; font-size: 20px; }
.ac-body { min-width: 0; }
.ac-ey { font: 700 10px var(--ff-body); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 3px; }
.ac-name { font-family: var(--ff-display); font-size: 22px; font-weight: 400; color: var(--text); }
.ac-role { font-size: 13px; color: var(--primary-dark); margin-bottom: 8px; }
.ac-bio { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }

/* ── Share row (per-post share-intent links + copy-link) ── */
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.share-row-label {
  font: 700 10px var(--ff-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-right: 2px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  font: 600 12px var(--ff-body);
  color: var(--text-secondary);
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--speed-fast), color var(--speed-fast), border-color var(--speed-fast);
}
.share-btn:hover { background: var(--primary-light); color: var(--primary-dark); border-color: var(--primary); }
.share-copy { font-size: 12px; padding: 0 14px; }

/* ── Tag chips (clickable, resolve to a tag page) ── */
.tag-chip { text-decoration: none; transition: background var(--speed-fast), color var(--speed-fast); }
.tag-chip:hover { background: var(--primary); color: var(--text-inverse); }
.tag-chips { max-width: 720px; margin: 34px auto 0; padding: 0 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tag-chips-label {
  font: 700 10px var(--ff-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-right: 4px;
}
.article-head .tag-chip { text-decoration: none; }
.ac-name-link { text-decoration: none; color: inherit; }
.ac-name-link:hover { color: var(--primary-dark); }

/* ── Related posts rail ── */
.related { max-width: 1180px; margin: 44px auto 0; padding: 0 24px; }
.related .section-head { margin: 0 0 16px; }

/* ── Taxonomy listing pages (category / tag / author) ── */
.tax-hero { padding: 44px 24px 34px; }
.tax-hero h1 { text-transform: capitalize; }
.tax-back { font: 600 13px var(--ff-body); color: var(--primary-dark); text-decoration: none; }
.tax-back:hover { text-decoration: underline; }

/* ── End-of-post CTA ── */
.endcta { max-width: 960px; margin: 52px auto 0; padding: 0 24px; }
.endcta-inner { background: var(--text); border-radius: var(--radius-lg); padding: 44px; text-align: center; }
.endcta h3 { font-family: var(--ff-display); font-size: 30px; font-weight: 400; color: var(--text-inverse); margin-bottom: 8px; }
.endcta p { font-size: 15px; color: rgba(255, 255, 255, 0.72); margin: 0 auto 22px; max-width: 440px; line-height: 1.55; }
.endcta .btn-primary { font-size: 16px; padding: 14px 34px; }
.endcta .btn-primary:hover { background: var(--primary-strong); }

/* ── Footer ── */
.site-footer { background: var(--text); color: rgba(255, 255, 255, 0.6); padding: 44px 24px 28px; margin-top: 64px; }
.sf-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.sf-brand { font-family: var(--ff-display); font-size: 24px; color: var(--text-inverse); display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.sf-tag { font-size: 13px; color: rgba(255, 255, 255, 0.5); max-width: 320px; line-height: 1.6; }
.sf-col h4 { font: 700 11px var(--ff-body); text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255, 255, 255, 0.78); margin-bottom: 12px; }
.sf-col a { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.6); padding: 4px 0; text-decoration: none; transition: color var(--speed-fast); }
.sf-col a:hover { color: var(--text-inverse); }
.sf-bottom {
  max-width: 1180px;
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.sf-bottom a { color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.sf-bottom a:hover { color: var(--text-inverse); }

/* ── Footer newsletter subscribe box ── */
.sf-newsletter { min-width: 240px; max-width: 300px; }
.sf-newsletter h4 { font: 700 11px var(--ff-body); text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255, 255, 255, 0.78); margin-bottom: 8px; }
.sf-newsletter-sub { font-size: 12px; color: rgba(255, 255, 255, 0.5); line-height: 1.5; margin-bottom: 12px; }
.sf-newsletter-row { display: flex; gap: 8px; }
.sf-newsletter-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 9px 14px;
  color: var(--text-inverse);
  font-family: var(--ff-body);
  font-size: 13px;
}
.sf-newsletter-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.sf-newsletter-input:focus { outline: none; border-color: var(--primary); }
.sf-newsletter-btn { white-space: nowrap; }
/* Honeypot — off-screen for humans (not display:none, which some bots skip
   filling), still present + focusable for the bots this field exists to trap. */
.sf-newsletter-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sf-newsletter-status { font-size: 12px; color: rgba(255, 255, 255, 0.7); margin: 8px 0 0; min-height: 15px; }

@media (max-width: 860px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }
