.anywhere-shell {
  gap: 18px;
}

.anywhere-hero {
  padding-bottom: 18px;
}

.anywhere-location-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  align-items: end;
  gap: 12px;
}

.anywhere-location-panel__field {
  min-width: 0;
}

.anywhere-location-panel__input {
  width: 100%;
  min-height: 46px;
  font-size: 16px;
}

.anywhere-location-panel__button,
.anywhere-location-panel__current,
.anywhere-location-panel__clear {
  min-height: 46px;
  white-space: nowrap;
}

.anywhere-location-panel__clear[hidden] {
  display: none;
}

.anywhere-location-tools {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.anywhere-recent-locations,
.anywhere-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.anywhere-recent-location,
.anywhere-share-button {
  min-height: 2.2rem;
  padding: 0.5rem 0.72rem;
  color: var(--cool-deep);
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.anywhere-recent-location {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anywhere-share-button[disabled] {
  cursor: default;
  opacity: 0.78;
}

.anywhere-preview-panel {
  margin-top: 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(47, 88, 123, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
}

.anywhere-preview-panel[hidden] {
  display: none;
}

.anywhere-preview-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.anywhere-preview-panel p {
  margin: 0.42rem 0 0;
  max-width: none;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.5;
}

.anywhere-jump-nav {
  margin-top: 14px;
}

.dashboard-shell > .anywhere-jump-nav {
  margin: 1rem 0 1.25rem;
}

.anywhere-jump-nav[hidden] {
  display: none;
}

.anywhere-mode-simple [data-anywhere-advanced-link],
.anywhere-mode-simple .forecast-advanced-action {
  display: none;
}

.anywhere-summary-bar {
  position: sticky;
  top: 0.75rem;
  z-index: 8;
  display: grid;
  grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.62rem;
  border: 1px solid rgba(47, 88, 123, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 251, 246, 0.88);
  box-shadow: 0 16px 38px rgba(20, 36, 51, 0.14);
  backdrop-filter: blur(18px);
}

.anywhere-summary-bar[hidden] {
  display: none;
}

.anywhere-summary-item {
  min-width: 0;
  padding: 0.52rem 0.62rem;
  border: 1px solid rgba(20, 36, 51, 0.07);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.62);
}

.anywhere-summary-item--alert {
  border-color: rgba(157, 43, 43, 0.2);
  background: rgba(255, 246, 241, 0.78);
}

.anywhere-summary-item--storm {
  border-color: rgba(82, 132, 76, 0.2);
  background: rgba(247, 251, 245, 0.78);
}

.anywhere-summary-label,
.anywhere-summary-detail {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.25;
}

.anywhere-summary-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.anywhere-summary-value {
  margin: 0.18rem 0 0;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.18;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anywhere-summary-detail {
  margin-top: 0.18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anywhere-mode-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 13rem;
  padding: 0.22rem;
  border: 1px solid rgba(20, 36, 51, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.anywhere-mode-toggle button {
  min-height: 2.6rem;
  border: 0;
  border-radius: 999px;
  color: var(--cool-deep);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  background: transparent;
  cursor: pointer;
}

.anywhere-mode-toggle button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--cool-deep), var(--rain));
  box-shadow: 0 8px 18px rgba(47, 88, 123, 0.18);
}

.anywhere-mode-toggle button:focus-visible {
  outline: 3px solid rgba(77, 149, 168, 0.24);
  outline-offset: 3px;
}

.anywhere-mode-help {
  display: flex;
  align-items: center;
  margin: 1rem 0 0.95rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(47, 88, 123, 0.18);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(246, 250, 253, 0.94), rgba(255, 255, 255, 0.78));
}

.anywhere-mode-help__label {
  margin: 0;
  color: var(--cool-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.anywhere-mode-help__text {
  margin: 0.28rem 0 0;
  max-width: 76ch;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.45;
}

.anywhere-mode-advanced [data-anywhere-advanced] {
  border-color: rgba(47, 88, 123, 0.22);
  background:
    linear-gradient(180deg, rgba(241, 247, 249, 0.88), rgba(255, 248, 238, 0.82));
}

.storm-potential-section {
  scroll-margin-top: 6rem;
}

.storm-potential-section .section__header > div {
  flex: 1 1 100%;
  width: 100%;
}

.storm-potential-description {
  width: 100%;
  max-width: none;
  margin: 0.62rem 0 0.55rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.storm-potential-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.storm-potential-card {
  min-width: 0;
  min-height: 132px;
  padding: 0.95rem;
  border: 1px solid rgba(20, 36, 51, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.storm-potential-card--lead {
  grid-column: span 2;
}

.storm-potential-card--minimal {
  border-color: rgba(47, 88, 123, 0.14);
  background: linear-gradient(180deg, rgba(246, 250, 253, 0.94), rgba(255, 255, 255, 0.74));
}

.storm-potential-card--low {
  border-color: rgba(82, 132, 76, 0.2);
  background: linear-gradient(180deg, rgba(239, 248, 235, 0.94), rgba(255, 255, 255, 0.76));
}

.storm-potential-card--medium {
  border-color: rgba(202, 143, 45, 0.26);
  background: linear-gradient(180deg, rgba(255, 246, 218, 0.96), rgba(255, 255, 255, 0.78));
}

.storm-potential-card--high {
  border-color: rgba(190, 95, 54, 0.3);
  background: linear-gradient(180deg, rgba(255, 238, 226, 0.96), rgba(255, 255, 255, 0.78));
}

.storm-potential-card--extreme {
  border-color: rgba(121, 52, 98, 0.32);
  background: linear-gradient(180deg, rgba(249, 231, 245, 0.96), rgba(255, 255, 255, 0.8));
}

.storm-potential-card__label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.storm-potential-card__value {
  margin: 0.45rem 0 0;
  color: var(--ink);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.storm-potential-card--lead .storm-potential-card__value {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.storm-potential-card__detail {
  margin: 0.48rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.storm-source-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.storm-source {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
  padding: 0.72rem 0.78rem;
  border: 1px solid rgba(20, 36, 51, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  text-decoration: none;
}

.storm-source:focus-visible,
.storm-source:hover {
  border-color: rgba(47, 88, 123, 0.28);
  background: rgba(247, 251, 253, 0.92);
}

.storm-source__label {
  font-weight: 800;
  line-height: 1.15;
}

.storm-source__detail {
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.35;
}

.storm-term-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.storm-term {
  min-width: 0;
  padding: 0.72rem 0.78rem;
  border: 1px solid rgba(20, 36, 51, 0.07);
  border-radius: var(--radius-md);
  background: rgba(247, 250, 251, 0.68);
}

.storm-term__title {
  margin: 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.storm-term__definition {
  margin: 0.32rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.35;
}

.storm-details {
  margin-top: 0.9rem;
}

.storm-details[hidden] {
  display: none;
}

.storm-details summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.55rem 0.78rem;
  border: 1px solid rgba(20, 36, 51, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--cool-deep);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.storm-details summary:focus-visible {
  outline: 3px solid rgba(77, 149, 168, 0.24);
  outline-offset: 3px;
}

.storm-details__body {
  margin-top: 0.65rem;
}

.storm-details:not([open]) .storm-details__body {
  display: none;
}

.storm-summary-box {
  margin-top: 0.95rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(47, 88, 123, 0.16);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(247, 251, 253, 0.98), rgba(255, 255, 255, 0.86));
  font-weight: 600;
}

.storm-summary-box:empty {
  display: none;
}

.storm-summary-box h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
}

.storm-summary-box p {
  margin: 0.55rem 0 0;
  max-width: none;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.52;
}

.storm-summary-box strong {
  color: var(--ink);
  font-weight: 800;
}

.storm-summary-box.storm-potential-card--low {
  border-color: rgba(82, 132, 76, 0.22);
  background: linear-gradient(180deg, rgba(239, 248, 235, 0.92), rgba(255, 255, 255, 0.84));
}

.storm-summary-box.storm-potential-card--medium {
  border-color: rgba(202, 143, 45, 0.28);
  background: linear-gradient(180deg, rgba(255, 246, 218, 0.94), rgba(255, 255, 255, 0.84));
}

.storm-summary-box.storm-potential-card--high {
  border-color: rgba(190, 95, 54, 0.32);
  background: linear-gradient(180deg, rgba(255, 238, 226, 0.94), rgba(255, 255, 255, 0.84));
}

.storm-summary-box.storm-potential-card--extreme {
  border-color: rgba(121, 52, 98, 0.34);
  background: linear-gradient(180deg, rgba(249, 231, 245, 0.95), rgba(255, 255, 255, 0.84));
}

.anywhere-status-card {
  min-height: 132px;
}

.anywhere-status-card .weather-brief-card__detail {
  max-width: 62ch;
}

.forecast-card__more {
  margin-top: 0.75rem;
}

.forecast-card__more summary {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.42rem 0.62rem;
  border: 1px solid rgba(20, 36, 51, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--cool-deep);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.forecast-card__more summary:focus-visible {
  outline: 3px solid rgba(77, 149, 168, 0.24);
  outline-offset: 3px;
}

.forecast-card__more .forecast-card__detail {
  margin-top: 0.6rem;
}

.hourly-forecast-actions {
  gap: 0.45rem;
}

.hourly-scroll-button {
  min-width: 2.4rem;
  justify-content: center;
  padding: 0.45rem 0.72rem;
  font-size: 1.2rem;
  line-height: 1;
}

.hourly-scroll-button[disabled] {
  cursor: default;
  opacity: 0.45;
}

.hourly-forecast-strip {
  mask-image: linear-gradient(90deg, transparent 0, #000 1.2rem, #000 calc(100% - 1.2rem), transparent 100%);
}

.radar-section .leaflet-control-attribution a {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

@media (max-width: 1020px) {
  .storm-potential-grid,
  .storm-source-list,
  .storm-term-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.anywhere-has-location {
    padding-bottom: 5.5rem;
  }

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

  .anywhere-location-tools {
    display: grid;
    grid-template-columns: 1fr;
  }

  .anywhere-share-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .anywhere-share-button {
    justify-content: center;
  }

  .anywhere-summary-bar {
    position: relative;
    top: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.5rem;
    border-radius: var(--radius-md);
  }

  .anywhere-summary-item:first-child {
    grid-column: 1 / -1;
  }

  .anywhere-summary-value,
  .anywhere-summary-detail {
    white-space: normal;
  }

  .anywhere-jump-nav {
    position: fixed;
    right: 0.55rem;
    bottom: 0.55rem;
    left: 0.55rem;
    z-index: 60;
    width: auto;
    flex-wrap: nowrap;
    gap: 0.48rem;
    margin: 0;
    padding: 0.5rem;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: var(--radius-lg);
    background: rgba(255, 251, 246, 0.92);
    box-shadow: 0 18px 42px rgba(20, 36, 51, 0.22);
    backdrop-filter: blur(18px);
    mask-image: linear-gradient(90deg, #000 calc(100% - 1.4rem), transparent);
  }

  .dashboard-shell > .anywhere-jump-nav {
    margin: 0;
  }

  .anywhere-jump-nav .weather-jump-nav__link {
    flex: 0 0 auto;
    justify-content: center;
    min-width: 4.25rem;
  }

  .anywhere-mode-simple .anywhere-jump-nav .weather-jump-nav__link {
    flex-basis: auto;
  }

  .anywhere-mode-simple .forecast-grid .forecast-card:nth-child(n + 5),
  .anywhere-mode-simple .hourly-forecast-strip .hourly-forecast-card:nth-child(n + 13),
  .anywhere-mode-simple .storm-details {
    display: none;
  }

  .anywhere-mode-toggle {
    width: 100%;
    min-width: 0;
  }

  .anywhere-mode-help {
    margin-top: 0.85rem;
    padding: 0.78rem 0.82rem;
  }

  .anywhere-mode-help__text {
    font-size: 0.9rem;
  }

  .hourly-forecast-actions {
    display: flex;
    width: auto;
    margin-left: auto;
  }

  .hourly-forecast-actions .icon-button {
    width: 2.4rem;
    min-width: 2.4rem;
  }

  .storm-potential-grid,
  .storm-source-list,
  .storm-term-list {
    grid-template-columns: 1fr;
  }

  .storm-potential-card--lead {
    grid-column: 1 / -1;
  }

  .anywhere-location-panel__button,
  .anywhere-location-panel__current,
  .anywhere-location-panel__clear {
    width: 100%;
  }

  .anywhere-location-panel__clear {
    justify-self: start;
    width: auto;
    min-height: 36px;
    padding: 0.48rem 0.72rem;
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: none;
  }
}

@media print {
  body {
    background: #fff;
  }

  .sky,
  .anywhere-location-panel,
  .anywhere-location-tools,
  .anywhere-jump-nav,
  .anywhere-mode-toggle,
  .anywhere-mode-help,
  .forecast-advanced-action,
  .hourly-forecast-actions,
  .radar-card__frame,
  .radar-card__badges,
  .button,
  .icon-button {
    display: none !important;
  }

  .dashboard-shell {
    width: 100%;
    padding: 0;
  }

  .section,
  .anywhere-summary-bar {
    break-inside: avoid;
    box-shadow: none;
  }

  [data-anywhere-advanced] {
    display: none !important;
  }
}
