/* Valorae Media blog layer. Sits on top of assets/site.css and reuses its
   tokens (--bg, --blue, --white, --zinc-*) so the blog stays in step with the
   rest of the site. Only adds what site.css does not already define. */

.container { width: 100%; max-width: var(--max, 1200px); margin: 0 auto; padding: 0 24px; }
.post-container { max-width: 780px; }
.section { padding: 4rem 0; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: .7rem 1.1rem; z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }

.crumbs {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  font-size: .8rem; color: var(--zinc-500); padding-top: 7.5rem; margin-bottom: 2rem;
}
.crumbs a { color: var(--zinc-500); text-decoration: none; }
.crumbs a:hover { color: var(--blue-2); }
.crumbs span[aria-hidden] { opacity: .45; }

.eyebrow-tag {
  display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-2); border: 1px solid var(--line-2); border-radius: 999px;
  padding: .32rem .8rem; margin-bottom: 1.1rem;
}
/* site.css styles the bare `header` element as the fixed site nav; the
   article header must opt out of that. */
.post-head { position: static; inset: auto; z-index: auto; padding: 0; margin-bottom: 2.5rem; }
.post-title {
  font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--white);
  font-size: clamp(2.05rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 1.05rem;
}
.post-standfirst { font-size: 1.14rem; line-height: 1.6; color: var(--zinc-300); max-width: 62ch; margin: 0 0 1.5rem; }
.post-meta {
  font-size: .8rem; color: var(--zinc-500); display: flex; flex-wrap: wrap;
  gap: .45rem; align-items: center; padding-top: 1.2rem; border-top: 1px solid var(--line);
}

.post-answer {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--blue);
  border-radius: 14px; padding: 1.5rem 1.6rem; margin-bottom: 2.75rem;
}
.post-answer-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2); margin: 0 0 .6rem; }
.post-answer-body { font-size: 1.08rem; line-height: 1.62; color: var(--white); margin: 0; }

.post-toc { border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem 1.5rem; margin-bottom: 2.75rem; }
.post-toc-title { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--zinc-500); margin: 0 0 .85rem; }
.post-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; display: grid; gap: .5rem; }
.post-toc li { counter-increment: toc; display: flex; gap: .7rem; font-size: .95rem; }
.post-toc li::before { content: counter(toc, decimal-leading-zero); font-size: .74rem; color: var(--blue-2); padding-top: .2rem; flex: none; }
.post-toc a { color: var(--zinc-300); text-decoration: none; }
.post-toc a:hover { color: var(--white); }

.post-body { font-size: 1.05rem; line-height: 1.75; color: var(--zinc-300); }
.post-body > * + * { margin-top: 1.35rem; }
.post-body p { max-width: 68ch; }
.post-body strong { color: var(--white); font-weight: 600; }
.post-body a { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--white); }
.post-body h2 {
  font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--white);
  font-size: clamp(1.5rem, 3.2vw, 1.95rem); line-height: 1.2; letter-spacing: -.02em;
  margin-top: 3.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); scroll-margin-top: 6rem;
}
.post-body h3 { font-family: 'Outfit', sans-serif; font-weight: 600; color: var(--white); font-size: 1.2rem; margin-top: 2.25rem; scroll-margin-top: 6rem; }
.post-body h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-2); margin-top: 2rem; }
.post-body ul, .post-body ol { padding-left: 1.3rem; max-width: 68ch; display: grid; gap: .6rem; }
.post-body li::marker { color: var(--blue-2); }
.post-body blockquote { border-left: 2px solid var(--line-2); padding: .2rem 0 .2rem 1.4rem; margin: 0; color: var(--white); font-size: 1.1rem; }
.post-body blockquote p { margin: 0; max-width: none; }
.post-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .87em; background: var(--zinc-800); border: 1px solid var(--line); border-radius: 5px; padding: .12em .38em; color: var(--blue-2); }
.post-code { background: var(--zinc-800); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; overflow-x: auto; font-size: .85rem; line-height: 1.65; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.post-code code { background: none; border: 0; padding: 0; color: var(--white); }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.post-body table { border-collapse: collapse; width: 100%; font-size: .94rem; min-width: 460px; }
.post-body th, .post-body td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.post-body th { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--white); background: var(--panel); }
.post-body tbody tr:last-child td { border-bottom: 0; }

