/* Shared layout for blog post pages: hero, article column, callouts, sidebar, FAQ, interactive containers. */

.post-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 6vw, 80px); }
.post-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; }
.post-hero__meta .sitm-badge { background: var(--sitm-mint); color: var(--sitm-teal-deep); }
.post-hero__title {
  font-family: var(--sitm-font-body); font-weight: 900; line-height: 1.04;
  font-size: clamp(30px, 4.6vw, 54px); letter-spacing: .005em;
  color: var(--sitm-ink); margin: 0 0 18px; max-width: 22ch;
}
.post-hero__dek {
  font-style: italic; color: var(--sitm-body-ink);
  font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; max-width: 58ch;
  margin: 0 0 26px; padding-left: 22px; border-left: 3px solid var(--sitm-gold);
}
.post-hero__byline { display: flex; align-items: center; gap: 10px; color: var(--sitm-body-ink); font-size: 14px; }
.post-hero__byline strong { color: var(--sitm-ink); font-weight: 800; }
.post-hero__byline span + span::before { content: " - "; color: rgba(0,0,0,.25); margin: 0 6px; }

/* article column plus sticky sidebar */
.post-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 4vw, 56px); align-items: start;
  padding-bottom: clamp(48px, 7vw, 88px);
}
@media (max-width: 980px) { .post-layout { grid-template-columns: 1fr; } }

.post-article { min-width: 0; }
.post-article h2 {
  font-family: var(--sitm-font-body); font-weight: 800; line-height: 1.12;
  font-size: clamp(24px, 2.6vw, 34px); color: var(--sitm-ink);
  margin: 56px 0 18px; letter-spacing: .005em;
}
.post-article h2::before {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 999px;
  background: var(--sitm-gold); margin-bottom: 14px;
}
.post-article h3 {
  font-family: var(--sitm-font-body); font-weight: 800;
  font-size: clamp(19px, 1.8vw, 24px); color: var(--sitm-teal-deep);
  margin: 38px 0 12px; line-height: 1.25;
}
.post-article p { margin: 0 0 18px; font-size: 17px; line-height: 1.78; color: var(--sitm-body-ink); }
.post-article p strong { color: var(--sitm-ink); }
.post-article ul, .post-article ol { margin: 0 0 18px; padding-left: 26px; color: var(--sitm-body-ink); font-size: 17px; line-height: 1.78; }
.post-article li { margin-bottom: 6px; }
.post-article a { color: var(--sitm-teal-deep); text-decoration: underline; text-decoration-color: rgba(31,119,114,.35); text-underline-offset: 3px; }
.post-article a:hover { text-decoration-color: var(--sitm-gold); }
.post-article hr.post-rule {
  border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--sitm-border), transparent);
  margin: 44px 0;
}

/* reading-context strip under the hero */
.post-strip {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  padding: 14px 0; border-top: 1px solid var(--sitm-border); border-bottom: 1px solid var(--sitm-border);
  margin: 0 0 32px; font-size: 13px; color: var(--sitm-body-ink);
}
.post-strip strong { color: var(--sitm-ink); }
.post-strip .dot { width: 4px; height: 4px; border-radius: 999px; background: var(--sitm-gold); }

