/* IVmissed homepage styles (loaded by templates/index.html) */
@import url("https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&display=swap");
* {
  box-sizing: border-box;
  font-family: "Dosis", sans-serif;
}
:root {
  --gold: #ffd700;
  --dark-gold: #cca300;
  --white: #ffffff;
  --gray: #f0f0f0;
  --page-bg: #02132e;
}
body {
  font-family: "Vollkorn", serif;
  background: var(--page-bg);
  color: #333;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
 
  background-size: cover;
}

.ad-container {
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 140px;
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
  padding: 0;
}

.ad-container img {
  height: 100%;
  width: auto;
}

.container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
h1 {
  color: var(--gold);
  text-align: center;
  line-height: 0.5;
}

.main-top-row {
  display: flex;
  gap: 20px;
  align-items: stretch; /* ← important */
  margin-bottom: 10px;
}
.app-coming-banner {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 9px 0 0px 0;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.45);
  background: rgba(0, 54, 96, 0.55);
  overflow: hidden;
}
.app-coming-banner__label {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-size: 0.95rem;
}
.app-coming-banner__store {
  display: inline-flex;
  line-height: 0;
}
.app-coming-banner__store img {
  height: 28px;
  width: auto;
  display: block;
}

/* Top app download strip (below map) */
.app-download-strip {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 8px 0;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.45);
  background: rgba(0, 54, 96, 0.55);
  overflow: hidden;
}
.app-download-strip__label {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-size: 0.95rem;
}
.app-download-strip__store {
  display: inline-flex;
  line-height: 0;
}
.app-download-strip__store img {
  height: 28px;
  width: auto;
  display: block;
}

.main-top-block {
  flex: 1;
  height: 140px; /* ← single source of truth */
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  display: flex;
  overflow: hidden;
}

.map-preview-container,
.top-entry {
  width: 100%;
  height: 100px;
  min-width: 0;
  cursor: pointer;
}

.top-entry {
  position: relative;
}

.top-entry h3 {
  position: absolute;
  z-index: 999;
  margin: 8px 8px 8px 8px; /* tighter */
  font-size: 1.1rem;
  line-height: 1;
  color: var(--gold);
  background-color: #3173c6;
  padding: 5px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bolder;
}
.top-entry h3 {
  top: 8px;
  left: 8px;
  margin: 0;
}

#map-preview {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px 0 0 15px;
  pointer-events: none;
}

