/* Issue 39 private sizing + front-box fix. Loaded last. Do not deploy to prod without Glenn's go.
   Palette: #FBF8F0 #F7F3E8 #0A1628 #7a1f2b #C9A44C
   Body ~23px, nothing under 17px. Front mast 54/100, inner 50/88 on desktop and print.
   Phone: fill the viewport, readable type, true phone PDF page size. */

/* ===== Vote now button + replacement bar (same footprint as old .con39) ===== */
a.vote-now{
  display:inline-block;
  background:#C9A44C;
  color:#0A1628 !important;
  font:800 18px/1.15 "Roboto Condensed","DejaVu Sans",sans-serif !important;
  letter-spacing:.06em;
  text-transform:uppercase;
  text-decoration:none !important;
  padding:7px 14px;
  margin:6px 0 0 8px;
  border:0;
  white-space:nowrap;
  box-sizing:border-box;
}
#front .mv39 p.mv39-d a.vote-now{margin:8px 0 0;display:inline-block}
.con39.bye39cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px 14px;
  flex-wrap:wrap;
  background:#0A1628;
  color:#FBF8F0;
  border-left:8px solid #C9A44C;
  padding:6px 12px;
  font-size:19px !important;
  line-height:1.3 !important;
  margin:8px 0;
  box-sizing:border-box;
}
.con39.bye39cta .bye39cta-text{flex:1 1 220px;min-width:0;color:#FBF8F0;font-size:19px !important;line-height:1.3 !important}
.con39.bye39cta .vote-now{margin:0;flex:0 0 auto}
@media print{
  .con39.bye39cta{margin:3px 0 2px !important;padding:6px 12px !important;flex-wrap:nowrap}
  #front .mv39 p.mv39-d a.vote-now{margin:4px 0 0 8px;padding:5px 12px;font-size:17px !important}
}

/* ===== Desktop / print masthead = Issue 38 ===== */
#front .fmast{
  display:grid !important;
  grid-template-columns:100px 1fr 100px !important;
  gap:16px !important;
  align-items:center !important;
  justify-items:center !important;
}
#front .fmast .nm{text-align:center !important;min-width:0 !important}
#front .fmast .nm h1,
#front .fmast .nm h1.paper{
  font-size:54px !important;
  letter-spacing:.022em !important;
  white-space:nowrap !important;
  overflow:visible !important;
  text-align:center !important;
  margin:0 !important;
}
#front .fmast img,
#front .fmast img.coin-left,
#front .fmast img.coin-right{
  width:100px !important;
  height:100px !important;
  flex:0 0 100px !important;
  object-fit:contain !important;
  display:block !important;
}
header.mast{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:8px !important;
}
header.mast img.badge,
header.mast img.coin-left,
header.mast img.coin-right{
  width:88px !important;
  height:88px !important;
  flex:0 0 88px !important;
  object-fit:contain !important;
}
header.mast .names{flex:1;text-align:center;min-width:0}
header.mast h1.paper{
  font:700 50px/1 "DejaVu Serif",Georgia,serif !important;
  letter-spacing:.03em !important;
  white-space:nowrap !important;
  text-align:center !important;
  margin:0 !important;
}

/* ===== Screen typography: body 23px, floor 17px ===== */
@media screen{
  section.page .body p:not(.src):not(.cr39):not(.kick36):not(.kicker):not(.byline):not(.clayref39),
  section.page .body li:not(.src),
  section.page p.deck,
  #front .mv39 p.mv39-d,
  #front .mv39 p.q39,
  p.q39,
  .cols2-39 p:not(.src),
  .det39 p:not(.src),
  .dcard39 p:not(.src):not(.byline),
  .dlead39 p:not(.src):not(.byline),
  .fill39 p,
  .slots39 li, .slots39 li b,
  .flow-2col li, .flow-2col li a, .flow-2col td, .flow-2col th,
  .grid37 p,
  .wsplit38 p.li36{
    font-size:23px !important;
    line-height:1.45 !important;
  }
  section.page .src, section.page p.src, section.page figcaption,
  section.page .kicker, section.page .kick36, section.page .cr39,
  section.page .foot-toprow, section.page .engage, section.page .pn,
  section.page .adlabel, section.page .cont-line, section.page .byline,
  section.page .clayref39{
    font-size:17px !important;
    line-height:1.35 !important;
  }
  .con39.bye39cta, .con39.bye39cta .bye39cta-text{
    font-size:19px !important;
    line-height:1.3 !important;
  }
  a.vote-now{font-size:18px !important}
}

/* ===== Phone / tablet: fill the screen, keep type readable, fix candidate row ===== */
@media screen and (max-width:860px){
  html, body{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    overflow-x:hidden !important;
  }
  body{padding:0 0 12px !important}
  section.page, section.page#front, #front.page{
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    min-height:0 !important;
    margin:0 0 14px !important;
    padding:14px 14px 18px !important;
    overflow:visible !important;
    box-sizing:border-box !important;
  }
  /* Compact the site pin so the paper fills the phone */
  #tdw-current-issue-pin{
    padding:6px 10px !important;
    gap:6px 10px !important;
    font-size:15px !important;
    line-height:1.25 !important;
  }
  #tdw-current-issue-pin .tdw-pin-cover{width:28px !important;height:36px !important}

  /* Candidate row: 3-across grid so portraits aren't squeezed off the row */
  #front .mv39-row{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:8px !important;
    align-items:start !important;
  }
  #front .mv39-row .g,
  #front .mv39-row .g.r{
    display:contents !important;
  }
  #front .mv39-row .lg{
    grid-column:1 / -1 !important;
    flex:none !important;
    width:auto !important;
    margin:2px auto 4px !important;
  }
  #front .mv39-row .t{
    flex:none !important;
    width:auto !important;
    min-width:0 !important;
  }
  #front .mv39-row .t img{width:100% !important;height:auto !important;aspect-ratio:4/5;object-fit:cover !important}

  /* Phone masthead: same shrink Issue 38 uses, so the title fits; coins both sides, centred */
  #front .fmast{
    display:grid !important;
    grid-template-columns:48px 1fr 48px !important;
    gap:8px !important;
    padding:2px 0 !important;
  }
  #front .fmast img,
  #front .fmast img.coin-left,
  #front .fmast img.coin-right{
    width:48px !important;
    height:48px !important;
    flex:0 0 48px !important;
  }
  #front .fmast .nm h1,
  #front .fmast .nm h1.paper{
    font-size:28px !important;
    letter-spacing:.02em !important;
    white-space:normal !important;
    line-height:1.05 !important;
  }
  header.mast{
    display:grid !important;
    grid-template-columns:44px 1fr 44px !important;
    gap:6px !important;
  }
  header.mast img.badge,
  header.mast img.coin-left,
  header.mast img.coin-right{
    width:44px !important;
    height:44px !important;
    flex:0 0 44px !important;
  }
  header.mast h1.paper{
    font-size:22px !important;
    white-space:normal !important;
    line-height:1.1 !important;
  }
  .con39.bye39cta{flex-wrap:wrap}
  a.vote-now{font-size:18px !important;padding:8px 16px}
}

/* Slightly tighter mast only on the narrowest phones, still above the old 26/40 shrink */
@media screen and (max-width:340px){
  #front .fmast{grid-template-columns:40px 1fr 40px !important;gap:6px !important}
  #front .fmast img, #front .fmast img.coin-left, #front .fmast img.coin-right{
    width:40px !important;height:40px !important;flex:0 0 40px !important
  }
  #front .fmast .nm h1.paper{font-size:24px !important}
}

/* ===== True phone-sized PDF (html.phonepdf) ===== */
html.phonepdf, html.phonepdf body{
  background:#FBF8F0 !important;
  margin:0 !important;
  padding:0 !important;
  width:auto !important;
}
html.phonepdf #tdw-current-issue-pin{display:none !important}
html.phonepdf section.page,
html.phonepdf section.page#front,
html.phonepdf #front.page{
  width:auto !important;
  max-width:none !important;
  height:auto !important;
  min-height:0 !important;
  margin:0 !important;
  padding:14px 16px 28px !important;
  overflow:visible !important;
  box-shadow:none !important;
  box-sizing:border-box !important;
  page-break-after:always;
  break-after:page;
}
html.phonepdf section.page .foot{
  position:static !important;
  left:auto !important;right:auto !important;bottom:auto !important;
  width:100% !important;
  margin-top:14px !important;
}
html.phonepdf #front .mv39-row{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:8px !important;
}
html.phonepdf #front .mv39-row .g,
html.phonepdf #front .mv39-row .g.r{display:contents !important}
html.phonepdf #front .mv39-row .lg{grid-column:1 / -1 !important;margin:2px auto 4px !important}
html.phonepdf #front .mv39-row .t{width:auto !important;min-width:0 !important}
html.phonepdf #front .fmast{
  display:grid !important;
  grid-template-columns:56px 1fr 56px !important;
  gap:8px !important;
  justify-items:center !important;
}
html.phonepdf #front .fmast img,
html.phonepdf #front .fmast img.coin-left,
html.phonepdf #front .fmast img.coin-right{
  width:56px !important;height:56px !important;
}
html.phonepdf #front .fmast .nm h1.paper{
  font-size:28px !important;
  white-space:normal !important;
  text-align:center !important;
}
html.phonepdf header.mast{
  display:grid !important;
  grid-template-columns:48px 1fr 48px !important;
  gap:6px !important;
}
html.phonepdf header.mast img.badge,
html.phonepdf header.mast img.coin-left,
html.phonepdf header.mast img.coin-right{width:48px !important;height:48px !important}
html.phonepdf header.mast h1.paper{font-size:24px !important;white-space:normal !important}
html.phonepdf section.page .body p:not(.src):not(.cr39):not(.kick36):not(.kicker):not(.byline),
html.phonepdf #front .mv39 p.mv39-d,
html.phonepdf #front .mv39 p.q39{
  font-size:23px !important;
  line-height:1.45 !important;
}
html.phonepdf section.page .src,
html.phonepdf section.page figcaption,
html.phonepdf section.page .kicker,
html.phonepdf section.page .cr39,
html.phonepdf section.page .foot-toprow,
html.phonepdf section.page .engage{
  font-size:17px !important;
}
html.phonepdf .wsplit38 .wcols{grid-template-columns:1fr !important}
html.phonepdf .wsplit38 .wl{border-right:0 !important;padding-right:0 !important}
html.phonepdf .cols2-39, html.phonepdf .claycols39, html.phonepdf .dlist39, html.phonepdf .more39 ul{column-count:1 !important}
html.phonepdf .dgrid39{grid-template-columns:1fr !important}
html.phonepdf figure, html.phonepdf img{max-width:100% !important;height:auto !important}

