/* ============================================================
   Calumet Radio CMS — Main Stylesheet v2
   Light, clean, boxed layout
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #2c6fad;
  --secondary:    #4a90d9;
  --accent-bg:    #e8f4fd;
  --text:         #2d3748;
  --text-light:   #5a6a7a;
  --border:       #d1dde8;
  --bg:           #edf1f5;
  --white:        #ffffff;
  --nav-bg:       #1e4d7b;
  --nav-hover:    #2c6fad;
  --success:      #28a745;
  --danger:       #dc3545;
  --warning:      #ffc107;
  --radius:       8px;
  --shadow:       0 2px 8px rgba(44,111,173,0.10);
  --shadow-lg:    0 6px 24px rgba(44,111,173,0.16);
  --box-width:    90%;
  --header-height: 300px;
}

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* =============================================
   BOXED WRAPPER — centres everything
   ============================================= */
.site-wrapper {
  max-width: var(--box-width);
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 40px rgba(0,0,0,0.12);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* box-content is only for padding, NOT max-width centering
   since the wrapper already does that */
.box-content {
  width: 100%;
  padding: 0 24px;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  width: 100%;
  min-height: var(--header-height);
  background-color: var(--nav-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  /* header is the sizing box — overlay fills it absolutely */
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,30,55,0.72) 0%,
    rgba(10,30,55,0.30) 55%,
    rgba(10,30,55,0.55) 100%
  );
  width: 100%;
  height: 100%;
  /* Use a grid: account row on top-right, branding row at bottom-left */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Top strip: account buttons pinned top-right */
.header-account-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 14px 24px 0;
  flex-wrap: wrap;
}

/* Bottom strip: site title + tagline pinned bottom-left */
.header-branding-row {
  padding: 0 24px 20px;
}

/* Legacy .header-content kept for compatibility — hidden */
.header-content { display: none; }

.site-branding {}

.site-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: block;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}
.site-title:hover { color: #d8eaff; text-decoration: none; }

.site-tagline {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  margin-top: 6px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  font-weight: 400;
}

/* Account buttons */
.welcome-msg {
  color: rgba(255,255,255,0.88);
  font-size: 0.80rem;
  white-space: nowrap;
}

.header-btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 5px;
  font-size: 0.80rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.40);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  text-decoration: none;
  white-space: nowrap;
}
.header-btn:hover {
  background: rgba(255,255,255,0.30);
  border-color: rgba(255,255,255,0.75);
  text-decoration: none;
  color: #fff;
}
.admin-btn { background: rgba(160,25,25,0.75); border-color: rgba(200,50,50,0.9); }
.admin-btn:hover { background: rgba(160,25,25,0.95); }

/* =============================================
   NAVIGATION
   ============================================= */
.site-nav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  width: 100%;
  overflow: visible;
}

.nav-inner {
  padding: 0 16px;
  display: flex;
  align-items: stretch;
  position: relative;
  width: 100%;
  overflow: visible;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.92);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  padding: 14px 0;
  font-family: inherit;
  gap: 8px;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  width: 100%;
  overflow: visible;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-item > a,
.nav-item > .nav-parent-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 10px;
  height: 46px;
  color: rgba(255,255,255,0.92);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.1px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nav-item > a:hover,
.nav-item > .nav-parent-btn:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
  text-decoration: none;
  border-bottom-color: rgba(255,255,255,0.5);
}
.nav-item.active > a {
  color: #fff;
  background: rgba(255,255,255,0.10);
  border-bottom-color: #fff;
}

.caret { font-size: 0.65em; opacity: 0.75; }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  border-radius: 0 0 var(--radius) var(--radius);
  list-style: none;
  z-index: 9999;
  overflow: visible;
}
/* Dropdowns triggered by JS .open class (click) */
.nav-item.has-dropdown.open .dropdown { display: block; }

/* Also show on CSS hover as fallback for desktop */
@media (hover: hover) and (pointer: fine) {
  .nav-item.has-dropdown:hover .dropdown { display: block; }
}

