/* ===========================
   GLOBAL SITE-WIDE STYLES
   =========================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  background-color: #b5b9bc;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #f8f9fa;
  line-height: 1.6;
}

/* Ensure all wx-page sections inherit */
.wx-page {
  padding: 1rem;
}

#container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#header {
  margin-top: 20px;
  height: 220px;
  background-image: url(images/header-img.png);
  background-size: cover;
  background-position: center;
  position: relative;
}

.text p.section-heading::after {
  background-color: #94a3b8; /* slate-400 */
}

.text p.section-heading .section-icon {
  color: inherit;
}

/* Tech page section icons */
.section-heading .section-icon {
  margin-right: 6px;
  font-size: 0.9em;
}

/* ===================================
   Section heading icon color system
   ================================== */

.section-heading[data-icon="overview"]     .section-icon { color:#4c78a8; } /* neutral blue */
.section-heading[data-icon="why"]          .section-icon { color:#03775e; } /* gold */
.section-heading[data-icon="architecture"] .section-icon { color:#0077b6; } /* blue */
.section-heading[data-icon="cloud"]        .section-icon { color:#00b4d8; } /* teal */
.section-heading[data-icon="compute"]      .section-icon { color:#0096c7; } /* cyan */
.section-heading[data-icon="api"]          .section-icon { color:#f4a261; } /* amber */
.section-heading[data-icon="storage"]      .section-icon { color:#2a9d8f; } /* green */
.section-heading[data-icon="security"]     .section-icon { color:#e76f51; } /* red-orange */
.section-heading[data-icon="cost"]         .section-icon { color:#f4a261; } /* amber */
.section-heading[data-icon="alarms"]       .section-icon { color:#d97706; } /* amber */
.section-heading[data-icon="iac"]           .section-icon { color:#6a4c93; } /* purple */
.section-heading[data-icon="demo"]         .section-icon { color:#0077b6; } /* blue */
.section-heading[data-icon="data"]         .section-icon { color:#00b4d8; } /* teal */
.section-heading[data-icon="stack"]         .section-icon { color:#1818cb; }
.section-heading[data-icon="monitoring"]    section-icon { color:#78cb18; }
.section-heading[data-icon="widget"]        section-icon { color:#8668a4; }



/* ---- NAVIGATION ---- */
.menu-toggle {
  display: none;
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: white;
  z-index: 9999;
}

#header nav {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#nav-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  border: 1px solid #00b4d8;
}

#nav-menu > li {
  position: relative;
}

#nav-menu > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -4px; /* move separator away from the menu item text */
  transform: translateY(-50%);
  height: 16px;
  width: 1px;
  background-color: #f8f9fa;
}

#nav-menu a {
  font-size: 12px;
  font-weight: bold;
  color: #f8f9fa;
  text-decoration: none;
  padding: 8px 12px;
  display: inline-block;
}

#nav-menu a:hover {
  color: #00b4d8;
}

#nav-menu a.active {
  background-color: rgba(0, 180, 216, 0.25);
  color: #ffffff;
  border-radius: 4px;
}

/* ===== Dropdown Nav Menu ===== */
#nav-menu li.dropdown {
  position: relative;
}

#nav-menu li.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1b263b; /* or another solid color */
  border: 1px solid #0077b6;     /* ✅ AWS-style soft blue border */  
  border-radius: 4px;
  padding: 8px 0;
  z-index: 1000;
  min-width: 160px;
  text-align: left;
}

#nav-menu li.dropdown:hover .dropdown-menu {
  display: block;
}

/* === Dropdown arrow styling === */
.dropdown-arrow {
  font-size: 10px;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.45s ease-in-out, color 0.3s ease;
  color: #f8f9fa; /* default color */
}

/* Rotate arrow and change color on hover */
#nav-menu li.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
  color: #f8f9fa;
  /*color: #00b4d8;*/  /* match your hover blue */
}

.dropdown-menu li {
  display: block;
  padding: 0;
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  font-size: 12px;
  color: #f8f9fa;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background-color: #3b4d61;
  color: #ffffff;
}

/* Rotate arrow and change color on hover */
#nav-menu li.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
  color: #f8f9fa;
  /*color: #00b4d8;*/  /* match your hover blue */
}

/* ---- CONTENT ---- */
.intro-text {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  max-width: 700px;
  margin: 0 28px 20px;
}

.intro-wrapper {
  max-width: 800px;
  margin: 0 auto 20px auto;
  padding: 0 20px;
}

#content {
  background-color: #1b263b;
  color: #f8f9fa;
  padding: 20px;
  margin-bottom: 0;
  flex: 1;
}

.content-flex {
  display: flex;
  justify-content: center; /* ensures children like #left and #right are centered */
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

#left,
#right {
  flex: 1 1 auto;
  max-width: 800px;
  margin: 0 auto;
  background-color: #dde2f0;
  color: #a0acb7;
  border: 2px solid #80a2e7;
  padding: 20px;
  border-radius: 15px;
  box-sizing: border-box;
}

/* ------------ LISTS (GLOBAL) ------------ */

ul {
  list-style-type: disc;
  font-size: 13px;
  color: #121f2c;
  list-style-position: outside;
}

/* Make ordered lists match unordered lists */
ol {
  list-style-type: decimal;
  font-size: 13px;
  color: #121f2c;
  list-style-position: outside;
}

/* Lists inside text content boxes */
.text ul,
#left .text ul,
.text ol,
#left .text ol {
  margin: 0.5rem 0 0.75rem 1.25rem;  /* top/right/bottom/left */
  padding-left: 1.25rem;             /* space for bullets/numbers */
  list-style-position: outside;      /* keep markers outside the box */
}

/* List items inside text content */
.text li,
#left .text li {
  margin-left: 0.25rem;              /* slight additional indent for wraps */
  line-height: 1.5;
}

/* Nested lists get further indent */
.text li ul,
.text li ol {
  margin-left: 1.25rem;
}

/* ------------ END LISTS ------------ */

.text h3 {
  font-size: 15px;
  color: #031c21;
  text-decoration: underline;
  margin: 20px 0 10px;
}

.text p {
  font-size: 13px;
  margin: 10px 0;
  color: #121f2c;
}

.molly-container {
  text-align: center;
  margin-top: 30px;
}

.molly-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}

.molly-photo:hover {
  transform: scale(1.05);
}

.molly-caption {
  margin-top: 10px;
  font-style: italic;
  color: #555;
}

.cert-section {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align children (including h3) to the left */
}


/* Ron headshot – About page */
.about-page .ron-container {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 15px;
}

.about-page .ron-photo {
  width: 200px;          /* adjust to taste (200–240px) */
  height: 200px;
  object-fit: cover;
  border-radius: 50%;    /* makes it circular */
  border: 4px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

.about-page .ron-photo:hover {
  transform: scale(1.02);
}
/* End Ron headshot */

/* ===========================
   ABOUT PAGE — POLISH
   =========================== */

/* LinkedIn CTA under headshot */
.about-linkedin {
  text-align: center;
  margin-top: 10px;
}

.about-linkedin a {
  color: #0373af;
  font-weight: 800;
  text-decoration: none;
}

.about-linkedin a:hover {
  text-decoration: underline;
}

/* Proof snapshot block */
.proof-snapshot {
  background: #ffffff;
  border: 1.5px solid #9fb6cf;
  border-radius: 14px;
  padding: 14px 14px 12px;
  margin: 14px 0 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

.proof-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 900;
  color: #061a2c;
  display: flex;
  align-items: center;
  gap: 8px;
}

.proof-title i {
  color: #0988c1;
}

.proof-snapshot ul {
  margin: 0.35rem 0 0.25rem 1.15rem;
  padding-left: 1.15rem;
}

.proof-snapshot li {
  color: #223447;
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 6px;
}

.proof-snapshot strong {
  color: #061a2c;
}

/* Certifications heading alignment */
.cert-heading {
  text-align: center;
  font-weight: 900;
  font-size: 18px;
}


.text h3,
.cert-section h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 20px 0 10px;
  color: #031c21;
  text-decoration: none; /* Removes the underline */
}

/* --- ABOUT: separator before Certifications --- */
.cert-heading {
  margin-top: 28px;          /* space before the separator */
  padding-top: 20px;         /* space between line and heading */
  border-top: 1px solid #9fb6cf;
}


.section-heading::after {
  content: "";
  display: block;
  width: 100%;            /* ← THIS is the line length */
  height: 1px;
  background-color: #94a3b8; /* slate-400 */
  margin-top: 6px;
  border-radius: 2px;
}

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.cert-badges img {
  height: 100px;
  transition: transform 0.2s ease-in-out;
}

.cert-badges img:hover {
  transform: scale(1.05);
}

#footer {
  background-color: #777879;
  text-align: center;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: bold;
  color: #ebedef;
  margin-top: 0;
}