@media print{
  @page{margin:0}
  html.phonepdf @page{size:390px 844px;margin:0}
  html.phonepdf section.page,
  html.phonepdf section.page#front,
  html.phonepdf #front.page{
    width:390px !important;
    max-width:390px !important;
    height:auto !important;
    overflow:visible !important;
    margin:0 !important;
    padding:14px 16px 28px !important;
    box-shadow:none !important;
  }
}

/* Beat styles.css html:is(#i36h,html) 640px 40px/26px shrink */
@media screen and (max-width:860px){
  html:is(#i36h,html) section:is(#i36x,#front) .fmast,
  html:is(html) section:is(#front) .fmast{
    display:grid !important;
    grid-template-columns:48px 1fr 48px !important;
    gap:8px !important;
  }
  html:is(#i36h,html) section:is(#i36x,#front) .fmast img,
  html:is(#i36h,html) section:is(#i36x,#front) .fmast img.coin-left,
  html:is(#i36h,html) section:is(#i36x,#front) .fmast img.coin-right{
    width:48px !important;height:48px !important;flex:0 0 48px !important;position:static !important;
  }
  html:is(#i36h,html) section:is(#i36x,#front) .fmast .nm h1.paper,
  html:is(#i36h,html) section:is(#i36x,#front) .fmast .nm h1{
    font-size:28px !important;white-space:normal !important;letter-spacing:.02em !important;line-height:1.08 !important;
  }
  html:is(#i36h,html) section.page header.mast img.badge,
  html:is(#i36h,html) section.page header.mast img.coin-left,
  html:is(#i36h,html) section.page header.mast img.coin-right{
    width:44px !important;height:44px !important;flex:0 0 44px !important;
  }
  html:is(#i36h,html) section.page header.mast h1.paper{
    font-size:22px !important;white-space:normal !important;
  }
  /* Coin first, then a clean 3×3 of the nine candidates */
  html:is(html) section:is(#front) .mv39-row .lg,
  #front .mv39-row .lg{grid-column:1/-1 !important;grid-row:1 !important}
}

@media screen and (max-width:860px){
  html:is(#i36h,html) section:is(#i36x,#front) .fmast .nm .tag,
  html:is(#i36h,html) section:is(#i36x,#front) .fmast .nm .dt{
    white-space:normal !important;letter-spacing:0 !important;font-size:17px !important;
  }
  section.page .foot-toprow, #front .foot-toprow{
    white-space:normal !important;flex-wrap:wrap !important;
  }
  section.page .engage, section.page .founders39{white-space:normal !important;overflow-wrap:anywhere !important}
  #contents table.toc{width:100% !important;table-layout:fixed !important}
  #contents table.toc td, #contents table.toc td.sec, #contents table.toc td.sec a, #contents table.toc td.blurb{
    white-space:normal !important;overflow-wrap:anywhere !important;
  }
}

/* Paul baseline (LIVE, m390.json): ~1/3 of P/LI character count was 17–19px.
   On phone and tablet, bring all body paragraph and list text to 23px.
   Metadata stays at the 17px floor. Beats html:is(#z39…) 18/19px rules. */
@media screen and (max-width:860px){
  html:is(#z39,html) section.page p,
  html:is(#z39,html) section.page li,
  html:is(#i36h,html) section.page p,
  html:is(#i36h,html) section.page li,
  html:is(html) section.page p,
  html:is(html) section.page li,
  html section.page p,
  html section.page li{
    font-size:23px !important;
    line-height:1.45 !important;
  }
  html:is(#z39,html) section.page p.src,
  html:is(#z39,html) section.page p.src a,
  html:is(#z39,html) section.page p.cr39,
  html:is(#z39,html) section.page p.byline,
  html:is(#z39,html) section.page p.kicker,
  html:is(#z39,html) section.page p.kick36,
  html:is(#z39,html) section.page p.credit,
  html:is(#z39,html) section.page p.ph-credit,
  html:is(#z39,html) section.page p.cont-line,
  html:is(#z39,html) section.page p.clayref39,
  html:is(#i36h,html) section.page p.src,
  html:is(#i36h,html) section.page p.src a,
  html:is(#i36h,html) section.page p.cr39,
  html:is(#i36h,html) section.page p.byline,
  html:is(#i36h,html) section.page p.kicker,
  html:is(#i36h,html) section.page p.kick36,
  html:is(#i36h,html) section.page p.clayref39,
  html section.page p.src,
  html section.page p.src a,
  html section.page p.cr39,
  html section.page p.byline,
  html section.page p.kicker,
  html section.page p.kick36,
  html section.page p.credit,
  html section.page p.cont-line,
  html section.page p.clayref39,
  html section.page figcaption,
  html section.page figcaption *{
    font-size:17px !important;
    line-height:1.35 !important;
  }
}

/* Same 23px body paragraphs in the true phone PDF */
html.phonepdf section.page p,
html.phonepdf section.page li,
html.phonepdf:is(#z39,html) section.page p,
html.phonepdf:is(#z39,html) section.page li{
  font-size:23px !important;
  line-height:1.45 !important;
}
html.phonepdf section.page p.src,
html.phonepdf section.page p.src a,
html.phonepdf section.page p.cr39,
html.phonepdf section.page p.byline,
html.phonepdf section.page p.kicker,
html.phonepdf section.page p.kick36,
html.phonepdf section.page p.credit,
html.phonepdf section.page p.cont-line,
html.phonepdf section.page p.clayref39,
html.phonepdf section.page figcaption,
html.phonepdf section.page figcaption *{
  font-size:17px !important;
  line-height:1.35 !important;
}

/* Catch remaining article paragraphs/lists still stuck at 18–22px
   (detours, door leads, ward-box items, Burford column). Metadata classes excluded. */
@media screen and (max-width:860px){
  html:is(#z39,html) section.page .body p:not(.src):not(.srcin):not(.cr39):not(.byline):not(.kicker):not(.kick36):not(.clayref39):not(.wcm39):not(.wco39):not(.claysig39):not(.credit):not(.cont-line):not(.z1):not(.z2):not(.z3):not(.z4):not(.z5),
  html:is(#z39,html) section.page[id] .body p:not(.src):not(.srcin):not(.cr39):not(.byline):not(.kicker):not(.kick36):not(.clayref39):not(.wcm39):not(.wco39):not(.claysig39):not(.credit):not(.cont-line):not(.z1):not(.z2):not(.z3):not(.z4):not(.z5),
  html:is(#z39,html) section.page[id^="burford"] .body p:not(.src):not(.byline):not(.kick36):not(.claysig39):not(.clayref39):not(.z1):not(.z2):not(.z3):not(.z4):not(.z5),
  html:is(#z39,html) section.page:is(#detours,#detours2) .body .det39 p:not(.src):not(.z1):not(.z2):not(.z3):not(.z4):not(.z5),
  html:is(#z39,html) section.page .body .det39 p:not(.src):not(.z1):not(.z2):not(.z3):not(.z4):not(.z5),
  html:is(#z39,html) section.page .body .dlead39 p:not(.src):not(.byline):not(.z1):not(.z2):not(.z3):not(.z4),
  html:is(#z39,html) section.page .body .dcard39 p:not(.src):not(.byline):not(.z1):not(.z2):not(.z3):not(.z4),
  html:is(#z39,html) section.page .body li:not(.z1):not(.z2):not(.z3),
  html:is(#z39,html) section.page[id^="ward"] .wbx39 li,
  html:is(#z39,html) section.page .body .more39 li:not(.z1):not(.z2),
  html:is(#z39,html) section.page .cols2-39 p:not(.src),
  html:is(#z39,html) section.page p.deck{
    font-size:23px !important;
    line-height:1.45 !important;
  }
}
html.phonepdf:is(#z39,html) section.page .body p:not(.src):not(.srcin):not(.cr39):not(.byline):not(.kicker):not(.kick36):not(.clayref39):not(.wcm39):not(.wco39):not(.claysig39):not(.credit):not(.cont-line):not(.z1):not(.z2):not(.z3):not(.z4):not(.z5),
html.phonepdf:is(#z39,html) section.page .body li:not(.z1):not(.z2):not(.z3),
html.phonepdf:is(#z39,html) section.page:is(#detours,#detours2) .body .det39 p:not(.src):not(.z1):not(.z2):not(.z3):not(.z4):not(.z5),
html.phonepdf:is(#z39,html) section.page .body .dlead39 p:not(.src):not(.byline):not(.z1):not(.z2):not(.z3):not(.z4),
html.phonepdf:is(#z39,html) section.page .body .dcard39 p:not(.src):not(.byline):not(.z1):not(.z2):not(.z3):not(.z4),
html.phonepdf:is(#z39,html) section.page[id^="ward"] .wbx39 li{
  font-size:23px !important;
  line-height:1.45 !important;
}
@media screen and (max-width:860px){
  html:is(#z39,html) section.page[id^="ward"] ol.wi39 li:not(#q1):not(#q2):not(#q3),
  html:is(#z39,html) section.page[id^="ward"] .wmore39 li:not(#q1):not(#q2):not(#q3){
    font-size:23px !important;
    line-height:1.35 !important;
  }
}
html.phonepdf:is(#z39,html) section.page[id^="ward"] ol.wi39 li:not(#q1):not(#q2):not(#q3){
  font-size:23px !important;
  line-height:1.35 !important;
}

/* ===== Print letter: stretch last house box to close bottom gaps ===== */
@media print {
  html:not(.phonepdf) section.page{
    display:flex !important;
    flex-direction:column !important;
  }
  html:not(.phonepdf) section.page .body{
    flex:1 0 auto !important;
    display:flex !important;
    flex-direction:column !important;
  }
  html:not(.phonepdf) section.page > .fill39,
  html:not(.phonepdf) section.page .body > .fill39:last-child,
  html:not(.phonepdf) section.page .body > .signup36:last-child{
    flex:1 0 auto !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    box-sizing:border-box !important;
  }
}


/* ===== Nov 23 afternoon private draft: mobile page cards, teaser kickers, q39 ===== */
@media screen and (max-width:860px){
  /* Issue 38 look: cream cards on a grey field, 8px side gutter, 16px gap between pages */
  html, body{
    background:#e8ecf2 !important;
  }
  body{padding:8px 0 16px !important;}
  section.page, section.page#front, #front.page{
    width:auto !important;
    max-width:100% !important;
    margin:0 8px 16px !important;
    padding:16px 18px 20px !important;
    box-shadow:0 2px 12px rgba(0,0,0,.18) !important;
    box-sizing:border-box !important;
  }
}

/* Beat html:is(#i36h,html) section:is(#i36x,#front) .pair36 .lab {display:inline} */
html:is(#z39,html) section:is(#front) .pair36 .lab,
html:is(#i36h,html) section:is(#i36x,#front) .pair36 .lab,
html:is(html) section:is(#front) .pair36 span.lab{
  display:block !important;
  margin:0 0 3px !important;
}

/* Beat earlier @media screen 23px typography on p.q39. Same on desktop and mobile. */
@media screen{
  html:is(html) #front .mv39 p.q39,
  html:is(html) section#front p.q39,
  html:is(html) p.q39{
    font-size:17px !important;
    line-height:1.35 !important;
    color:#333 !important;
    margin:6px 0 4px !important;
    font-weight:400 !important;
  }
  html:is(html) #front .mv39 p.q39 b,
  html:is(html) p.q39 b{font-weight:700 !important; color:#0A1628 !important;}
}

@media screen and (max-width:860px){
  html:is(#z39,html) #front .mv39 p.q39,
  html:is(#z39,html) section#front p.q39,
  html:is(#z39,html) p.q39,
  html:is(html) #front .mv39 p.q39,
  html:is(html) p.q39{
    font-size:17px !important;
    line-height:1.35 !important;
    color:#333 !important;
    margin:6px 0 4px !important;
    font-weight:400 !important;
  }
}

/* ===== Nov 23 phone: edge-to-edge under 600px ===== */
@media screen and (max-width:600px){
  html, body{
    background:#e8ecf2 !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    overflow-x:hidden !important;
  }
  body{padding:0 0 16px !important;}

  /* NEW banner flush to the screen */
  #tdw-current-issue-pin{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    box-sizing:border-box !important;
  }

  /* Page cards: no side margin, 14px gap between pages */
  html:is(#z39,html) section.page,
  html:is(#i36h,html) section.page,
  html:is(html) section.page,
  section.page,
  section.page#front,
  #front.page{
    width:100% !important;
    max-width:100% !important;
    margin:0 0 14px !important;
    padding:0 0 12px !important;
    box-sizing:border-box !important;
    box-shadow:none !important;
    border-radius:0 !important;
  }

  /* Mastheads run the full card width; 12px keeps coins off the glass.
     Selectors beat styles.css / earlier 860px #front .fmast padding:2px 0. */
  html:is(#z39,html) section:is(#front) .fmast,
  html:is(#i36h,html) section:is(#i36x,#front) .fmast,
  html:is(html) section:is(#front) .fmast,
  #front .fmast,
  html:is(#z39,html) section.page header.mast,
  html:is(#i36h,html) section.page header.mast,
  section.page header.mast,
  header.fmast,
  header.mast{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:8px 12px !important;
    box-sizing:border-box !important;
  }

  section.page .goldline{
    width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }
  section.page .secband{
    width:100% !important;
    margin:0 !important;
    padding:6px 12px !important;
    box-sizing:border-box !important;
  }

  /* Beat #front .body { padding:0 !important } in styles.css */
  html:is(#z39,html) section#front > .body,
  html:is(html) section#front > .body,
  #front > .body,
  html:is(#z39,html) section.page > .body,
  html:is(#z39,html) section.page > .foot,
  section.page > .body,
  section.page > .foot{
    padding-left:12px !important;
    padding-right:12px !important;
    box-sizing:border-box !important;
  }

  /* Nested boxes: no extra side indent; thin border, 10px padding */
  html:is(html) #front .mv39,
  #front .mv39,
  .mv39,
  .con39,
  .cou39,
  .slots39{
    margin-left:0 !important;
    margin-right:0 !important;
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
  }
  html:is(html) #front .mv39,
  #front .mv39,
  .mv39{
    padding:10px !important;
    border:2px solid #0A1628 !important;
    border-top:2px solid #C9A44C !important;
  }
}

/* Issue 40 GNN photo caps so pages 11–12 stay above the footer */
#goodnews .body p, #goodnews-c2 .body p{margin:0 0 7px !important;}
#goodnews .body p.src, #goodnews-c2 .body p.src{margin:0 0 8px !important;}
#goodnews figure.gnn-wide{
  float:none !important;
  width:100% !important;
  max-width:100% !important;
  margin:6px 0 0 !important;
}
#goodnews figure.gnn-wide img{
  width:100% !important;
  height:1.22in !important;
  max-height:1.22in !important;
  object-fit:cover !important;
  object-position:center 42% !important;
  display:block !important;
}
#goodnews-c2 figure.gnn-boxes{
  max-width:28% !important;
  width:28% !important;
  float:right !important;
  margin:0 0 4px 10px !important;
}
#goodnews-c2 figure.gnn-boxes img{
  width:100% !important;
  height:auto !important;
  max-height:0.95in !important;
  object-fit:contain !important;
  display:block !important;
}
#goodnews-c2 h3.door39h{margin:6px 0 4px !important;}

#goodnews-c2 .body p{margin:0 0 5px !important;}
#goodnews-c2 .body p.src{margin:0 0 6px !important;}
#goodnews-c2 h3.door39h{margin:5px 0 3px !important;}

html.phonepdf #front .mv39-row .t img,
html.phonepdf .mv39-row .t img{
  object-fit:contain !important;
  object-position:top center !important;
  aspect-ratio:auto !important;
  height:auto !important;
}

/* Issue 41: enlarge front-page Reader mock vote (Glenn, Nov 25 4:20 AM) */
#front .mv39{
  margin-top:8px !important;
  margin-bottom:0 !important;
  padding:8px 14px 6px !important;
  border-top-width:9px !important;
}
#front .mv39 .sk{
  font-size:18px !important;
  line-height:1.2 !important;
}
#front .mv39-h,
#front .mv39-h.mv39-h{
  font-size:34px !important;
  line-height:1.08 !important;
  margin:4px 0 8px !important;
}
#front .mv39-row{
  gap:10px !important;
  align-items:flex-end !important;
}
/* Drop the in-row medallion so all 9 portraits share the full width and read larger. Masthead medallions stay. */
#front .mv39-row .lg{display:none !important;}
#front .mv39-row .g{flex:5 1 0 !important;gap:8px !important;display:flex !important;}
#front .mv39-row .g.r{flex:4 1 0 !important;gap:8px !important;display:flex !important;}
#front .mv39-row .t,
#front .mv39-row .g.r .t{
  flex:1 1 0 !important;
  flex-basis:0 !important;
  min-width:0 !important;
}
#front .mv39-row figcaption,
#front .mv39-row figcaption b,
#front .mv39-row figcaption span{
  font-size:17px !important;
  line-height:1.1 !important;
}
#front .mv39 p.mv39-d{
  font-size:20px !important;
  line-height:1.28 !important;
  margin:6px 0 2px !important;
}
#front .mv39 p.cr39{
  font-size:17px !important;
  line-height:1.25 !important;
  margin:2px 0 0 !important;
}
#front .mv39 p.mv39-d a.vote-now,
html:is(html) #front .mv39 p.mv39-d a.vote-now{
  display:inline-block !important;
  margin:6px 0 0 10px !important;
  padding:8px 20px !important;
  font-size:22px !important;
  line-height:1.1 !important;
  vertical-align:middle;
}
@media print{
  #front .mv39 p.mv39-d a.vote-now,
  html:is(html) #front .mv39 p.mv39-d a.vote-now{
    margin:6px 0 0 10px !important;
    padding:8px 20px !important;
    font-size:22px !important;
  }
}

/* Phone / narrow: keep the 3-col grid and the centre medallion; enlarge type and the button. */
@media screen and (max-width:700px){
  #front .mv39-h,
  #front .mv39-h.mv39-h{font-size:30px !important;}
  #front .mv39-row .lg{display:flex !important;flex:none !important;grid-column:1 / -1 !important;}
  #front .mv39 p.mv39-d{font-size:19px !important;}
}
html.phonepdf #front .mv39{
  margin-top:10px !important;
  padding:10px 10px 12px !important;
}
html.phonepdf #front .mv39-row .lg{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  grid-column:1 / -1 !important;
}
html.phonepdf #front .mv39-h,
html.phonepdf #front .mv39-h.mv39-h{font-size:30px !important;margin:4px 0 8px !important;}
html.phonepdf #front .mv39 p.mv39-d a.vote-now{
  font-size:20px !important;
  padding:8px 18px !important;
  margin:8px 0 0 0 !important;
}

@media print{
  html:is(#z39,#f40,#f41,#f42,#f43,html) body section#front .body .mv39:not(#q1),
  html:is(#z39,#f40,html) body #front .body .mv39,
  html:is(html) section#front .mv39{
    margin-top:6px !important;
    margin-bottom:0 !important;
    padding:4px 12px 3px !important;
    border-top-width:9px !important;
  }
  html:is(#z39,#f40,#f42,html) body section#front .body .mv39 h2.mv39-h:not(#q1),
  html:is(#f42,html) body #front .body .mv39 h2.mv39-h,
  #front .mv39-h{
    font-size:32px !important;
    line-height:1.08 !important;
    margin:2px 0 6px !important;
  }
  html:is(#f40,html) body #front .body .mv39 p.mv39-d,
  html:is(html) #front .mv39 p.mv39-d{
    font-size:19px !important;
    line-height:1.25 !important;
    margin:4px 0 2px !important;
  }
  html:is(#f40,html) body #front .body .mv39 p.cr39,
  html:is(html) #front .mv39 p.cr39{
    font-size:17px !important;
    line-height:1.2 !important;
    margin:1px 0 0 !important;
  }
  html:is(#z39,#f40,html) body section#front .mv39 p.mv39-d a.vote-now,
  html:is(html) #front .mv39 p.mv39-d a.vote-now{
    display:inline-block !important;
    margin:4px 0 0 8px !important;
    padding:7px 18px !important;
    font-size:22px !important;
    line-height:1.1 !important;
  }
}

/* Issue 41: advertise p30 contrast/coins/fill + expand41 navy (Glenn, Nov 25) */
html section.page#advertise a,
html section.page#advertise .adp37-reach a,
html section.page#advertise .adp37 a,
html:is(html) section.page#advertise .body a{
  color:#C9A44C !important;
  text-decoration-color:#C9A44C !important;
}
html:is(#z39,html) section.page#advertise .foot .founders39:not(#q1):not(#q2):not(#q3),
html section.page#advertise .foot .founders39,
html section.page#advertise .foot .engage .founders39,
html:is(#z39,html) section.page#expand41 .foot .founders39:not(#q1):not(#q2):not(#q3),
html section.page#expand41 .foot .founders39{
  color:#C9A44C !important;
}
html section.page#advertise .foot,
html section.page#advertise .foot .foot-toprow,
html section.page#advertise .foot .foot-toprow *,
html section.page#advertise .foot .engage{
  color:#FBF8F0 !important;
}
html section.page#advertise .foot .engage{color:#C9A44C !important;}

/* Round coins on the navy advertise masthead (PNG is a circular coin on a square navy canvas) */
html section.page#advertise header.mast img.badge,
html section.page#advertise header.mast img.coin-left,
html section.page#advertise header.mast img.coin-right{
  border-radius:50% !important;
  overflow:hidden !important;
  object-fit:cover !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

/* Rebalance p30: let the ad-size diagram grow to fill the empty lower navy */
html section.page#advertise .body{display:flex !important;flex-direction:column !important;flex:1 1 auto !important;}
html section.page#advertise .adp37{display:flex !important;flex-direction:column !important;flex:1 1 auto !important;height:100% !important;gap:12px !important;justify-content:space-between !important;}
html section.page#advertise .adp37-grid{
  flex:1 1 auto !important;
  grid-template-rows:minmax(80px,0.8fr) minmax(110px,1.2fr) minmax(110px,1.2fr) !important;
  gap:12px !important;
  min-height:3.4in !important;
}
html section.page#advertise .adp37-box .sz{font-size:22px !important;}
html section.page#advertise .adp37-box .yh{font-size:30px !important;}
html section.page#advertise .adp37-tiers th,
html section.page#advertise .adp37-tiers td{padding:10px 10px !important;}
html section.page#advertise .adp37-reach{margin-top:4px !important;}

/* Ensure expand41 gets the navy house-ad treatment even if a selector was missed */
section.page#expand41, section.page#expand40{
  background:#13285A !important;
  color:#FBF8F0 !important;
  -webkit-print-color-adjust:exact !important;
  print-color-adjust:exact !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
}
section.page#expand41 .exp40-top,
section.page#expand40 .exp40-top{
  width:100% !important;
  box-sizing:border-box !important;
  margin-left:0 !important;
  margin-right:0 !important;
}
section.page#expand41 .foot,
section.page#expand41 .foot *,
section.page#expand40 .foot,
section.page#expand40 .foot *{color:#FBF8F0 !important;background:transparent !important;}
section.page#expand41 .exp40-top img.badge,
section.page#expand40 .exp40-top img.badge{
  border-radius:50% !important;
  object-fit:cover !important;
  overflow:hidden !important;
}

/* Clear p16 footer: keep the 20% larger Watts Pond map, tighten section spacing only */
@media print{
  html section.page#detours2 .body > p{margin-bottom:4px !important;}
  html section.page#detours2 .body > p.src{margin-bottom:3px !important;margin-top:0 !important;}
  html section.page#detours2 .body > figure{margin:4px 0 !important;}
  html section.page#detours2 .body > h3.hed{margin-bottom:2px !important;margin-top:0 !important;}
}

/* Give the front vote box a few pixels back so "Nov. 18." clears the footer */
@media print{
  html:is(#z39,#f40,#f41,#f42,#f43,html) body section#front .body .mv39:not(#q1){
    padding:3px 12px 2px !important;
  }
  html:is(#z39,#f40,#f42,html) body section#front .body .mv39 h2.mv39-h:not(#q1),
  #front .mv39-h{margin:2px 0 4px !important;}
  html:is(html) #front .mv39-row .t img{max-height:80px !important;}
  html:is(#f40,html) body #front .body .mv39 p.mv39-d{margin:3px 0 1px !important;}
  html:is(#f40,html) body #front .body .mv39 p.cr39,
  html:is(html) #front .mv39 p.cr39{margin:0 !important;line-height:1.15 !important;}
  html:is(#z39,#f40,html) body section#front .mv39 p.mv39-d a.vote-now,
  html:is(html) #front .mv39 p.mv39-d a.vote-now{padding:5px 16px !important;margin:3px 0 0 8px !important;}
}

/* Issue 41: front quarter-vote bottom-right, plain weather, roomier cover */
/* Plain sun + +5°C, no black chip */
#front a.wx41plain{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:6px 0 2px;
  padding:0;
  background:transparent !important;
  border:0 !important;
  text-decoration:none;
  color:#0A1628 !important;
}
#front a.wx41plain svg.wx41sun{
  width:28px;
  height:28px;
  flex:0 0 28px;
  stroke:#C9A44C;
}
#front a.wx41plain b{
  font:800 26px/1 "Roboto Condensed","DejaVu Sans",sans-serif !important;
  color:#0A1628 !important;
  letter-spacing:.02em;
}
#front .fmast a.wx38{display:none !important;}

/* Roomier lead */
html:is(#l40,#f40,#f41,html) #front .body .lead40{
  margin:16px 0 14px !important;
  padding:0 0 14px !important;
}
html:is(#l40,#f41,html) #front .body .lead40 h2.lead40-h{
  font-size:36px !important;
  line-height:1.12 !important;
  margin:0 0 10px !important;
}
html:is(#l40,#f40,html) #front .body .lead40 p.lead40-d{
  font-size:20px !important;
  line-height:1.42 !important;
}
html:is(#l40,html) #front .body .lead40 figure.lead40-ph{
  width:3.15in !important;
  margin:0 0 6px 18px !important;
}

/* Lower half: teasers left, vote as a true bottom-right quarter */
#front .body{display:flex !important;flex-direction:column !important;flex:1 1 auto !important;min-height:0 !important;}
#front .front-lower41{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:18px 22px !important;
  flex:1 1 auto !important;
  align-items:stretch !important;
  min-height:0 !important;
  margin-top:4px !important;
}
#front .front-lower41 .pair36.three40{
  display:flex !important;
  flex-direction:column !important;
  grid-template-columns:none !important;
  gap:16px !important;
  justify-content:center !important;
  margin:0 !important;
  padding:4px 8px 4px 0 !important;
  border:0 !important;
}
#front .front-lower41 .pair36.three40 h3{
  font-size:22px !important;
  line-height:1.25 !important;
  margin:0 !important;
}
#front .front-lower41 .pair36.three40 .lab{
  display:block;
  margin-bottom:3px;
}

/* Quarter-page vote: right cell, ~half width by remaining height (~1/4 page) */
html:is(#z39,#f40,#f41,#f42,#f43,html) body section#front .body .mv39:not(#q1),
html:is(#f40,html) body #front .body .mv39,
#front .front-lower41 .mv39,
#front .mv39{
  margin:0 !important;
  padding:8px 10px 8px !important;
  box-sizing:border-box !important;
  height:100% !important;
  max-width:none !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:space-between !important;
  overflow:hidden !important;
}
#front .front-lower41 .mv39 .sk{padding-right:0 !important;font-size:17px !important;}
#front .front-lower41 .mv39-h,
#front .front-lower41 .mv39-h.mv39-h,
html:is(#z39,#f40,#f42,html) body section#front .body .mv39 h2.mv39-h:not(#q1){
  font-size:24px !important;
  line-height:1.12 !important;
  margin:2px 0 8px !important;
}
/* 3×3 portraits so nine names stay legible in a half-width box */
#front .front-lower41 .mv39-row,
#front .mv39-row{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:6px 8px !important;
  flex:1 1 auto !important;
  align-items:end !important;
}
#front .front-lower41 .mv39-row .g,
#front .front-lower41 .mv39-row .g.r,
#front .mv39-row .g,
#front .mv39-row .g.r{display:contents !important;}
#front .front-lower41 .mv39-row .lg,
#front .mv39-row .lg{display:none !important;}
#front .front-lower41 .mv39-row .t,
#front .mv39-row .t{
  flex:none !important;
  width:auto !important;
  min-width:0 !important;
}
#front .front-lower41 .mv39-row .t img,
#front .mv39-row .t img{
  width:100% !important;
  height:auto !important;
  max-height:none !important;
  aspect-ratio:4/5 !important;
  object-fit:cover !important;
}
#front .front-lower41 .mv39-row figcaption,
#front .front-lower41 .mv39-row figcaption b,
#front .front-lower41 .mv39-row figcaption span{
  font-size:17px !important;
  line-height:1.1 !important;
}
#front .front-lower41 .mv39 p.mv39-d,
html:is(#f40,html) body #front .body .mv39 p.mv39-d{
  font-size:17px !important;
  line-height:1.25 !important;
  margin:6px 0 2px !important;
}
#front .front-lower41 .mv39 p.cr39,
html:is(#f40,html) body #front .body .mv39 p.cr39{
  font-size:17px !important;
  line-height:1.2 !important;
  margin:2px 0 0 !important;
}
#front .front-lower41 .mv39 p.mv39-d a.vote-now,
html:is(html) #front .mv39 p.mv39-d a.vote-now{
  display:inline-block !important;
  margin:6px 0 0 0 !important;
  padding:6px 14px !important;
  font-size:18px !important;
}

/* Phone / narrow: stack teasers then the vote, don't force a tiny quadrant */
@media screen and (max-width:700px){
  #front .front-lower41{display:flex !important;flex-direction:column !important;}
  #front .front-lower41 .mv39-h{font-size:28px !important;}
}
html.phonepdf #front .front-lower41{display:flex !important;flex-direction:column !important;gap:12px !important;}
html.phonepdf #front a.wx41plain{margin:8px 0 4px !important;}
html.phonepdf #front .front-lower41 .mv39{height:auto !important;}
html.phonepdf #front .front-lower41 .mv39-h{font-size:26px !important;}

/* Issue 41: Eby’s Egg Basket quarter-page ad */
#community .eby41, .eby41{
  margin-top:10px;
  max-height:3.05in;
  box-sizing:border-box;
  border:3px solid #092765;
  border-radius:9px;
  background:#FBF6EA;
  padding:4px;
  overflow:hidden;
  break-inside:avoid;
}
.eby41-inner{
  box-sizing:border-box;
  height:100%;
  border:1.5px solid #E8A317;
  border-radius:6px;
  padding:6px 12px 8px;
}
.eby41-kicker{
  display:flex;justify-content:space-between;align-items:center;
  font:800 11px/1.2 "DejaVu Sans",Arial,sans-serif;
  letter-spacing:1.2px;color:#092765;
  border-bottom:1px solid #E8A317;padding-bottom:3px;margin-bottom:6px;
  text-transform:uppercase;
}
.eby41-kicker span:last-child{color:#8a6a1f}
.eby41-grid{display:grid;grid-template-columns:34% minmax(0,1fr);gap:12px;align-items:center}
.eby41-grid img{width:100%;height:auto;max-height:2.15in;object-fit:contain;display:block;margin:0 auto}
.eby41-tag{font:800 11px/1 "DejaVu Sans",Arial,sans-serif;letter-spacing:1.6px;color:#3F913F;margin-bottom:4px}
.eby41-name{font:900 28px/1.05 "DejaVu Serif",Georgia,serif;color:#092765}
.eby41-sub{font:italic 700 16px/1.15 "DejaVu Serif",Georgia,serif;color:#8a6a1f;margin:1px 0 4px}
.eby41-rule{width:45%;border-top:2px solid #E8A317;margin:3px 0 5px}
.eby41-txt{font-size:17px;line-height:1.3;color:#2a2f3a}
a.eby41-btn{display:inline-block;margin-top:6px;background:#092765;color:#FBF8F0!important;text-decoration:none;font:800 15px/1 "Roboto Condensed",Arial,sans-serif;padding:6px 12px;border-radius:3px}
@media print{
  #community .eby41{max-height:3.05in}
}

/* Issue 41 front: force bottom-right quarter vote + stacked teasers (print) */
@media print{
html:is(html) body section#front .front-lower41{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:14px 18px !important;
  flex:1 1 auto !important;
  align-items:stretch !important;
  min-height:0 !important;
  margin-top:2px !important;
}
html:is(html) body section#front .front-lower41 .pair36.three40,
html:is(html) body section#front .front-lower41 .pair36,
html:is(html) body section#front .body .front-lower41 .pair36.three40{
  display:flex !important;
  flex-direction:column !important;
  grid-template-columns:none !important;
  gap:14px !important;
  justify-content:center !important;
  margin:0 !important;
  padding:6px 10px 6px 0 !important;
  width:auto !important;
  border:0 !important;
  border-top:0 !important;
}
html:is(html) body section#front .front-lower41 .pair36.three40 > div,
html:is(html) body section#front .front-lower41 .pair36 > div{
  width:100% !important;
  max-width:100% !important;
  flex:0 0 auto !important;
}
html:is(html) body section#front .front-lower41 .pair36 h3{
  font-size:20px !important;
  line-height:1.28 !important;
}
html:is(html) body section#front .front-lower41 .mv39,
html:is(#z39,#f40,#f42,html) body section#front .body .front-lower41 .mv39:not(#q1){
  overflow:hidden !important;
  height:100% !important;
  max-height:100% !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
  padding:8px 10px 6px !important;
  margin:0 !important;
  box-sizing:border-box !important;
}
html:is(html) body section#front .front-lower41 .mv39,
html:is(html) body section#front .front-lower41 .mv39 p,
html:is(html) body section#front .front-lower41 .mv39 figcaption,
html:is(html) body section#front .front-lower41 .mv39 figcaption b,
html:is(html) body section#front .front-lower41 .mv39 figcaption span,
html:is(html) body section#front .front-lower41 .mv39 .sk{
  font-size:17px !important;
  line-height:1.2 !important;
}
html:is(html) body section#front .front-lower41 .mv39-h{
  font-size:22px !important;
  line-height:1.12 !important;
  margin:2px 0 6px !important;
}
html:is(html) body section#front .front-lower41 .mv39-row{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  grid-template-rows:repeat(3,minmax(0,1fr)) !important;
  gap:4px 8px !important;
  flex:1 1 auto !important;
  min-height:0 !important;
  align-items:stretch !important;
}
html:is(html) body section#front .front-lower41 .mv39-row .g,
html:is(html) body section#front .front-lower41 .mv39-row .g.r{display:contents !important;}
html:is(html) body section#front .front-lower41 .mv39-row .lg{display:none !important;}
html:is(html) body section#front .front-lower41 .mv39-row .t{
  display:flex !important;
  flex-direction:column !important;
  min-height:0 !important;
  width:auto !important;
}
html:is(html) body section#front .front-lower41 .mv39-row .t img{
  width:100% !important;
  height:auto !important;
  max-height:78px !important;
  aspect-ratio:4/5 !important;
  object-fit:cover !important;
  flex:1 1 auto !important;
}
html:is(html) body section#front .front-lower41 .mv39 p.mv39-d{
  font-size:17px !important;
  line-height:1.2 !important;
  margin:5px 0 0 !important;
  flex:0 0 auto !important;
}
html:is(html) body section#front .front-lower41 .mv39 p.cr39{
  font-size:17px !important;
  line-height:1.15 !important;
  margin:2px 0 0 !important;
  flex:0 0 auto !important;
}
html:is(html) body section#front .front-lower41 .mv39 a.vote-now{
  display:inline-block !important;
  margin:4px 0 0 0 !important;
  padding:5px 12px !important;
  font-size:17px !important;
}
}

/* Issue 41 front flattened 3x3 vote + stacked teasers */
@media print{
html:is(html) body section#front .tease41-stack,
html:is(html) body section#front .front-lower41 .pair36.three40.tease41-stack{
  display:flex !important;
  flex-direction:column !important;
  flex-wrap:nowrap !important;
  grid-template-columns:none !important;
  gap:16px !important;
  justify-content:center !important;
  align-items:stretch !important;
  width:100% !important;
}
html:is(html) body section#front .tease41-stack > div{width:100% !important;max-width:100% !important;display:block !important;}
html:is(html) body section#front .tease41-stack h3{font-size:20px !important;line-height:1.28 !important;}
html:is(html) body section#front .mv41grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  grid-auto-rows:minmax(0,auto) !important;
  gap:6px 8px !important;
  flex:1 1 auto !important;
  min-height:0 !important;
}
html:is(html) body section#front .mv41grid .t{
  display:flex !important;
  flex-direction:column !important;
  min-width:0 !important;
  margin:0 !important;
}
html:is(html) body section#front .mv41grid .t img{
  width:100% !important;
  height:50px !important;
  max-height:50px !important;
  object-fit:cover !important;
  aspect-ratio:auto !important;
}
html:is(html) body section#front .front-lower41 .mv39 p.mv39-d,
html:is(html) body section#front .front-lower41 .mv39 p.cr39{
  position:static !important;
  flex:0 0 auto !important;
  z-index:2 !important;
  background:transparent !important;
}
}


/* Issue 41 front fit: photos shrink so dek/captions never collide */
@media print{
html:is(html) body section#front .body .lead40{
  margin:10px 0 8px !important;
  padding:0 0 8px !important;
}
html:is(html) body section#front .body .lead40 figure.lead40-ph{
  width:2.95in !important;
  margin:0 0 4px 16px !important;
}
html:is(html) body section#front .mv41grid .t img{
  height:50px !important;
  max-height:50px !important;
}
html:is(html) body section#front .front-lower41 .mv39-row.mv41grid{
  flex:0 1 auto !important;
  max-height:3.05in !important;
}
}

/* Issue 41 last-pass overflow fixes */
@media print{
html:is(html) body section#front .front-lower41 .mv39:not(#q1){
  overflow:visible !important;
}
#thisweek table.tw41 td, #thisweek table.toc td{padding-top:3px !important;padding-bottom:3px !important;}
#thisweek table.tw41, #thisweek table.toc{margin-bottom:4px !important;}
#crime .body p{margin:0 0 7px !important;}
#community-c2 .eby41{max-height:3.0in;margin-top:8px;}
}

@media print{
#community-c2 .eby41, .eby41{
  max-height:1.18in !important;
  margin-top:6px !important;
  padding:3px !important;
}
#community-c2 .eby41-inner{padding:4px 8px !important;}
#community-c2 .eby41-kicker{font-size:11px !important;padding-bottom:2px !important;margin-bottom:3px !important;}
#community-c2 .eby41-grid{grid-template-columns:22% minmax(0,1fr) !important;gap:8px !important;}
#community-c2 .eby41-grid img{max-height:0.85in !important;}
#community-c2 .eby41-name{font-size:20px !important;line-height:1 !important;}
#community-c2 .eby41-sub{font-size:17px !important;margin:0 !important;}
#community-c2 .eby41-tag{font-size:11px !important;margin-bottom:1px !important;}
#community-c2 .eby41-txt{font-size:17px !important;line-height:1.15 !important;margin:0 !important;}
#community-c2 .eby41-rule{margin:1px 0 2px !important;}
#community-c2 a.eby41-btn{margin-top:2px !important;padding:3px 8px !important;font-size:15px !important;}
}

@media print{
#community-c2 .body p{margin:0 0 5px !important;}
#community-c2 .body .hed, #community-c2 .body h3.hed{margin:6px 0 4px !important;}
#community-c2 .eby41{max-height:0.95in !important;}
#community-c2 .eby41-grid img{max-height:0.72in !important;}
#crime .body p{margin:0 0 8px !important;}
}

@media print{
#crime-c2 .body p{margin:0 0 5px !important;}
#crime-c2 .body .hed, #crime-c2 h3.hed{margin:5px 0 3px !important;}
#goodnews-c2 .body p{margin:0 0 5px !important;}
#goodnews-c2 .eby41{max-height:0.95in !important;margin-top:8px !important;}
}

@media print{
#crime .body p{margin:0 0 7px !important;}
#crime .body p.src{margin:6px 0 8px !important;}
#thisweek table td{padding:3px 6px 3px 8px !important;}
#thisweek .body{padding-bottom:0 !important;}
}


@media print{
#crime .body p{margin:0 0 4px !important;}
#crime .body p.src{margin:4px 0 4px !important;}
}

@media print{
#crime .body{line-height:1.22 !important;}
#crime .kicker,#crime .by,#crime .byline{margin:0 0 3px !important;}
}


@media print{
#community-c2 .body p{margin:0 0 4px !important;}
#community-c2 .body h3.hed, #community-c2 h3.hed{margin:6px 0 2px !important;font-size:19px !important;line-height:1.15 !important;}
#community-c2 .body .byline{margin:0 0 2px !important;}
#thisweek table td{padding:2px 6px 2px 8px !important;}
#sports-c2 .body p{margin:0 0 4px !important;}
#arts .body p{margin:0 0 5px !important;}
#detours2 .body p{margin:0 0 5px !important;}
html body section#front .front-lower41 .tease41-stack{gap:10px !important;}
}

@media print{
#ads-b .ad40f img{max-height:2.25in !important;}
#ads-b .eby41{flex:0 0 auto !important;max-height:1.7in !important;margin-top:4px !important;overflow:hidden !important;}
#ads-b .eby41-kicker, #ads-b .eby41-tag{font-size:17px !important;line-height:1.15 !important;letter-spacing:.08em !important;}
#ads-b .eby41-name{font-size:22px !important;line-height:1.1 !important;}
#ads-b .eby41-sub, #ads-b .eby41-txt, #ads-b a.eby41-btn{font-size:17px !important;line-height:1.2 !important;}
#ads-b a.eby41-btn{padding:4px 10px !important;}
#ads-b .eby41-grid img{max-height:1.3in !important;}
#ads-b .eby41-inner{padding:4px 10px 6px !important;}
#feature .body p{margin:0 0 6px !important;}
#feature .body ul{margin:2px 0 6px 1.1em !important;padding:0 !important;}
#feature .body li{margin:0 0 2px !important;font-size:19px !important;line-height:1.25 !important;}
#feature .body .src{margin-top:4px !important;}
}


/* i41 complete rebuild: ads, clay, keep-with */
@media print{
  /* p15: make room for Brant Avenue under the 403/Governor’s story */
  #detours .body p{margin:0 0 4px !important;}
  #detours .body figure{margin:0 0 3px !important;}
  #detours .body figure img, #detours .body img{max-height:0.95in !important;width:auto !important;object-fit:contain !important;}
  #detours h2.hed.lead{font-size:26px !important;line-height:1.12 !important;margin:0 0 2px !important;}
  #detours .kicker, #detours .byline{margin:0 0 2px !important;}
  #detours h3.hed{font-size:19px !important;line-height:1.2 !important;margin:4px 0 2px !important;}

  /* p13 / feature: keep the whole story on one page, 17px min, no clipping */
  #feature .kicker{font-size:17px !important;margin:0 0 2px !important;}
  #feature h2.hed.lead{font-size:24px !important;line-height:1.12 !important;margin:0 0 2px !important;}
  #feature .byline{font-size:17px !important;margin:0 0 4px !important;}
  #feature .body p, #feature .body li{font-size:17px !important;line-height:1.2 !important;margin:0 0 4px !important;}
  #feature .body ul{margin:2px 0 4px 1.1em !important;padding:0 !important;column-count:2 !important;column-gap:16px !important;}
  #feature .body li{margin:0 0 1px !important;break-inside:avoid !important;}
  #feature .body .src{margin:2px 0 0 !important;}

  /* p25: Harris on top; Dog Parlour + Eby's side by side, full wording, nothing cropped */
  #ads-b .ad40f img{max-height:1.7in !important;width:auto !important;max-width:100% !important;object-fit:contain !important;}
  #ads-b .ads-b-lower{display:grid !important;grid-template-columns:1fr 1fr !important;gap:8px !important;align-items:stretch !important;margin-top:6px !important;}
  #ads-b .ads-b-lower .ad40f img, #ads-b .ad40-half .ad40f img{
    max-height:3.9in !important;width:auto !important;max-width:100% !important;
    height:auto !important;object-fit:contain !important;object-position:center top !important;
  }
  #ads-b .eby41{flex:none !important;max-height:none !important;overflow:visible !important;margin-top:0 !important;height:auto !important;}
  #ads-b .eby41-inner{padding:8px 10px 10px !important;height:100% !important;box-sizing:border-box !important;}
  #ads-b .eby41-kicker, #ads-b .eby41-tag{font-size:17px !important;line-height:1.15 !important;}
  #ads-b .eby41-name{font-size:22px !important;line-height:1.1 !important;}
  #ads-b .eby41-sub, #ads-b .eby41-txt, #ads-b a.eby41-btn{font-size:17px !important;line-height:1.2 !important;display:block !important;}
  #ads-b a.eby41-btn{padding:4px 10px !important;margin-top:6px !important;}
  #ads-b .eby41-grid img{max-height:1.35in !important;width:auto !important;}

  /* Clay print teaser: keep existing side-by-side flex; do NOT force columns (that clipped the type). */
  #burford .clay40txt{column-count:unset !important;column-rule:none !important;}
  #burford .clay40pic, #burford .clay40pic img{break-inside:avoid !important;}
  #burford .clay40pic img{max-height:5.6in !important;}
  #burford h3.clay-h, #burford h3.hed{font-size:19px !important;line-height:1.2 !important;margin:6px 0 2px !important;}
  #burford .clay40txt p{margin:0 0 5px !important;}

  /* General ad rule: never crop; cap at half a letter page. #ads-b keeps the tighter rules above. */
  .ad40{break-inside:avoid !important;page-break-inside:avoid !important;}
  .ad40f{display:flex !important;justify-content:center !important;align-items:flex-start !important;}
  .ad40f img, .ad40-half .ad40f img, img[alt*="Peter Ligori"], img[alt*="Paris Dog Parlour"], img[alt*="Sloot Plowing"]{
    max-width:100% !important;width:auto !important;height:auto !important;
    max-height:4.6in !important;
    object-fit:contain !important;object-position:center top !important;
  }
  #ads-b .ad40f img{max-height:1.7in !important;}
  #ads-b .ads-b-lower .ad40f img, #ads-b .ad40-half .ad40f img{max-height:3.9in !important;}
}

/* i41 go-fixes: vote photos, ads-a, harris, wards, gaps */
@media print{
  /* p1 vote photos: consistent 4:5 face crops, aligned, not 38px bars */
  #front .mv39-row.mv41grid,
  #front .mv41grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    grid-template-rows:auto auto auto !important;
    column-gap:8px !important;
    row-gap:8px !important;
    align-items:end !important;
    justify-items:center !important;
  }
  #front .mv39-row .t,
  #front .mv41grid .t{
    width:100% !important;
    max-width:72px !important;
    margin:0 auto !important;
    text-align:center !important;
  }
  #front .mv39-row .t img,
  #front .mv41grid .t img,
  #front .mv39 img[src*="assets/cand/"]{
    width:56px !important;
    height:70px !important;
    max-width:56px !important;
    max-height:70px !important;
    object-fit:cover !important;
    object-position:center 18% !important;
    aspect-ratio:4/5 !important;
    display:block !important;
    margin:0 auto 2px !important;
    background:#ddd !important;
  }
  #front .mv39-row figcaption{font-size:17px !important;line-height:1.15 !important;text-align:center !important;}

  /* p20: unstack Mesh / Peter / Sloot — no overlap, each ad at most half a page */
  #ads-a .body{display:flex !important;flex-direction:column !important;gap:8px !important;overflow:visible !important;}
  #ads-a .ad40{position:static !important;overflow:visible !important;margin:0 0 8px !important;float:none !important;}
  #ads-a .ad40f{position:static !important;overflow:visible !important;display:block !important;}
  #ads-a .ad40f > img{
    max-height:2.35in !important;width:100% !important;height:auto !important;
    object-fit:contain !important;object-position:center top !important;
    position:static !important;display:block !important;margin:0 auto !important;
  }
  #ads-a .ad40pair{
    display:grid !important;grid-template-columns:1fr 1fr !important;
    gap:10px !important;align-items:start !important;
    position:static !important;width:100% !important;
  }
  #ads-a .ad40pair img,
  #ads-a .ad40pair a,
  #ads-a .ad40pair a img{
    max-height:4.5in !important;width:100% !important;height:auto !important;
    max-width:100% !important;object-fit:contain !important;
    object-position:center top !important;position:static !important;
    display:block !important;
  }

  /* p25: enlarge Harris Jewellery up to half a page; keep Dog + Eby's below */
  #ads-b .ad40:not(.ad40-half) .ad40f img,
  #ads-b .ad40f img[alt*="Harris"]{
    max-height:3.6in !important;width:100% !important;max-width:100% !important;
    height:auto !important;object-fit:contain !important;display:block !important;margin:0 auto !important;
  }
  #ads-b .ads-b-lower{margin-top:8px !important;}
  #ads-b .ads-b-lower .ad40f img, #ads-b .ad40-half .ad40f img{
    max-height:3.4in !important;
  }

  /* Ward boxes: typography only here. Grid split is restored in the 6:51 block below. */
  .wh39{display:flex !important;flex-wrap:wrap !important;align-items:baseline !important;gap:0 8px !important;margin:0 0 2px !important;}
  .wn39{font-weight:700 !important;}
  .wmp39{margin-left:2px !important;}
  .wmp39 a{font-weight:600 !important;}
}


/* ===== Issue 41 6:51 preview fixes (do not deploy from this file alone) ===== */

/* p2 contents: 17px floor, reserved page-number column, no clip */
html body section#contents table.toc{
  table-layout:fixed !important;
  width:100% !important;
  border-collapse:collapse !important;
}
html body section#contents table.toc col.num, html body section#contents table.toc td.num{
  width:0.38in !important;
}
html body section#contents table.toc td.pg{
  width:0.62in !important;
  text-align:right !important;
  white-space:nowrap !important;
  font-weight:700 !important;
  padding-left:8px !important;
}
html body section#contents table.toc td,
html body section#contents table.toc td.sec,
html body section#contents table.toc td.sec a,
html body section#contents table.toc td.blurb,
html body section#contents table.toc td.num,
html body section#contents table.toc td.pg{
  font-size:17px !important;
  line-height:1.22 !important;
  padding:3px 6px !important;
  vertical-align:middle !important;
  overflow:visible !important;
  white-space:normal !important;
}
html body section#contents table.toc td.num,
html body section#contents table.toc td.sec,
html body section#contents table.toc td.sec a{
  font-weight:800 !important;
}
html body section#contents .deck{display:none !important;} /* saves room so 17px rows plus footer page numbers fit */
html body section#contents h2.hed{font-size:22px !important;line-height:1.15 !important;margin:0 0 6px !important;}
html body section#contents .kicker{margin-bottom:4px !important;}
html body section#contents .body{overflow:visible !important;}

