/* Almanac Weather - Frontend styles */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap");

:root{
  --font-family-base: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-family-logo: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  --tracking-tight: -0.015em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;

  --line-tight: 1.1;
  --line-heading: 1.2;
  --line-body: 1.55;
  --line-ui: 1.35;

  --text-hero: clamp(1.85rem, 4.6vw, 3rem);
  --text-h1: clamp(1.5rem, 2.8vw, 2rem);
  --text-h2: clamp(1.125rem, 1.8vw, 1.3125rem);
  --text-card-title: clamp(1rem, 1.35vw, 1.125rem);
  --text-nav: 0.9375rem;
  --text-body: 1rem;
  --text-supporting: 0.9375rem;
  --text-meta: 0.8125rem;
  --text-button: 0.9375rem;
  --text-input: 0.9375rem;
  --text-numeric-xl: clamp(2.35rem, 6.5vw, 3.85rem);
  --text-numeric-lg: clamp(1.5rem, 2.4vw, 2rem);
  --text-numeric-md: 1.125rem;

  --bg-top: #071224;
  --bg-mid: #102743;
  --bg-bottom: #1f3452;
  --panel: rgba(10, 21, 41, 0.58);
  --panel-strong: rgba(8, 19, 38, 0.64);
  --panel-border: rgba(196, 221, 252, 0.3);
  --panel-border-shine: rgba(222, 238, 255, 0.5);
  --panel-border-glow: rgba(121, 186, 255, 0.14);
  --text: #f6f9ff;
  --text-soft: rgba(236, 244, 255, 0.9);
  --muted: rgba(198, 214, 234, 0.78);
  --accent: #7fb7ff;
  --accent-soft: rgba(127, 183, 255, 0.18);
  --secondary: #9ac7ff;
  --secondary-soft: rgba(154, 199, 255, 0.7);
  --shadow-soft: 0 10px 24px rgba(2, 9, 20, 0.12);
  --alert-severity-info-bg: linear-gradient(135deg, rgba(123, 165, 218, 0.46), rgba(92, 131, 185, 0.54));
  --alert-severity-info-border: rgba(178, 212, 255, 0.36);
  --alert-severity-watch-bg: linear-gradient(135deg, rgba(240, 168, 77, 0.44), rgba(201, 123, 50, 0.58));
  --alert-severity-watch-border: rgba(255, 203, 136, 0.5);
  --alert-severity-warning-bg: linear-gradient(135deg, rgba(232, 104, 104, 0.52), rgba(178, 71, 71, 0.62));
  --alert-severity-warning-border: rgba(255, 168, 168, 0.56);
  --alert-severity-advisory-bg: linear-gradient(135deg, rgba(202, 153, 238, 0.46), rgba(131, 104, 194, 0.56));
  --alert-severity-advisory-border: rgba(216, 186, 248, 0.52);

  /* Shared spacing scale for layout rhythm */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --brand-logo-min: 214px;
  --brand-logo-max: 324px;
  --brand-logo-preferred: calc(19vw + 160px);
  --grid-cols-mobile: 4;
  --grid-cols-desktop: 8;
  --grid-cols: var(--grid-cols-mobile);
  --grid-gap: 10px;
  --cell-size: 96px;
  --earth-tile-max-height-fallback: 380px;
  --expand-surface-opacity-duration: 190ms;
  --expand-surface-filter-duration: 220ms;
  --expand-underlay-duration: 150ms;
  --expand-surface-filter-ease: ease;
  --expand-underlay-ease: linear;
}

*{ box-sizing:border-box; }

[hidden]{
  display: none !important;
}

html{
  min-height: 100%;
  background-color: #071224;
  background-image: url("/assets/backgrounds/AdobeStockAtmosphere_289079499.jpeg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  /*
    Keep the same atmospheric art on the root scrolling surface so iOS/Android
    pull-to-refresh bounce never reveals a hard color cutoff.
  */
  background-attachment: fixed;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  overscroll-behavior-y: auto;
}

body{
  position: relative;
  isolation:isolate;
  min-height: 100vh;
  overflow-x: hidden;
  margin:0;
  font-family: var(--font-family-base);
  font-size: var(--text-body);
  line-height: var(--line-body);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-normal);
  background: transparent;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (max-width: 767px){
  :root{
    --text-body: 0.96875rem;
    --text-supporting: 0.90625rem;
    --text-meta: 0.78125rem;
  }
}

@media (max-width: 520px){
  :root{
    --brand-logo-min: 152px;
    --brand-logo-preferred: 56vw;
    --brand-logo-max: 220px;
  }
}

h1, h2, h3, h4, h5, h6{
  font-family: var(--font-family-base);
  letter-spacing: var(--tracking-normal);
  line-height: var(--line-heading);
}

p{
  font-size: var(--text-body);
  line-height: var(--line-body);
}

button,
input,
select,
textarea{
  font: inherit;
  letter-spacing: var(--tracking-normal);
}

body::before{
  content:"";
  position:fixed;
  inset:-3vmax;
  background-color:#071224;
  background-image:url("/assets/backgrounds/AdobeStockAtmosphere_289079499.jpeg");
  background-position:center top;
  background-repeat:no-repeat;
  background-size:cover;
  pointer-events:none;
  z-index:-1;
}

body::after{
  content:"";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: min(33vh, 220px);
  background: linear-gradient(180deg, rgba(4, 12, 25, 0.42) 0%, rgba(6, 16, 31, 0.2) 48%, rgba(7, 18, 34, 0) 100%);
  pointer-events: none;
  z-index: -1;
}


a{ color: inherit; }

/* ✅ Desktop padding / centered content
   Your HTML uses <main class="wrap">, so we style .wrap directly.
   (Keeping .container too, just in case it's used elsewhere.)
*/
.wrap,
.container{
  width:100%;
  margin: 0 auto;
  padding: 24px 14px 56px; /* mobile / default */
  max-width: none;         /* mobile can use full width */
}

.policy-page-card{
  max-width: 860px;
  margin: 10px auto 0;
}

.policy-page-card h2{
  margin-top: 1.45em;
}

.policy-page-card h3{
  margin-top: 1.15em;
  font-size: 1.02rem;
}

/* Desktop: constrain width + add larger side gutters */
@media (min-width: 1024px){
  .wrap,
  .container{
    max-width: 1020px;
    padding-top: 30px;
    padding-left: 28px;
    padding-right: 28px;
    padding-bottom: 64px;
  }
}

/* Big desktop: slightly wider cap + even more breathing room (optional but nice) */
@media (min-width: 1280px){
  .wrap,
  .container{
    max-width: 1180px;
    padding-top: 34px;
    padding-left: 36px;
    padding-right: 36px;
    padding-bottom: 70px;
  }
}

@media (min-width: 1024px){
  :root{
    --grid-cols: var(--grid-cols-desktop);
    --grid-gap: 12px;
  }

  .shoe-main{
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0;
  }

  .shoe-icon-img{
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
  }

  .shoe-meta-row{
    justify-content: flex-start;
    align-items: center;
    min-height: 58px;
  }

  .shoe-sub{
    margin-top: 2px;
  }

  .today-rows{
    gap: 0;
  }

  .today-row{
    grid-template-columns: 1fr 56px 30px minmax(48px, max-content);
    column-gap: 3px;
    row-gap: 2px;
    padding: 0 12px 0 2px;
    height: 100%;
  }

  .today-short{
    -webkit-line-clamp: 1;
    min-height: 1.25em;
  }

  .today-temp{
    padding-left: 6px;
    padding-right: 4px;
  }

  .sun-arc{
    height: 124px;
  }

  .moon-wrap{
    min-height: 84px;
  }

  .moon-image{
    max-width: 128px;
  }

  .current-temp{
    font-size: 40px;
  }

  .wx-icon{
    font-size: 62px;
  }

  .wind-tile{
    padding: 10px;
  }

  .wind-tile-main{
    gap: 6px;
  }

  .wind-tile-preview{
    width: 62px;
    height: 62px;
  }

  .wind-tile-speed{
    font-size: 16px;
  }
}

@media (min-width: 1280px){
  :root{
    --grid-gap: 14px;
  }
}

@media (min-width: 1024px) and (max-width: 1279px){
  .moon-image{
    max-width: 108px;
  }
}

@media (min-width: 1024px){
  .grid > section{
    height: auto;
    min-width: 0;
  }

  /* Keep right-column cards vertically balanced without per-card nudges */
  #windCard .card-body,
  #shoeCard .card-body,
  #sunCard .card-body,
  #moonCard .card-body,
  #earthCard .card-body{
    height: 100%;
  }
}


.grid{
  display:grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  grid-auto-rows: var(--cell-size);
  gap: var(--grid-gap);
  align-items: start;
  grid-auto-flow: row dense;
}

.grid > section{
  grid-column: span 4;
  grid-row: span 1;
  height: 100%;
  min-height: 0;
}

.grid > section[data-w="1"]{ grid-column: span 1; }
.grid > section[data-w="2"]{ grid-column: span 2; }
.grid > section[data-w="3"]{ grid-column: span 3; }
.grid > section[data-w="4"]{ grid-column: span 4; }

.grid > section[data-h="1"]{ grid-row: span 1; }
.grid > section[data-h="2"]{ grid-row: span 2; }
.grid > section[data-h="3"]{ grid-row: span 3; }
.grid > section[data-h="4"]{ grid-row: span 4; }
.grid > section[data-h="5"]{ grid-row: span 5; }
.grid > section[data-h="6"]{ grid-row: span 6; }
.grid > section[data-h="7"]{ grid-row: span 7; }
.grid > section[data-h="8"]{ grid-row: span 8; }
.grid > section[data-h="9"]{ grid-row: span 9; }
.grid > section[data-h="10"]{ grid-row: span 10; }
.grid > section[data-h="11"]{ grid-row: span 11; }
.grid > section[data-h="12"]{ grid-row: span 12; }
.grid > section[data-h="13"]{ grid-row: span 13; }
.grid > section[data-h="14"]{ grid-row: span 14; }
.grid > section[data-h="15"]{ grid-row: span 15; }
.grid > section[data-h="16"]{ grid-row: span 16; }
.grid > section[data-h="17"]{ grid-row: span 17; }
.grid > section[data-h="18"]{ grid-row: span 18; }
.grid > section[data-h="19"]{ grid-row: span 19; }
.grid > section[data-h="20"]{ grid-row: span 20; }
.grid > section[data-h="21"]{ grid-row: span 21; }
.grid > section[data-h="22"]{ grid-row: span 22; }
.grid > section[data-h="23"]{ grid-row: span 23; }
.grid > section[data-h="24"]{ grid-row: span 24; }

