/* ============================================================================
   Commission Church Chandler — Base / reset used by production objects.
   Kept intentionally minimal; page composition lives in the Website Build.
   ============================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--cc-font-body);
  font-size: var(--cc-fs-body);
  line-height: var(--cc-lh-body);
  color: var(--cc-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

/* The hidden attribute must win over any object's own display rule. The
   browser's own [hidden] { display: none } loses to an author rule such as
   .cc-section-copy { display: flex }, so a script that sets el.hidden would
   otherwise change nothing. js/church-center-feed.js relies on this to hide a
   list and show its empty-state block. */
[hidden] {
  display: none !important;
}

/* The icon system (.cc-icon) is defined in css/icons.css. */

/* Accessible focus treatment shared across interactive objects ------------ */
.cc-btn:focus-visible,
.cc-header__nav-link:focus-visible,
.cc-header__toggle:focus-visible,
.cc-header__brand:focus-visible,
.cc-info-list__link:focus-visible {
  outline: none;
  box-shadow: var(--cc-focus-ring);
}

/* Only the elements that carry no radius of their own need one here, so the
   ring reads as a shape. .cc-btn is excluded: it owns its corner, and setting
   a radius here would square it off while focused. */
.cc-header__nav-link:focus-visible,
.cc-header__toggle:focus-visible,
.cc-header__brand:focus-visible,
.cc-info-list__link:focus-visible {
  border-radius: var(--cc-radius-sm);
}

.cc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