/* Ward by Ward: split down the middle, two columns, all 12 boxes, no footer clip */
html body section#wards .wg39,
html body section#wards2 .wg39,
html body section.page .wg39,
html body .wg39{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:6px 10px !important;
  align-items:stretch !important;
  width:100% !important;
}
html body section#wards .wbx39,
html body section#wards2 .wbx39,
html body section.page .wbx39,
html body .wg39 .wbx39{
  display:block !important;
  position:static !important;
  break-inside:avoid !important;
  page-break-inside:avoid !important;
  width:auto !important;
  max-width:100% !important;
  margin:0 !important;
  padding:6px 8px !important;
  box-sizing:border-box !important;
  border:1px solid #c9b896 !important;
  overflow:visible !important;
}
html body .wbx39 p,
html body .wbx39 li,
html body .wbx39 .wcm39,
html body .wbx39 .wco39,
html body .wbx39 .wi39,
html body .wbx39 a{
  font-size:17px !important;
  line-height:1.25 !important;
}
html body .wbx39 .wcm39,
html body .wbx39 .wco39{margin:1px 0 2px !important;}
html body .wbx39 ol.wi39{margin:2px 0 0 !important;padding-left:1.15em !important;}
html body .wsh39{margin:0 !important;padding:4px 6px !important;break-after:avoid !important;}

