/* ==========================================================================
   Trails End — shared styles
   Rustic Maine hunting-camp theme: forest green / wood brown / blaze orange
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --forest-dark: #14241a;
  --forest: #2e4d35;
  --forest-light: #527058;
  --wood: #7a4d28;
  --wood-dark: #4a2c16;
  --cream: #f5ead8;
  --cream-dark: #e8d3ac;
  --blaze: #df531a;
  --blaze-light: #f2862e;
  --ink: #161f17;
  --muted: #4a5545;
  --white: #fffaf2;
  --page-bg: #e6cf9f;
  --page-bg-deep: #d9bc84;
  --card-bg: #f6ecd6;

  --radius: 6px;
  --shadow: 0 4px 14px rgba(38, 26, 14, 0.18);
  --max-width: 1440px;

  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--forest-dark);
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-weight: 900; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }

p { margin: 0 0 1em; }

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

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blaze);
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--blaze);
  color: var(--white);
}
.btn-primary:hover { background: var(--blaze-light); box-shadow: 0 6px 16px rgba(217, 83, 30, 0.35); }

.btn-outline {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn-outline-dark:hover { background: var(--forest); color: var(--cream); }

/* ---------------------------------- Nav --------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--page-bg);
  border-bottom: 3px solid var(--wood);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--forest-dark);
}
.brand:hover { text-decoration: none; }

.brand-text {
  font-size: 0.88rem;
  line-height: 1.3;
  max-width: 280px;
}

.brand-text small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { text-decoration: none; color: var(--blaze); }
.nav-links a.active { color: var(--forest); border-bottom-color: var(--blaze); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--page-bg);
    border-bottom: 3px solid var(--wood);
    flex-direction: column;
    gap: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid var(--cream-dark);
  }
}

/* -------------------------------- Masthead -------------------------------- */

.masthead {
  width: 100%;
  line-height: 0;
  background: #d6bfa3;
}
.masthead img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, #0a120c 0%, var(--forest-dark) 55%, var(--forest) 100%);
  color: var(--cream);
  overflow: hidden;
  padding: 72px 0 0;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 14px;
}

.hero .eyebrow { color: var(--blaze-light); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--cream-dark);
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.treeline {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  margin-bottom: -2px;
}

/* ------------------------------- Countdown -------------------------------- */

.countdown {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 36px 0 30px;
  flex-wrap: wrap;
}

.countdown-box {
  background: rgba(255,225,180,0.09);
  border: 1px solid rgba(255,225,180,0.22);
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 86px;
  text-align: center;
}

.countdown-box .num {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--blaze-light);
  line-height: 1;
}

.countdown-box .label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dark);
  margin-top: 6px;
}

.countdown-note {
  font-size: 0.9rem;
  color: var(--cream-dark);
  text-align: center;
}

/* ------------------------------- Home grid -------------------------------- */

.home-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
}

.home-main {
  background:
    radial-gradient(ellipse 70% 80% at 80% 0%, rgba(242,134,46,0.20), transparent 60%),
    linear-gradient(160deg, var(--forest-dark) 0%, #0a120c 100%);
  color: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 36%;
  align-items: stretch;
}
.home-main-text {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.home-main-banner {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.home-main-banner.below-actions {
  margin-top: 18px;
  margin-bottom: 0;
}
.home-main-banner.pos-trophy { height: 380px; object-position: center top; }
.home-main-photo {
  position: relative;
  min-height: 340px;
}
.home-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 35%;
}
.home-main-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(25,15,8,0.9) 0%, rgba(25,15,8,0) 26%);
}
@media (max-width: 700px) {
  .home-main { grid-template-columns: 1fr; }
  .home-main-photo { min-height: 260px; order: -1; }
  .home-main-photo::before { background: linear-gradient(0deg, rgba(25,15,8,0.85) 0%, rgba(25,15,8,0) 30%); }
}
.home-main .eyebrow { color: var(--blaze-light); }
.home-main h2 { color: var(--white); font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.home-main p { color: var(--cream-dark); }
.home-main .hero-actions { justify-content: flex-start; margin-top: 6px; }

.home-tagline {
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--blaze-light);
  margin: 6px 0 22px;
}

