/* ------------------------------------------------------------------------ */
/* ZPCS Public Registry — namespaced styles for WordPress/Astra integration */
/*                                                                          */
/* Every rule in this file is scoped beneath .zpcs-registry-app, including  */
/* the custom-property design tokens (never :root) — so nothing here can    */
/* leak onto the surrounding Astra theme, Elementor content, or any other   */
/* plugin's markup. The one deliberate exception is the single              */
/* `body.zpcs-registry-route` rule at the end of this file: the page's own  */
/* background sits on <body>, outside .zpcs-registry-app's reach, so it is  */
/* instead scoped via a body class the plugin only ever adds on its own two */
/* routes (see ZPCS_Routes::add_body_class()) — never on any other page.    */
/* Content width: templates wrap this in Astra's own .ast-container for      */
/* native padding, but that alone was NOT sufficient in production — this    */
/* custom template bypasses Astra's normal page template entirely (no        */
/* #primary/#content wrapper, no sidebar-layout body classes), so Astra's    */
/* own width/centering rules for .ast-container did not reliably apply in    */
/* this non-standard context (observed: content left-aligned in a narrow    */
/* column instead of centered). .zpcs-registry-app therefore takes explicit, */
/* self-contained control of its own max-width and centering below, so it   */
/* renders correctly regardless of exactly what the surrounding wrapper does.*/
/*                                                                          */
/* Typography deliberately inherits the theme's real, currently-active body */
/* font (font-family: inherit) rather than naming a specific external font  */
/* — naming "Bricolage Grotesque" directly previously risked a mismatch     */
/* against exactly what Astra had loaded, and as a variable font referenced */
/* by bare name at font-weight 700, risked the browser falling back to      */
/* faux-bold synthesis (a common cause of "ghosted/doubled" glyph               */
/* rendering) if the resolved instance had no true 700 weight. Headings     */
/* also explicitly neutralize text-shadow/-webkit-text-stroke, since the    */
/* site's Elementor Global Kit (confirmed present via the elementor-kit-487 */
/* body class) can apply its own sitewide heading effects that would        */
/* otherwise bleed through onto this content.                              */
/* ------------------------------------------------------------------------ */

.zpcs-registry-app {
  /* Colors (unchanged ZPCS brand palette, scoped locally instead of :root) */
  --navy: #122039;
  --navy-2: #1b2e4f;
  --green: #6ba539;
  --green-deep: #4e7e27;
  --green-bright: #7fbf3f;
  --paper: #f6f7f2;
  --paper-2: #edefe7;
  --card: #ffffff;
  --ink: #16212f;
  --muted: #5c6675;
  --line: rgba(18, 32, 57, 0.12);
  --line-strong: rgba(18, 32, 57, 0.22);
  --danger: #b3261e;
  --danger-bg: rgba(179, 38, 30, 0.1);
  --danger-line: rgba(179, 38, 30, 0.35);
  --amber: #8a6400;
  --amber-bg: rgba(184, 134, 11, 0.14);
  --amber-line: rgba(184, 134, 11, 0.35);
  --slate-blue: #3d5a80;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows — still restrained (never glassmorphism/heavy elevation), but given a
     little more presence than before so cards read clearly against the page's now-white
     background, which no longer provides natural contrast on its own. */
  --shadow-card: 0 2px 8px rgba(18, 32, 57, 0.08);
  --shadow-hover: 0 8px 20px rgba(18, 32, 57, 0.12);

  display: block;
  /* Inherit Astra's real, currently-active body font rather than naming one. */
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  /* Subtle paper tint, not flat white — individual cards (.registry-card,
     .profile-section, etc.) stay pure white so they read with real depth against
     this background, rather than blending into a uniformly white page. */
  background: var(--paper);
  /* Explicit, self-contained width + centering (matches Astra's own ~1200px content
     width) — does not depend on the surrounding .ast-container wrapper behaving any
     particular way, since that could not be relied on in this non-standard template. */
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  /* Horizontal padding is a safety net independent of the wrapper — guarantees a
     comfortable minimum gutter even at the max-width boundary. */
  padding: var(--space-6) var(--space-5) var(--space-8);
}