/* p25 Eby's: no overlapping kicker, readable logo + address, half-page max with Dog */
html body section#ads-b .eby41,
html body .ads-b-lower .eby41{
  max-height:none !important;
  overflow:visible !important;
  height:auto !important;
  margin:0 !important;
  border:2px solid #092765 !important;
  background:#fff !important;
  box-sizing:border-box !important;
}
html body section#ads-b .eby41-kicker,
html body .ads-b-lower .eby41-kicker{
  display:flex !important;
  justify-content:space-between !important;
  align-items:baseline !important;
  flex-wrap:nowrap !important;
  gap:8px !important;
  font-size:17px !important;
  line-height:1.2 !important;
  letter-spacing:0.06em !important;
  text-transform:uppercase !important;
  border-bottom:1px solid #C9A44C !important;
  margin:0 0 8px !important;
  padding:0 0 4px !important;
  white-space:nowrap !important;
}
html body section#ads-b .eby41-kicker span:last-child{display:none !important;} /* name lives in the body, stops the overlap */
html body section#ads-b .eby41-grid,
html body .ads-b-lower .eby41-grid{
  display:grid !important;
  grid-template-columns:36% minmax(0,1fr) !important;
  gap:10px !important;
  align-items:center !important;
}
html body section#ads-b .eby41-grid img,
html body .ads-b-lower .eby41-grid img{
  width:100% !important;
  height:auto !important;
  max-height:2.15in !important;
  object-fit:contain !important;
}
html body section#ads-b .eby41-name{font-size:22px !important;line-height:1.1 !important;margin:0 !important;}
html body section#ads-b .eby41-sub,
html body section#ads-b .eby41-txt,
html body section#ads-b .eby41-tag{font-size:17px !important;line-height:1.25 !important;}
html body section#ads-b .ads-b-lower{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
  align-items:stretch !important;
}
html body section#ads-b .ads-b-lower .ad40f img{
  max-height:3.3in !important;
  width:auto !important;
  max-width:100% !important;
  object-fit:contain !important;
  display:block !important;
  margin:0 auto !important;
}