@media (min-width: 1024px){
  .grid > section[data-w="1"]{ grid-column: span 2; }
  .grid > section[data-w="2"]{ grid-column: span 4; }
  .grid > section[data-w="3"]{ grid-column: span 6; }
  .grid > section[data-w="4"]{ grid-column: span 8; }

  /* Desktop-only tile order */
  #currentCard{ order: 1; }
  #sunCard{ order: 2; }
  #todayCard{ order: 3; }
  #moonCard{ order: 4; }
  #hourlyCard{ order: 5; }
  #windCard{ order: 6; }
  #shoeCard{ order: 7; }
  #graphsCard{ order: 8; }
  #earthCard{ order: 9; }
  #dailyCard{ order: 10; }
}

@media (max-width: 767px){
  .grid{
    grid-template-columns: repeat(var(--grid-cols-mobile), minmax(0, 1fr));
    grid-auto-rows: var(--cell-size);
  }

  /* Mobile keeps a 4-col system; convert design widths to useful spans:
     w=2 -> full row, w=1 -> half row. */
  .grid > section[data-w="1"]{ grid-column: span 2; }
  .grid > section[data-w="2"]{ grid-column: span 4; }
  .grid > section[data-w="3"]{ grid-column: span 4; }
  .grid > section[data-w="4"]{ grid-column: span 4; }
}

.top{
  display:flex;
  align-items:center;
  margin-bottom: 18px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 10px 14px;
  background: transparent;
}

.top-row{
  display:grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items:center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  gap: 12px;
}

.search-row{
  width: 100%;
  margin: 0 0 14px;
}

@media (min-width: 900px){
  .top{
    padding-left: 28px;
    padding-right: 28px;
  }
}

@media (min-width: 1200px){
  .top{
    padding-left: 36px;
    padding-right: 36px;
  }
}

.top-col{
  min-width: 0;
}

.top-row-simple{
  grid-template-columns: minmax(0, 1fr) auto;
}

.top-col-brand{
  grid-column: 2;
  justify-self: center;
}

.top-col-menu{
  grid-column: 3;
  justify-self: end;
  align-self: center;
}

.header-menu{
  position: relative;
  display: inline-block;
  z-index: 35;
}

.header-menu-btn{
  list-style: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(204, 228, 253, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(160deg, rgba(15, 39, 66, 0.6), rgba(8, 21, 39, 0.52));
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(242, 250, 255, 0.26),
    0 10px 18px rgba(5, 16, 31, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: filter 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.header-menu-btn::-webkit-details-marker{
  display: none;
}

.header-menu-btn-icon{
  width: 16px;
  display: grid;
  gap: 3px;
}

.header-menu-btn-sliver{
  width: 100%;
  height: 1.5px;
  border-radius: 3px;
  border: 0;
  background: rgba(235, 245, 255, 0.9);
  box-shadow: 0 0 0 0.6px rgba(191, 220, 250, 0.32);
}

.header-menu-btn:hover{
  filter: brightness(1.06);
  border-color: rgba(212, 232, 255, 0.5);
}

.header-menu-btn:hover .header-menu-btn-sliver{
  background: rgba(243, 250, 255, 0.95);
}

.header-menu-btn:active{
  filter: brightness(1.14);
  background: linear-gradient(160deg, rgba(20, 50, 82, 0.66), rgba(9, 24, 45, 0.58));
}

.header-menu-btn:active .header-menu-btn-sliver{
  background: rgba(249, 252, 255, 0.98);
}

.header-menu-btn:focus-visible{
  outline: 2px solid rgba(156, 205, 255, 0.9);
  outline-offset: 3px;
}

.header-menu-panel{
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 210px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(8, 19, 38, 0.88);
  box-shadow: 0 14px 24px rgba(1, 6, 15, 0.36);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-menu-link{
  display: block;
  width: 100%;
  white-space: nowrap;
  border-radius: 8px;
  padding: 8px 10px;
  color: rgba(245, 250, 255, 0.95);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  text-align: left;
}

.header-menu-link:hover,
.header-menu-link:focus-visible{
  background: rgba(154, 199, 255, 0.2);
  outline: none;
}

.header-menu-action{
  border: 0;
  background: transparent;
  cursor: pointer;
}

.card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.card-head-split{
  align-items:flex-end;
}

.hint{
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.brand{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.brand-logo{
  width: clamp(var(--brand-logo-min), var(--brand-logo-preferred), var(--brand-logo-max));
  height: auto;
  display: block;
  filter: brightness(1.38) saturate(1.05) drop-shadow(0 2px 10px rgba(49, 96, 143, 0.3));
}
.brand .logo{
  width:36px;
  height:36px;
  border-radius:10px;
  background: linear-gradient(135deg, rgba(140,200,255,0.55), rgba(255,220,160,0.30));
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.brand h1{
  font-size: 18px;
  margin:0;
  letter-spacing: 0.2px;
}
.brand .sub{
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

#statusBar{
  margin: 8px 0 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(7, 17, 33, 0.62);
  border: 1px solid var(--panel-border);
  color: var(--text-soft);
  font-weight: 650;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#statusBar.status-loading{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#statusBar.status-loading::before{
  content: "";
  width: 18px;
  height: 18px;
  border: 1px solid rgba(63, 147, 221, 0.35);
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  box-shadow: inset 0 0 0 2px rgba(63, 147, 221, 0.12);
  flex: 0 0 auto;
}

#statusBar.status-loading::after{
  content: "";
  width: 2px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(63, 147, 221, 0.95), rgba(63, 147, 221, 0.55));
  position: absolute;
  left: 20px;
  top: 50%;
  margin-top: -8px;
  transform-origin: 50% calc(100% - 1px);
  animation: status-compass-spin 900ms linear infinite;
}

@keyframes status-compass-spin{
  to{
    transform: rotate(360deg);
  }
}

#statusBar:empty{
  display:none;
}

.loading-shell{
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.loading-shell-row{
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 640px){
  .loading-shell-row{ grid-template-columns: 1fr; }
}

.loading-shell-card{
  min-height: 140px;
  border-radius: 24px;
  border: 1px solid rgba(174, 210, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.14) 45%, rgba(255,255,255,0.06) 100%),
    rgba(8, 19, 38, 0.6);
  background-size: 200% 100%;
  animation: shell-shimmer 1200ms linear infinite;
}

.loading-shell-card-lg{ min-height: 200px; }
.loading-shell-card-md{ min-height: 120px; }

@keyframes shell-shimmer{
  from{ background-position: 200% 0, 0 0; }
  to{ background-position: -200% 0, 0 0; }
}

.card{
  position: relative;
  background: var(--panel-strong);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: var(--space-4);
  box-shadow: var(--shadow-soft);
  margin-top: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow: hidden;
}

.card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 var(--panel-border-shine),
    inset 0 0 0 1px rgba(208, 230, 255, 0.18),
    0 0 0 1px rgba(124, 185, 255, 0.14),
    0 10px 24px rgba(20, 69, 122, 0.18),
    0 0 20px -10px var(--panel-border-glow);
}

.card[data-expandable="true"],
.today-period[data-expandable="true"],
.hour-card[data-expandable="true"],
.hour-card[data-flippable="true"],
.daypart-card[data-flippable="true"]{
  touch-action: manipulation;
}

.card[data-expandable="true"]:focus-visible,
.today-period[data-expandable="true"]:focus-visible,
.hour-card[data-expandable="true"]:focus-visible,
.hour-card[data-flippable="true"]:focus-visible,
.daypart-card[data-flippable="true"]:focus-visible{
  outline: 2px solid rgba(120,180,255,0.7);
  outline-offset: 2px;
}

.tile-details{
  display:none;
  margin-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 10px;
}

.is-expanded > .card-body > .tile-details,
.hour-card.is-expanded > .tile-details{
  display:block;
}

.tile-reveal-surface{
  position: relative;
  z-index: 2;
  opacity: 1;
  filter: blur(0);
  transition: opacity var(--expand-surface-opacity-duration) linear, filter var(--expand-surface-filter-duration) var(--expand-surface-filter-ease);
}

.tile-reveal-underlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  filter: blur(4px);
  transition: opacity var(--expand-underlay-duration) var(--expand-underlay-ease), filter var(--expand-underlay-duration) var(--expand-underlay-ease);
  padding: inherit;
  overflow: hidden;
}

.card.is-expanded > .card-body > .tile-reveal-surface{
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}

.card.is-expanded > .card-body > .tile-reveal-underlay{
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
}

.card.is-expanded > .card-body > .tile-reveal-underlay > .tile-details{
  display: block;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

.card.is-expanded > .card-body > .tile-reveal-underlay > .tile-details .tile-detail-row{
  align-items: flex-start;
}

.card.is-expanded > .card-body > .tile-reveal-underlay > .tile-details .tile-detail-label{
  white-space: normal;
  overflow-wrap: anywhere;
}

.card.is-expanded > .card-body > .tile-reveal-underlay > .tile-details .tile-detail-value{
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
}

.today-period .tile-details{
  display:block;
}

.today-period.is-expanded .tile-details{
  display:block;
}

.today-short-expanded{
  margin: 0 0 10px;
  color: var(--text);
  font-size: inherit;
  font-weight: 400;
  line-height: 1.25;
  display: block;
  overflow-wrap: anywhere;
}

.tile-detail-row{
  display:flex;
  justify-content:space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
}

.tile-detail-row:first-child{
  margin-top: 0;
}

.tile-detail-label{
  color: rgba(255,255,255,0.74);
  white-space: nowrap;
}

.tile-detail-value{
  font-weight: 750;
}

.tile-detail-value-fixed{
  min-width: 52px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tile-details-caption{
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(219, 234, 253, 0.86);
  margin-bottom: 8px;
}

#currentCard.is-expanded .tile-details-rows{
  display: flex;
  flex-direction: column;
  gap: 1px;
}

#currentCard.is-expanded .tile-detail-row{
  margin-top: 0;
  min-height: 16px;
  align-items: center;
}

#currentCard .current-underlay .tile-detail-row,
.today-period .tile-details .tile-detail-row{
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.12;
}

#currentCard .current-underlay .tile-detail-row:first-child,
.today-period .tile-details .tile-detail-row:first-child{
  margin-top: 0;
}

.today-period .tile-details .tile-details-rows{
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.today-period .today-underlay .tile-details{
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  column-gap: 12px;
  align-items: center;
}

.today-period .today-underlay-copy{
  min-width: 0;
}

.today-period .today-underlay-copy .today-short-expanded{
  margin: 0;
}

.today-period .today-underlay-metrics{
  justify-self: end;
  min-width: 0;
}

.today-period .today-underlay-metrics .tile-details-rows{
  align-items: flex-start;
  gap: 2px;
}

.today-period .today-underlay-metrics .tile-detail-row{
  min-width: 120px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  margin-top: 0;
  line-height: 1.08;
}

.today-period .today-underlay-metrics .tile-detail-value-fixed{
  min-width: 0;
  text-align: left;
}

.card h2{
  margin: 0;
}

.card-body{
  min-height: 0;
}

.card[data-expandable="true"] > .card-body{
  position: relative;
}

#graphsCard .card-body{
  padding-bottom: 6px;
}

.row{
  display:flex;
  gap:12px;
  align-items:center;
}

#zipForm{
  display:flex;
  gap: 6px;
  align-items:center;
  position: relative;
  width: 100%;
  border-radius: 999px;
  padding: 7px 8px 7px 14px;
  background: linear-gradient(160deg, rgba(10, 24, 46, 0.78), rgba(4, 12, 24, 0.82));
  border: 1px solid rgba(190, 212, 240, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(250, 255, 255, 0.24),
    0 8px 20px rgba(4, 15, 32, 0.26);
}

#zipInput{
  width: 100%;
  flex: 1 1 auto;
  min-height: 36px;
  padding: 8px 6px 8px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  font-weight: 700;
  letter-spacing: 0.25px;
}

#zipInput::placeholder{
  color: rgba(206, 222, 243, 0.72);
}