.zpcs-registry-app,
.zpcs-registry-app * {
  /* Must include the element itself, not just descendants — .zpcs-registry-app has its
     own width:100%/padding combination, which overflowed its container without this. */
  box-sizing: border-box;
}

.zpcs-registry-app [hidden] {
  display: none !important;
}

.zpcs-registry-app h1,
.zpcs-registry-app h2,
.zpcs-registry-app h3 {
  font-family: inherit;
  font-weight: 700;
  font-synthesis: none;
  line-height: 1.25;
  letter-spacing: normal;
  text-shadow: none;
  -webkit-text-stroke: 0;
  color: var(--ink);
  margin: 0 0 var(--space-2);
}

.zpcs-registry-app h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
}

.zpcs-registry-app a {
  color: var(--green-deep);
}

.zpcs-registry-app a:focus-visible,
.zpcs-registry-app button:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 2px;
  border-radius: 6px;
}

.zpcs-registry-app .subtitle {
  margin: 0 0 var(--space-5);
  color: var(--muted);
  max-width: 60ch;
}

.zpcs-registry-app .visually-hidden-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------- */
/* Buttons and form controls                                               */
/* ---------------------------------------------------------------------- */

.zpcs-registry-app input,
.zpcs-registry-app select,
.zpcs-registry-app textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
}

.zpcs-registry-app input:focus,
.zpcs-registry-app select:focus,
.zpcs-registry-app textarea:focus {
  outline: 3px solid var(--green-bright);
  outline-offset: 1px;
  border-color: var(--green-deep);
}

.zpcs-registry-app input:disabled,
.zpcs-registry-app select:disabled,
.zpcs-registry-app textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------------- */
/* Registration form — fieldsets, labels, checkboxes, field errors          */
/* ---------------------------------------------------------------------- */

/* Sections read as separated regions within one continuous card (a thin top border,
   generous spacing) rather than nested boxes-within-a-box — the modern "standards
   application" pattern the registration redesign calls for. Each fieldset is its own
   2-column grid so paired fields (e.g. Country | City) can sit side by side on desktop;
   .form-group--full spans both columns for fields that should stay full width. */
.zpcs-registry-app fieldset {
  border: none;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: var(--space-6) 0 0;
  margin: 0 0 var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-5);
}

.zpcs-registry-app fieldset:first-of-type {
  border-top: none;
  padding-top: 0;
}

.zpcs-registry-app legend {
  grid-column: 1 / -1;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  padding: 0;
  color: var(--navy);
}

.zpcs-registry-app .fieldset-intro {
  grid-column: 1 / -1;
  margin: var(--space-1) 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.zpcs-registry-app .form-group {
  margin-top: var(--space-4);
}

.zpcs-registry-app .form-group--full {
  grid-column: 1 / -1;
}

.zpcs-registry-app .form-group label {
  margin-top: 0;
}

.zpcs-registry-app label {
  display: block;
  margin-top: var(--space-3);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.zpcs-registry-app label.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 0;
}

.zpcs-registry-app label.checkbox input {
  width: auto;
  margin-top: 0.2rem;
}

/* Consent — an intentionally-designed panel rather than two bare checkboxes trailing off
   the end of a long form. */
.zpcs-registry-app .consent-panel {
  grid-column: 1 / -1;
  background: color-mix(in srgb, var(--green) 6%, var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.zpcs-registry-app .consent-panel label.checkbox + label.checkbox {
  margin-top: 0;
}

/* Submit — a clear final action area, separated from the fields above it. */
.zpcs-registry-app .submit-row {
  grid-column: 1 / -1;
  margin-top: var(--space-2);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

.zpcs-registry-app #zpcs-registration-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 var(--space-6);
  font-size: 1.05rem;
  box-shadow: var(--shadow-card);
}

.zpcs-registry-app #zpcs-registration-submit:hover:not(:disabled) {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.zpcs-registry-app .field-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.zpcs-registry-app #zpcs-form-status {
  min-height: 1.2rem;
  margin-top: var(--space-4);
  font-size: 0.95rem;
  color: var(--muted);
}

.zpcs-registry-app #zpcs-form-status.success {
  color: var(--green-deep);
}

.zpcs-registry-app #zpcs-form-status.error {
  color: var(--danger);
}