/* Online community: same paired ad layout, never a cropped sliver */
html body .keep41-ads{
  break-inside:avoid !important;
  page-break-inside:avoid !important;
}
html body .keep41-ads .ads-b-lower{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
  align-items:stretch !important;
  margin-top:8px !important;
}
html body .keep41-ads .eby41{
  max-height:none !important;
  overflow:visible !important;
  border:2px solid #092765 !important;
  box-sizing:border-box !important;
}
html body .keep41-ads .eby41-kicker span:last-child{display:none !important;}
html body .keep41-ads .eby41-grid{
  display:grid !important;
  grid-template-columns:36% minmax(0,1fr) !important;
  gap:8px !important;
  align-items:center !important;
}
html body .keep41-ads .eby41-grid img{max-height:2.0in !important;width:100% !important;object-fit:contain !important;}
html body .keep41-ads .ad40f img{max-height:3.3in !important;width:auto !important;max-width:100% !important;object-fit:contain !important;display:block !important;margin:0 auto !important;}

/* p26 Your Say: bigger comment type, close the empty lower half */
html body section#residents .body ul,
html body section#residents .body li,
html body section#residents .body p,
html body section#residents .body p.src{
  font-size:20px !important;
  line-height:1.45 !important;
}
html body section#residents .body ul{margin:8px 0 !important;}
html body section#residents .body li{margin:0 0 10px !important;}

