/* =====================================================================
   style.css — Shot Framer stylesheet
   ---------------------------------------------------------------------
   Organized in two sections:
     1. BASE   — structure and the original look.
     2. MODERN — theme layer. It is written AFTER the base, so on equal
                 specificity its rules WIN over the base ones.

   EDITING TIP: if you change a value in the BASE section and it doesn't
   show up, the MODERN section probably overrides the same selector —
   search this file for that selector and change it there too.

   Backups of the originals live in style_v1.css and
   style-modern-overrides_v1.css (not loaded).
   ===================================================================== */


/* =========================== 1. BASE ============================== */

/* ---- Reset + page ---- */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #C1C6C8;
  color: #1a1d22;
  line-height: 1.5;
}

/* ---- Header + footer ---- */
.site-header {
  background: #411C32;
  color: #fff;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-header .brand {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.site-header nav a {
  color: #cdd2da;
  text-decoration: none;
  margin-left: 1rem;
}
.site-header nav a:hover {
  color: #fff;
}
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #6b7280;
}

/* ---- Cards + text ---- */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.card.subtle {
  background: #f0f4ff;
}
h1 {
  margin-top: 0;
}
.muted {
  color: #6b7280;
}
.small {
  font-size: 0.875rem;
}
.callout {
  background: #fff8d8;
  border-left: 4px solid #f1c40f;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 6px;
}
.alert {
  background: #ffe5e5;
  border: 1px solid #ffb3b3;
  color: #8a1a1a;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.alert.success {
  background: #e3f7e3;
  border-color: #a0d8a0;
  color: #1a5e1a;
}

/* ---- Forms ---- */
form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
}
form input,
form select,
form textarea {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  margin-top: 0.25rem;
  border: 1px solid #cbd0d8;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
}
form input:focus,
form select:focus,
form textarea:focus {
  outline: 2px solid #4f7cff;
  outline-offset: 1px;
}

/* Beta testing-mode banner (shown only while testing mode is on) */
.testing-banner {
  background: #fff3d6;
  color: #8a5a00;
  border-bottom: 1px solid #f1c40f;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Inline checkbox row (e.g. "Keep me signed in") */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.checkbox-row input[type="checkbox"] {
  display: inline-block;
  width: auto;
  min-height: 0;
  margin: 0;
}

/* ---- Buttons ---- */
button {
  background: #1a1d22;
  color: #fff;
  border: 0;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}
button:hover {
  background: #34394a;
}
button:disabled {
  background: #c4c8d2;
  cursor: not-allowed;
}
button.danger {
  background: #b3261e;
}
button.danger:hover {
  background: #8f1d17;
}
.btn-link {
  display: inline-block;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
  border-radius: 8px;
  background: #e8eefc;
  color: #2a3f7a;
  text-decoration: none;
  font-weight: 600;
}
.btn-link:hover {
  background: #d6e0fb;
}
.btn-save {
  background: #4f7cff;
  padding: 0.7rem 1.6rem;
  font-weight: 700;
}
.btn-save:hover {
  background: #3a67ec;
}
.iconbtn {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  background: #fff;
  color: #374151;
  border: 1px solid #cbd0d8;
  border-radius: 8px;
}
.iconbtn:hover {
  background: #eef0f4;
}
.iconbtn:disabled {
  background: #f3f4f6;
  color: #c4c8d2;
  border-color: #e5e7eb;
}

/* ---- Chips + badges ---- */
.chip {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
}
.chip-today {
  background: #4f7cff;
  color: #fff;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #e5e7eb;
  color: #374151;
}
.badge-accepted {
  background: #e3f7e3;
  color: #1a5e1a;
}
.badge-revision {
  background: #fff3d6;
  color: #8a5a00;
}
.badge-incomplete {
  background: #ffe5e5;
  color: #8a1a1a;
}
.badge-pending {
  background: #e8eefc;
  color: #2a3f7a;
}

