/* Blog presentation layer (Nov 2026): magazine-style index and premium article typography.
   Loaded after each blog page's own inline <style>, so it restyles existing and future Ryze posts
   without touching their text, links, schema, or meta. Inline Ryze box styles need !important. */
:root { --bl-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; --bl-sans: Jost, 'Helvetica Neue', Helvetica, Arial, sans-serif; --bl-cream: #f4efe5; }

/* ---------- Shared page frame ---------- */
.blog-wrap { max-width: 1180px; padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 3vw, 2rem) 0; overflow-wrap: break-word; }
.blog-wrap > .eyebrow { margin: 0 0 1.2rem; font: 500 .72rem var(--bl-sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-deep); }
.blog-wrap > .eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: .2rem; }
.blog-wrap > h1 { font: 400 clamp(2.3rem, 5.4vw, 4rem) / 1.08 var(--bl-serif); letter-spacing: -.012em; color: var(--ink); text-wrap: balance; margin: 0 0 1.4rem; }

/* ---------- Index ---------- */
/* The shared photo banner (heroize) opens the index edge to edge, flush under the header. */
.blog-wrap:has(> .pg-hero:first-child) { padding-top: 0; }
.blog-wrap > .pg-hero:first-child { margin-top: 0 !important; margin-bottom: clamp(2.6rem, 6vw, 4.2rem); }
.blog-index > .eyebrow, .blog-index > h1, .blog-index > .intro { text-align: center; margin-left: auto; margin-right: auto; }
.blog-index > h1 { max-width: 14ch; }
.blog-index > .intro { max-width: 34rem; font: 400 1.05rem / 1.75 var(--bl-sans); color: var(--ink-soft); }
.blog-index > .intro::after { content: ''; display: block; width: 56px; margin: 2.2rem auto 0; border-top: 1px solid var(--gold); }
.blog-list.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.6rem, 5vw, 4.2rem) clamp(1.4rem, 2.6vw, 2.4rem); margin: clamp(3rem, 7vw, 5rem) 0 0; }
.bl-grid a.bl-card { display: flex; flex-direction: column; padding: 0; background: none; border: 0; box-shadow: none; color: var(--ink); text-decoration: none; }
.bl-grid a.bl-card:hover { border: 0; }
.bl-media { margin: 0 0 1.4rem; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bl-cream); }
.bl-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2,.7,.2,1), opacity .4s ease; }
.bl-card:hover .bl-media img, .bl-card:focus-visible .bl-media img { transform: scale(1.04); }
.bl-copy { display: flex; flex-direction: column; flex: 1; }
.bl-grid time { display: block; font: 500 .7rem var(--bl-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 .8rem; }
.bl-grid h2 { font: 400 clamp(1.4rem, 1.9vw, 1.65rem) / 1.2 var(--bl-serif); letter-spacing: -.005em; color: var(--ink); margin: 0 0 .75rem; text-wrap: balance; }
.bl-grid p { font: 400 .94rem / 1.7 var(--bl-sans); color: var(--ink-soft); margin: 0 0 1.2rem; max-width: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-more { margin-top: auto; align-self: flex-start; font: 500 .68rem var(--bl-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: .3rem; transition: color .2s ease; }
.bl-card:hover .bl-more { color: var(--gold-deep); }
.bl-card:hover h2 { color: #000; }
.bl-card:focus-visible { outline: 1px solid var(--gold); outline-offset: 6px; }
/* Newest post: large feature spanning the grid */
.bl-grid a.bl-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 4rem); align-items: center; padding-bottom: clamp(2.6rem, 5vw, 4.2rem); border-bottom: 1px solid var(--hairline); }
.bl-feature .bl-media { margin: 0; aspect-ratio: 3 / 2; }
.bl-feature h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); line-height: 1.1; margin-bottom: 1.1rem; }
.bl-feature p { font-size: 1.02rem; -webkit-line-clamp: 4; margin-bottom: 1.8rem; }
.bl-feature time::before { content: 'Latest \00b7  '; color: var(--ink); }