.home-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-card { padding: 22px 22px; }
.side-card h3 { margin-bottom: 10px; font-size: 1.1rem; }

.side-card.has-photo { overflow: hidden; }
.side-card-photo {
  display: block;
  width: calc(100% + 44px);
  height: 220px;
  margin: -22px -22px 16px -22px;
  object-fit: cover;
  object-position: center 58%;
  border-radius: var(--radius) var(--radius) 0 0;
}
.side-card-photo.pos-high { object-position: center 32%; }
.side-card-photo.below-mast { margin-top: 0; border-radius: var(--radius); }
.side-card-photo.banner-wide { height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #1a1410; }
.side-card.accent-blaze.has-photo h3 { color: var(--blaze-light); }
.title-blaze { color: var(--blaze-light); }

.side-card-mast {
  background: var(--forest-dark);
  margin: -22px -22px 16px -22px;
  padding: 14px 22px;
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.side-card-mast h3 { margin: 0; }
.title-with-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}
.title-badge {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}

.side-card.dark {
  background:
    radial-gradient(ellipse 90% 100% at 100% 0%, rgba(242,134,46,0.22), transparent 65%),
    var(--forest-dark);
  border-left-color: var(--blaze);
  color: var(--cream);
}
.side-card.dark h3 { color: var(--blaze-light); display: flex; align-items: center; gap: 10px; }
.side-card.dark .eyebrow { color: var(--blaze-light); }
.side-card.dark .side-camp { color: var(--cream); }

.side-camp { font-weight: 700; color: var(--forest-dark); margin-bottom: 2px; }
.side-dates {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blaze);
  margin-bottom: 10px;
}

.countdown-compact { gap: 8px; margin: 12px 0 10px; }
.countdown-compact .countdown-box { padding: 10px 6px; min-width: 0; flex: 1; }
.countdown-compact .num { font-size: 1.4rem; }
.countdown-compact .label { font-size: 0.6rem; }
.side-card .countdown-note { font-size: 0.78rem; text-align: left; color: var(--cream-dark); margin: 0; }

.update-note { font-size: 0.86rem; line-height: 1.45; color: var(--ink); margin-bottom: 8px; }
.update-note:last-of-type { margin-bottom: 0; }
.update-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.gallery-item.menu-btn {
  width: auto;
  aspect-ratio: auto;
  box-shadow: none;
  overflow: visible;
  cursor: zoom-in;
  background: var(--blaze);
  color: var(--white);
  font-size: 1.1rem;
  padding: 16px 30px;
}
.gallery-item.menu-btn:hover {
  transform: translateY(-1px);
  background: var(--blaze-light);
  box-shadow: 0 6px 16px rgba(217, 83, 30, 0.35);
}

/* ------------------------------ Page banner ------------------------------- */

.page-banner {
  background:
    radial-gradient(ellipse 60% 100% at 25% 0%, rgba(242,134,46,0.26), transparent 65%),
    var(--forest-dark);
  color: var(--cream);
  padding: 54px 0 48px;
  text-align: center;
}
.page-banner .eyebrow { color: var(--blaze-light); }
.page-banner h1 { color: var(--white); margin-bottom: 8px; font-size: clamp(2rem, 5vw, 2.8rem); }
.page-banner p { color: var(--cream-dark); max-width: 600px; margin: 0 auto; }

/* -------------------------------- Sections -------------------------------- */

section { padding: 64px 0; }

.section-tight { padding: 40px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.bg-cream-dark { background: var(--page-bg-deep); }
.bg-forest { background: var(--forest-dark); color: var(--cream); }
.bg-forest h2, .bg-forest h3 { color: var(--white); }

.topo {
  background-color: var(--page-bg-deep);
  background-image: url('images/topo-pattern.svg');
  background-repeat: repeat;
  background-size: 600px 600px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------------------------------- Card ---------------------------------- */

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--wood);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}

