/* MWB v554: restrained Fire Desk and readable On This Day layouts. */

.fire-desk-page .reader-shell,
.on-this-day-page .reader-shell {
  width: min(1120px, calc(100% - 32px));
}

.fire-desk-page .reader-shell {
  display: grid;
  gap: 28px;
  padding-top: 28px;
}

.fire-desk-page .reader-section {
  min-width: 0;
  margin: 0;
}

.fire-desk-page .emergency-command-bar {
  width: 100%;
  padding: 14px 18px;
  border-radius: 2px;
}

.fire-hero-disclosure {
  display: block;
  max-width: 760px;
  margin-top: 10px;
  color: rgba(255, 255, 255, .78);
  font-size: 10px;
  line-height: 1.45;
}

.fire-risk-current-card {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .98fr);
  overflow: hidden;
  border: 1px solid #aeb8b5;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 23, 26, .08);
}

.fire-risk-current-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 4vw, 46px);
}

.fire-risk-current-card h2 {
  max-width: 15ch;
  margin: 10px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.02;
  letter-spacing: -.025em;
}

.fire-risk-current-card p {
  max-width: 58ch;
  margin: 0 0 15px;
  color: #46534f;
  font-size: 16px;
  line-height: 1.58;
}

.fire-risk-current-card small {
  font-size: 12px;
  line-height: 1.5;
}

.fire-risk-current-card .fire-current-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 6px;
}

.fire-risk-current-card > a {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 18px;
  border-left: 1px solid #cbd5d2;
  background: #f5f7f6;
}

.fire-risk-current-card > a img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 610px;
  object-fit: contain;
}

.fire-incident-current-card {
  border-top: 5px solid #b80f24;
}

.fire-incident-current-card > a {
  padding: 0;
  overflow: hidden;
  background: #0c1719;
}

.fire-incident-current-card > a img {
  height: 100%;
  max-height: 520px;
  object-fit: cover;
}

.fire-desk-page .fire-live-list article {
  min-width: 0;
}

.fire-desk-page .fire-live-list h3,
.fire-desk-page .fire-timeline h3 {
  overflow-wrap: anywhere;
}

.on-this-day-page .reader-extra-hero {
  min-height: 350px;
}

.on-this-day-page .feature-banner-copy {
  width: min(760px, calc(100% - 32px));
}

.on-this-day-page .reader-extra-shell {
  padding-top: 26px;
}

.on-this-day-page .history-date-bar {
  display: grid;
  grid-template-columns: auto minmax(210px, auto) auto auto minmax(220px, 1fr);
  gap: 9px;
  align-items: end;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid #b9c5c1;
  border-top: 4px solid #176b57;
  background: #fff;
}

.on-this-day-page .history-date-bar label {
  display: grid;
  gap: 5px;
  color: #46534f;
  font-size: 12px;
  font-weight: 850;
}

.on-this-day-page .history-date-bar input {
  min-height: 38px;
  padding: 6px 9px;
  border: 1px solid #aebbb7;
  color: #10171a;
  background: #fff;
  font: inherit;
}

.on-this-day-page .history-date-copy {
  display: grid;
  gap: 4px;
  justify-self: end;
  text-align: right;
}

.on-this-day-page .history-date-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

/* Reset the obsolete flat-card grid; reader-extras.js now renders grouped sections. */
.on-this-day-page .history-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  border: 0;
}

.on-this-day-page .history-type-section {
  min-width: 0;
}

.on-this-day-page .history-section-heading {
  margin: 0 0 12px;
  padding: 0 0 9px;
  border-bottom: 3px solid #10171a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.05;
}

.on-this-day-page .history-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.on-this-day-page .history-grid .history-card {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 9px;
  padding: 20px;
  border: 1px solid #c8d2cf;
  border-top: 4px solid #176b57;
  background: #fff;
  box-shadow: 0 5px 18px rgba(16, 23, 26, .055);
}

.on-this-day-page .history-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.on-this-day-page .history-type-badge {
  color: #176b57;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.on-this-day-page .history-grid .history-year {
  grid-row: auto;
  color: #c92532;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
}

.on-this-day-page .history-grid .history-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.12;
}

.on-this-day-page .history-grid .history-card p {
  margin: 0;
  color: #4d5e59;
  font-size: 14px;
  line-height: 1.55;
}

.on-this-day-page .history-grid .history-card a {
  width: fit-content;
  margin-top: auto;
  padding-top: 4px;
  color: #075e8c;
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.on-this-day-page .history-attribution {
  margin: -12px 0 0;
  padding: 13px 15px;
  border-left: 4px solid #d5a51d;
  background: #fff8df;
  color: #4d554f;
  font-size: 12px;
}

.on-this-day-page .reader-empty {
  margin: 20px 0;
  padding: 18px;
  border-left: 4px solid #d5a51d;
  background: #fff;
}

.fire-risk-article .official-risk-map {
  margin: 26px 0;
  padding: 14px;
  border: 1px solid #c6d0cd;
  background: #f6f8f7;
}

.fire-risk-article .official-risk-map img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 760px;
  object-fit: contain;
  background: #fff;
}