.top-entry p {
  padding: 8px;
  padding-top: 40px; /* ← space for "popular" */
  margin: 0;
  text-align: center;
  color: var(--gold);
  font-weight: bold;
  line-height: 1.1;

  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.map-preview-container,
.top-entry {
  height: 100%;
  width: 100%;
}

.top-entry p {
  margin: 0;
  line-height: 1.1;
}

.top-entry a {
  color: var(--gold);
  font-size: 90%;
  font-weight: bolder;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

/* NEW: month cutoff label inside the calendar grid */
.month-separator {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.06em;
  /*text-shadow: 0px 0px 5px #003660;*/
  padding: 6px 0;
  margin: 2px 0;
  /*border-top: 2px solid rgba(255, 215, 0, 0.35);
  border-bottom: 2px solid rgba(255, 215, 0, 0.35);*/
  border-radius: 10px;
 /* background: rgba(0, 54, 96, 0.18);*/
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.calendar-header button {
  background: var(--gold);
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.calendar-header button:hover {
  background: var(--dark-gold);
}
.day {
  background: var(--gray);
  border: 2px solid var(--gold);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #003660;
  font-weight: bold;
}
.day:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.day.today {
  background: var(--gold);
  font-weight: bold;
}
.day.future {
  background: #e0e0e0;
  color: #a0a0a0;
  pointer-events: none;
}
.submission-count {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--dark-gold);
  color: var(--white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
button {
  color: #003660;
  font-weight: bold;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  background-color: var(--gold);
}
.index-bottom-ad {
  width: 100%;
  box-sizing: border-box;
  margin: 8px 0 16px 0;
  padding: 0;
  background: transparent;
}
.index-bottom-ad .adsbygoogle {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
}
@media (max-width: 600px) {
  .calendar {
    grid-template-columns: repeat(3, 1fr);
  }
  .day {
    padding: 10px;
  }
}
@media (max-width: 900px) {
  .main-top-row {
    flex-direction: row;
    gap: 5px;
  }
  .main-top-block {
    max-width: 50%;
    min-width: 0;
    border-radius: 15px;
  }
  .top-entry {
    border-radius: 0 15px 15px 0;
  }
  .app-coming-banner {
    gap: 8px;
    padding: 0 8px;
  }
  .app-coming-banner__label {
    font-size: 0.82rem;
  }
  .app-coming-banner__store img {
    height: 24px;
  }
}

.school-picker {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.school-picker select {
  --control-h: 44px;
  height: var(--control-h);
  font-size: 1.15rem;
  line-height: 1;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  font-weight: 800;
  cursor: pointer;
  outline: none;
  color: gold;
  background-color: rgba(49, 115, 198, 0.35);
  max-width: min(86vw, 520px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.school-picker select:hover {
  border-color: var(--gold);
}

.school-picker select:focus {
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.25);
}

.app-header-tagline {
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.03em;
  max-width: min(52%, 13rem);
  font-size: clamp(1.02rem, 2.5vw + 0.72rem, 1.45rem);
  font-weight: bold;
  letter-spacing: clamp(0.03em, 0.12vw + 0.028em, 0.075em);
  color: var(--gold);
  opacity: 0.92;
  text-align: right;
  line-height: 1.15;
}

.app-header-tagline__line {
  display: block;
  white-space: nowrap;
}

@media (min-width: 601px) {
  .app-header-tagline {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.3em;
    max-width: none;
  }

  .app-header-tagline__line {
    white-space: nowrap;
  }
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.school-logo {
  /* Match the dropdown control height for clean alignment */
  height: 53px;
  width: auto;
}

/* School Selection Popup Modal */
#schoolSelectionModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.school-selection-popup {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.school-selection-popup h2 {
  color: #003660;
  font-size: 1.8rem;
  margin: 0 0 10px 0;
  font-weight: bold;
}

.school-selection-popup p {
  color: #666;
  margin: 0 0 30px 0;
  font-size: 1rem;
}

.school-selection-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.school-selection-btn {
  padding: 15px 20px;
  font-size: 1.1rem;
  font-weight: bold;
  border: 2px solid var(--gold);
  background: white;
  color: #003660;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.school-selection-btn:hover {
  background: var(--gold);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

@media (max-width: 600px) {
  .school-selection-popup {
    padding: 30px 20px;
  }

  .school-selection-popup h2 {
    font-size: 1.5rem;
  }

  .school-selection-buttons {
    grid-template-columns: 1fr;
  }
}

/* Server-rendered school article (from schools/*.md); same column width as #calendar */
.school-article-wrap {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0;
  padding: 0 0 8px;
}
.school-article {
  background: rgba(255, 255, 255, 0.96);
  color: #1a2a3a;
  border-radius: 18px;
  padding: 28px 32px 32px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  line-height: 1.65;
  font-size: 1.05rem;
}
.school-article h1 {
  color: #003660;
  font-size: 1.75rem;
  margin: 0 0 0.5em 0;
  line-height: 1.2;
}
.school-article h2 {
  color: #003660;
  font-size: 1.28rem;
  margin: 1.25em 0 0.5em 0;
  border-bottom: 2px solid rgba(255, 215, 0, 0.55);
  padding-bottom: 0.2em;
}
.school-article h3 {
  color: #003660;
  font-size: 1.1rem;
  margin: 1em 0 0.4em 0;
}
.school-article p {
  margin: 0 0 0.85em 0;
}
.school-article ul,
.school-article ol {
  margin: 0 0 0.85em 1.2em;
  padding-left: 0.2em;
}
.school-article li {
  margin-bottom: 0.35em;
}
.school-article a {
  color: #3173c6;
  font-weight: 700;
}
.school-article a:hover {
  text-decoration: underline;
}
.school-article blockquote {
  margin: 0.75em 0;
  padding: 0.5em 1em;
  border-left: 4px solid #cca300;
  background: rgba(49, 115, 198, 0.06);
  color: #333;
}
.school-article code {
  font-family: ui-monospace, monospace;
  font-size: 0.92em;
  background: rgba(0, 54, 96, 0.08);
  padding: 0.12em 0.35em;
  border-radius: 4px;
}
.school-article pre {
  background: #0b2345;
  color: #f5f5f5;
  padding: 14px 16px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.9rem;
}
.school-article pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.school-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75em 0;
  font-size: 0.98rem;
}
.school-article th,
.school-article td {
  border: 1px solid rgba(0, 54, 96, 0.2);
  padding: 8px 10px;
  text-align: left;
}
.school-article th {
  background: rgba(255, 215, 0, 0.25);
  color: #003660;
}
@media (max-width: 600px) {
  .school-article {
    padding: 20px 18px 24px;
    font-size: 1rem;
  }
  .school-article h1 {
    font-size: 1.45rem;
  }
}

.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto;
  max-width: 100%;
  font-size: 1rem;
  line-height: 1.4;
}
.footer-links-row a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.footer-links-row a + a::before {
  content: "·";
  display: inline-block;
  margin: 0 0.65em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  pointer-events: none;
}
.footer-links-row a:hover {
  text-decoration: underline;
}

.site-footer-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 0 24px;
  text-align: center;
}
.footer-instagram-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto 18px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 15px;
  text-decoration: none;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 36, 96, 0.2);
}
.footer-instagram-bar--in-main {
  margin-top: 22px;
  margin-bottom: 16px;
}
.footer-instagram-bar:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  color: #fffef0;
}
.footer-instagram-bar:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.footer-instagram-bar__icon {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.footer-instagram-bar__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}
.footer-instagram-bar__handle {
  line-height: 1.2;
}
.footer-instagram-bar__sub {
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.25;
}
@media (max-width: 600px) {
  .footer-instagram-bar {
    flex-wrap: wrap;
    padding: 12px 16px;
    font-size: 1.05rem;
  }
  .site-footer-wrap {
    padding-left: 4px;
    padding-right: 4px;
  }
}

.app-shell {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 86px;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.map-hero {
  display: block;
  position: relative;
  width: 100%;
  margin: 0;
  height: clamp(145px, 22vh, 200px);
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 215, 0, 0.36);
  background: rgba(0, 54, 96, 0.42);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}
.map-hero .map-preview-container,
.map-hero #map-preview {
  height: 100%;
  border-radius: inherit;
}
.index-add-sticky {
  position: sticky;
  top: 0;
  z-index: 8500;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 0 0;
  margin: 0 0 8px;
  pointer-events: none;
  background-color: transparent;
  transition: background-color 140ms ease;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}
.index-add-sticky.is-stuck {
  background-color: var(--page-bg);
}
.index-add-sticky-sentinel {
  height: 1px;
  width: 100%;
}
.index-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  flex: 1 1 0%;
  min-width: 0;
  padding: 9px 14px;
  border: none;
  border-radius: 999px;
  background: var(--gold);
  color: #003660;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.08rem;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
}
.index-add-btn svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
.index-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: #003660;
  font-weight: 500;
  font-size: 1.08rem;
  text-decoration: none;
  border: 1px solid rgba(0, 54, 96, 0.15);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  pointer-events: auto;
}
.index-map-btn svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
.mode-shell {
  margin-top: 14px;
}
.mode-panel[hidden] {
  display: none;
}
.stream-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stream-day-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stream-status {
  padding: 18px;
  text-align: center;
  color: var(--gold);
  font-weight: 800;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 18px;
  background: rgba(0, 54, 96, 0.38);
}
.stream-day {
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 22px;
  padding: 12px;
  background: rgba(0, 54, 96, 0.52);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.stream-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.stream-date-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 1.08rem;
  font-weight: 900;
  text-decoration: none;
}
.stream-date-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}
.stream-date-link:hover {
  text-decoration: underline;
}
.stream-card {
  position: relative;
  margin-top: 10px;
  padding: 14px 14px 48px;
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 18px;
  color: var(--gold);
  background: #003660;
}
.stream-card.has-open-comments {
  padding-bottom: 62px;
}
.stream-comments {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding: 12px;
  background: #002b4d;
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: 16px;
  width: 100%;
}
.stream-comment {
  border-bottom: 1px solid rgba(255, 215, 0, 0.65);
  padding: 6px 0;
  white-space: pre-wrap;
}
.stream-add-comment-btn {
  margin-top: 10px;
  background: var(--gold);
  color: #003660;
  border: none;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}
