/* ====================================================================
   VELURA SERVICES — article + collection-listing styles.

   Loaded ONLY by the generated pages under <collection>/… (see
   scripts/build-posts.mjs). Uses the same tokens as styles.css; this file
   adds nothing to the homepage bundle.

   The article body is static HTML, so nothing here may depend on
   JavaScript and nothing may start at opacity 0 — the content must be
   readable and crawlable with JS disabled.
   ==================================================================== */

/* ---------------------------------------------------------- page hero -- */
.post-hero {
  position: relative;
  padding-top: 72px;
  overflow: hidden;
  color: #fff;
  background: var(--navy-deep, #0F2342);
}
.post-hero__grid { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.post-hero__inner {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  padding: 56px 20px 64px;
}
@media (min-width: 1024px) { .post-hero__inner { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 768px)  { .post-hero__inner { padding-top: 80px; padding-bottom: 88px; } }

.post-crumbs { font-size: 12px; color: rgba(255,255,255,.55); }
.post-crumbs a { color: inherit; transition: color .2s; }
.post-crumbs a:hover { color: #fff; }
.post-crumbs span { margin: 0 8px; color: rgba(255,255,255,.3); }

.post-kicker {
  margin-top: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--teal-300, #7FCDC9);
}
.post-title {
  margin-top: 14px;
  max-width: 56rem;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
}
@media (min-width: 640px)  { .post-title { font-size: 38px; } }
@media (min-width: 768px)  { .post-title { font-size: 44px; } }
@media (min-width: 1024px) { .post-title { font-size: 52px; } }

.post-standfirst {
  margin-top: 18px;
  max-width: 44rem;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
}
@media (min-width: 768px) { .post-standfirst { font-size: 16.5px; } }

.post-meta {
  margin-top: 22px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.55);
}
.post-meta span { margin: 0 6px; color: rgba(255,255,255,.3); }

/* -------------------------------------------------------------- cover -- */
.post-cover { max-width: 62rem; margin: -28px auto 0; padding: 0 20px; }
.post-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--navy-100, #E2EAF4);
  box-shadow: 0 18px 48px -24px rgba(15,35,66,.45);
  background: #EEF2F8;
}

/* --------------------------------------------------------------- shell -- */
.post-shell { max-width: 46rem; margin: 0 auto; padding: 56px 20px 72px; }
.post-shell--wide { max-width: 80rem; padding-top: 64px; }
@media (min-width: 1024px) { .post-shell { padding-left: 32px; padding-right: 32px; } }

/* ---------------------------------------------------------- body type -- */
.post-body { color: var(--ink, #1F2937); font-size: 16.5px; line-height: 1.78; }
.post-body > * + * { margin-top: 20px; }
.post-body p { color: rgba(31,41,55,.88); }
.post-body a { color: var(--accent, #2DA5A0); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body a:hover { color: var(--navy, #1B3A6B); }
.post-body strong { font-weight: 700; color: var(--navy-700, #152E55); }

.post-body h2 {
  margin-top: 44px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--navy-700, #152E55);
  scroll-margin-top: 96px;
}
@media (min-width: 768px) { .post-body h2 { font-size: 28px; } }
.post-body h3 {
  margin-top: 32px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--navy-700, #152E55);
  scroll-margin-top: 96px;
}

.post-body ul, .post-body ol { padding-left: 22px; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li + li { margin-top: 8px; }
.post-body li::marker { color: var(--accent, #2DA5A0); }

/* --------------------------------------------------------- components -- */
.post-quote {
  margin-top: 32px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent, #2DA5A0);
}
.post-quote blockquote p { font-size: 18px; font-style: italic; color: var(--navy-700, #152E55); line-height: 1.6; }
.post-quote figcaption { margin-top: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: rgba(31,41,55,.55); }

.post-callout {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--navy-100, #E2EAF4);
  background: #FBFBFD;
  font-size: 15px;
  line-height: 1.65;
}
.post-callout--info { border-left: 3px solid var(--accent, #2DA5A0); }
.post-callout--warn { border-left: 3px solid #C2703A; background: #FDF7F2; }

.post-stats {
  margin-top: 28px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.post-stat {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--navy-100, #E2EAF4);
  background: #fff;
}
.post-stat__v { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--navy-700, #152E55); }
.post-stat__l { display: block; margin-top: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: rgba(31,41,55,.5); }

.post-table-wrap { margin-top: 28px; overflow-x: auto; border-radius: 14px; border: 1px solid var(--navy-100, #E2EAF4); }
.post-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; }
.post-table th, .post-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--navy-100, #E2EAF4); }
.post-table thead th { background: #FBFBFD; font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: rgba(31,41,55,.6); }
.post-table tbody th { font-weight: 700; color: var(--navy-700, #152E55); }
.post-table tbody tr:last-child th, .post-table tbody tr:last-child td { border-bottom: 0; }

/* ----------------------------------------------------------- FAQ + rel -- */
.post-faq { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--navy-100, #E2EAF4); }
.post-faq > h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--navy-700, #152E55); }
.post-faq__item { border-bottom: 1px solid var(--navy-100, #E2EAF4); }
.post-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  position: relative;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--navy-700, #152E55);
}
.post-faq__item summary::-webkit-details-marker { display: none; }
.post-faq__item summary::after {
  content: '';
  position: absolute; right: 4px; top: 24px;
  width: 8px; height: 8px;
  border-right: 2px solid rgba(31,41,55,.45);
  border-bottom: 2px solid rgba(31,41,55,.45);
  transform: rotate(45deg);
  transition: transform .25s;
}
.post-faq__item[open] summary { color: var(--accent, #2DA5A0); }
.post-faq__item[open] summary::after { transform: rotate(-135deg); }
.post-faq__item p { padding-bottom: 18px; font-size: 14.5px; line-height: 1.7; color: rgba(31,41,55,.72); }

.post-related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--navy-100, #E2EAF4); }
.post-related > h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--navy-700, #152E55); }
.post-related ul { margin-top: 16px; display: grid; gap: 10px; }
.post-related a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--navy-100, #E2EAF4);
  background: #fff;
  transition: border-color .2s, transform .2s;
}
.post-related a:hover { border-color: rgba(45,165,160,.4); transform: translateY(-2px); }
.post-related__c { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; color: var(--accent, #2DA5A0); }
.post-related__t { display: block; margin-top: 4px; font-size: 15.5px; font-weight: 700; color: var(--navy-700, #152E55); line-height: 1.4; }

/* ------------------------------------------------------ listing cards -- */
.post-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px)  { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  border-radius: 16px;
  border: 1px solid var(--navy-100, #E2EAF4);
  background: #fff;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.22,.61,.36,1), border-color .3s, box-shadow .3s;
}
.post-card:hover { transform: translateY(-6px); border-color: rgba(45,165,160,.3); box-shadow: 0 22px 48px -28px rgba(15,35,66,.5); }
.post-card__link { display: block; }
.post-card__media { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #EEF2F8; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s cubic-bezier(.22,.61,.36,1); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__tag {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--navy-100, #E2EAF4);
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em;
  color: var(--navy-700, #152E55);
}
.post-card__body { display: block; padding: 20px; }
.post-card__date { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; color: rgba(31,41,55,.45); }
.post-card__title { display: block; margin-top: 8px; font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--navy-700, #152E55); transition: color .2s; }
.post-card:hover .post-card__title { color: var(--accent, #2DA5A0); }
.post-card__excerpt { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: rgba(31,41,55,.65); }
.post-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--accent, #2DA5A0); }
.post-card__more svg { transition: transform .25s; }
.post-card:hover .post-card__more svg { transform: translateX(3px); }

.post-empty { max-width: 36rem; margin: 0 auto; text-align: center; padding: 24px 0 8px; }
.post-empty h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--navy-700, #152E55); }
.post-empty p { margin-top: 12px; font-size: 14.5px; line-height: 1.7; color: rgba(31,41,55,.65); }
.post-empty__cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .post-card, .post-card__media img, .post-card__more svg, .post-related a, .post-faq__item summary::after { transition: none !important; }
  .post-card:hover { transform: none; }
  .post-card:hover .post-card__media img { transform: none; }
}
