/* Mandala Theatre — news story page. Builds on tokens.css, site.css and pages.css. */

/* hero: the page-hero template with a breadcrumb in the status line */
.story-hero .slide-status a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.story-hero .slide-status a:hover { color: var(--white); }
.story-hero .slide-status span { margin: 0 .35em; opacity: .7; }
.story-hero .slide-title { font-size: clamp(2.75rem, 1rem + 4.6vw, 5.5rem); line-height: .95; text-wrap: balance; }

/* body: one readable column, the facts beside it */
.post {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 112px); align-items: start;
  padding-top: calc(var(--section) * .7); padding-bottom: var(--section);
}
.story-body { max-width: 68ch; }
.story-lead { font-size: var(--t-lead); line-height: 1.45; font-weight: 500; }
.story-body p + p, .story-lead + p { margin-top: 1.1em; }
.story-body h2 {
  margin-top: clamp(40px, 5vw, 56px); margin-bottom: 14px;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 750; line-height: 1.15; letter-spacing: -0.015em;
}
.story-body em { font-style: italic; }
.story-body a { font-weight: 600; text-decoration-color: var(--crimson); text-underline-offset: 4px; }

.story-share {
  margin-top: clamp(48px, 6vw, 72px); padding-top: 20px; border-top: 2px solid var(--ink);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
}
.story-share p { font-weight: 700; margin-right: 8px; }
.story-share a, .story-share button {
  font: inherit; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--crimson);
}
.story-share a:hover, .story-share button:hover { color: var(--crimson); }
.copied { font-size: var(--t-small); color: var(--ink-soft); }

.glance { position: sticky; top: calc(var(--head-h) + 32px); background: var(--soft); padding: clamp(24px, 3vw, 36px); }
.glance h2 { font-size: var(--t-lead); font-weight: 750; }
.glance dl { margin-top: 18px; display: grid; gap: 16px; }
.glance dt { font-size: var(--t-small); color: var(--ink-soft); }
.glance dd { margin: 2px 0 0; font-weight: 650; line-height: 1.35; }
.glance-status { margin-top: 24px; font-weight: 600; color: var(--crimson); }
.glance-links { margin-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

.more-grid { margin-top: 0; }

@media (max-width: 900px) {
  .post { grid-template-columns: 1fr; }
  .glance { position: static; }
}

/* ---------- stories brought over from the old site (and written in the admin's editor) ---------- */
.post-single { grid-template-columns: minmax(0, 1fr); }
.post-single .story-body { margin: 0 auto; width: 100%; }
.story-body > p:first-child { font-size: var(--t-lead); line-height: 1.45; font-weight: 500; }
.story-body > * + * { margin-top: 1.1em; }
.story-body h3 { margin-top: 36px; font-size: var(--t-lead); font-weight: 750; line-height: 1.2; }
.story-body ul, .story-body ol { padding-left: 1.4em; }
.story-body ul { list-style: disc; }
.story-body ol { list-style: decimal; }
.story-body li + li { margin-top: .4em; }
.story-body li::marker { color: var(--crimson); }
.story-body strong, .story-body b { font-weight: 700; }
.story-body blockquote { padding-left: 20px; border-left: 4px solid var(--saffron); font-size: var(--t-lead); }
.story-body img { display: block; width: auto; max-width: 100%; height: auto; }
.story-body figure { margin: 2em 0; }
.story-body figcaption { margin-top: 8px; font-size: var(--t-small); color: var(--ink-soft); }
.story-body table { width: 100%; border-collapse: collapse; font-size: var(--t-small); display: block; overflow-x: auto; }
.story-body td, .story-body th { padding: 10px 12px; border-bottom: 1px solid #dcd8d9; text-align: left; vertical-align: top; }
.story-body tr:first-child td { font-weight: 700; border-bottom: 2px solid var(--ink); }

/* ---------- features of the admin's text editor ---------- */
.story-body .lead { font-size: var(--t-lead); line-height: 1.45; font-weight: 500; }
.story-body small { font-size: var(--t-small); color: var(--ink-soft); }
.story-body mark { background: #ffe9a8; color: var(--ink); padding: 0 .15em; border-radius: 2px; }
.story-body [data-color] { color: var(--color, inherit); }
.story-body u { text-underline-offset: 3px; }
.story-body s { color: var(--ink-soft); }
.story-body h4 { margin-top: 28px; font-size: var(--t-body); font-weight: 750; }
.story-body hr { margin: 2.2em 0; border: 0; border-top: 2px solid var(--mist); }
.story-body details { padding: 14px 18px; background: var(--soft); border-radius: var(--btn-radius); }
.story-body details summary { font-weight: 700; cursor: pointer; }
.story-body details[open] summary { margin-bottom: 10px; }
.story-body pre { padding: 16px; overflow-x: auto; background: var(--soft); font-size: var(--t-small); }
/* columns from the editor's grid tool: stacked on phones */
.story-body .grid-layout { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.story-body .grid-layout > * + * { margin-top: 0; }
@media (min-width: 760px) {
  .story-body .grid-layout { grid-template-columns: var(--cols, repeat(2, minmax(0, 1fr))); }
  .story-body .grid-layout-col { grid-column: var(--col-span, span 1 / span 1); }
}

/* ---------- pictures from the media library and videos, inserted in the text ---------- */
.story-body .media-figure { margin: 2em 0; }
.story-body .media-figure img { display: block; width: 100%; height: auto; }
.story-body .media-medium { max-width: 560px; margin-left: auto; margin-right: auto; }
.story-body .media-left, .story-body .media-right { max-width: 45%; margin-top: .3em; margin-bottom: 1em; }
.story-body .media-left { float: left; margin-right: var(--gap); }
.story-body .media-right { float: right; margin-left: var(--gap); }
.story-body::after { content: ""; display: table; clear: both; }
@media (max-width: 620px) { .story-body .media-left, .story-body .media-right { float: none; max-width: 100%; margin: 1.5em 0; } }
.video-embed { margin: 2em 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed figcaption, .story-body .media-figure figcaption { margin-top: 8px; font-size: var(--t-small); color: var(--ink-soft); }
