/* GROOGES 1.1.4 – Neon belongs to editorial categories only.
   Global controls, navigation tools and service pages use monochrome neutrals. */

:root {
  --g-ui-ink: #171717;
  --g-ui-light: #f1f1f1;
  --g-ui-line: #dedede;
  --accent: #171717; /* neutral unless a rubric/article explicitly sets --accent */
}

/* The former black upper strip is removed from server markup. No sticky overlap. */
.g-topbar { display: none !important; }
.wp-block-template-part:has(.g-header) { top: 0 !important; }
.g-header.header { top: 0 !important; }
html { scroll-padding-top: 118px; }
@media(max-width: 900px) { html { scroll-padding-top: 120px; } }

/* General header controls stay black and white, never Kunst lime. */
.g-header .g-edition > summary {
  background: #fff !important;
  color: var(--g-ui-ink) !important;
  border-color: var(--g-ui-ink) !important;
}
.g-header .g-edition > summary:hover,
.g-header .g-edition[open] > summary {
  background: var(--g-ui-ink) !important;
  color: #fff !important;
}
.g-header .g-edition-option:hover b,
.g-header .g-edition-option.is-current b { background: var(--g-ui-light); }
.g-header .g-edition > summary:focus-visible,
.g-header .g-edition-option:focus-visible,
.g-header .g-search-toggle:focus-visible,
.g-header .g-header-search input:focus-visible {
  outline-color: var(--g-ui-ink) !important;
}
.g-header .g-search-toggle:hover,
.g-header .g-search-toggle[aria-expanded="true"] {
  background: var(--g-ui-ink) !important;
  color: #fff !important;
}
.g-header .g-header-search button:hover {
  background: #555 !important;
  color: #fff !important;
}
/* Rubric links are intentionally the sole colorful part of the navigation. */

/* General chips are neutral. A named category receives its own accent. */
.g-chip { background: var(--g-ui-light) !important; color: var(--g-ui-ink) !important; }
.g-feature-slide .g-chip--category,
.g-story .g-chip--category,
.g-article .g-chip--category { background: var(--accent) !important; color: #171717 !important; }
.g-slider-heading .g-chip { background: var(--g-ui-light) !important; }

/* The controls of the feature slider are generic actions, not category markers. */
.g-feature-slide .g-slide-copy a { border-bottom-color: #fff !important; }
.g-feature-slide .g-slide-copy a span { background: #fff !important; color: #171717 !important; }
.g-feature-slide .g-slide-copy a:hover span { background: #ededed !important; }
.g-feature-slider .g-slide-count strong { color: #fff !important; }
.g-feature-slider .g-slider-dots button[aria-current="true"] {
  background: #fff !important;
  border-color: #fff !important;
}
.g-feature-slider .g-slider-buttons button:hover { background: #fff !important; color: #171717 !important; }

/* A row linking to all sections is not itself the Kunst category. */
.g-ticker { background: #fff !important; border-color: #171717 !important; }
.g-ticker .g-ticker-spark { color: #171717 !important; }
.g-ticker .g-ticker-item a {
  border-bottom: 3px solid transparent;
  padding-bottom: 3px;
  text-decoration: none !important;
}
.g-ticker .g-ticker-item a:hover,
.g-ticker .g-ticker-item a:focus-visible { border-bottom-color: var(--category); }

/* Generic headlines, buttons, link hovers and editorial manifesto are neutral. */
.g-lime { color: #171717 !important; }
.g-manifesto h2 span,
.g-manifesto .g-label { color: #fff !important; }
.g-manifesto .g-btn { background: #fff !important; color: #171717 !important; }
.g-manifesto .g-btn:hover { background: #ededed !important; }
.g-btn:hover,
.g-btn:focus-visible { background: #555 !important; color: #fff !important; }
.g-card-link:hover .g-card-title { text-decoration-color: #171717 !important; }
.g-kicker::before { background: #171717 !important; }
.g-search-form button:hover,
.search-form button:hover { background: #555 !important; color: #fff !important; }
.s-result:hover { box-shadow: inset 6px 0 #171717 !important; }
.g-page-head .g-lime,
.g-archive-head .g-lime,
.g-home-news .g-lime,
.g-home-rubrics .g-lime,
.g-missing .g-lime { color: #171717 !important; }
.wp-block-post-content a { text-decoration-color: #171717 !important; }
.g-local-avatar { color: #fff !important; }
.g-placeholder { border-left-color: #171717 !important; }

/* Category pages, named categories and their article content retain their hues. */
.g-rubric-page .g-color-dot,
.g-article .g-color-dot { color: var(--accent) !important; }
.g-story .g-story-more { border-bottom-color: #171717 !important; }
.g-article .g-copy-link:hover { background: #171717 !important; color: #fff !important; }
.g-article .g-article-content a { text-decoration-color: #171717 !important; }
.g-article .g-author-box { border-top-color: #171717 !important; }
.g-article .g-author-box a { border-bottom-color: #171717 !important; }
.g-header .g-reading-progress { background: #171717 !important; }
.g-archive .g-pagination .current,
.g-archive .g-pagination a:hover { background: #171717 !important; color: #fff !important; }

/* Footer is global: no multi-neon band and no arbitrary acid highlights. */
.g-footer .g-footer-miniheading { color: #fff !important; }
.g-footer .g-back-to-top:hover,
.g-footer .g-footer-links > a:hover,
.g-footer .g-footer-legal a:hover { color: #d0d0d0 !important; }
.g-footer-spectrum { display: none !important; }
.g-footer .g-footer-legal { border-top: 1px solid #454545; }

/* Non-category team profiles default to neutral, while profiles explicitly
   assigned a rubric continue to receive their true section color. */
.g-team .team-card { border-top-color: var(--accent, #171717); }
.g-team .team-copy .g-story-more { border-bottom-color: #171717 !important; }

@media (prefers-reduced-motion: reduce) {
  .g-edition > summary, .g-search-toggle { transition: none !important; }
}
/* Any future non-category navigation shortcut remains monochrome. */
.g-header .g-nav .g-nav-feature:hover { background: #4b4b4b !important; color: #fff !important; }