.resume-link {
  margin-top: 20px;
  text-align: left;
  font-family: Verdana, Arial, Helvetica, sans-serif;

}

.resume-link a {
  display: inline-flex;
  align-items: center;
  background-color: #0077b6;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 12px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  gap: 8px;
  transition: background-color 0.3s ease;
}

.resume-link a:hover {
  background-color: #253e62;
}

.pdf-icon {
  height: 20px;
  width: auto;
  display: inline-block;
}

.header-overlay {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.header-overlay h1 {
  font-size: 30px;
  margin: 0;
}

.header-overlay p {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem); /* scales with screen width */
  line-height: 1.3;
  text-align: center;
  word-break: keep-all;
  white-space: normal;
  margin: 4px 0;
  padding: 0 10px;
}

/* Tagline styling under name */
.tagline-main {
  font-size: 1.6rem;   /* or whatever you already have */
  font-weight: 600;
}

.tagline-sub {
  font-size: 0.9rem !important;
  font-weight: 300;
  opacity: 0.85;
}


/* Utility helpers */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }

/* ===========================
   WEATHER PAGE STYLES
   (scoped to body.wx-page)
   =========================== */

/* ===============================
   Weather Dashboard Container
   =============================== */
.wx-dashboard {
  background: #e9edf5;          /* light card background */
  padding: 1.5rem;
  margin: 2rem auto;
  border-radius: 12px;
  max-width: 1100px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#ingest-status {
  font-size: 0.9rem;
  text-align: left;
}

.wx-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.wx-meta > div:last-child {
  text-align: right;
  font-size: 0.9rem;
  font-weight: 400;
}

.wx-meta > div:last-child strong {
  font-weight: 700;   /* bold only the value */
}

/* ===============================
   Section Header
   =============================== */
.wx-dashboard h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #222;
}

.wx-page #content {
  padding: 1rem;
}

/* Weather section header */
.weather-header {
  display: flex;
  flex-direction: column;   /* stack items vertically */
  align-items: center;      /* center them horizontally */
  margin-bottom: 0.5rem;
  text-align: center;
}

.weather-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  padding-bottom: 1.25rem;  /* forces space under the title */
}

.weather-header .last-updated {
  margin-top: 0.05rem;
  font-size: 0.90rem;
  color: #666;
  text-align: center;
}

  /* Mobile rain column fix */
  /* Rain header: show ONE label only */
  .wx-rain-desktop { display: inline; }
  .wx-rain-mobile  { display: none; }

  @media (max-width: 480px) {
    .wx-rain-desktop { display: none !important; }
    .wx-rain-mobile  { display: inline !important; }
  }

/* Tabs + controls */

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tabs {
  display: flex;
  justify-content: center;   /* centers the buttons horizontally */
  gap: 0.5rem;               /* space between buttons */
  margin: 1rem 0;            /* vertical spacing around the group */
}

.tab-btn {
  padding: 0.4rem 0.9rem;
  border: 1px solid #055d8b;
  background: #f0f4f8;
  color: #055d8b;
  cursor: pointer;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  margin-right: 5px;
}

.tab-btn:hover {
  background: #c7e2f7;
}

.tab-btn.active {
  background: #055d8b;
  color: #fff;
  border-color: #055d8b;
}

/* Charts nav controls */
#controls {
  margin: 0.8rem 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Controls bar (Range + dropdown + Refresh) */
.controls-bar {
  display: flex;
  justify-content: center;   /* centers whole group */
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0;
}

.controls-bar label {
  font-size: 0.75rem;
  font-weight: 550;
  color: #555;
}

.controls-bar select,
.controls-bar button {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  border-radius: 5px;
  border: 2px solid #c4c3c3;
  cursor: pointer;
}

.controls-bar button {
  background: #055d8b;
  color: #fff;
  border: 1px solid #055d8b;
  transition: background 0.2s ease;
}

.controls-bar button:hover {
  background: #044b6f;
}

/* Hover effect for dropdown */
.controls-bar select:hover {
  border-color: #055d8b;    /* AWS-style blue border on hover */
  background-color: #f0f8ff; /* very light blue background */
}

.pager {
  text-align: center;
  margin-top: 0.5rem;
}

#status {
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

#ingest-status {
  margin: .5rem 0;
  color: #0e1726;
  font-size: .9rem;
}

/* Weather table */

.hidden {
  display: none !important;
}

.wx-page #container {
  max-width: 1100px;
}