.stream-comment-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: #003660;
  color: var(--gold);
}
.stream-comment-form button {
  margin-top: 8px;
  background: var(--gold);
  color: #003660;
  border: none;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}
.stream-native-ad {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 14px 0 4px;
  padding: 0;
  background: transparent;
  border: none;
  min-height: 0;
}
.stream-native-ad .adsbygoogle {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
}
.stream-card.has-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: flex-start;
}
.stream-card-body {
  min-width: 0;
}
.stream-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-weight: 900;
}
.stream-location {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stream-description {
  margin: 0;
  color: #fff8bf;
  font-weight: 650;
  line-height: 1.35;
  white-space: pre-wrap;
}
.stream-card-map {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 215, 0, 0.28);
  background: #002b4d;
}
.stream-card-map img {
  display: block;
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 18px;
  opacity: 0.92;
}
.map-center-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -100%);
  z-index: 2;
  pointer-events: none;
  color: var(--page-bg);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35));
}
.map-center-pin svg {
  display: block;
  width: 100%;
  height: 100%;
}
.stream-card-actions {
  position: absolute;
  left: 12px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stream-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 48px;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--gold);
  background-color: #002b4d;
  font-weight: 900;
  text-decoration: none;
  border: none;
}
.stream-action svg {
  width: 17px;
  height: 17px;
  display: block;
  flex: 0 0 auto;
}
.stream-action.upvote-btn {
  cursor: pointer;
}
.stream-action.upvote-btn.upvoted,
.stream-action.upvote-btn[disabled] {
  color: var(--gold);
  border: none;
  cursor: default;
}
.stream-action.upvote-btn.upvoted svg,
.stream-action.upvote-btn[disabled] svg {
  color: gray;
}
.stream-action.dm-btn {
  gap: 6px;
  cursor: pointer;
}
.stream-action.dm-btn svg {
  width: 17px;
  height: 17px;
  display: block;
}
.stream-views {
  position: absolute;
  right: 14px;
  bottom: 17px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: rgba(255, 215, 0, 0.86);
  font-weight: 800;
}
.stream-views svg {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
}
.mode-load-more {
  display: block;
  width: min(260px, 80vw);
  margin: 18px auto 8px;
}
.more-content {
  margin-top: 18px;
}
.more-content-inner {
  margin-top: 0;
}
.bottom-app-nav {
  position: fixed;
  left: 50%;
  bottom: 0px;
  transform: translateX(-50%);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: var(--page-bg);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}