.callout { border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 14px; padding: 1.2rem 1.35rem; background: var(--panel); }
.callout p { max-width: none; }
.callout > * + * { margin-top: .75rem; }
.callout-title { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-2); margin: 0; }
.callout-warn { border-left-color: #e8b53a; }
.callout-warn .callout-title { color: #e8b53a; }

.post-faq { margin-top: 3.5rem; }
.post-faq h2 { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--white); font-size: 1.65rem; margin: 0 0 1.2rem; }
.post-faq-item { border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: .65rem; background: var(--panel); }
.post-faq-item summary { cursor: pointer; font-weight: 600; color: var(--white); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.post-faq-item summary::-webkit-details-marker { display: none; }
.post-faq-item summary::after { content: "+"; color: var(--blue-2); flex: none; }
.post-faq-item[open] summary::after { content: "\2212"; }
.post-faq-a { color: var(--zinc-300); padding-top: .85rem; line-height: 1.7; }
.post-faq-a p { margin: 0; }

.post-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 2.5rem 0 0; }
.post-tags li { font-size: .72rem; color: var(--zinc-500); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .75rem; }

.post-cta { margin-top: 3.5rem; padding: 2.25rem; border-radius: var(--r, 20px); border: 1px solid var(--line-2); background: var(--panel); }
.post-cta h2 { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--white); font-size: 1.45rem; line-height: 1.25; margin: 0 0 .7rem; }
.post-cta p { color: var(--zinc-300); margin: 0 0 1.4rem; max-width: 56ch; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }

.post-related { margin-top: 4rem; }
.post-related h2 { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--zinc-500); margin: 0 0 1.1rem; }
.rel-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.rel-card { display: grid; gap: .5rem; padding: 1.15rem; text-decoration: none; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); transition: border-color .2s var(--ease, ease), transform .2s var(--ease, ease); }
.rel-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.rel-cat { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-2); }
.rel-title { font-weight: 600; color: var(--white); line-height: 1.35; font-size: .97rem; }
.rel-meta { font-size: .72rem; color: var(--zinc-500); }

.blog-hero { padding-top: 9rem; padding-bottom: 2.5rem; }
.section-header { max-width: 46ch; }
.section-title { font-family: 'Outfit', sans-serif; font-weight: 800; color: var(--white); font-size: clamp(2.2rem, 5.5vw, 3.4rem); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 1.1rem; }
.section-desc { color: var(--zinc-300); font-size: 1.05rem; line-height: 1.65; max-width: 62ch; margin: 0; }

.blog-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 2.25rem; }
.blog-filter { font-size: .78rem; color: var(--zinc-300); background: transparent; cursor: pointer; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .95rem; transition: all .2s ease; font-family: inherit; }
.blog-filter:hover { border-color: var(--line-2); color: var(--white); }
.blog-filter.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

.blog-feature { margin-bottom: 1rem; }
.blog-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card { display: grid; gap: .6rem; align-content: start; text-decoration: none; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--r, 20px); background: var(--panel); transition: border-color .2s ease, transform .2s ease; }
.post-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.post-card[hidden] { display: none; }
.post-card-cat { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-2); }
.post-card-title { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--white); font-size: 1.22rem; line-height: 1.26; letter-spacing: -.01em; }
.post-card-desc { color: var(--zinc-400); font-size: .95rem; line-height: 1.6; }
.post-card-meta { font-size: .72rem; color: var(--zinc-500); margin-top: .2rem; }
.post-card--feature { padding: 2.25rem; border-color: var(--line-2); }
.post-card--feature .post-card-title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.post-card--feature .post-card-desc { font-size: 1.04rem; max-width: 62ch; }

@media (max-width: 720px) {
  .crumbs { padding-top: 6rem; }
  .blog-hero { padding-top: 7rem; }
  .post-cta { padding: 1.6rem; }
  .post-answer, .post-toc { padding: 1.25rem; }
  .post-body { font-size: 1.01rem; }
}
@media (prefers-reduced-motion: reduce) {
  .post-card, .rel-card { transition: none; }
  .post-card:hover, .rel-card:hover { transform: none; }
}