.wx-page #left {
  flex: 0 1 900px;   /* don't stretch; prefer ~900px */
  max-width: 900px;  /* hard cap */
}

.wx-page .weather-table-container {
  background: #dde2f0;
  color: #031c21;
  border: 2px solid #80a2e7;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 32px;
  margin: 40px auto;
  width: 100%;
  max-width: 900px;
}

/* Table shell */
.wx-page .weather-table,
.wx-page #weather-table {
  width: 100%;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);

  /* let columns size naturally */
  table-layout: auto;
}

/* Header */
.wx-page .weather-table thead th,
.wx-page #weather-table thead th {
  background: #055d8b;
  color: #ffffff;
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  padding: 8px 10px;          /* slightly tighter */
  border-bottom: 1px solid #0a4c73;
  white-space: nowrap;        /* keep headers on one line */
}

/* Rain column header: allow 2-line label on mobile */
.wx-page .weather-table thead th.wx-rain-col,
.wx-page #weather-table thead th.wx-rain-col {
  white-space: normal !important;   /* override global nowrap */
  line-height: 1.05;
}

/* Keep span switching deterministic */
.wx-rain-desktop { display: inline; }
.wx-rain-mobile  { display: none; }

@media (max-width: 480px) {
  .wx-rain-desktop { display: none !important; }
  .wx-rain-mobile  { display: block !important; } /* block helps Safari honor <br> */
}


/* Body cells (defaults) */
.wx-page .weather-table tbody td,
.wx-page #weather-table tbody td {
  color: #0e1726;
  padding: 8px 10px;          /* smaller vertical spacing */
  border-bottom: 1px solid #c5ccd6;
  border-right: 1px solid #d0d6de;
  text-align: center;
  white-space: nowrap;
}

/* Time column (header + cells) */
.wx-page .weather-table th:first-child,
.wx-page #weather-table th:first-child {
  text-align: center;       /* center the "Time" header */
  min-width: 160px;         /* ensure full timestamp fits */
}

.wx-page .weather-table td:first-child,
.wx-page #weather-table td:first-child {
  text-align: left;         /* left-align timestamps */
  white-space: nowrap;
}

/* Power status (last column) */
.wx-page .weather-table tbody td:last-child,
.wx-page #weather-table tbody td:last-child {
  text-align: center;
  font-weight: 700;
  color: #198754;           /* green by default */
  border-right: none;
}

/* Row striping (zebra effect) */
.wx-page .weather-table tbody tr:nth-child(odd),
.wx-page #weather-table tbody tr:nth-child(odd) {
  background: #ffffff;   /* plain white */
}

.wx-page .weather-table tbody tr:nth-child(even),
.wx-page #weather-table tbody tr:nth-child(even) {
  background: #ebedef;   /* light blue-gray */
}

/* Pagination controls */
#pagination {
  display: flex;
  justify-content: center;      /* center horizontally */
  align-items: center;
  gap: 0.5rem;                  /* space between buttons */
  margin: 1rem 0;
  flex-wrap: wrap;              /* allow wrap on small screens */
}

/* Pagination buttons */
#pagination button {
  background: #f0f4fa;          /* light neutral background */
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.4rem 0.9rem;       /* larger tap target */
  font-size: 0.9rem;
  color: #055d8b;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  min-width: 64px;              /* consistent button width */
}

/* Hover (desktop) */
#pagination button:hover:not(:disabled) {
  background: #e0e7f1;
  border-color: #055d8b;
  color: #033f61;
}

/* Active page (future-proofed if you add page numbers later) */
#pagination button.active {
  background: #055d8b;
  color: #fff;
  border-color: #044b6f;
  font-weight: 600;
}

/* Disabled state */
#pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Mobile tuning */
@media (max-width: 600px) {
  #pagination {
    gap: 0.75rem;
  }

  #pagination button {
    padding: 0.5rem 1rem;       /* easier thumb taps */
    font-size: 0.95rem;
  }
}


/* Status message */
.wx-page #status {
  margin: 10px 0 14px;
  color: #c62828;
  text-align: left;
  font-weight: 600;
}

/* Battery status colors — final override */
.wx-page #weather-table td.battery-good,
.wx-page .weather-table td.battery-good {
  color: #198754 !important;  /* green */
  font-weight: 900;
  font-size: 1.25rem;
}

.wx-page #weather-table td.battery-low,
.wx-page .weather-table td.battery-low {
  color: #dc3545 !important;  /* red */
  font-weight: 900;
  font-size: 1.25rem;
}

/* Power column — style ONLY real power cells (prevents "Loading…" from turning green/huge) */
.wx-page .weather-table td.battery,
.wx-page #weather-table td.battery {
  text-align: center;
  font-weight: 900;
  font-size: 1.30rem;
  line-height: 1;
  border-right: none; /* match old last-column behavior */
}

/* Support both class variants you currently have in the file */
.wx-page .weather-table td.battery-ok,
.wx-page #weather-table td.battery-ok,
.wx-page .weather-table td.battery-good,
.wx-page #weather-table td.battery-good {
  color: #198754 !important;
}

.wx-page .weather-table td.battery-low,
.wx-page #weather-table td.battery-low {
  color: #dc3545 !important;
}

/* Loading / empty table message — force subdued style */
.wx-page .weather-table td[colspan],
.wx-page #weather-table td[colspan] {
  font-size: 0.95rem;
  font-weight: 700;
  color: #6b7c88 !important;
  text-align: center;
  padding: 0.75rem;
}


/* HARD OVERRIDES to make charts visible */
/* Charts visibility is controlled by JS; do NOT force display here */
.wx-page #charts {
  display: none;
}

/* Always stack: temp on top, wind below */
#chartsWrap {
  display: grid;
  grid-template-columns: 1fr !important;  /* force 1 column */
  gap: 18px;
  margin-top: 8px;
}

/* --- Separate Temp and Wind charts into clear blocks --- */

/* Add strong visual break before Wind charts */
.wx-page #wind-7d,
.wx-page #wind-30d {
  margin-top: 40px;   /* clear block separation */
}

/* Chart container spacing */
.chart-container canvas {
  margin-top: 1.5rem;
}

.chart-container canvas:first-child {
  margin-top: 0;
}


/* Give captions breathing room so charts don't feel stacked */
.wx-page .chart-caption {
  margin-bottom: 24px;
}


@media (min-width: 900px) {
  #chartsWrap {
    grid-template-columns: 1fr !important;
  }
}

/* Card/Canvas sizing */
.chart-wrap {
  min-height: 360px;
  background: #fff;
  border:1px solid #d0d6de;
  border-radius:8px;
  padding:12px;
}
.chart-wrap canvas {
  display:block;
  width:100%;
  height:320px;
}  /* no !important so JS can tweak */