.dropdown li a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  font-size: 0.86rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s, color 0.12s, padding 0.12s;
  white-space: nowrap;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover {
  background: var(--accent-bg);
  color: var(--primary);
  text-decoration: none;
  padding-left: 22px;
}

/* =============================================
   FLASH MESSAGES
   ============================================= */
.flash-message { font-size: 0.9rem; padding: 11px 24px; border-left: 4px solid transparent; }
.flash-success { background: #d4edda; color: #155724; border-left-color: #28a745; }
.flash-error,
.flash-danger  { background: #f8d7da; color: #721c24; border-left-color: #dc3545; }
.flash-info    { background: #d1ecf1; color: #0c5460; border-left-color: #17a2b8; }
.flash-warning { background: #fff3cd; color: #856404; border-left-color: #ffc107; }

/* =============================================
   MAIN CONTENT
   ============================================= */
.site-main { flex: 1; padding: 28px 24px 52px; }
.main-content { width: 100%; }

/* =============================================
   PAGE TITLE BAR
   ============================================= */
.page-title-bar {
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-bg);
}
.page-title-bar h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--nav-bg);
  margin: 0 0 4px;
}
.breadcrumb { font-size: 0.82rem; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }

/* =============================================
   PAGE BODY (CMS content)
   ============================================= */
.page-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  line-height: 1.75;
  margin-bottom: 22px;
  overflow-x: hidden;
}
.page-body h2 {
  font-size: 1.4rem;
  color: var(--nav-bg);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-bg);
}
.page-body h3 { font-size: 1.12rem; color: var(--primary); margin: 20px 0 8px; }
.page-body h4 { font-size: 1rem; font-weight: 700; margin: 14px 0 6px; }
.page-body p  { margin-bottom: 12px; }
.page-body p:last-child { margin-bottom: 0; }
.page-body ul,
.page-body ol { margin: 0 0 12px 22px; }
.page-body li { margin-bottom: 5px; }
.page-body a  { color: var(--primary); font-weight: 500; }
.page-body strong { font-weight: 700; }
.page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.page-body table th {
  background: var(--nav-bg);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.page-body table td { padding: 9px 14px; border-bottom: 1px solid var(--border); }
.page-body table tbody tr:nth-child(odd) td { background: var(--white); }
.page-body table tbody tr:nth-child(even) td { background: var(--accent-bg); }
.page-body table tr:hover td { background: #ddeef9 !important; }

/* Mobile tables — scroll inside wrapper only */
@media (max-width: 680px) {
  .table-scroll-wrap table,
  .table-responsive table {
    width: max-content;
    min-width: 100%;
    font-size: 0.82rem;
  }
  .page-body table th { padding: 8px 10px; font-size: 0.8rem; }
  .page-body table td { padding: 7px 10px; }
}

/* =============================================
   CALLOUT CARDS
   ============================================= */
.callouts-section { margin-bottom: 24px; }

.callouts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.callout-card {
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.callout-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.callout-icon  { font-size: 1.9rem; line-height: 1; }
.callout-title { font-size: 1.05rem; font-weight: 700; color: var(--nav-bg); }
.callout-body  { font-size: 0.875rem; color: var(--text); flex: 1; white-space: pre-line; line-height: 1.55; }
.callout-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  letter-spacing: 0.3px;
  transition: background 0.18s, transform 0.15s;
}
.callout-btn:hover { background: var(--nav-bg); color: #fff; text-decoration: none; transform: translateY(-1px); }

/* =============================================
   INFO CARDS
   ============================================= */
.cards-section { margin-bottom: 24px; }
.section-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--nav-bg);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-bg);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.18s, box-shadow 0.18s;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.info-card-icon  { font-size: 2rem; margin-bottom: 10px; line-height: 1; }
.info-card-title { font-size: 0.95rem; font-weight: 700; color: var(--nav-bg); margin-bottom: 7px; }
.info-card-body  { font-size: 0.845rem; color: var(--text-light); line-height: 1.55; }
.info-card-body a { color: var(--primary); font-weight: 600; }

/* =============================================
   FORMS
   ============================================= */
.form-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  max-width: 680px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44,111,173,0.14);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group .hint    { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }
.form-required       { color: var(--danger); }
.form-check          { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; }
.form-check input    { width: auto; cursor: pointer; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: inherit;
  letter-spacing: 0.15px;
  transition: background 0.18s, transform 0.15s, box-shadow 0.15s;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; box-shadow: 0 3px 10px rgba(0,0,0,0.12); }
