/* Real object case studies: isolated UniNews content styling. */
.md-case-page{max-width:1180px;margin:4px auto 28px;color:#312b24;font-size:16px;line-height:1.65}
.md-case-page *{box-sizing:border-box}
.md-case-hero{padding:30px 32px 26px;margin:0 0 22px;border:1px solid rgba(78,54,33,.12);border-radius:22px;background:linear-gradient(135deg,#fbf8f2 0%,#eee5d8 100%);box-shadow:0 14px 34px rgba(68,45,26,.08)}
.md-case-kicker{margin:0 0 8px;color:#87623d;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.md-case-lead{max-width:850px;margin:0;color:#33291f;font-size:22px;line-height:1.42}
.md-case-facts{display:flex;flex-wrap:wrap;gap:8px;margin-top:19px}
.md-case-facts span{padding:6px 10px;border-radius:999px;background:#fff;color:#5d4531;font-size:13px;font-weight:700;box-shadow:0 1px 0 rgba(58,40,22,.06)}
.md-case-gallery{display:grid;grid-template-columns:1.15fr .85fr .85fr;gap:14px;margin:0 0 28px}
.md-case-gallery__item{position:relative;display:flex;flex-direction:column;min-width:0;min-height:220px;margin:0;overflow:hidden;border-radius:18px;background:#eee7dd;box-shadow:0 10px 25px rgba(48,32,19,.11)}
.md-case-gallery__item--before{grid-row:span 2}.md-case-gallery__item--result{grid-row:span 2}
.md-case-gallery__item>a{display:block;min-height:0;line-height:0;background:#292421}
.md-case-gallery__item img{display:block;width:100%;height:100%;max-height:520px;object-fit:cover;transition:transform .45s ease}
.md-case-gallery__item:hover img{transform:scale(1.025)}
.md-case-gallery__item--before img,.md-case-gallery__item--result img{min-height:514px}
.md-case-gallery figcaption{position:relative;padding:11px 14px 13px;background:#fff;color:#5c4b3b;font-size:13px;line-height:1.42}
.md-case-gallery figcaption strong{display:block;margin-bottom:1px;color:#302820;font-size:15px}
.md-case-story{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,.8fr);gap:28px;align-items:start;margin:0 0 28px}
.md-case-story h2,.md-case-disclosure h2{margin:0 0 10px;color:#352a20;font-size:24px;line-height:1.25}
.md-case-story p{margin:0 0 20px}.md-case-note{padding:24px;border-radius:18px;background:#324537;color:#eef4ed;box-shadow:0 12px 28px rgba(37,55,41,.15)}
.md-case-note__eyebrow{display:block;margin-bottom:6px;color:#d7e3d6;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.md-case-note h2{color:#fff;font-size:21px}.md-case-note p{color:#e7eee5;font-size:14px;line-height:1.55}
.md-case-button,.md-case-link{display:block;width:100%;padding:11px 14px;border-radius:10px;text-align:center;font-weight:800;text-decoration:none!important}.md-case-button{margin-top:16px;background:#d49849;color:#2d2115!important}.md-case-link{margin-top:8px;border:1px solid rgba(255,255,255,.45);color:#fff!important}
.md-case-disclosure{padding:24px 26px;border:1px solid #e4d8c8;border-radius:18px;background:#fffaf3}.md-case-disclosure__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}.md-case-disclosure__grid>div{padding:12px 0;border-top:2px solid #d4b083}.md-case-disclosure__grid span{display:block;margin-bottom:4px;color:#8a7158;font-size:12px}.md-case-disclosure__grid strong{color:#33291f;font-size:14px}.md-case-disclosure__hint{margin:0;color:#766754;font-size:13px;line-height:1.5}
@media(max-width:900px){.md-case-gallery{grid-template-columns:repeat(2,1fr)}.md-case-gallery__item--before,.md-case-gallery__item--result{grid-row:span 1}.md-case-gallery__item--before{grid-column:span 2}.md-case-gallery__item--before img{min-height:360px;max-height:460px}.md-case-story{grid-template-columns:1fr}.md-case-disclosure__grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.md-case-page{font-size:15px}.md-case-hero{padding:22px 19px 20px;border-radius:16px}.md-case-lead{font-size:19px}.md-case-gallery{display:flex;flex-direction:column;gap:11px}.md-case-gallery__item,.md-case-gallery__item--before,.md-case-gallery__item--result{min-height:0}.md-case-gallery__item img,.md-case-gallery__item--before img,.md-case-gallery__item--result img{min-height:0;max-height:none;object-fit:contain}.md-case-story h2,.md-case-disclosure h2{font-size:21px}.md-case-disclosure{padding:20px 18px}.md-case-disclosure__grid{grid-template-columns:1fr 1fr;gap:10px}.md-case-note{padding:21px}}

/* UniNews mobile: keep the full article cover above the case content. */
@media(max-width:600px){.news-page__image + .news-page__description{clear:both}}

/* Mobile case layout: full cover first, then the independent content card. */
@media(max-width:600px){
  .news-page__image{float:none;width:100%;max-width:100%;margin:0 0 15px}
  .news-page__image>a{display:block;line-height:0}
  .news-page__image img{display:block;width:100%;height:auto}
  .news-page__image + .news-page__description{clear:both}
}