.chart-wrap {
  min-height:320px !important;
  background:#fff;
  border:1px solid #d0d6de;
}
.chart-wrap canvas {
  display:block !important;
  width:100% !important;
  height:260px !important;
}

/* Breed upload UI: shrink Choose Image text */
#upload-card .resume-link a {
  font-size: 12px;        /* adjust to taste */
  line-height: 1.2;
  padding: 6px 10px;
}
#upload-card .resume-link a i { /* icon size */
  font-size: 0.8em;
  margin-right: 6px;
}

/* Dog Breed page tweaks */
#uploadBtn {
  padding: 5px 12px !important;   /* was 6px 10px - adjust to make it tighter */
  font-size: 12px !important;     /* smaller text */
  border-radius: 6px !important;  /* keep your rounded look */
}

/* "Detection complete" text */
#status {
  font-size: 14px;        /* 14 was default; pick 14–18px */
  font-weight: 600;       /* keep bold vibe (optional) */
}

/* Breed row: left side = breed name */
#breeds > div > div:first-child {
  font-size: 14px;        /* e.g., bigger headline for breed */
  font-weight: 600;       /* already set inline, but harmless */
}

/* Breed row: right side = confidence badge */
#breeds > div > div:last-child {
  font-size: 16px;        /* shrink badge numbers */
  font-weight: 600;
  padding: 2px 10px;       /* slimmer pill */
}

/* --- Make the Weather Tech link more prominent --- */
.wx-tech-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;           /* up from 12px */
  font-weight: 700;          /* bolder */
  color: #003a59;            /* darker */
  text-decoration: none;
  padding: 3px 8px;         /* pill padding */
  border-radius: 9999px;     /* pill shape */
  border: 1px solid #0a6aa0; /* stronger outline */
  background: #e6f2f8;       /* subtle fill */
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  opacity: 1;
  transition: transform .12s ease, box-shadow .12s ease, color .12s ease, background .12s ease;
}

.wx-tech-link:hover {
  background: #d9ecf7;
  color: #002f47;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  text-decoration: none;
}

.wx-tech-icon {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  border: 1px solid #0a6aa0;
  background: #fff;
  font-size: 12px;           /* the "i" */
  line-height: 18px;
  text-align: center;
  font-weight: 700;
}

/* Optional: uncomment for ALL CAPS look */
.wx-tech-link {
  text-transform: uppercase;
  letter-spacing: .04em;
}

@media (max-width: 480px) {
  .wx-tech-link {
    font-size: 11px;
    padding: 3px 8px;
    gap: 6px;
  }
  .wx-tech-icon {
    width: 16px;
    height: 16px;
    font-size: 10px;
    line-height: 16px;
  }
}

/* ===== Contact form controls (scoped to the Contact page) ===== */
body.contact-page .form-group {
  margin-bottom: 12px;
}

body.contact-page .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #031c21;
  margin-bottom: 6px;
}

/* Control the height of text/email inputs */
body.contact-page input[type="text"],
body.contact-page input[type="email"] {
  display: block;
  width: 100%;
  height: 34px;              /* ← adjust this number to taste (e.g., 40–52px) */
  padding: 10px 12px;
  background: #fff;
  color: #0e1726;
  border: 2px solid #c4c3c3;
  border-radius: 8px;
  line-height: 1.2;
}

/* Textarea sizing */
body.contact-page textarea {
  display: block;
  width: 100%;
  min-height: 140px;         /* ← adjust for more/less message area */
  padding: 10px 12px;
  background: #fff;
  color: #0e1726;
  border: 2px solid #c4c3c3;
  border-radius: 8px;
  resize: vertical;          /* allow vertical resize only */
}

/* Focus state */
body.contact-page input[type="text"]:focus,
body.contact-page input[type="email"]:focus,
body.contact-page textarea:focus {
  outline: none;
  border-color: #055d8b;
  box-shadow: 0 0 0 3px rgba(5, 93, 139, 0.15);
}

/* First/Last name row layout */
body.contact-page .name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Recaptcha spacing */
body.contact-page .g-recaptcha {
  margin-top: 8px;
  transform-origin: left top;
}

/* Submit button touch-up */
body.contact-page button[type="submit"] {
  margin-top: 8px;
  padding: 10px 16px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid #055d8b;
  background: #055d8b;
  color: #fff;
  cursor: pointer;
}
body.contact-page button[type="submit"]:hover {
  background: #044b6f;
}

/* Narrow the form container on contact page only */
.contact-page #left {
  max-width: 590px;   /* or try 500px if you want tighter */
  margin: 0 auto;
}

.contact-icon {
  text-align: center;
  font-size: 12px;
  color: #0077b6;
  margin-top: 1px;
  margin-bottom: 1px;
}

/* Contact form response styling (Contact page only) */
body.contact-page #formMessage {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.80rem;  /* smaller, tweak as needed */
  text-align: center;
}

/* Success (green) */
body.contact-page #formMessage.success {
  color: #16a34a;
}

/* Error (red) */
body.contact-page #formMessage.error {
  color: #dc2626;
}



/*Breed prediction formatting */
#breeds .breed-label-prefix {
  font-weight: 500;
  margin-right: 4px;
  color: #000000;
}

#breeds .breed-label-name {
  font-weight: 700;
  color: #055d8b;      /* same blue as your buttons */
}

#breeds .breed-label-conf {
  font-size: 0.9em;
  color: #555;
  margin-left: 4px;
}

#breeds .breed-label-prefix {
  font-weight: 500;
  margin-right: 4px;
}

#breeds .breed-label-name {
  font-weight: 700;
  color: #055d8b;      /* same blue as your buttons */
}

#breeds .breed-label-conf {
  font-size: 0.9em;
  color: #555;
  margin-left: 4px;
}

/* ========== SentimentPulse Styles (moved from inline) ========== */

/* Sentiment container */
#sentiment-ui {
  margin-top: 12px;
  max-width: 700px;
}

/* Textarea: same behavior as inline rules, but theme-aligned */
#sentiment-ui textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 130px;
  padding: 8px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #cfd8ea;
  background: #ffffff;
  color: #1d4873;
  resize: vertical;
}

