/* Journal, glossary and long-form article styles.
   Kept separate from site.css so the editorial layer can evolve without
   rebuilding the landing-page stylesheet. */

/* ---------------------------------------------------------------- journal */

.blog-hero .shell { padding-bottom: 54px; }
.blog-hero h1 { max-width: 900px; }
.topic-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.topic-pill {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  color: #d9c2e8; background: rgba(255,255,255,.035);
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
}
.topic-pill:hover { color: var(--mint); border-color: rgba(143,227,184,.4); }

.post-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; margin-top: 18px;
}
.post-grid-all { margin-top: 16px; }
.post-card {
  min-width: 0; border: 1px solid var(--line); border-radius: 18px;
  background: var(--white); box-shadow: var(--shadow-soft); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: rgba(125,70,152,.3); box-shadow: 0 22px 50px -30px rgba(36,16,45,.45); }
.post-card-link { display: flex; flex-direction: column; min-height: 100%; padding: 22px 22px 20px; }
.post-kicker { display: flex; align-items: center; gap: 10px; color: var(--muted); font-family: var(--mono); font-size: .6rem; letter-spacing: .04em; text-transform: uppercase; }
.post-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; color: #0d6e4a; background: rgba(25,195,125,.11); font-family: var(--sans); font-weight: 800; letter-spacing: .06em; }
.post-card h3 { margin: 16px 0 10px; font-size: 1.08rem; line-height: 1.2; letter-spacing: -.025em; color: var(--ink); }
.post-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.62; }
.post-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; color: var(--purple); font-size: .7rem; font-weight: 800; }
.post-featured { margin-top: 0; }
.post-featured .post-card { background: linear-gradient(140deg, #fbf8fc 0%, #f4edf7 100%); }
.post-featured .post-card-link { padding: 34px 34px 30px; }
.post-featured h3 { max-width: 900px; font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.05; letter-spacing: -.04em; }
.post-featured p { max-width: 760px; font-size: .94rem; }
.post-featured .post-meta { max-width: 760px; }

.journal-band { padding-top: 64px; padding-bottom: 64px; }
.journal-cta { padding: 70px 0; }
.journal-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.journal-cta .h2 { margin: 8px 0 0; max-width: 620px; }
.journal-cta .lede { margin-top: 14px; }

/* ---------------------------------------------------------------- article */

.post-hero .shell { padding-bottom: 46px; }
.post-hero h1 { max-width: 980px; font-size: clamp(2.2rem, 4.1vw, 3.8rem); line-height: 1.02; }
.post-hero .lede { max-width: 820px; }
.post-byline { margin: 22px 0 0; color: #a99ab4; font-family: var(--mono); font-size: .62rem; line-height: 1.6; letter-spacing: .02em; }
.post-body-wrap { padding-top: 52px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: 58px; align-items: start; }
.post-article { min-width: 0; }
.post-article .article-lede { font-size: 1.06rem; color: var(--ink-2); line-height: 1.72; }
.post-article h2 { scroll-margin-top: 92px; }
.post-article h3 { scroll-margin-top: 92px; }
.post-article .table-wrap { overflow-x: auto; margin: 24px 0 26px; border: 1px solid var(--line); border-radius: 14px; }
.article-table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--white); font-size: .8rem; }
.article-table th, .article-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-table thead th { color: var(--muted); background: rgba(240,234,244,.7); font-size: .62rem; letter-spacing: .09em; text-transform: uppercase; }
.article-table tbody th { color: var(--ink); font-weight: 650; }
.article-table tr:last-child td, .article-table tr:last-child th { border-bottom: 0; }
.post-cta {
  margin: 34px 0 8px; padding: 20px 22px; border: 1px solid rgba(25,195,125,.2);
  border-radius: 15px; background: rgba(25,195,125,.055); color: var(--ink-2);
  font-size: .9rem; line-height: 1.6;
}
.post-cta strong { color: var(--ink); }
.post-cta a { color: #0d6e4a; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.post-author { display: flex; align-items: flex-start; gap: 13px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-author-mark { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; color: var(--purple); background: rgba(125,70,152,.09); }
.post-author-mark svg { width: 19px; height: 19px; }
.post-author strong { display: block; color: var(--ink); font-size: .82rem; }
.post-author p { margin: 4px 0 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }

.post-aside { position: sticky; top: 94px; display: grid; gap: 14px; }
.post-aside-card { padding: 22px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-soft); }
.post-aside-card.is-quiet { background: rgba(240,234,244,.45); box-shadow: none; }
.post-aside-kicker { display: block; margin-bottom: 10px; color: var(--purple); font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }
.post-aside-card h2 { margin: 0 0 8px; font-size: 1.28rem; line-height: 1.1; letter-spacing: -.035em; color: var(--ink); }
.post-aside-card p { margin: 0 0 16px; color: var(--muted); font-size: .78rem; line-height: 1.58; }
.post-aside-card .btn { width: 100%; min-height: 44px; font-size: .74rem; }
.post-aside-link { display: inline-flex; margin-top: 12px; color: var(--purple); font-size: .72rem; font-weight: 750; }
.post-aside-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.post-aside-card li { color: var(--muted); font-size: .75rem; line-height: 1.4; }
.post-aside-card li a { color: var(--purple); font-weight: 650; }
.post-related { padding-top: 56px; padding-bottom: 70px; }

/* ---------------------------------------------------------------- glossary */

.glossary-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.glossary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.glossary-item { padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.glossary-item h2 { margin: 0 0 8px; font-size: 1.02rem; letter-spacing: -.025em; color: var(--ink); scroll-margin-top: 92px; }
.glossary-item p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.62; }
.glossary-aside { position: sticky; top: 94px; display: grid; gap: 14px; }

/* ---------------------------------------------------------------- mobile */

@media (max-width: 980px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-layout, .glossary-layout { grid-template-columns: 1fr; gap: 34px; }
  .post-aside, .glossary-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-featured .post-card-link { padding: 26px 22px 22px; }
  .post-featured h3 { font-size: 1.55rem; }
  .post-hero h1 { font-size: clamp(1.9rem, 8vw, 2.7rem); }
  .post-body-wrap { padding-top: 38px; }
  .post-aside, .glossary-aside { grid-template-columns: 1fr; }
  .glossary-grid { grid-template-columns: 1fr; }
  .journal-cta-in { align-items: flex-start; }
  .journal-cta .btn-row { width: 100%; }
  .journal-cta .btn { flex: 1 1 auto; justify-content: center; }
  .post-card-link { padding: 20px 20px 18px; }
  .article-table { min-width: 520px; }
}

/* The home headline carries more words than the original hero. Keep it
   large but stop it from pushing the free-fee card below the fold. */
.page-home .hero .display { font-size: clamp(2.7rem, 4.6vw, 4.4rem); line-height: .96; }
@media (max-width: 760px) {
  .page-home .hero .display { font-size: clamp(2.35rem, 9.6vw, 3.3rem); }
}

.post-card[id] { scroll-margin-top: 96px; }

/* Swap example: make the two sides read as a before/after, not a rate table. */
.st-label {
  display: block; margin-bottom: 5px;
  font-family: var(--mono); font-size: .5rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--purple);
}
.st-side.is-right .st-label { text-align: right; }

/* Verification tables on a phone: hashes and addresses wrap instead of
   hiding half the value behind a horizontal scroll. */
@media (max-width: 760px) {
  .article-table:has(code) { min-width: 0; width: 100%; }
  .article-table:has(code) th,
  .article-table:has(code) td { word-break: break-word; }
  .article-table:has(code) code { white-space: normal; word-break: break-all; }
}