/* ---- Stats (student progress) ---- */
.stats {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.stats li {
  background: #f0f4ff;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  min-width: 90px;
  text-align: center;
}
.stats li strong {
  display: block;
  font-size: 1.5rem;
}
.stats li span {
  font-size: 0.8rem;
  color: #4a5160;
}

/* ---- Submission / gallery tiles ---- */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.tile {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.tile img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.tile-body {
  padding: 0.75rem;
}
.tile-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}
.feedback {
  background: #f0f4ff;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* My Shots: compact catch-up list (mobile-friendly — no big tiles for misses) */
.catchup-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.catchup-list li {
  border-bottom: 1px solid #e5e7eb;
}
.catchup-list li:last-child {
  border-bottom: 0;
}
.catchup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.25rem;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.catchup-row:hover {
  background: #f0f4ff;
}
.catchup-row__name {
  font-weight: 600;
}
.catchup-row__arrow {
  color: #2a3f7a;
  font-weight: 600;
  white-space: nowrap;
}

/* Small button (e.g. "Delete & redo" on a submission tile).
   Two-class selector so it out-ranks the modern button min-height rule. */
.tile-body .btn-small {
  min-height: 32px;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  width: auto;
  margin-top: 0.4rem;
}

/* ---- Example image (student task / preview) ---- */
.thumb {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  margin-top: 0.5rem;
}
.example {
  margin: 1rem 0;
}
.example img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 10px;
}
.example figcaption {
  margin-top: 0.4rem;
  text-align: center;
}

/* ---- Data tables (admin) ---- */
.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.data th,
.data td {
  padding: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}
.data th {
  background: #f0f4ff;
}

/* Students table: keep Edit + Delete side by side at a consistent size */
.data .row-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}
.data .row-actions > * {
  flex: 0 0 auto;
}
.data .row-actions form {
  margin: 0;
  display: inline-flex;
}
.data .row-actions .btn-link,
.data .row-actions .danger {
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  width: auto;
  font-size: 0.9rem;
  line-height: 1.1;
  white-space: nowrap;
}

/* ---- Filters (admin dashboard) ---- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}
.filters label {
  margin-bottom: 0;
  flex: 1 1 140px;
  font-size: 0.9rem;
}

/* ---- Card header (title + action button on one row) ---- */
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.card-head h1 {
  margin: 0;
}

/* ---- Popups / modals (shared by Students + Assignments) ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}
.modal-overlay.is-hidden {
  display: none;
}
.modal {
  background: #fff;
  border-radius: 14px;
  max-width: 420px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.modal.modal-wide {
  max-width: 760px;
}
.modal h3 {
  margin: 0 0 0.5rem;
}
.modal p {
  margin: 0 0 1.25rem;
  color: #374151;
}
.modal__actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}
.modal__actions button {
  font-size: 0.95rem;
}
.modal__cancel {
  background: #e5e7eb;
  color: #374151;
}
.modal__cancel:hover {
  background: #d4d8e0;
}
.modal__confirm {
  background: #b3261e;
}
.modal__confirm:hover {
  background: #8f1d17;
}

/* ---- Shot list (admin/tasks.php) ---- */
.shot-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.shot-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1.5px solid #cbd2dc;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}
.shot-row.is-today {
  border-color: #4f7cff;
  box-shadow: 0 2px 10px rgba(79, 124, 255, 0.25);
}
.shot-thumb {
  flex: 0 0 auto;
  width: 84px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #eef1f6;
  border: 1px solid #d7dbe2;
  display: grid;
  place-items: center;
}
.shot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shot-thumb__empty {
  color: #9aa1ad;
  font-size: 0.72rem;
}
.shot-info {
  flex: 1 1 auto;
  min-width: 0;
}
.shot-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  flex-wrap: wrap;
}
.shot-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1a1d22;
  color: #fff;
  font-size: 0.85rem;
}
.shot-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.shot-actions .iconbtn {
  width: 34px;
  height: 34px;
  min-height: 34px;
}
.shot-actions .btn-link,
.shot-actions .danger {
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  width: auto;
}