/* Analyze row */
.sp-row {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Analyze Sentiment button */
.sp-btn {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #055d8b;
  background: #0077b6;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.sp-btn:hover {
  background: #055d8b;
}

.sp-btn:active {
  transform: translateY(1px);
}

.sp-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Status text next to button */
.sp-status {
  font-size: 0.9rem;
  color: #555;
}

/* Result / latest summary card */
.sp-card {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cfd8ea;
  background: #f4f6fb;
  color: #121f2c;
}

/* Labels/headings inside cards */
.sp-label {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

.sp-processed-at {
  font-size: 0.75rem;  /* smaller timestamp text */
  margin-top: 6px;
}

.sp-scores-heading {
  font-size: 0.9rem;
  margin-top: 6px;
}


/* Highlighted sentiment value */
.sp-sentiment-value {
  font-weight: 700;
}

/* Smaller text for last-run info */
#sp-latest-status {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Bars block */
#sp-latest-panel {
  margin-top: 18px;
}

#sp-bars {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.sp-bar-label {
  width: 80px;
  font-weight: 600;
  color: #055d8b;   /* Sentiment label color */
  font-size: 0.8rem;
}

.sp-bar-track {
  flex: 1;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.sp-bar-fill {
  height: 100%;
  width: 0%;                 /* start empty */
  transition: width 0.5s ease-out;
}

/* Bar colors */
#sp-bar-positive  { background: rgba(31,107,59,0.85); }
#sp-bar-negative  { background: rgba(155,44,44,0.85); }
#sp-bar-neutral   { background: rgba(96,110,130,0.85); }
#sp-bar-mixed     { background: rgba(84,82,98,0.85); }

.sp-bar-count {
  width: 40px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
}

/* Main output block: same color as before, hidden until JS shows it */
#sp-output {
  margin-top: 10px;
  color: #323883 !important;
  display: none;
}

/* Make the textarea counter black so it's readable */
#charCount {
  color: #000000;
}

/* Responsive tweak kept from inline */
@media (max-width: 768px) {
  #sentiment-ui textarea {
    min-height: 140px;
  }
  .sp-card {
    padding: 12px;
  }
}

/* ===========================
   Responsive tweaks (mobile + small screens)
   =========================== */

/* Phones & small tablets (portrait) */
@media (max-width: 600px) {
  /* Header text */
  .header-overlay {
    top: 35%;
    padding: 0 16px;
  }

  .header-overlay h1 {
    font-size: 24px;
  }

  .tagline-main {
    font-size: 15px;
  }

  .tagline-sub {
    font-size: 13px;
  }

  /* Nav pill */
  #header nav {
    width: 90%;
    bottom: 8px;
    padding: 4px 8px;
  }

  #nav-menu {
    flex-wrap: wrap;
    gap: 2px;
  }

  #nav-menu > li:not(:last-child)::after {
    display: none;   /* hide vertical separators on small screens */
  }

  #nav-menu a {
    font-size: 11px;
    padding: 6px 10px;
  }
}

/* Phone landscape: header + nav + body text tweaks */
@media (max-height: 500px) and (orientation: landscape) {
  /* Slightly taller hero for breathing room */
  #header {
    height: 185px;
  }

  /* Lift text a bit and add padding */
  .header-overlay {
    top: 38%;
    padding: 0 24px;
  }

  /* Move nav higher above content line */
  #header nav {
    bottom: 10px;   /* was 26px */
    padding: 4px 10px;
  }

  /* Pull content closer to hero to reduce dead space below */
  #content,
  .content-flex {
    margin-top: 0;
    padding-top: 6px;
  }

  /* Make body text less huge on short, wide screens */
  /* Match portrait text sizes in landscape */
  .intro-wrapper p,
  .intro-text {
    font-size: 9px;
    line-height: 1.6;
  }

  #content p,
  #content li {
    font-size: 10px;   /* same as your .text p / lists */
    line-height: 1.6;
  }


  /* Slightly reduce headings */
  .section-heading,
  #content h2,
  #content h3 {
    font-size: 1.0rem;
  }
}

/* About page icon color */
body.about-page .section-heading .section-icon {
  color: #0988c1;  /* pick whatever hex you want */
}

/* SentimentPulse icon color */
body.sentiment-page .section-heading .section-icon {
  color: #1b73a2;  /* purple “signal” vibe; change if you want */
}

/* Weather Station icon color */
body.weather-page .section-heading:not([data-icon]) .section-icon {
  color: #1b73a2;
}

/* SentimentPulse icon color */
body.chatbot-page .section-heading .section-icon {
  color: #1b73a2;  /* purple “signal” vibe; change if you want */
}

/* ===== Force About page headshot styling ===== */
body.about-page .ron-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 30px 0;
}

