:root {
  --nps-green: #2D4F2D;
  --nps-green-dark: #1E3A1E;
  --nps-green-light: #3D6B3D;
  --nps-brown: #5C4033;
  --nps-brown-light: #7A5C4F;
  --warm-white: #FAF8F5;
  --warm-gray: #F0EDE8;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-tertiary: #7A7A7A;
  --border-color: #D4CFC7;
  --border-light: #E8E4DD;
  --danger-bg: #FDF0F0;
  --danger-border: #D32F2F;
  --danger-text: #B71C1C;
  --caution-bg: #FFF8E1;
  --caution-border: #F9A825;
  --caution-text: #E65100;
  --info-bg: #E8F0FE;
  --info-border: #1565C0;
  --info-text: #0D47A1;
  --closure-bg: #FCE4EC;
  --closure-border: #C62828;
  --success-bg: #E8F5E9;
  --success-border: #2E7D32;
  --delta-up: #2E7D32;
  --delta-down: #C62828;
  --delta-neutral: #7A7A7A;
}

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

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--warm-white);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
}

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

/* NAV */
.top-nav {
  background: var(--nps-green);
  color: white;
  position: sticky;
  top: 0;
  z-index: 9999;
  border-bottom: 3px solid var(--nps-brown);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  gap: 1rem;
}

.nav-brand {
  color: white;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  padding: 0.65rem 0;
}

.nav-brand:hover { text-decoration: none; opacity: 0.9; }

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover { color: white; text-decoration: none; }
.nav-links a.active { color: white; border-bottom-color: var(--nps-brown); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 1px;
}

/* MAIN */
.main-content {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem 1rem;
}

/* BRIEFING */
.briefing-container { width: 100%; }

.historical-banner {
  background: var(--caution-bg);
  border: 1px solid var(--caution-border);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.historical-banner .banner-note {
  display: block;
  font-weight: 400;
  margin-top: 0.25rem;
  color: var(--text-secondary);
}

.briefing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 3px double var(--nps-green);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.park-name {
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--nps-green);
  margin: 0;
  line-height: 1.2;
}

.report-title {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--nps-brown);
  margin: 0.15rem 0 0;
}

.report-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.sun-times {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 0.2rem;
}

.header-right {
  text-align: right;
  flex-shrink: 0;
}

.attribution {
  font-family: Georgia, serif;
  font-size: 0.85rem;
  color: var(--nps-brown);
  font-weight: 700;
}

.generated {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

/* SECTIONS */
.briefing-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.briefing-section:last-child { border-bottom: none; }

.section-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nps-green);
  border-bottom: 2px solid var(--nps-green);
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
}

.data-unavailable {
  color: var(--text-tertiary);
  font-style: italic;
  padding: 0.75rem 0;
  font-size: 0.85rem;
}

/* WEATHER */
.weather-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.weather-location {
  font-size: 0.9rem;
  color: var(--nps-green-dark);
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.35rem;
}

.elevation {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-family: 'Open Sans', sans-serif;
}

.weather-period {
  margin-bottom: 0.65rem;
  padding: 0.5rem;
  background: var(--warm-gray);
  border-left: 3px solid var(--nps-green);
}

.weather-period-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.weather-emoji {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}

.weather-period-detail {
  flex: 1;
  min-width: 0;
}

.period-name {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--nps-green-dark);
}

