/**
 * Will's Trash — theme styles.
 * Only functional rules and styling for WordPress-generated markup live here.
 * Every element that exists in the design keeps its original class list.
 */

[hidden] {
  display: none !important;
}

/* WordPress core block styles add a bottom margin to figures; the design has none. */
figure {
  margin: 0;
}

/* Trust strip: keep the design's 4-item spread, and lay out any extra items
   in an even column grid instead of letting them overflow or bunch up. */
.theme-trust-row {
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

@media (min-width: 1024px) {
  .theme-trust-row--grid {
    display: grid;
    justify-content: initial;
    align-items: center;
  }
  .theme-trust-row--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .theme-trust-row--6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .theme-trust-row--7,
  .theme-trust-row--8 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .theme-trust-row--9,
  .theme-trust-row--10 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------------
   Site logos: automatic sizing (header and footer are independent)
   ------------------------------------------------------------------ */
.site-logo-img {
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.hdr .site-logo-img {
  max-width: 230px;
  max-height: 42px;
}

@media (min-width: 810px) {
  .hdr .site-logo-img {
    max-width: 260px;
    max-height: 46px;
  }
}

.hdr.scrolled .site-logo-img,
.hdr.is-solid .site-logo-img {
  height: auto;
  max-width: 210px;
  max-height: 37px;
}

@media (min-width: 810px) {
  .hdr.scrolled .site-logo-img,
  .hdr.is-solid .site-logo-img {
    max-width: 240px;
    max-height: 42px;
  }
}

.ftr .site-logo-img {
  max-width: 300px;
  max-height: 46px;
}

/* Brand text alternative to the logo image */
.site-logo-text {
  line-height: 1.15;
  display: block;
}

.hdr .site-logo-text {
  color: var(--white);
  transition: color 300ms ease;
}

.hdr.scrolled .site-logo-text,
.hdr.is-solid .site-logo-text {
  color: var(--ink);
}

.ftr .site-logo-text {
  color: var(--white);
}

/* ------------------------------------------------------------------
   Fixed header offsets
   ------------------------------------------------------------------ */
.admin-bar .hdr {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .hdr {
    top: 46px;
  }
}

.admin-bar .theme-mobile-menu {
  top: calc(64px + 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .theme-mobile-menu {
    top: calc(64px + 46px);
  }
}

/* Inner pages sit below the solid fixed header (home hero starts at 0). */
.site-main {
  padding-top: 72px;
}

@media (min-width: 810px) {
  .site-main {
    padding-top: 80px;
  }
}

@media (min-width: 1200px) {
  .site-main {
    padding-top: 88px;
  }
}

.home .site-main {
  padding-top: 0;
}

/* ------------------------------------------------------------------
   Reveal fallbacks (Customizer preview, no scripting, reduced motion)
   ------------------------------------------------------------------ */
body.is-customizer .reveal,
body.is-customizer .rise .w > span {
  opacity: 1 !important;
  transform: none !important;
}

@media (scripting: none) {
  .reveal,
  .rise .w > span {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------
   FAQ accordion panel (source sets grid-template-rows inline)
   ------------------------------------------------------------------ */
.theme-faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 400ms;
}

.theme-faq-body.is-open {
  grid-template-rows: 1fr;
}

/* ------------------------------------------------------------------
   Forms: AJAX submit state
   ------------------------------------------------------------------ */
.theme-btn-loading {
  opacity: 0.6;
  pointer-events: none;
  cursor: wait;
}

.theme-form-status {
  display: none;
}

.theme-form-status.is-visible {
  display: block;
}

/* ------------------------------------------------------------------
   Mobile menu panel
   ------------------------------------------------------------------ */
.theme-mobile-menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 64px;
  overflow-y: auto;
  background: var(--white);
}

@media (min-width: 1024px) {
  .theme-mobile-menu {
    display: none !important;
  }
}

html.theme-menu-open {
  overflow: hidden;
}

/* ------------------------------------------------------------------
   Privacy modal
   ------------------------------------------------------------------ */
.theme-modal-open {
  overflow: hidden;
}

/* ------------------------------------------------------------------
   WordPress generated markup: post/page content
   ------------------------------------------------------------------ */
.theme-entry {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

.theme-entry > * + * {
  margin-top: 1.1em;
}

.theme-entry h2,
.theme-entry h3,
.theme-entry h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 1.6em;
}

.theme-entry h2 {
  font-size: 32px;
}

.theme-entry h3 {
  font-size: 22px;
}

.theme-entry h4 {
  font-size: 19px;
}

.theme-entry a {
  color: var(--purple-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.theme-entry ul,
.theme-entry ol {
  padding-left: 1.4em;
  list-style: disc;
}

.theme-entry ol {
  list-style: decimal;
}

.theme-entry li + li {
  margin-top: 0.4em;
}

.theme-entry img {
  border-radius: 18px;
}

.theme-entry blockquote {
  border-left: 2px solid var(--lilac);
  padding-left: 1.2em;
  color: var(--muted);
}

/* WordPress screen reader helper */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--ink);
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 5px;
  top: 5px;
  z-index: 100000;
  background: var(--white);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 500;
}

/* ------------------------------------------------------------------
   404 / generic page shell
   ------------------------------------------------------------------ */
.theme-page-wrap {
  padding: 72px 20px 96px;
}

@media (min-width: 810px) {
  .theme-page-wrap {
    padding: 96px 32px 120px;
  }
}

.theme-page-content {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
}

.error404 .site-main {
  padding-top: 0;
}

.theme-page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.theme-footer-credit a {
  text-underline-offset: 2px;
}

.theme-footer-credit a:hover {
  color: var(--white);
  text-decoration: underline;
}

.theme-footer-li {
  list-style: none;
}

.theme-nav-list,
.theme-nav-list li {
  list-style: none;
  margin: 0;
  padding: 0;
}
