/* Layout specific to the ravpool.org homepage and update-detail view. */

.pool-main {
  flex: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px 24px 64px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.pool-left {
  flex: 1 1 640px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.pool-right {
  flex: 1 1 380px;
  max-width: 100%;
  min-width: 0;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 108px);
  display: flex;
  flex-direction: column;
  background: var(--rav-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.side-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 3px solid var(--rav-red);
  background: var(--rav-white);
}
.side-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 14px;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}
.side-tabs button.active {
  color: var(--rav-navy);
  border-bottom-color: var(--rav-red);
  background: var(--rav-white);
}
.side-tabs .feed-count {
  font-family: var(--font-condensed);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid var(--color-border-strong);
}
.side-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.side-panel > * { flex: 1; min-height: 0; overflow-y: auto; }
.schedule-inner {
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Hero / stream */
.hero-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero-eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text-muted);
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: var(--lh-tight);
  color: var(--rav-navy);
  text-transform: uppercase;
}
.stream-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: radial-gradient(ellipse at 50% 40%, var(--rav-navy-2), var(--rav-navy-deep) 75%);
  border: 2px solid var(--rav-navy);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stream-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.stream-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--rav-white);
  font-family: var(--font-display);
  font-size: 20px;
  text-transform: uppercase;
  padding: 20px;
  text-align: center;
}

/* Chyron under stream */
.chyron {
  background: var(--rav-navy);
  color: var(--rav-white);
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}
.chyron-tag {
  background: var(--rav-red);
  padding: 12px 18px;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  display: flex; align-items: center;
}
.chyron-title {
  flex: 1;
  min-width: 240px;
  padding: 12px 18px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  display: flex; align-items: center;
  line-height: 1.2;
}
.chyron-meta {
  padding: 12px 18px;
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 600;
  color: var(--rav-steel);
  display: flex; align-items: center;
  letter-spacing: var(--ls-wide);
}

/* Split below stream — schedule + email */
.pool-lower {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.schedule-card {
  flex: 1 1 340px;
  min-width: 0;
  background: var(--rav-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 22px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scroll-margin-top: 100px;
}
.schedule-title {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: var(--lh-snug);
  color: var(--rav-navy);
  text-transform: uppercase;
}
.schedule-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
}
.schedule-time {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 15px;
  color: var(--rav-navy);
}
.schedule-title-line {
  font-size: 15px;
  font-weight: 600;
  color: var(--rav-navy);
  line-height: var(--lh-snug);
}
.schedule-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.schedule-empty {
  padding: 20px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.schedule-source {
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--text-muted);
}

/* Email card */
.email-card {
  flex: 1 1 300px;
  min-width: 0;
  background: var(--rav-navy);
  color: var(--rav-white);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 4px solid var(--rav-red);
  scroll-margin-top: 100px;
}
.email-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: var(--lh-snug);
  text-transform: uppercase;
}
.email-card p {
  margin: 0;
  font-size: 15px;
  line-height: var(--lh-normal);
  color: var(--rav-steel);
}

/* Live updates feed */
.feed-head {
  padding: 16px 18px;
  border-bottom: 3px solid var(--rav-red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--rav-white);
}
.feed-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--rav-navy);
  text-transform: uppercase;
}
.feed-count {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}
.feed-list {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.feed-item {
  padding: 18px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feed-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.feed-time {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 15px;
  color: var(--rav-navy);
}
.feed-event {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--rav-royal-bright);
}
.feed-headline {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: var(--lh-snug);
  color: var(--rav-navy);
  text-transform: uppercase;
  text-decoration: none;
  display: block;
}
.feed-headline:hover { color: var(--rav-red); }
.feed-body {
  margin: 0;
  font-size: 15px;
  line-height: var(--lh-normal);
  color: var(--text-body);
}
.feed-quote {
  margin: 0;
  padding: 12px 14px;
  background: var(--gray-50);
  border-top: 3px solid var(--rav-red);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feed-quote-text {
  font-size: 15px;
  line-height: var(--lh-normal);
  color: var(--rav-navy);
  font-weight: 600;
}
.feed-quote-by {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}
.feed-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.feed-avatar {
  width: 28px; height: 28px;
  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: 11px;
  flex: none;
  overflow: hidden;
}
.feed-author { font-weight: 600; color: var(--rav-navy); }
.feed-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}

/* Update-detail view */
.update-main {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 72px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.update-article {
  flex: 1 1 620px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.update-back {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 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-back:hover { color: var(--rav-red); }
.update-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 48px);
  line-height: var(--lh-tight);
  color: var(--rav-navy);
  text-transform: uppercase;
}
.update-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.update-byline .avatar {
  width: 44px; height: 44px;
  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: 15px;
  flex: none;
  overflow: hidden;
}
.update-body-text {
  margin: 0;
  font-size: 19px;
  line-height: var(--lh-relaxed);
  color: var(--text-body);
  white-space: pre-wrap;
}
.update-quote {
  margin: 0;
  padding: 20px 24px;
  background: var(--rav-white);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--rav-red);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.update-quote-text {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: var(--lh-snug);
  color: var(--rav-navy);
}
.update-quote-by {
  font-family: var(--font-condensed);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Attachments — feed + detail */
.attachments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.attachments.single { grid-template-columns: 1fr; }
.attachment {
  position: relative;
  background: var(--rav-navy-deep);
  border-radius: 4px;
  overflow: hidden;
  display: block;
  color: inherit;
  text-decoration: none;
}
.attachment.image img,
.attachment.video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
}
.attachment.pdf {
  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 .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);
}
.attachment .caption {
  padding: 6px 10px;
  font-size: 12px;
  color: var(--rav-white);
  background: rgba(0,0,0,0.45);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