/* Business online: keep Peter and Sloot side by side so a lone ad does not get its own page */
html body .ad40pair,
html body .keep41-ads.ad40pair{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;
  align-items:start !important;
  break-inside:avoid !important;
  page-break-inside:avoid !important;
}
html body .ad40pair .ad40f img{max-height:4.4in !important;width:auto !important;max-width:100% !important;object-fit:contain !important;display:block !important;margin:0 auto !important;}

/* Clay / burford: slightly tighter leading so leftover pages can merge; keep 17px floor */
html body #burford .body p,
html body section.page[data-hub="burford"] .body p,
html body .clay40 p,
html body .clay40txt p{
  font-size:17px !important;
  line-height:1.38 !important;
  margin:0 0 8px !important;
}


/* 6:51 pass 2: keep split columns, stop footer run-offs, help leftover merges */
html body .wg39 > .wsh39.wcty39{grid-column:1 !important;grid-row:1 !important;}
html body .wg39 > .wsh39.wcit39{grid-column:2 !important;grid-row:1 !important;}
html body .wg39 > .wbx39.wcty39{grid-column:1 !important;}
html body .wg39 > .wbx39.wcit39{grid-column:2 !important;}
html body .wg39{grid-auto-flow:row dense !important;}

/* p13 feature: keep the rewritten story on one print page, no footer clip */
html body section#feature .kicker{display:none !important;} /* section band already names the section */
html body section#feature .body p,
html body section#feature .body li{
  font-size:17px !important;
  line-height:1.18 !important;
  margin:0 0 2px !important;
}
html body section#feature .body ul{margin:1px 0 4px !important;}
html body section#feature h2.hed{font-size:20px !important;line-height:1.12 !important;margin:0 0 2px !important;}
html body section#feature .byline{margin:0 0 3px !important;}
html body section#feature .body{padding-bottom:0 !important;}

