/* ===== Weather Dashboard Base Styles ===== */

/* Scoped theme variables */
.wx {
  --bg: #f6faff;
  --panel: #ffffff;
  --line: #e7eef8;
  --brand-600: #2a72ff;
  --brand-700: #1f5bce;
  --brand-50:  #eaf2ff;

  --ink-900: #0b2540;
  --ink-700: #183b62;
  --ink-600: #254a77;
  --ink-500: #496a94;
  --muted:   #6c7c93;

  --green-700:#156b3a; --green-100:#dcf7e8;
  --amber-700:#8a5b05; --amber-100:#fff2cc;
  --orange-700:#8a3b05; --orange-100:#ffe6d6;
  --red-700:#8a1111;   --red-100:#ffe1e1;
  --purple-700:#5a3199;--purple-100:#efe6ff;
  --maroon-700:#6d1a36;--maroon-100:#fde1ec;

  --chip-bg:#f1f5ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 14px rgba(20,50,90,0.06);
}

/* Reset */
.wx * { box-sizing: border-box; }
.wx a { color: var(--brand-700); text-decoration: none; }

/* Container */
.wx .wrap {
  max-width: 1200px;
  margin: 22px auto;
  padding: 0 16px;
  background: transparent;
  color: var(--ink-900);
}

/* Title row */
.wx .page-title { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.wx .page-title h2 { margin: 0; font-size: clamp(20px, 2.8vw, 28px); color: var(--ink-900); }
.wx .badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-50); color: var(--brand-700);
  padding: 6px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line);
}
.wx .muted { color: var(--muted); }

/* Toolbar */
.wx .toolbar {
  display: grid; gap: 8px; margin: 12px 0;
  grid-template-columns: 1fr;
  align-items: center;
}
.wx .toolbar > * { min-width: 0; }
.wx .toolbar input,
.wx .toolbar select,
.wx .toolbar button {
  height: 40px; border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 10px;
  background: #fff;
  color: var(--ink-900);
  width: 100%;
}
.wx .toolbar button {
  background: var(--brand-600); color: #fff;
  border: none; box-shadow: var(--shadow);
  font-weight: 600;
}
.wx .toolbar button:hover { background: var(--brand-700); }

@media (min-width: 860px) {
  .wx .toolbar { grid-template-columns: 1.2fr 0.6fr 0.6fr 0.6fr auto; }
}

/* Grid layout */
.wx .grid { display: grid; gap: 16px; }
@media (min-width: 980px) { .wx .grid { grid-template-columns: 1.3fr 1fr; } }

.wx .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.wx .card h3 { margin: 0 0 8px 0; color: var(--ink-700); font-size: clamp(16px, 2.2vw, 20px); }