body.about-page .ron-photo {
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 50%;        /* circular */
  object-fit: cover;         /* crop to circle */
  border: 3px solid #1d77a7; /* site blue ring */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

body.about-page .ron-photo:hover {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .ron-photo {
    width: 120px;
    height: 120px;
  }
}


/* ===== Commerce page ===== */

.commerce-page {
  max-width: 900px;
  margin: 0 auto;
  background: #020617;
  border-radius: 0.75rem;
  padding: 1.75rem 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

h1 {
  margin-top: 0;
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.tagline {
  font-size: 0.95rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

.status {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.status-ok {
  color: #096c2d;
  font-weight: 600;
}

.status-error {
  color: #b62a2a;
  font-weight: 600;
}

.status-info {
  color: #2563eb;
  font-weight: 500;
}

.btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

/* Main commerce buttons */
.btn {
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;   /* tighter pill */
  font-size: 0.9rem;
  cursor: pointer;
  background: #2563eb;
  color: #f9fafb;

  /* Fix anchor defaults */
  text-decoration: none;
  display: inline-block;
}


.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Small buttons (e.g., Add to Cart) */
.btn-small {
  margin-top: 0.5rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 999px;
  border: none;
  background: #0f766e;
  color: #ecfeff;
  cursor: pointer;
}

.btn-small:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Secondary button (same size as .btn, blue) */
.btn-ghost {
  margin-top: 0.75rem;
  padding: 0.35rem 0.9rem;   /* match .btn */
  font-size: 0.9rem;         /* match .btn */
  border-radius: 999px;
  border: 1px solid #2563eb;
  background: #2563eb;
  color: #f9fafb;
  cursor: pointer;
}

.btn-ghost:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.btn-ghost:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Products grid */
.products-container {
  margin-top: 1.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.product-card {
  background: #162652; 
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid #1d4ed8; /* blue border */
}

.product-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #f9fafb;  /* near-white */
}

.product-category {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.4rem;
}

.product-desc {
  font-size: 0.85rem;
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 0.95rem;
  font-weight: 600;
}

.section-title {
  margin-top: 1.5rem;
  font-size: 0.9rem;   /* was 1.05rem */
  margin-bottom: 0.5rem;
  color: #1e5674;
  font-weight: 600;
}

/* Cart section styling */
.cart-container {
  margin-top: 1.75rem;
}

.cart-summary {
  font-size: 0.9rem;
  color: #111827;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.cart-list {
  margin-top: 0.25rem;
}

.cart-item-row {
  font-size: 0.85rem;
  color: #111827;
  padding: 0.3rem 0;
  border-bottom: 1px solid #111827;
}

.cart-item-row:last-child {
  border-bottom: none;
}

.cart-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Orders section styling */
.orders-container {
  margin-top: 1.75rem;
}

.order-card {
  background: #020617;
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #1f2937;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.order-id {
  font-weight: 600;
}

.order-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #22c55e;
}

.order-meta {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.order-items {
  font-size: 0.85rem;
  color: #e5e7eb;
}

/* --- Commerce buttons uniform sizing fix --- */
.commerce-page button,
.commerce-page .btn,
.commerce-page .btn-ghost,
.commerce-page .btn-small {
  display: inline-block;
  padding: 0.4rem 1rem;      /* balanced around text */
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
  width: auto;               /* shrink-wrap to text */
  min-width: auto;
  max-width: 100%;
  text-align: center;
}

/* Match all button backgrounds for visual consistency */
.commerce-page button {
  background: #2563eb;
  color: #f9fafb;
  border: none;
  cursor: pointer;
}

.commerce-page button:hover {
  background: #1d4ed8;
}


/* --- Final commerce button sizing fix --- */
#btn-place-order,
#btn-clear-cart {
  display: inline-block;
  padding: 0.4rem 1rem;      /* equal padding for both */
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  width: auto !important;    /* shrink to text */
  min-width: auto !important;
  white-space: nowrap;
  text-align: center;
  margin-top: 0;
}

/* Match background colors */
#btn-place-order {
  background: #2563eb !important;
  color: #f9fafb !important;
  border: none !important;
}

#btn-clear-cart {
  background: #2563eb !important;
  color: #f9fafb !important;
  border: none !important;
}

#btn-place-order:hover,
#btn-clear-cart:hover {
  background: #1d4ed8 !important;
}


/* ===== HOME PAGE PERSONAL TOUCH ===== */
body.index-page .home-hero {
  text-align: center;
  margin: 1.5rem auto 2rem auto;
  max-width: 600px;
}

/* FINAL fix for Home photo size */
body.index-page .home-photo {
  width: 150px !important;
  height: 150px !important;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  border: 2px solid #1b4ed8;
  margin-bottom: 0.5rem;
}


body.index-page .home-intro {
  font-size: 1rem;
  line-height: 1.5;
  color: #f1f5f9;
  margin: 0 auto;
  max-width: 500px;
}

/* Tech page link */
.tech-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;           
  font-weight: 700;          /* bolder */
  color: #003a59;            /* darker */
  text-decoration: none;
  padding: 4px 12px;         /* pill padding */
  border-radius: 9999px;     /* pill shape */
  border: 1px solid #0a6aa0; /* stronger outline */
  background: #e6f2f8;       /* subtle fill */
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  opacity: 1;
  transition: transform .12s ease, box-shadow .12s ease, color .12s ease, background .12s ease;
}

.tech-link i {
  font-size: 0.85em;
}

.tech-link:hover {
  background: #d6ecf7;
  box-shadow: 0 2px 4px rgba(0,0,0,.12);
}

.tech-link i {
  font-size: 1.05em;        /* match text size */
  line-height: 1;
}


.tech-link-button {
  display: inline-block;
  padding: 3px 5px;
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid #4287c4;
  background-color: #1563a7;
  color: #ffffff;
  text-decoration: none;
}

.tech-link-button:hover {
  background-color: #277ad8;
}

.project-tech-link {
  text-align: center;
  margin-top: 3px;
}
/* ===========================
   HOME PAGE (INDEX) — LANDING PAGE LAYOUT
   =========================== */

body.index-page #left {
  max-width: 920px; /* slightly wider for cards */
}

/* --- HERO WIDTH FIX --- */
.home-hero-top {
  max-width: 860px;      /* was effectively too narrow */
  margin: 0 auto;
  padding: 0 20px;       /* balanced inner padding */
}


.home-kicker {
  display: flex;
  justify-content: center;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.2px;
  margin: 10px 0 8px;
  color: #0b4f79;
  text-transform: uppercase;
}

.home-headline {
  font-size: 14px;
  line-height: 1.15;
  margin: 10px 0 10px;
  color: #061a2c;
  text-align: center;
}

.home-subheadline {
  font-size: 14px;
  line-height: 1.55;
  margin: 0 auto 14px;
  max-width: none;
  color: #121f2c;
  margin-bottom: 8px;   /* was too loose */
  padding: 0 10px;
}

.home-ctas {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0 1px;    /* loosen CTA spacing */
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid #055d8b;
}

.btn-primary {
  background: #055d8b;
  color: #ffffff;
}

.btn-primary:hover {
  background: #044b6f;
}

.btn-secondary {
  background: #e6f2f8;
  color: #003a59;
  border-color: #0a6aa0;
}

.btn-secondary:hover {
  background: #d9ecf7;
}

/* ===========================
   TECH ARTIFACT LINKS (reusable)
   Use for: architecture PDFs, runbooks, diagrams, specs
   =========================== */

.artifact-link {
  margin: 0.75rem 0 1.25rem 0;
}

.artifact-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  padding: 0.4rem 0.7rem;
  font-size: 0.80rem;
  font-weight: 600;

  color: #1f2933;
  text-decoration: none;

  background-color: #eef2f6;
  border: 1px solid #7aa2c3;
  border-radius: 10px;

  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.artifact-link a:hover {
  background-color: #cadaef;
  border-color: #35618d;
}

/* Optional: small helper for icons inside artifact links */
.artifact-link i {
  font-size: 0.95em;
}



.home-proofline {
  font-size: 12px;
  margin: 10px auto 0;
  max-width: none;
  color: #223447;
  opacity: 0.9;
  margin-top: 6px;      /* pull it closer to the paragraph above */
  padding: 0 10px;
}

/* Sections */
.home-featured,
.home-secondary,
.home-final-cta {
  margin-top: 18px;
}

.home-section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #113658;
}

.home-section-subtitle {
  font-size: 13px;
  margin: 0 0 12px;
  color: #223447;
}

/* --- HOME SECTION SEPARATOR --- */
.home-featured {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #9fb6cf;
}

/* --- HOME SECONDARY SECTION SEPARATOR --- */
.home-secondary {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #9fb6cf;
}


