/* Mortgage Edit: content-specific styles only. Site-wide fonts, nav, footer and buttons remain in style.css. */
.market-edit{--market-ink:#262B32;--market-moss:#526A55;--market-burgundy:#4B1930;--market-paper:#F8F8F5;--market-line:#D6D8D1; color:var(--market-ink)}
.market-edit .market-header-spacer{height:94px;background:#F8F8F5}
.market-edit .market-data-band{background:#262B32;color:#fff;padding-top:0}
.market-edit .market-ticker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.market-edit .market-ticker-entry{padding:9px 18px 8px 20px;border-right:1px solid rgba(255,255,255,.26);min-width:0}
.market-edit .market-ticker-entry:first-child{padding-left:0}
.market-edit .market-ticker-entry:last-child{border-right:0}
.market-edit .market-ticker-meta{display:flex;flex-direction:column;gap:3px;min-width:0}
.market-edit .market-indicator-label{font-size:11px;font-weight:700;letter-spacing:.055em;color:#fff}
.market-edit .market-ticker-source{font-size:10px;color:#C6CDC8}
.market-edit .market-quote-row{display:flex;align-items:center;gap:8px;margin-top:7px;min-width:0}
.market-edit .market-quote{font-size:clamp(18px,1.8vw,26px);letter-spacing:-.035em;line-height:1.1;color:#fff;font-variant-numeric:tabular-nums}
.market-edit .market-delta{font-size:11px;font-weight:700;white-space:nowrap;color:#DDE4DC}
.market-edit .market-delta[data-direction='up']{color:#F0B2AC}
.market-edit .market-delta[data-direction='down']{color:#B8D3A0}
.market-edit .market-ticker-spark{width:70px;height:30px;margin-left:auto;flex:none;overflow:visible}
.market-edit .market-band-foot{display:flex;justify-content:space-between;gap:14px;align-items:center;font-size:10px;color:#D6DDD9;margin:6px 0 0;line-height:1.45}
.market-edit .market-band-foot a{color:#D6DDD9;text-decoration:underline;text-underline-offset:3px}
.market-edit .market-masthead-section .container{max-width:1280px}
.market-edit .market-masthead{font-family:Georgia,'Times New Roman',serif;font-size:clamp(48px,7.5vw,116px);font-weight:700;letter-spacing:-.068em;line-height:.97;color:#151819;white-space:nowrap}
.market-edit .market-edition-row{display:flex;justify-content:space-between;align-items:center;gap:14px;border-top:3px solid #262B32;border-bottom:3px double #262B32;padding:10px 4px;font-size:11px;font-weight:750;letter-spacing:.12em}
.market-edit .market-edition-row .market-tagline{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-size:17px;letter-spacing:0;font-weight:400}
.market-edit .market-content-section{color:var(--market-ink)}
.market-edit .market-content-section .row{--bs-gutter-x:1.8rem}
.market-edit .market-brief-column{border-right:1px solid var(--market-line);padding-right:23px}
.market-edit .market-right-rail{border-left:1px solid var(--market-line);padding-left:23px}
.market-edit .market-column-rule{height:3px;margin-bottom:15px}
.market-edit .market-rule-moss{background:var(--market-moss)}
.market-edit .market-rule-burgundy{background:var(--market-burgundy)}
.market-edit .market-section-label{font-size:11px;font-weight:800;letter-spacing:.14em;color:#3D5142;text-transform:uppercase}
.market-edit .market-side-heading{font-family:Georgia,'Times New Roman',serif;font-weight:700;font-size:clamp(25px,2.1vw,35px);line-height:1.04;letter-spacing:-.055em;color:#171A1B;margin-bottom:20px}
.market-edit .market-brief{display:flex;gap:12px;border-top:1px solid var(--market-line);padding:19px 0 16px}
.market-edit .market-bullet{width:7px;height:7px;background:var(--market-burgundy);margin-top:7px;flex:none}
.market-edit .market-brief h3{font-size:16px;font-weight:700;line-height:1.25;margin:0 0 5px}
.market-edit .market-brief p,.market-edit .market-advice p,.market-edit .market-spotlight p{font-size:14px;line-height:1.6;margin-bottom:10px;color:#333B3B}
.market-edit .market-social{border-top:2px solid var(--market-moss);padding-top:17px;margin-top:12px}
.market-edit .market-social-icons{display:flex;gap:14px;flex-wrap:wrap}
.market-edit .market-social-icons a{font-size:23px;color:#262B32;line-height:1.2}
.market-edit .market-social-icons a:hover{color:var(--market-moss)}
.market-edit .market-feature>.market-section-label{color:var(--market-burgundy)}
.market-edit .market-lead-headline{font-family:Georgia,'Times New Roman',serif;font-size:clamp(36px,3.1vw,56px);line-height:1.04;letter-spacing:-.056em;font-weight:700;color:#151819;margin-bottom:18px}
.market-edit .market-dek{font-size:17px;font-weight:450;color:#5B6364;line-height:1.45;margin-bottom:21px}
.market-edit .market-feature>p:not(.market-section-label):not(.market-dek){font-size:16px;line-height:1.75;color:#293233;margin-bottom:18px}
.market-edit .market-story-graphic{background:#ECEDE7;border-top:1px solid #CDD1CA;border-bottom:1px solid #CDD1CA;padding:17px 20px 13px;margin:18px 0 25px}
.market-edit .market-story-graphic svg{width:100%;max-height:230px;display:block}
.market-edit .market-story-graphic .market-chart-axis text{font-family:inherit;font-size:12px;font-weight:500;fill:#66736B;letter-spacing:.01em}
.market-edit .market-graphic-label{font-size:11px;letter-spacing:.2em;font-weight:800;color:#465D49}
.market-edit .market-graphic-foot{display:flex;justify-content:center;gap:15px;color:#58635C;font-size:10px;letter-spacing:.045em;text-align:center}
.market-edit .market-author-line{border-top:1px solid var(--market-line);border-bottom:1px solid var(--market-line);padding:15px 0;display:flex;align-items:center;gap:12px;margin:25px 0 26px}
.market-edit .market-author-monogram{background:#262B32;color:#fff;border-radius:50%;width:37px;height:37px;display:grid;place-items:center;font-size:13px;letter-spacing:.03em;font-weight:700}
.market-edit .market-author-line strong{display:block;font-size:11px;letter-spacing:.08em}
.market-edit .market-author-line small{display:block;font-size:11px;color:#5E6566}
.market-edit .market-market-signals{border-top:2px solid var(--market-ink);padding-top:15px}
/* Source sits alongside the section title; wraps beneath it on narrow screens. */
.market-edit .market-pulse-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;column-gap:14px;row-gap:4px;margin-bottom:16px}
.market-edit .market-pulse-heading .market-section-label{margin:0}
.market-edit .market-housing-source{margin:0;font-size:10px;line-height:1.45;font-weight:400;color:#68716C}
.market-edit .market-housing-source a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.market-edit .market-housing-source a:hover{color:#262B32}
.market-edit .market-housing-source a:focus-visible{outline:2px solid #262B32;outline-offset:3px}
.market-edit .market-signal{display:grid;grid-template-columns:max-content minmax(0,46px);column-gap:6px;align-items:center;justify-content:start;border-right:1px solid #E3E5DF;padding-right:7px;min-height:100px}
.market-edit .market-market-signals .col-sm-4:last-child .market-signal{border-right:0}
.market-edit .market-signal span{grid-column:1 / -1;display:block;font-family:Georgia,'Times New Roman',serif;font-size:18px;line-height:1.1;color:#1C2322}
.market-edit .market-signal strong{grid-column:1;grid-row:2;min-width:0;white-space:nowrap;display:block;font-size:24px;line-height:1.25;margin:7px 0 1px;color:#25342B;font-variant-numeric:tabular-nums}
.market-edit .market-signal small{font-size:10px;color:#58645E}
/* Housing sparklines are neutral: direction is not a good/bad judgment. */
.market-edit .market-housing-spark{grid-column:2;grid-row:2;display:block;width:46px;max-width:100%;height:22px;margin:0;justify-self:start;overflow:visible}
.market-edit .market-signal .market-housing-change{grid-column:1 / -1;display:block;white-space:normal;font-size:10px;font-weight:450;color:#65706A;line-height:1.4;margin:4px 0 3px}
.market-edit .market-signal .market-housing-change.is-unavailable{font-weight:400;color:#6B7275}
.market-edit .market-signal small[data-housing-date]{grid-column:1 / -1;display:block}

.market-edit .market-advice{padding-bottom:18px;border-bottom:1px solid var(--market-line)}
.market-edit .market-rail-links{display:grid;gap:7px;margin-top:19px}
.market-edit .market-rail-links a,.market-edit .market-spotlight a{color:var(--market-burgundy);font-weight:650;text-decoration:underline;text-underline-offset:4px;line-height:1.4;font-size:14px}
.market-edit .market-rail-links a span,.market-edit .market-spotlight a span{margin-left:3px}
.market-edit .market-spotlight{padding:22px 0;border-bottom:1px solid var(--market-line)}
.market-edit .market-spotlight-title{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-size:36px;line-height:1.1;font-weight:550;letter-spacing:-.05em;margin-bottom:12px}
.market-edit .market-aside-cta{padding-top:25px}
.market-edit .market-aside-cta h3{font-family:Georgia,'Times New Roman',serif;font-size:24px;line-height:1.18;letter-spacing:-.03em;margin:9px 0 18px}
.market-edit .market-bottom-source{border-top:1px solid #CBD0C8;padding-top:16px;display:flex;justify-content:center;gap:25px;color:#586166;font-size:11px;line-height:1.6;text-align:center}

/* Left-rail newsletter invitation; typography inherits the site except the editorial heading. */
.market-edit .market-brief-column .market-subscribe{margin:25px 0 25px;padding:20px 0 22px;background:transparent;border-top:2px solid var(--market-moss);border-bottom:1px solid var(--market-line)}
.market-edit .market-subscribe-heading{font-family:Georgia,'Times New Roman',serif;font-size:clamp(22px,1.8vw,29px);font-weight:700;line-height:1.12;letter-spacing:-.04em;color:var(--market-ink);margin:0 0 12px}
.market-edit .market-subscribe>p:not(.market-section-label){font-size:13px;line-height:1.55;color:#38433D;margin:0 0 13px}
.market-edit .market-subscribe .market-subscribe-button{display:inline-flex;align-items:center;justify-content:center;width:auto;max-width:100%;margin:3px 0 0;white-space:normal;text-align:center;text-decoration:none}
.market-edit .market-subscribe .market-subscribe-privacy{font-size:11px!important;color:#4D5852!important;margin:10px 0 0!important}
.market-edit .market-brief-column .market-social{margin-top:0}

/* Edition-status indicator: same subtle green-dot language as the calculator. */
.market-edit .market-updated-weekly {display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.market-edit .market-update-dot {display:inline-block;flex:none;width:7px;height:7px;border-radius:50%;background:#6F9C7A}

/* Housing market data source link */
.market-market-signals a {
  color: #6B7275;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.market-market-signals a:hover {
  color: #262B32;
}

.market-market-signals a:focus-visible {
  outline: 2px solid #262B32;
  outline-offset: 3px;
}


/* Responsive layout and compact auto-scrolling ticker.
   Desktop (1200px+): four static indicators.
   Medium screens (768–1199px): three at a time, advancing one.
   Phones (below 768px): two at a time, advancing by pair. */
.market-edit .market-ticker-controls { display: none; }

@media (max-width: 1199.98px) {
  .market-edit .market-ticker {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .market-edit .market-ticker::-webkit-scrollbar { display: none; }
  .market-edit .market-ticker-entry {
    flex: 0 0 calc((100% - 24px) / 3);
    width: calc((100% - 24px) / 3);
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    scroll-snap-align: start;
    padding: 9px 8px 8px 0;
    border-right: 0;
  }
  .market-edit .market-ticker-entry:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,.26);
  }
  .market-edit .market-indicator-label { font-size: 10px; line-height: 1.4; }
  .market-edit .market-ticker-source { font-size: 10px; }
  .market-edit .market-ticker-spark { width: 54px; }
  .market-edit .market-brief-column { padding-right: 15px; }
  .market-edit .market-right-rail { padding-left: 15px; }

  /* One compact footer row: credit (or error) left, navigation right. */
  .market-edit .market-band-foot {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 3px 0 0;
    min-height: 26px;
    font-size: 10px;
  }
  .market-edit .market-band-foot a {
    order: 1;
    white-space: nowrap;
  }
  .market-edit .market-band-foot .market-status { display: none; }
  .market-edit .market-band-foot.is-unavailable .market-status {
    display: block;
    order: 1;
    min-width: 0;
    font-size: 10px;
  }
  .market-edit .market-band-foot.is-unavailable a { display: none; }
  .market-edit .market-ticker-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 6px;
    order: 2;
    margin: 0 0 0 auto;
    line-height: 1;
  }
  .market-edit .market-ticker-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: #fff;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }
  .market-edit .market-ticker-arrow { font-size: 21px; font-weight: 400; }
  .market-edit .market-ticker-play { font-size: 12px; }
  .market-edit .market-ticker-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  .market-edit .market-ticker-controls button:hover { color: #C2D8AE; }
  .market-edit .market-ticker-controls button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 2px;
  }
}

@media (max-width: 991.98px) {
  .market-edit .market-header-spacer { height: 82px; }
  .market-edit .market-brief-column,
  .market-edit .market-right-rail {
    border: 0;
    padding-left: 12px;
    padding-right: 12px;
  }
  .market-edit .market-feature {
    border-bottom: 1px solid var(--market-line);
    padding-bottom: 24px;
  }
  .market-edit .market-brief-column {
    border-bottom: 1px solid var(--market-line);
    padding-bottom: 24px;
  }
  .market-edit .market-edition-row { flex-wrap: wrap; }
  .market-edit .market-edition-row .market-tagline {
    order: 3;
    width: 100%;
    text-align: center;
  }
  .market-edit .market-lead-headline { font-size: clamp(35px,6vw,56px); }
}

/* Phones use the full-width application CTA below the editorial section. */
@media (max-width: 767.98px) {
  .market-edit .market-aside-cta { display: none; }
  .market-edit .market-ticker-entry {
    flex-basis: calc((100% - 12px) / 2);
    width: calc((100% - 12px) / 2);
  }
}

@media (max-width: 575.98px) {
  .market-edit .market-masthead {
    font-size: clamp(31px,9vw,50px);
    letter-spacing: -.064em;
  }
  .market-edit .market-edition-row { font-size: 9px; letter-spacing: .08em; }
  .market-edit .market-edition-row .market-tagline { font-size: 14px; }
  .market-edit .market-quote { font-size: 22px; }
  .market-edit .market-ticker-spark { width: 45px; }
  .market-edit .market-quote-row { gap: 4px; }
  .market-edit .market-ticker-entry { padding-top: 10px; padding-bottom: 7px; }
  .market-edit .market-feature>p:not(.market-section-label):not(.market-dek) { font-size: 15px; }
  .market-edit .market-bottom-source { flex-direction: column; gap: 8px; }
  .market-edit .market-signal { min-height: 0; }
  .market-edit .market-market-signals .col-sm-4:not(:last-child) .market-signal {
    border-right: 0;
    border-bottom: 1px solid var(--market-line);
    padding-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .market-edit .market-ticker { scroll-behavior: auto; }
}

/* Mortgage Edit legal disclosures: compact inline link and accessible popup. */
.market-edit .market-disclosure-link {
  display: inline;
  margin: 0 0 0 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4B1930;
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.market-edit .market-disclosure-link:hover { color: #262B32; }
.market-edit .market-disclosure-link:focus-visible { outline: 2px solid #262B32; outline-offset: 3px; }
.market-disclosure-dialog {
  width: min(92vw, 650px);
  max-width: 650px;
  max-height: min(86vh, 850px);
  margin: auto;
  padding: 34px clamp(20px, 4vw, 38px) 30px;
  overflow-y: auto;
  border: 0;
  border-radius: 18px;
  background: #F8F8F5;
  color: #262B32;
  box-shadow: 0 24px 75px rgba(0, 0, 0, .28);
}
.market-disclosure-dialog::backdrop { background: rgba(20, 22, 25, .66); }
.market-disclosure-dialog h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.12;
  margin: 0 34px 18px 0;
  color: #171A1B;
}
.market-disclosure-dialog h3 {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 750;
  margin: 21px 0 7px;
  color: #262B32;
}
.market-disclosure-dialog p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 12px;
  color: #38433D;
}
.market-disclosure-dialog a { color: #4B1930; text-decoration: underline; text-underline-offset: 3px; }
.market-disclosure-dialog a:hover { color: #262B32; }
.market-disclosure-dialog a:focus-visible { outline: 2px solid #262B32; outline-offset: 3px; }
.market-disclosure-close {
  position: absolute;
  top: 11px;
  right: 17px;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #262B32;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.market-disclosure-close:focus-visible { outline: 2px solid #262B32; outline-offset: 2px; }
