/* ═══════════════════════════════════════════════════════
   BAMBI'S PLACE — OPS PORTAL
   Staff-facing internal system — same soul as the public
   site but built for working, not browsing.
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400;0,600;1,400&family=DM+Mono:wght@400;500&family=Cinzel+Decorative:wght@400;700&family=Cinzel:wght@400;600&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100vw; }

:root {
  --dark:      #2a2a2a;
  --forest:    #2F6B3A;
  --canopy:    #1F4D2B;
  --moss:      #4E8F42;
  --gold:      #D9A441;
  --gold-dim:  rgba(217,164,65,0.35);
  --gold-glow: rgba(78,143,66,0.12);
  --parchment: #e0e8da;
  --cream:     #333;
  --muted:     #555;
  --border:    rgba(78,143,66,0.25);
  --glass-bg:  rgba(31,77,43,0.85);
  --glass-bg2: rgba(31,77,43,0.90);
  --surface:   rgba(78,143,66,0.15);
  --lime:      #7FBF4D;
  --fresh:     #A8D65E;
  --citrus:    #F1C94B;
  --leaf:      #4E8F42;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  color: var(--dark);
  overflow-x: hidden;
  background-color: #e0e8da;
  color: #2a2a2a;
  background-image: url('../../../assets/img/bicol-bg.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(224,232,218,0.82) 0%,
    rgba(230,236,224,0.78) 50%,
    rgba(224,232,218,0.84) 100%
  );
  z-index: 0;
  pointer-events: none;
}

/* ── HEADER ── */
.ops-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(31,77,43,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.55rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.ops-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.ops-logo {
  height: 42px;
  width: auto;
  opacity: 0.92;
  border-radius: 4px;
  filter: brightness(1.05);
}

.ops-mark {
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1;
}

.ops-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.ops-sub {
  font-family: 'DM Mono', monospace;
  font-size: 0.57rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.15rem;
  opacity: 0.8;
}

/* ── NAV (grouped dropdowns) ── */
.ops-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  flex-wrap: nowrap;
}

.dd { position: relative; }

.dd-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: rgba(232,245,224,0.7);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.dd-trigger:hover,
.dd:hover .dd-trigger {
  color: #fff;
  background: rgba(78,143,66,0.2);
  border-color: rgba(127,191,77,0.4);
}

.dd-trigger svg {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
  opacity: 0.6;
  flex-shrink: 0;
}

.dd:hover .dd-trigger svg {
  transform: rotate(180deg);
  opacity: 1;
}

.dd-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 170px;
  background: linear-gradient(160deg, #1F4D2B 0%, #2F6B3A 100%);
  border: 1px solid rgba(78,143,66,0.5);
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 200;
  overflow: hidden;
}

.dd-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.dd:hover .dd-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dd-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: rgba(232,245,224,0.75);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(78,143,66,0.08);
  transition: all 0.15s ease;
}

.dd-panel a:last-child { border-bottom: none; }

.dd-panel a:hover {
  color: #fff;
  background: rgba(127,191,77,0.12);
  padding-left: 22px;
}

.nav-divider {
  width: 1px;
  height: 24px;
  background: var(--gold-dim);
  margin: 0 4px;
  flex-shrink: 0;
}

.public-link {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  color: var(--gold);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.public-link:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
}

.public-link svg {
  width: 11px;
  height: 11px;
}

.ops-logout-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 16px;
  background: rgba(198,40,40,0.2);
  color: #E57373;
  border: 1px solid rgba(198,40,40,0.4);
  border-radius: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  z-index: 100;
}
.ops-logout-btn:hover {
  background: rgba(198,40,40,0.4);
  border-color: #E57373;
}

