/* ============================================================
   Blog layer. Inherits every token, font and card style from
   style.css - this file only adds what the article template needs.
   ============================================================ */

/* Gotcha 2: the hidden attribute loses to any author display rule.
   A component styled display:flex will never hide, whatever the JS sets. */
[hidden] { display: none !important; }

/* ------------------------------------------------------------- preview bar */
.preview-bar {
  position: sticky;
  top: 0;
  z-index: 1600;
  padding: 12px 18px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #10100a;
  background: linear-gradient(90deg, #f0c453, #d4af37);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.7);
}

/* --------------------------------------------------------------- post hero */
.post-hero {
  position: relative;
  padding: 150px 0 46px;
  background: radial-gradient(ellipse at 50% -10%, rgba(212, 175, 55, 0.10), transparent 62%);
}
.post-hero .display {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  margin: 18px 0 20px;
  max-width: 20ch;
}
.post-hero .breadcrumb { justify-content: flex-start; margin: 0 0 22px; }

.post-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.62);
}
.post-byline strong { color: #fff; font-weight: 500; }

/* ------------------------------------------------------------- post layout */
.post-wrap { max-width: 800px; }
/* Gotcha 8: without this the author box butts into the next section at 0px. */
.post { padding-bottom: 96px; }

/* Gotcha 7: body copy is full ink, not the muted token. A whole page of prose
   in a soft-ink variable reads as washed out. */
.post-body,
.post-faqs p,
.post-takeaways li {
  color: rgba(255, 255, 255, 0.90);
}

.post-body { font-size: 1.06rem; line-height: 1.78; }
.post-body h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 600;
  color: #fff;
  margin: 52px 0 16px;
  scroll-margin-top: 96px;
}
.post-body h3 {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  font-weight: 600;
  color: #fff;
  margin: 34px 0 12px;
  scroll-margin-top: 96px;
}
.post-body p { margin: 0 0 18px; }
.post-body strong { color: #fff; font-weight: 600; }

/* Gotcha 5: a ul with no bottom margin collides with the next heading, which
   has margin-top:0. Give lists a real bottom margin. */
.post-body ul,
.post-body ol { margin: 0 0 24px; padding-left: 22px; }
.post-body li { margin: 0 0 10px; }
.post-body ul li::marker { color: var(--gold-500, #d4af37); }

/* Gotcha 6: links must differ from body text AND clear 4.5:1 on every ground
   they sit on. #e8c765 on the page ground (#07070a) measures ~10.9:1, and on
   the lightest card fill used here (~#15151a) ~9.4:1. Both clear comfortably;
   the site's #d4af37 gold sits at ~7.9:1 but drops on tinted bands, so the
   lighter tone is used for links specifically. */
.post-body a,
.post-faqs a,
.post-takeaways a {
  color: #e8c765;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.post-body a:hover { color: #f6dd93; }

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 26px;
  font-size: 0.96rem;
}
.post-body th,
.post-body td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  text-align: left;
  vertical-align: top;
}
.post-body th {
  color: #fff;
  font-weight: 600;
  border-bottom-color: rgba(212, 175, 55, 0.35);
  white-space: nowrap;
}
.post-body .table-wrap { overflow-x: auto; margin: 0 0 26px; }

/* --------------------------------------------------------- quick answer box */
.post-answer {
  margin: 0 0 40px;
  padding: 28px 32px;
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-left: 3px solid var(--gold-500, #d4af37);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.028);
}
.post-answer__q {
  font-size: 1.14rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px;
}
.post-answer p {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------------------------------------------------------------- contents */
.post-toc {
  margin: 0 0 44px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
}
.post-toc h2 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-400, #e0be4f);
  margin: 0 0 14px;
}
.post-toc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.post-toc a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.98rem;
}
.post-toc a:hover { color: #e8c765; text-decoration: underline; }

/* -------------------------------------------------------------- takeaways */
.post-takeaways {
  margin: 52px 0 0;
  padding: 30px 32px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
}
.post-takeaways h2 { font-size: 1.3rem; margin: 0 0 18px; color: #fff; }
.post-takeaways ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.post-takeaways li { position: relative; padding-left: 30px; line-height: 1.65; }
.post-takeaways li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.46em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--gold-500, #d4af37);
  border-bottom: 2px solid var(--gold-500, #d4af37);
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------------- faqs */
.post-faqs { margin: 52px 0 0; }
.post-faqs > h2 { font-size: 1.5rem; margin: 0 0 22px; color: #fff; }
.post-faq { padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.post-faq h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 9px;
  scroll-margin-top: 96px;
}
.post-faq p { margin: 0; line-height: 1.7; }

/* ------------------------------------------------------------- author box */
.post-author {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 52px 0 0;
  padding: 26px 28px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
}
.post-author__mark {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.10);
  color: var(--gold-400, #e0be4f);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.post-author h2 { font-size: 1.1rem; margin: 0 0 3px; color: #fff; }
.post-author__role {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--gold-400, #e0be4f);
}
.post-author p { margin: 0; line-height: 1.68; color: rgba(255, 255, 255, 0.84); }

/* ---------------------------------------------------------- service cards */
.post-products { margin: 52px 0 0; }
.post-products h2 { font-size: 1.4rem; margin: 0 0 20px; color: #fff; }
.post-products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.post-product {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.022);
  text-decoration: none;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), border-color .35s ease;
}
.post-product:hover { transform: translateY(-3px); border-color: rgba(212, 175, 55, 0.45); }
.post-product__cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--gold-400, #e0be4f);
}
.post-product__name { color: #fff; font-weight: 500; line-height: 1.4; }
.post-product__price { color: #fff; font-size: 1.3rem; font-weight: 600; }
.post-product__cta { color: #e8c765; font-size: 0.9rem; }

/* -------------------------------------------------------------- keep reading */
.post-more { margin: 52px 0 0; }
.post-more h2 { font-size: 1.4rem; margin: 0 0 20px; color: #fff; }
.post-more__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.post-more__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.022);
  text-decoration: none;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), border-color .35s ease;
}
.post-more__card:hover { transform: translateY(-3px); border-color: rgba(212, 175, 55, 0.45); }
.post-more__card--pillar { border-color: rgba(212, 175, 55, 0.32); }
.post-more__cluster {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--gold-400, #e0be4f);
}
.post-more__title { color: #fff; font-weight: 500; line-height: 1.45; }

/* --------------------------------------------------------- hub alt banding */
.band-alt { background: rgba(255, 255, 255, 0.016); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 768px) {
  .post-hero { padding: 120px 0 34px; }
  .post-answer { padding: 22px 20px; border-radius: 14px; }
  .post-toc { padding: 20px 20px; }
  .post-takeaways { padding: 24px 20px; }
  .post-author { flex-direction: column; gap: 14px; padding: 22px 20px; }
  .post-body { font-size: 1.01rem; }
  .post-body table { font-size: 0.9rem; }
  .post { padding-bottom: 64px; }
}
