/* Mobile-only layout for pool.ravpool.org — narrow, sticky-video, tabbed. */

body {
  background: var(--gray-50);
}
.mobile-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.mobile-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--rav-white);
  border-bottom: 3px solid var(--rav-red);
  height: 60px;
  padding: 0 12px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-header .brand-mark {
  width: 34px; height: 34px;
  background: var(--rav-navy);
  color: var(--rav-white);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
}
.mobile-header .divider { width: 1px; height: 28px; background: var(--color-border); }
.mobile-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.05;
  color: var(--rav-navy);
}
.mobile-header .alert-btn {
  margin-left: auto;
  min-height: 44px;
  padding: 0 14px;
  background: var(--rav-red);
  color: var(--rav-white);
  border: 0;
  border-radius: var(--radius-md);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.stream-block {
  background: var(--rav-navy-deep);
}
.stream-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: radial-gradient(ellipse at 50% 40%, var(--rav-navy-2), var(--rav-navy-deep) 75%);
}
.stream-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.stream-empty-mobile {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--rav-white);
  font-family: var(--font-display);
  font-size: 15px;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}

.chyron-m {
  display: flex;
  align-items: stretch;
  background: var(--rav-navy);
  color: var(--rav-white);
}
.chyron-m .tag {
  background: var(--rav-red);
  color: var(--rav-white);
  padding: 8px 10px;
  display: flex; align-items: center;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  white-space: nowrap;
}
.chyron-m .title {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
  display: flex; align-items: center;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--rav-white);
  border-bottom: 1px solid var(--color-border);
}
.tabs button {
  min-height: 46px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
}
.tabs button.active { color: var(--rav-navy); border-bottom-color: var(--rav-red); }

.feed-freshness {
  padding: 4px 10px 4px 10px;
  background: var(--rav-white);
  border-bottom: 1px solid var(--color-border);
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  line-height: 1;
}
.feed-alerts { display: flex; gap: 6px; }
.feed-alert-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px 12px 4px 10px;
  min-height: 28px;
  cursor: pointer;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.feed-alert-btn .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border-strong, #b8b5c6);
  transition: background 0.15s;
}
.feed-alert-btn[aria-pressed="true"] {
  background: var(--rav-red);
  border-color: var(--rav-red);
  color: var(--rav-white);
}
.feed-alert-btn[aria-pressed="true"] .dot { background: var(--rav-white); }
.feed-m article {
  background: var(--rav-white);
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feed-m article.feed-item--flash {
  animation: feed-flash-m 3s ease-out;
}
@keyframes feed-flash-m {
  0%   { background-color: rgba(195, 0, 0, 0.18); }
  100% { background-color: var(--rav-white); }
}
.feed-m .meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.feed-m .time {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 15px;
  color: var(--rav-navy);
}
.feed-m .event {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--rav-royal-bright);
}
.feed-m .headline {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: var(--lh-snug);
  color: var(--rav-navy);
  text-transform: uppercase;
  text-decoration: none;
  display: block;
}
.feed-m .body {
  margin: 0;
  font-size: 15px;
  line-height: var(--lh-normal);
  color: var(--text-body);
}
.feed-m .byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Anonymous like/dislike bar (feed + update-detail) */
.reactions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--color-border);
}
.react-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
  background: var(--rav-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: var(--ls-wide);
  color: var(--text-muted);
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}
.react-btn svg { display: block; }
.react-btn.like.active,
.react-btn.dislike.active {
  background: var(--rav-red) !important;
  border-color: var(--rav-red-dark) !important;
  color: var(--rav-white) !important;
  box-shadow: 0 1px 3px rgba(195,0,0,0.35);
}
.react-btn.like.active svg,
.react-btn.dislike.active svg { fill: currentColor; }
.react-count { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0; }

/* Attachment sizing on mobile — pool.css isn't loaded here, so styles for
   .attachment.image / .attachment.video / .attachment.pdf live in this file. */
.attachments {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 -16px;
}
.attachment {
  display: block;
  background: var(--rav-navy-deep);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  position: relative;
}
.attachment.image img,
.attachment.video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  background: #000;
}
.attachment.pdf {
  margin: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--rav-white);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  color: var(--rav-navy);
}
.attachment .pdf-tag {
  background: var(--rav-red);
  color: var(--rav-white);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 11px;
  padding: 6px 8px;
  letter-spacing: var(--ls-wide);
  flex: none;
}
.feed-m .avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--rav-navy);
  color: var(--rav-white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 12px;
  flex: none;
}

.email-card-m {
  margin: 20px 16px 28px;
  background: var(--rav-navy);
  color: var(--rav-white);
  border-radius: var(--radius-md);
  border-top: 4px solid var(--rav-red);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.email-card-m h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: var(--lh-snug);
  text-transform: uppercase;
}

.schedule-m {
  background: var(--rav-white);
  padding: 18px 16px 8px;
  display: flex;
  flex-direction: column;
}
.schedule-m h2 {
  margin: 6px 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--rav-navy);
  text-transform: uppercase;
}
.schedule-m .row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
}
.schedule-m .source {
  padding: 12px 0 20px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--color-border);
  margin-top: 6px;
}
.schedule-m .row .t {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 15px;
  color: var(--rav-navy);
}
.schedule-m .row .title {
  font-size: 15px;
  font-weight: 600;
  color: var(--rav-navy);
  line-height: var(--lh-snug);
}
.schedule-m .row .info {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.mobile-footer {
  background: var(--rav-navy-deep);
  color: var(--rav-steel);
  padding: 24px 20px 32px;
  text-align: center;
  font-size: 12px;
}
.mobile-footer a { color: var(--rav-steel-3); }

/* Update-detail on mobile */
.update-m {
  background: var(--rav-white);
  padding: 20px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.update-m .back {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-link);
  text-decoration: none;
}
.update-m h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: var(--lh-tight);
  color: var(--rav-navy);
  text-transform: uppercase;
}
.update-m .body {
  margin: 0;
  font-size: 17px;
  line-height: var(--lh-relaxed);
  color: var(--text-body);
  white-space: pre-wrap;
}