.card.accent-blaze { border-left-color: var(--blaze); }
.card.accent-forest { border-left-color: var(--forest); }

.card h3 { margin-bottom: 8px; }

.card-link {
  display: block;
  height: 100%;
  color: inherit;
}
.card-link:hover { text-decoration: none; }
.card-link:hover .card { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(31,51,38,0.18); }
.card { transition: transform 0.15s ease, box-shadow 0.15s ease; }

.placeholder-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wood);
  background: rgba(107,66,38,0.12);
  border: 1px dashed var(--wood);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 10px;
}

.swag-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}
.swag-photo {
  flex: 1 1 120px;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border: 5px solid var(--blaze);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 560px) {
  .swag-photo { max-width: 220px; }
}
.swag-card h3, .gear-card h3, .felt-card h3, .ballistics-card h3 { color: var(--blaze); }
.felt-btn { margin-top: 4px; }
.ballistics-btn { margin-top: 4px; }

.felt-btn-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.felt-photo {
  display: block;
  width: 100px;
  height: auto;
  flex: 0 0 auto;
  border: 4px solid var(--blaze);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gear-photo {
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-top: 18px;
  border: 5px solid var(--blaze);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.gear-btn { margin-top: 16px; }

/* -------------------------------- Timeline -------------------------------- */

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--cream-dark);
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  margin-bottom: 36px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blaze);
  border: 4px solid var(--cream);
  box-shadow: 0 0 0 3px var(--cream-dark);
}

.timeline-item .year {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--forest-dark);
}

.party-tags {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 14px 0 14px;
}

.party-tag {
  background: var(--page-bg-deep);
  color: var(--wood-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.hunter-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78px;
  text-align: center;
}

.hunter-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--blaze);
  box-shadow: var(--shadow);
  margin-bottom: 6px;
}

.hunter-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--page-bg-deep);
  border: 2px dashed var(--wood);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  color: var(--wood-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.hunter-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wood-dark);
  line-height: 1.25;
}

.attendee-row-label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.attendee-row-label:not(:first-child) { margin-top: 16px; }

.hunter-tag.tentative .hunter-photo {
  opacity: 0.55;
  filter: grayscale(35%);
  border-color: var(--wood);
}
.hunter-tag.tentative .hunter-name { color: var(--muted); }

.timeline-summary {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--wood);
  padding: 16px 18px;
  margin: 0;
}
.timeline-summary p { margin: 0 0 12px; }
.timeline-summary p:last-child { margin-bottom: 0; }

.milestone-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blaze);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.trophy-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}
@media (max-width: 600px) {
  .trophy-row { grid-template-columns: 1fr; }
}

.trophy-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--blaze);
  padding: 18px 20px;
  overflow: hidden;
}
.trophy-card img {
  display: block;
  width: calc(100% + 40px);
  margin: -18px -20px 14px -20px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
}
.trophy-hunter {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--forest-dark);
}
.trophy-stats {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wood-dark);
  margin: 4px 0 8px;
}
.trophy-card .trophy-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}

.timeline-photo {
  margin: 16px 0 0;
}
.timeline-photo img {
  display: block;
  max-width: 280px;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.timeline-photo figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
  max-width: 280px;
}

/* ---------------------------------- Table --------------------------------- */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  font-size: 0.95rem;
  min-width: 640px;
}

thead th {
  background: var(--forest-dark);
  color: var(--cream);
  text-align: left;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--cream-dark);
}

