/*
 * Groove Protocol — shared platform primitives.
 *
 * Deliberately small. The theme already carries a token set in main.css :root,
 * so this adds no new palette and no parallel design system: it holds the few
 * cross-page primitives that had no home and were previously re-implemented
 * inline per template.
 *
 * Loaded on every public page.
 */

/* -------------------------------------------------------------------------
   Accessibility primitives
   ---------------------------------------------------------------------- */

/* Visible only to assistive technology. Used for off-site link warnings and
   for naming controls whose visible label is an icon. */
.gp-visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* No skip-link styles here: the theme already ships a working .gp-skip in
   main.css targeting <main id="content">. Duplicating it would create two
   components for one job, which is the drift this consolidation exists to stop.
   Only the missing piece was added, in header.php: tabindex="-1" on <main>, so
   the jump actually moves focus rather than only the viewport. */

/* Global focus baseline. Several components define their own focus styles;
   this is the floor, so nothing focusable is ever invisible. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible{
  outline: 2px solid var(--gp-red-strong, #e75454);
  outline-offset: 2px;
}

/* Respect the OS setting rather than assuming motion is welcome. */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------------------
   Connected in Groove Protocol
   ----------------------------------------------------------------------
   The cross-entity relationship module. Reads as archive furniture, not as a
   promotion block: no cards, no imagery, no accent fills. Its job is to say
   "this thing is part of a larger body of work" and get out of the way. */

.gp-connected{
  margin: clamp(28px, 3.5vw, 48px) 0 0;
  padding-top: clamp(20px, 2.4vw, 30px);
  border-top: 1px solid var(--gp-border, rgba(255,255,255,0.08));
}

.gp-connected__title{
  margin: 0 0 clamp(16px, 2vw, 24px);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gp-text-strong, #f4f7fb);
}

.gp-connected__groups{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(20px, 2.6vw, 40px);
}

.gp-connected__kind{
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gp-text-faint, rgba(232,237,244,0.40));
}

.gp-connected__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.gp-connected__list a{
  display: block;
  color: var(--gp-text, #e8edf4);
  text-decoration: none;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--gp-hairline, rgba(255,255,255,0.06));
  transition: border-color .16s ease, color .16s ease;
}
.gp-connected__list a:hover,
.gp-connected__list a:focus-visible{
  color: #fff;
  border-bottom-color: var(--gp-red-line, rgba(210,60,60,0.34));
}

.gp-connected__num{
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gp-red, #d23c3c);
  margin-bottom: 3px;
}

.gp-connected__label{
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
}

.gp-connected__meta{
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--gp-text-soft, rgba(232,237,244,0.60));
}

@media (prefers-reduced-motion: reduce){
  .gp-connected__list a{ transition: none; }
}
