/* ==========================================================================
   Skycam Network — site styles
   Palette taken from the network logo:
     navy   #0d2b45  (deep aviation blue — nav, headings, structure)
     orange #f7941d  (the logo sun — primary accent, calls to action)
     blue   #1b9fe0  (sky blue — links, secondary accent)
   A clean, utilitarian aviation feel: fast, legible, purposeful.
   ========================================================================== */

:root {
  --navy:        #0d2b45;
  --navy-light:  #1a3d5c;
  --orange:      #f7941d;
  --blue:        #1b9fe0;
  --ink:         #1d2733;
  --muted:       #5a6b7b;
  --line:        #e2e8ee;
  --paper:       #f7f9fb;
  --card:        #ffffff;
  --accent:      #0d2b45;  /* primary accent (buttons) — Navy & Sky theme */
  --accent-dark: #16466f;  /* button hover */
  --accent2:     #1b9fe0;  /* secondary accent (links, lines) — sky blue */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Top navigation (light) ---- */
.sn-nav {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 6px rgba(13, 43, 69, 0.06);
}
.sn-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  flex-wrap: wrap;
  gap: 8px;
}
.sn-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  text-transform: uppercase;
}
.sn-brand:hover { text-decoration: none; color: var(--navy); }
.sn-brand img { height: 44px; width: auto; display: block; }
.sn-links { display: flex; gap: 4px; flex-wrap: wrap; }
.sn-links a {
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
}
.sn-links a:hover { background: var(--paper); color: var(--blue); text-decoration: none; }
.sn-links a.active { color: var(--accent2); }

/* ---- Page header / hero (light, airy sky) ---- */
.sn-hero {
  background: linear-gradient(170deg, #ffffff 0%, #eaf3fa 100%);
  color: var(--navy);
  text-align: center;
  padding: 34px 20px 32px;
  border-bottom: 1px solid var(--line);
}
.sn-hero img { height: 130px; width: auto; margin-bottom: 8px; }
.sn-hero h1 {
  margin: 6px 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy);
}
.sn-hero h1 .accent { color: var(--accent2); }
.sn-hero p { margin: 8px 0 0; color: var(--muted); font-size: 1rem; }

/* ---- Content container ---- */
.sn-wrap { max-width: 1180px; margin: 0 auto; padding: 28px 20px 50px; }
.sn-prose { max-width: 760px; margin: 0 auto; }
.sn-prose p { margin: 0 0 1.1em; }
.sn-prose img { max-width: 100%; height: auto; border-radius: 6px; }

/* ---- Section heading ---- */
.sn-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 20px;
}
.sn-section-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.sn-section-head::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--accent2), transparent);
}

/* ---- Camera card grid ---- */
.sn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.sn-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.sn-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(13, 43, 69, 0.14);
}
.sn-card a.sn-thumb { display: block; line-height: 0; background: #0a1622; }
.sn-card img { width: 100%; height: auto; display: block; }
.sn-card .sn-body { padding: 12px 14px 14px; }
.sn-card h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--navy); }
.sn-card h3 a { color: var(--navy); }
.sn-card h3 a:hover { color: var(--blue); text-decoration: none; }
.sn-card .sn-credit { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* ---- Parked (unconfirmed) section ---- */
.sn-parked { margin-top: 44px; }
.sn-parked .sn-section-head h2 { color: var(--muted); font-size: 1rem; }
.sn-parked .sn-section-head::after { background: linear-gradient(90deg, var(--line), transparent); }
.sn-parked .sn-card { opacity: 0.9; }

/* ---- Footer ---- */
.sn-footer {
  background: var(--navy);
  color: #93acc2;
  text-align: center;
  padding: 22px 20px;
  font-size: 0.85rem;
}
.sn-footer a { color: var(--blue); }

@media (max-width: 600px) {
  .sn-hero img { height: 92px; }
  .sn-hero h1 { font-size: 1.25rem; }
  .sn-brand span { display: none; }
}

/* ---- Buttons (weather picker live/yesterday) ---- */
.sn-btn {
  display: inline-block;
  padding: 7px 16px;
  margin: 0 6px 0 0;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.sn-btn:hover { background: var(--accent-dark); text-decoration: none; color: #fff; }
.sn-btn-ghost { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.sn-btn-ghost:hover { background: var(--blue); color: #fff; }

/* ---- Rylstone region summary banner (placeholder for blended templates) ---- */
.sn-region-banner {
  background: linear-gradient(135deg, #eaf3fa, #fff4e3);
  border: 1px dashed var(--accent2);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 20px;
  color: var(--navy);
  font-size: 0.95rem;
  text-align: center;
}

/* ---- Weather card action row: buttons + small site icon to the right ---- */
.sn-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sn-card-actions .sn-btn { margin: 0; }
.sn-card-logo {
  height: auto;
  width: auto;
  max-height: 60px;
  max-width: 110px;      /* wide logos (BlackLab etc.) are limited by width, so this is the lever */
  object-fit: contain;
  margin-left: auto;     /* pushes the icon to the far right of the row */
}

/* ---- Region summary image (Rylstone Region section) ---- */
.sn-region-summary {
  margin: 0 0 26px;
  text-align: center;
}
.sn-region-summary img {
  max-width: 100%;
  width: auto;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(13, 43, 69, 0.08);
}

/* ---- Region images: summary + rainfall, labelled, stacked ---- */
.sn-region-images { margin-bottom: 26px; }
.sn-region-block { margin-bottom: 22px; }
.sn-region-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
