/* ============================================================
   CURRENT WEATHER PAGE
   Extracted from known-good harper.css during modular migration.
   Do not merge page-specific rules back into harper-core.css.
   ============================================================ */

/* ============================================================
   CURRENT CONDITIONS
   PAGE 1
   ============================================================ */

.current-conditions {
    padding: 22px;
}

.current-conditions h2 {
    margin: 0 0 14px;
    color: var(--blue-dark);
}

.current-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.current-item {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.current-item .label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.current-item .value {
    font-size: 1.15rem;
    font-weight: 900;
}


/* ============================================================
   FORECAST
   PAGE 1
   ============================================================ */

.forecast {
    padding: 20px;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.forecast-day {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
}

.forecast-day h3 {
    margin: 0 0 8px;
    font-size: 0.95rem;
}

.forecast-day .high {
    font-size: 1.2rem;
    font-weight: 900;
}

.forecast-day .low {
    color: var(--muted);
}


/* ============================================================
   IMAGERY
   PAGE 1
   ============================================================ */

.imagery {
    padding: 18px;
}

.imagery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.imagery-card {
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.imagery-card img {
    display: block;
    width: 100%;
    height: auto;
}

.imagery-card h3 {
    margin: 0;
    padding: 10px 12px 2px;
    font-size: 1rem;
}

.imagery-card p {
    margin: 0;
    padding: 0 12px 12px;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ============================================================
   PAGE 1 — CURRENT WEATHER
   Current Conditions
   ============================================================ */

.conditions-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
    margin-top: 20px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}


/* ------------------------------------------------------------
   Main temperature panel
   ------------------------------------------------------------ */

.temperature-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background: var(--blue-light);
    border: 1px solid #c9d8e8;
    border-radius: 11px;
    text-align: center;
}

.current-temperature {
    color: var(--blue-dark);
    font-size: 3.6rem;
    line-height: 1;
    font-weight: 900;
}

.temperature-unit {
    margin-left: 3px;
    font-size: 1.45rem;
    font-weight: 600;
}

.feels-like {
    margin-top: 8px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
}

.condition-placeholder {
    margin-top: 14px;
    color: var(--blue-dark);
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.temperature-panel .observation-detail {
    margin-top: 4px;
}


/* ------------------------------------------------------------
   Observation grid
   ------------------------------------------------------------ */

.observation-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

.observation {
    padding: 13px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.observation-label {
    margin-bottom: 4px;
    color: var(--text);
    font-size: 0.80rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

.observation-value {
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 900;
}

.observation-value.high {
    color: var(--red);
}

.observation-value.low {
    color: var(--blue-low);
}

.observation-detail {
    margin-top: 3px;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 800;
}


/* ============================================================
   PAGE 1 — NWS FORECAST
   ============================================================ */

.forecast-section {
    margin-top: 20px;
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section-heading {
    margin-bottom: 13px;
}

.section-heading h2 {
    margin: 0;
    color: var(--blue-dark);
    font-size: 1.15rem;
}

.section-subtitle {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.82rem;
}

.forecast-section .forecast-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.forecast-card {
    padding: 13px 10px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
}

.forecast-period {
    min-height: 1.3em;
    color: var(--blue-dark);
    font-size: 0.9rem;
    font-weight: 900;
}

.forecast-icon {
    display: block;
    width: 72px;
    height: 72px;
    margin: 9px auto;
    border-radius: 7px;
}

.forecast-condition {
    min-height: 2.8em;
    font-size: 0.85rem;
    font-weight: 600;
}

.forecast-temperature {
    margin-top: 5px;
    font-size: 1.15rem;
    font-weight: 900;
}

.forecast-wind,
.forecast-rain {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.77rem;
}

.forecast-source {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.74rem;
}


/* ============================================================
   PAGE 1 — REGIONAL WEATHER PICTURE
   ============================================================ */

.imagery-section {
    margin-top: 20px;
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.imagery-section > .section-heading {
    margin-bottom: 14px;
}

.imagery-section .imagery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.imagery-panel {
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 11px;
}

.imagery-panel .section-heading {
    padding: 12px 13px 8px;
    margin: 0;
}

.imagery-panel .section-heading h2 {
    font-size: 1rem;
}

.radar-display,
.satellite-display {
    overflow: hidden;
    background: #e9eef3;
}

.radar-display a,
.satellite-display a {
    display: block;
}

.radar-display img,
.satellite-display img {
    display: block;
    width: 100%;
    height: auto;
}

.imagery-link {
    padding: 9px 11px 2px;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
}

.imagery-credit {
    padding: 2px 11px 10px;
    color: var(--muted);
    font-size: 0.72rem;
}


/* ============================================================
   PAGE 1 — RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {

    .conditions-card {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .observation-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .forecast-section .forecast-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 700px) {

    .conditions-card {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .temperature-panel {
        padding: 18px;
    }

    .current-temperature {
        font-size: 3rem;
    }

    .observation-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .forecast-section .forecast-grid {
        grid-template-columns: 1fr;
    }

    .imagery-section .imagery-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 430px) {

    .observation-panel {
        grid-template-columns: 1fr;
    }
}

.rainfall-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 5px;
}

.rainfall-row span {
    color: var(--muted);
    font-size: 0.78rem;
}

.rainfall-row strong {
    color: var(--text);
    font-size: 1rem;
}

/* Page 1 station notice */
.station-message {
    margin-top: 12px;
    padding: 12px 16px;
    border: 2px solid #d68a00;
    border-radius: var(--radius);
    background: #fff4d6;
    color: #5a3900;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
    box-shadow: var(--shadow);
}

/* ============================================================
   PAGE 1 — LIGHTNING TRACKER
   ============================================================ */

.lightning-section {
    margin-top: 18px;
}

.lightning-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.lightning-map {
    display: block;
    width: 100%;
    height: 520px;
    border: 0;
}

.lightning-note {
    padding: 8px 12px 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 700px) {
    .lightning-map {
        height: 420px;
    }
}

/* Lightning map — click to activate interaction */
.lightning-map-wrap {
    position: relative;
}

.lightning-activate {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0, 0, 0, 0.12);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.lightning-map-wrap.is-active .lightning-activate {
    display: none;
}

.lightning-resume {
    display: none;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.lightning-map-wrap.is-active .lightning-resume {
    display: block;
}

/* Lightning map activation prompt — decorative pill */
.lightning-activate {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.10);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.lightning-activate::before {
    content: "⚡  Click to interact with map";
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.68);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.lightning-activate {
    font-size: 0;
}

/* ============================================================
   PAGE 1 — SECTION JUMP LINKS
   ============================================================ */

.page-jumps {
    margin: 14px 0 18px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 800;
}

.page-jumps a {
    color: var(--blue-dark);
    text-decoration: none;
}

.page-jumps a:hover,
.page-jumps a:focus {
    text-decoration: underline;
}

.page-jumps span {
    margin: 0 0.45rem;
    color: var(--text-muted);
}

/* Page 1 jump menu — compact local navigation */
.page-jumps {
    width: fit-content;
    max-width: calc(100% - 32px);
    margin: 14px auto 18px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    text-align: center;
}

.page-jumps-label {
    margin-right: 0.7rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 700px) {
    .page-jumps {
        line-height: 1.8;
    }
}

/* ============================================================
   NWS ACTIVE ALERTS
   ============================================================ */

.nws-alerts {
    margin: 16px 0;
}

.nws-alert-card {
    margin: 0 0 10px 0;
    padding: 14px 16px;
    border: 2px solid;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nws-alert-card:last-child {
    margin-bottom: 0;
}

.nws-alert-warning {
    background: #fde2e2;
    border-color: #b71c1c;
}

.nws-alert-watch {
    background: #fff0d6;
    border-color: #d96b00;
}

.nws-alert-advisory {
    background: #fff8d8;
    border-color: #b58b00;
}

.nws-alert-statement {
    background: #e8f1fb;
    border-color: #4778a8;
}

.nws-alert-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.nws-alert-event {
    font-size: 1.12rem;
    font-weight: 900;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.nws-alert-time {
    flex: 0 0 auto;
    font-size: 0.88rem;
    font-weight: 800;
}

.nws-alert-headline {
    margin-top: 6px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
}

.nws-alert-source {
    margin-top: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.8;
}

.nws-alert-details {
    margin-top: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.nws-alert-details summary {
    cursor: pointer;
    font-weight: 900;
}

.nws-alert-description {
    margin-top: 12px;
    white-space: pre-line;
}

.nws-alert-instruction {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.18);
    white-space: pre-line;
}

@media (max-width: 700px) {
    .nws-alert-top {
        display: block;
    }

    .nws-alert-time {
        margin-top: 4px;
    }

    .nws-alert-card {
        padding: 12px 13px;
    }
}

/* NWS alert timing refinement */
.nws-alert-top {
    display: block;
}

.nws-alert-time {
    margin-top: 6px;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.45;
}

.nws-alert-time > div {
    display: block;
}

/* NWS alert width refinement */
.nws-alerts {
    max-width: 860px;
    margin: 16px auto;
}

@media (max-width: 900px) {
    .nws-alerts {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }
}

/* HARPER POLLEN MODULE */

.pollen-card{
  width:min(560px,calc(100% - 24px));
  margin:10px auto 0;
  padding:8px 12px 8px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.pollen-card[hidden]{display:none}

.pollen-topline{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
}

.pollen-heading-row{
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}

.pollen-title{
  color:#27333e;
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.045em;
  text-transform:uppercase;
}

.pollen-date{
  color:var(--muted);
  font-size:.74rem;
  font-weight:600;
}

.pollen-reading{
  display:flex;
  align-items:baseline;
  gap:7px;
  white-space:nowrap;
}

.pollen-value{
  color:var(--blue-dark);
  font-size:1.35rem;
  font-weight:800;
  line-height:1;
}

.pollen-outof{
  color:var(--muted);
  font-size:.82rem;
  font-weight:700;
}

.pollen-category{
  color:#27333e;
  font-size:.84rem;
  font-weight:800;
}

.pollen-track-wrap{
  position:relative;
  margin-top:5px;
  padding-top:4px;
}

.pollen-track{
  height:9px;
  border:1px solid #b9c4ce;
  border-radius:999px;
  background:linear-gradient(
    to right,
    #78b86b 0%,
    #9dcc70 20%,
    #e2cf59 40%,
    #eaa24e 60%,
    #db6b47 80%,
    #b54141 100%
  );
}

.pollen-marker{
  position:absolute;
  top:0;
  left:0;
  width:2px;
  height:21px;
  transform:translateX(-1px);
  background:#17212b;
  box-shadow:0 0 0 2px rgba(255,255,255,.85);
}

.pollen-scale{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:5px;
  margin-top:3px;
  color:var(--muted);
  font-size:.56rem;
  font-weight:700;
  text-align:center;
}

.pollen-scale span:first-child{text-align:left}
.pollen-scale span:last-child{text-align:right}

.pollen-details{
  display:grid;
  grid-template-columns:1fr auto;
  gap:4px 16px;
  margin-top:5px;
  align-items:baseline;
}

.pollen-allergens{
  min-width:0;
  color:#27333e;
  font-size:.82rem;
  font-weight:700;
}

.pollen-mini{
  color:var(--muted);
  font-size:.75rem;
}

.pollen-stale{opacity:.72}

@media(max-width:650px){
  .pollen-card{padding:8px 10px}
  .pollen-topline{
    align-items:flex-start;
    flex-direction:column;
    gap:5px;
  }
  .pollen-details{
    grid-template-columns:1fr;
    gap:5px;
  }
  .pollen-scale{font-size:.56rem}
}

/* Pollen marker alignment refinement */
.pollen-marker {
    height: 16px !important;
    top: -4px !important;
    bottom: auto !important;
}