/* p26 Your Say: still larger than the old 17px, but sources and CTA must clear the footer */
html body section#residents .body ul,
html body section#residents .body li,
html body section#residents .body p,
html body section#residents .body p.src{
  font-size:18px !important;
  line-height:1.36 !important;
}
html body section#residents .body li{margin:0 0 6px !important;}
html body section#residents .body ul{margin:6px 0 !important;}

/* compact wrapper used when merging a leftover online page */
html body .compact-pack p,
html body .compact-pack li{margin:0 0 6px !important;line-height:1.32 !important;}
html body .compact-pack img{max-height:3.2in !important;}

/* feature mast compact so the close and sources clear the footer */
html body section#feature header.mast{padding-top:6px !important;padding-bottom:2px !important;}
html body section#feature .goldline{margin:0 !important;}
html body section#feature .secband{padding:2px 10px !important;margin:0 !important;}
html body section#feature .body{padding-top:2px !important;}

/* Box titles are "Ward 4" — the column header already names the municipality */
html body .wbx39 .wtg39{display:none !important;}

/* county online: match print p6/p7 density so the third row clears the footer */
html body section.page .wg39, html body section#wards .wg39, html body section#wards2 .wg39{gap:4px 8px !important;}
html body section.page .wbx39{padding:4px 6px !important;}
html body section.page .wbx39 p,
html body section.page .wbx39 li,
html body section.page .wbx39 .wcm39,
html body section.page .wbx39 .wco39{
  font-size:17px !important;
  line-height:1.18 !important;
  margin:0 0 1px !important;
}
html body section.page .wsh39{padding:2px 6px !important;margin:0 !important;}
html body section.page .kicker{display:none !important;}


/* p13: drop the two-line secband (mast already names the section) so sources clear the footer */
html body section#feature .secband{display:none !important;}

/* Online Ward by Ward: print-style column bars + compact mast so the third row clears the footer */
html body section.page[data-hub="county"] header.mast{padding:4px 8px 2px !important;}
html body section.page[data-hub="county"] header.mast img.badge,
html body section.page[data-hub="county"] header.mast img.coin-left,
html body section.page[data-hub="county"] header.mast img.coin-right{width:52px !important;height:52px !important;}
html body section.page[data-hub="county"] .secband{padding:1px 8px !important;margin:0 !important;}
html body section.page[data-hub="county"] .goldline{margin:0 !important;}
html body section.page .wsh39{
  font:800 17px/1.15 "DejaVu Sans",Arial,sans-serif !important;
  letter-spacing:.06em !important;
  text-transform:uppercase !important;
  color:#FBF8F0 !important;
  background:#0A1628 !important;
  margin:0 !important;
  padding:3px 8px !important;
  text-align:center !important;
}
html body section.page .wsh39.wcit39{background:#7a1f2b !important;}
html body section.page .wbx39 .wcm39{font-style:italic !important;}
html body section.page .wbx39 .wh39{margin:0 0 1px !important;font-size:17px !important;line-height:1.15 !important;}
html body section.page .wbx39{padding:3px 6px !important;}


/* Last push so online ward third rows clear the footer */
html body section.page[data-hub="county"] .secband{display:none !important;}
html body section.page .wg39{gap:3px 6px !important;}
html body section.page .wbx39{padding:2px 5px !important;}
html body section.page .wg39{grid-template-columns:1fr 1fr !important;}
html body section.page .wg39{grid-template-columns:1fr 1fr !important;min-width:0 !important;}
html body section.page .wbx39, html body section.page .wsh39{min-width:0 !important;}
html body section.page .wbx39 .wco39{white-space:normal !important;margin:0 0 1px !important;overflow:visible !important;}
/* Gain the last lines on online ward pages: compact mast, full names wrap */
html body section.page[data-hub="county"] header.mast{padding:2px 8px 0 !important;}
html body section.page[data-hub="county"] header.mast .sec{display:none !important;}
html body section.page[data-hub="county"] header.mast img.badge,
html body section.page[data-hub="county"] header.mast img.coin-left,
html body section.page[data-hub="county"] header.mast img.coin-right{width:44px !important;height:44px !important;}
html body section.page[data-hub="county"] .goldline{height:2px !important;margin:0 !important;}
html body section.page[data-hub="county"] .body{padding-top:4px !important;padding-bottom:0 !important;}

html body section.page .wbx39 .wcm39{margin:0 0 1px !important;}


/* Phone PDF: Paul 7:15 check — vote link wrap, and no mid-word "Cou/nty" in the lead */
html.phonepdf #front .body .lead40 h2.lead40-h,
html.phonepdf:is(#l40,#f40,#f41,html) #front .body .lead40 h2.lead40-h,
html.phonepdf:is(#l40,html) #front .body .lead40 h2.lead40-h{
  font-size:28px !important;
  line-height:1.14 !important;
  hyphens:none !important;
  -webkit-hyphens:none !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
}
html.phonepdf #front .body .lead40 h2.lead40-h,
html.phonepdf #front .body .lead40 h2.lead40-h a,
html.phonepdf #front .body .lead40 h2.lead40-h .nb38{
  hyphens:none !important;
  -webkit-hyphens:none !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
}
html.phonepdf a.vote-now,
html.phonepdf #byelection-c2 a.vote-now,
html.phonepdf .con39.bye39cta .vote-now{
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  max-width:100% !important;
  display:inline-block !important;
  box-sizing:border-box !important;
}
html.phonepdf .con39.bye39cta{flex-wrap:wrap !important;}


/* Typeset online pages: story-block is a hub-page card; strip its padding so
   measure and print packing match, and leftovers can merge. */
html body section.page .story-block,
html body section.page article.story-block{
  padding:0 !important;
  margin:0 0 8px !important;
  box-shadow:none !important;
  background:transparent !important;
  overflow:visible !important;
}

/* Let the local council close fit with its lead so the leftover page is not a sliver. */
html body section.page[data-hub="local"] .body p,
html body section.page[data-hub="local"] .body li{
  font-size:17px !important;
  line-height:1.22 !important;
  margin:0 0 4px !important;
}


/* complete41am: p1 vote-box captions and last line must stay fully visible */
html body section#front .mv41grid,
html body section#front .mv41grid figcaption,
html body section#front .front-lower41 .mv39{
  overflow:visible !important;
}
html body section#front .mv41grid figcaption,
html body section#front .mv41grid figcaption b,
html body section#front .mv41grid figcaption span{
  font-size:17px !important;
  line-height:1.1 !important;
  white-space:nowrap !important;
  overflow:visible !important;
}

