* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0f1115;
  color: #e6e6e6;
  min-height: 100vh;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 12px 20px;
  border-bottom: 1px solid #1e232b;
  background: #12151b;
}
header h1 { font-size: 1.25rem; margin: 0; letter-spacing: 0.02em; }
header .sub { flex: 1 1 240px; min-width: 0; font-size: 0.8rem; color: #7a8290; }
header .status {
  margin-left: auto;
  min-width: 0;
  font-size: 0.8rem;
  color: #888;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
header .status.err { color: #ff8888; }

.region-bar {
  display: flex; gap: 6px; padding: 8px 20px;
  max-width: 1200px; margin: 0 auto; flex-wrap: wrap;
  border-bottom: 1px solid #1e232b; background: #0f1115;
}
.region-tab {
  background: #161a21; border: 1px solid #1e232b; color: #aab3c0;
  padding: 6px 14px; font-size: 0.85rem; font-weight: 600;
  border-radius: 4px; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.region-tab:hover { background: #1e232b; color: #e6e6e6; }
.region-tab.active {
  background: #2d4a6b; border-color: #3d6a9a; color: #d0e0ff;
}
.region-tab.plus { padding: 6px 12px; font-size: 1.05rem; line-height: 1; color: #7a8290; }
.region-tab.plus:hover { color: #d0e0ff; border-color: #3d6a9a; }
.region-tab .region-del {
  color: #6a7380; font-size: 1.1rem; padding: 0 2px; line-height: 1; margin-left: 4px;
}
.region-tab .region-del:hover { color: #ff8888; }

.region-form { display: flex; flex-direction: column; gap: 12px; padding: 16px; min-width: 480px; }
.region-form .form-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.region-form label {
  color: #aab3c0; font-size: 0.82rem; flex: 1;
  display: flex; align-items: center; gap: 6px;
}
.region-form input {
  background: #1e232b; border: 1px solid #2a303a; color: #e6e6e6;
  padding: 5px 8px; border-radius: 3px; font-size: 0.85rem; flex: 1; min-width: 80px;
}
.region-form input:focus { outline: none; border-color: #3d6a9a; }
#region-probe-btn {
  background: #2d4a6b; border: 1px solid #3d6a9a; color: #d0e0ff;
  padding: 5px 14px; border-radius: 3px; cursor: pointer;
  font-size: 0.82rem; font-weight: 600;
}
#region-probe-btn:hover { background: #3d5a7b; }
.region-preview {
  background: #0f1218; border: 1px solid #1e232b; border-radius: 3px;
  padding: 10px 12px; font-size: 0.78rem; color: #c5cbd3; min-height: 40px;
  max-height: 240px; overflow-y: auto;
}
.region-preview .pv-row {
  display: grid; grid-template-columns: 92px 1fr; gap: 2px 12px; padding: 2px 0;
}
.region-preview .pv-label { color: #7a8290; }
.region-preview .pv-empty { color: #6a7380; font-style: italic; }
.region-form .form-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.region-form .form-err { color: #ff8888; font-size: 0.78rem; flex: 1; }
#region-save-btn {
  background: #1e3a5a; border: 1px solid #2a4f7a; color: #a8cfff;
  padding: 7px 18px; border-radius: 3px; cursor: pointer;
  font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em;
}
#region-save-btn:disabled {
  background: #1a1f27; border-color: #1e232b; color: #4a5260; cursor: not-allowed;
}
#region-save-btn:not(:disabled):hover { background: #2a4f7a; color: #fff; }

main { padding: 16px 20px 40px; max-width: 1200px; margin: 0 auto; }

/* Collapsible sections */
.dash-section h2 {
  cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 6px;
}
.dash-section h2 .chev {
  display: inline-block; width: 12px;
  font-size: 0.7rem; color: #6a7380;
  transition: transform 0.15s ease;
}
.dash-section.collapsed h2 .chev { transform: rotate(-90deg); }
.dash-section.collapsed .section-body { display: none; }
section { margin-bottom: 24px; }
h2 { font-size: 0.95rem; margin: 0 0 10px; color: #aab3c0; text-transform: uppercase; letter-spacing: 0.05em; }
.count { font-size: 0.8rem; color: #6a7380; margin-left: 6px; font-weight: normal; text-transform: none; letter-spacing: 0; }

/* Alerts */
.alert {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-left: 4px solid #3a4150;
  background: #161a21;
  border-radius: 3px;
}
.alert.extreme  { border-color: #ff2d2d; background: #2a0f0f; }
.alert.severe   { border-color: #ff8c00; background: #2a1a0a; }
.alert.moderate { border-color: #ffd23f; background: #2a220a; }
.alert.minor    { border-color: #4b9fff; }
.alert h3 { margin: 0 0 4px; font-size: 0.95rem; }
.alert .meta { font-size: 0.72rem; color: #7a8290; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.alert .headline { font-size: 0.88rem; line-height: 1.35; }
.alerts-empty { color: #666; font-style: italic; padding: 4px 0; }

/* SPC */
.spc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.spc-card {
  background: #161a21;
  border: 1px solid #1e232b;
  border-radius: 4px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spc-card .hdr { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.spc-card .hdr .day { font-weight: 600; font-size: 0.95rem; }
.spc-card .hdr .view-label { color: #c5cbd3; font-size: 0.78rem; letter-spacing: 0.02em; }
.spc-card .hdr .sub { color: #7a8290; font-size: 0.75rem; }
.spc-card img { width: 100%; height: auto; border-radius: 3px; background: #0a0c10; display: block; cursor: pointer; }
.spc-card .spc-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.spc-card .spc-tabs button {
  flex: 1;
  min-width: 44px;
  padding: 4px 6px;
  background: #1e232b;
  border: 1px solid #2a303a;
  color: #aab3c0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.spc-card .spc-tabs button:hover { background: #2a303a; color: #e6e6e6; }
.spc-card .spc-tabs button.active {
  background: #2d4a6b;
  border-color: #3d6a9a;
  color: #a8cfff;
}
.spc-card .risks { display: flex; flex-direction: column; gap: 4px; }
.risk-row { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.risk-row .name { color: #aab3c0; min-width: 72px; }
.risk-badge {
  display: inline-block; padding: 2px 8px; border-radius: 3px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  background: #2a2e36; color: #8a929e; border: 1px solid #3a4150;
}
.risk-badge.r-TSTM { background: #1e3a5a; color: #8fc1ff; border-color: #2a4f7a; }
.risk-badge.r-MRGL { background: #1e4a2c; color: #7fd79a; border-color: #2d6b3f; }
.risk-badge.r-SLGT { background: #5a4a00; color: #ffd23f; border-color: #7a6400; }
.risk-badge.r-ENH  { background: #6a3a00; color: #ff9933; border-color: #8a4a00; }
.risk-badge.r-MDT  { background: #6a1a00; color: #ff5c3c; border-color: #8a2300; }
.risk-badge.r-HIGH { background: #4a0a4a; color: #ff9cff; border-color: #6a1a6a; }
.risk-badge.r-NONE { opacity: 0.6; }

/* Forecast */
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.fcst-col {
  background: #161a21;
  border: 1px solid #1e232b;
  border-radius: 4px;
  padding: 12px 14px;
}
.fcst-col h3 { margin: 0 0 8px; font-size: 0.95rem; }
.fcst-period {
  display: grid;
  grid-template-columns: 80px 60px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 6px 0;
  border-top: 1px solid #1e232b;
  font-size: 0.82rem;
}
.fcst-period:first-of-type { border-top: none; }
.fcst-period .name { color: #aab3c0; font-weight: 500; }
.fcst-period .temp { font-weight: 600; font-variant-numeric: tabular-nums; }
.fcst-period .short { color: #c5cbd3; }
.fcst-col .err { color: #ff8888; font-size: 0.8rem; }

/* Observations */
.obs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.obs-card {
  background: #161a21;
  border: 1px solid #1e232b;
  border-radius: 4px;
  padding: 12px 14px;
}
.obs-card h3 { margin: 0 0 4px; font-size: 0.95rem; }
.obs-card .temp { font-size: 2rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; }
.obs-card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 10px 0 0; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.obs-card dt { color: #7a8290; }
.obs-card dd { margin: 0; }
.obs-card .err { color: #ff8888; font-size: 0.8rem; margin-top: 4px; }
.obs-card .stale { color: #c9a043; }

/* Wx / Atmospheric data */
.wx-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 10px; padding: 10px 12px;
  background: #161a21; border: 1px solid #1e232b; border-radius: 4px;
}
.wx-stat { color: #aab3c0; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.wx-stat .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #555; margin-right: 4px; vertical-align: middle; }
.wx-stat .dot.on { background: #3fcf5a; }
.wx-buttons { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wx-buttons label { color: #7a8290; font-size: 0.78rem; display: flex; align-items: center; gap: 4px; }
.wx-buttons select {
  background: #1e232b; border: 1px solid #2a303a; color: #e6e6e6;
  padding: 3px 6px; font-size: 0.8rem; border-radius: 3px;
}
.wx-buttons button, .wx-buttons .btn-link {
  background: #1e232b; border: 1px solid #2a303a; color: #aab3c0;
  padding: 4px 10px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 3px; cursor: pointer; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.wx-buttons button:hover, .wx-buttons .btn-link:hover { background: #2a303a; color: #e6e6e6; }

.wx-params {
  background: #161a21; border: 1px solid #1e232b; border-radius: 4px;
  padding: 12px 14px; margin-bottom: 10px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px 16px; font-size: 0.82rem; font-variant-numeric: tabular-nums;
}
.wx-params .p-label { color: #7a8290; }
.wx-params .p-value { color: #c5cbd3; font-weight: 600; }
.wx-params.err { color: #ff8888; grid-template-columns: 1fr; }

.wx-messages {
  background: #161a21; border: 1px solid #1e232b; border-radius: 4px;
  padding: 8px 0;
  /* 10 rows × 28px + 16px container padding */
  max-height: 296px; overflow-y: auto;
  font-size: 0.78rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.wx-msg {
  display: grid; grid-template-columns: 110px 70px 80px 60px 1fr;
  gap: 8px; padding: 4px 12px; border-top: 1px solid #1a1f26;
  align-items: baseline;
  height: 28px;
}
.wx-msg:first-child { border-top: none; }
.wx-msg .ts { color: #7a8290; }
.wx-msg .src { color: #8fb8ff; text-transform: uppercase; font-weight: 600; font-size: 0.7rem; }
.wx-msg .id { color: #d0e0ff; font-weight: 600; }
.wx-msg .label { color: #aab3c0; }
.wx-msg .text { color: #c5cbd3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-empty { padding: 12px; color: #666; font-style: italic; text-align: center; }

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.modal.hidden { display: none; }
.modal-body {
  background: #12151b; border: 1px solid #1e232b; border-radius: 6px;
  max-width: 1200px; width: 100%; max-height: 92vh; display: flex; flex-direction: column;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid #1e232b; color: #e6e6e6; font-weight: 600;
}
.modal-head button {
  background: #2a303a; border: 1px solid #3a4150; color: #e6e6e6;
  padding: 4px 12px; border-radius: 3px; cursor: pointer; font-size: 0.82rem;
}
.modal-head button:hover { background: #3a4150; }
.modal-content { padding: 12px; overflow: auto; display: flex; justify-content: center; align-items: center; }
.modal-content img { max-width: 100%; height: auto; }
.modal-loading { color: #7a8290; padding: 40px; }
.modal-content.err { color: #ff8888; }

/* Imagery (radar + satellite side by side) */
.imagery-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.imagery-card {
  background: #161a21; border: 1px solid #1e232b; border-radius: 4px;
  padding: 10px; display: flex; flex-direction: column; gap: 8px;
}
.imagery-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.imagery-title { font-weight: 600; font-size: 0.95rem; }
.imagery-sub { color: #7a8290; font-size: 0.72rem; margin-left: auto; }
.imagery-card .view-label { color: #c5cbd3; font-size: 0.78rem; }
.imagery-tabs { display: flex; gap: 4px; margin-left: auto; }
.imagery-tabs button {
  background: #1e232b; border: 1px solid #2a303a; color: #aab3c0;
  padding: 3px 8px; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: 3px; cursor: pointer;
}
.imagery-tabs button.active { background: #2d4a6b; border-color: #3d6a9a; color: #a8cfff; }
.imagery-card img {
  width: 100%; height: auto; border-radius: 3px;
  background: #0a0c10; display: block;
}

/* IEM text products */
.iem-controls {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px; margin-bottom: 10px;
  background: #161a21; border: 1px solid #1e232b; border-radius: 4px;
}
.iem-controls label { color: #7a8290; font-size: 0.78rem; display: flex; align-items: center; gap: 6px; }
.iem-controls select {
  background: #1e232b; border: 1px solid #2a303a; color: #e6e6e6;
  padding: 3px 6px; font-size: 0.8rem; border-radius: 3px;
}
.iem-err { color: #ff8888; font-size: 0.78rem; }
.iem-list {
  background: #161a21; border: 1px solid #1e232b; border-radius: 4px;
  max-height: 380px; overflow-y: auto;
}
.iem-item {
  padding: 8px 14px; border-top: 1px solid #1a1f26;
  cursor: pointer; transition: background 0.1s;
}
.iem-item:first-child { border-top: none; }
.iem-item:hover { background: #1a1f27; }
.iem-item.open { background: #1a1f27; }
.iem-item .hdr { display: flex; gap: 12px; align-items: baseline; font-size: 0.82rem; }
.iem-item .pil {
  color: #8fb8ff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600; letter-spacing: 0.02em; min-width: 64px;
}
.iem-item .label { color: #c5cbd3; flex: 1; }
.iem-item .ts { color: #7a8290; font-variant-numeric: tabular-nums; }
.iem-item .chev { color: #6a7380; font-size: 0.75rem; }
.iem-item .body {
  display: none; margin: 8px 0 0; padding: 8px 10px;
  background: #0f1218; border: 1px solid #1e232b; border-radius: 3px;
  font-size: 0.75rem; color: #c5cbd3; max-height: 400px; overflow: auto;
  white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.iem-item.open .body { display: block; }
.iem-item .body.taf-body {
  padding: 0; white-space: normal; font-family: inherit; background: transparent;
  border: none; max-height: none;
}

/* Parsed TAF view */
.taf-parsed { display: flex; flex-direction: column; gap: 6px; }
.taf-head {
  padding: 8px 10px; background: #1a1f27; border: 1px solid #1e232b;
  border-radius: 3px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.taf-head .taf-station { color: #8fb8ff; font-weight: 700; font-size: 0.88rem; }
.taf-head .taf-meta { color: #aab3c0; font-size: 0.76rem; margin-left: 8px; }
.taf-head .taf-flag {
  display: inline-block; padding: 1px 6px; margin-left: 6px;
  background: #5a4a00; color: #ffd23f;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  border-radius: 2px;
}
.taf-group {
  background: #0f1218; border: 1px solid #1e232b; border-radius: 3px;
  padding: 8px 10px;
}
.taf-group .taf-kind {
  color: #c5cbd3; font-weight: 600; font-size: 0.82rem; margin-bottom: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.taf-group .taf-time { color: #7a8290; font-weight: normal; margin-left: 8px; }
.taf-group dl {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 2px 10px; margin: 0; font-size: 0.78rem;
}
.taf-group dt { color: #7a8290; }
.taf-group dd { color: #c5cbd3; margin: 0; }
.taf-wx { color: #c5cbd3; }
.taf-wx.severe, .taf-cloud-type.severe {
  color: #ff8c5a; font-weight: 700;
}
.taf-cloud-type {
  display: inline-block; padding: 0 4px; margin-left: 4px;
  background: #2a1a0a; color: #ffaa66;
  font-size: 0.68rem; font-weight: 700;
  border-radius: 2px;
}
.taf-raw { margin-top: 4px; }
.taf-raw summary { cursor: pointer; color: #7a8290; font-size: 0.76rem; padding: 4px 0; }
.taf-raw pre {
  margin: 6px 0 0; padding: 8px; background: #0f1218;
  border: 1px solid #1e232b; border-radius: 3px;
  font-size: 0.72rem; color: #c5cbd3; overflow: auto;
  white-space: pre-wrap;
}

/* Models (link-outs) */
.models-note { color: #7a8290; font-size: 0.8rem; margin-bottom: 10px; }
.models-links { display: flex; flex-wrap: wrap; gap: 8px; }
.models-btn {
  display: inline-block; padding: 8px 14px;
  background: #161a21; border: 1px solid #2a303a; border-radius: 4px;
  color: #d0e0f0; font-size: 0.82rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.models-btn:hover { background: #1e232b; border-color: #3d6a9a; color: #fff; }

/* Sounding table */
.sounding-wrap {
  background: #161a21; border: 1px solid #1e232b; border-radius: 4px;
  max-height: 340px; overflow-y: auto;
}
.sounding-table {
  width: 100%; border-collapse: collapse;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}
.sounding-table thead {
  position: sticky; top: 0; background: #1a1f27; z-index: 1;
}
.sounding-table th {
  text-align: left; color: #aab3c0;
  font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 12px; border-bottom: 1px solid #2a303a;
  font-weight: 600;
}
.sounding-table td {
  padding: 4px 12px; border-top: 1px solid #1a1f26;
  color: #c5cbd3;
}
.sounding-table tbody tr:first-child td { border-top: none; }
.sounding-table th:nth-child(n+3),
.sounding-table td:nth-child(n+3) {
  text-align: right; font-variant-numeric: tabular-nums;
}
.sounding-wrap #sounding-empty { margin: 0; padding: 16px; }
.sounding-wrap:has(#sounding-rows:empty) .sounding-table { display: none; }

.hidden { display: none !important; }

@media (max-width: 700px) {
  header { align-items: flex-start; }
  header .status {
    flex: 1 0 100%;
    margin-left: 0;
    text-align: left;
  }
  .spc-grid { grid-template-columns: 1fr; }
  .wx-msg { grid-template-columns: 90px 60px 1fr; }
  .wx-msg .label, .wx-msg .id { display: none; }
  .imagery-grid { grid-template-columns: 1fr; }
}

/* --- Daily forecast blog ---------------------------------------------- */
#forecast-blog-section.forecast-blog {
  background: #12151b;
  border: 1px solid #1e232b;
  border-left: 3px solid #ddf531;     /* NSWX brand lime */
  border-radius: 6px;
  padding: 16px 20px;
}
#forecast-blog-section.hidden { display: none; }
.forecast-blog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e232b;
  flex-wrap: wrap;
}
.forecast-run-btn {
  appearance: none;
  border: 0;
  border-radius: 4px;
  background: #ddf531;
  color: #0f1115;
  font: inherit;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}
.forecast-run-btn:hover { background: #e9ff69; }
.forecast-run-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.forecast-run-status {
  color: #aab3c0;
  font-size: 0.82rem;
}
.forecast-run-status.ok { color: #b7d87a; }
.forecast-run-status.error { color: #f07d7d; }
.forecast-run-status.running { color: #8fb8ff; }
.forecast-blog-meta {
  margin-top: 14px; padding-top: 10px; border-top: 1px solid #1e232b;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: #7a8290;
}
.forecast-blog-archive { color: #8fb8ff; text-decoration: none; }
.forecast-blog-archive:hover { color: #d0e0ff; }
.forecast-blog-empty { color: #6a7380; font-style: italic; padding: 10px 0; }
.forecast-blog h2 { margin-top: 0; }
.forecast-blog .forecast-blog-title {
  margin: 4px 0 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e6e6e6;
}
.forecast-blog-body {
  color: #d6d9df;
  line-height: 1.55;
  font-size: 0.95rem;
}
.forecast-blog-body h2,
.forecast-blog-body h3,
.forecast-blog-body h4 {
  color: #e6e6e6;
  margin: 16px 0 6px 0;
}
.forecast-blog-body h2 { font-size: 1.0rem; }
.forecast-blog-body h3 { font-size: 0.95rem; }
.forecast-blog-body h4 { font-size: 0.9rem; color: #aab3c0; }
.forecast-blog-body p { margin: 8px 0; }
.forecast-blog-body ul,
.forecast-blog-body ol { margin: 6px 0 6px 22px; padding: 0; }
.forecast-blog-body li { margin: 2px 0; }
.forecast-blog-body strong { color: #ffffff; }
.forecast-blog-body em { color: #cfd3da; }
.forecast-blog-body code {
  background: #0f1115;
  border: 1px solid #1e232b;
  border-radius: 3px;
  padding: 0 4px;
  font-size: 0.85em;
}
.forecast-blog-body pre {
  background: #0f1115;
  border: 1px solid #1e232b;
  border-radius: 4px;
  padding: 10px 12px;
  overflow-x: auto;
  font-size: 0.85em;
}
.forecast-blog-body blockquote {
  margin: 10px 0;
  padding: 6px 12px;
  border-left: 2px solid #ddf531;
  color: #aab3c0;
  font-style: italic;
}
.forecast-blog-body a {
  color: #ddf531;
  text-decoration: none;
  border-bottom: 1px dotted #88941d;
}
.forecast-blog-body a:hover { color: #fff; border-bottom-color: #fff; }
.forecast-blog-meta {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.75rem;
  color: #7a8290;
}
.forecast-blog-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.forecast-blog-sources-btn {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid #3a4150;
  border-radius: 999px;
  background: transparent;
  color: #cfd3da;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.forecast-blog-sources-btn:hover {
  background: #1e232b;
  border-color: #8fb8ff;
  color: #ffffff;
}
.forecast-blog-archive { color: #aab3c0; text-decoration: none; }
.forecast-blog-archive:hover { color: #ddf531; }
.forecast-sources-modal-body { max-width: 780px; }
.forecast-sources-content {
  display: block;
  padding: 16px 18px 18px;
  color: #d6d9df;
}
.forecast-sources-summary {
  margin: 0 0 14px 0;
  color: #aab3c0;
  line-height: 1.45;
}
.forecast-sources-list {
  margin: 0;
  padding-left: 20px;
}
.forecast-source-item {
  margin: 0 0 12px 0;
  padding: 10px 12px;
  background: #161a21;
  border: 1px solid #1e232b;
  border-radius: 4px;
}
.forecast-source-head {
  color: #e6e6e6;
  font-weight: 600;
  line-height: 1.35;
}
.forecast-source-label { color: #e6e6e6; }
.forecast-source-detail {
  margin-top: 4px;
  color: #c5cbd3;
  line-height: 1.45;
}
.forecast-source-meta {
  margin-top: 6px;
  color: #7a8290;
  font-size: 0.78rem;
}
.forecast-source-link {
  color: #8fb8ff;
  text-decoration: none;
  border-bottom: 1px dotted #496b9a;
}
.forecast-source-link:hover {
  color: #d0e0ff;
  border-bottom-color: #d0e0ff;
}