/* Featured cards grid */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.project-card,
.mini-card {
  background: #f1f3ff;
  border: 1.5px solid #9fb6cf;  /* slightly stronger, still subtle */
  border-radius: 14px;
  padding: 14px 14px 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

/* Optional: small hover affordance (recommended) */
.project-card:hover,
.mini-card:hover {
  border-color: #0c3b54;
}

.project-title {
  font-size: 15px;
  font-weight: 900;
  margin: 0 0 6px;
  color: #061a2c;
}

.project-value {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #223447;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #0a6aa0;
  background: #eceeef;
  color: #003a59;
}

.card-links {
  font-size: 12px;
  margin: 0 0 8px;
}

.link-strong {
  font-weight: 900;
  text-decoration: none;
  color: #055d8b;
}

.link-strong:hover {
  text-decoration: underline;
}

.link-sep {
  margin: 0 6px;
  color: #6b7280;
}

.project-note {
  margin: 0;
  font-size: 11.5px;
  color: #374151;
  opacity: 0.95;
}

/* Secondary mini cards */
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-card {
  background: #ffffff;
  border: 1px solid #cfd8ea;
  border-radius: 14px;
  padding: 12px;
}

.mini-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 900;
  color: #061a2c;
}

.mini-text {
  margin: 0 0 8px;
  font-size: 12px;
  color: #223447;
}

.mini-links {
  margin: 0;
  font-size: 12px;
}

.home-final-cta .final-line {
  margin: 10px 0 0;
  font-size: 13px;
  color: #223447;
}

.home-final-cta a {
  font-weight: 900;
  color: #055d8b;
  text-decoration: none;
}

.home-final-cta a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 720px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .mini-grid {
    grid-template-columns: 1fr;
  }
  .home-headline {
    font-size: 22px;
  }
}

/* Mobile: compress table headers without distortion */
@media (max-width: 480px) {
  .wx-page .weather-table thead th,
  .wx-page #weather-table thead th {
    padding: 6px 4px;        /* was likely 10–12px */
    font-size: 0.72rem;      /* slightly smaller, still readable */
    letter-spacing: -0.02em;
    line-height: 1.1;
  }
}

/* Power column label: shorten on mobile */
.wx-power-mobile { display: none; }

@media (max-width: 480px) {
  .wx-power-desktop { display: none !important; }
  .wx-power-mobile  { display: inline !important; }
}

/* iPhone landscape: width is large, height is small — treat as mobile */
@media (orientation: landscape) and (max-height: 500px) {
  .wx-power-desktop { display: none !important; }
  .wx-power-mobile  { display: inline !important; }
}

/* Weather page content card – restore readable contrast */
.wx-page #content,
.wx-page .weather-header,
.wx-page .weather-table-container {
  background-color: #e9edf3;   /* your original light panel tone */
  color: #0e1726;              /* dark readable text */
}

/* ================================
   Auto-refresh paused notification
   ================================ */

/* Support both legacy and current wrappers */
#auto-refresh-warning,
.wx-auto-pause {
  margin: 0.75rem auto 1rem;
  padding: 0.75rem 0.75rem;
  max-width: 900px;          /* align with weather table width */
  text-align: center;

  color: #b42318;            /* muted red text */
  background: #fdecea;       /* light red background */
  border: 1px solid #f5c2c0;
  border-radius: 8px;

  font-size: 0.85rem;
  font-weight: 600;
}

/* Resume button — match dashboard button style */
#auto-refresh-warning button,
.wx-auto-pause button {
  margin-left: 8px;
  padding: 0.50rem 0.75rem;

  background: #055d8b;
  color: #ffffff;
  border: 1px solid #055d8b;
  border-radius: 6px;

  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;

  transition: background 0.15s ease,
              box-shadow 0.15s ease,
              transform 0.05s ease;
}

#auto-refresh-warning button:hover,
.wx-auto-pause button:hover {
  background: #044b6f;
}

#auto-refresh-warning button:active,
.wx-auto-pause button:active {
  transform: translateY(1px);
}

/* ===========================
   Mobile chart rendering
   =========================== */
@media (max-width: 768px) {

  /* Reduce card padding on mobile */
  .wx-page .weather-table-container {
    padding: 12px;
  }

  /* Reduce chart heights to avoid excessive scroll */
  .wx-page canvas {
    max-height: 220px;
  }

  /* Give extra breathing room between stacked charts */
  .wx-page #wind-7d,
  .wx-page #wind-30d {
    margin-top: 20px;
  }

  /* Slightly reduce caption spacing */
  .wx-page .chart-caption {
    margin-bottom: 14px;
  }
}

/* ===========================
   Mobile table handling
   =========================== */
@media (max-width: 768px) {

  /* Make table more compact */
  .wx-page table {
    font-size: 0.85rem;
  }

  /* Hide less-critical columns on small screens */
  .wx-page th:nth-child(3),
  .wx-page td:nth-child(3),  /* Humidity */
  .wx-page th:nth-child(5),
  .wx-page td:nth-child(5),  /* Wind Dir */
  .wx-page th:nth-child(6),
  .wx-page td:nth-child(6) { /* Rain */
    display: none;
  }

  /* Prevent timestamp from wrapping badly */
  .wx-page td:first-child {
    white-space: nowrap;
  }
}

/* ===========================
   Weather – mobile table containment (wrapper-based)
   =========================== */
@media (max-width: 768px) {

  /* Card should NOT scroll; it should just clip rounded corners cleanly */
  .wx-page .weather-table-container {
    overflow: hidden;
  }

  /* Scroll happens here (inside the card) */
  .wx-page .wx-table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  /* Let columns be as wide as needed, but never smaller than the card */
  .wx-page .wx-table-scroll table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
  }

  /* No ellipsis — scrolling is the solution */
  .wx-page .wx-table-scroll th,
  .wx-page .wx-table-scroll td {
    white-space: nowrap;
  }
}


/* ===========================
   Weather table: mobile scroll affordance
   =========================== */
@media (max-width: 768px) {
  .wx-page .wx-table-scroll {
    position: relative;
    border-radius: 10px; /* matches your card softness */
  }

  /* Right-edge fade to hint “scroll for more” */
  .wx-page .wx-table-scroll::after {
    content: "";
    pointer-events: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;
    height: 100%;
    background: linear-gradient(to left, rgba(233,237,243,1), rgba(233,237,243,0));
  }
}

/* FINAL override: Weather dashboard loading row */
.weather-page .weather-table tbody tr td[colspan] {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7c88 !important;
}

/* Weather table loading row — explicit */
.weather-page .table-loading {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7c88;
  text-align: center;
  padding: 0.75rem;
}

#content {
  flex: 1 0 auto;
}

/* Ensure space below weather card so footer never feels overlapped */
.weather-table-container {
  margin-bottom: 40px;
}