.zpcs-registry-app button {
  display: inline-block;
  padding: var(--space-3) var(--space-5);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--green);
  /* Dark ink text, not white — white-on-this-green fails WCAG AA contrast (~2.97:1);
     ink-on-green passes comfortably (~5.5:1). */
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.zpcs-registry-app button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--green) 75%, var(--green-deep) 25%);
}

.zpcs-registry-app button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------------- */
/* Registry introduction — a compact, restrained tinted surface (not a       */
/* marketing hero) grouping the eyebrow, heading, description, and search.  */
/* ---------------------------------------------------------------------- */

.zpcs-registry-app .registry-intro {
  background: color-mix(in srgb, var(--green) 5%, var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.zpcs-registry-app .registry-intro .profile-tag {
  margin-bottom: var(--space-2);
}

.zpcs-registry-app .registry-intro .search-form {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------------- */
/* Registration — narrower content column, form card + "What Happens Next"  */
/*                                                                          */
/* A data-entry page reads better narrower and cleaner than the Registry's  */
/* browsing pages — scoped via the compound ".zpcs-registry-app.zpcs-       */
/* registration-page" selector (only the /register/ template carries both   */
/* classes) so /registry/ and /registry/{number} keep their previously      */
/* approved 1200px width and paper-tinted background exactly as they are.   */
/* ---------------------------------------------------------------------- */

.zpcs-registry-app.zpcs-registration-page {
  max-width: 960px;
  /* Matches the body.zpcs-registration-route background below exactly, so there is no
     visible seam between the page background and this container. */
  background: #faf9f5;
}

/* A compact, non-tinted intro — no card chrome, just a small green accent rule above a
   navy heading and a short muted description, so the page opens with clear hierarchy
   instead of the Registry's tinted browsing-page intro treatment. */
.zpcs-registry-app .registration-intro {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: var(--space-7);
}

.zpcs-registry-app .registration-intro::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--green);
  margin-bottom: var(--space-4);
}

.zpcs-registry-app .registration-intro h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.4rem);
}

.zpcs-registry-app .registration-intro .subtitle {
  font-size: 1.05rem;
  margin-bottom: 0;
}

.zpcs-registry-app .registration-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2.5rem;
  margin-bottom: var(--space-6);
}

/* ---------------------------------------------------------------------- */
/* Official Verification Body page — a simple, static directory entry:      */
/* a centered logo, company name, tagline, and one external link. Width and */
/* background are scoped the same way /register/'s are — via a compound     */
/* class only this template carries — so /registry/, /registry/{number},    */
/* and /register/ are completely unaffected.                                */
/* ---------------------------------------------------------------------- */

.zpcs-registry-app.zpcs-verification-body-page {
  max-width: 1140px;
  background: #faf9f5;
}

.zpcs-registry-app .vb-page-title {
  text-align: center;
  margin-bottom: var(--space-6);
}

/* The Verification Body card is the page's sole focal point — a "premium"
   certification-programme treatment (large centered logo, name, tagline) rather than a
   plain stacked card. */
.zpcs-registry-app .vb-card--premium {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  padding: 3.5rem var(--space-6);
  margin-bottom: var(--space-6);
  text-align: center;
}

.zpcs-registry-app .vb-card__logo {
  display: block;
  /* max-height + max-width: 100% (rather than a fixed height) lets the browser scale the
     logo down proportionally on narrow viewports — a fixed height combined with a fixed
     px max-width does not shrink together, and previously overflowed the card at 375px. */
  max-height: 88px;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto var(--space-5);
}