.nav-coach-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  transform: translateX(-50%) translateY(8px);
  z-index: 9100;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--page-bg);
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.nav-coach-tooltip.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  visibility: visible;
}
.nav-coach-tooltip__arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid var(--gold);
}
.bottom-mode-btn {
  width: 48px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0;
  color: white;
  background-color: transparent;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.bottom-mode-btn.dm-nav-btn {
  position: relative;
}
.bottom-mode-btn.dm-nav-btn::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #f6554c;
  box-shadow: 0 0 0 2px rgba(0, 54, 96, 0.72);
}
.bottom-mode-btn svg {
  width: 21px;
  height: 21px;
}
.bottom-mode-btn.is-active {
  color: var(--gold);
}
#dmDownloadModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 18px;
}
#dmDownloadModal[aria-hidden="false"] {
  display: flex;
}
.dm-modal-card {
  width: min(520px, 92vw);
  background: #ffffff;
  color: #003660;
  border-radius: 18px;
  padding: 22px 20px 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 215, 0, 0.45);
}
.dm-modal-title {
  margin: 0 0 6px 0;
  font-size: 1.45rem;
  font-weight: 800;
}
.dm-modal-body {
  margin: 0 0 16px 0;
  color: rgba(0, 54, 96, 0.85);
  font-weight: 600;
  line-height: 1.35;
}
.dm-modal-stores {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 10px 0 8px 0;
}
.dm-store-link {
  display: inline-flex;
  line-height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 54, 96, 0.15);
  background: #fff;
}
.dm-store-link img {
  height: 44px;
  width: auto;
  display: block;
}
.dm-modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.dm-close-btn {
  background: transparent;
  border: 1px solid rgba(0, 54, 96, 0.25);
  color: #003660;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}

/* New missed connection (homepage) - inline form at top */
.form-container {
  display: none;
  background: rgba(0, 54, 96, 0.52);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 22px;
  padding: 18px;
  margin: 10px 0 16px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.form-container.show {
  display: block;
}

/* Reuse connections.html form styling expectations */
#homeConnectionForm h3 {
  margin: 0 0 10px 0;
  color: var(--gold);
}
#homeConnectionForm label {
  display: block;
  margin-bottom: 5px;
  font-weight: 800;
  color: var(--gold);
}
#homeConnectionForm textarea,
#homeConnectionForm input {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 12px;
  background: #003660;
  color: var(--gold);
}
#homeConnectionForm .error-message {
  color: #ff4444;
  margin-top: 10px;
  display: none;
}
#homeConnectionForm .submit-btn {
  background: var(--gold);
  color: #003660;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 900;
  margin-top: 10px;
  width: 100%;
}
.submit-btn:disabled,
#homeConnectionForm .submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
#homeConnectionForm .form-tip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 0, 0.45);
  background: rgba(0, 54, 96, 0.45);
  color: var(--gold);
  margin: 10px 0 14px 0;
}
#homeConnectionForm .form-tip__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--gold);
  margin-top: 1px;
}
#homeConnectionForm .form-tip__title {
  font-weight: 900;
  letter-spacing: 0.02em;
  margin: 0 0 2px 0;
  color: var(--gold);
}
#homeConnectionForm .form-tip__text {
  margin: 0;
  opacity: 0.92;
  font-weight: 650;
  line-height: 1.25;
}
#homeConnectionForm .form-tip__cta-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
#homeConnectionForm .form-tip__cta {
  background: var(--gold);
  color: #003660;
  border: none;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.02em;
}
#homeConnectionForm .form-tip__cta:hover {
  background: var(--dark-gold);
}
@media (max-width: 600px) {
  body {
    padding: 10px;
  }
  .app-shell {
    max-width: 100%;
  }
  .app-header {
    justify-content: flex-start;
    padding: 0 2px;
  }
  .map-hero {
    width: calc(100vw - 20px);
    margin-left: calc(50% - 50vw + 10px);
    height: 105px;
    border-radius: 22px;
  }
  .index-add-sticky {
    width: calc(100vw - 20px);
    margin-left: calc(50% - 50vw + 10px);
    padding-left: 0;
    padding-right: 0;
  }
  .stream-card.has-map {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
  }
  .stream-card-map {
    border-radius: 10px;
    align-self: start;
  }
  .stream-card-map img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
  }
  .stream-card-map .map-center-pin {
    width: 20px;
    height: 20px;
  }
  .school-picker select {
    max-width: calc(100vw - 54px - 28px - 10.5rem);
    font-size: 1rem;
  }

  .app-header-tagline {
    font-size: clamp(0.98rem, 2.2vw + 0.78rem, 1.28rem);
    letter-spacing: 0.035em;
    max-width: 10.5rem;
  }
  .calendar-header {
    margin-top: 4px;
  }
}
      .ad-home-link {
        text-decoration: none;
        background-color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        min-height: 64px;
        width: 100%;
        max-width: 1200px;
        margin: 8px auto 0 auto;
        overflow: hidden;
        border-radius: 15px;
        padding: 10px 14px;
        font-family: "Montserrat", sans-serif;
        font-size: clamp(14px, 3.3vw, 19px);
        font-weight: 500;
        color: #333;
        gap: 6px;
        text-align: center;
      }

      .ad-home-link:hover .ad-home-cta {
        text-decoration: underline;
      }

      .ad-home-image {
        height: 22px;
        width: auto;
      }

      .ad-home-logo-wrapper {
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
      }

      .ad-home-cta {
        font-size: clamp(12px, 3vw, 14px);
        font-weight: 400;
        display: flex;
        align-items: center;
        gap: 6px;
        width: 100%;
        justify-content: center;
      }

      .ad-home-arrow {
        width: 14px;
        height: 14px;
      }