#zipInput:focus,
#zipInput:focus-visible{
  background: transparent;
}

#zipBtn{
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(231, 244, 255, 0.95);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  box-shadow: none;
  transition: background-color 150ms ease, transform 150ms ease, color 150ms ease;
}

#zipBtn::before{
  content: "";
  position: absolute;
  left: -4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(187, 214, 245, 0.12), rgba(187, 214, 245, 0.42), rgba(187, 214, 245, 0.12));
}

#zipBtn:hover{
  background: rgba(161, 210, 255, 0.12);
  color: rgba(242, 250, 255, 0.98);
}

#zipBtn:active{
  transform: scale(0.97);
  background: rgba(137, 194, 250, 0.12);
}

#zipBtn:focus-visible{
  outline: 2px solid rgba(147, 198, 255, 0.88);
  outline-offset: 2px;
}

.zip-btn-icon{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
#zipBtn:disabled{
  opacity: 0.55;
  cursor: default;
}


.location-suggestions{
  position:absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  list-style:none;
  margin: 0;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 14px 30px rgba(76, 119, 161, 0.2);
  z-index: 30;
}

@media (max-width: 900px){
  .top{
    margin-bottom: 24px;
    padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px 0;
  }

  .top-row{
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 14px;
  }

  .top-col-brand{
    justify-self: center;
    width: auto;
  }

  .top-col-menu{
    align-self: center;
  }

  .search-row{
    margin-bottom: 18px;
  }

  #zipForm{
    gap: 6px;
    padding: 6px 7px 6px 12px;
    border: 1px solid rgba(192, 214, 241, 0.2);
    background: linear-gradient(160deg, rgba(9, 23, 44, 0.66), rgba(5, 14, 28, 0.7));
    box-shadow:
      inset 0 1px 0 rgba(248, 253, 255, 0.18),
      0 6px 16px rgba(4, 14, 30, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  #zipInput{
    min-height: 34px;
    padding: 7px 6px 7px 0;
    font-weight: 650;
  }

  #zipInput::placeholder{
    color: rgba(210, 226, 245, 0.68);
  }

  #zipBtn{
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  #zipBtn:hover{
    background: rgba(157, 207, 255, 0.12);
  }

  #zipBtn:active{
    background: rgba(139, 194, 249, 0.11);
  }
}

.location-suggestion-item{
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
}

.location-suggestion-item.is-active,
.location-suggestion-item:hover{
  background: var(--accent-soft);
}

/* CURRENT */
.current-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.current-copy{
  min-width: 0;
  max-width: min(100%, calc(100% - 170px));
}
.current-temp{
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.4px;
}
.current-desc{
  margin-top: 2px;
  color: var(--text-soft);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.current-meta{
  margin-top: 8px;
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
  display: grid;
  gap: 2px;
}

.current-meta-line{
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.current-meta-icon{
  width: 15px;
  height: 15px;
  display: inline-block;
  flex: 0 0 auto;
}

.current-meta-icon--wind{
  opacity: 0.9;
}
.wx-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 74px;
  line-height: 0.9;
  user-select:none;
}

.current-wx-icon{
  font-size: 88.8px; /* 20% larger than default weather icon size */
}

.wx-icon-img{
  width: 1em;
  height: 1em;
  display: block;
}

.wx-icon-img--weather{
  width: 1.43em;
  height: 1.43em;
}

#currentCard{
  position: relative;
}

#currentCard .card-body,
#currentContent{
  position: relative;
  overflow: hidden;
}

#currentCard.is-expanded .card-body{
  min-height: 176px;
}

.current-surface{
  position: relative;
  z-index: 2;
  overflow: hidden;
  opacity: 1;
  filter: blur(0);
  transition: opacity var(--expand-surface-opacity-duration) linear, filter var(--expand-surface-filter-duration) var(--expand-surface-filter-ease);
}

#currentCard.is-expanded .current-surface{
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}

.current-underlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  pointer-events: none;
  opacity: 0;
  filter: blur(4px);
  transition: opacity var(--expand-underlay-duration) var(--expand-underlay-ease), filter var(--expand-underlay-duration) var(--expand-underlay-ease);
}

#currentCard.is-expanded .current-underlay{
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
}

.current-underlay .tile-details{
  display: block;
  width: 100%;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

#currentCard.is-expanded .current-underlay .tile-details{
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

#currentCard .current-underlay .tile-details .tile-detail-label,
#currentCard .current-underlay .tile-details .tile-detail-value{
  line-height: 1.08;
}