.zpcs-registry-app .vb-card__name {
  margin: 0 0 var(--space-4);
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  color: var(--navy);
}

.zpcs-registry-app .vb-card__tagline {
  max-width: 40ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* A real <a>, styled identically to the existing <button> component, for a CTA that must
   navigate to an external site in a new tab (a <button> cannot do that on its own). */
.zpcs-registry-app a.button-link {
  display: inline-block;
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-5);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--green);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.zpcs-registry-app a.button-link:hover {
  background: color-mix(in srgb, var(--green) 75%, var(--green-deep) 25%);
}

.zpcs-registry-app .whats-next {
  background: color-mix(in srgb, var(--green) 5%, var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.zpcs-registry-app .whats-next__list {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.zpcs-registry-app .whats-next__item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.zpcs-registry-app .whats-next__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  /* --green-deep on white, not --green — verified elsewhere in this file (see the
     .badge--status-active comment) to be the accessible pairing at 4.84–13.55:1;
     --green itself fails white-text AA contrast. */
  background: var(--green-deep);
  color: #ffffff;
  line-height: 1;
  flex: 0 0 auto;
}

.zpcs-registry-app .whats-next__item h3 {
  font-size: 1rem;
  margin: 0 0 var(--space-1);
}

.zpcs-registry-app .whats-next__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------------------- */
/* Search — input and button fused into one modern search component        */
/* ---------------------------------------------------------------------- */

.zpcs-registry-app .search-form {
  display: flex;
  align-items: stretch;
  margin: var(--space-5) 0 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  background: var(--card);
  overflow: hidden;
  max-width: 640px;
}

.zpcs-registry-app .search-form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  border-radius: 0;
  padding: var(--space-3) var(--space-4);
}

.zpcs-registry-app .search-form input[type="search"]:focus {
  outline-offset: -2px;
}

.zpcs-registry-app .search-form button {
  flex: 0 0 auto;
  border-radius: 0;
  padding: var(--space-3) var(--space-5);
}

/* ---------------------------------------------------------------------- */
/* Badges — solid, high-contrast status indicators, not small outlined tags */
/* (Recognition Level vs. Recognition Status kept visually distinct so the */
/* two concepts are never confused for one another). White text on each of */
/* these solid backgrounds passes WCAG AA (verified: 4.84–13.55:1).        */
/* ---------------------------------------------------------------------- */

.zpcs-registry-app .badge {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
  color: #ffffff;
}

.zpcs-registry-app .badge--level {
  background: var(--navy-2);
}

.zpcs-registry-app .badge--status-active {
  background: var(--green-deep);
}

.zpcs-registry-app .badge--status-pending {
  background: var(--amber);
}

.zpcs-registry-app .badge--status-expired {
  background: var(--muted);
}

.zpcs-registry-app .badge--status-suspended,
.zpcs-registry-app .badge--status-withdrawn {
  background: var(--danger);
}

.zpcs-registry-app .badge--status-superseded {
  background: var(--slate-blue);
}

/* ---------------------------------------------------------------------- */
/* Registry results                                                       */
/* ---------------------------------------------------------------------- */

.zpcs-registry-app .registry-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.zpcs-registry-app .registry-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.zpcs-registry-app .registry-card:hover,
.zpcs-registry-app .registry-card:focus-visible {
  border-color: color-mix(in srgb, var(--green) 60%, transparent);
}

.zpcs-registry-app a.registry-card:hover,
.zpcs-registry-app a.registry-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.zpcs-registry-app .registry-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.zpcs-registry-app .registry-card__name {
  font-family: inherit;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.zpcs-registry-app .registry-card__badges {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.zpcs-registry-app .registry-card__details {
  /* Explicit column counts per breakpoint rather than auto-fit — auto-fit's fit-as-many
     approach could leave a lone field stranded on its own row at common desktop widths.
     Desktop: 4 columns; tablet: 2; mobile: 1 (see media queries below). */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4) var(--space-5);
  font-size: 0.9rem;
}

.zpcs-registry-app .registry-card__details dt {
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.zpcs-registry-app .registry-card__details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.zpcs-registry-app .registry-status {
  margin: var(--space-5) 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.zpcs-registry-app .registry-status.error {
  color: var(--danger);
}

/* ---------------------------------------------------------------------- */
/* Pagination                                                              */
/* ---------------------------------------------------------------------- */

.zpcs-registry-app .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  font-size: 0.9rem;
}

.zpcs-registry-app .pagination button {
  background: var(--paper-2);
  color: var(--navy-2);
  border: 1px solid var(--line-strong);
  padding: 0.5rem 1rem;
}

.zpcs-registry-app .pagination button:hover:not(:disabled) {
  background: var(--paper);
  border-color: var(--navy-2);
}

/* ---------------------------------------------------------------------- */
/* Verification profile                                                    */
/* ---------------------------------------------------------------------- */

/* Organization identity + Recognition Level/Status: the most important thing on the
   page, given its own subtly-tinted card so it reads as the primary anchor rather than
   competing on equal footing with the sections below it. */
.zpcs-registry-app .profile-header-card {
  background: color-mix(in srgb, var(--navy) 4%, var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.zpcs-registry-app .profile-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: var(--space-3);
}

.zpcs-registry-app .profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.zpcs-registry-app .profile-header__logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  border: 1px solid var(--line);
  background: var(--card);
}

.zpcs-registry-app .profile-header__name {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  overflow-wrap: anywhere;
}

.zpcs-registry-app .profile-badges {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

/* A visitor should understand level and status within 2-3 seconds — each badge gets
   its own small label above it ("Recognition Level" / "Current Status") so ENGAGED and
   ACTIVE read as clearly-named indicators, not unlabeled decoration. */
.zpcs-registry-app .profile-badge-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.zpcs-registry-app .profile-badge-group__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.zpcs-registry-app .profile-section {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-6);
}

.zpcs-registry-app .profile-section h2 {
  font-size: 1.2rem;
}

/* "About this Recognition" — the same white/shadow/radius card as every other
   .profile-section, with a touch more generous padding so admin-authored content reads
   like an executive summary rather than another plain data block. */
.zpcs-registry-app .annex-panel {
  padding: var(--space-6);
}

/* Comfortable reading width (not edge-to-edge) plus a full typographic scale for
   admin-authored rich text — headings, paragraph rhythm, list indentation, bold/italic,
   and consistently-styled links, matching the same measure already used for the
   Organization bio elsewhere on this page (#zpcs-profile-bio, max-width: 68ch). */
.zpcs-registry-app .annex-content {
  max-width: 68ch;
  line-height: 1.7;
  color: var(--ink);
}

.zpcs-registry-app .annex-content h3 {
  font-size: 1.1rem;
  margin: var(--space-5) 0 var(--space-2);
}

.zpcs-registry-app .annex-content h3:first-child {
  margin-top: 0;
}

.zpcs-registry-app .annex-content h4 {
  font-size: 1rem;
  margin: var(--space-4) 0 var(--space-2);
}

.zpcs-registry-app .annex-content p {
  margin: 0 0 var(--space-4);
}

.zpcs-registry-app .annex-content p:last-child {
  margin-bottom: 0;
}

.zpcs-registry-app .annex-content ul,
.zpcs-registry-app .annex-content ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.4em;
}

.zpcs-registry-app .annex-content li + li {
  margin-top: 0.35em;
}

.zpcs-registry-app .annex-content strong,
.zpcs-registry-app .annex-content b {
  font-weight: 700;
}

.zpcs-registry-app .annex-content em,
.zpcs-registry-app .annex-content i {
  font-style: italic;
}

.zpcs-registry-app .annex-content a {
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.zpcs-registry-app .annex-content a:hover {
  color: var(--green-bright);
}

.zpcs-registry-app .profile-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-4) var(--space-5);
  margin: 0;
}

/* Recognition Details: an explicit 4-column layout on desktop (auto-fit alone could
   leave a field stranded alone on its own row) — see media queries below for the
   tablet/mobile breakpoints. */
.zpcs-registry-app .profile-fields--four-col {
  grid-template-columns: repeat(4, 1fr);
}

.zpcs-registry-app .profile-fields dt {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.zpcs-registry-app .profile-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.zpcs-registry-app .not-found,
.zpcs-registry-app .service-error {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-7) var(--space-5);
  text-align: center;
  margin-top: var(--space-5);
}

.zpcs-registry-app .not-found a {
  color: var(--green-deep);
}

@media (max-width: 820px) {
  .zpcs-registry-app .registry-card__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .zpcs-registry-app .search-form {
    flex-direction: column;
    border-radius: var(--radius-md);
    max-width: none;
  }

  .zpcs-registry-app .search-form input[type="search"] {
    flex-basis: auto;
  }

  .zpcs-registry-app .search-form button {
    padding: var(--space-3) var(--space-4);
  }

  .zpcs-registry-app .registry-intro,
  .zpcs-registry-app .profile-header-card,
  .zpcs-registry-app .annex-panel,
  .zpcs-registry-app .whats-next {
    padding: var(--space-5);
  }

  /* Tablet: 2 columns for both the Registry card details and Recognition Details. */
  .zpcs-registry-app .registry-card__details,
  .zpcs-registry-app .profile-fields--four-col {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Tablet: What Happens Next drops to a single column — three items don't split evenly
     into two, and a single readable column is clearer than an uneven 2+1 split. */
  .zpcs-registry-app .whats-next__list {
    grid-template-columns: 1fr;
  }

  /* Tablet/mobile: registration fieldsets collapse to a single column — every
     .form-group (paired or full-width) simply stacks in source order. */
  .zpcs-registry-app fieldset {
    grid-template-columns: 1fr;
  }

  .zpcs-registry-app .registration-card {
    padding: var(--space-5);
  }

  .zpcs-registry-app .vb-card--premium {
    padding: var(--space-5);
  }
}

@media (max-width: 480px) {
  /* Mobile: 1 column. */
  .zpcs-registry-app .registry-card__details,
  .zpcs-registry-app .profile-fields--four-col {
    grid-template-columns: 1fr;
  }

  .zpcs-registry-app .profile-badges {
    gap: var(--space-4);
  }

  .zpcs-registry-app .vb-card__logo {
    max-height: 64px;
  }
}

/* The single deliberate exception to full .zpcs-registry-app namespacing, explained at
   the top of this file: overrides the page's own background, which lives on <body> and
   is otherwise outside this stylesheet's reach. "zpcs-registry-route" is added to <body>
   only on the plugin's own two routes (never elsewhere), so this can never affect any
   other page on the site. !important is deliberate and narrow here: WordPress's core
   "custom background" theme support (which Astra uses) applies its configured color via
   an inline style or an equal-specificity rule on <body> — observed in production to
   still win over a plain class selector — so only !important can reliably override it
   from an external stylesheet. This is the only !important in this file besides the
   existing [hidden] guard. */
body.zpcs-registry-route {
  background: #f6f7f2 !important;
}

/* Registration only: a cleaner, near-white background suits a data-entry form better
   than the Registry's browsing-page paper tint. Scoped via a second, register-only body
   class (see ZPCS_Routes::add_body_class()) added only on /register/, so this can never
   affect /registry/ or /registry/{number} — and defined after the rule above so it wins
   on the one page that carries both classes, purely through source order (equal
   specificity). Matches the .zpcs-registration-page container background exactly. */
body.zpcs-registration-route {
  background: #faf9f5 !important;
}

/* Same pattern again for /verification-body/ — see the two rules above. */
body.zpcs-verification-body-route {
  background: #faf9f5 !important;
}
