:root {
  --present-bg: #0e3a5c;
  --absent-bg: #1e2429;
  --text-on-dark: #ffffff;
  --pill-yellow: #ffd84d;
  --pill-yellow-text: #0e3a5c;
  --pill-grey: #3a4351;
  --pill-grey-text: #cbd5e1;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif; min-height: 100vh; padding: 24px; background: #0a2a44; color: var(--text-on-dark); }
body.present, body.absent { display: flex; align-items: center; justify-content: center; }
body.absent { background: #1a1f24; }
.card { width: 100%; max-width: 380px; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.35); }
.card.present { background: var(--present-bg); }
.card.absent { background: var(--absent-bg); }
.hero { padding: 18px 22px 0; }
.card.present .hero { background: linear-gradient(180deg, #7ec8e3 0%, #3d8db0 50%, #1e5878 100%); }
.card.absent .hero { background: linear-gradient(180deg, #3d4855 0%, #2a323b 60%, var(--absent-bg) 100%); }
.brand-row { display:flex; align-items:center; justify-content:space-between; font-size:11px; letter-spacing:2.5px; text-transform:uppercase; opacity:0.85; margin-bottom:8px; }
.card.absent .brand-row { opacity:0.65; }
.brand-row .live { display:inline-flex; align-items:center; gap:6px; }
.brand-row .live-dot { width:7px; height:7px; border-radius:50%; background:#3aff7a; box-shadow:0 0 6px #3aff7a; }
.card.present .live-dot { animation: live-pulse 1.6s ease-in-out infinite; }
.card.absent .live-dot { background:#888; box-shadow:none; }
@keyframes live-pulse {
  0%,100% { transform:scale(1); opacity:1; }
  50%     { transform:scale(1.5); opacity:0.55; }
}
.eyebrow { font-size:11px; letter-spacing:2.5px; text-transform:uppercase; opacity:0.9; margin-bottom:6px; }
.card.absent .eyebrow { opacity:0.7; }
.headline { font-size:46px; font-weight:900; line-height:0.95; letter-spacing:-1.5px; margin:0 0 12px; text-shadow:0 1px 0 rgba(0,0,0,0.18); }
.pill { display:inline-block; border-radius:999px; padding:5px 13px; font-size:11px; font-weight:700; margin-bottom:18px; letter-spacing:0.3px; }
.pill.present { background: var(--pill-yellow); color: var(--pill-yellow-text); }
.pill.absent { background: var(--pill-grey); color: var(--pill-grey-text); font-weight:600; }
.shot-wrap { padding:16px 22px 10px; }
.shot { background:#06202d; border:1px solid rgba(255,255,255,0.15); border-radius:8px; aspect-ratio: 16 / 10; display:block; width:100%; object-fit:cover; }
.card.absent .shot { background:#0e1418; border-color:rgba(255,255,255,0.12); opacity:0.6; }
.shot-meta { font-size:11px; opacity:0.7; margin-top:6px; text-align:right; letter-spacing:0.4px; }
.stat-strip { background:#08243b; padding:10px 18px; display:grid; grid-template-columns: 1fr 1px 1fr 1px 1fr; align-items:center; gap:0; border-top:1px solid rgba(255,255,255,0.06); }
.card.absent .stat-strip { background:#161b20; }
.stat { text-align:center; }
.stat-num { font-size:18px; font-weight:700; line-height:1; }
.stat-label { font-size:10px; letter-spacing:1.4px; opacity:0.55; text-transform:uppercase; margin-top:3px; }
.divider { width:1px; height:22px; background:rgba(255,255,255,0.1); justify-self:center; }
.meta-foot { padding:8px 22px 12px; font-size:11px; opacity:0.65; display:grid; grid-template-columns: 1fr 1fr 1fr; letter-spacing:0.5px; }
.meta-foot > :nth-child(1) { text-align:left; }
.meta-foot > :nth-child(2) { text-align:center; }
.meta-foot > :nth-child(3) { text-align:right; }
.meta-foot a { color:inherit; text-decoration:underline; }

/* === Gallery + sighting-page styles === */
.page-gallery, .page-sighting {
  background:#0a2a44; color:var(--text-on-dark); padding:32px 24px;
}
.page-header { max-width:1100px; margin:0 auto 28px; }
.page-header .brand { display:inline-block; font-size:11px; letter-spacing:2.5px; text-transform:uppercase; opacity:0.7; text-decoration:none; color:inherit; margin-bottom:14px; }
.page-header h1 { font-size:42px; font-weight:900; margin:0 0 6px; letter-spacing:-1.2px; }
.page-header p { opacity:0.65; margin:0; font-size:14px; }

/* Hero stats strip */
.hero-stats { max-width:1100px; margin:0 auto 32px; display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; }
.hero-stats .stat { background:rgba(255,255,255,0.04); border-radius:10px; padding:18px 20px; }
.hero-stats .stat .label { font-size:10px; letter-spacing:1.8px; text-transform:uppercase; opacity:0.55; margin-bottom:8px; }
.hero-stats .stat .value { font-size:26px; font-weight:800; letter-spacing:-0.5px; line-height:1.1; }
.hero-stats .stat .sub { font-size:12px; opacity:0.55; margin-top:4px; }
@media (max-width:720px) { .hero-stats { grid-template-columns:1fr; } }

/* Friendly empty state when no sightings */
.empty-hero { grid-column: 1 / -1; max-width:560px; margin:48px auto 24px; text-align:center; padding:32px 20px; }
.empty-hero .seal { font-size:64px; line-height:1; margin-bottom:14px; }
.empty-hero h2 { font-size:20px; font-weight:800; margin:0 0 8px; }
.empty-hero p { opacity:0.65; margin:0 auto; font-size:14px; line-height:1.5; max-width:350px; }

.gallery { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:14px; max-width:1100px; margin:0 auto; }
.gallery .tile { background:var(--present-bg); border-radius:10px; overflow:hidden; text-decoration:none; color:inherit; box-shadow:0 4px 12px rgba(0,0,0,0.25); transition:transform 120ms ease; }
.gallery .tile:hover { transform:translateY(-2px); }
.gallery .tile img { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }
.gallery .tile .meta { padding:10px 12px; font-size:13px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.gallery .tile .when { opacity:0.85; }

.conf-pill { display:inline-block; padding:2px 10px; border-radius:99px; font-size:10px; font-weight:700; letter-spacing:0.3px; text-transform:uppercase; }
.conf-high   { background:#3aff7a; color:#0a2a44; }
.conf-medium { background:var(--pill-yellow); color:var(--pill-yellow-text); }
.conf-low    { background:var(--pill-grey);   color:var(--pill-grey-text); }

.sighting-detail { max-width:900px; margin:0 auto; }
.sighting-detail figure { margin:0 0 24px; background:#06202d; border-radius:10px; overflow:hidden; }
.sighting-detail figure img { width:100%; display:block; }
.sighting-detail figcaption { padding:8px 14px; font-size:11px; opacity:0.6; }
.sighting-detail .crop-wrap { max-width:480px; margin:0 auto 24px; }
.ai-notes { background:rgba(255,255,255,0.04); border-radius:10px; padding:18px 22px; margin:24px 0; }
.ai-notes h2 { font-size:14px; font-weight:700; letter-spacing:0.3px; text-transform:uppercase; opacity:0.7; margin:0 0 10px; }
.ai-notes .notes { margin:0 0 8px; font-style:italic; font-size:15px; line-height:1.45; opacity:0.92; border-left:3px solid rgba(255,255,255,0.2); padding-left:12px; }
.ai-notes .byline { font-size:11px; opacity:0.5; margin:0; }

.page-foot { max-width:1100px; margin:32px auto 0; text-align:center; font-size:14px; opacity:0.7; }
.page-foot a { color:inherit; text-decoration:underline; }
.page-foot .sep { margin:0 10px; }

/* === Heatmaps === */
.charts { max-width:1100px; margin:0 auto 36px; }
.charts h2 { font-size:14px; font-weight:700; letter-spacing:0.3px; text-transform:uppercase; opacity:0.65; margin:0 0 16px; }
.heatmap-stack { display:flex; flex-direction:column; gap:20px; }
.heatmap-stack figure { margin:0; background:rgba(255,255,255,0.04); border-radius:10px; padding:18px 20px; }
.heatmap-stack figcaption { font-size:11px; letter-spacing:1.2px; text-transform:uppercase; opacity:0.55; margin-bottom:12px; }
.heatmap-stack .heatmap-tod-wrap { max-width:780px; margin:0 auto; }
.heatmap-stack .heatmap-cal-wrap { max-width:540px; margin:0 auto; }
.heatmap { width:100%; height:auto; display:block; }

/* Subscribe row at the bottom of /sightings */
.subscribe-row { margin-top:36px; display:grid; grid-template-columns:1fr 1fr 1fr; align-items:center; max-width:480px; margin-left:auto; margin-right:auto; font-size:13px; opacity:0.85; }
.subscribe-row a { justify-self:center; color:inherit; text-decoration:none; padding:4px 10px; border-radius:6px; transition:background 120ms ease; display:inline-flex; align-items:center; gap:5px; }
.subscribe-row a:hover { background:rgba(255,255,255,0.08); }
.subscribe-row .bsky-icon { width:14px; height:auto; color:#1185fe; flex-shrink:0; }

/* === Mobile (≤480px) ============================================
   Tighter padding, larger tap targets, real-button subscribe row.
   Desktop layout above is untouched. */
@media (max-width: 480px) {
  body { padding: 14px; }

  /* Page-level pages */
  .page-gallery, .page-sighting { padding: 20px 14px; }
  .page-header { margin-bottom: 20px; }
  .page-header h1 { font-size: 32px; letter-spacing: -0.8px; }
  .page-header p { font-size: 14px; }

  /* Homepage card */
  .headline { font-size: 42px; }
  .brand-row, .eyebrow { font-size: 12px; }
  .pill { font-size: 12px; padding: 6px 14px; }
  .meta-foot { font-size: 12px; opacity: 0.7; padding: 14px 18px 14px; gap: 8px; }
  .meta-foot a { padding: 6px 4px; display: inline-block; min-height: 36px; }

  /* Subscribe row — flex buttons with proper tap targets */
  .subscribe-row {
    display: flex;
    gap: 10px;
    max-width: 520px;
    font-size: 14px;
    opacity: 1;
  }
  .subscribe-row a {
    flex: 1;
    justify-content: center;
    min-height: 48px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
  }
  .subscribe-row .bsky-icon { width: 16px; }

  /* Sighting detail */
  .ai-notes { padding: 16px 18px; }
  .ai-notes .notes { font-size: 16px; }

  /* Heatmaps */
  .heatmap-stack figure { padding: 14px 14px; }
  .charts h2 { font-size: 13px; }
}