/* KPIs */
.wx .kpis { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
@media (min-width: 700px) { .wx .kpis { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.wx .kpi {
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  border: 1px solid var(--line);
  padding: 12px; border-radius: 12px;
  display: grid; gap: 4px;
}
.wx .kpi .label { font-size: 12px; color: var(--muted); }
.wx .kpi .value { font-size: 24px; font-weight: 700; color: var(--ink-900); line-height: 1.2; }
.wx .kpi .sub { font-size: 12px; color: var(--muted); }

/* AQI chip */
.wx .aqi-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 999px; border: 1px solid var(--line); }
.wx .aqi-dot { width: 10px; height: 10px; border-radius: 50%; }

/* Daily tiles */
.wx .tiles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
@media (min-width: 640px) { .wx .tiles { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 980px) { .wx .tiles { grid-template-columns: repeat(5, minmax(0,1fr)); } }

.wx .tile {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px; text-align: center; background: #fff;
}
.wx .tile .d { font-size: 12px; color: var(--muted); }
.wx .tile .t { font-size: 18px; font-weight: 700; }
.wx .tile .s { font-size: 12px; color: var(--ink-600); }

/* Charts */
.wx canvas { width: 100%; height: 300px !important; display: block; }

/* Alerts */
.wx .alert {
  background: #fff5f5;
  border: 1px solid #ffd8d8;
  color: #a30000;
  padding: 12px;
  border-radius: 12px;
}

/* Footer container */
.footer {
  background: #f9fafb; /* light gray background */
  padding: 20px 0;
  text-align: center;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: #333; /* darker text */
}

/* Footer title */
.footer h4 {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
}

/* Social links */
.footer .social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 8px;
}

.footer .social-links a {
  color: #555;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.footer .social-links a:hover {
  color: #1d4ed8; /* blue highlight on hover */
}

/* Footer Base */
.footer {
  background: #f9fafb;
  padding: 24px 0;
  text-align: center;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: #333;
}

/* Social Section */
.footer-social p {
  font-weight: 600;
  font-size: 1.1rem;
  color: #111;
  margin-bottom: 12px;
}

.footer-social .social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-social .social-icons a {
  text-decoration: none;
  color: #444;
  font-size: 14px;
  text-align: center;
  transition: color 0.2s ease;
}

.footer-social .social-icons a i {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 4px;
}

.footer-social .social-icons a:hover {
  color: #1d4ed8; /* blue hover */
}

/* Links */
.footer-links {
  margin: 18px 0 10px;
}

.footer-links a {
  margin: 0 8px;
  color: #444;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #1d4ed8;
}

/* Attribution */
.footer .attrib {
  font-size: 13px;
  color: #555;
}
.footer .attrib a {
  color: #1d4ed8;
  text-decoration: none;
}
.footer .attrib a:hover {
  text-decoration: underline;
}

/* ==== Charts (scoped to .wx) ==== */
.wx .charts { display:grid; grid-template-columns:1fr; gap:16px; margin-top:16px; }
@media (min-width: 900px){ .wx .charts{ grid-template-columns:1fr 1fr; } }
.wx .charts > div { min-width:0; }

.wx .chart-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
}
.wx .chart-card h4{
  margin: 0 0 8px 0; font-size: 14px; color: var(--ink-700); font-weight: 700;
}
.wx canvas{ width:100%; height:300px !important; display:block; border-radius: 10px; }

.wx .charts .full { grid-column: 1 / -1; }


/* Align header logo + title */
.header .wrap {
  display: flex;
  align-items: center;
  gap: 10px;              /* spacing between logo + text */
}

.header .wrap img {
  display: block;
  height: 36px;
  width: 36px;
}

.header .wrap h1 {
  margin: 0;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  color: gold;
  line-height: 1;         /* remove extra vertical space */
  display: flex;
  align-items: center;
}

/* --- Normalize page gutters & align header with content --- */
:root{
  --page-max: 1200px;   /* same width as your .wx .wrap */
  --page-gutter: 16px;  /* same side padding as content */
}

/* Make header container match content container exactly */
.header .wrap{
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 8px var(--page-gutter);
  display: flex;
  align-items: center;      /* vertical centering */
  gap: 10px;
}

/* Align the logo + title on the same baseline */
.header .wrap > a{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header .wrap img{
  display: block;
  width: 32px;              /* tweak if you prefer 36px */
  height: 32px;
}

.header .wrap h1{
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: center;      /* remove the “dip” from font baseline */
}

/* Ensure the content container uses the same gutter so left edges line up */
.wx .wrap{
  max-width: var(--page-max);
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* Base nav styles */
.nav {
  display: flex;
  gap: 14px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 500;
}

.nav a:hover {
  background: rgba(255,255,255,.08);
}

/* Hamburger button */
.menu-toggle {
  display: none; /* hidden on desktop */
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform .2s ease, opacity .2s ease;
}

/* When active (menu open) */
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Backdrop overlay */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: none;
  z-index: 999;
}
.nav-backdrop.show {
  display: block;
}

/* Mobile drawer */
@media(max-width: 768px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: var(--header-h, 64px); /* below header */
    left: 0;
    bottom: 0;
    width: 70%;
    max-width: 280px;
    background: #0b1c2b;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform .3s ease-in-out;
    z-index: 1000;
  }
  .nav.open {
    transform: translateX(0);
  }
  .nav a {
    padding: 12px 0;
  }
  .menu-date {
    display: block;
    font-size: 14px;
    color: #9fb2d1;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(159,178,209,.18);
    padding-bottom: 8px;
  }
}
/* Header shell */
.header { position: fixed; top:0; left:0; right:0; z-index:1100; background:#0b1c2b; box-shadow:0 2px 10px rgba(0,0,0,.12); }
:root { --header-h: 64px; }
body { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }

/* Layout */
.header .wrap{
  max-width:1100px; margin:0 auto; padding:10px 14px;
  display:grid; grid-template-columns:auto 1fr auto; gap:12px; align-items:center;
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand img{ height:clamp(28px,5vw,45px); width:clamp(28px,5vw,45px); display:block; }
.brand-name{ color:gold; font-size:clamp(18px,3vw,24px); font-weight:700; line-height:1; }

/* Title */
.page-title{
  justify-self:start; margin:0; color:#eaf2ff; font-weight:800; line-height:1.25;
  font-size:clamp(14px,2.6vw,18px);
  position:relative; letter-spacing:.2px;
}
.page-title::after{
  content:""; display:block; height:2px; width:64px; margin-top:6px; border-radius:999px;
  background:linear-gradient(90deg,#d4af37,rgba(255,255,255,.15)); box-shadow:0 2px 8px rgba(212,175,55,.35);
}

/* Desktop nav */
.nav{ display:flex; gap:14px; }
.nav a{ color:#fff; text-decoration:none; padding:8px 10px; border-radius:8px; }
.nav a:hover{ background:rgba(255,255,255,.08); }

/* Hamburger */
.menu-toggle{
  display:none; background:transparent; border:0; padding:10px; cursor:pointer;
  align-items:center; justify-content:center; flex-direction:column; gap:6px;
}
.menu-toggle .bar{ width:24px; height:2px; background:#fff; transition:transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1){ transform:translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2){ opacity:0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }

/* Mobile drawer */
@media (max-width: 768px){
  .menu-toggle{ display:inline-flex; }
  .header .wrap{ grid-template-columns:auto 1fr auto; gap:8px; }

  /* Make nav a drawer under fixed header */
  .nav{
    position:fixed; top:var(--header-h); left:0; bottom:0;
    width:72%; max-width:300px;
    background:#0b1c2b; padding:20px; flex-direction:column; gap:12px;
    transform:translateX(-100%); transition:transform .3s ease-in-out;
    border-right:1px solid rgba(255,255,255,.08); z-index:1000;
  }
  .nav.open{ transform:translateX(0); }
  .nav a{ padding:10px 0; }

  /* Backdrop */
  .nav-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:999; }
  .nav-backdrop[hidden]{ display:none; }

  /* Date badge only inside drawer */
  .menu-date{ display:block; font-size:14px; color:#9fb2d1; margin:4px 0 12px; padding-bottom:8px;
    border-bottom:1px solid rgba(159,178,209,0.18); }
  .nav .day-badge{ background:transparent; color:#9fb2d1; padding:0; gap:6px; box-shadow:none; border-radius:0; }
  .nav .day-badge .t{ display:none; }

  /* Title scales a bit smaller on mobile */
  .page-title{ font-size:clamp(13px,3.2vw,16px); }
  .page-title::after{ width:56px; }
}

/* Page heading (location h2) */
.wx .page-title h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.2;
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  box-shadow: 0 2px 6px rgba(20,50,90,0.05);
}

/* Generic h2 style - applies to all h2 tags */
h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: #0b2540;   /* dark ink color */
  margin: 0 0 12px 0;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Optional accent underline */
h2::after {
  content: '';
  flex: 1;
  height: 2px;
  margin-left: 10px;
  background: linear-gradient(90deg, #2a72ff, transparent);
}

/* Generic h3 style - applies to all h3 tags */
h3 {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 600;
  color: #254a77;       /* darker ink tone */
  margin: 20px 0 12px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Optional accent underline */
h3::after {
  content: '';
  flex: 1;
  height: 2px;
  margin-left: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ffd666, transparent);
}
/* Generic h3 style (fallback for all) */
h3 {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 600;
  color: #254a77;
  margin: 20px 0 12px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Specific styling for Situation h3 */
h3.page-title.situ {
  font-size: clamp(19px, 2.5vw, 23px);
  color: #0b2540;                /* darker ink */
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #e6eef9;
  padding-bottom: 4px;
}

/* Badge inside Situation */
h3.page-title.situ .badge {
  background: #eef5ff;
  color: #2a72ff;
  border-radius: 50%;
  padding: 4px 6px;
  font-size: 14px;
}

/* Info link (ℹ️) aligned to the right */
h3.page-title.situ .info-link {
  font-size: 14px;
  color: #496a94;
  text-decoration: none;
  margin-left: auto;
}
h3.page-title.situ .info-link:hover {
  color: #2a72ff;
  text-decoration: underline;
}
/* Base h3 style for all section titles */
h3.page-title {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 600;
  color: #0b2540;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 12px;
  padding-bottom: 4px;
  border-bottom: 2px solid #e6eef9;
  line-height: 1.3;
}

/* Badge inside h3 (like 🌧, 🔎, etc.) */
h3.page-title .badge {
  background: #eef5ff;
  color: #2a72ff;
  border-radius: 50%;
  padding: 4px 6px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Optional info link (like ℹ️ in Situation) */
h3.page-title .info-link {
  font-size: 14px;
  color: #496a94;
  text-decoration: none;
  margin-left: auto;
}
h3.page-title .info-link:hover {
  color: #2a72ff;
  text-decoration: underline;
}

/* ---------- Header shell ---------- */
.wp-header{
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1100;
  background:#0b1c2b;
  color:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.12);
}
.wp-header__wrap{
  max-width:1100px;
  margin:0 auto;
  padding:10px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* Brand */
.wp-brand{
  display:flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
}

/* Title under brand */
.wp-page-title{
  position:relative;
  font-weight:800;
  color:#eaf2ff;
  letter-spacing:.2px;
  margin:14px 0 10px;
  line-height:1.3;
}
:root { --gold:#d4af37; }
.wp-page-title::after{
  content:"";
  display:block;
  height:2px;
  width:72px;
  margin-top:6px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--gold),rgba(255,255,255,.15));
  box-shadow:0 2px 8px rgba(212,175,55,.35);
}
@media (max-width:520px){
  .wp-page-title{ margin:12px 0 8px; }
  .wp-page-title::after{ width:56px; }
}

/* Nav */
.wp-nav{
  display:flex;
  gap:14px;
}
.wp-nav a{
  color:#fff;
  text-decoration:none;
  padding:8px 10px;
  border-radius:8px;
}
.wp-nav a:hover{ background:rgba(255,255,255,.08); }

/* Toggle (hidden desktop) */
.wp-nav-toggle{
  display:none;
  background:transparent;
  border:0;
  padding:10px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:6px;
}
.wp-nav-toggle__bar{
  display:block;
  width:24px;
  height:2px;
  background:#fff;
  line-height:0;
  transition:transform .2s ease, opacity .2s ease;
}
.wp-nav-toggle[aria-expanded="true"] .wp-nav-toggle__bar:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.wp-nav-toggle[aria-expanded="true"] .wp-nav-toggle__bar:nth-child(2){ opacity:0; }
.wp-nav-toggle[aria-expanded="true"] .wp-nav-toggle__bar:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* Mobile drawer + backdrop */
.wp-nav__backdrop{ position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; z-index: 999; }
.wp-nav__backdrop.show{ display:block; }
.wp-nav__date{ display:none; } /* hidden on desktop */

@media (max-width:900px){
  .wp-header__wrap{ gap:8px; }
}
@media (max-width:768px){
  .wp-nav-toggle{ display:inline-flex; }
  .wp-nav{
    position: fixed;
    top: var(--header-h);
    left: 0; bottom: 0;
    width: 70%; max-width: 280px;
    background:#0b1c2b;
    padding: 20px;
    flex-direction: column;
    gap: 12px;
    transform: translateX(-100%);
    transition: transform .3s ease-in-out;
    z-index: 1000;
    border-right: 1px solid rgba(255,255,255,.08);
  }
  .wp-nav.open{ transform: translateX(0); }
  .wp-nav a{ padding:10px 0; }

  .wp-nav__date{
    display:block;
    font-size:14px;
    color:#9fb2d1;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(159,178,209,0.18);
  }
}

/* Badge */
.wp-badge{
  background:#24384d;
  color:#ffe28a;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 14px;
  border-radius:10px;
  font-weight:700;
  font-size:1.05rem;
  white-space:nowrap;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
}
.wp-badge__emo{ font-size:1.1em; line-height:1; }
.wp-badge__temp{
  color:#fff;
  background:#0b1c2b;
  padding:2px 8px;
  border-radius:999px;
  font-weight:700;
}

/* Tame badge inside the drawer */
@media (max-width:768px){
  .wp-nav .wp-badge{
    background: transparent;
    color: #9fb2d1;
    padding: 0;
    gap: 6px;
    box-shadow: none;
    border-radius: 0;
    font-weight: 600;
  }
  .wp-nav .wp-badge__temp{ display:none; }
}

/* Mobile drawer */
.wp-nav{
  position:fixed; top:var(--wp-header-h,64px); left:0; bottom:0;
  width:72%; max-width:300px; padding:18px;
  background:#0b1c2b; display:flex; flex-direction:column; gap:12px;
  transform:translateX(-100%); transition:transform .3s ease; z-index:1000;
  border-right:1px solid rgba(255,255,255,.1);
}
.wp-nav.open{ transform:translateX(0); }

.wp-nav__backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.5);
  display:none; z-index:999;
}
.wp-nav__backdrop.show{ display:block; }

body.wp-lock{ overflow:hidden; }

@media (min-width:769px){
  .wp-nav{ position:static; transform:none; background:transparent; width:auto; padding:0; flex-direction:row; gap:14px; border:0; }
  .wp-nav__backdrop{ display:none !important; }
}
.wp-nav {
  position: fixed;
  top: var(--header-h, 64px);
  left: 0;
  bottom: 0;
  width: 70%;
  max-width: 280px;
  background: #0b1c2b;
  padding: 60px 20px 20px;
  flex-direction: column;
  gap: 12px;
  transform: translateX(-100%);
  transition: transform .3s ease-in-out;
  z-index: 1000;
  border-right: 1px solid rgba(255,255,255,.08);
}
.wp-nav.open { transform: translateX(0); }

.wp-nav__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 999;
}
.wp-nav__backdrop.show { display: block; }

.wp-nav-toggle { display: inline-flex; }

.footer-social .social-icons i {
  font-size: 2.5rem;   /* adjust until it matches */
  vertical-align: middle;
}
.footer-social .social-icons a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  margin: 0 10px;
}

.footer-social .social-icons i {
  font-size: 2.2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-social .social-icons i {
  font-size: 2.5rem;   /* adjust until X matches */
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-social .social-icons a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 10px;
  text-decoration: none;
}
/* Style only the "X" logo letter */
.footer-social .social-icons .x-logo {
  font-size: 2.5rem;    /* increase size */
  font-weight: 700;     /* bold to match logo weight */
  line-height: 1;       /* keep it vertically centered */
}

/* ===== Weather Table Styling ===== */
.wx-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;   /* gap between rows */
  font-family: system-ui, sans-serif;
  font-size: 15px;
}

.wx-table thead th {
  text-align: left;
  font-weight: 600;
  padding: 10px 12px;
  background: rgba(255,255,255,0.05);
  border-bottom: 2px solid rgba(255,255,255,0.1);
  color: #f0f0f0;
}

.wx-table tbody tr {
  background: rgba(255,255,255,0.03);
  transition: background 0.2s ease;
}
.wx-table tbody tr:hover {
  background: rgba(255,255,255,0.08);
}

.wx-table td {
  padding: 10px 12px;
  color: #e4e4e4;
}

.wx-table td:first-child {
  font-weight: 600;
  color: #fff;
}

.wx-table td:nth-child(2) {
  white-space: nowrap;
}

.wx-table .wx-right {
  text-align: right;
}

.wx-table tbody tr td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.wx-table tbody tr td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .wx-table thead {
    display: none;
  }
  .wx-table tbody tr {
    display: block;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
  }
  .wx-table td {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .wx-table td:last-child {
    border-bottom: none;
  }
  .wx-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #bbb;
  }
}

/* ===== Daily table ===== */
.wx-table-wrap{margin:10px 0 18px}
.wx-range-inline{display:flex;align-items:center;gap:10px;margin:6px 0 8px}

/* keep columns aligned and stable */
.wx-table{
  width:100%;
  table-layout:fixed;        /* <- header/body columns lock */
  border-collapse:separate;
  border-spacing:0 8px;      /* row gap */
  font-size:15px;
}

/* column widths (tweak as you like) */
.wx-col-date{width:28%}
.wx-col-cond{width:34%}
.wx-col-num {width:12%}      /* high/low/rain */

.wx-table thead th{
  text-align:left;
  font-weight:700;
  padding:10px 12px;
  color:#0c2540;             /* dark theme: switch to #f0f4ff */
  opacity:.85;
  border-bottom:2px solid rgba(0,0,0,.08);
}
.light .wx-table thead th{ color:#0c2540 }
.dark  .wx-table thead th{ color:#eaf2ff; border-bottom-color:rgba(255,255,255,.12) }

.wx-table tbody tr{
  background:rgba(12,37,64,.04);
  transition:background .18s ease;
}
.dark .wx-table tbody tr{ background:rgba(255,255,255,.04) }
.wx-table tbody tr:hover{
  background:rgba(12,37,64,.08);
}
.dark .wx-table tbody tr:hover{ background:rgba(255,255,255,.08) }

.wx-table td{
  padding:10px 12px;
  vertical-align:middle;
  color:#0c2540;
}
.dark .wx-table td{ color:#eaf2ff }

/* rounded row card */
.wx-table tbody tr td:first-child{border-top-left-radius:10px;border-bottom-left-radius:10px}
.wx-table tbody tr td:last-child {border-top-right-radius:10px;border-bottom-right-radius:10px}

/* numbers right aligned & monospaced for clean columns */
.wx-num{ text-align:right; font-variant-numeric: tabular-nums; }

/* date bold */
.wx-date{ font-weight:700 }

/* condition cell: icon + text in a row */
.wx-cond{
  display:flex; align-items:center; gap:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.wx-cond .wx-ico{width:22px;height:22px;display:inline-block; line-height:22px; text-align:center}

/* range select */
.wx-range-inline select, .wx-range-inline input[type="date"]{
  padding:6px 10px; border:1px solid rgba(12,37,64,.2); border-radius:8px; background:#fff;
}
.dark .wx-range-inline select, .dark .wx-range-inline input[type="date"]{
  background:#0f2137; border-color:rgba(255,255,255,.18); color:#eaf2ff;
}

/* mobile */
@media (max-width:640px){
  .wx-col-date{width:36%}
  .wx-col-cond{width:44%}
  .wx-col-num {width:20%}
  .wx-table{ border-spacing:0 6px; font-size:14px }
  .wx-range-inline{ flex-wrap:wrap }
}

/* Range selector bar */
.wx-range-bar {
  display: flex;
  justify-content: flex-end;   /* align to right */
  margin: 6px 0 12px;
}

.wx-range-form select,
.wx-range-form input[type="date"],
.wx-range-form button {
  margin-left: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(12,37,64,.2);
  border-radius: 6px;
  font-size: 14px;
}

.dark .wx-range-form select,
.dark .wx-range-form input[type="date"],
.dark .wx-range-form button {
  background: #0f2137;
  border-color: rgba(255,255,255,.18);
  color: #eaf2ff;
}
/* scroll container */
.wx-table-scroller{
  overflow-x:auto;           /* enable horizontal scroll if needed */
  -webkit-overflow-scrolling: touch;
}

/* keep enough room for all columns */
.wx-table{
  table-layout: fixed;       /* stable column widths */
  min-width: 720px;          /* <- ensures other columns don’t collapse */
}

/* (optional) if your layout is very tight, use a smaller min width) */
/* .wx-table{ min-width: 640px } */

/* keep numeric columns narrow & right-aligned  */
.wx-col-num { width: 12%; }
.wx-num { text-align: right; font-variant-numeric: tabular-nums; }

/* condition column keeps text ellipsis instead of pushing width */
.wx-cond{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Darker row backgrounds */
.wx-table tbody tr {
  background: rgba(12,37,64,0.12);     /* darker base */
}
.wx-table tbody tr:hover {
  background: rgba(12,37,64,0.20);     /* darker hover */
}

/* if you want text stronger against dark rows */
.wx-table td {
  color: #1a1a1a;    /* dark text for light theme */
}
.dark .wx-table td {
  color: #eaf2ff;    /* keep bright text for dark theme */
}

/* Date column text color */
.wx-table td.wx-date {
  color: #222;       /* dark gray for light theme */
  font-weight: 600;  /* keep it a bit stronger */
}

.dark .wx-table td.wx-date {
  color: #fff;       /* stay white in dark theme */
}


.about {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.about-photo {
  flex: 1;
  max-width: 250px;
}

.about-photo img {
  width: 100%;
  border-radius: 12px; /* change to 50% for circular */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.about-text {
  flex: 3;
}

.about-text h1 {
  margin-top: 0;
  font-size: 1.8em;
  color: #333;
}

.about-text p {
  line-height: 1.6;
  font-size: 1.05em;
  color: #444;
}
/* ===== Owner & Lead Developer page ===== */
.about-page {
  /* Optional body-level tweaks for this page only */
  --about-maxw: 900px;
  background: var(--page-bg, #f8f9fb); /* light, subtle background */
}

.about.wrap {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: var(--about-maxw);
  margin: 40px auto;
  padding: 20px;
}

.about-photo {
  flex: 1;
  max-width: 250px;
}
.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px; /* change to 50% for circular */
  box-shadow: 0 2px 6px rgba(0,0,0,0.16);
}

.about-text {
  flex: 3;
}
.about-text h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  color: #222;
}
.about-text h2 {
  margin-top: 22px;
  font-size: clamp(1.2rem, 2.2vw, 1.35rem);
  color: #333;
}
.about-text p {
  line-height: 1.65;
  font-size: 1.05rem;
  color: #444;
}
.about-text ul {
  margin: 8px 0 0 18px;
  line-height: 1.6;
  color: #444;
}

/* Mobile stack */
@media (max-width: 768px) {
  .about.wrap {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    margin: 24px auto;
  }
  .about-photo {
    max-width: 200px;
  }
}
.about-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;   /* or 50% for circle */
  background: #fff;      /* ensures a clean white background */
  padding: 4px;          /* optional frame */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.about-photo img {
  border-radius: 50%;
}
/* ===== Owner & Lead Developer page layout ===== */
.about.wrap {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}

/* Profile photo */
.about-photo {
  flex: 0 0 220px;   /* fixed width */
}
.about-photo img {
  width: 220px;
  height: 220px;
  object-fit: cover;   /* crop if needed */
  border-radius: 50%;  /* circle */
  border: 4px solid #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Text section */
.about-text {
  flex: 1;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #333;
}

.about-text h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.8rem;
  color: #111;
}

.about-text h2 {
  margin-top: 25px;
  font-size: 1.35rem;
  color: #222;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

.about-text ul {
  margin: 8px 0 0 20px;
  line-height: 1.6;
  color: #444;
}

/* Mobile view */
@media (max-width: 768px) {
  .about.wrap {
    flex-direction: column;
    text-align: center;
  }
  .about-photo {
    margin: 0 auto 20px;
  }
  .about-photo img {
    width: 180px;
    height: 180px;
  }
  .about-text {
    text-align: left;
  }
}
/* ===== Owner & Lead Developer page responsive fix ===== */
.about-photo img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .about.wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
  }
  .about-photo {
    margin-bottom: 20px;
  }
  .about-photo img {
    width: 140px;   /* smaller image */
    height: 140px;
  }
  .about-text {
    text-align: left;
    font-size: 1rem;
  }
}
/* Desktop (default) */
.about-photo img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Mobile stricter sizing */
@media (max-width: 768px) {
  .about.wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
  }
  .about-photo {
    margin-bottom: 16px;
  }
  .about-photo img {
    width: 100px !important;   /* much smaller */
    height: 100px !important;
    max-width: 100px;
    max-height: 100px;
  }
  .about-text {
    text-align: left;
    font-size: 0.95rem;
  }
}
/* Desktop defaults */
.about-photo { flex: 0 0 auto; }
.about-photo .profile-img {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Tablet */
@media (max-width: 992px) {
  .about-photo .profile-img { width: 180px; height: 180px; }
}

/* Phone */
@media (max-width: 768px) {
  .about.wrap { flex-direction: column; align-items: center; text-align: center; }
  .about-photo { margin-bottom: 16px; }
  /* high-specificity + !important to beat global img rules like img { max-width:100% } */
  .about.wrap .about-photo img.profile-img {
    width: 110px !important;
    height: 110px !important;
    max-width: 110px !important;
    max-height: 110px !important;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .about.wrap .about-photo img.profile-img {
    width: 88px !important;
    height: 88px !important;
    max-width: 88px !important;
    max-height: 88px !important;
  }
}

.wx-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  gap: 1rem;
}

.wx-card {
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.wx-card-date {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.wx-card-cond {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.wx-card-cond .wx-ico {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.wx-card-temps {
  margin-bottom: 0.5rem;
}

.wx-temp-hi { color: #d9534f; }  /* red */
.wx-temp-lo { color: #0275d8; }  /* blue */

.wx-card-rain {
  font-style: italic;
  color: #555;
}

