/* RadioMeteo 2027 v1.0.26.27 — scoped user-requested readability fixes.
   This stylesheet is loaded LAST. No plugin/APIs or menus affected. */

/* 1. Article headlines: the 80% scaling previously reduced them to 14–16px.
   Restore useful reading size without changing the rest of the site scale. */
main.rm2027-home .rm2027-editorial-featured__grid > .post-card .card-body h3 {
  font-size:clamp(19px,1.48vw,22px)!important;
  line-height:1.33;
  font-weight:800;
  letter-spacing:-.015em;
  overflow-wrap:break-word;
}
main.rm2027-home .rm2027-editorial-more__grid > .post-card .card-body h3 {
  font-size:clamp(18px,1.34vw,20px)!important;
  line-height:1.33;
  font-weight:800;
  letter-spacing:-.01em;
  overflow-wrap:break-word;
}
body:not(.home) .post-card .card-body h3,
.archive .post-card .card-body h3,
.blog .post-card .card-body h3 {
  font-size:clamp(19px,1.42vw,22px)!important;
  line-height:1.33;
  font-weight:800;
  overflow-wrap:break-word;
}
.post-card .card-body h3 a {text-decoration:none;}
@media(max-width:550px) {
  main.rm2027-home .rm2027-editorial-featured__grid > .post-card .card-body h3 {font-size:20px!important;}
  main.rm2027-home .rm2027-editorial-more__grid > .post-card .card-body h3 {font-size:19px!important;}
}

/* 2. Main/sidebar grid. On a wide display give the DX and HF widgets enough
   room for call sign, UTC, band and frequency. At intermediate widths stack
   the widgets rather than squeezing them beside article content. */
@media(min-width:1260px) {
  body:not(.home) .content-layout:has(> .sidebar) {
    grid-template-columns:minmax(0,1fr) 380px!important;
    column-gap:26px!important;
    align-items:start;
  }
}
@media(min-width:1110px) and (max-width:1259px) {
  body:not(.home) .content-layout:has(> .sidebar) {
    grid-template-columns:minmax(0,1fr) 340px!important;
    column-gap:22px!important;
    align-items:start;
  }
}
/* At 1110–1170px, the older theme set TWO widget columns inside
   a 340px sidebar, leaving each widget only 162px. This is the exact
   compression regression visible in the reported screenshot. */
@media(min-width:1110px) {
  body:not(.home) .content-layout > .sidebar {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-items:start;
  }
}
@media(max-width:1109px) {
  body:not(.home) .content-layout:has(> .sidebar) {grid-template-columns:minmax(0,1fr)!important;gap:20px;}
  body:not(.home) .content-layout > .sidebar {
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-content:start;gap:16px;
  }
}
@media(max-width:720px) {
  body:not(.home) .content-layout > .sidebar {grid-template-columns:minmax(0,1fr)!important;}
}
body:not(.home) .content-layout > .sidebar,
body:not(.home) .content-layout > .sidebar > .widget {
  min-width:0;width:100%;max-width:100%;box-sizing:border-box;
}
body:not(.home) .sidebar .rmc-dx-main{flex-wrap:wrap;gap:5px 8px;}
body:not(.home) .sidebar .rmc-dx-call-wrap{min-width:0;max-width:100%;}
body:not(.home) .sidebar .rmc-dx-freq{white-space:nowrap;}
body:not(.home) .sidebar .rmc-dx-meta{flex-wrap:wrap;gap:4px 6px;}
body:not(.home) .sidebar .rmc-prop-widget-row{grid-template-columns:40px minmax(0,1fr) minmax(100px,max-content);gap:8px;}
body:not(.home) .sidebar .rmc-prop-widget-card{min-width:0;width:100%;}
body:not(.home) .sidebar .rmc-prop-widget-metrics{grid-template-columns:repeat(2,minmax(0,1fr));}

/* 3. Homepage real WP widgets: each card same row height and generous width. */
main.rm2027-home .rm2027-home-widgets > .sidebar {
  display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,345px),1fr))!important;
  align-items:stretch!important;gap:18px!important;width:100%!important;
}
main.rm2027-home .rm2027-home-widgets > .sidebar > .widget {
  display:flex;flex-direction:column;
  min-width:0;width:100%;max-width:100%;box-sizing:border-box;
  margin:0;align-self:stretch;
}
main.rm2027-home .rm2027-home-widgets .rmc-widget-box {min-width:0;max-width:100%;}
main.rm2027-home .rm2027-home-widgets .rmc-dx-main {flex-wrap:wrap;gap:5px 8px;}
main.rm2027-home .rm2027-home-widgets .rmc-dx-meta {flex-wrap:wrap;}
main.rm2027-home .rm2027-home-widgets .rmc-prop-widget-row {grid-template-columns:40px minmax(0,1fr) minmax(100px,max-content);gap:8px;}
main.rm2027-home .rm2027-home-widgets .rmc-prop-widget-metrics {grid-template-columns:repeat(2,minmax(0,1fr));}
@media (max-width:760px) {
  main.rm2027-home .rm2027-home-widgets > .sidebar {grid-template-columns:minmax(0,1fr)!important;}
}
