
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0;
  background: #f4f4f4;
}
/* Net alert bar */

.net-alert {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: #7a0000;
  color: #ffffff;
  font-weight: 700;
  border-bottom: 3px solid #ffd700;
}

.net-alert__label {
  flex: 0 0 auto;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: #ffd700;
}

.net-alert__text {
  white-space: nowrap;
}

.net-alert__pause {
  flex: 0 0 auto;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

/* Important state – gentle pulse (no harsh blink) */
.net-alert--important {
  animation: netAlertPulse 1.2s ease-in-out infinite;
}

@keyframes netAlertPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* Scrolling text */

.net-alert__viewport {
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
}

.net-alert__track {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  min-width: max-content;
}

.net-alert--scroll .net-alert__track {
  animation: netAlertMarquee 18s linear infinite;
}

@keyframes netAlertMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Paused state stops all animation */
.net-alert--paused .net-alert__track,
.net-alert--paused {
  animation-play-state: paused;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .net-alert--important {
    animation: none;
  }

  .net-alert--scroll .net-alert__track {
    animation: none;
  }

  .net-alert__viewport {
    overflow: visible;
    white-space: normal;
  }

  .net-alert__text {
    white-space: normal;
  }
}
.ragchew-banner {
  display: flex;
  align-items: center;
  width: 100%;
  background: linear-gradient(90deg, #111827, #1f2937);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

.ragchew-banner__label {
  flex: 0 0 auto;
  padding: 12px 16px;
  background: #b91c1c;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ragchew-banner__viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.ragchew-banner__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: ragchew-marquee 70s linear infinite;
}

.ragchew-banner__track span {
  display: inline-block;
  padding: 12px 24px;
  font-size: 15px;
  line-height: 1.4;
}

.ragchew-banner:hover .ragchew-banner__track {
  animation-play-state: paused;
}
/* Static fallback list – hidden by default */
.ragchew-static {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: #e5edf7;
  border-radius: 8px;
  border: 1px solid #c5d3e6;
  color: #111827;
}

.ragchew-static h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.ragchew-static__section {
  margin-top: 0.75rem;
}

.ragchew-static__section h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: #1f2933;
}

.ragchew-static ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.92rem;
}
/* Respect prefers-reduced-motion: show static, hide scrolling banner */
@media (prefers-reduced-motion: reduce) {
  .ragchew-banner {
    display: none;
  }

  .ragchew-static {
    display: block;
  }
}
@keyframes ragchew-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.net-alert {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: #7a0000;
  color: #ffffff;
  font-weight: 700;
  border-bottom: 3px solid #ffd700;
}

.net-alert__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: #ffd700;
}

.net-alert__text {
  flex: 1 1 auto;
  font-size: 0.95rem;
}