/* ---- Example image inside the shot-editor popup ---- */
.example-preview {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #f7f8fb;
}
.example-preview img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.example-empty {
  height: 150px;
  display: grid;
  place-items: center;
  color: #9aa1ad;
  font-size: 0.85rem;
  border: 1px dashed #cbd0d8;
  border-radius: 10px;
}
.example-edit {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.example-edit .example-preview {
  flex: 0 0 160px;
  margin: 0;
}
.example-edit > label {
  flex: 1 1 200px;
}

/* ---- Base small-screen tweaks ---- */
@media (max-width: 600px) {
  .site-header nav a {
    margin-left: 0.5rem;
    font-size: 0.9rem;
  }
  .stats li {
    flex: 1 1 40%;
    min-width: 0;
  }
  .data {
    font-size: 0.85rem;
  }
}

/* ---- Shot-list small-screen tweaks ---- */
@media (max-width: 640px) {
  .shot-row {
    flex-wrap: wrap;
  }
  .shot-actions {
    width: 100%;
    justify-content: flex-start;
  }
}


/* ========================== 2. MODERN ============================
   Theme layer — loaded last, so these override the base above on equal
   specificity. Colors come from the CSS variables in :root. */

:root {
  --bg: #f4f7fbba;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #172033;
  --muted: #667085;
  --line: #d9e2ef;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eaf1ff;
  --success: #15803d;
  --success-soft: #e9f8ef;
  --warning: #b45309;
  --warning-soft: #fff4df;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --radius: 20px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.10);
  --tap: 48px;
}

html {
  -webkit-text-size-adjust: 100%;
}
body {
  background: #C1C6C8;
  color: var(--text);
  font-size: 16px;
}

/* ---- Header ---- */
.site-header {
  background: #411C32;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}
.site-header .brand {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.site-header nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}
.site-header nav a {
  margin-left: 0;
  color: #d7def0;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.92rem;
}
.site-header nav a:hover {
  background: rgba(255, 255, 255, 0.10);
}

/* ---- Layout + cards ---- */
.container {
  max-width: 1120px;
  padding: clamp(1rem, 3vw, 1.75rem);
}
.card,
.tile {
  border: 1px solid rgba(217, 226, 239, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card {
  padding: clamp(1.1rem, 3vw, 1.65rem);
  margin-bottom: 1.25rem;
}
.card:hover,
.tile:hover {
  box-shadow: var(--shadow-md);
}

/* ---- Headings + text ---- */
h1, h2, h3 {
  letter-spacing: -0.025em;
  line-height: 1.15;
}
h1 {
  font-size: clamp(1.75rem, 5vw, 2.45rem);
  margin-bottom: 0.55rem;
}
h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}
h3 {
  font-size: 1.05rem;
}
.muted {
  color: var(--muted);
}

/* ---- Callout + alerts ---- */
.callout {
  background: linear-gradient(135deg, #fff8df, #fffdf5);
  border: 1px solid #f8d06b;
  border-left: 6px solid #f59e0b;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.alert {
  border-radius: 14px;
  border-width: 1px;
}
.alert.success {
  background: var(--success-soft);
  border-color: #9bd7ad;
  color: #14532d;
}

/* ---- Forms (larger tap targets on mobile) ---- */
form label {
  color: var(--text);
}
form input,
form select,
form textarea {
  min-height: var(--tap);
  border-color: var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.03);
}
form textarea {
  min-height: 5.75rem;
  resize: vertical;
}
form input:focus,
form select:focus,
form textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  border-color: var(--primary);
}

/* ---- Buttons ---- */
button,
.btn-link {
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 12px;
  font-weight: 700;
}
button {
  background: var(--primary);
}
button:hover {
  background: var(--primary-dark);
}
button.danger {
  background: var(--danger);
}
.btn-link {
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.btn-save {
  background: var(--primary);
}
.iconbtn {
  min-height: 42px;
  width: 42px;
  border-radius: 12px;
}

/* ---- Example images ---- */
.example {
  background: var(--surface-soft);
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.example img {
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  max-height: none;
}
.thumb {
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.example-preview {
  border-radius: 16px;
  background: var(--surface-soft);
}
.example-preview img,
.example-empty {
  height: 180px;
}

/* ---- Data tables ---- */
.data {
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.data th {
  background: var(--primary-soft);
  color: #1e3a8a;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.data th,
.data td {
  padding: 0.75rem;
}
.data tr:last-child td {
  border-bottom: 0;
}
.card:has(.data) {
  overflow-x: auto; /* wide tables scroll instead of crushing columns */
}

/* ---- Filters ---- */
.filters {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}
.filters label {
  min-width: 160px;
}
.filters button {
  width: auto;
}

/* ---- Submission tiles ---- */
.grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.15rem;
}
.tile {
  overflow: clip;
  background: var(--surface);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.tile:hover {
  transform: translateY(-2px);
}
.tile > a {
  display: block;
  background: #dbe4f0;
}
.tile img {
  height: 220px;
  transition: transform 220ms ease;
}
.tile:hover img {
  transform: scale(1.025);
}
.tile-body {
  padding: 1rem;
}
.tile-body h3 {
  margin-bottom: 0.4rem;
}
.tile-body form {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.tile-body form label {
  font-size: 0.88rem;
}
.tile-body textarea {
  min-height: 4.6rem;
}

/* ---- Badges + chips ---- */
.badge,
.chip {
  border-radius: 999px;
  font-weight: 800;
}
.badge-accepted,
.chip-today {
  background: var(--success-soft);
  color: var(--success);
}
.badge-revision {
  background: var(--warning-soft);
  color: var(--warning);
}
.badge-incomplete {
  background: var(--danger-soft);
  color: var(--danger);
}
.badge-pending {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* ---- Modal ---- */
.modal {
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
}
.modal__cancel {
  background: #eef2f7;
  color: var(--text);
}
.modal__confirm {
  background: var(--danger);
}

/* Hamburger toggle — hidden on desktop; high specificity so it beats the
   generic `button` rules. Shown only on phones (see the media query below).
   margin-left:auto forces it flush right regardless of justify-content. */
.site-header .nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.3rem 0.5rem;
  margin-left: auto;
  min-height: 0;
  cursor: pointer;
}

/* ---- Shot icons (small SVG framing diagrams) ---- */
.shot-icon {
  width: 1.5em;
  height: 1.5em;
  vertical-align: -0.3em;
  color: #411C32;
}
.shot-icon--lg {
  width: 2.2em;
  height: 2.2em;
  vertical-align: -0.5em;
}
.task-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}
.task-title .shot-icon--lg {
  vertical-align: middle;
  flex: 0 0 auto;
}

/* ---- "Why this shot" reveal ---- */
.why-shot {
  margin-top: 1rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 0.85rem;
}
.why-shot > summary {
  cursor: pointer;
  color: #411C32;
  font-weight: 700;
  list-style: none;
  padding: 0.25rem 0;
  user-select: none;
}
.why-shot > summary::-webkit-details-marker { display: none; }
.why-shot > summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 0.45rem;
  transition: transform 160ms ease;
}
.why-shot[open] > summary::before {
  transform: rotate(90deg);
}
.why-shot > p {
  margin-top: 0.5rem;
}

/* ---- Milestone badge ---- */
/* Hidden initially; JS shows it and animates --show. Tap dismisses (--out). */
.milestone-badge {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 2000;
  transform: translate(-50%, calc(50vh + 100px));
  opacity: 0;
  pointer-events: none;
  transition: transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 280ms ease;
}
.milestone-badge--show {
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: auto;
}
.milestone-badge--out {
  transform: translate(-50%, calc(50vh + 100px));
  opacity: 0;
  pointer-events: none;
}
.milestone-badge__inner {
  background: #EF7A11;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 1rem 1.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  cursor: pointer;
  min-width: 240px;
  max-width: min(90vw, 420px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.30), 0 2px 6px rgba(0, 0, 0, 0.18);
}
.milestone-badge__inner:hover { background: #D6680B; }

/* ---- "Coming tomorrow" tease ---- */
.tomorrow-tease {
  background: #f4e9ee;
  border: 1px dashed rgba(65, 28, 50, 0.35);
}
.tomorrow-tease__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
}
.tomorrow-tease .shot-icon {
  width: 2em;
  height: 2em;
  vertical-align: middle;
  flex: 0 0 auto;
}

/* ---- Phone optimization ---- */
@media (max-width: 700px) {
  .site-header {
    align-items: center;
    padding: 0.5rem 0.85rem; /* tighter to buy back mobile real estate */
  }
  /* Show the hamburger; collapse the menu into a tap-to-open dropdown. */
  .site-header .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* Less padding inside cards on phones so the upload sits higher. */
  .card {
    padding: 0.95rem;
  }
  .task-title .shot-icon--lg {
    width: 1.9em;
    height: 1.9em;
  }
  .site-header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
  }
  .site-header nav.is-open {
    display: flex;
  }
  .site-header nav a {
    width: 100%;
    margin-left: 0;
    padding: 0.75rem 0.5rem;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .container {
    padding: 0.9rem;
  }
  .card {
    border-radius: 18px;
  }
  .filters {
    display: grid;
    grid-template-columns: 1fr;
  }
  .filters label,
  .filters button,
  .filters a {
    width: 100%;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .tile img {
    height: 240px;
  }
  button,
  .btn-link {
    width: 100%;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
