/* UP — Unplug. Plug In. · Partner Hub brand chrome
   Reversed lockup (snow on forest). Shared by every co-phone-free-schools page.
   Mirrors the public-site implementation at unplugplugin.org. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=Archivo+Black&display=swap');

:root {
  /* Deep-forest variant for the partner hub. The brand-sheet primary forest
     (#1A2E1A) lives on the public site; the partner surface goes one notch
     darker so dashboards feel like a working tool. Mesa and snow are
     unchanged so accent and type punch harder. */
  --forest:       #0E1A0E;
  --forest-elev:  #142214;
  --forest-deep:  #0A130A;
  --alpine:       #7ABF7A;
  --mesa:         #D4401A;
  --snow:         #F5F0E8;
  --snow-dim:     rgba(245, 240, 232, 0.72);
  --snow-mute:    rgba(245, 240, 232, 0.42);
  --snow-faint:   rgba(245, 240, 232, 0.18);
  --rule:         rgba(245, 240, 232, 0.12);
  --rule-strong:  rgba(245, 240, 232, 0.22);

  --font-sans:    'Archivo', system-ui, -apple-system, sans-serif;
  --font-display: 'Archivo Black', 'Archivo', system-ui, sans-serif;
}

/* ─── Header (reversed: snow on forest) ─── */
.up-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 56px;
  padding: 0 clamp(14px, 2.5vw, 32px);
  background: var(--forest-deep);
  border-bottom: 1px solid var(--rule);
}
.up-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--mesa);
}

/* ─── Lockup ─── */
.up-header-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--snow);
  flex-shrink: 0;
}
.up-header-mark {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--snow);
}
.up-header-rule {
  width: 16px;
  height: 2px;
  background: var(--mesa);
  display: inline-block;
  flex-shrink: 0;
}
.up-header-tag {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 9px;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--snow);
  white-space: nowrap;
}
.up-header-divider {
  width: 1px;
  height: 22px;
  background: var(--rule-strong);
  display: inline-block;
  margin: 0 4px;
  flex-shrink: 0;
}
.up-header-eyebrow {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mesa);
  white-space: nowrap;
}

/* Compact lockup at typical laptop widths so the nav fits on one row. */
@media (max-width: 1280px) {
  .up-header-tag,
  .up-header-rule { display: none; }
  .up-header-lockup { gap: 8px; }
  .up-header-divider { margin: 0 2px; }
}

/* ─── Nav ─── */
.up-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
  flex-wrap: nowrap;
  justify-content: flex-end;
  overflow: visible;
}
.up-nav-link {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--snow-dim);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.up-nav-link:hover { color: var(--snow); }
.up-nav-link.is-current {
  color: var(--snow);
  border-bottom-color: var(--mesa);
}
.up-nav-link:focus-visible {
  outline: 2px solid var(--mesa);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ─── Coalition dropdown ─── */
.up-nav-dropdown { position: relative; }
.up-nav-dropdown > .up-nav-link::after {
  content: '\25BE';
  font-size: 9px;
  margin-left: 2px;
  opacity: 0.55;
}
.up-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: var(--forest-elev);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 4px 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 200;
}
/* Open only on explicit click (is-open) — hover trigger removed to stop the
   menu opening as the cursor crosses the nav. Keyboard users get the same
   toggle via the button. */
.up-nav-dropdown.is-open .up-nav-dropdown-menu { display: block; }
.up-nav-dropdown-menu a {
  display: block;
  padding: 9px 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--snow-dim);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.up-nav-dropdown-menu a:hover,
.up-nav-dropdown-menu a:focus-visible {
  color: var(--snow);
  background: rgba(212, 64, 26, 0.12);
  outline: none;
}
.up-nav-dropdown-menu a.is-current {
  color: var(--mesa);
}
.up-nav-dropdown-menu a.is-current::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--mesa);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* ─── Mobile ─── */
@media (max-width: 980px) {
  .up-header { height: 54px; }
  .up-nav { gap: 12px; flex-wrap: wrap; }
  .up-nav-link { font-size: 10.5px; letter-spacing: 0.1em; }
}
@media (max-width: 720px) {
  .up-header { padding: 0 16px; gap: 12px; }
  .up-header-mark { font-size: 22px; }
  .up-header-eyebrow { font-size: 9.5px; letter-spacing: 0.14em; }
  .up-nav { gap: 10px; }
  .up-nav-link { font-size: 10px; letter-spacing: 0.08em; }
}
@media (max-width: 560px) {
  .up-header-divider { display: none; }
}

/* ─── Body offset (account for fixed header) ─── */
body.has-up-header { padding-top: 56px; }
@media (max-width: 980px) { body.has-up-header { padding-top: 54px; } }

/* ─── Display heading sizing ───
   Per-page CSS commonly used clamp(32px, 4vw, 48px) which rendered at 48px
   on standard laptops — too poster-y for an internal partner tool. Tighten
   to a calmer scale and lock the weight to a real Archivo Black render. */
.page h1,
.partner h1,
main h1,
section h1,
article h1 {
  font-size: clamp(28px, 3.2vw, 40px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.015em !important;
}

/* ─── Real italic in display contexts ───
   Archivo Black has no italic glyphs, so the browser fakes italic by skewing.
   Switch to Archivo 900 italic (a real italic) wherever em/i/.em sits inside
   a display heading. */
h1 em, h1 i, h1 .em,
h2 em, h2 i, h2 .em,
h3 em, h3 i, h3 .em,
.hero em, .hero i, .hero .em,
.hero-goal-text em, .hero-goal-text i, .hero-goal-text .em {
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  font-weight: 900;
  font-style: italic;
}

/* ─── Filter pills + outline link pills — readable contrast on forest ───
   Outline pills using snow-mute / forest-elev borders were nearly invisible.
   Stronger borders + brighter text. Override per-page rules where needed. */
.tag-pill, .filter-pill, .pill-btn,
.social-link, .cap-tag, .tag,
button[class*="filter"]:not(.is-active),
button[class*="tag-"]:not(.is-active) {
  border-color: var(--rule-strong) !important;
  color: var(--snow-dim) !important;
}
.tag-pill:hover, .filter-pill:hover, .pill-btn:hover,
.social-link:hover, .cap-tag:hover, .tag:hover {
  border-color: var(--mesa) !important;
  color: var(--mesa) !important;
}

/* ─── Section eyebrows / cross-card connector captions ───
   Per-page rules used snow-mute (42% alpha) which read as ghost text.
   Bump to snow-dim for any small uppercase label that isn't already
   colored mesa.  This keeps the brand eyebrow style visible. */
.section-eyebrow,
.section-label,
.eyebrow,
.connector-label,
.card-eyebrow,
.tier-label,
.flow-text,
.card-role-label,
.connection-tag {
  color: var(--snow-dim) !important;
}

/* ─── Numbered list digits ───
   Archivo Black at large sizes overpowers body copy. Switch to Archivo 800
   (which is a real weight, not the single-weight Archivo Black face) so the
   leading digit feels strong but proportional to the body copy beside it. */
.claim-num,
.assumption-num,
.numbered .num,
.list-num,
ol.numbered > li::before {
  font-family: 'Archivo', system-ui, sans-serif !important;
  font-weight: 800 !important;
}