.net-alert__pause {
  flex: 0 0 auto;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid #ffffff;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

/* “Urgent” state – gentle pulse, not hard blink */
.net-alert--important {
  animation: netAlertPulse 1.2s ease-in-out infinite;
}

@keyframes netAlertPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

/* Respect users who request reduced motion */
@media (prefers-reduced-motion: reduce) {
  .net-alert--important {
    animation: none;
  }
}

@media (max-width: 768px) {
  .ragchew-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .ragchew-banner__label {
    text-align: center;
  }

  .ragchew-banner__track span {
    font-size: 14px;
    padding: 10px 20px;
  }
}
.site-header {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: #1f2933;
  color: #fff;
}

.nav a {
  color: #fff;
  margin-left: 1rem;
  text-decoration: none;
}

.container {
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.flash {
  list-style: none;
  padding: 0.75rem;
  margin-bottom: 1rem;
  background: #e0f2fe;
  border-radius: 4px;
}

.auth-section {
  margin-top: 1.5rem;
}

.auth-section form label {
  display: block;
  margin-bottom: 0.75rem;
}

.calendar-embed iframe {
  max-width: 100%;
}
.event-list {
  list-style: none;
  padding: 0;
}

.event-list li {
  padding: 1rem;
  margin-bottom: 1rem;
  background: #f9f9f9;
  border-left: 4px solid #1f2933;
  border-radius: 4px;
}

.event-list li strong {
  font-size: 1.1rem;
  color: #1f2933;
}

.event-list li em {
  color: #666;
  font-size: 0.9rem;
}
/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1f2933 0%, #3e4c59 100%);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.hero h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2.5rem;
}

.tagline {
  font-size: 1.2rem;
  opacity: 0.9;
  margin: 0;
}

/* Intro Section */
.intro-section {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.intro-section h2 {
  color: #1f2933;
  border-bottom: 3px solid #1f2933;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* Feature Boxes */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-box {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-box h3 {
  color: #1f2933;
  margin-top: 0;
}

.btn {
  display: inline-block;
  background: #1f2933;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 1rem;
  transition: background 0.2s;
}

.btn:hover {
  background: #3e4c59;
}

/* Contact Section */
.contact-section {
  background: #e0f2fe;
  padding: 2rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.contact-section h2 {
  color: #1f2933;
  margin-top: 0;
}

.callsign {
  font-weight: bold;
  color: #1f2933;
  margin-top: 1.5rem;
  font-size: 1.1rem;
}
/* Upload Section */
.upload-section {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.upload-section input[type="file"] {
  margin-right: 1rem;
}

.upload-section button {
  background: #1f2933;
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.upload-section button:hover {
  background: #3e4c59;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.photo-name {
  padding: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}
/* Gallery delete button */
.delete-form {
  text-align: center;
  margin-top: 0.5rem;
}

.delete-btn {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.delete-btn:hover {
  background: #c82333;
}

/* Audio List */
.audio-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.audio-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.audio-item h3 {
  margin-top: 0;
  color: #1f2933;
}

.audio-item audio {
  width: 100%;
  margin-top: 0.5rem;
}

/* Subscribers List (in auth page) */
.subscribers-list {
  margin-top: 2rem;
  padding: 1rem;
  background: #f0f0f0;
  border-radius: 4px;
}

.subscribers-list h3 {
  margin-top: 0;
}

.subscribers-list ul {
  list-style: none;
  padding: 0;
}

.subscribers-list li {
  padding: 0.5rem;
  border-bottom: 1px solid #ddd;
}
/* =========================
   Ragchew Repeaters Page
   (scoped under .page-wrapper)
   ========================= */

.page-wrapper {
  margin: 0 auto;
  padding: 1.5rem 0;
}

/* Header inside the repeater page */
.page-wrapper .page-header {
  margin-bottom: 1.75rem;
}

.page-wrapper .page-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.page-wrapper .page-header p {
  margin: 0.5rem 0 0;
  color: #6b7280;
  font-size: 0.95rem;
}

/* Card + table only inside .page-wrapper */
.page-wrapper .card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.page-wrapper .card-header {
  padding: 1rem 1.4rem;
  background: radial-gradient(circle at 0 0, #4b5563 0, #111827 55%);
  color: #f9fafb;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-wrapper .card-header span {
  font-size: 0.8rem;
  opacity: 0.8;
}

.page-wrapper .card-body {
  padding: 0.25rem 0 0.75rem;
}

.page-wrapper .card-footer {
  padding: 0.75rem 1.4rem;
  font-size: 0.8rem;
  color: #6b7280;
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.page-wrapper .table-wrapper {
  width: 100%;
  overflow-x: visible;  /* no horizontal scroll */
}

/* Modern table */
.page-wrapper .nice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background-color: #ffffff;
  table-layout: auto;   /* let columns size naturally */
}


.page-wrapper .nice-table thead {
  background-color: #111827;
  color: #f9fafb;
}

.page-wrapper .nice-table th,
.page-wrapper .nice-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  white-space: normal;       /* allow wrapping */
  word-break: break-word;    /* break long bits if needed */
}


.page-wrapper .nice-table th {
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-wrapper .nice-table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.page-wrapper .nice-table tbody tr:hover {
  background-color: #e5f0ff;
}

/* Section rows */
.page-wrapper .section-row {
  background-color: #f3f4f6;
  font-weight: 600;
}

.page-wrapper .section-row td {
  border-bottom: 1px solid #d1d5db;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4b5563;
}

/* Spacer row */
.page-wrapper .section-spacer {
  height: 0.8rem;
  border-bottom: none;
  background: transparent;
}

/* Responsive tweaks only for this table */
@media (max-width: 700px) {
  .page-wrapper .page-header h1 {
    font-size: 1.6rem;
  }

  .page-wrapper .nice-table th,
  .page-wrapper .nice-table td {
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
  }

.site-footer {
  margin-top: 2rem;
  padding: 0.75rem 1rem 1.25rem;
  border-top: 1px solid #ddd;
  text-align: center;
}

.compact-counter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  color: #666;
}

.compact-counter strong {
  color: #222;
  font-weight: 600;
}

}