/* quick-answer summary block */
.quick-answer {
  position: relative;
  background: linear-gradient(140deg, #ecfaf7 0%, #d7f3f0 100%);
  border-radius: var(--sitm-radius-card);
  padding: 26px 28px 24px; margin: 28px 0 8px;
  border: 1px solid rgba(31,119,114,.16);
  box-shadow: 0 10px 28px rgba(31,119,114,.08);
}
.quick-answer::before {
  content: "Quick answer"; position: absolute; top: -12px; left: 22px;
  background: var(--sitm-teal-deep); color: #fff; padding: 4px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
}
.quick-answer p { margin: 0; color: var(--sitm-ink); font-size: 16px; line-height: 1.7; }

/* callout boxes: warn, truth bomb, confession */
.callout {
  position: relative; border-radius: var(--sitm-radius-card);
  padding: 22px 24px 20px 26px; margin: 28px 0;
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
}
.callout__icon {
  width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center; font-weight: 900; font-size: 18px; color: #fff; flex-shrink: 0;
}
.callout__body { min-width: 0; }
.callout__label {
  display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .14em;
  text-transform: uppercase; margin: 0 0 6px;
}
.callout__body p { margin: 0; font-size: 16px; line-height: 1.72; }
.callout--warn {
  background: linear-gradient(140deg, #fff7e0 0%, #ffeec2 100%);
  border: 1px solid rgba(243,183,64,.45); box-shadow: 0 10px 28px rgba(243,183,64,.18);
}
.callout--warn .callout__icon { background: var(--sitm-gold); color: var(--sitm-ink); }
.callout--warn .callout__label { color: #8a5a00; }
.callout--warn .callout__body p { color: var(--sitm-ink); }
.callout--truth {
  background: linear-gradient(140deg, #fff0f7 0%, #ffe4ef 100%);
  border: 1px solid rgba(240,130,180,.45); box-shadow: 0 10px 28px rgba(240,130,180,.18);
}
.callout--truth .callout__icon { background: var(--sitm-pink); }
.callout--truth .callout__label { color: #a83567; }
.callout--truth .callout__body p { color: var(--sitm-ink); }
.callout--confess {
  background: linear-gradient(140deg, #f2f6ff 0%, #e5edfb 100%);
  border: 1px solid rgba(32,31,85,.16); box-shadow: 0 10px 28px rgba(32,31,85,.10);
}
.callout--confess .callout__icon { background: var(--sitm-navy); }
.callout--confess .callout__label { color: var(--sitm-navy); }
.callout--confess .callout__body p { color: var(--sitm-ink); }

/* oversized pull quote */
.pull-quote {
  margin: 34px 0; padding: 6px 0 6px 24px;
  border-left: 4px solid var(--sitm-gold);
  font-size: clamp(19px, 2vw, 24px); line-height: 1.45; font-weight: 700;
  color: var(--sitm-ink); font-style: italic;
}

/* data table */
.post-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15.5px; }
.post-table th {
  text-align: left; padding: 12px 14px;
  background: var(--sitm-mint); color: var(--sitm-teal-deep);
  font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 2px solid var(--sitm-teal-light);
}
.post-table td { padding: 12px 14px; border-bottom: 1px solid var(--sitm-border); color: var(--sitm-body-ink); }
.post-table tr:last-child td { border-bottom: 0; }
.post-table td:last-child { font-weight: 700; color: var(--sitm-ink); }

/* FAQ list */
.faq { margin: 36px 0 0; }
.faq__item { border-top: 1px solid var(--sitm-border); padding: 22px 0; }
.faq__item:last-of-type { border-bottom: 1px solid var(--sitm-border); }
.faq__q { margin: 0 0 8px; font-family: var(--sitm-font-body); font-weight: 800; color: var(--sitm-ink); font-size: 18px; line-height: 1.35; }
.faq__a { margin: 0; color: var(--sitm-body-ink); font-size: 16px; line-height: 1.72; }

/* free-materials strip */
.free-strip {
  margin: 30px 0; padding: 20px 24px;
  border-radius: var(--sitm-radius-card);
  background: linear-gradient(140deg, #ecfaf7 0%, #d7f3f0 100%);
  border: 1px dashed rgba(31,119,114,.4);
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center;
}
.free-strip__badge {
  width: 42px; height: 42px; border-radius: 999px; background: var(--sitm-gold);
  display: grid; place-items: center; font-weight: 900; color: var(--sitm-ink); font-size: 16px;
}
.free-strip p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--sitm-ink); }

/* dashed placeholder marking where a planned interactive lands */
.int-plan {
  margin: 32px 0; padding: 22px 24px;
  border: 2px dashed rgba(31,119,114,.45);
  border-radius: var(--sitm-radius-card);
  background: repeating-linear-gradient(-45deg, #fafdfc, #fafdfc 12px, #f2faf8 12px, #f2faf8 24px);
}
.int-plan__tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 14px; border-radius: 999px;
  background: var(--sitm-teal-deep); color: #fff;
  font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 10px;
}
.int-plan h4 { margin: 0 0 6px; font-family: var(--sitm-font-body); font-weight: 800; color: var(--sitm-ink); font-size: 17px; }
.int-plan p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--sitm-body-ink); }
.int-plan p a { color: var(--sitm-teal-deep); }

/* end-of-post list of interactives planned for this post */
.int-ideas {
  margin: 40px 0 0; padding: 24px 26px;
  border-radius: var(--sitm-radius-card);
  background: #fff; border: 1px solid var(--sitm-border);
  box-shadow: 0 10px 26px rgba(16,49,72,.06);
}
.int-ideas h3 { margin: 0 0 4px; }
.int-ideas > p.lead { margin: 0 0 14px; font-size: 14.5px; color: var(--sitm-body-ink); }
.int-ideas ul { margin: 0; padding-left: 22px; font-size: 15px; line-height: 1.7; color: var(--sitm-body-ink); }
.int-ideas li { margin-bottom: 8px; }
.int-ideas li strong { color: var(--sitm-ink); }

/* sidebar cards */
.post-sidebar { position: sticky; top: 88px; display: grid; gap: 18px; }
@media (max-width: 980px) { .post-sidebar { position: static; } }
.toc-card {
  background: #fff; border: 1px solid var(--sitm-border);
  border-radius: var(--sitm-radius-card); padding: 22px 22px 18px;
  box-shadow: 0 10px 26px rgba(16,49,72,.06);
}
.toc-card h4 {
  margin: 0 0 12px; font-family: var(--sitm-font-body); font-weight: 800;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sitm-teal-deep);
}
.toc-card ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; }
.toc-card li { counter-increment: toc; margin-bottom: 8px; padding-left: 24px; position: relative; font-size: 14px; line-height: 1.45; }
.toc-card li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--sitm-font-display); font-size: 11px; color: var(--sitm-gold);
}
.toc-card a { color: var(--sitm-ink); text-decoration: none; }
.toc-card a:hover { color: var(--sitm-teal-deep); }
.product-card {
  background:
    radial-gradient(circle at 80% 0%, rgba(255,255,255,.22), transparent 34%),
    linear-gradient(140deg, rgba(255,255,255,.23), rgba(255,255,255,.09) 52%, rgba(255,255,255,.14)),
    rgba(24, 117, 126, .18);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: var(--sitm-radius-card); padding: 20px 22px; color: #fff;
  background-color: var(--sitm-teal-deep); box-shadow: var(--sitm-shadow-card);
}
.product-card .sitm-badge--gold { margin-bottom: 12px; }
.product-card h4 { margin: 0 0 6px; color: #fff; font-family: var(--sitm-font-body); font-weight: 800; font-size: 17px; line-height: 1.3; }
.product-card p { margin: 0 0 14px; color: rgba(255,255,255,.86); font-size: 14px; line-height: 1.55; }
.product-card a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 18px; min-height: 40px; border-radius: 999px;
  background: var(--sitm-gold); color: var(--sitm-ink);
  font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}