.period-temp {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.period-forecast {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.period-precip {
  font-size: 0.75rem;
  color: var(--info-text);
  font-weight: 600;
}

/* TABLES */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.data-table th {
  background: var(--nps-green);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  padding: 0.55rem 0.65rem;
  text-align: left;
  font-family: 'Open Sans', sans-serif;
}

.data-table th.num { text-align: right; }

.data-table td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

.data-table tbody tr:nth-child(even) { background: rgba(45, 79, 45, 0.03); }
.data-table tbody tr:hover { background: rgba(45, 79, 45, 0.06); }

.total-row {
  background: var(--warm-gray) !important;
  border-top: 2px solid var(--nps-green);
}

.total-row td { font-weight: 700; }

.compact-table td { padding: 0.4rem 0.65rem; }

.delta-up { color: var(--delta-up); font-weight: 700; }
.delta-down { color: var(--delta-down); font-weight: 700; }
.delta-neutral { color: var(--delta-neutral); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.comparison-primary { background: rgba(45, 79, 45, 0.06); }
thead .comparison-primary { font-weight: 700; }

.visitation-summary {
  margin-top: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--warm-gray);
  border-left: 3px solid var(--nps-green);
  font-size: 0.88rem;
  line-height: 1.5;
}

.notes-cell {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.timestamp {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* WOLF & INAT */
.wolf-activity, .inat-section {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--warm-gray);
  border-left: 3px solid var(--nps-brown);
}

.wolf-activity h4, .inat-section h4 {
  font-size: 0.85rem;
  color: var(--nps-brown);
  margin-bottom: 0.5rem;
}

.wolf-activity ul, .inat-list {
  list-style: none;
  font-size: 0.82rem;
}

.wolf-activity li, .inat-list li {
  padding: 0.2rem 0;
}

.inat-list a {
  font-size: 0.75rem;
  margin-left: 0.35rem;
}

/* ALERTS */
.alert-category { margin-bottom: 1rem; }

.alert-cat-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.65rem;
  margin-bottom: 0.5rem;
  font-family: 'Open Sans', sans-serif;
}

.alert-cat-title.alert-danger { background: var(--danger-bg); color: var(--danger-text); border-left: 4px solid var(--danger-border); }
.alert-cat-title.alert-closure { background: var(--closure-bg); color: var(--danger-text); border-left: 4px solid var(--closure-border); }
.alert-cat-title.alert-caution { background: var(--caution-bg); color: var(--caution-text); border-left: 4px solid var(--caution-border); }
.alert-cat-title.alert-info { background: var(--info-bg); color: var(--info-text); border-left: 4px solid var(--info-border); }

.alert-item {
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.35rem;
  border-left: 3px solid transparent;
  font-size: 0.82rem;
}

.alert-item.alert-danger { border-left-color: var(--danger-border); background: rgba(211,47,47,0.04); }
.alert-item.alert-closure { border-left-color: var(--closure-border); background: rgba(198,40,40,0.04); }
.alert-item.alert-caution { border-left-color: var(--caution-border); background: rgba(249,168,37,0.06); }
.alert-item.alert-info { border-left-color: var(--info-border); background: rgba(21,101,192,0.04); }

.alert-title { font-weight: 700; margin-bottom: 0.2rem; }

.alert-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.expand-btn {
  background: none;
  border: none;
  color: var(--nps-green);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: underline;
}

/* STATUS BADGES */
.status-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-open { background: var(--success-bg); color: var(--delta-up); }
.status-closed { background: var(--danger-bg); color: var(--danger-text); }

.cg-status-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 3px;
}
.cg-open { background: var(--success-bg); color: var(--delta-up); }
.cg-closed { background: #eee; color: var(--text-tertiary); }
.cg-full { background: var(--danger-bg); color: var(--danger-text); font-weight: 800; }
.cg-error { background: #fff3e0; color: #e65100; }

.occ-high { color: var(--danger-text); font-weight: 700; }
.occ-med { color: #e65100; font-weight: 700; }
.occ-low { color: var(--delta-up); font-weight: 700; }
.occ-full { color: var(--danger-text); font-weight: 800; }
.occ-closed { color: var(--text-tertiary); }

.subsection-title {
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  font-family: Georgia, serif;
  color: var(--nps-brown);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.25rem;
}

.trend-section {
  margin-top: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: var(--warm-gray);
  border-left: 3px solid var(--nps-green);
}

.trend-title {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--nps-green-dark);
}

.trend-row {
  font-size: 0.78rem;
  line-height: 1.7;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  align-items: baseline;
}

.trend-name { min-width: 80px; }
.trend-label { white-space: nowrap; }

/* PARK NOTICES */
.park-notice {
  padding: 0.75rem;
  margin-bottom: 0.65rem;
  border-left: 4px solid var(--nps-green);
  background: var(--warm-gray);
}

.park-notice.priority-high { border-left-color: var(--danger-border); background: rgba(211,47,47,0.04); }
.park-notice.priority-low { border-left-color: var(--text-tertiary); }

.notice-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.category-badge {
  display: inline-block;
  background: var(--nps-green);
  color: white;
  font-size: 0.65rem;
  padding: 0.1rem 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
}

.notice-meta {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 0.35rem;
}

.notice-body {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* DATA STATUS */
.data-status { border-bottom: none; }

.status-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  background: var(--warm-gray);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-ok .status-dot { background: var(--delta-up); }
.status-error .status-dot { background: var(--danger-border); }

.status-source { font-weight: 600; }
.status-msg { color: var(--danger-text); font-size: 0.7rem; }

.generated-info {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

/* FORMS */
.form-container {
  max-width: 640px;
  margin: 0 auto;
}

.form-page-title {
  font-size: 1.25rem;
  color: var(--nps-green);
  margin-bottom: 0.25rem;
}

.form-subtitle {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.auth-gate {
  background: var(--warm-gray);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.auth-gate h3 {
  color: var(--nps-green);
  margin-bottom: 0.5rem;
}

.auth-gate p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.auth-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  max-width: 320px;
  margin: 0 auto;
}

.form-section {
  border: none;
  margin-bottom: 1.25rem;
}

.form-legend {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--nps-green-dark);
  margin-bottom: 0.5rem;
  display: block;
}

.form-input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border-color);
  background: white;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-primary);
  transition: border-color 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: var(--nps-green);
  box-shadow: 0 0 0 2px rgba(45, 79, 45, 0.15);
}

.form-textarea { resize: vertical; min-height: 80px; }

.form-select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border-color);
  background: white;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text-primary);
}

