.po2-case {
  --paper: #fff8f4;
  --ink: #231815;
  --subtle: #594c46;
  --line: #d9c9c0;
  --surface: #fff;
  --accent-text: #a22600;
  --green: #10b742;
  --orange: #ef4511;
  box-sizing: border-box;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 60px);
  background: var(--paper);
  color: var(--ink);
  border-top: 5px solid var(--green);
  font: 500 1rem/1.55 Manrope, Arial, sans-serif;
  overflow-wrap: anywhere;
}
.po2-case[data-dark="true"] {
  --paper: #171210;
  --ink: #fff8f4;
  --subtle: #e3c9bc;
  --line: #645149;
  --surface: #251d19;
  --accent-text: #ffb899;
  color-scheme: dark;
}
.po2-case * { box-sizing: inherit; }
.po2-case h1, .po2-case h2, .po2-case h3 {
  color: var(--ink);
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1.15;
  margin: 0 0 .55em;
  letter-spacing: normal;
  text-transform: none;
}
.po2-case h1 { font-size: clamp(3.2rem, 9vw, 7.2rem); font-weight: 900; margin-bottom: .08em; }
.po2-case h2 { font-size: clamp(1.65rem, 3.7vw, 2.55rem); font-weight: 850; }
.po2-case h3 { font-size: 1.25rem; font-weight: 800; }
.po2-case p { margin: 0 0 1rem; }
.po2-case a { color: var(--accent-text); text-decoration: underline; text-underline-offset: .2em; }
.po2-case :focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.po2-case .po2-top, .po2-case .po2-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.25rem; }
.po2-case .po2-top { justify-content: space-between; }
.po2-case .po2-logo { display: block; width: 190px; max-width: 55vw; height: auto; }
.po2-case .po2-lead { max-width: 690px; font-size: 1.13rem; }
.po2-case .po2-label { color: var(--subtle); font-weight: 750; margin-top: 1.5rem; }
.po2-case section { margin-top: clamp(36px, 7vw, 82px); }
.po2-case figure { margin: 0; }
.po2-case figcaption { padding: .8rem .15rem 0; color: var(--subtle); }
.po2-case .po2-figure { margin-top: 1.5rem; }
.po2-case .po2-render {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
}
.po2-case .po2-figure .po2-render { max-height: min(480px, 53vh); object-fit: contain; }
.po2-case .po2-viewer {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: .65rem;
  border-radius: 12px;
}
.po2-case .po2-viewer .po2-render { width: 100%; height: clamp(180px, 46vw, 520px); object-fit: contain; }
.po2-case .po2-arrows, .po2-case .po2-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.po2-case .po2-arrows { justify-content: space-between; margin-top: .65rem; }
.po2-case button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  padding: .4rem .6rem;
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  cursor: pointer;
}
.po2-case .po2-thumbs { margin-top: .65rem; }
.po2-case .po2-thumbs button { padding: .25rem; }
.po2-case .po2-thumbs img { display: block; width: clamp(38px, 11vw, 85px); height: auto; }
.po2-case .po2-thumbs button[aria-current="true"] { border: 2px solid var(--accent-text); }
.po2-case .po2-grid, .po2-case .po2-stats { display: grid; gap: 1.25rem; }
.po2-case .po2-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.po2-case .po2-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); margin: 1.5rem 0; }
.po2-case .po2-stats div { border-top: 2px solid var(--line); padding-top: .5rem; }
.po2-case .po2-stats dt { font-size: 1.8rem; font-weight: 800; }
.po2-case .po2-stats dd { margin: 0; color: var(--subtle); }
.po2-case .po2-boundary { border-left: 4px solid var(--orange); padding-left: 1rem; }
.po2-case [hidden] { display: none !important; }
@media print {
  .po2-case, .po2-case[data-dark="true"] { background: #fff; color: #111; --ink: #111; --subtle: #333; --accent-text: #411a10; }
  .po2-case button, .po2-case .po2-nav { display: none; }
  .po2-case figure { break-inside: avoid; }
}