/* Give dashboard pages breathing room above the footer */
#content {
  padding-bottom: 48px;
}

/* Weather Challenges page buttons */
.btn-weather-challenges {
  text-decoration: none;
  display: inline-block;
}

.btn-weather-challenges:hover {
  filter: brightness(0.95);
}

.btn-weather-challenges:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

/* ==== Weather Challenges buttons (scoped) ==== */
.btn-weather-challenges {
  text-decoration: none !important;
  display: inline-block;
}

/* ==================================================
   Weather Challenges page buttons (scoped)
   ================================================== */

a.btn.btn-weather-challenges {
  /* layout */
  display: inline-block;
  margin-right: 0.5rem;

  /* sizing */
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 500;

  /* color */
  background-color: #445e99;   /* blue-600 */
  color: #f9fafb;

  /* shape */
  border-radius: 999px;

  /* text */
  text-decoration: none;
  line-height: 1.2;

  /* interaction */
  transition: background-color 0.15s ease,
              box-shadow 0.15s ease,
              transform 0.05s ease;
}

a.btn.btn-weather-challenges:hover {
  background-color: #1e4ed8;   /* blue-700 */
  text-decoration: none;
}

a.btn.btn-weather-challenges:active {
  transform: translateY(1px);
}

a.btn.btn-weather-challenges:focus-visible {
  outline: 2px solid #93c5fd;  /* blue-300 */
  outline-offset: 2px;
}

/* Center nav buttons on Weather Challenges page only */
.weather-page .weather-nav-buttons {
  text-align: center;
  margin-top: 1rem;
}

/* Spacing between stacked Weather Challenges buttons */
.weather-page .weather-nav-buttons a.btn {
  margin: 0.25rem 0.35rem;
}

/* ==================================================
   Authoritative section heading styling (final)
   ================================================== */

.section-heading::after {
  background-color: #94a3b8; /* slate-400 */
}

.section-heading .section-icon {
  color: inherit;
}

/* =========================================
   Section heading typography (authoritative)
   ========================================= */

.text p.section-heading {
  color: #406396;      /* slate-700 */
  font-size: 13px;
  font-weight: 600;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

.text p.section-heading::after {
  background-color: #94a3b8; /* slate-400 */
}

.text p.section-heading .section-icon {
  color: inherit;
}


/* Compact pages (chatbot, etc.) */
.compact-page {
  flex: 0 0 auto !important;
  padding-bottom: 40px;
}

/* ==================================================
   Chatbot page — sticky footer for short content
   ================================================== */

body.chatbot-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.chatbot-page #container {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

body.chatbot-page footer {
  margin-top: auto;
}

/* ==================================================
   Chatbot page — force footer to viewport bottom
   (Grid-based, final solution)
   ================================================== */

body.chatbot-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.section-divider {
  border: none;
  border-top: 1px solid #9da6b5; /* light neutral */
  margin: 20px 0 14px 0;
}

.section-heading i.fa-solid {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.rain-ytd-value {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  color: #0b4f8a;
  background: rgba(11, 79, 138, 0.10);
  border: 1px solid rgba(11, 79, 138, 0.18);
}

/* ================================
   DBI: tiny inline spinner
   - Used next to #status text only
   - No layout changes (inline-block)
   ================================ */
.dbi-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -2px;

  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: rgba(0,0,0,0.7);
  border-radius: 50%;

  animation: dbiSpin 0.8s linear infinite;
}

/* Hide helper (keeps DOM stable) */
.dbi-hidden {
  display: none !important;
}

@keyframes dbiSpin {
  to { transform: rotate(360deg); }
}

/* Molly grin (About page) */
.molly-grin{
  margin-left: 0.35rem;
  font-size: 1.25em;         /* stays proportional to text */
  vertical-align: -0.10em;
  color: #a78bfa;            /* warm amber */
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.15)); /* subtle pop */
}

/* Screen-reader only text utility (if you don’t already have one) */
.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;
}

/* =========================================================
   PrivateOps Dashboard Page
   Scoped styles for private_ops.html only
   ========================================================= */

.privateops-page .text {
  max-width: 1100px;
}

/* Main dashboard wrapper */
.privateops-dashboard {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

/* Refresh/status row */
.privateops-control-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.privateops-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  background: #1f4e79;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.privateops-btn:hover {
  background: #163a5a;
}

.privateops-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.privateops-status {
  font-size: 0.95rem;
  color: #475569;
}

/* Grid layouts */
.privateops-grid {
  display: grid;
  gap: 16px;
}

.privateops-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.privateops-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

/* Cards */
.privateops-card {
  padding: 18px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #ffffff;
  color: #1e293b;
}

.privateops-wide-card {
  margin-top: 18px;
}

.privateops-card-label {
  margin-bottom: 8px;
  color: #334155;
  font-weight: 700;
  font-size: 0.98rem;
}

.privateops-card-label i {
  margin-right: 6px;
  color: #1f4e79;
}

.privateops-card-value {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.privateops-card-note {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #64748b;
}

/* Backend status grid */
.privateops-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.privateops-mini-label {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.privateops-status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.85rem;
  font-weight: 700;
}

.privateops-updated {
  margin-top: 16px;
  font-size: 0.92rem;
  color: #475569;
}

/* Lists */
.privateops-list {
  margin-top: 10px;
}

.privateops-list-item {
  padding: 12px 0;
  border-top: 1px solid #e2e8f0;
}

.privateops-list-item:first-child {
  border-top: none;
}

.privateops-list-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.privateops-list-name {
  color: #0f172a;
  font-weight: 700;
}

.privateops-list-message {
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.45;
}

.privateops-list-time {
  margin-top: 6px;
  color: #64748b;
  font-size: 0.82rem;
}

/* Status pills */
.privateops-pill {
  display: inline-block;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.privateops-pill-good {
  background: #dcfce7;
  color: #166534;
}

.privateops-pill-warning {
  background: #fef3c7;
  color: #92400e;
}

.privateops-pill-danger {
  background: #fee2e2;
  color: #991b1b;
}

.privateops-pill-neutral {
  background: #e2e8f0;
  color: #334155;
}

.privateops-empty {
  color: #64748b;
  font-style: italic;
}

/* Navigation buttons */
.privateops-nav-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Mobile layout */
@media (max-width: 900px) {
  .privateops-summary-grid,
  .privateops-detail-grid,
  .privateops-status-grid {
    grid-template-columns: 1fr;
  }

  .privateops-dashboard {
    padding: 16px;
  }

  .privateops-card-value {
    font-size: 1.7rem;
  }

  .privateops-list-topline {
    align-items: flex-start;
    flex-direction: column;
  }
}