.form-select:focus {
  outline: none;
  border-color: var(--nps-green);
}

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

.inline-input { width: calc(50% - 0.25rem); display: inline-block; }

/* SPECIES GRID */
.species-category { margin-bottom: 1rem; }

.species-cat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
}

.species-grid, .zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.4rem;
}

.species-btn, .zone-btn {
  padding: 0.55rem 0.35rem;
  border: 1px solid var(--border-color);
  background: white;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: background 0.12s, border-color 0.12s;
  color: var(--text-primary);
}

.species-btn:hover, .zone-btn:hover {
  background: var(--warm-gray);
  border-color: var(--nps-green);
}

.species-btn.selected, .zone-btn.selected {
  background: var(--nps-green);
  color: white;
  border-color: var(--nps-green);
}

/* BEHAVIOR */
.behavior-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.behavior-btn {
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border-color);
  background: white;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  font-family: inherit;
  color: var(--text-primary);
}

.behavior-btn:hover { background: var(--warm-gray); }
.behavior-btn.selected { background: var(--nps-brown); color: white; border-color: var(--nps-brown); }

/* COUNT STEPPER */
.count-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  background: white;
}

.stepper-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--warm-gray);
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 700;
}

.stepper-btn:hover { background: var(--border-color); }

.count-input {
  width: 60px;
  height: 44px;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  -moz-appearance: textfield;
}

.count-input::-webkit-inner-spin-button,
.count-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* PRIORITY */
.priority-options {
  display: flex;
  gap: 1rem;
}

.priority-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.priority-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.priority-high { background: var(--danger-bg); color: var(--danger-text); }
.priority-normal { background: var(--warm-gray); color: var(--text-secondary); }
.priority-low { background: var(--warm-gray); color: var(--text-tertiary); }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.12s, opacity 0.12s;
  text-align: center;
}

.btn:hover { opacity: 0.9; }

.btn-primary {
  background: var(--nps-green);
  color: white;
  border-color: var(--nps-green-dark);
}

.btn-secondary {
  background: white;
  color: var(--nps-green);
  border-color: var(--border-color);
}

.btn-secondary:hover { background: var(--warm-gray); }

.btn-submit {
  background: var(--nps-green);
  color: white;
  border-color: var(--nps-green-dark);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  width: 100%;
  margin-top: 0.5rem;
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  border-color: var(--danger-border);
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
}

.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.75rem; }

.success-banner {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--delta-up);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.success-banner a { color: var(--nps-green); font-weight: 700; }

.error-message {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-text);
  padding: 1rem;
  font-size: 0.85rem;
}

/* NOTICES MANAGEMENT */
.notices-management { margin-top: 2rem; }