/* ── DEPARTMENTS BAR ── */
.dept-bar {
  background: linear-gradient(180deg, rgba(31,77,43,0.95) 0%, rgba(31,77,43,0.98) 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  position: sticky;
  top: 56px;
  z-index: 190;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.dept-label {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.dept-heading {
  display: flex;
  align-items: center;
  padding: 0 20px 0 0;
  margin-right: 16px;
  border-right: 1px solid var(--border);
  font-family: 'Cinzel', serif;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
  white-space: nowrap;
  flex-shrink: 0;
}

.dept-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow: visible;
  flex: 1;
  flex-wrap: wrap;
}


.spoke { position: relative; flex-shrink: 0; }

.spoke-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(232,245,224,0.7);
  font-family: 'Cinzel', serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  height: 100%;
}

.spoke-trigger .spoke-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  flex-shrink: 0;
}

.spoke-trigger svg {
  width: 8px;
  height: 8px;
  transition: transform 0.2s;
  opacity: 0.5;
  flex-shrink: 0;
}

.spoke-trigger:hover,
.spoke:hover .spoke-trigger {
  color: #fff;
  border-bottom-color: var(--lime);
}

.spoke:hover .spoke-trigger svg {
  transform: rotate(180deg);
  opacity: 1;
}

.spoke-panel {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 210px;
  background: linear-gradient(160deg, #1F4D2B 0%, #2F6B3A 100%);
  border: 1px solid rgba(78,143,66,0.5);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  z-index: 300;
  overflow: hidden;
}

.spoke:hover .spoke-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.spoke-panel-header {
  padding: 12px 16px 8px;
  border-bottom: 1px solid rgba(78,143,66,0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.spoke-panel-header .icon { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.spoke-panel-header .title {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 10px;
  color: #fff;
  letter-spacing: 0.05em;
}

.spoke-panel-header .subtitle {
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  color: rgba(232,245,224,0.65);
  font-style: italic;
  display: block;
  margin-top: 1px;
}

.spoke-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: rgba(232,245,224,0.75);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(78,143,66,0.06);
  transition: all 0.15s ease;
}

.spoke-panel a:last-child { border-bottom: none; }

.spoke-panel a .file-icon {
  font-size: 12px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.spoke-panel a:hover {
  color: #fff;
  background: rgba(127,191,77,0.1);
  padding-left: 20px;
}

/* Legacy flat nav (kept for compatibility) */
.nav-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232,245,224,0.7);
  text-decoration: none;
  padding: 0.3rem 0.65rem;
  border: 1px solid transparent;
  transition: all 0.2s;
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: var(--gold-glow);
}

/* ── MAIN WRAP ── */
.ops-wrap {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.8rem 6rem;
}

/* ── BADGE ── */
.badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.57rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: var(--gold);
  color: #1a0e03;
  padding: 0.22rem 0.8rem;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

/* ── HEADINGS ── */
.h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--canopy);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.h1 em { color: var(--forest); font-style: italic; }

.lead {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--cream);
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* ── CARDS — FROSTED GLASS PANELS ── */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.75rem 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(31,77,43,0.1);
}

/* Green top-edge accent line on every card */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--moss) 0%, var(--lime) 50%, transparent 100%);
  opacity: 0.7;
}

.card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--canopy);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
}

.card h3 {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 1.25rem 0 0.5rem;
  letter-spacing: 0.04em;
}

.card p {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 0.6rem;
}

.card p:last-child { margin-bottom: 0; }
.card strong { color: var(--canopy); font-weight: 600; }

.card a {
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.card a:hover { border-color: var(--moss); color: var(--moss); }

/* ── GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* ── CALLOUT ── */
.callout {
  background: rgba(78,143,66,0.1);
  border-left: 3px solid var(--lime);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  color: #333;
  border-radius: 0 2px 2px 0;
  line-height: 1.75;
}

/* ── TABLES ── */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

.table th {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.65rem 0.85rem;
  background: rgba(31,77,43,0.9);
  color: #fff;
  font-weight: 400;
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(78,143,66,0.1);
  color: #333;
  line-height: 1.55;
  vertical-align: top;
}

.table tr:hover td { background: rgba(78,143,66,0.06); }

/* ── LISTS ── */
ul, ol { padding-left: 1.4rem; }

li {
  margin-bottom: 0.4rem;
  line-height: 1.75;
  color: var(--cream);
  font-size: 0.9rem;
}

/* ── BACK LINK ── */
.back-to-wheel {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}

.back-to-wheel:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
}

