/* ===================================================================
   TSM Radius Pack v1.0.6
   Property: news.tsm.org / newsletter.thesaviministries.org
   Mirrors thesaviministries.org doctrine (v61_5_271 through v61_5_292).

   v1.0.6: Removed .gate from the 8px card list. Per Santiago, the home
   "Arriving here first?" orientation strip is NOT a standalone card — it
   is a continuation of the hero. v41.122 moves it inside the 100vh hero
   as a transparent bottom strip (no rounded corners). Rounding it as a
   card was the wrong call in v1.0.5.

   v1.0.5: Widened orphan-card audit caught 3 more outermost cards
           that v1.0.4's narrower filter missed (audit regex required
           `border:` shorthand; missed `border-left:` only and
           bg-only cards):
             .legal-notice — gold left-rule callout band at top of
                             /privacy/ + /terms/ (NEW IN v41.113).
                             Carries Effective/Revised date.
             .entity-block — navy contact card at bottom of /privacy/
                             + /terms/ (NEW IN v41.113). Houses Office
                             of the Chairman address.
             .gate         — orientation "Arriving here first?" outer
                             card on home `/`. Existing structural
                             surface that predated v1.0.0 and was
                             never rounded.
           v1.0.5 audit doctrine: a card is any standalone outermost
           container with a visible background AND (border OR
           border-* side OR box-shadow OR clearly card-like name).
           Children of pack-masked grids stay sharp per Pattern 1.

   v1.0.4: Added .editorial-governance (standalone outer card carrying
           the editorial-curation institutional note on / and
           /articles/) to the standalone 8px card list. Caught by
           sitewide orphan-card audit on 2026-05-29 — card had bg +
           border but no border-radius. Codifies the doctrine that
           every outermost card on every page gets 8px on its outer
           4 corners.

   v1.0.3: Added .related-grid (article detail bottom "Continue Your
           Formation" 3-card grid) to Pattern 1 selector list. 2px
           hairline gap with navy rgba bleed-through, identical
           architecture to .dims. 15 article detail pages affected.

   v1.0.2: Added .essay-badge (article detail hero "ARTICLE | 05"
           bordered box) to callout 4px selector list. 15 article
           detail pages get the hero badge rounded.

   v1.0.1: Added .dims (home "Part of a Unified Mission" 4-card grid)
           to Pattern 1 selector list. Hairline 1px gap with gold rgba
           bleed-through, matches the adjacent-block doctrine exactly.

   DOCTRINE
     4px = small / interactive surfaces (CTAs, inputs, callouts, pill wrappers)
     8px = cards and card-grid blocks (outer mask, sharp interior)
     0px = seals, roundels, SVG icons, fullbleed heroes (not targeted here)

   ARCHITECTURE
     !important on every declaration is required because per-page inline
     <style> blocks load AFTER this pack and would otherwise silently win
     the cascade on equal specificity.

   EXCEPTION
     Form inputs use type-attribute selectors (specificity 0,1,1) without
     !important. The type-attribute outweighs typical container rules
     like .form-card > * { ... } (0,1,0), so inputs inside form cards
     still get 4px while the form card gets its 8px outer mask.

   PATTERN 1 (adjacent-block grid, hairline gap)
     .grid { border-radius:8px !important; overflow:hidden !important; }
     .grid > * { border-radius:0 !important; }

   PATTERN 2 (pill wrapper with internal divisions)
     .pill { border-radius:4px !important; overflow:hidden !important; }
     .pill > * { border-radius:0 !important; }
   =================================================================== */

/* --- CTAs (4px all corners) ---------------------------------------- */
.btn-primary,
.btn-ghost,
.nav-cta,
.nav-give,
.gate-link,
.art-sig-cta,
.hero-form button,
.sub-form button,
button[type="submit"],
input[type="submit"],
input[type="button"] {
  border-radius: 4px !important;
}

/* --- Form inputs (4px, NO !important per type-selector exception) -- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="password"],
input[type="date"],
textarea,
select {
  border-radius: 4px;
}

/* --- Form-wrapper pills (input + button as one rounded unit) ------- */
.hero-form,
.sub-form {
  border-radius: 4px !important;
  overflow: hidden !important;
}
.hero-form > *,
.sub-form > * {
  border-radius: 0 !important;
}

/* --- Language toggle pill (EN | ES | PT) --------------------------- */
.nav-lang {
  border-radius: 4px !important;
  overflow: hidden !important;
}
.nav-lang > * {
  border-radius: 0 !important;
}

/* --- Editorial / advisory / badge callouts (4px) ------------------- */
.editorial-badge,
.editorial-note,
.nl-note,
.note-box,
.sub-note,
.art-byline-tag,
.art-overline,
.essay-badge {
  border-radius: 4px !important;
}

/* --- Card grids: outer block mask (8px outer, sharp interior) ----- */
.messages-grid,
.teachings-grid,
.articles-grid,
.works-grid,
.books-grid,
.dims,
.related-grid {
  border-radius: 8px !important;
  overflow: hidden !important;
}
.messages-grid > *,
.teachings-grid > *,
.articles-grid > *,
.works-grid > *,
.books-grid > *,
.dims > *,
.related-grid > * {
  border-radius: 0 !important;
}

/* --- Standalone content photos (outside any grid mask) ------------ */
.art-hero-img,
.art-author-bio img,
.rc-thumb {
  border-radius: 8px !important;
}

/* --- Standalone outer card blocks (8px outer 4 corners) ------------
   v1.0.4: .editorial-governance — the institutional editorial-curation
   note shipped on / (home, beneath the messages catalog) and /articles/
   (beneath the 5-article grid). It is an outermost card with a visible
   background + 1px border but its own CSS shipped without
   border-radius. Doctrine: every outermost card gets 8px on its
   outer 4 corners.

   v1.0.5: .legal-notice + .entity-block + .gate — three more
   standalone outermost cards surfaced by widened audit. The first
   two carry the gold left-rule callout (top of /privacy/ + /terms/)
   and the navy contact card (bottom of same), both newly shipped in
   v41.113. .gate is the home orientation block ("Arriving here
   first?") that predated v1.0.0 and was never rounded.

   `overflow:hidden` is applied so the outer mask handles the rounding
   cleanly when the card carries a border-left rule (the rule's top/
   bottom termini ride the rounded corner rather than poking past).
   -------------------------------------------------------------------- */
.editorial-governance,
.legal-notice,
.entity-block {
  border-radius: 8px !important;
  overflow: hidden !important;
}