tbody tr:nth-child(even) { background: #ecdfc0; }
tbody tr:hover { background: rgba(217,83,30,0.06); }

.stat-cards { margin-bottom: 44px; }

.stat-card {
  text-align: center;
  padding: 28px 20px;
}

.stat-card .stat-num {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 2.4rem;
  color: var(--blaze);
  display: block;
}

.stat-card .stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.chart-wrap {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-top: 40px;
}

/* -------------------------------- Weather --------------------------------- */

.weather-status {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.current-weather {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  text-align: center;
  margin-bottom: 10px;
}

.current-weather .icon { font-size: 4rem; line-height: 1; }
.current-weather .temp {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 3.6rem;
  color: var(--forest-dark);
  line-height: 1;
}
.current-weather .desc { font-weight: 600; color: var(--wood-dark); }
.current-weather .meta { color: var(--muted); font-size: 0.9rem; }

.weather-scene {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background-image:
    linear-gradient(180deg, rgba(8,16,10,0.25) 0%, rgba(8,16,10,0.80) 100%),
    url('images/weather-scene.jpg');
  background-size: cover;
  background-position: center 35%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 24px;
}
.weather-scene .current-weather { margin-bottom: 0; }
.weather-scene .icon { filter: drop-shadow(0 2px 8px rgba(0,0,0,0.55)); }
.weather-scene .temp { color: var(--cream); text-shadow: 0 2px 10px rgba(0,0,0,0.45); }
.weather-scene .desc { color: var(--cream); }
.weather-scene .meta { color: var(--cream-dark); }
@media (max-width: 560px) {
  .weather-scene { padding: 24px 16px; min-height: 210px; }
}

.forecast-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 30px;
}
@media (max-width: 760px) {
  .forecast-row { grid-template-columns: repeat(2, 1fr); }
}

.forecast-day {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 10px;
  text-align: center;
}
.forecast-day .dow { font-weight: 700; color: var(--forest-dark); margin-bottom: 6px; }
.forecast-day .icon { font-size: 1.8rem; margin: 4px 0; }
.forecast-day .hi { font-weight: 700; }
.forecast-day .lo { color: var(--muted); }
.forecast-day .pop { font-size: 0.78rem; color: var(--forest-light); margin-top: 4px; }
.forecast-day .wind { font-size: 0.78rem; color: var(--wood-dark); margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--cream-dark); }

.sunmoon-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 8px;
}
@media (max-width: 760px) {
  .sunmoon-row { grid-template-columns: repeat(2, 1fr); }
}

.sunmoon-day {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 14px;
  text-align: center;
}
.sunmoon-day .dow { font-family: Arial, Helvetica, sans-serif; font-weight: 700; color: var(--forest-dark); margin-bottom: 12px; }
.sunmoon-day .sm-row { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.9rem; margin-bottom: 6px; color: var(--wood-dark); }
.sunmoon-day .sm-row .icon { display: inline-flex; color: var(--blaze); }
.sunmoon-day .sm-row .icon svg { width: 18px; height: 18px; }
.sunmoon-day .moon { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--cream-dark); }
.sunmoon-day .moon-icon { display: block; font-size: 1.7rem; margin-bottom: 4px; }
.sunmoon-day .moon-name { font-size: 0.76rem; color: var(--muted); }

/* ------------------------------ Rut forecast ------------------------------- */

.rut-banner-photo {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 350 / 280;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 22px auto 0;
}

.rut-current {
  text-align: center;
  padding: 4px 0 30px;
}
.rut-current-name {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--blaze);
  margin-bottom: 6px;
}
.rut-current-note {
  color: var(--wood-dark);
  max-width: 560px;
  margin: 0 auto 12px;
}
.rut-current-countdown {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 12px;
}
.rut-countdown-wrap {
  background:
    radial-gradient(ellipse 90% 100% at 100% 0%, rgba(242,134,46,0.22), transparent 65%),
    var(--forest-dark);
  border-radius: var(--radius);
  padding: 22px 28px 12px;
  display: inline-block;
  box-shadow: var(--shadow);
}
.rut-countdown-wrap .countdown { margin: 0; }
.rut-countdown-wrap .countdown-box { min-width: 92px; padding: 18px 20px; }
.rut-countdown-wrap .countdown-box .num { font-size: 2.8rem; }
@media (max-width: 560px) {
  .rut-countdown-wrap { padding: 16px 14px 8px; }
  .rut-countdown-wrap .countdown { gap: 8px; }
  .rut-countdown-wrap .countdown-box { min-width: 0; flex: 1; padding: 14px 8px; }
  .rut-countdown-wrap .countdown-box .num { font-size: 2.1rem; }
}

