/* Patch 005-R3: two page layouts only, loaded after the existing resource styles. */

/* Rates: breadcrumb spans the section; the two columns share top/bottom edges. */
.eccr-rates .rates-hero-wrap{padding:40px 0 72px}
.eccr-rates .rates-hero-wrap>.breadcrumb{margin:0 0 28px}
.eccr-rates .hero-layout{
  grid-template-columns:minmax(0,1fr) 820px;
  gap:40px;align-items:stretch;padding:0;
}
.eccr-rates .intro{display:flex;flex-direction:column;padding-top:0;max-width:none}
.eccr-rates .intro h1{
  font-size:clamp(2.35rem,3.4vw,3.4rem);line-height:1.16;max-width:none;
}
.eccr-rates .intro .lead{max-width:none}
.eccr-rates .hero-actions{gap:10px;margin-bottom:28px}
.eccr-rates .insight-panel{max-width:none;margin-top:auto}
.eccr-rates .widget-shell{
  align-self:stretch;justify-self:center;display:flex;flex-direction:column;
  width:100%;max-width:820px;padding:14px;
}
.eccr-rates .widget-frame{
  height:300px;overflow:hidden;border-left:5px solid var(--mnd);
  border-right:5px solid var(--mnd);
}
.eccr-rates .widget-frame .eccr-rates-desktop{
  display:block;width:780px;min-width:0;max-width:none;height:300px;
}
.eccr-rates .widget-frame .eccr-rates-mobile{display:none}
.eccr-rates .mnd-rates-widget{margin-bottom:18px}
.eccr-rates .widget-disclosure{margin-top:auto;padding-top:18px}

/* Guide: the cover introduces the download; the form sits beside its contents. */
.eccr-guide .hero-grid{
  grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);
  gap:clamp(36px,5vw,72px);align-items:center;
  padding-top:calc(var(--ecc-header-height,112px) + 52px);padding-bottom:64px;
}
.eccr-guide .hero-grid>.hg-guide-cover{max-width:370px;justify-self:center}
.eccr-guide .hg-guide-cover img{height:auto;object-fit:contain}
.eccr-guide .hg-guide-layout{
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:clamp(32px,4vw,56px);align-items:start;
}
.eccr-guide .hg-guide-content .section-intro{margin:0 0 24px}
.eccr-guide .hg-guide-content .section-intro h2{
  font-size:clamp(1.65rem,2.1vw,2rem);line-height:1.25;max-width:none;
}
.eccr-guide .hg-guide-layout>.form-panel{
  align-self:start;justify-self:stretch;width:100%;max-width:none;
  border-color:var(--eccr-line);box-shadow:0 18px 50px #0618280d;
}
.eccr-guide .hg-guide-layout>.form-panel:hover{box-shadow:0 18px 50px #0618280d}

@media(max-width:1350px){
  .eccr-rates .hero-layout{grid-template-columns:minmax(0,1fr);gap:34px}
  .eccr-rates .intro{max-width:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:36px}
  .eccr-rates .intro>.eyebrow,.eccr-rates .intro>h1,.eccr-rates .intro>.lead,.eccr-rates .intro>.hero-actions{grid-column:1}
  .eccr-rates .intro>.insight-panel{grid-column:2;grid-row:1 / 5;align-self:center;margin-top:0}
  .eccr-rates .intro h1{font-size:clamp(2.35rem,4vw,3.4rem)}
  .eccr-rates .hero-actions{margin-bottom:0}
  .eccr-rates .widget-disclosure{margin-top:0}
}
@media(max-width:1030px){
  .eccr-guide .hero-grid{grid-template-columns:minmax(0,1fr);gap:36px;padding-top:calc(var(--ecc-header-height,112px) + 40px);padding-bottom:52px}
  .eccr-guide .hero-grid>.hg-guide-cover{max-width:340px}
  .eccr-guide .hg-guide-layout{grid-template-columns:minmax(0,1fr);gap:34px}
  .eccr-guide .hg-guide-layout>.form-panel{max-width:680px;justify-self:center}
}
@media(max-width:900px){
  .eccr-rates .rates-hero-wrap{padding:32px 0 52px}
  .eccr-rates .rates-hero-wrap>.breadcrumb{margin-bottom:24px}
  .eccr-rates .intro{display:flex;max-width:none}
  .eccr-rates .hero-actions{margin-bottom:26px}
  .eccr-rates .intro>.insight-panel{margin-top:0;align-self:stretch}
  .eccr-rates .widget-shell{max-width:540px;padding:9px}
  .eccr-rates .widget-frame{height:485px;border:0}
  .eccr-rates .widget-frame .eccr-rates-desktop{display:none}
  .eccr-rates .widget-frame .eccr-rates-mobile{display:block;width:290px;max-width:100%;height:485px}
}
@media(max-width:520px){
  .eccr-rates .rates-hero-wrap{padding:26px 0 44px}
  .eccr-rates .hero-layout{gap:28px}
  .eccr-rates .intro h1{font-size:clamp(2rem,8vw,2.6rem)}
  .eccr-rates .widget-shell{padding:4px}
  .eccr-guide .hero-grid{gap:30px;padding-bottom:44px}
  .eccr-guide .hero-grid>.hg-guide-cover{max-width:290px}
  .eccr-guide .highlights{padding:44px 0 48px}
  .eccr-guide .hg-guide-content .section-intro h2{font-size:1.75rem}
}