@media (max-width: 1000px) {
  .blog-list.bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .blog-list.bl-grid { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .bl-grid a.bl-feature { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding-bottom: 3rem; }
  .bl-media { aspect-ratio: 3 / 2; }
}

/* ---------- Article ---------- */
.blog-post { max-width: 48rem; }
.blog-post > .eyebrow, .blog-post > h1, .blog-post > .article-date { text-align: center; margin-left: auto; margin-right: auto; }
.blog-post > h1 { max-width: 20ch; }
.blog-post > .article-date { display: block; font: 500 .72rem var(--bl-sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); }
.blog-post > .article-date::after { content: ''; display: block; width: 56px; margin: 1.8rem auto 0; border-top: 1px solid var(--gold); }
.blog-post .article-hero { position: relative; left: 50%; transform: translateX(-50%); width: min(68rem, calc(100vw - 2rem)); max-width: none; height: auto; max-height: none; aspect-ratio: 16 / 8; object-fit: cover; margin: clamp(2rem, 5vw, 3.4rem) 0 clamp(2.4rem, 5vw, 3.6rem); background: var(--bl-cream); }
.blog-post .article-body { font: 400 1.04rem / 1.85 var(--bl-sans); color: #3d3631; margin-top: 2rem; }
.blog-post .article-hero + .article-body { margin-top: 0; }
.article-body p { max-width: none; margin: 0 0 1.35rem; }
.article-body > p:first-child { font: 400 clamp(1.3rem, 2.3vw, 1.5rem) / 1.55 var(--bl-serif); color: var(--ink); }
.article-body h2, .article-body h3, .article-body h4 { font-family: var(--bl-serif); color: var(--ink); letter-spacing: -.005em; text-wrap: balance; }
.article-body h2 { font-size: clamp(1.75rem, 3.2vw, 2.3rem); font-weight: 500; line-height: 1.16; margin: 3.4rem 0 1.1rem; }
.article-body h2::before { content: ''; display: block; width: 40px; border-top: 1px solid var(--gold); margin: 0 0 1.3rem; }
.article-body h3 { font-size: clamp(1.35rem, 2.3vw, 1.6rem); font-weight: 600; line-height: 1.25; margin: 2.4rem 0 .8rem; }
.article-body h4 { font: 500 .8rem var(--bl-sans); letter-spacing: .2em; text-transform: uppercase; margin: 2rem 0 .7rem; }
.article-body strong { font-weight: 500; color: var(--ink); }
.article-body a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); transition: color .2s ease, border-color .2s ease; }
.article-body a:hover { color: var(--gold-deep); border-bottom-color: var(--gold-deep); }
.article-body ul, .article-body ol { padding-left: 1.3rem; margin: 0 0 1.6rem; }
.article-body li { margin: .5rem 0; padding-left: .3rem; }
.article-body ul > li::marker { content: '\25aa'; color: var(--gold); font-size: .8em; }
.article-body ol > li::marker { font: 500 .85em var(--bl-sans); color: var(--gold-deep); }
.article-body blockquote { border: 0; border-left: 1px solid var(--gold); background: none; padding: .2rem 0 .2rem 1.6rem; margin: 2.2rem 0; font: italic 400 1.4rem / 1.5 var(--bl-serif); color: var(--ink); }
.article-body hr { border: 0; border-top: 1px solid var(--hairline); margin: 3rem 0; }
.article-body img { max-width: 100%; height: auto; }