.rut-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 20px;
}
@media (max-width: 760px) {
  .rut-timeline { grid-template-columns: repeat(2, 1fr); }
}
.rut-phase {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 10px;
  text-align: center;
  border: 2px solid transparent;
}
.rut-phase .icon { margin-bottom: 8px; display: flex; align-items: center; justify-content: center; }
.rut-phase-icon-img { width: 44px; height: auto; display: block; }
.rut-phase-name { font-weight: 700; color: var(--forest-dark); margin-bottom: 4px; }
.rut-phase-dates { font-size: 0.78rem; color: var(--muted); }
.rut-phase.active {
  border-color: var(--blaze);
  background: var(--cream);
  box-shadow: 0 6px 16px rgba(217, 83, 30, 0.25);
}
.rut-phase.active .rut-phase-name { color: var(--blaze); }

/* -------------------------------- Gallery ---------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 8, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 200;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

/* --------------------------------- Footer --------------------------------- */

.site-footer {
  background:
    radial-gradient(ellipse 50% 120% at 50% 0%, rgba(242,134,46,0.13), transparent 70%),
    var(--forest-dark);
  color: var(--cream-dark);
  padding: 36px 0;
  text-align: center;
  font-size: 0.88rem;
}

.site-footer a { color: var(--blaze-light); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--cream-dark); font-weight: 600; }
.footer-links a:hover { color: var(--white); }

/* --------------------------------- Utility -------------------------------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--muted); }

/* ============================= Mobile Polish ============================== */

/* Tighten section vertical padding on small screens */
@media (max-width: 600px) {
  section { padding: 40px 0; }
  .page-banner { padding: 36px 0 28px; }
  .section-head { margin-bottom: 28px; }
}

/* Reduce container side padding on very small screens */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
}

/* Home main card: reduce inner padding and banner height when stacked */
@media (max-width: 700px) {
  .home-main-text { padding: 28px 22px; }
  .home-main-banner.pos-trophy { height: 240px; }
  .home-main-banner { height: 160px; }
  .home-main h2 { font-size: 1.55rem; }
  .home-tagline { font-size: 1.05rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 140px; text-align: center; }
}

/* Side cards: full-width CTA buttons */
@media (max-width: 600px) {
  .side-card .btn { display: block; text-align: center; }
  .menu-btn-row { flex-direction: column; }
  .gallery-item.menu-btn { width: 100%; }
}

/* Hunter avatar tiles: tighten up on phones */
@media (max-width: 480px) {
  .party-tags { gap: 10px; }
  .hunter-tag { width: 60px; }
  .hunter-photo { width: 50px; height: 50px; }
  .hunter-name { font-size: 0.7rem; }
  .hunter-placeholder { width: 50px; height: 50px; }
}

/* Timeline: reduce left indent slightly on phones */
@media (max-width: 480px) {
  .timeline-item { padding-left: 44px; }
  .timeline-item .year { font-size: 1.35rem; }
}

/* Trophy cards: slightly shorter images on mobile */
@media (max-width: 480px) {
  .trophy-card img { aspect-ratio: 3/2; }
}

/* Felt sole card: stack button and image vertically */
@media (max-width: 560px) {
  .felt-btn-row { flex-wrap: wrap; }
  .felt-photo { width: 80px; }
}

/* Countdown compact boxes: ensure they don't shrink too small */
@media (max-width: 360px) {
  .countdown-compact .num { font-size: 1.2rem; }
  .countdown-compact .label { font-size: 0.55rem; }
}

/* Stats table: reduce font size slightly on mobile */
@media (max-width: 600px) {
  table { font-size: 0.82rem; }
  thead th { padding: 10px 10px; font-size: 0.72rem; }
  tbody td { padding: 10px 10px; }
}