.management-title {
  font-size: 1rem;
  color: var(--nps-green);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--nps-green);
  padding-bottom: 0.35rem;
}

.archived-section {
  margin-top: 1rem;
}

.archived-toggle {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0.5rem 0;
}

/* CALENDAR */
.calendar-container { max-width: 700px; margin: 0 auto; }

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cal-nav-btn {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  background: var(--warm-gray);
  border: 1px solid var(--border-color);
  color: var(--nps-green);
}

.cal-nav-btn:hover { background: var(--border-color); text-decoration: none; }

.cal-month-title {
  font-size: 1.15rem;
  color: var(--nps-green);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
}

.cal-header {
  background: var(--nps-green);
  color: white;
  padding: 0.45rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cal-cell {
  background: white;
  padding: 0.5rem;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.12s;
}

.cal-cell:hover { background: var(--warm-gray); text-decoration: none; }
.cal-empty { background: var(--warm-gray); }

.cal-today {
  background: rgba(45, 79, 45, 0.08);
  font-weight: 700;
}

.cal-day { font-size: 0.85rem; }

.cal-indicators {
  display: flex;
  gap: 4px;
  margin-top: auto;
}

.cal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.cal-dot-blue { background: var(--info-border); }
.cal-dot-green { background: var(--delta-up); }

/* FOOTER */
.site-footer {
  background: var(--nps-green);
  color: rgba(255,255,255,0.75);
  padding: 1.25rem 1rem;
  font-size: 0.75rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.footer-links a { color: rgba(255,255,255,0.85); }
.footer-links a:hover { color: white; }

.footer-attribution {
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
}

/* ADMIN NAV */
.nav-admin { margin-left: auto; }

/* ADMIN PAGE */
.admin-container { max-width: 800px; }

.admin-title {
  font-size: 1.35rem;
  color: var(--nps-green);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  border-bottom: 3px double var(--nps-green);
  padding-bottom: 0.75rem;
}

.admin-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.admin-section:last-child { border-bottom: none; }

.admin-actions {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn-disabled {
  background: var(--warm-gray);
  color: var(--text-tertiary);
  border: 1px solid var(--border-color);
  cursor: not-allowed;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

.config-note {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-style: italic;
  margin-top: 0.35rem;
}

.send-result {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.send-result:empty { display: none; }

.send-success {
  background: var(--success-bg);
  color: var(--delta-up);
  border: 1px solid var(--success-border);
}

.send-error {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.recipient-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr auto;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.recipient-email,
.recipient-name,
.recipient-note {
  font-size: 0.82rem;
  padding: 0.4rem 0.5rem;
}

.btn-remove-recipient {
  padding: 0.3rem 0.55rem;
  font-size: 1rem;
  line-height: 1;
}

.schedule-note {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--info-text);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}

.status-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.status-ok {
  background: var(--success-bg);
  color: var(--delta-up);
}

.status-badge.status-error {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.si-ok { background: var(--delta-up); }
.si-error { background: var(--delta-down); }
.si-unconfigured { background: var(--text-tertiary); }

.historical-pdf-form {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* PRINT */
@media print {
  .top-nav, .site-footer, .nav-toggle, .expand-btn { display: none !important; }
  .main-content { max-width: 100%; padding: 0; }
  .briefing-section { break-inside: avoid; }
  body { font-size: 11px; }
  .data-table th { background: #333; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .weather-period { background: #f5f5f5; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* MOBILE */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nps-green-dark);
    flex-direction: column;
    padding: 0.5rem 0;
    z-index: 9998;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 0.65rem 1.25rem;
    border-bottom: none;
  }

  .nav-toggle { display: flex; }
  .nav-inner { position: relative; }

  .briefing-header { flex-direction: column; }
  .header-right { text-align: left; }
  .weather-grid { grid-template-columns: 1fr; }
  .species-grid, .zone-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

  .data-table { font-size: 0.75rem; }
  .data-table th, .data-table td { padding: 0.4rem; }

  .form-container { padding: 0; }

  .admin-form-grid { grid-template-columns: 1fr; }
  .recipient-row { grid-template-columns: 1fr; }
  .admin-actions { flex-direction: column; }
  .admin-actions .btn-lg { width: 100%; }
}