.share-card {
  background: #fff; border: 1px solid var(--sitm-border);
  border-radius: var(--sitm-radius-card); padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.share-card span { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sitm-teal-deep); }
.share-card__icons { display: flex; gap: 8px; }
.share-card__icons a {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--sitm-mint); color: var(--sitm-teal-deep);
  display: grid; place-items: center; text-decoration: none; font-size: 12px; font-weight: 900;
}

/* dark gradient container for an interactive */
.int-band {
  margin: 36px 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(255,255,255,.18), transparent 34%),
    linear-gradient(140deg, #1f7772 0%, #2c9b92 60%, #53b1a9 100%);
  border-radius: var(--sitm-radius);
  padding: clamp(26px, 4vw, 38px);
  color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--sitm-shadow);
}
.int-band::after {
  content: ""; position: absolute; inset: auto -10% -40% -10%; height: 220px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.18), transparent 60%);
  pointer-events: none;
}
.int-band > * { position: relative; z-index: 1; }
.int-band h3 { font-family: var(--sitm-font-body); font-weight: 800; color: #fff; margin: 0 0 6px; font-size: clamp(20px, 2.2vw, 26px); }
.int-band p.lead { margin: 0 0 18px; color: rgba(255,255,255,.92); font-size: 15px; }

/* white card container for an interactive */
/* An interactive sits in the article the way a section does: its heading, its
   line of introduction, then the thing itself. It carries no card of its own,
   because a white card on a white page is a rectangle drawn around a rectangle
   and it reads as a labeled exhibit rather than as part of the piece. Widgets
   that need a surface bring their own (.int-band, and the panels inside these
   regions); this class is spacing and a hook for scripts and the harness. */
.int-card {
  margin: 44px 0;
}
.int-card h3 { font-family: var(--sitm-font-body); font-weight: 800; color: var(--sitm-ink); margin: 0 0 6px; font-size: clamp(20px, 2.2vw, 26px); }
.int-card > p.lead { color: var(--sitm-body-ink); margin: 0 0 22px; font-size: 15px; }

/* moderated anonymous board: tag chips, submit form, approved-entry grid */
.wall-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.wall-tag {
  padding: 8px 16px; min-height: 40px; border-radius: 999px;
  font-family: var(--sitm-font-body); font-size: 13px; font-weight: 700;
  background: #fff; color: var(--sitm-teal-deep);
  border: 1.5px solid var(--sitm-teal-btn); cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.wall-tag[aria-pressed="true"] { background: var(--sitm-teal-deep); color: #fff; border-color: var(--sitm-teal-deep); }
.wall-form { display: grid; gap: 12px; margin-bottom: 8px; }
.wall-textarea {
  width: 100%; resize: none; min-height: 84px;
  border-radius: var(--sitm-radius-sm); border: 1.5px solid var(--sitm-border);
  background: #fafaf7; color: var(--sitm-ink);
  padding: 12px 14px; font-family: var(--sitm-font-body); font-size: 15px; line-height: 1.5;
}
.wall-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wall-count { font-size: 12px; color: var(--sitm-body-ink); }
.wall-send {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--sitm-teal-btn); color: #fff; cursor: pointer;
  font-family: var(--sitm-font-body); font-size: 12.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(97,189,183,.34);
  transition: transform .2s ease;
}
.wall-send:hover { transform: translateY(-2px); }
.wall-send[disabled] { background: #cfd2d8; box-shadow: none; cursor: not-allowed; transform: none; }
@media (prefers-reduced-motion: reduce) { .wall-send { transition: none; } .wall-send:hover { transform: none; } }
.wall-note { font-size: 13px; color: var(--sitm-body-ink); margin: 6px 0 0; }
.wall-status { font-size: 14px; font-weight: 700; margin: 10px 0 0; color: var(--sitm-teal-deep); }
.wall-status.err { color: #a83567; }
.wall-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
@media (max-width: 720px) { .wall-grid { grid-template-columns: 1fr; } }
.wall-card {
  background: #fff; border-radius: var(--sitm-radius-card);
  padding: 18px 18px 14px; border: 1px solid rgba(31,119,114,.14);
  box-shadow: 0 10px 26px rgba(16,49,72,.07); position: relative;
}
.wall-card::before {
  content: "\201C"; position: absolute; top: 6px; right: 16px;
  font-family: Georgia, serif; font-size: 54px; line-height: 1; color: var(--sitm-teal-light);
}
.wall-card p { margin: 0 0 12px; color: var(--sitm-ink); font-size: 15px; line-height: 1.6; font-weight: 500; }
.wall-card .tagline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sitm-teal-deep);
}
.wall-card .tagline::before { content: ""; width: 18px; height: 2px; border-radius: 999px; background: var(--sitm-gold); }
.wall-card--mine .samplemark {
  position: absolute; top: 12px; left: 16px;
  font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
  color: #8a5a00; background: rgba(243,183,64,.2); padding: 3px 9px; border-radius: 999px;
}
.wall-card--mine p { margin-top: 22px; }
.wall-empty { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.92); margin: 16px 0 0; }
.wall-empty b { color: #fff; }
.wall-empty--down {
  border-left: 3px solid var(--sitm-gold);
  padding: 10px 0 10px 14px;
  background: rgba(255,255,255,.06);
  border-radius: 0 8px 8px 0;
}
.wall-panel { background: rgba(255,255,255,.97); border-radius: var(--sitm-radius-card); padding: 22px; }
@media (max-width: 620px) { .wall-panel { padding: 16px; } }
.live-stamp { margin: 6px 0 20px; font-size: 12.5px; line-height: 1.6; color: #6d7784; }

/* Grid items shrink below their content's min-content width, so one wide child
   cannot stretch the column and scroll the whole page sideways on a phone. */
.post-body__inner > *, .post-layout > *, .post-article, .post-prose, .post-aside, .post-sidebar { min-width: 0; }

/* A table too wide for a phone scrolls inside its own wrapper rather than the page. */
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Touch targets on the shared board controls. */
.wall-tag { min-height: 44px; }

/* Counted reader poll. Bars are drawn from the counts the endpoint returns, so a
   poll with no votes draws no bars rather than an empty-looking chart. */
.poll-choices { display: grid; gap: 10px; margin: 0 0 14px; }
.poll-choice {
  min-height: 44px; padding: 12px 18px; border-radius: 999px; cursor: pointer;
  border: 2px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff;
  font-family: var(--sitm-font-body); font-size: 15px; font-weight: 700; text-align: left;
  transition: background .15s, border-color .15s, transform .15s;
}
.poll-choice:hover, .poll-choice:focus-visible { background: rgba(255,255,255,.2); border-color: #fff; outline: none; transform: translateY(-1px); }
.poll-choice[disabled] { opacity: .55; cursor: default; transform: none; }
.poll-peek {
  min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer;
  font-family: var(--sitm-font-body); font-size: 13.5px; font-weight: 700;
  color: rgba(255,255,255,.85); text-decoration: underline;
}
.poll-peek:hover, .poll-peek:focus-visible { color: #fff; outline: none; }
.poll-status { font-size: 14px; font-weight: 700; margin: 6px 0 0; color: var(--sitm-gold); }
.poll-status.err { color: #ffd9ea; }
.poll-results { display: grid; gap: 14px; margin-top: 18px; }
.poll-bar__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.poll-bar__label { font-size: 14.5px; font-weight: 700; color: #fff; }
.poll-bar__value { font-size: 13px; font-weight: 800; color: var(--sitm-gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.poll-bar__track { height: 12px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.poll-bar__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #9fdcd2, var(--sitm-gold)); transition: width .4s ease; }
.poll-bar--mine .poll-bar__fill { background: linear-gradient(90deg, var(--sitm-gold), #f082b4); }
.poll-total { font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.9); margin: 16px 0 0; }
.poll-method { font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,.72); margin: 10px 0 0; }

/* Accuracy footer. Every widget that asserts something a reader could act on
   names where it came from, whether it moves on its own, and when it was last
   read by a person. On a dark band it inherits the band's muted white; inside a
   light card it takes the body ink. */
.src-note {
  margin: 16px 0 0; font-size: 12.5px; line-height: 1.6;
  color: rgba(255,255,255,.72);
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 12px;
}
.int-card .src-note, .post-article > .src-note {
  color: #6d7784; border-top-color: var(--sitm-border);
}
.src-note b { font-weight: 800; }
