/* Blog styles. Loaded after /v4/svc/service.css, which holds the brand system
   (dark ground, Nohemi body, Instrument Serif italics, SohumAI orange, nav, buttons, footer, faq). */

.crumbs { font-size: 0.78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.4rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--light); }
.crumbs span[aria-hidden] { opacity: 0.5; }

/* Index */
.blog-head { padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(2rem, 5vw, 3.5rem); max-width: 46rem; }
.blog-head h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-bottom: clamp(3rem, 7vw, 5rem); }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; text-decoration: none; transition: transform .3s var(--ease), border-color .3s var(--ease); }
.card:hover, .card:focus-visible { transform: translateY(-2px); border-color: rgba(255,75,18,0.45); }
.card:active { transform: translateY(0); }
.card .shot { position: relative; aspect-ratio: 16 / 9; background: #0d0d0d; overflow: hidden; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .shot img { transform: scale(1.03); }
.card .shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.45)); }
.card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); max-width: none; line-height: 1.15; }
.card p { font-size: 0.93rem; color: var(--muted); line-height: 1.65; }
.card .go { margin-top: auto; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange2); }
.card.lead-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.card.lead-card .shot { aspect-ratio: auto; min-height: 20rem; }
.card.lead-card .body { padding: clamp(22px, 3vw, 36px); justify-content: center; }
.card.lead-card h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.meta { font-size: 0.76rem; letter-spacing: 0.06em; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; text-transform: uppercase; }
.meta b { color: var(--orange2); font-weight: 500; }

/* Article */
.article-head { max-width: 50rem; padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.2rem); }
.article-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.02; }
.article-head .lead { max-width: 42rem; }
.article-head .meta { margin-top: 1.4rem; }
.cover { border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 2px 0 rgba(255,75,18,0.06); }
.cover img, .cover video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cover-cap { margin-top: 10px; font-size: 0.82rem; color: var(--muted); }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.toc { position: sticky; top: 24px; font-size: 0.85rem; border-left: 1px solid var(--border); padding-left: 16px; }
.toc p { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover, .toc a:focus-visible { color: var(--light); }

.prose { max-width: 42rem; font-size: 1.04rem; line-height: 1.8; color: rgba(244,239,232,0.86); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { color: var(--light); font-size: clamp(1.5rem, 2.8vw, 2.05rem); margin-top: 3rem; scroll-margin-top: 24px; max-width: none; }
.prose h3 { color: var(--light); font-size: 1.15rem; margin-top: 2rem; }
.prose a { color: var(--orange2); text-underline-offset: 3px; }
.prose a:hover, .prose a:focus-visible { color: #fff; }
.prose strong { color: var(--light); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.prose li::marker { color: var(--orange); }
.prose figure { margin: 2rem 0; }
.prose figure img, .prose figure video { border-radius: 14px; width: 100%; background: var(--panel); }
.prose figcaption { margin-top: 8px; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.prose .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prose .duo img { aspect-ratio: 4 / 3; object-fit: cover; background: #fff; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--light); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }

/* The short answer block: written to be quoted by answer engines */
.answer { background: linear-gradient(180deg, #1c1c1c, #161616); border: 1px solid var(--border); border-left: 3px solid var(--orange); border-radius: 14px; padding: 20px 22px; }
.answer p.label { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin: 0 0 8px; }
.answer p { margin: 0; color: var(--light); }
.note { font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 1rem; }

.byline { display: flex; gap: 14px; align-items: center; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--border); }
.byline .mark { width: 46px; height: 46px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; color: #fff; font-weight: 600; letter-spacing: 0.04em; flex: none; }
.byline p { font-size: 0.9rem; color: var(--muted); line-height: 1.5; margin: 0; }
.byline b { color: var(--light); font-weight: 500; }

.cta-band { background: linear-gradient(180deg, #1a1a1a, #151515); border: 1px solid var(--border); border-radius: 22px; padding: clamp(1.6rem, 4vw, 2.75rem); display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: space-between; }
.cta-band h2 { max-width: 30rem; }
.cta-band .cta-row { margin-top: 0; }

.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 1.8rem; }
.related .card .shot { aspect-ratio: 16 / 8; }

@media (max-width: 900px) {
  .posts, .related { grid-template-columns: minmax(0, 1fr); }
  .card.lead-card { grid-template-columns: 1fr; }
  .card.lead-card .shot { min-height: 0; aspect-ratio: 16 / 9; }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .prose { min-width: 0; }
  .toc { position: static; order: -1; }
  .prose .duo { grid-template-columns: 1fr; }
  .cta-band .btn { width: 100%; }
}

/* AEO: the direct answer that follows every question heading */
.prose .answer-lead { color: var(--light); font-size: 1.08rem; line-height: 1.7; }

/* GEO: sources and read next */
.prose ol.sources { list-style: decimal; font-size: 0.9rem; line-height: 1.6; gap: 0.6rem; }
.prose ol.sources span, .read-next span { color: var(--muted); display: block; }
.prose ol.sources a { overflow-wrap: anywhere; }
.read-next { margin-top: 3rem; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.read-next .label { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin: 0 0 10px; }
.read-next ul { list-style: none; padding: 0; gap: 0.85rem; }
.read-next li { font-size: 0.92rem; line-height: 1.5; }
.read-next a { color: var(--light); text-decoration-color: rgba(255,75,18,0.5); }
.read-next a:hover, .read-next a:focus-visible { color: var(--orange2); }
.read-next a:active, .prose ol.sources a:active { opacity: 0.8; }
.byline a { color: var(--orange2); text-underline-offset: 3px; }
.byline a:hover, .byline a:focus-visible { color: #fff; }