.current-wx-icon{
  position: absolute;
  top: var(--current-icon-locked-top, 50%);
  right: 26px;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Alerts */
.alerts{
  margin-top: 0;
  display:flex;
  flex-direction: column;
  gap:6px;
  width: 100%;
}
.alert-pill{
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 12px;
  min-height: 46px;
  border-radius: 999px;
  background: var(--alert-severity-info-bg);
  border: 1px solid var(--alert-severity-info-border);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
  text-align: left;
  cursor: pointer;
}

.alert-pill--watch,
.alert-chip--watch{
  background: var(--alert-severity-watch-bg);
  border-color: var(--alert-severity-watch-border);
}

.alert-pill--warning,
.alert-chip--warning{
  background: var(--alert-severity-warning-bg);
  border-color: var(--alert-severity-warning-border);
}

.alert-pill--advisory,
.alert-chip--advisory{
  background: var(--alert-severity-advisory-bg);
  border-color: var(--alert-severity-advisory-border);
}

.alert-chip{
  appearance: none;
  border: 1px solid var(--alert-severity-info-border);
  background: var(--alert-severity-info-bg);
  color: var(--text);
  border-radius: 999px;
  min-height: 28px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  max-width: min(54vw, 180px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

#currentCard .card-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* HOURLY */
.row-scroll{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding-bottom: 6px;
}
.hour-card{
  min-width: 120px;
  height: 142px;
  background: transparent;
  border: 0;
  border-radius: 16px;
  padding: 0;
  perspective: 900px;
  cursor: pointer;
}
.hour-flip{
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 260ms ease;
}
.hour-card.is-flipped .hour-flip{
  transform: rotateY(180deg);
}
.hour-face{
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(198,225,255,0.24);
  border-radius: 16px;
  padding: 8px 7px;
  backface-visibility: hidden;
  box-shadow:
    inset 0 1px 0 rgba(236, 244, 255, 0.32),
    0 6px 14px rgba(41, 86, 128, 0.16),
    0 0 0 1px rgba(114, 178, 255, 0.14);
}
.hour-back{
  transform: rotateY(180deg);
  overflow: hidden;
}
.tile-details-back{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 4px;
  row-gap: 5px;
  align-items: baseline;
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}
.tile-details-back .tile-details-rows{
  display: contents;
}
.tile-details-back .tile-detail-row{
  display: contents;
}
.tile-details-back .tile-detail-label,
.tile-details-back .tile-detail-value{
  margin-top: 0;
}
.tile-details-back .tile-detail-value{
  text-align: right;
  white-space: nowrap;
}

.tile-details-back .tile-detail-label{
  min-width: 0;
  white-space: nowrap;
}

.tile-details-back .tile-detail-label,
.tile-details-back .tile-detail-value{
  font-size: 11px;
}
.hour-time{
  font-weight: 900;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.hour-day{
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
}
.hour-temp{
  margin-top: 6px;
  font-weight: 950;
  font-size: 22px;
}
.hour-desc{
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  min-height: 32px;
}
.hour-meta{
  margin-top: 8px;
  display:flex;
  gap:8px;
  align-items:center;
}

.hour-load-more{
  min-width: 120px;
  height: 142px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.92);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:10px;
  cursor:pointer;
  padding: 10px;
}
.hour-load-arrow{ font-size: 28px; font-weight: 800; line-height: 1; }
.hour-load-text{ font-size: 12px; font-weight: 700; text-align: center; }

/* DAILY */
.daily-list{ padding:6px; }

.day-details{
  border-bottom:1px solid rgba(255,255,255,0.08);
}

/* ✅ FIX: Weather emoji stays in its own column even if precip is missing */
.day-summary{
  list-style:none;
  cursor:pointer;
  padding:12px 12px;

  display:grid;

  /* left | precip | icon | temps */
  grid-template-columns:minmax(0, 1fr) 56px 34px 92px;

  column-gap:10px;
  align-items:center;

  min-height:84px;
}

/* Keep lane proportions readable on very narrow mobile previews. */
@media (max-width: 380px){
  .day-summary{
    grid-template-columns:minmax(0, 1fr) 50px 30px 82px;
    column-gap:8px;
    padding:12px 10px;
  }
  .day-summary .precip{
    width:50px;
  }
  .day-temp{
    padding-left:8px;
  }
}

.day-left{
  grid-column:1;
  min-width:0;
  display:grid;
  grid-template-rows:auto auto auto;
  row-gap:4px;
  align-content:center;
}

/* Left text */
.day-name{
  font-weight:900;
  font-size:18px;
  line-height:1.15;
  min-width:0;
}

/* Forecast tiles: show short forecast on desktop by default */
#dailyCard .day-short{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile: hide the short forecast line */
@media (max-width: 767px){
  #dailyCard .day-short{
    display:none;
  }
}


.day-date{
  color:rgba(255,255,255,0.72);
  font-size:12px;
  font-weight:700;
  min-width:0;
}

.day-short{
  color:var(--muted);
  min-width:0;

  line-height:1.2;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Precip column (reserved lane; stack droplet over percent if split into elements by JS) */
.day-summary .precip{
  grid-column:2;
  justify-self:center;
  width:56px;
  text-align:center;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  line-height:1.05;
}

/* Reserve the precip lane (hide content, keep spacing) */
.day-summary .precip.is-hidden{
  visibility:hidden; /* keep the space, hide the content */
}

/* 💧 ~20% smaller (covers common markup patterns) */
.day-summary .precip > :first-child,
.day-summary .precip .drop,
.day-summary .precip .precip-emoji,
.day-summary .precip .emoji{
  font-size:0.8em;
  line-height:1;
}

/* ✅ Primary daily icon selector */
.day-summary .wx-icon{
  grid-column:3;
  justify-self:center;
  width:40px;
  text-align:center;

  /* ✅ Enlarge daily weather emoji by ~20% */
  font-size:29px; /* was 24px */
  line-height:1;
}

/* Temps column */
.day-temp{
  grid-column:4;
  justify-self:start;
  padding-left:10px;
  text-align:left;
  font-weight:950;
  font-size:18px;
  white-space:nowrap;
  font-variant-numeric: tabular-nums;
}

.day-low{
  color:var(--muted);
  font-weight:850;
}

.day-detail{
  padding:2px 12px 14px;
  color:var(--muted);
  font-size:14px;
}

.daily-toggle-wrap{
  padding: 8px 12px 0;
}

.daily-toggle{
  border: 1px solid rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.dn-title{
  font-weight:900;
  font-size:12px;
  text-transform:uppercase;
  color:rgba(255,255,255,0.8);
}

.dn-text{
  margin-top:6px;
  padding-bottom: 4px;
}

.dn-text::after{
  content:"";
  display:block;
  margin-top: 8px;
  width: 40%;
  min-width: 84px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.daypart-grid{
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.daypart-card{
  background: transparent;
  border: 0;
  border-radius: 14px;
  padding: 0;
  min-height: 170px;
  perspective: 900px;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.daypart-card-static{
  cursor: default;
  perspective: none;
}

.daypart-card-static .daypart-face{
  position: relative;
  min-height: 170px;
}

.daypart-flip{
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 260ms ease;
}

.daypart-card.is-flipped .daypart-flip{
  transform: rotateY(180deg);
}

.daypart-face{
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(198,225,255,0.24);
  border-radius: 14px;
  padding: 10px 10px 6px;
  backface-visibility: hidden;
  box-shadow:
    inset 0 1px 0 rgba(236, 244, 255, 0.3),
    0 0 0 1px rgba(114, 178, 255, 0.12);
}

.daypart-back{
  transform: rotateY(180deg);
}

.daypart-head{
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 6px;
}

.daypart-icon{
  font-size: 20px;
  line-height: 1;
}

.daypart-precip{
  justify-self: end;
  font-size: 12px;
  font-weight: 800;
}

.daypart-front .dn-text{
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.daypart-front .dn-text::after{
  display: none;
}

.daypart-back-title{
  font-weight: 850;
  font-size: 12px;
  color: rgba(255,255,255,0.84);
  margin-bottom: 8px;
}

.daypart-stats .tile-detail-row{
  margin-top: 5px;
  font-size: 12px;
}

.daypart-empty{
  margin-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.72);
}

.day-stats-separator{
  margin-top: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

@media (max-width: 767px){
  .daypart-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.detail-meta{
  margin-top:10px;
  font-weight:800;
  font-size:13px;
  color:rgba(255,255,255,0.82);
}

#todayCard{
  isolation: isolate;
}

#todayCard::after{
  content:"";
  position:absolute;
  left: var(--space-4);
  right: var(--space-4);
  top: 50%;
  border-top: 1px solid rgba(255,255,255,0.12);
  pointer-events:none;
  z-index: 1;
}

#todayContent{
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

/* ✅ OUTLOOK (Forecast rows) — fixed 4-lane layout */
.today-rows{
  position: relative;
  display:grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap:0;
  padding: 0;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  z-index: 2;
}

.today-rows::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  border-top:1px solid rgba(255,255,255,0.12);
  pointer-events:none;
}

.today-period{
  position: relative;
  display:flex;
  align-items:stretch;
  min-height:0;
  padding: 6px 0;
}

.today-period + .today-period{
  border-top:0;
}

.today-main{
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 1;
  filter: blur(0);
  transition: opacity var(--expand-surface-opacity-duration) linear, filter var(--expand-surface-filter-duration) var(--expand-surface-filter-ease);
}

.today-period.is-expanded .today-main{
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}

.today-underlay{
  position: absolute;
  inset: 6px 0;
  z-index: 1;
  width: 100%;
  height: calc(100% - 12px);
  pointer-events: none;
  opacity: 0;
  filter: blur(4px);
  transition: opacity var(--expand-underlay-duration) var(--expand-underlay-ease), filter var(--expand-underlay-duration) var(--expand-underlay-ease);
}

.today-period.is-expanded .today-underlay{
  opacity: 1;
  filter: blur(0);
}

.today-row{
  display:grid;

  /* left | precip | icon | temp */
  grid-template-columns: minmax(0, 1fr) 58px 36px minmax(48px, max-content);

  grid-template-areas:
    "left precip icon temps";

  column-gap:3px;
  row-gap:6px;
  padding: 0 10px 0 2px;
  align-items:center;
  min-height: 100%;
  width: 100%;
}

.today-row .today-left{
  grid-area: left;
  min-width: 0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.today-name{
  margin: 0;
  font-weight: var(--weight-medium);
  font-size: var(--text-h2);
  line-height: var(--line-heading);
  letter-spacing: var(--tracking-tight);
  min-width:0;
}

/* outlook description not bold */
.today-short{
  margin: 0;
  color:var(--text);
  font-weight:400;
  line-height:1.25;
  min-height: calc(2 * 1.25em);
  min-width:0;
  overflow-wrap:anywhere;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.today-precip{
  grid-area:precip;
  justify-self:center;
  align-self:center;
  width:58px;
  text-align:center;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  line-height:1.05;
}

.today-precip.is-hidden{
  visibility:hidden; /* keep the space, hide the content */
}

.today-precip .drop{
  font-size:0.8em;
  line-height:1;
}

.today-icon{
  grid-area:icon;
  justify-self:center;
  align-self:center;
  width:36px;
  text-align:center;
  font-size:31px;
  line-height:1;
  user-select:none;
}

.today-temp{
  grid-area:temps;
  justify-self:end;
  align-self:center;
  padding-right:0;
  text-align:right;
  min-width:44px;

  font-weight:950;
  font-size:18px;
  white-space:nowrap;
  font-variant-numeric: tabular-nums;
}

.today-period .tile-details{
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
  width: 100%;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  filter: blur(4px);
  transform: translateY(-2px);
  pointer-events: none;
  transition:
    max-height var(--expand-surface-filter-duration) var(--expand-surface-filter-ease),
    opacity var(--expand-surface-opacity-duration) linear,
    filter var(--expand-surface-filter-duration) var(--expand-surface-filter-ease),
    transform var(--expand-surface-filter-duration) var(--expand-surface-filter-ease);
}

.today-period.is-expanded .tile-details{
  max-height: 200px;
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  pointer-events: auto;
}

/* Keep outlook lanes readable on very narrow mobile previews. */
@media (max-width: 380px){
  .today-row{
    grid-template-columns: minmax(0, 1fr) 50px 32px minmax(44px, max-content);
    column-gap:3px;
    padding: 0 10px 0 2px;
  }

  .today-precip{
    width:50px;
  }
}

@media (prefers-reduced-motion: reduce){
  .today-main,
  .today-underlay,
  .today-period .tile-details{
    transition: none;
    filter: none;
    transform: none;
  }
}

.wind-tile{
  width:100%;
  border:1px solid transparent;
  border-radius:14px;
  padding:12px;
  text-align:left;
  color:var(--text);
  background:transparent;
}

.wind-tile-main{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}

.wind-tile-preview{
  position:relative;
  width:74px;
  height:74px;
  flex:0 0 auto;
  border-radius:999px;
  background: radial-gradient(circle at 45% 35%, rgba(255,255,255,0.18), rgba(255,255,255,0.03));
}

.wind-tile-ring{
  position:absolute;
  inset:0;
  border-radius:999px;
  border:2px solid rgba(160,205,255,0.55);
}

.wind-tile-mark{
  position:absolute;
  font-size:10px;
  font-weight:800;
  color:rgba(220,236,255,0.9);
}

.wind-tile-mark-n{ top:4px; left:50%; transform:translateX(-50%); }
.wind-tile-mark-e{ right:6px; top:50%; transform:translateY(-50%); }
.wind-tile-mark-s{ bottom:4px; left:50%; transform:translateX(-50%); }
.wind-tile-mark-w{ left:6px; top:50%; transform:translateY(-50%); }

.wind-tile-arrow{
  position:absolute;
  left:50%;
  bottom:50%;
  width:3px;
  height:24px;
  transform-origin:50% 100%;
  background:linear-gradient(to top, rgba(255,147,86,0.15), #ff9356);
  border-radius:8px;
}

.wind-tile-arrow::before{
  content:"";
  position:absolute;
  left:50%;
  top:-8px;
  transform:translateX(-50%);
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-bottom:10px solid #ff9356;
}

.wind-tile-core{
  position:absolute;
  left:50%;
  top:50%;
  width:8px;
  height:8px;
  border-radius:999px;
  transform:translate(-50%, -50%);
  background:#d7ebff;
  box-shadow:0 0 0 2px rgba(11,16,32,0.7);
}

.wind-tile-values{
  min-width:0;
  text-align:center;
}

.wind-tile-speed{
  font-size:18px;
  font-weight:900;
  line-height:1.1;
}

body.is-modal-open .wind-tile-speed{
  font-size:16px;
}


.wind-tile-gust{
  margin-top:2px;
  font-size:12px;
  color:rgba(255,255,255,0.75);
}



.earth-tile{
  display:grid;
  gap:10px;
  justify-items:center;
}


.earth-tile-image{
  width:min(100%, var(--earth-max-height, var(--earth-tile-max-height-fallback)));
  max-height:var(--earth-max-height, var(--earth-tile-max-height-fallback));
  display:block;
  border-radius:50%;
  border:0;
  background:transparent;
  aspect-ratio:1/1;
  object-fit:cover;
}

.earth-tile-meta{
  font-size:12px;
  color:rgba(255,255,255,0.72);
  text-align:center;
}

.earth-tile-description{
  font-size:13px;
  line-height:1.45;
  color:rgba(255,255,255,0.9);
  text-align:left;
}

.earth-tile-description p{
  margin:0;
}

.earth-tile-description p + p{
  margin-top:8px;
}

.earth-tile-description a{
  color:#8fd4ff;
  text-decoration:underline;
}

.wind-compass-modal{
  position:fixed;
  inset:0;
  background:rgba(5,8,20,0.7);
  backdrop-filter: blur(2px);
  z-index:999;
  padding:18px;
}

.wind-compass-dialog{
  position:relative;
  max-width:360px;
  margin:8vh auto 0;
  border-radius:20px;
  padding:16px;
  background:#0d1738;
  border:1px solid rgba(255,255,255,0.16);
  box-shadow:0 16px 32px rgba(0,0,0,0.35);
}

.wind-compass-close{
  position:absolute;
  top:8px;
  right:10px;
  border:0;
  border-radius:999px;
  width:32px;
  height:32px;
  font-size:24px;
  line-height:1;
  color:rgba(255,255,255,0.85);
  background:transparent;
}

.wind-compass-title{
  font-weight:850;
  font-size:20px;
}

.wind-compass-subtitle{
  margin-top:6px;
  font-size:14px;
  color:rgba(255,255,255,0.82);
}

.wind-compass{
  position:relative;
  width:220px;
  height:220px;
  margin:16px auto 12px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,0.30);
  background: radial-gradient(circle at 45% 35%, rgba(255,255,255,0.18), rgba(255,255,255,0.02));
  box-shadow: inset 0 0 30px rgba(0,0,0,0.32);
}

.wind-compass-dial{
  position:relative;
  width:100%;
  height:100%;
}

.wind-compass-north,
.wind-compass-east,
.wind-compass-south,
.wind-compass-west{
  position:absolute;
  font-weight:800;
  color:rgba(255,255,255,0.88);
}

.wind-compass-north{ top:8px; left:50%; transform:translateX(-50%) rotate(0deg); }
.wind-compass-east{ right:10px; top:50%; transform:translateY(-50%) rotate(90deg); }
.wind-compass-south{ bottom:8px; left:50%; transform:translateX(-50%) rotate(180deg); }
.wind-compass-west{ left:10px; top:50%; transform:translateY(-50%) rotate(-90deg); }

.wind-compass-arrow{
  position:absolute;
  left:50%;
  bottom:50%;
  width:4px;
  transform-origin:50% 100%;
  border-radius:8px;
}

.wind-arrow{
  height:74px;
  background:linear-gradient(to top, rgba(255,147,86,0.16), #ff9356);
}

.wind-compass-heading-arrow{
  width:3px;
  height:68px;
  background:linear-gradient(to top, rgba(180,220,255,0.28), #d5ecff);
}

.wind-compass-heading-arrow::before,
.wind-arrow::before{
  content:"";
  position:absolute;
  left:50%;
  top:-10px;
  transform:translateX(-50%);
  border-left:6px solid transparent;
  border-right:6px solid transparent;
}

.wind-arrow::before{
  border-bottom:12px solid #ff9356;
}

.wind-compass-heading-arrow::before{
  border-bottom:12px solid #d5ecff;
}

.wind-compass-legend{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  color:rgba(255,255,255,0.76);
}

.legend-dot{
  display:inline-block;
  width:9px;
  height:9px;
  border-radius:999px;
  margin-right:5px;
}

.legend-dot-wind{ background:#ff9356; }
.legend-dot-heading{ background:#d5ecff; }

.wind-compass-status{
  margin-top:10px;
  font-size:12px;
  color:rgba(255,255,255,0.82);
}

.alert-modal{
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 8, 20, 0.72);
  backdrop-filter: blur(2px);
  padding: 18px;
}

.alert-modal-dialog{
  position: relative;
  max-width: 420px;
  margin: 8vh auto 0;
  border-radius: 20px;
  padding: 16px 16px 18px;
  background: #0d1738;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
}

.alert-modal-close{
  position:absolute;
  top:8px;
  right:10px;
  border:0;
  border-radius:999px;
  width:32px;
  height:32px;
  font-size:24px;
  line-height:1;
  color:rgba(255,255,255,0.85);
  background:transparent;
}

.alert-modal-title{
  margin: 0;
  padding-right: 34px;
  font-size: 20px;
  font-weight: 800;
}

.alert-modal-headline{
  margin: 8px 0 0;
  color: rgba(236, 244, 255, 0.92);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.alert-modal-description{
  margin: 10px 0 0;
  color: rgba(236, 244, 255, 0.86);
  font-size: 14px;
  line-height: 1.45;
}

body.is-modal-open{
  overflow:hidden;
}

.wind-tile-head{
  margin-top:4px;
  width:100%;
  text-align:center;
  color:var(--muted);
  font-size: var(--text-supporting);
  font-weight: var(--weight-regular);
  line-height: var(--line-body);
  letter-spacing: var(--tracking-normal);
}

/* Small emoji helper used elsewhere (Hourly, etc.) */
.wx-icon-sm{
  width: 28px;
  height: 28px;
  display:grid;
  place-items:center;
  font-size: 20px;
  line-height: 1;
  user-select:none;
}

/* ✅ SHOE TILE */
.shoe-wrap{
  position:relative;
  min-height: 0;
  padding-bottom: 4px;
}
.shoe-main{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height: 0;
  text-align:center;
  padding: 2px 0;
}
.shoe-icon-img{
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.shoe-text{
  min-width:0;
  text-align:center;
}
.shoe-title{
  font-weight: 950;
  font-size: 18px;
  line-height: 1.2;
}
.shoe-sub{
  margin-top: 4px;
  color: var(--muted);
  font-weight: 750;
  font-size: 12px;
  line-height: 1.25;
}

.shoe-info-btn{
  position: static;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.85);
  font-weight: 900;
  cursor: pointer;
}

.shoe-popover{
  position:absolute;
  top: 46px;
  right: 0;
  width: clamp(300px, 46vw, 440px);
  max-width: min(440px, calc(100vw - 28px));
  background: rgba(18,24,44,0.98);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 12px 12px 10px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  z-index: 120;
}

#shoeCard.shoe-popover-open{
  z-index: 3200;
  overflow: visible;
}

#shoeCard.shoe-popover-open .card-body,
#shoeCard.shoe-popover-open #shoeContent,
#shoeCard.shoe-popover-open .tile-reveal-surface,
#shoeCard.shoe-popover-open .shoe-wrap{
  overflow: visible;
}

.shoe-popover-title{
  font-weight: 950;
  margin-bottom: 6px;
}
.shoe-popover-text{
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  line-height: 1.35;
}

.shoe-underlay-reason{
  margin: 0 0 10px;
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  font-weight: var(--weight-regular);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.shoe-scale{
  margin-top: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 10px;
}
.shoe-scale-row{
  display:grid;
  grid-template-columns: 34px 1fr auto;
  align-items:center;
  gap:10px;
  padding: 6px 2px;
}
.shoe-scale-label{
  font-weight: 900;
}
.shoe-scale-range{
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}
.shoe-scale-img{
  width: 28px;
  height: 28px;
  object-fit: contain;
}


/* ASTRO (Sun & Moon + UV) */
.sun-uv-chip{
  max-width: none;
}

/* Sun arc */
.sun-arc{
  position:relative;
  height: 132px;
  overflow:hidden;
  padding: 0;
  --sun-arc-left: 34px;
  --sun-arc-right: 34px;
}

.sun-arc-svg{
  position:absolute;
  left: var(--sun-arc-left);
  right: var(--sun-arc-right);
  bottom: 28px;

  width: calc(100% - var(--sun-arc-left) - var(--sun-arc-right));
  height: 60px;
  display:block;

  opacity: 0.35;
  stroke: rgba(255,255,255,0.55);
  stroke-width: 2;
}

.sun-dot{
  position:absolute;
  /* JS sets --sun-x as percent and --sun-y-px as a pixel position inside the plot band. */
  left: calc(var(--sun-arc-left) + (var(--sun-x, 50) / 100) * (100% - var(--sun-arc-left) - var(--sun-arc-right)));
  top: var(--sun-y-px, 58px);
  transform: translate(-50%, -50%);

  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 220, 120, 0.98);
  box-shadow: 0 0 18px rgba(255, 210, 120, 0.55);
}

.sun-dot.is-hidden{
  display:none;
}

/* Half-circle sunrise/sunset glow */
.sun-endglow{
  position:absolute;
  bottom: 28px; /* align with arc baseline */
  width: 58px;
  height: 34px;
  border-radius: 999px 999px 0 0;
  filter: blur(0.2px);
  opacity: 0.9;
  pointer-events:none;
}

.sun-endglow.left{
  left: var(--sun-arc-left);
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 90%,
    rgba(255,165,80,0.70),
    rgba(255,165,80,0.18) 55%,
    transparent 75%);
}

.sun-endglow.right{
  left: calc(100% - var(--sun-arc-right));
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 90%,
    rgba(255,165,80,0.70),
    rgba(255,165,80,0.18) 55%,
    transparent 75%);
}

.sun-times{
  position:absolute;
  left:0;
  right:0;
  bottom: 14px;
  color: var(--secondary-soft);
  font-weight: 800;
  font-size: 12px;
}
.sun-time-left,
.sun-time-right{
  position:absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}
.sun-time-left{
  left: var(--sun-arc-left);
}
.sun-time-right{
  left: calc(100% - var(--sun-arc-right));
}

/* Moon */
.moon-wrap{
  display:flex;
  align-items:center;
  gap: 14px;
  min-height: 90px; /* keeps Sun/Moon tiles feeling equal-height */
}

.moon-image{
  width: min(100%, 148px);
  max-width: 148px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  clip-path: circle(42% at 50% 50%);
  object-fit: cover;
  object-position: center;
  flex: 0 0 auto;
  box-shadow: none;
  background: transparent;
  image-rendering: auto;
  transform: translateZ(0);
}

.moon-image--low-illum{
  /* Lift very dark moon frames so details stay readable in the card. */
  filter: brightness(1.15);
  /* Subtle rim light to define the moon edge against dark backgrounds. */
  box-shadow:
    0 0 0 1.5px rgba(226, 238, 255, 0.72),
    0 0 18px 4px rgba(180, 210, 255, 0.34);
  /* Soft outer aura behind the moon to add depth without harsh glow. */
  background:
    radial-gradient(
      circle at center,
      rgba(168, 202, 255, 0.28) 0%,
      rgba(140, 182, 255, 0.18) 42%,
      rgba(140, 182, 255, 0) 76%
    );
}

.moon-label{
  min-width: 0;
}
.moon-phase{
  margin: 0;
}
.moon-sub{
  margin-top: 4px;
}

.moon-sub.moon-times{
  margin-top: 3px;
  white-space: normal;
}

.moon-sub.moon-illum{
  margin-top: 2px;
  white-space: normal;
}

@media (max-width: 767px){
  #windCard,
  #shoeCard{
    min-width:0;
  }

  #sunCard,
  #moonCard{
    min-height: 180px;
  }

  .sun-arc,
  .moon-wrap{
    min-height: 132px;
  }
}

.shoe-popover-note{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.82);
}

.alerts-card{
  margin-top: 0;
}

.alerts-card .card-head{
  margin-bottom: 0;
}

.alerts-card .card-body{
  display: flex;
  align-items: center;
  min-height: 0;
}

.graph-header-picker{
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  min-width: 0;
}

.graph-header-select{
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 10px;
  font-weight: 750;
  padding: 5px 10px;
  padding-right: 22px;
  line-height: 1.1;
  width: auto;
  min-width: 18px;
  cursor: pointer;
}

.graph-header-picker::after{
  content: "▾";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  pointer-events: none;
}

.graph-header-select:focus,
.graph-header-select:focus-visible{
  outline: 2px solid rgba(120,180,255,0.45);
  outline-offset: -2px;
}
.graph-layout{ display:flex; align-items:stretch; gap:0; }
.graph-yaxis{ position: sticky; left: 0; z-index: 2; width: 40px; background: transparent; border-right: none; }
.graph-yaxis-svg{ width: 40px; height: 252px; display:block; }
.graph-scroll{ overflow-x: auto; flex: 1; }
.graph-plot{ position: relative; width: fit-content; min-width: 100%; }
.metric-graph{ width: auto; min-width: 100%; height: 252px; display:block; }
.graph-axis{ stroke: rgba(255,255,255,0.34); stroke-width: 1.4; }
.graph-line{ fill: none; stroke: #71b5ff; stroke-width: 2.5; }
.graph-dot{ fill: #c0ddff; transition: fill 120ms ease, r 120ms ease; }
.graph-dot.is-active{ fill: #ffe18f; }
.graph-hit{ fill: transparent; cursor: pointer; }
.graph-hit:focus,
.graph-hit:focus-visible{ outline: none; }
.graph-label{ fill: rgba(255,255,255,0.82); font-size: 9px; font-weight: 700; }
.graph-hour-label{ fill: rgba(255,255,255,0.72); font-size: 9px; font-weight: 600; }
.graph-day-marker{ stroke: rgba(255,255,255,0.22); stroke-dasharray: 3 3; }
.graph-day-label{ fill: rgba(208,232,255,0.86); font-size: 9px; font-weight: 700; }
.graph-callout{
  position: absolute;
  padding: 7px 11px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(7, 20, 44, 0.95);
  border: 1px solid rgba(140, 192, 255, 0.6);
  pointer-events: none;
  white-space: nowrap;
}
.graph-callout::after{
  content: "";
  position: absolute;
  left: var(--callout-tail-left, 12px);
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: rgba(7, 20, 44, 0.95);
  border-right: 1px solid rgba(140, 192, 255, 0.6);
  border-bottom: 1px solid rgba(140, 192, 255, 0.6);
  transform: rotate(45deg);
}
.graph-grid{ stroke: rgba(255,255,255,0.12); stroke-width: 1; }
.graph-empty{ color: rgba(255,255,255,0.75); font-size: 13px; }

@media (max-width: 767px){
  .graph-header-select{
    max-width: 132px;
  }
}





.refresh-info-section{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.refresh-info-section h3{
  margin: 0 0 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.86);
}

.refresh-info-content{
  font-size: 13px;
  color: rgba(255,255,255,0.9);
}

.refresh-info-list{
  margin: 0;
  padding-left: 16px;
}

.refresh-info-list li + li{
  margin-top: 6px;
}

.refresh-info-source{
  color: rgba(255,255,255,0.92);
  font-weight: 700;
}

.refresh-info-time{
  color: rgba(255,255,255,0.8);
}


body.design-mode{
  --design-type-tile: #ff5a63;
  --design-type-container: #ffad47;
  --design-type-text: #6f7b87;
}

body.design-mode :is(.card, .utility-tile, .wind-tile, .hour-card, .daypart-card, .today-period, .earth-tile){
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--design-type-tile) 82%, white 18%), inset 0 0 0 1px rgba(255,255,255,0.12);
}

body.design-mode :is(.grid > section, .top-row, .top-col, .foot, .wind-tile-main, .wind-tile-preview, .wind-tile-values, .daypart-stats){
  outline: 2px dashed color-mix(in srgb, var(--design-type-container) 86%, white 14%);
  outline-offset: 2px;
}

body.design-mode :is(.card-head, .card-body, .location-suggestion-item, .zip-input, .zip-btn,
  .current-temp, .current-desc, .current-meta, .wx-icon,
  .today-name, .today-short, .today-precip, .today-icon, .today-temp,
  .tile-detail-row, .tile-detail-label, .tile-detail-value,
  .shoe-wrap, .shoe-main, .shoe-icon-img, .shoe-meta-row, .shoe-text, .shoe-title, .shoe-sub,
  .moon-wrap, .moon-image, .moon-label, .moon-phase, .moon-sub){
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--design-type-text) 80%, white 20%);
}

.foot{
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

.utility-tile{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.14);
}

.footer-tools{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.design-mode-toggle{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(222, 239, 255, 0.95);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.design-mode-control{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.design-mode-state{
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(222,239,255,0.72);
}

.design-mode-radio-group{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
}

.design-mode-input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.design-mode-radio-label{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(222,239,255,0.7);
  transition: background-color 180ms ease, color 180ms ease;
}

.design-mode-input:checked + .design-mode-radio-label{
  background: rgba(127,183,255,0.35);
  color: rgba(242,248,255,0.98);
}

.design-mode-toggle:focus-within{
  outline: 2px solid rgba(120,180,255,0.7);
  outline-offset: 2px;
}

.footer-link{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(222, 239, 255, 0.95);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.utility-row-label{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.utility-icon{
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  line-height: 1;
  color: rgba(224,240,255,0.72);
  background: rgba(222,239,255,0.08);
  border: 1px solid rgba(222,239,255,0.16);
  flex: 0 0 auto;
}

.utility-icon-svg{
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.4;
  fill: none;
}

.utility-trailing{
  font-size: 15px;
  line-height: 1;
  color: rgba(222,239,255,0.72);
}

.footer-link:hover{
  color: var(--accent);
}

.footer-link:focus-visible{
  outline: 2px solid rgba(120,180,255,0.7);
  outline-offset: 2px;
}

.data-sources{
  width: 100%;
  max-width: 640px;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  margin-top: 4px;
}

.footer-legal{
  margin: 0;
  padding: 0 2px;
  color: rgba(229,240,253,0.78);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0, 8, 18, 0.58);
}

.footer-meta{
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 10px 12px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(8, 21, 41, 0.58), rgba(8, 21, 41, 0.42));
  border: 1px solid rgba(186, 212, 245, 0.2);
  box-shadow: 0 8px 20px rgba(0, 8, 20, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.minimal-footer-nav{
  display: grid;
  gap: 4px;
  justify-items: center;
  padding-top: 2px;
}

.shared-footer-links{
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.minimal-footer-link{
  font-size: 12px;
  line-height: 1.5;
  color: rgba(236,245,255,0.88);
  text-decoration: none;
  transition: color 180ms ease;
  text-shadow: 0 1px 10px rgba(0, 8, 18, 0.58);
}

.minimal-footer-separator{
  color: rgba(193,214,238,0.58);
  font-size: 11px;
  text-shadow: 0 1px 10px rgba(0, 8, 18, 0.58);
}

.minimal-footer-link:hover{
  color: rgba(238,247,255,0.9);
}

.minimal-footer-link:focus-visible{
  outline: 2px solid rgba(120,180,255,0.52);
  outline-offset: 2px;
  border-radius: 4px;
}

.data-sources > summary{
  width: fit-content;
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(224,237,251,0.74);
  text-shadow: 0 1px 10px rgba(0, 8, 18, 0.58);
  transition: color 180ms ease;
}

.data-sources > summary:hover{
  color: rgba(238,247,255,0.9);
}

.data-sources > summary:focus-visible{
  outline: 2px solid rgba(120,180,255,0.52);
  outline-offset: 2px;
  border-radius: 4px;
}

.data-sources > summary::-webkit-details-marker{
  display: none;
}

.data-sources > summary::after{
  content: "▾";
  margin-left: 4px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(193,214,238,0.58);
  opacity: 1;
}

.data-sources[open] > summary::after{
  content: "▴";
}

.data-sources ul{
  margin: 10px 0 0;
  padding-left: 18px;
  text-align: left;
}

.data-sources li + li{
  margin-top: 5px;
}

/* Cinematic dark-glass refinements */
.card h2,
.card-title,
.dn-title,
.shoe-title,
.moon-phase,
.wind-compass-title{
  color: var(--text);
}

.tile-detail-label,
.hour-desc,
.day-date,
.day-short,
.today-short,
.detail-meta,
.shoe-sub,
.earth-tile-meta,
.graph-empty,
.data-sources,
.refresh-info-content,
.wind-tile-head,
.wind-tile-gust,
.graph-label-title,
.graph-label,
.graph-hour-label,
.graph-day-label,
.wind-compass-subtitle,
.wind-compass-status,
.graph-more-option::after,
.utility-trailing{
  color: var(--muted);
}

.moon-illum{
  color: var(--text-soft);
}

.daily-toggle,
.graph-option,
.graph-more-select,
.hour-load-more,
.utility-tile,
.shoe-scale,
.daypart-face,
.graph-primary-options,
.location-suggestions{
  background: rgba(8, 19, 38, 0.62);
  border-color: rgba(198, 218, 245, 0.2);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.location-suggestion-item,
.daypart-front .dn-text,
.today-short,
.current-desc,
.current-meta{
  color: var(--text-soft);
}

.graph-option.is-active,
.daily-toggle:hover,
.hour-load-more:hover,
.graph-more-option:hover,
.location-suggestion-item.is-active,
.location-suggestion-item:hover{
  background: rgba(127, 183, 255, 0.2);
  color: #eef6ff;
}

.graph-axis{ stroke: rgba(175, 205, 240, 0.34); }
.graph-grid{ stroke: rgba(155, 190, 228, 0.16); }
.graph-line{ stroke: #8dc4ff; }
.graph-dot{ fill: #9acfff; }
.graph-label,
.graph-hour-label,
.graph-day-label{ fill: #d6e8ff; }

.wind-tile,
.daypart-card,
.hour-card{
  color: var(--text);
}

.sun-arc-svg{
  stroke: rgba(175, 205, 240, 0.4);
}

.footer-link,
.data-sources > summary,
.refresh-info-source,
.refresh-info-time,
.utility-icon{
  color: var(--text-soft);
}

.data-sources > summary::after{
  color: var(--muted);
}

.utility-icon{
  background: rgba(174, 210, 255, 0.12);
  border-color: rgba(186, 212, 245, 0.3);
}

.wind-compass-modal{
  background: rgba(7, 14, 25, 0.62);
}

.wind-compass-dialog{
  background: rgba(8, 21, 41, 0.94);
  border-color: rgba(186, 212, 245, 0.36);
  box-shadow: 0 20px 46px rgba(0, 6, 18, 0.6);
}

.wind-compass-north,
.wind-compass-east,
.wind-compass-south,
.wind-compass-west{
  color: var(--text-soft);
}

.wind-compass{
  border-color: rgba(186, 212, 245, 0.42);
  background: radial-gradient(circle at 45% 35%, rgba(146, 186, 231, 0.2), rgba(10, 24, 44, 0.64));
  box-shadow: inset 0 0 22px rgba(6, 16, 30, 0.52);
}

.graph-callout{
  color: #f8fcff;
  background: rgba(24, 56, 100, 0.95);
  border-color: rgba(190, 219, 255, 0.88);
}

.graph-callout::after{
  background: rgba(24, 56, 100, 0.95);
  border-right-color: rgba(190, 219, 255, 0.88);
  border-bottom-color: rgba(190, 219, 255, 0.88);
}

/* Typography system: calm, premium hierarchy */
.brand{
  font-family: var(--font-family-logo);
}

.card-title{
  font-size: var(--text-card-title);
  font-weight: var(--weight-medium);
  line-height: var(--line-heading);
  letter-spacing: var(--tracking-tight);
}

.hint,
.graph-label-title,
.dn-title,
.sun-times,
.refresh-info-source,
.refresh-info-time,
.data-sources,
.shoe-popover-note,
.graph-empty,
.earth-tile-meta,
.daypart-empty{
  font-size: var(--text-meta);
  font-weight: var(--weight-medium);
  line-height: var(--line-ui);
  letter-spacing: var(--tracking-normal);
}

#statusBar,
.detail-meta,
.refresh-info-content,
.day-detail,
.daypart-front .dn-text,
.shoe-popover-text,
.shoe-underlay-reason{
  font-size: var(--text-supporting);
  font-weight: var(--weight-regular);
  line-height: var(--line-body);
}

.shoe-underlay-reason{
  font-size: 0.75rem;
  line-height: 1.25;
}

#zipInput,
.daily-toggle{
  font-size: var(--text-input);
  font-weight: var(--weight-medium);
  line-height: var(--line-ui);
  letter-spacing: var(--tracking-normal);
}

.graph-more-select,
.graph-option{
  font-size: 0.8125rem;
  font-weight: var(--weight-medium);
  line-height: 1.2;
  letter-spacing: var(--tracking-normal);
}

#zipBtn,
.alert-pill,
.hour-load-text,
.footer-link,
.data-sources > summary,
.utility-trailing,
.shoe-scale-label,
.shoe-popover-title,
.daypart-back-title,
.astro-tile-pill{
  font-size: var(--text-button);
  font-weight: var(--weight-medium);
  line-height: var(--line-ui);
  letter-spacing: var(--tracking-normal);
}

.location-suggestion-item,
.tile-detail-row,
.tile-details-back .tile-detail-label,
.tile-details-back .tile-detail-value,
.daypart-stats .tile-detail-row,
.graph-callout,
.refresh-info-section h3,
.utility-icon{
  font-size: var(--text-meta);
  font-weight: var(--weight-regular);
  line-height: var(--line-ui);
}

.current-temp{
  font-size: var(--text-numeric-xl);
  font-weight: var(--weight-light);
  line-height: var(--line-tight);
  letter-spacing: var(--tracking-tight);
  font-variant-numeric: tabular-nums;
}

.current-desc{
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--line-ui);
}

.current-meta,
.hour-day,
.day-date,
.wind-tile-gust,
.graph-day-label{
  font-size: var(--text-meta);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-normal);
}

.hour-time,
.day-name,
.today-name,
.shoe-title,
.moon-phase,
.wind-compass-title{
  font-size: var(--text-card-title);
  font-weight: var(--weight-medium);
  line-height: var(--line-heading);
  letter-spacing: var(--tracking-normal);
}

.day-name,
.today-name{
  letter-spacing: var(--tracking-tight);
}

.hour-temp,
.day-temp,
.today-temp,
.wind-tile-speed{
  font-size: var(--text-numeric-md);
  font-weight: var(--weight-medium);
  line-height: var(--line-tight);
  letter-spacing: var(--tracking-tight);
  font-variant-numeric: tabular-nums;
}

.day-low{
  font-weight: var(--weight-regular);
}

.today-short,
.day-short,
.hour-desc,
.shoe-sub,
.wind-tile-head,
.wind-compass-subtitle,
.wind-compass-status,
.graph-label,
.graph-hour-label,
.utility-row-label,
.refresh-info-content,
.data-sources li,
#dailyCard .day-short{
  font-size: var(--text-supporting);
  font-weight: var(--weight-regular);
  line-height: var(--line-body);
  letter-spacing: var(--tracking-normal);
}

.moon-illum,
.moon-times{
  font-size: var(--text-meta);
  font-weight: var(--weight-regular);
  line-height: var(--line-ui);
  letter-spacing: var(--tracking-normal);
}

.wind-compass-north,
.wind-compass-east,
.wind-compass-south,
.wind-compass-west,
.wind-tile-mark,
.graph-label,
.graph-hour-label,
.graph-day-label{
  font-weight: var(--weight-medium);
}

.graph-label{
  font-size: 0.75rem;
  line-height: 1;
}

.graph-hour-label{
  font-size: 0.75rem;
  line-height: 1;
}

.about-hero{
  font-size: var(--text-hero);
  font-weight: var(--weight-light);
  line-height: var(--line-heading);
  letter-spacing: var(--tracking-tight);
  margin: 0;
  max-width: 20ch;
  text-wrap: balance;
}

.about-hero-lockup{
  white-space: nowrap;
}

.about-head{
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: start;
  padding-top: 2px;
}

.about-head::after{
  content: "";
  position: absolute;
  top: -38px;
  left: clamp(8px, 2vw, 20px);
  width: 220px;
  height: 220px;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(114, 177, 255, 0.22) 0%, rgba(114, 177, 255, 0.11) 28%, rgba(114, 177, 255, 0.03) 55%, rgba(114, 177, 255, 0) 74%);
  filter: blur(1px);
}

.about-subtitle{
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.68;
  max-width: 62ch;
  color: var(--muted);
}

.about-content{
  max-width: min(72ch, 100%);
  width: 100%;
  gap: 8px;
}

.about-section{
  display: grid;
  gap: 0;
}

.about-section + .about-section,
.about-content > .about-more{
  margin-top: 20px;
}

.about-section-label{
  margin: 0 0 10px;
  font-size: 0.73rem;
  font-weight: var(--weight-medium);
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-section p{
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.72;
}

.about-more{
  display: grid;
  gap: 12px;
}

.about-primary-link-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-link-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.about-pill-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(158, 204, 255, 0.28);
  background: linear-gradient(135deg, rgba(127, 183, 255, 0.14), rgba(127, 183, 255, 0.05));
  color: var(--text-soft);
  font-size: var(--text-supporting);
  text-align: center;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.about-pill-link-primary{
  border-color: rgba(176, 216, 255, 0.54);
  background: linear-gradient(135deg, rgba(136, 191, 255, 0.18), rgba(127, 183, 255, 0.07));
}

.about-pill-link:hover{
  border-color: rgba(178, 218, 255, 0.5);
  background: linear-gradient(135deg, rgba(127, 183, 255, 0.18), rgba(127, 183, 255, 0.07));
  transform: translateY(-1px);
}

.about-pill-link:focus-visible{
  outline: 2px solid rgba(120, 180, 255, 0.72);
  outline-offset: 2px;
}

@media (max-width: 767px){
  .about-hero{
    max-width: 100%;
  }

  .about-hero-lockup{
    white-space: normal;
  }

  .about-link-grid{
    grid-template-columns: 1fr;
  }

  .graph-option,
  .graph-more-select{
    font-size: 0.75rem;
  }

  .graph-label{
    font-size: 0.6875rem;
  }

  .current-temp{
    font-size: clamp(2.05rem, 10.5vw, 2.85rem);
  }

  .hour-temp,
  .day-temp,
  .today-temp,
  .wind-tile-speed{
    font-size: 1.0625rem;
  }

  .card-title{
    font-size: 1.0625rem;
  }

  .hour-time,
  .day-name,
  .today-name,
  .shoe-title,
  .moon-phase,
  .wind-compass-title{
    font-size: 1rem;
  }

  #todayCard .today-name{
    font-size: 1.0625rem;
  }
}

.hour-card .hour-desc{
  font-size: 0.75rem;
  line-height: 1.15;
  min-height: calc(2 * 1.15em);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}


.design-overlay{
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  font-family: var(--font-family-base);
}



.design-action-bar{
  position: fixed;
  top: 52px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(160,206,255,0.38);
  background: rgba(7,18,36,0.78);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

.design-action-bar button,
.design-export-btn{
  border: 1px solid rgba(157, 205, 255, 0.5);
  background: rgba(20, 63, 117, 0.55);
  color: rgba(243,248,255,0.98);
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.design-action-bar button:hover,
.design-export-btn:hover{
  background: rgba(34, 85, 150, 0.72);
}

.design-export-btn{
  width: 100%;
}

.design-highlight-box{
  pointer-events: none;
}

.design-resize-handle{
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #8cc4ff;
  border: 1px solid rgba(6,18,34,0.85);
  pointer-events: auto;
}

.design-resize-handle[data-handle="n"]{ top: -6px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.design-resize-handle[data-handle="ne"]{ top: -6px; right: -6px; cursor: nesw-resize; }
.design-resize-handle[data-handle="e"]{ top: 50%; right: -6px; transform: translateY(-50%); cursor: ew-resize; }
.design-resize-handle[data-handle="se"]{ right: -6px; bottom: -6px; cursor: nwse-resize; }
.design-resize-handle[data-handle="s"]{ left: 50%; bottom: -6px; transform: translateX(-50%); cursor: ns-resize; }
.design-resize-handle[data-handle="sw"]{ left: -6px; bottom: -6px; cursor: nesw-resize; }
.design-resize-handle[data-handle="w"]{ left: -6px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.design-resize-handle[data-handle="nw"]{ left: -6px; top: -6px; cursor: nwse-resize; }

@media (max-width: 640px){
  .design-action-bar{
    top: 12px;
    left: 10px;
    right: 10px;
  }
}

.design-legend{
  position: fixed;
  top: 52px;
  right: 14px;
  min-width: 150px;
  padding: 8px 10px;
  border-radius: 10px;
  color: rgba(228,241,255,0.96);
  background: rgba(7,18,36,0.74);
  border: 1px solid rgba(160,206,255,0.38);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  backdrop-filter: blur(6px);
}

.design-legend h3{
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.design-legend ul{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  font-size: 11px;
}

.design-legend li{
  display: flex;
  align-items: center;
  gap: 7px;
}

.design-legend-swatch{
  width: 11px;
  height: 11px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.26);
}

.design-legend-swatch-tile{ background: #ff5a63; }
.design-legend-swatch-container{ background: #ffad47; }
.design-legend-swatch-text{ background: #6f7b87; }

@media (max-width: 640px){
  .design-legend{
    top: auto;
    bottom: 14px;
    right: 14px;
  }
}
.design-debug-panel{
  position: fixed;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(228,241,255,0.96);
  background: rgba(7,18,36,0.78);
  border: 1px solid rgba(160,206,255,0.4);
  backdrop-filter: blur(6px);
}

.design-highlight-box{
  position: fixed;
  display: none;
  box-sizing: border-box;
  border: 1px solid rgba(112, 182, 255, 0.95);
  background: linear-gradient(to bottom, rgba(127,183,255,0.16), rgba(127,183,255,0.1));
}

.design-highlight-box::before,
.design-highlight-box::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.design-highlight-box::before{
  inset: var(--design-padding-top, 0px) var(--design-padding-right, 0px) var(--design-padding-bottom, 0px) var(--design-padding-left, 0px);
  border: 1px dashed rgba(117, 238, 184, 0.82);
  background: rgba(117, 238, 184, 0.08);
}

.design-highlight-box::after{
  top: calc(var(--design-margin-top, 0px) * -1);
  right: calc(var(--design-margin-right, 0px) * -1);
  bottom: calc(var(--design-margin-bottom, 0px) * -1);
  left: calc(var(--design-margin-left, 0px) * -1);
  border: 1px dashed rgba(255, 193, 120, 0.75);
}

.design-measurement-badge{
  position: fixed;
  display: none;
  align-items: flex-start;
  gap: 8px;
  max-width: min(720px, calc(100vw - 24px));
  padding: 6px 9px;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(240,246,255,0.98);
  background: rgba(7,18,36,0.9);
  border: 1px solid rgba(161,208,255,0.45);
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  white-space: normal;
}

.design-measurement-text{
  white-space: pre-line;
}

.design-measurement-copy{
  margin-left: auto;
  border: 1px solid rgba(157, 205, 255, 0.5);
  background: rgba(20, 63, 117, 0.55);
  color: rgba(243,248,255,0.98);
  border-radius: 7px;
  padding: 2px 7px;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.design-measurement-copy:hover{
  background: rgba(34, 85, 150, 0.72);
}

.design-measurement-copy:focus-visible{
  outline: 2px solid rgba(167, 216, 255, 0.98);
  outline-offset: 1px;
}

.design-guide-line{
  position: fixed;
  display: none;
  background: rgba(255,255,255,0.42);
}

.design-guide-line-horizontal{
  left: 0;
  right: 0;
  height: 1px;
}

.design-guide-line-vertical{
  top: 0;
  bottom: 0;
  width: 1px;
}

.design-grid-overlay{
  position: fixed;
  display: none;
  box-sizing: border-box;
  border: 1px solid rgba(121, 186, 255, 0.45);
  background-image: repeating-linear-gradient(
    to right,
    rgba(127,183,255,0.09) 0,
    rgba(127,183,255,0.09) calc((100% / var(--design-grid-columns, 2)) - var(--design-grid-gap, 0px)),
    rgba(127,183,255,0) calc((100% / var(--design-grid-columns, 2)) - var(--design-grid-gap, 0px)),
    rgba(127,183,255,0) calc(100% / var(--design-grid-columns, 2))
  );
}

.consent-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 3000;
  border-radius: 14px;
  border: 1px solid rgba(140, 177, 223, 0.5);
  background: rgba(8, 20, 39, 0.95);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.consent-banner-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.consent-banner-text {
  margin: 0;
  max-width: 900px;
  color: rgba(240, 247, 255, 0.96);
  font-size: 13px;
  line-height: 1.5;
}

.consent-banner-text a {
  color: rgba(171, 215, 255, 0.98);
}

.consent-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.consent-btn {
  border-radius: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(140, 177, 223, 0.6);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.consent-btn-secondary {
  background: rgba(13, 39, 74, 0.92);
  color: rgba(231, 244, 255, 0.98);
}

.consent-btn-primary {
  background: rgba(120, 196, 255, 0.95);
  color: rgba(3, 24, 49, 0.98);
  border-color: rgba(120, 196, 255, 0.95);
}

.nasa-photo-page .card-body {
  display: grid;
  gap: 1rem;
}

.nasa-photo-figure {
  margin: 0;
}

.nasa-photo {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-soft);
  display: block;
}

.nasa-photo-figure figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: var(--text-supporting);
}

@media (max-width: 560px){
  .footer-meta{
    padding: 12px 12px 14px;
  }

  .shared-footer-links{
    gap: 8px;
  }

  .minimal-footer-link,
  .minimal-footer-separator{
    font-size: 12px;
  }
}
