.panama-case {
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid #dce1e7;
  border-radius: 24px;
  background: #f8f9fa;
}
.case-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3.6vw, 3rem);
  padding: clamp(1.2rem, 4vw, 2.9rem);
  background: #edf0f3;
}
.case-intro img, .reader-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  object-fit: contain;
}
.panama-case h2 {
  margin: .42rem 0 .65rem;
  font-size: clamp(2.2rem, 4.7vw, 4.35rem);
}
.case-intro p:not(.kicker) { max-width: 43ch; color: #454d55; }
.case-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.05rem; margin-top: 1.08rem; }
.case-inline { min-height: 36px; display: inline-flex; gap: .5rem; align-items: center; font-size: .86rem; font-weight: 700; text-decoration: none; }
.case-inline:hover { text-decoration: underline; text-underline-offset: .2em; }
.featured-case-link { margin: -.15rem 0 .55rem; }
.case-timeline { padding: clamp(.95rem, 3vw, 2rem) clamp(1rem, 4vw, 2.9rem); }
.cut-step { border-top: 1px solid #dce1e7; }
.cut-step:first-child { border-top: 0; }
.cut-step summary { display: grid; grid-template-columns: 2.4rem minmax(0,1fr) 1rem; align-items: center; gap: .65rem; padding: .82rem .18rem; list-style: none; cursor: pointer; }
.cut-step summary::-webkit-details-marker { display: none; }
.cut-step summary:hover .cut-name strong { text-decoration: underline; text-underline-offset: .19em; }
.cut-index { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: #e8ecf0; font-size: .76rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cut-step[open] .cut-index { background: #202326; color: #fff; }
.cut-name { display: flex; gap: .4rem .9rem; flex-wrap: wrap; align-items: baseline; }
.cut-name > span, .case-time { color: #475360; font-size: .8rem; font-variant-numeric: tabular-nums; }
.cut-chevron { text-align: right; font-weight: 700; }
.cut-step[open] .cut-chevron { transform: rotate(180deg); }
.cut-body { padding: .85rem 0 .65rem 3.2rem; }
.cut-body dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem 1rem; }
.cut-body dt { color: #202326; font-weight: 700; font-size: .76rem; }
.cut-body dd { margin: .28rem 0 0; font: .91rem/1.5 var(--body); color: #454d55; letter-spacing: normal; }
.cut-body .case-inline { margin-top: .48rem; }
.case-note { margin: .65rem .18rem 0; padding-top: .7rem; border-top: 1px solid #dce1e7; }

.reader-main { padding-block: clamp(1.2rem, 4vw, 3.4rem); }
.reader-hero { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); align-items: center; gap: 1.4rem; padding: clamp(1.15rem, 4vw, 2.8rem); border-radius: 22px; background: #edf0f3; }
.reader-hero h1 { margin: .42rem 0; font-size: clamp(2.4rem,5.5vw,4.75rem); }
.reader-hero .button { margin-top: 1rem; }
.reader-context { max-width: 85ch; margin: 1.15rem 0 1.55rem; color: #454d55; }
.reader-layout { display: grid; grid-template-columns: minmax(12.5rem,.75fr) minmax(0,2fr); gap: clamp(1rem,4vw,2.5rem); align-items: start; }
.reader-nav { position: sticky; top: 1rem; padding: .95rem; background: #f2f4f6; border-radius: 13px; }
.reader-nav ol { padding: 0; list-style: none; margin: .4rem 0 0; }
.reader-nav li + li { border-top: 1px solid #dce1e7; }
.reader-nav a { display: grid; grid-template-columns: 3.1rem 1fr; gap: .25rem; align-items: start; padding: .45rem 0; font-size: .81rem; text-decoration: none; }
.reader-nav a:hover { text-decoration: underline; text-underline-offset: .2em; }
.reader-nav a span { color: #475360; font-weight: 700; font-variant-numeric: tabular-nums; }
.reader-chapter { padding: 1.2rem 0 1rem; border-top: 1px solid #dce1e7; }
.reader-chapter-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.case-time { background: #e8ecf0; border-radius: 5px; padding: .14rem .45rem; font-weight: 700; }
.reader-chapter h2 { margin: .32rem 0 .6rem; font-size: clamp(1.42rem,2.25vw,2rem); text-transform: none; }
.reader-chapter p { max-width: 78ch; margin-bottom: .72rem; line-height: 1.66; }
.reader-chapter .reader-shot { margin-bottom: .85rem; padding: .65rem .76rem; border-left: 3px solid #9ba7b2; border-radius: 0 6px 6px 0; background: #f1f3f5; font-size: .87rem; }
.reader-shot strong { display: block; }
.reader-notes { padding: .9rem; background: #f2f4f6; border-radius: 12px; }
.reader-notes summary { font-weight: 700; cursor: pointer; }
.reader-notes p { margin: .65rem 0 0; font-size: .88rem; }
.reader-foot { padding: 0 0 1.8rem; }

@media (prefers-reduced-motion: no-preference) {
  .cut-index { transition: color 220ms ease, background-color 220ms ease; }
  .cut-chevron { transition: transform 230ms ease; }
  #kich-ban .cut-step[open] > .cut-body {
    animation: panama-cut-in 340ms cubic-bezier(.22,1,.36,1);
  }
}
@keyframes panama-cut-in {
  from { opacity: .15; transform: translateY(-7px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 760px) {
  .case-intro, .reader-hero, .reader-layout { grid-template-columns: 1fr; }
  .reader-nav { position: static; }
  .cut-body { padding: .35rem 0 .75rem 0; }
  .cut-body dl { grid-template-columns: 1fr; gap: .6rem; }
}
@media print {
  .panama-reader .masthead, .reader-nav, .reader-foot, .reader-hero a, .reader-chapter-head a { display: none; }
  .reader-layout { display: block; }
}