/* Phone p1: smaller stacked photo so the lead body starts under the headline */
html.phonepdf #front .body .lead40 figure.lead40-ph,
html.phonepdf:is(#l40,#f40,#f41,html) #front .body .lead40 figure.lead40-ph{
  float:none !important;
  width:100% !important;
  max-width:100% !important;
  margin:4px 0 8px 0 !important;
}
html.phonepdf #front .body .lead40 figure.lead40-ph img,
html.phonepdf #front .lead40 figure.lead40-ph img{
  max-height:148px !important;
  width:auto !important;
  max-width:100% !important;
  height:auto !important;
  object-fit:contain !important;
  display:block !important;
  margin:0 auto !important;
}
html.phonepdf #front .body .lead40 h2.lead40-h{font-size:26px !important;line-height:1.14 !important;margin:0 0 6px !important;}
html.phonepdf #front .body .lead40 p.lead40-d{font-size:17px !important;line-height:1.28 !important;margin:0 0 8px !important;}
html.phonepdf a.vote-now,
html.phonepdf #byelection-c2 a.vote-now,
html.phonepdf p.door36 a.vote-now{
  white-space:nowrap !important;
  overflow:visible !important;
  overflow-wrap:normal !important;
  display:inline-block !important;
  max-width:100% !important;
}

/* Typeset leftover pack: feature / business / community / burford */
html body section.page[data-hub="feature"] .body p,
html body section.page[data-hub="feature"] .body li{
  font-size:17px !important;
  line-height:1.22 !important;
  margin:0 0 3px !important;
}
html body section.page[data-hub="feature"] .body ul{margin:2px 0 4px !important;}
html body section.page[data-hub="feature"] h2.hed{font-size:22px !important;line-height:1.14 !important;margin:0 0 3px !important;}

html body section.page[data-hub="business"] .body p,
html body section.page[data-hub="business"] .body li,
html body section.page[data-hub="business"] .body td,
html body section.page[data-hub="business"] .body th{
  font-size:17px !important;
  line-height:1.22 !important;
}
html body section.page[data-hub="business"] .body p{margin:0 0 4px !important;}
html body section.page[data-hub="business"] table.mk40{margin:4px 0 !important;}

html body section.page[data-hub="community"] .body p,
html body section.page[data-hub="community"] .body li{
  font-size:17px !important;
  line-height:1.22 !important;
  margin:0 0 4px !important;
}
html body section.page[data-hub="community"] h3.hed{margin:6px 0 2px !important;}

html body section.page[data-hub="local"] .body p,
html body section.page[data-hub="local"] .body li{
  font-size:17px !important;
  line-height:1.20 !important;
  margin:0 0 3px !important;
}

html body section.page[data-hub="burford"] .body p,
html body #burford .body p,
html body .clay40 p,
html body .clay40txt p{
  font-size:17px !important;
  line-height:1.28 !important;
  margin:0 0 6px !important;
}
html body section.page[data-hub="burford"] .clay40pic img,
html body section.page[data-hub="burford"] .body img{
  max-height:2.9in !important;
}
html body section.page[data-hub="burford"] .clay40pic{
  max-height:none !important;
}
html body section.page[data-hub="burford"] h2,
html body section.page[data-hub="burford"] h3{
  margin:4px 0 2px !important;
}

/* complete41an: burford opener clearance, tighter clay, vote button on kicker */
html body section.page[data-hub="burford"] .clay40pic img,
html body section.page[data-hub="burford"] .body figure.clay40pic img{
  max-height:2.9in !important;
  width:auto !important;
  max-width:100% !important;
  height:auto !important;
}
html body section.page[data-hub="burford"] .body{
  padding-bottom:10px !important;
}
html body section.page[data-hub="burford"] .body p,
html body #burford .body p,
html body .clay40 p,
html body .clay40txt p{
  font-size:17px !important;
  line-height:1.22 !important;
  margin:0 0 4px !important;
}
html body section#front .front-lower41 .mv39 .sk a.vote-now,
html body section#front .mv39 .sk a.vote-now{
  margin:0 0 0 auto !important;
  padding:3px 10px !important;
  font-size:17px !important;
  white-space:nowrap !important;
  flex:0 0 auto !important;
}

/* complete41ao: burford opener must clear the caption; phone p1 lead body under headline */
html body section.page[data-hub="burford"] .clay40pic{
  display:block !important;
  float:none !important;
  margin:0 auto 8px !important;
  width:100% !important;
  max-width:100% !important;
  max-height:none !important;
  overflow:visible !important;
  position:static !important;
  flex:none !important;
}
html body section.page[data-hub="burford"] .clay40pic img{
  display:block !important;
  float:none !important;
  margin:0 auto !important;
  max-height:2.9in !important;
  max-width:100% !important;
  width:auto !important;
  height:auto !important;
  position:static !important;
}
html body section.page[data-hub="burford"] .clay40pic figcaption{
  display:block !important;
  position:static !important;
  float:none !important;
  clear:both !important;
  width:100% !important;
  max-width:100% !important;
  max-height:none !important;
  margin:4px 0 10px !important;
}

html.phonepdf #front .body .lead40 figure.lead40-ph,
html.phonepdf #front figure.lead40-ph{
  float:none !important;
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  margin:4px 0 6px 0 !important;
}
html.phonepdf #front .body .lead40 figure.lead40-ph img,
html.phonepdf #front figure.lead40-ph img,
html.phonepdf #front .lead40 figure.lead40-ph img{
  max-height:130px !important;
  height:130px !important;
  width:auto !important;
  max-width:100% !important;
  object-fit:contain !important;
  display:block !important;
  margin:0 auto !important;
}
html.phonepdf #front .body .lead40 h2.lead40-h{font-size:24px !important;line-height:1.12 !important;margin:0 0 6px !important;}
html.phonepdf #front .body .lead40 p.lead40-d{font-size:17px !important;line-height:1.25 !important;margin:0 !important;}
html body section#front .mv39-h a.vote-now{
  margin:0 !important;
  padding:3px 10px !important;
  font-size:17px !important;
  white-space:nowrap !important;
  flex:0 0 auto !important;
}


/* Issue 41 last pass: front-page VOTE NOW on the mock-vote kicker (no extra vertical space) */
html body section#front .mv39 .sk{
  position:relative !important;
  padding-right:8.4em !important;
  box-sizing:border-box !important;
}
html body section#front .mv39 .sk a.vote-now{
  position:absolute !important;
  right:0 !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  display:inline-block !important;
  background:#0A1628 !important;
  color:#FBF8F0 !important;
  font:800 17px/1.1 "Roboto Condensed",Arial,sans-serif !important;
  letter-spacing:.06em !important;
  text-decoration:none !important;
  padding:4px 10px !important;
  white-space:nowrap !important;
  margin:0 !important;
}

/* Issue 41 last pass: on laptop/desktop, scale letter pages to the viewport width.
   Phones/tablets <=860px already use width:100% cards (existing rules). */
@media screen and (min-width:861px){
  html:not(.phonepdf) section.page{
    --i41-scale: calc((100vw - 24px) / 8.5in);
    transform:scale(var(--i41-scale)) !important;
    transform-origin:top center !important;
    margin-left:auto !important;
    margin-right:auto !important;
    margin-top:12px !important;
    margin-bottom:calc((var(--i41-scale) - 1) * 11in + 16px) !important;
  }
}

@media print{
  html body section.page#local .body p{
    font-size:17px !important;
    line-height:1.22 !important;
    margin:0 0 6px !important;
  }
  html body section.page#feature .body p{
    margin:0 0 4px !important;
  }
}

/* Issue 41 phone/tablet screen: unfloat the p1 lead photo so "County" does not wrap mid-word; stack teasers and the vote box. */
@media screen and (max-width: 860px) {
  html body section#front .body .lead40 {
    display: flex !important;
    flex-direction: column !important;
  }
  html body section#front .body .lead40 .sk { order: 1; }
  html body section#front .body .lead40 h2.lead40-h {
    order: 2;
    font-size: 28px !important;
    line-height: 1.15 !important;
    max-width: 100% !important;
  }
  html body section#front .body .lead40 figure.lead40-ph {
    order: 3;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 10px 0 !important;
  }
  html body section#front .body .lead40 figure.lead40-ph img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
  }
  html body section#front .body .lead40 p.lead40-d { order: 4; }
  html body section#front .front-lower41 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* Issue 41 Brant Votes dedicated page */
#brant-votes .cols2,
section#brant-votes .cols2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px 16px !important;
  align-items: start !important;
}
#brant-votes .body p,
#brant-votes .body td,
#brant-votes .body th,
#brant-votes .body li {
  font-size: 17px !important;
  line-height: 1.28 !important;
}
#brant-votes .body p { margin: 0 0 6px !important; }
#brant-votes .bv-logo { width: 0.82in; height: auto; display: block; margin: 0 0 8px 0; }
#brant-votes table.t th, #brant-votes table.t td { font-size: 17px !important; padding: 3px 6px !important; }
@media screen and (max-width: 860px), print {
  /* keep 2-col on print; stack only on narrow screens */
}
@media screen and (max-width: 860px) {
  #brant-votes .cols2,
  section#brant-votes .cols2 { grid-template-columns: 1fr !important; }
  #brant-votes .bv-logo { width: 120px; }
}
@media print {
  html body section#brant-votes .body p { margin: 0 0 4px !important; font-size: 17px !important; line-height: 1.22 !important; }
  html body section#brant-votes .cols2 { gap: 8px 14px !important; }
  html body section#brant-votes h2.hed.lead { font-size: 26px !important; line-height: 1.12 !important; margin: 0 0 4px !important; }
  html body section#brant-votes h3.hed { font-size: 18px !important; margin: 0 0 4px !important; padding-top: 0 !important; border-top: none !important; }
  html body section#brant-votes .bv-logo { width: 0.72in !important; margin: 0 0 4px !important; }
  html body section#brant-votes table.t th, html body section#brant-votes table.t td { padding: 2px 5px !important; }
}