/* ── MISC ── */
.muted { color: var(--muted); }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ── SECTION LABEL ── */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── STATUS PILLS ── */
.pill {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.57rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.pill-green { background: rgba(60,120,70,0.3); color: #7ecf8a; border: 1px solid rgba(60,120,70,0.5); }
.pill-gold  { background: rgba(217,164,65,0.15); color: var(--gold); border: 1px solid var(--gold-dim); }
.pill-red   { background: rgba(160,60,50,0.25); color: #e08070; border: 1px solid rgba(160,60,50,0.4); }
.pill-grey  { background: rgba(100,120,100,0.2); color: var(--muted); border: 1px solid rgba(100,120,100,0.3); }

/* ── FOOTER ── */
.ops-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 0;
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ops-footer-links a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.2rem;
  transition: color 0.2s;
}

.ops-footer-links a:hover { color: var(--gold); }

/* ── LEGACY CLASSES used by older pages ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(31,77,43,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  padding: 0.55rem 1.8rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
}

.brand {
  display: flex; align-items: center;
  gap: 0.75rem; text-decoration: none;
}

.brand img { height: 42px; width: auto; opacity: 0.92; }
.brand-mark { color: var(--gold); font-size: 1.2rem; }

.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; color: #fff;
}

.brand-sub {
  font-family: 'DM Mono', monospace;
  font-size: 0.57rem; color: var(--gold);
  letter-spacing: 0.2em; text-transform: uppercase;
}

/* ── SKIP LINK ── */
.skip { position: absolute; left: -9999px; }
.skip:focus {
  position: fixed; top: 0; left: 0;
  padding: 0.5rem 1rem;
  background: var(--gold); color: #1a0e03;
  z-index: 9999;
}

/* ── TOUCH / CLICK TOGGLE for dropdowns ── */
.dd.open .dd-panel,
.spoke.open .spoke-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dd.open .dd-trigger svg {
  transform: rotate(180deg);
  opacity: 1;
}

.dd.open .dd-trigger {
  color: #fff;
  background: rgba(78,143,66,0.2);
  border-color: rgba(127,191,77,0.4);
}

.spoke.open .spoke-trigger {
  color: #fff;
  border-bottom-color: var(--lime);
}

.spoke.open .spoke-trigger svg {
  transform: rotate(180deg);
  opacity: 1;
}

/* ── MOBILE HAMBURGER ── */
.ops-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  color: var(--gold);
  padding: 6px 10px;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── LEFT SLIDE-OUT DRAWER ── */
#drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 900;
}
#drawer-overlay.open { display: block; }

#mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: -290px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #1F4D2B 0%, #2F6B3A 40%, #3A7D48 100%);
  border-right: 1px solid var(--gold-dim);
  z-index: 950;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: left 0.3s ease;
  box-shadow: 4px 0 24px rgba(0,0,0,0.6);
}
#mobile-drawer.open { left: 0; }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--gold-dim);
}
.drawer-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--gold);
  font-weight: 700;
}
.drawer-close {
  background: none;
  border: none;
  color: rgba(232,245,224,0.6);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.drawer-section {
  border-bottom: 1px solid var(--border);
}

.drawer-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: none;
  border: none;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
}
.drawer-group-toggle::after {
  content: '+';
  font-size: 14px;
  color: rgba(232,245,224,0.5);
  transition: transform 0.2s;
}
.drawer-group-toggle.open::after {
  content: '-';
}

.drawer-group {
  display: none;
  padding: 0 0 8px;
}
.drawer-group.open { display: block; }

.drawer-group a {
  display: block;
  padding: 10px 18px 10px 24px;
  color: rgba(232,245,224,0.8);
  text-decoration: none;
  font-family: 'Lora', serif;
  font-size: 13px;
  line-height: 1.4;
  transition: background 0.15s, padding-left 0.15s;
}
.drawer-group a:hover,
.drawer-group a:active {
  background: rgba(127,191,77,0.12);
  padding-left: 28px;
  color: #fff;
}

