/* Isolated homepage parity layer; source structure follows client/src/index.css. */
.hero-band{min-height:0;padding:4.5rem clamp(1rem,4vw,3rem);}.hero-band:after{display:none}.hero-art{background:radial-gradient(circle at 78% 30%,rgba(12,91,140,.18),transparent 23rem),linear-gradient(135deg,#dbe9e5,#f5f0e6);opacity:1;mix-blend-mode:normal}.hero-band:after{content:"";position:absolute;inset:0;background:linear-gradient(270deg,rgba(245,240,230,.78),rgba(245,240,230,.92));z-index:0}.hero-content{max-width:80rem;margin:auto}.hero-content h1{font-family:"Cairo","Tajawal",sans-serif}.city-picker{position:relative;max-width:42rem;margin-top:1.5rem}.city-command--search{max-width:none;margin:0;background:rgba(255,253,248,.92);border:1px solid #d4ddd9;border-radius:1rem;padding:.45rem .65rem;box-shadow:0 16px 44px rgba(12,91,140,.13)}.city-command--search input{flex:1;min-width:0;border:0;outline:0;background:transparent;padding:.7rem;color:#132a38;font:inherit}.city-picker__current{font-size:.8rem;color:#536d78;margin:.7rem .4rem}.city-picker__panel{position:absolute;top:calc(100% - 2.7rem);right:0;left:0;z-index:30;padding:.75rem;border:1px solid #d4ddd9;border-radius:1rem;background:#fffdf8;box-shadow:0 18px 50px rgba(19,42,56,.15);max-height:22rem;overflow:auto}.city-picker__panel[hidden],.share-backdrop[hidden]{display:none}.city-picker__group-label{display:block;padding:.4rem;color:#0c5b8c;font-size:.75rem;font-weight:800}.city-picker__option{display:flex;align-items:center;gap:.7rem;width:100%;padding:.7rem;border:0;border-radius:.7rem;background:transparent;text-align:right;color:#132a38}.city-picker__option:hover,.city-picker__option:focus{background:#edf3f1}.city-picker__option span:nth-child(2){display:grid;flex:1}.city-picker__option small{color:#60727a}.location-error{color:#8a3832;font-size:.8rem}.dashboard-shell{max-width:80rem}.section-intro h2{font-family:"Cairo","Tajawal",sans-serif}.now-grid{grid-template-columns:minmax(0,1.45fr) minmax(17rem,.75fr)}.current-card{overflow:hidden;padding:2rem;border-top:5px solid #a3bcc8;border-radius:1.75rem;background:#103f59;background-image:linear-gradient(130deg,rgba(255,255,255,.14),transparent 48%),repeating-linear-gradient(-28deg,rgba(184,223,233,.13) 0 1px,transparent 1px 12px);color:white;box-shadow:0 22px 55px rgba(12,91,140,.18)}.current-card__topline,.current-card__footer{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;color:#d4e8f0;font-size:.75rem}.current-card__topline span:last-child{margin-right:auto}.live-dot{width:.5rem;height:.5rem;border-radius:50%;background:#5ed09d}.current-card__main{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:1rem;padding:1.7rem 0}.current-card h2{margin:.2rem 0;color:white}.region-label,.condition-label{color:#d4e8f0}.condition-mark{font-size:3.5rem}.temperature{font-size:5rem;font-weight:800}.temperature sup{font-size:2rem}.current-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;padding:1.2rem 0;border-block:1px solid rgba(255,255,255,.18)}.current-metrics span{display:flex;gap:.3rem;align-items:center;color:#d4e8f0;font-size:.75rem}.current-metrics b{margin-right:auto;color:white}.current-card__footer{justify-content:space-between;padding-top:1rem}.share-inline{padding:.55rem .9rem;border:0;border-radius:999px;background:white;color:#0c5b8c;font-weight:800}.decision-panel{display:flex;flex-direction:column;padding:1.6rem;border:1px solid #d4ddd9;border-radius:1.5rem;background:#fffdf8;box-shadow:0 13px 30px rgba(19,42,56,.07)}.decision-panel h3{line-height:2}.decision-points{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;margin-top:auto;padding-top:1rem;border-top:1px solid #d4ddd9;text-align:center;font-size:.7rem}.decision-points b{display:block;font-size:.95rem}.loading-card,.error-card{display:flex;align-items:center;justify-content:center;gap:.7rem;min-height:12rem;border:1px dashed #a7c0c9;border-radius:1.5rem;background:#fffdf8;color:#42616e}.error-card{color:#8a3832}.hourly-rail{display:flex;gap:.75rem;overflow-x:auto;padding:.4rem .1rem 1rem;scroll-snap-type:x mandatory}.hour-card{flex:0 0 112px;display:grid;justify-items:center;gap:.4rem;padding:1rem .7rem;border:1px solid #d4ddd9;border-radius:1rem;background:#fffdf8;scroll-snap-align:start}.hour-card .weather-glyph{font-size:1.8rem}.hour-card small,.day-row small{color:#60727a}.daily-list{display:grid;gap:.5rem}.day-row{display:grid;grid-template-columns:1.1fr auto 1fr auto 1.2fr;align-items:center;gap:.8rem;padding:.8rem 1rem;border-bottom:1px solid #d4ddd9;background:#fffdf8}.day-row i{font-style:normal;color:#60727a;font-weight:500}.insight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.insight-card{padding:1.2rem;border:1px solid #d4ddd9;border-radius:1rem;background:#fffdf8}.insight-card__head{font-weight:800;color:#0c5b8c}.insight-card p,.insight-card li{font-size:.84rem;color:#536d78}.marine-section{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:1rem;border-block:1px solid #d4ddd9;background:#edf3f1}.marine-metrics{display:flex;gap:1rem;flex-wrap:wrap}.marine-metrics span{padding:1rem;border:1px solid #d4ddd9;border-radius:.9rem;background:#fffdf8}.marine-metrics b{display:block;font-size:1.4rem;color:#0c5b8c}.city-index-toolbar--home{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;margin:1rem 0}.city-index-toolbar--home input{flex:1;min-width:12rem;padding:.8rem;border:1px solid #d4ddd9;border-radius:.8rem;background:#fffdf8;color:#132a38}.region-grid--visual-home{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.directory-card--visual{overflow:hidden;border:1px solid #d4ddd9;border-radius:1rem;background:#fffdf8}.place-illustration{position:relative;height:130px;overflow:hidden;background:#cde1e5}.place-illustration svg{width:100%;height:100%;display:block}.place-illustration__tag{position:absolute;top:.7rem;right:.7rem;padding:.2rem .6rem;border-radius:999px;background:rgba(255,253,248,.9);font-size:.7rem;font-weight:800}.directory-card__body{display:grid;gap:.25rem;padding:.9rem}.directory-card__meta{color:#60727a;font-size:.7rem}.directory-card__title{font-size:1rem}.directory-card__action{color:#0c5b8c;font-size:.78rem;font-weight:800}.region-actions{display:flex;justify-content:center;align-items:center;gap:1rem;margin-top:1.5rem}.secondary-button{padding:.65rem 1.2rem;border:1px solid #d4ddd9;border-radius:999px;background:#fffdf8;color:#132a38;font-weight:800}.share-backdrop{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:1rem;background:rgba(8,24,34,.65)}.share-dialog{width:min(100%,34rem);padding:1.5rem;border-radius:1.3rem;background:#fffdf8;color:#132a38;box-shadow:0 20px 70px #0004}.share-dialog>h2{margin:.6rem 0}.share-preview{display:grid;gap:.4rem;margin:1rem 0;padding:1.5rem;border-radius:1rem;background:#103f59;color:white}.share-preview strong{font-size:1.3rem}.share-preview b{font-size:3rem}.share-actions{display:flex;flex-wrap:wrap;gap:.5rem}.share-actions button{flex:1}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.region-grid--visual-home{grid-template-columns:repeat(3,minmax(0,1fr))}.now-grid{grid-template-columns:1fr}}
@media(max-width:650px){.hero-band{padding:3rem 1rem}.hero-content h1{font-size:2.3rem}.dashboard-shell{padding:2.2rem 1rem}.region-grid--visual-home{grid-template-columns:repeat(2,minmax(0,1fr))}.place-illustration{height:105px}.day-row{grid-template-columns:1fr auto auto;gap:.4rem}.day-row span:nth-child(3),.day-row small{grid-column:1/-1}.marine-section{grid-template-columns:1fr}.current-card{padding:1.2rem}.current-card__main{grid-template-columns:1fr auto;}.temperature{font-size:3.8rem}.current-metrics{grid-template-columns:1fr}.insight-grid{grid-template-columns:1fr}.region-actions{flex-direction:column}.share-dialog{padding:1rem}}

/* Shared chrome and weather-card details translated from PublicChrome and WeatherCard. */
.brand-mark{display:grid;place-items:center;width:2.45rem;height:2.45rem;border:1px solid var(--line);border-radius:50%;background:var(--surface-soft);color:var(--blue);font-size:1.3rem}.brand b{color:var(--blue)}
.site-navigation{display:flex;align-items:center;justify-content:center;gap:clamp(.45rem,1vw,1rem);margin-inline:auto}.site-navigation .nav-link{display:inline-flex;align-items:center;gap:.35rem;color:var(--muted);font-size:.76rem;font-weight:700;white-space:nowrap}.site-navigation .nav-link:hover,.site-navigation .nav-link.is-active{color:var(--blue)}.site-navigation .nav-link--section{color:var(--green)}
.header-source{color:var(--blue);font-size:.73rem;font-weight:800;white-space:nowrap}.menu-toggle{display:none;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--ink);font-size:1.2rem}
.footer-about{max-width:20rem}.footer-about .eyebrow{margin-bottom:.4rem}.footer-links{display:flex;flex-wrap:wrap;gap:.5rem 1rem;max-width:38rem}.footer-links a{display:inline-flex;gap:.3rem;color:var(--muted);font-weight:700}.footer-links a:hover,.footer-disclaimer a{color:var(--blue)}
.current-card__topline{justify-content:flex-start}.current-card__topline .live-dot{display:inline-block;flex:0 0 .5rem}.current-card__topline span:last-child{margin-right:auto;display:inline-flex;align-items:center;gap:.3rem}.favorite-toggle{display:inline-flex;align-items:center;gap:.35rem;padding:.5rem .85rem;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font-size:.78rem;font-weight:800}.favorite-toggle.is-active{border-color:#d9a84e;background:#fff5dc;color:#8b641b}
.share-dialog .icon-button{margin-inline-start:auto}.share-dialog .eyebrow{display:flex}.share-dialog p{color:var(--muted);font-size:.86rem}.share-actions .button{flex:1;min-width:8rem}
@media(max-width:1100px){.site-header{gap:.6rem}.site-navigation{gap:.45rem}.site-navigation .nav-link{font-size:.69rem}.header-source{display:none}}
@media(max-width:820px){.menu-toggle{display:grid;margin-inline-start:auto}.site-navigation{position:absolute;top:100%;right:0;left:0;z-index:45;display:none;align-items:stretch;gap:0;padding:.5rem 1rem 1rem;border-bottom:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow)}.site-navigation.is-open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.site-navigation .nav-link{padding:.65rem .5rem;border-bottom:1px solid var(--line);font-size:.83rem}.site-footer{align-items:flex-start;flex-direction:column}.footer-links{max-width:none}}

/* React WeatherInsights parity: alert provenance and compact section headings. */
.insight-card--alert{border-top:3px solid #c7792c}
.insight-card__head{display:flex;align-items:center;gap:.45rem;margin-bottom:.9rem;color:#0c5b8c;font-size:.78rem;font-weight:800}
.insight-card ul{margin:0;padding-right:1.1rem}
.insight-card li{margin:.35rem 0;line-height:1.8}
.insight-card a{display:inline-flex;align-items:center;gap:.3rem;color:#0c5b8c;font-size:.72rem;font-weight:700}


/* Dark theme contrast and card parity: keep every homepage component on shared theme tokens. */
:root[data-theme="dark"] .hero-art {
  background: radial-gradient(circle at 78% 30%, rgba(107,180,220,.16), transparent 23rem),
              linear-gradient(135deg, #172a35, #101d25);
}
:root[data-theme="dark"] .hero-band:after {
  background: linear-gradient(270deg, rgba(16,29,37,.78), rgba(16,29,37,.94));
}
:root[data-theme="dark"] .city-command--search {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-color: var(--line);
}
:root[data-theme="dark"] .city-command--search input,
:root[data-theme="dark"] .city-index-toolbar--home input {
  color: var(--ink);
  background: var(--surface);
}
:root[data-theme="dark"] .city-picker__panel,
:root[data-theme="dark"] .city-search-panel {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}
:root[data-theme="dark"] .city-picker__group-label,
:root[data-theme="dark"] .insight-card__head,
:root[data-theme="dark"] .city-picker__option:hover,
:root[data-theme="dark"] .city-picker__option:focus {
  color: var(--blue);
}
:root[data-theme="dark"] .city-picker__option {
  color: var(--ink);
}
:root[data-theme="dark"] .city-picker__option small,
:root[data-theme="dark"] .hour-card small,
:root[data-theme="dark"] .day-row small,
:root[data-theme="dark"] .day-row i,
:root[data-theme="dark"] .insight-card p,
:root[data-theme="dark"] .insight-card li {
  color: var(--muted);
}
:root[data-theme="dark"] .city-picker__option:hover,
:root[data-theme="dark"] .city-picker__option:focus {
  background: var(--surface-soft);
}
:root[data-theme="dark"] .decision-panel,
:root[data-theme="dark"] .loading-card,
:root[data-theme="dark"] .error-card,
:root[data-theme="dark"] .hour-card,
:root[data-theme="dark"] .day-row,
:root[data-theme="dark"] .insight-card,
:root[data-theme="dark"] .marine-metrics span,
:root[data-theme="dark"] .directory-card--visual,
:root[data-theme="dark"] .share-dialog {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}
:root[data-theme="dark"] .decision-panel {
  box-shadow: var(--shadow);
}
:root[data-theme="dark"] .decision-points {
  border-color: var(--line);
  color: var(--muted);
}
:root[data-theme="dark"] .marine-section {
  color: var(--ink);
  background: var(--surface-soft);
  border-color: var(--line);
}
:root[data-theme="dark"] .marine-metrics span {
  border-color: var(--line);
}
:root[data-theme="dark"] .marine-metrics b,
:root[data-theme="dark"] .directory-card__action,
:root[data-theme="dark"] .insight-card__head {
  color: var(--blue);
}
:root[data-theme="dark"] .directory-card__meta {
  color: var(--muted);
}
:root[data-theme="dark"] .place-illustration__tag {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
}
:root[data-theme="dark"] .share-dialog {
  box-shadow: var(--shadow);
}
:root[data-theme="dark"] .share-preview {
  background: #103f59;
  color: #fff;
}
:root[data-theme="dark"] .secondary-button {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}
:root[data-theme="dark"] .favorite-toggle.is-active {
  color: #f5d58d;
  background: #46391f;
  border-color: #94743a;
}
:root[data-theme="dark"] .error-card {
  color: #ffb4aa;
  border-color: #75443f;
  background: #342326;
}
:root[data-theme="dark"] .location-error {
  color: #ffb4aa;
}

/* Keep horizontally scrollable forecast cards inside their own viewport. */
.hourly-rail {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.hourly-rail > * { flex-shrink: 0; }
.dashboard-shell,
.dashboard-shell > *,
.content-section,
main,
section { min-width: 0; }

/* Homepage city previews: consistent card and action treatment. */
.home-city-preview{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.home-city-preview .directory-card--unified .directory-card__media{aspect-ratio:16/9;min-height:0}
.home-city-preview .directory-card--unified .directory-card__body{min-height:138px;padding:.9rem}
.home-city-preview .directory-card--unified .directory-card__title{font-size:1rem}
.home-section-actions{display:flex;justify-content:center;margin:1.25rem auto 0}
.home-more-button{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-width:min(100%,280px);min-height:46px;padding:.7rem 1.25rem;border-radius:.8rem;font-weight:800;text-align:center;text-decoration:none}
.home-more-button:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.home-world-preview{grid-template-columns:repeat(4,minmax(0,1fr))}
#active-weather-section .loading-card,#active-weather-section .error-card,#active-weather-section .weather-stale-note,.weather-status{min-height:0;padding:.7rem 1rem;line-height:1.6;border-radius:.85rem}
@media(max-width:760px){.home-city-preview{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.home-city-preview>.directory-card--unified:nth-child(n+4){display:none}.home-world-preview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.home-city-preview .directory-card--unified .directory-card__body{min-height:126px;padding:.7rem}.home-city-preview .directory-card--unified .directory-card__title{font-size:.92rem}.home-more-button{width:100%;min-width:0}.home-world-preview{grid-template-columns:repeat(2,minmax(0,1fr))}}
