/* Shared layout rules (2026-11-06). Layout only: no copy lives here.
 * Linked from the about, projects, blog and situation pages, after each page's own <style>,
 * so these win over the inline rules of equal specificity. */

/* Phones: nothing may be wider than the screen (sideways scroll).
 * .btn is white-space:nowrap in every template, so a long CTA label set the page's minimum width;
 * long tokens (an email address) and nowrap table headers did the same. Wide tables now scroll
 * inside themselves instead of pushing the whole page sideways. Same .btn rule as the city pages
 * (c3d9cff). */
@media(max-width:768px){
  .btn{white-space:normal;justify-content:center;text-align:center;max-width:100%;padding-left:20px;padding-right:20px}
  p,li,blockquote{overflow-wrap:anywhere}
  thead th{white-space:normal}
  table{display:block;max-width:100%;overflow-x:auto}
  .stats-g{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stat-item{min-width:0;padding-left:8px;padding-right:8px}
}
@media(max-width:768px){
  /* Blog post hero: the title block is laid over a fixed 280/220px photo with overflow hidden, so on
   * phones the top of a long H1 was cut off. Photo and title now share one grid cell and the cell
   * grows to fit the title; the photo fills it. */
  .art-hero{display:grid}
  .art-hero>.art-hero-img,.art-hero>.art-hero-body{grid-area:1/1}
  .art-hero>.art-hero-img{height:100%;min-height:280px}
  .art-hero>.art-hero-body{position:relative;align-self:end;width:100%;padding-top:40px}
}
@media(max-width:480px){.art-hero>.art-hero-img{min-height:220px}}
@media(max-width:640px){
  /* four-across stat strips written as inline styles in some posts */
  [style*="grid-template-columns:repeat(4,1fr)"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Neutral panel where a photo was withdrawn (photo could not be shown as this market's own).
 * Keeps the card/hero at its normal size so nothing around it shifts. */
.photo-none{background:radial-gradient(ellipse at 75% 0%,rgba(248,163,97,.18) 0%,transparent 60%),linear-gradient(135deg,#0D1B2A 0%,#1E2E42 100%)!important}
.proj-sc-photos.photo-none{min-height:220px}
.art-hero.photo-none{min-height:440px;display:flex;align-items:flex-end}
.art-hero.photo-none .art-hero-body{position:relative;width:100%;padding-top:48px}
.proj-hero-top.hero-one-col{grid-template-columns:1fr}
@media(max-width:768px){.art-hero.photo-none{min-height:280px}}
@media(max-width:480px){.art-hero.photo-none{min-height:220px}}
