/* design-x-p1.css - additive overrides for live d15 dist (loaded last). */
:root{--cream:#F6F1E8;--rule:#DDD5C7}

/* overflow + media constraints */
html,body{overflow-x:clip}
.wrap,.wrap>*,.r-body,.r-body>*,.r-head,.r-head>*,article>*{min-width:0}
img,video,picture,svg{max-width:100%}
figure.r-img,figure.r-vid{max-width:100%;margin-inline:0}
figure.r-img img,figure.r-vid video,figure.r-vid img{display:block;width:100%;height:auto;max-width:100%}

/* hero: 16:9 by default, 4:5 only with .has-45 */
figure.r-hero:not(.has-45){aspect-ratio:16/9}
figure.r-hero:not(.has-45) img{width:100%;height:100%;object-fit:cover}
figure.r-hero.has-45{aspect-ratio:auto}
@media (max-width:760px){
  figure.r-hero.has-45{aspect-ratio:4/5}
  figure.r-hero.has-45 img{width:100%;height:100%;object-fit:cover}
  /* photo-first on mobile via order only; DOM unchanged */
  article.wrap{display:flex;flex-direction:column}
  article.wrap>.r-hero{order:-1}
  article.wrap>*{order:0}
  article.wrap>.r-hero{margin-inline:-20px;max-width:none;width:auto}
}
@media (min-width:761px){
  figure.r-hero.has-45{aspect-ratio:16/9}
}

/* facts card */
.facts{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--rule);border:1px solid var(--rule);border-radius:4px;overflow:hidden;margin:28px 0 0}
.facts>div{background:var(--cream);padding:16px 20px;margin:0;min-height:44px;display:flex;flex-direction:column;gap:2px}
.facts span{font-size:13px;letter-spacing:0;color:#605548}
.facts b{font-size:21px;line-height:1.3;font-weight:700;color:#29261F}
@media (min-width:768px){.facts{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}}
@media (max-width:767px){.facts b{font-size:20px}}

/* home: lead-split + side-list in section.latest */
.latest .lead-split{display:grid;grid-template-columns:minmax(0,1fr);gap:28px}
.latest .lead-split>*{min-width:0}
section.latest .lead-split>*{min-width:0}
.latest .card.lead{display:block}
.latest .card.lead h3{font-size:26px;line-height:1.2}
.latest .side-list{list-style:none;margin:0;padding:0}
.latest .side-list li{border-top:1px solid var(--rule);margin:0}
.latest .side-list li:first-child{border-top:0}
.latest .side-list .card,.latest .side-list .side{display:flex;flex-direction:row;align-items:center;gap:16px;padding:16px 0;min-height:44px;background:none;border:0;box-shadow:none}
.latest .side-list .ph{flex:0 0 120px;width:120px;margin:0}
.latest .side-list .ph img{width:100%;height:auto;display:block}
.latest .side-list h3{font-size:18px;line-height:1.3;margin:0}
@media (min-width:601px){.latest .lead-split{grid-template-columns:minmax(0,3fr) minmax(0,2fr);column-gap:32px;align-items:start}}
@media (min-width:1024px){.latest .lead-split{grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:56px}.latest .card.lead h3{font-size:34px}.latest .side-list .card,.latest .side-list .side{padding:20px 0}}

/* footer 44px targets */
footer li a,footer .cols a{display:inline-flex;align-items:center;min-height:44px}

/* checkbox 44px hit area, 24px visual box */
input[type=checkbox]{-webkit-appearance:none;appearance:none;position:relative;width:44px;height:44px;margin:0;flex:0 0 44px;background:transparent;border:0;cursor:pointer}
input[type=checkbox]::before{content:"";position:absolute;inset:10px;width:24px;height:24px;box-sizing:border-box;border:2px solid #605548;border-radius:4px;background:#fff}
input[type=checkbox]:checked::before{background:#29261F;border-color:#29261F;box-shadow:inset 0 0 0 4px #fff}
input[type=checkbox]:focus-visible{outline:2px solid #29261F;outline-offset:-2px}

/* safe-area */
@supports(padding:max(0px)){
  body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
  footer{padding-bottom:max(0px,env(safe-area-inset-bottom))}
}

/* === P1-LS lead-split stack (601-bp, no clip) === */
@media (max-width: 959px) {
  section.latest .lead-split {
    grid-template-columns: 1fr;
  }
  section.latest .lead-split li,
  section.latest .lead-split li > a {
    grid-template-columns: 120px minmax(0, 1fr);
  }
  section.latest .lead-split li > a > *:last-child,
  section.latest .lead-split li h3,
  section.latest .lead-split h3 {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
/* === /P1-LS === */