.drawer-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 18px;
}

.drawer-farmgate {
  display: block;
  padding: 16px 18px;
  color: var(--gold);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.15s;
}
.drawer-farmgate:hover,
.drawer-farmgate:active {
  background: rgba(127,191,77,0.12);
}

.drawer-public {
  display: block;
  padding: 14px 18px;
  color: rgba(232,245,224,0.6);
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.drawer-public:hover { color: var(--gold); }

.drawer-footer { border-bottom: none; }

/* ── RESPONSIVE — TABLET ── */
@media (max-width: 960px) {
  .ops-wrap { max-width: 100%; padding: 2rem 1rem 4rem; }
  .grid { grid-template-columns: 1fr 1fr; }
  .ops-masthead { margin-left: -1rem; margin-right: -1rem; padding: 2rem 1rem 2.5rem; }
}

/* ── RESPONSIVE — MOBILE ── */
@media (max-width: 680px) {
  .ops-header { padding: 0.6rem 1rem; }
  .ops-wrap { padding: 1.5rem 0.75rem 4rem; }
  .card { padding: 1.25rem 1.1rem; }
  .nav-link { font-size: 0.55rem; padding: 0.25rem 0.5rem; }
  .h1 { font-size: 1.6rem; }
  .grid { grid-template-columns: 1fr; }
  .ops-footer { flex-direction: column; align-items: flex-start; }

  /* Hamburger visible, nav hidden — drawer replaces it */
  .ops-hamburger { display: block; }
  .ops-nav { display: none; }
  #mobile-drawer { display: block; }
  #drawer-overlay { display: none; }
  #drawer-overlay.open { display: block; }

  /* Disable hover on mobile — use .open class only for dept-bar spokes */
  .spoke:hover .spoke-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
  }
  .spoke.open .spoke-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Dept bar: horizontal scroll */
  .dept-bar { top: 48px; }

  .dept-heading { display: none; }

  .dept-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .dept-tabs::-webkit-scrollbar { display: none; }

  .dept-label { padding: 0 8px; }

  .spoke-trigger { padding: 10px 12px; font-size: 8.5px; }
  .spoke-trigger .spoke-icon { width: 16px; height: 16px; }

  /* Spoke panels: full-width bottom sheet on mobile */
  .spoke-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    min-width: 0;
    width: 100%;
    border-radius: 12px 12px 0 0;
    border: 1px solid rgba(78,143,66,0.4);
    border-bottom: none;
    max-height: 60vh;
    overflow-y: auto;
    z-index: 500;
  }

  /* Fix background zoom on mobile — fixed attachment breaks on iOS/Android */
  body {
    background-attachment: scroll;
    background-size: cover;
    background-position: center top;
  }

  .ops-masthead { min-height: 140px; padding: 1.5rem 1rem 2rem; margin: -1.5rem -1rem 1.5rem; }
}

/* ── PAGE MASTHEAD (no photo — body bg shows through) ── */
.ops-masthead {
  position: relative;
  min-height: 200px;
  background-image: none !important;
  background: transparent;
  display: flex;
  align-items: flex-end;
  padding: 2rem 2rem 2.5rem;
  margin: -2.5rem -1.8rem 2.5rem;
  overflow: hidden;
}

.ops-masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(31,77,43,0.65) 0%,
    rgba(31,77,43,0.78) 50%,
    rgba(31,77,43,0.92) 100%
  );
  z-index: 0;
}

.ops-masthead-content {
  position: relative;
  z-index: 1;
}

.ops-masthead-content .badge { margin-bottom: 0.6rem; }

.ops-masthead-content .h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

@media (max-width: 680px) {
  .ops-masthead { min-height: 180px; padding: 1.5rem 1rem 2rem; margin: -1.5rem -1rem 1.5rem; }
}