.fire-risk-article .official-risk-map figcaption {
  margin-top: 10px;
  color: #4e5a56;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .fire-risk-current-card {
    grid-template-columns: 1fr;
  }

  .fire-risk-current-card > a {
    border-top: 1px solid #cbd5d2;
    border-left: 0;
  }

  .on-this-day-page .history-date-bar {
    grid-template-columns: auto minmax(190px, 1fr) auto auto;
  }

  .on-this-day-page .history-date-copy {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .fire-desk-page .reader-shell,
  .on-this-day-page .reader-shell {
    width: min(100% - 20px, 1120px);
  }

  .fire-desk-page .emergency-command-bar,
  .on-this-day-page .history-date-bar,
  .on-this-day-page .history-type-grid {
    grid-template-columns: 1fr;
  }

  .fire-risk-current-card > div,
  .fire-risk-current-card > a {
    padding: 18px 15px;
  }

  .fire-risk-current-card h2 {
    font-size: 34px;
  }

  .on-this-day-page .history-date-bar .secondary-button,
  .on-this-day-page .history-date-bar label {
    width: 100%;
  }

  .on-this-day-page .history-date-bar input {
    width: 100%;
  }

  .on-this-day-page .history-grid .history-card {
    padding: 17px;
  }
}

/* MWB v561: bounded desks, source-first fire feed and durable history states. */
.fire-desk-page .fire-feature-banner,
.on-this-day-page .reader-extra-hero {
  width: min(1180px, calc(100% - 32px));
  min-height: clamp(360px, 48vw, 520px);
  margin: 18px auto 0;
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(16, 23, 26, .14);
}

.fire-desk-page .fire-feature-banner .feature-banner-copy,
.on-this-day-page .reader-extra-hero .feature-banner-copy {
  width: min(100% - 48px, 1040px);
}

.fire-desk-page .fire-live-feed {
  padding: 22px;
  border: 1px solid #b7c3c0;
  border-top: 6px solid #b20f1a;
  background: #f7f9f8;
  box-shadow: 0 10px 30px rgba(16, 23, 26, .07);
}

.fire-desk-page .fire-live-feed .reader-section-head {
  align-items: center;
  margin-bottom: 14px;
}

.fire-desk-page .fire-feed-state[data-feed-state="empty"] {
  border-color: #a56b00;
  color: #6d4a00;
  background: #fff8df;
}

.fire-desk-page .fire-live-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fire-desk-page .fire-live-list article {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
  padding: 17px;
  border: 1px solid #c7d1ce;
  border-left: 5px solid #b20f1a;
  background: #fff;
}

.fire-desk-page .fire-live-list article > time {
  padding-top: 7px;
  color: #596662;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.fire-desk-page .fire-live-list article > .fire-evidence {
  white-space: nowrap;
}

.fire-desk-page .fire-live-list article > div {
  grid-column: 1 / -1;
  min-width: 0;
}

.fire-desk-page .fire-live-list h3 {
  margin: 0;
  font: 700 clamp(20px, 2.2vw, 25px)/1.1 Georgia, "Times New Roman", serif;
}

.fire-desk-page .fire-live-list p {
  margin: 8px 0 0;
  color: #4b5a55;
  font-size: 14px;
  line-height: 1.5;
}

.fire-desk-page .fire-briefing-heading {
  padding: 4px 0 0;
}

.fire-desk-page .fire-briefing-heading .reader-section-head {
  margin: 0;
}

.fire-desk-page .fire-risk-current-card:not(.fire-incident-current-card) > a img {
  max-height: 480px;
}

.on-this-day-page .history-grid {
  max-width: 100%;
}

.on-this-day-page .history-type-section {
  padding: 20px;
  border: 1px solid #c4cecb;
  background: #f7f9f8;
}

.on-this-day-page .history-section-heading {
  font-size: clamp(25px, 3vw, 34px);
}

.on-this-day-page .history-state {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 22px;
  border: 1px solid #c4cecb;
  border-left: 6px solid #d5a51d;
  background: #fff;
}

.on-this-day-page .history-state[hidden] {
  display: none !important;
}

.on-this-day-page .history-state[data-history-state="unavailable"] {
  border-left-color: #b20f1a;
}

.on-this-day-page .history-state strong {
  font: 700 24px/1.12 Georgia, "Times New Roman", serif;
}

.on-this-day-page .history-state p {
  max-width: 70ch;
  margin: 0;
  color: #4d5e59;
  line-height: 1.55;
}

.on-this-day-page .history-state button {
  width: fit-content;
  margin-top: 5px;
}

@media (max-width: 760px) {
  .fire-desk-page .fire-feature-banner,
  .on-this-day-page .reader-extra-hero {
    width: min(100% - 20px, 1180px);
    margin-top: 10px;
  }

  .fire-desk-page .fire-feature-banner .feature-banner-copy,
  .on-this-day-page .reader-extra-hero .feature-banner-copy {
    width: min(100% - 30px, 1040px);
  }

  .fire-desk-page .fire-live-feed,
  .on-this-day-page .history-type-section {
    padding: 16px;
  }

  .fire-desk-page .fire-live-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .fire-desk-page .fire-live-list article {
    grid-template-columns: 1fr;
  }

  .fire-desk-page .fire-live-list article > div {
    grid-column: 1;
  }

  .fire-desk-page .fire-live-list article > time,
  .fire-desk-page .fire-live-list article > .fire-evidence {
    width: fit-content;
  }
}
