/* ==========================================================================
   GLOBAL DARK BASE — every front-end page's body + content goes dark.
   Enqueued site-wide by theme_scripts() (inc/general.php), after chrome-dark.css.

   Backgrounds black + main-content text light. Header/footer chrome is handled
   by chrome-dark.css; WooCommerce product bodies by product-dark.css.
   Prefixed .theme-ogp-press (every page's body class) to win over legacy.

   NOTE: components with their OWN light backgrounds (cart/checkout/account
   forms, event cards, certain Gutenberg blocks) become light "islands" and need
   per-component tuning — those are fixed as we review each page type.
   ========================================================================== */

/* ---- Backgrounds ---- */
body.theme-ogp-press { background: #000; color: #fefefe; }
.theme-ogp-press #page,
.theme-ogp-press .site-main,
.theme-ogp-press #content,
.theme-ogp-press .grid-container { background: #000; }

/* ---- Main-content text -> light (header/footer excluded; they're chrome) ---- */
.theme-ogp-press #content,
.theme-ogp-press #content p,
.theme-ogp-press #content li,
.theme-ogp-press #content h1,
.theme-ogp-press #content h2,
.theme-ogp-press #content h3,
.theme-ogp-press #content h4,
.theme-ogp-press #content h5,
.theme-ogp-press #content h6,
.theme-ogp-press #content dd,
.theme-ogp-press #content dt,
.theme-ogp-press #content td,
.theme-ogp-press #content th,
.theme-ogp-press #content label,
.theme-ogp-press #content blockquote,
.theme-ogp-press #content figcaption { color: #fefefe; }

/* ==========================================================================
   New accordion style, site-wide (Foundation .accordion). Matches the homepage
   .f26-acc look: orange-bordered rounded items, blue display-font title,
   blue fill + white title when open. 3-class selectors beat the Customizer's
   per-page accordion colours and Foundation's light defaults.
   ========================================================================== */
.theme-ogp-press .accordion { list-style: none; margin: 0 0 1.5rem; padding: 0; background: transparent; }
.theme-ogp-press .accordion > .accordion-item {
  background: transparent;
  border: 1px solid #ff5800;
  border-radius: 6px;
  margin-bottom: .75rem;
  overflow: hidden;
}
.theme-ogp-press .accordion > .accordion-item:last-child { margin-bottom: 0; }
.theme-ogp-press .accordion .accordion-title {
  display: block;
  position: relative;
  background: transparent;
  color: #0078e1;
  font-family: 'Saira Condensed', 'Pathway Gothic One', 'Oswald', sans-serif;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.1;
  padding: clamp(.8rem, 1.6vw, 1.2rem) clamp(2.6rem, 4vw, 3.2rem) clamp(.8rem, 1.6vw, 1.2rem) clamp(1rem, 2.5vw, 1.5rem);
  border: 0;
}
.theme-ogp-press .accordion .accordion-title:hover,
.theme-ogp-press .accordion .accordion-title:focus { background: transparent; color: #0078e1; }
.theme-ogp-press .accordion .accordion-item.is-active > .accordion-title,
.theme-ogp-press .accordion .accordion-item.is-active > .accordion-title:hover { background: #0078e1; color: #fff; }
.theme-ogp-press .accordion .accordion-title::before { color: currentColor; right: clamp(1rem, 2.5vw, 1.5rem); }
.theme-ogp-press .accordion .accordion-content {
  background: #0a0a0a;
  color: #fefefe;
  border: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
}
.theme-ogp-press .accordion .accordion-content p,
.theme-ogp-press .accordion .accordion-content li,
.theme-ogp-press .accordion .accordion-content td,
.theme-ogp-press .accordion .accordion-content th,
.theme-ogp-press .accordion .accordion-content a { color: #fefefe; }

/* Careers mission statement: the heading had a solid white background (a light
   callout box) that hid its now-light text. Transparent + light for the dark
   theme, keeping the orange/blue frame accents around it. */
.theme-ogp-press .mission-statement-heading { background: transparent; color: #fefefe; }

/* ==========================================================================
   Calendar (.ogp-calendar) → dark, matching the homepage calendar. The
   component is variable-driven (inline <style>), so flip its 7 vars + the two
   hardcoded light bits. The .theme-ogp-press prefix (2 classes) beats the
   component's own single-class `.ogp-calendar` inline rules. Applies site-wide
   wherever the calendar renders.
   ========================================================================== */
.theme-ogp-press .ogp-calendar {
  --ogp-ink: #fefefe;                      /* body text -> light */
  --ogp-muted: rgba(255, 255, 255, .6);    /* secondary text */
  --ogp-line: rgba(255, 255, 255, .14);    /* borders/dividers */
  --ogp-zebra: rgba(255, 255, 255, .03);   /* zebra rows */
  --ogp-accent-light: rgba(0, 120, 225, .18); /* light-blue tints -> dark-blue tint */
  color: #fefefe;
}
.theme-ogp-press .ogp-calendar .ogp-calendar-filter select {
  background: #141414;
  color: #fefefe;
  border-color: rgba(255, 255, 255, .25);
}
.theme-ogp-press .ogp-calendar .calendarInfo tbody tr:hover { background: rgba(255, 255, 255, .05); }
/* The events table inherits Foundation's white table/tbody background — dark-card
   it like the homepage calendar; the blue thead and zebra even-rows show through. */
.theme-ogp-press .ogp-calendar .calendarInfo { background: #141414; }
.theme-ogp-press .ogp-calendar .calendarInfo thead,
.theme-ogp-press .ogp-calendar .calendarInfo tbody,
.theme-ogp-press .ogp-calendar .calendarInfo td,
.theme-ogp-press .ogp-calendar .calendarMonthContainer { background: transparent; }

/* ---- News archive (.category-news): post titles were dark blue (#0067c2, from
   the Customizer, low contrast on black) and the meta had a light divider. High
   specificity (7 classes) to beat the Customizer. ---- */
.theme-ogp-press.category-news .posts__container .entry-header .entry-title,
.theme-ogp-press.category-news .posts__container .entry-header .entry-title.subtle.no-margin,
.theme-ogp-press.category-news .posts__container .entry-header .entry-title a { color: #fefefe; }
.theme-ogp-press.category-news .posts__container .entry-header .entry-title a:hover { color: #ff5800; }
.theme-ogp-press.category-news .posts__container .entry-header .entry-meta { border-bottom-color: rgba(255, 255, 255, .14); }
.theme-ogp-press.category-news .posts__container .entry-meta,
.theme-ogp-press.category-news .posts__container .entry-date,
.theme-ogp-press.category-news .posts__container .entry-meta a { color: rgba(255, 255, 255, .6); }

/* ---- Gutenberg tables (.wp-block-table) → dark site-wide. They inherit
   Foundation's white table + zebra, which hid their now-light text. Dark-card
   the table, subtle zebra, light cells; any orange <th> stays. ---- */
.theme-ogp-press #content .wp-block-table table { background: #141414; color: #fefefe; }
.theme-ogp-press #content .wp-block-table table thead,
.theme-ogp-press #content .wp-block-table table tbody,
.theme-ogp-press #content .wp-block-table table tbody tr,
.theme-ogp-press #content .wp-block-table table td { background: transparent; }
.theme-ogp-press #content .wp-block-table table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .03); }
.theme-ogp-press #content .wp-block-table table td,
.theme-ogp-press #content .wp-block-table table th { color: #fefefe; border-color: rgba(255, 255, 255, .12); }