.btn-primary   { background: var(--primary);  color: #fff; }
.btn-primary:hover  { background: var(--nav-bg); color: #fff; }
.btn-secondary { background: #e2e8f0; color: var(--text); }
.btn-secondary:hover { background: #cbd5e0; color: var(--text); }
.btn-success   { background: var(--success);  color: #fff; }
.btn-danger    { background: var(--danger);   color: #fff; }
.btn-warning   { background: var(--warning);  color: #222; }
.btn-sm  { padding: 7px 15px; font-size: 0.84rem; }
.btn-xs  { padding: 4px 10px; font-size: 0.78rem; }

/* =============================================
   AUTH PAGES
   ============================================= */
.auth-wrap { display: flex; justify-content: center; padding: 20px 0; }
.auth-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
}
.auth-box h2 { font-size: 1.45rem; color: var(--nav-bg); margin-bottom: 22px; text-align: center; }
.auth-links  { margin-top: 18px; text-align: center; font-size: 0.88rem; color: var(--text-light); }
.auth-links a { color: var(--primary); font-weight: 500; }

/* =============================================
   MEMBERS DIRECTORY
   ============================================= */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.member-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.18s;
}
.member-card:hover { box-shadow: var(--shadow-lg); }
.member-callsign   { font-size: 1.25rem; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.member-name       { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-top: 2px; }
.member-position   { font-size: 0.8rem; color: var(--primary); background: var(--accent-bg); display: inline-block; padding: 3px 10px; border-radius: 20px; margin: 6px 0; font-weight: 500; }
.member-dmr        { font-size: 0.82rem; color: var(--text-light); }
.member-bio        { font-size: 0.875rem; color: var(--text); margin-top: 10px; border-top: 1px solid var(--border); padding-top: 10px; line-height: 1.55; }
.member-contact    { margin-top: 8px; font-size: 0.82rem; display: flex; flex-direction: column; gap: 3px; }
.member-contact a  { color: var(--primary); }

/* =============================================
   DOWNLOADS
   ============================================= */
.downloads-list { display: flex; flex-direction: column; gap: 12px; }
.download-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.18s;
}
.download-item:hover { box-shadow: var(--shadow-lg); }
.download-title { font-weight: 600; color: var(--text); }
.download-desc  { font-size: 0.85rem; color: var(--text-light); margin-top: 2px; }

/* =============================================
   DATA TABLES
   ============================================= */
.data-table-block      { margin-bottom: 24px; }
.data-table-block h3   { font-size: 1.05rem; font-weight: 700; color: var(--nav-bg); margin-bottom: 10px; }
.table-responsive      { overflow-x: auto; border-radius: var(--radius); }
.table-scroll-wrap     { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 8px; }
.data-table            { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--white); box-shadow: var(--shadow); }
.data-table th         { background: var(--nav-bg); color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; }
.data-table td         { padding: 9px 14px; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td   { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--accent-bg); }
.data-table tr:hover td { background: #ddeef9; }

/* =============================================
   ALERTS
   ============================================= */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 0.9rem; border-left: 4px solid transparent; }
.alert-info    { background: #e8f4fd; color: #1e4d7b; border-left-color: #2c6fad; }
.alert-success { background: #d4edda; color: #155724; border-left-color: #28a745; }
.alert-warning { background: #fff3cd; color: #856404; border-left-color: #ffc107; }
.alert-danger  { background: #f8d7da; color: #721c24; border-left-color: #dc3545; }

/* =============================================
   LIVE BADGE
   ============================================= */
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: var(--accent-bg);
  border: 1px solid var(--secondary); border-radius: 20px;
  font-size: 0.84rem; color: var(--primary); font-weight: 600;
  text-decoration: none; transition: background 0.18s;
}
.live-badge:hover { background: var(--secondary); color: #fff; text-decoration: none; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #e53e3e; animation: blink 1.5s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.8)} }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--nav-bg); color: rgba(255,255,255,0.82); padding: 38px 0 0; margin-top: auto; }
.footer-inner { padding: 0 24px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-col h4 { color: #fff; font-size: 0.78rem; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.9px; }
.footer-col p  { font-size: 0.875rem; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { color: rgba(255,255,255,0.68); font-size: 0.875rem; text-decoration: none; transition: color 0.15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { padding: 13px 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.42); }

/* =============================================
   PAGINATION
   ============================================= */
.pagination { display: flex; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 5px;
  font-size: 0.85rem; background: var(--white); color: var(--text); text-decoration: none;
}
.pagination a:hover { background: var(--accent-bg); border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }


/* =============================================
   HEADER RESPONSIVE TWEAKS
   ============================================= */
@media (max-width: 1100px) {
  .header-account-row { gap: 6px; padding: 10px 16px 0; }
  .header-btn { padding: 5px 11px; font-size: 0.77rem; }
  .welcome-msg { display: none; }
  .site-title { font-size: 2rem; }
  .nav-item > a, .nav-item > .nav-parent-btn { padding: 0 10px; font-size: 0.82rem; }
}

@media (max-width: 750px) {
  .header-btn { padding: 5px 10px; font-size: 0.76rem; }
  .site-title  { font-size: 1.6rem; }
  .site-tagline { font-size: 0.875rem; }
}

/* =============================================
   RESPONSIVE — TABLET (≤900px)
   ============================================= */
@media (max-width: 900px) {
  .site-wrapper { box-shadow: none; }
  .cards-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-cols  { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   RESPONSIVE — MOBILE (≤680px)
   ============================================= */
/* ── TABLET NAV (nav wraps but stays visible) ── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-inner { flex-wrap: nowrap; align-items: center; }
  .nav-list {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--nav-bg);
    border-top: 1px solid rgba(255,255,255,0.12);
    z-index: 400;
    padding-bottom: 8px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav-list.open { display: flex; }
  .nav-item { flex-direction: column; width: 100%; }
  .nav-item > a,
  .nav-item > .nav-parent-btn {
    height: auto;
    padding: 12px 20px;
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    border-bottom-color: rgba(255,255,255,0.07) !important;
    font-size: 0.9rem;
  }
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    min-width: auto;
    width: 100%;
    background: rgba(0,0,0,0.35);
    display: none;
  }
  .nav-item.open .dropdown { display: block; }
  .dropdown li a {
    color: rgba(255,255,255,0.95);
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-left: 36px;
    font-size: 0.9rem;
  }
  .dropdown li a:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    padding-left: 40px;
  }
}

/* ── MOBILE LAYOUT ── */
@media (max-width: 680px) {
  .site-title    { font-size: 1.75rem; }
  .site-tagline  { font-size: 0.85rem; }
  .header-account-row { flex-wrap: wrap; gap: 5px; padding: 8px 14px 0; }
  .header-btn { padding: 5px 10px; font-size: 0.75rem; }
  .site-main    { padding: 18px 14px 40px; }
  .page-body    { padding: 18px 16px; }
  .form-panel   { padding: 20px 16px; }
  .auth-box     { padding: 24px 18px; }
  .callouts-grid { grid-template-columns: 1fr; }
  .cards-grid    { grid-template-columns: 1fr 1fr; }
  .members-grid  { grid-template-columns: 1fr; }
  .footer-cols   { grid-template-columns: 1fr 1fr; }
  .download-item { flex-direction: column; align-items: flex-start; }

  /* Profile: single column */
  .profile-grid { grid-template-columns: 1fr !important; }

  /* Gallery filter buttons: single row */
  .gallery-filters { flex-wrap: wrap !important; }
  .gallery-filters .btn,
  .gallery-filters button,
  .gallery-filters a { white-space: nowrap; flex-shrink: 0; }
}

@media (max-width: 420px) {
  .cards-grid   { grid-template-columns: 1fr; }
  .footer-cols  { grid-template-columns: 1fr; }
  .auth-box     { padding: 20px 14px; }
}

/* =============================================
   REPEATER CARDS
   ============================================= */
.repeater-cards-section { margin-top: 28px; }

.repeater-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.repeater-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.repeater-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.repeater-card-header {
  background: var(--nav-bg);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 90px;
  justify-content: center;
}
.repeater-card-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
}
.repeater-card-icon svg { display:block; flex-shrink:0; }
.repeater-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.repeater-card-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.repeater-card-body {
  padding: 16px 20px;
  flex: 1;
}

.repeater-card-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.repeater-spec-row {
  display: grid;
  grid-template-columns: 22px 130px 1fr;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.repeater-spec-row:last-child { border-bottom: none; }

.repeater-spec-icon {
  font-size: 0.95rem;
  text-align: center;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.repeater-spec-icon svg {
  color: var(--primary);
  opacity: 1;
  flex-shrink: 0;
}
.repeater-spec-label {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.repeater-spec-value {
  color: var(--text-light);
  word-break: break-word;
}

.repeater-card-notes {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--accent-bg);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
  border-left: 3px solid var(--primary);
}

.repeater-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}
.repeater-card-footer .btn {
  gap: 6px;
}

/* Repeater cards — mobile single column */
@media (max-width: 680px) {
  .repeater-cards-grid { grid-template-columns: 1fr; }
  .repeater-spec-row { grid-template-columns: 20px 110px 1fr; gap: 6px; }
  .repeater-card-footer { flex-direction: row; flex-wrap: wrap; }
}

/* =============================================
   IMPROVED CALLOUT CARDS (like the example)
   ============================================= */
.callout-card-enhanced {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.callout-card-enhanced:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.callout-card-enhanced .callout-accent-bar {
  height: 4px;
  background: var(--primary);
}
.callout-card-enhanced .callout-inner {
  padding: 20px 22px;
  flex: 1;
}
.callout-card-enhanced .callout-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--nav-bg);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.callout-card-enhanced .callout-body {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-line;
}
.callout-card-enhanced .callout-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}
.callout-card-enhanced .callout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.18s, transform 0.15s;
}
.callout-card-enhanced .callout-btn:hover {
  background: var(--nav-bg);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}


/* Info card button */
.info-card-footer { padding-top:14px; margin-top:auto; border-top:1px solid var(--border); }
.info-card-btn { display:inline-block; padding:8px 18px; background:var(--primary); color:#fff; border-radius:5px; font-size:0.83rem; font-weight:600; text-decoration:none; transition:background 0.18s; }
.info-card-btn:hover { background:var(--secondary); color:#fff; text-decoration:none; }

/* Button inserted via page editor toolbar */
.page-btn,
#page-editor .page-btn {
  display: inline-block;
  padding: 9px 22px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 5px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 4px 2px;
  transition: background 0.15s, transform 0.1s;
  cursor: pointer;
}
.page-btn:hover,
#page-editor .page-btn:hover {
  background: var(--secondary);
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

/* =============================================
   NAV SEARCH BOX
   ============================================= */
.nav-search-form { display:flex; align-items:center; margin-left:auto; padding:6px 0; }
@media (max-width: 900px) {
  .nav-search-form {
    margin-left: auto;
    padding: 8px 0;
    flex-shrink: 0;
  }
  .nav-search-form input[type="text"] {
    width: 100px !important;
    font-size: 0.78rem !important;
  }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
  .site-nav, .site-footer, #back-to-top, #cms-admin-bar,
  .btn, .flash-message, .breadcrumb { display:none !important; }
  .site-header { background:#fff !important; color:#000 !important; min-height:auto !important; padding:10px 0 !important; }
  .site-header * { color:#000 !important; }
  .site-wrapper, .main-content, .page-content-wrap { max-width:100% !important; }
  a[href]:after { content:" (" attr(href) ")"; font-size:0.75em; color:#666; }
  a[href^="#"]:after, a[href^="javascript:"]:after { content:""; }
  body { font-size:12pt; line-height:1.5; }
  h1, h2, h3 { page-break-after:avoid; }
  img { max-width:100% !important; page-break-inside:avoid; }
  .repeater-cards-grid { grid-template-columns:1fr 1fr !important; }
}

