/* Shared reading layer for community publications, including the archive. */
.ib-detail .ib-body {line-height:1.8; color:#263b48;}
.ib-detail .ib-body > :is(h2,h3,h4) {color:#192a36; margin:2em 0 .8em; text-wrap:balance;}
.ib-detail .ib-body > h2 {font-size:clamp(22px,2.3vw,27px); letter-spacing:-.025em; line-height:1.3;}
.ib-detail .ib-body > p {margin:0 0 1.25em;}
.ib-detail .ib-body > p:first-child {font-size:19px; line-height:1.75; color:#4d606d;}
.ib-detail .ib-body > :is(ul,ol) {background:none; padding:0 0 0 1.5em; margin:1.1em 0 1.6em; border-radius:0;}
.ib-detail .ib-body li {padding-left:.3em; margin:.65em 0;}
.ib-detail .ib-body li::marker {color:#a64f4b;}
.ib-detail .ib-body blockquote {padding:20px 24px; margin:28px 0; background:#f5f0e9; border-left:3px solid #b76a60; font-size:17px;}
.ib-detail .ib-body img {border:0; padding:0; background:transparent; max-width:100%; box-sizing:border-box;}

/* Keep the video surface in its actual orientation, with no browser frame. */
.ib-detail .ib-body .ib-video {width:100%; max-width:100%; margin:28px auto 36px; padding:0; border:0; border-radius:0; background:none; aspect-ratio:auto; overflow:visible; box-shadow:none;}
.ib-detail .ib-body .ib-video--portrait {max-width:360px;}
.ib-video-screen {position:relative; width:100%; aspect-ratio:16/9; border:0; border-radius:10px; overflow:hidden; background:#172c41;}
.ib-detail .ib-body .ib-video .ib-video-screen > iframe {position:absolute; inset:0; display:block; width:100%; height:100%; margin:0; padding:0; border:0; outline:0; box-shadow:none; border-radius:0;}
.ib-detail .ib-body .ib-video figcaption {margin:12px 0 0; font-size:13px; line-height:1.65; text-align:center; color:#697b84;}
.ib-detail .ib-body .ib-video figcaption a {white-space:normal;}

/* A small, readable collection instead of a long strip of duplicated captions. */
.ib-gallery {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 20px; margin:24px 0 38px; align-items:start;}
.ib-gallery--single {grid-template-columns:minmax(0,1fr); max-width:560px; margin-left:auto; margin-right:auto;}
.ib-detail .ib-body .ib-gallery > figure {min-width:0; margin:0; padding:0; background:none; border:0;}
.ib-detail .ib-body .ib-gallery a:has(>img) {display:block; border-radius:10px; text-decoration:none;}
.ib-detail .ib-body .ib-gallery img {display:block; width:100%; height:auto; max-height:640px; object-fit:contain; margin:0; padding:0; border:0; border-radius:10px; background:transparent;}
.ib-detail .ib-body .ib-gallery figcaption {font-size:13px; line-height:1.65; color:#6b7b85; margin:10px 0 0;}
.ib-detail .ib-body .ib-gallery a:focus-visible {outline:3px solid #a64f4b; outline-offset:4px;}

/* Source history and the author's channel stay together at the end. */
.ib-sources {border-top:1px solid #e5dfd6; margin:36px 0 0; padding:20px 0 0; font-size:14px; line-height:1.75; color:#61727d;}
.ib-sources > summary {width:fit-content; min-height:36px; cursor:pointer; font-size:14px; font-weight:700; color:#405663;}
.ib-sources > summary:focus-visible {outline:3px solid #a64f4b; outline-offset:4px; border-radius:4px;}
.ib-sources > div {padding:12px 0 0;}
.ib-sources p {margin:0 0 12px;}
.ib-sources ul {background:none; border-radius:0; padding:0 0 0 20px; margin:12px 0;}
.ib-sources li {margin:6px 0;}
.ib-telegram {margin:24px 0 0; padding:20px 22px; border-radius:12px; background:#f5f2ec; font-size:15px; line-height:1.75; color:#546b77;}
.ib-telegram p {margin:0;}
.ib-telegram a {font-weight:700;}

@media(max-width:650px) {
  .ib-detail .ib-body {line-height:1.8;}
  .ib-detail .ib-body > p:first-child {font-size:18px;}
  .ib-detail .ib-body > h2 {font-size:23px;}
  .ib-detail .ib-body blockquote {padding:18px 20px;}
  .ib-gallery {gap:20px;}
  .ib-detail .ib-body .ib-video--portrait {max-width:340px;}
}
@media(max-width:520px) {
  .ib-gallery {grid-template-columns:minmax(0,1fr);}
  .ib-detail .ib-body .ib-gallery img {max-height:none;}
  .ib-telegram {padding:18px;}
}

/* Explicit media ratios also work under the site inline-style policy. */
.ib-video--portrait .ib-video-screen{aspect-ratio:9/16}
.ib-video[data-video="1244388041"] .ib-video-screen{aspect-ratio:720/1280}
.ib-video[data-video="1244388054"] .ib-video-screen{aspect-ratio:720/1280}
.ib-video[data-video="1244388075"] .ib-video-screen{aspect-ratio:720/1280}
.ib-video[data-video="1244388104"] .ib-video-screen{aspect-ratio:480/848}
.ib-video[data-video="1244388123"] .ib-video-screen{aspect-ratio:720/1280}
.ib-video[data-video="1244388145"] .ib-video-screen{aspect-ratio:720/1280}
.ib-video[data-video="1244388167"] .ib-video-screen{aspect-ratio:720/1280}
.ib-video[data-video="1244388182"] .ib-video-screen{aspect-ratio:720/1280}
.ib-video[data-video="1244388202"] .ib-video-screen{aspect-ratio:720/1280}
.ib-video[data-video="1233931495"] .ib-video-screen{aspect-ratio:720/1280}
.ib-video[data-video="1233931628"] .ib-video-screen{aspect-ratio:1080/1920}