/* TL;DR: cream panel, thin gold rule, square corners */
.article-body .pseo-tldr { margin: 2.6rem 0 !important; padding: 1.9rem clamp(1.3rem, 4vw, 2.4rem) 1.6rem !important; border: 1px solid var(--hairline) !important; border-top: 1px solid var(--gold) !important; border-radius: 0 !important; background: var(--bl-cream) !important; position: relative; }
.article-body .pseo-tldr-label { font: 500 .7rem var(--bl-sans) !important; letter-spacing: .32em !important; text-transform: uppercase; color: var(--gold-deep) !important; margin: 0 0 1rem !important; }
.article-body .pseo-tldr-label::after { content: ''; display: inline-block; vertical-align: middle; width: 32px; margin-left: .9rem; border-top: 1px solid var(--gold); }
.article-body .pseo-tldr ul { padding-left: 1.2rem !important; }
.article-body .pseo-tldr li { font: 400 1rem / 1.7 var(--bl-sans) !important; color: #3d3631 !important; margin: .55rem 0 !important; }

/* Figures, photos, and diagrams */
.article-body .pseo-image { margin: 2.8rem 0 !important; }
.article-body .pseo-image img { border-radius: 0 !important; }
.article-body .pseo-image figcaption { font: italic 400 1.02rem / 1.5 var(--bl-serif) !important; color: var(--ink-soft) !important; text-align: left !important; margin-top: .9rem !important; padding-left: 1rem; border-left: 1px solid var(--gold); }
/* Raster diagrams (bright green clip-art): toned to the ink / gold / cream palette and set on cream paper */
.article-body .pseo-image.is-diagram { background: var(--bl-cream); border: 1px solid var(--hairline); padding: clamp(.9rem, 2.4vw, 1.6rem) !important; }
.article-body .pseo-image.is-diagram img { filter: grayscale(1) sepia(.42) saturate(1.15) hue-rotate(-8deg) contrast(1.12); mix-blend-mode: multiply; }
.article-body .pseo-image.is-diagram figcaption { margin-top: 1.1rem !important; }
/* Inline SVG / HTML diagrams (if a future post includes them): palette overrides */
.article-body svg [fill="#22c55e"], .article-body svg [fill="#16a34a"], .article-body svg [fill="#4ade80"], .article-body svg [fill="#10b981"], .article-body svg [fill="green"] { fill: var(--gold) !important; }
.article-body svg [stroke="#22c55e"], .article-body svg [stroke="#16a34a"], .article-body svg [stroke="#4ade80"], .article-body svg [stroke="#10b981"], .article-body svg [stroke="green"] { stroke: var(--gold-deep) !important; }
.article-body svg text { font-family: var(--bl-sans) !important; fill: var(--ink); }
.article-body svg { max-width: 100%; height: auto; }

/* Tables: hairline rules, no filled header, scroll inside their own frame */
.article-body .tbl-wrap { margin: 2.4rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.article-body table { display: table; width: 100%; min-width: 36rem; max-width: none; border-collapse: collapse; margin: 0; overflow: visible; font: 400 .92rem / 1.55 var(--bl-sans); }
.article-body .tbl-wrap > table { margin: 0; }
.article-body th, .article-body td { overflow-wrap: normal; word-break: normal; hyphens: manual; border: 0; border-bottom: 1px solid var(--hairline); padding: .95rem 1rem .95rem 0; text-align: left; vertical-align: top; }
.article-body th:last-child, .article-body td:last-child { padding-right: 0; }
.article-body th { background: none; font: 500 .68rem var(--bl-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); padding-top: 1.1rem; border-bottom: 1px solid var(--gold); }
.article-body tbody tr:last-child td { border-bottom: 0; }
.article-body td:first-child { font: 600 1.1rem / 1.35 var(--bl-serif); color: var(--ink); }

/* FAQ and in-article call to action */
.article-body .pseo-faq { margin: 1.6rem 0 2.6rem !important; padding: 0 !important; border: 0 !important; border-top: 1px solid var(--ink) !important; border-radius: 0 !important; background: none !important; }
.article-body .pseo-faq-item { padding: 1.5rem 0 !important; border-top: 0 !important; border-bottom: 1px solid var(--hairline) !important; }
.article-body .pseo-faq-item > p:first-child { font: 500 1.35rem / 1.3 var(--bl-serif) !important; color: var(--ink) !important; margin: 0 0 .6rem !important; }
.article-body .pseo-faq-item > p + p { font: 400 .98rem / 1.75 var(--bl-sans) !important; color: var(--ink-soft) !important; }
.article-body .pseo-cta { margin: 3rem 0 !important; padding: clamp(2rem, 5vw, 3rem) clamp(1.3rem, 4vw, 2.6rem) !important; border: 0 !important; border-radius: 0 !important; background: #1f1c18 !important; color: #efe6d2 !important; }
.article-body .pseo-cta > p:first-child { font: 400 clamp(1.6rem, 3vw, 2.1rem) / 1.2 var(--bl-serif) !important; letter-spacing: -.005em !important; color: #fff !important; }
.article-body .pseo-cta > p + p { font: 400 .98rem / 1.7 var(--bl-sans) !important; color: rgba(239,230,210,.82) !important; }
.article-body a.pseo-cta-button { border: 1px solid var(--gold) !important; border-radius: 0 !important; background: var(--gold) !important; color: #fff !important; font: 500 .78rem var(--bl-sans) !important; letter-spacing: .16em !important; text-transform: uppercase; padding: .95rem 1.9rem !important; transition: background .2s ease; }
.article-body a.pseo-cta-button:hover { background: transparent !important; color: #fff !important; }

.blog-wrap .back-link { display: inline-block; margin: 3rem 0 0; font: 500 .72rem var(--bl-sans); letter-spacing: .26em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: .3rem; }
.blog-wrap .back-link:hover { color: var(--gold-deep); }

@media (max-width: 680px) {
  .blog-post .article-hero { aspect-ratio: 4 / 3; }
  .blog-post .article-body { font-size: 1rem; }
  .article-body h2 { margin-top: 2.8rem; }
  .article-body td:first-child { font-size: 1.02rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bl-media img, .bl-more, .article-body a, .article-body a.pseo-cta-button { transition: none !important; }
  .bl-card:hover .bl-media img, .bl-card:focus-visible .bl-media img { transform: none; }
}
