/*
 * Warrior to Love — supplemental component styles.
 *
 * Covers components introduced by the WordPress templates that the original
 * static stylesheet did not include (CPT listings, empty states, filters,
 * gallery, blog/search, entry content). Uses the existing brand tokens so a
 * Theme Settings colour change recolours these too.
 */

/* --- Entry content (page/post body) --- */
.entry-content {
  max-width: 760px;
  line-height: 1.7;
}
.entry-content > * + * {
  margin-top: 1.1em;
}
.entry-content h2,
.entry-content h3 {
  margin-top: 1.6em;
}
.entry-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.entry-content figure {
  margin: 1.4em 0;
}

/* --- Intentional empty states --- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--gray);
  max-width: 640px;
  margin: 16px auto;
}

/* --- Page-hero pill row --- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* --- Category filter pills (Resources) --- */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.filter-pills .pill {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.filter-pills .pill:hover {
  border-color: var(--red);
}
.filter-pills .pill.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* --- Card media + variants --- */
.card > img,
.card .wp-post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
  margin-bottom: 14px;
}
.team-card .wp-post-image {
  height: 280px;
}
.card .role {
  color: var(--red);
  font-weight: 600;
  margin: 2px 0 8px;
}
.card .pill {
  display: inline-block;
  margin: 4px 0 8px;
  padding: 3px 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--gray);
}
.event-when {
  font-weight: 600;
  color: var(--ink);
}
.event-where {
  color: var(--gray);
}

/* --- Testimonials --- */
.card.testimonial {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card.testimonial blockquote {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
}
.card.testimonial blockquote::before {
  content: "\201C";
  color: var(--red);
  font-size: 28px;
  line-height: 0;
  vertical-align: -10px;
  margin-right: 4px;
}
.card.testimonial figcaption {
  color: var(--gray);
  font-size: 15px;
}

/* --- FAQ cards --- */
.faq-card .answer {
  color: var(--ink);
  line-height: 1.6;
}
.faq-card .answer p {
  margin: 8px 0 0;
}

/* --- Credentials --- */
.card.credential p {
  color: var(--gray);
}

/* --- Gallery grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-grid figure {
  margin: 0;
}
.gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* --- Resource list --- */
.resource-list {
  display: grid;
  gap: 16px;
}
.card.resource h3 a {
  color: var(--red);
  text-decoration: none;
}
.card.resource h3 a:hover {
  text-decoration: underline;
}

/* --- Audio embed --- */
.audio {
  margin: 18px 0;
}

/* --- Pagination --- */
.pagination {
  margin-top: 36px;
  text-align: center;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}
.pagination .page-numbers.current {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* --- Search form --- */
.search-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
}
.search-form .search-field {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
}

/* --- Footer newsletter --- */
.footer-newsletter {
  margin: 14px 0;
  display: grid;
  gap: 8px;
}

/* --- Screen-reader-only text --- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Fluent Forms → brand styling (Contact, Speaking) --- */
.fluentform .ff-btn-submit {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 12px 26px !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(var(--red-rgb), 0.28);
  transition: background 0.15s ease;
}
.fluentform .ff-btn-submit:hover {
  background: var(--red2) !important;
}
.fluentform
  .ff-el-input--content
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.fluentform .ff-el-input--content textarea,
.fluentform .ff-el-input--content select {
  border-radius: 12px !important;
  border-color: var(--line) !important;
  font: inherit;
}
.fluentform .ff-el-input--content input:focus,
.fluentform .ff-el-input--content textarea:focus,
.fluentform .ff-el-input--content select:focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.15) !important;
  outline: none !important;
}

/* --- Block-editor content (Blocks Canvas template, 2026-07 pivot) --- */
/* Core block-library elements carry browser/library defaults the original
   markup (plain divs) never had — neutralize so converted pages keep parity. */
.wtl-canvas .wp-block-image,
.wtl-canvas figure.wp-block-image {
  margin: 0;
}
.wtl-canvas .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wtl-canvas .wp-block-group {
  box-sizing: border-box;
}
/* Block grammar renders kicker/pills/icon as <p> where the originals were
   <div>/<span> — restore the original look against element-level defaults. */
.page-hero p.kicker {
  color: var(--red); /* .page-hero p would otherwise win and gray it out */
}
p.kicker,
.pillrow p.pill,
p.icon,
.timeitem > p,
.list p.check {
  margin: 0;
}
/* Speaking-page portrait sits in a light .split (the original carried inline
   shadow/border overrides — tokens now live here, not inline). */
.split figure.hero-portrait {
  margin: 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
/* Welcome band: original used <span>/<small>; block grammar uses classed <p>
   (which the global `p { color:#3f4248 }` rule would otherwise darken). */
.welcome-band p.wb-title {
  margin: 0;
  display: block;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(22px, 3vw, 30px);
}
.welcome-band p.wb-sub {
  margin: 6px 0 0;
  display: block;
  color: #fff;
  opacity: 0.9;
  font-size: 15px;
  letter-spacing: 0.04em;
}
/* Dark bands: original band kickers carried inline color:#fff. */
.band p.kicker {
  color: #fff;
}
/* Story figure: Image-with-caption block replaces figure>.framed>img. */
figure.story-figure {
  margin: 0;
  display: grid;
  gap: 10px;
}
figure.story-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow);
  display: block;
}
/* Framed person photo as an Image block (figure carries .framed). */
figure.framed {
  min-height: 0;
}
figure.framed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Book hero is LIGHT: the original static site scoped these to body.book-page,
   which the WP theme never emitted (pre-existing gap — hero text rendered
   near-invisible). Scope to the hero's own class instead. */
.page-hero.book-hero h1 {
  color: var(--ink);
  margin: 0 0 18px;
}
.page-hero.book-hero p {
  color: #40444b;
  max-width: unset;
}
.page-hero.book-hero p.kicker {
  color: var(--red);
}
/* Book cover inside the block-built shell. */
.book-shell .wp-block-image {
  position: relative;
  z-index: 1;
}
.book-shell .wp-block-image img {
  max-width: 390px;
  width: 100%;
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
/* Layout stack that was an inline style in the original story split. */
.wtl-canvas .stack-22 {
  display: grid;
  gap: 22px;
}
/* --- Home hero as a Cover block (video background) --- */
.wp-block-cover.video-hero {
  padding: 0;
  min-height: min(90vh, calc(100svh - var(--header-stack)));
  height: calc(100svh - var(--header-stack));
  max-height: calc(100svh - var(--header-stack));
}
/* The Cover dim span doubles as the original .hero-overlay gradient. */
.wp-block-cover.video-hero > .wp-block-cover__background {
  opacity: 1;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(var(--red-rgb), 0.35),
      transparent 32%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.62) 42%,
      rgba(0, 0, 0, 0.32) 100%
    );
}
.wp-block-cover.video-hero > .wp-block-cover__inner-container {
  width: 100%;
  z-index: 2;
}
.video-hero p.eyebrow {
  display: inline-block;
  margin: 0;
  color: #fff;
}
.video-hero .hero-content p.lead {
  color: rgba(255, 255, 255, 0.9);
}
/* Blog Query Loop: post-template is a UL; cards live inside LIs. */
.wtl-canvas ul.wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wtl-canvas .wp-block-post-template > li {
  margin: 0;
}
.wtl-canvas .card .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
}
.wtl-canvas .card .wp-block-post-excerpt__excerpt {
  font-size: 14px;
  color: var(--gray);
}
.wtl-canvas .card .wp-block-post-featured-image img {
  width: 100%;
  border-radius: 14px;
  display: block;
}
/* Home welcome + sitemap helpers (originally inline styles). */
.wtl-canvas .section.text-center {
  text-align: center;
}
.wtl-canvas h2.statement {
  max-width: 920px;
  margin: 26px auto 0;
}
/* Team avatars: block markup wraps the img in figure.avatar — reproduce the
   original .person .avatar img treatment (96px circle) on the wrapped img. */
.person figure.avatar {
  width: 96px;
  margin: 0 0 16px;
}
.person figure.avatar img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(13, 13, 15, 0.16);
  border: 3px solid #fff;
}

/* --- Amelia booking widget (Booking) → brand styling + readability ------ */
/* Amelia paints its palette as inline CSS variables on #amelia-container,
   so overrides need !important to win the cascade. Colours derive from the
   theme tokens, so Settings → Warrior to Love → Branding recolours the
   widget along with the rest of the site (see inc/dynamic-css.php). */
#amelia-container.am-fs__wrapper {
  --am-font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    Arial, sans-serif !important;
  --am-c-primary: var(--red) !important;
  --am-c-btn-prim: var(--red) !important;
  --am-c-btn-first: var(--red) !important;
  --am-c-btn-first-op80: rgba(var(--red-rgb), 0.8) !important;
  --am-c-btn-first-op30: rgba(var(--red-rgb), 0.3) !important;
  --am-c-btn-first-op20: rgba(var(--red-rgb), 0.12) !important;
  --am-c-error: var(--red2) !important;
  --am-c-sb-bgr: var(--black) !important;
  --am-c-sb-text: #fff !important;
  --am-c-main-heading-text: var(--ink) !important;
  --am-c-main-text: var(--ink) !important;
}
/* Primary buttons re-declare the blue inline on each <button>. */
#amelia-container .am-button--primary {
  --am-c-btn-first: var(--red) !important;
  --am-c-btn-first-op80: rgba(var(--red-rgb), 0.8) !important;
  --am-c-btn-first-op30: rgba(var(--red-rgb), 0.3) !important;
  --am-c-btn-first-op20: rgba(var(--red-rgb), 0.12) !important;
}
/* The calendar re-declares its availability tints inline on its wrapper:
   init (default availability), low/high (occupancy), selected — each with
   op10–op80 alpha companions. Re-key the whole family to the brand red. */
#amelia-container .am-advsc__wrapper {
  --am-c-cal-init: var(--red) !important;
  --am-c-cal-init-text: var(--red) !important;
  --am-c-cal-init-op10: rgba(var(--red-rgb), 0.1) !important;
  --am-c-cal-init-op20: rgba(var(--red-rgb), 0.2) !important;
  --am-c-cal-init-op30: rgba(var(--red-rgb), 0.3) !important;
  --am-c-cal-init-op60: rgba(var(--red-rgb), 0.6) !important;
  --am-c-cal-low: var(--red) !important;
  --am-c-cal-low-text: var(--red) !important;
  --am-c-cal-low-op10: rgba(var(--red-rgb), 0.1) !important;
  --am-c-cal-low-op20: rgba(var(--red-rgb), 0.2) !important;
  --am-c-cal-low-op30: rgba(var(--red-rgb), 0.3) !important;
  --am-c-cal-low-op60: rgba(var(--red-rgb), 0.6) !important;
  --am-c-cal-low-op80: rgba(var(--red-rgb), 0.8) !important;
  --am-c-cal-high: var(--red) !important;
  --am-c-cal-high-text: var(--red) !important;
  --am-c-cal-high-op10: rgba(var(--red-rgb), 0.1) !important;
  --am-c-cal-high-op20: rgba(var(--red-rgb), 0.2) !important;
  --am-c-cal-high-op30: rgba(var(--red-rgb), 0.3) !important;
  --am-c-cal-high-op60: rgba(var(--red-rgb), 0.6) !important;
  --am-c-cal-high-op80: rgba(var(--red-rgb), 0.8) !important;
  --am-c-cal-selected: var(--red) !important;
  --am-c-cal-selected-text: #ffffff !important;
  --am-c-cal-selected-op80: rgba(var(--red-rgb), 0.8) !important;
}
/* Amelia's phone-input + scrollbar tints live inline on <html> and
   .am-fs__main. */
html,
#amelia-container .am-fs__main {
  --am-c-phone-primary: var(--red) !important;
  --am-c-phone-primary-op01: rgba(var(--red-rgb), 0.1) !important;
  --am-c-scroll-op30: rgba(var(--red-rgb), 0.3) !important;
  --am-c-scroll-op10: rgba(var(--red-rgb), 0.1) !important;
}
/* Dropdown poppers (service/month/year selects) teleport to <body>, outside
   #amelia-container — re-key their primaries separately. */
.el-popper.am-select-popper,
.am-select-popper {
  --am-c-primary: var(--red) !important;
  --el-color-primary: var(--red) !important;
}
/* The theme's global `p { color: #3f4248 }` leaks into the widget's dark
   sidebar (step labels rendered ~1.5:1 on navy — unreadable). Re-assert the
   widget's own sidebar text colour on everything inside it. */
#amelia-container .am-fs-sb,
#amelia-container .am-fs-sb * {
  color: var(--am-c-sb-text, #fff) !important;
}

/* Footer brand tagline: var(--gray) is only 3.85:1 against the black footer
   (WCAG needs 4.5:1 at 12px). The header instance on white passes and keeps
   var(--gray); lighten just the footer one. */
.footer .brand small {
  color: #a7abb3;
}

/* --- MailPoet footer signup → match the Fluent Forms brand styling ------ */
.footer-newsletter input[type="email"],
.footer-newsletter input[type="text"] {
  border-radius: 12px !important;
  border: 1px solid var(--line) !important;
  font: inherit;
  padding: 10px 14px !important;
}
.footer-newsletter input[type="email"]:focus,
.footer-newsletter input[type="text"]:focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(var(--red-rgb), 0.15) !important;
  outline: none !important;
}
.footer-newsletter .mailpoet_submit,
.footer-newsletter input[type="submit"] {
  background: var(--red) !important;
  border: 1px solid var(--red) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 10px 22px !important;
  font-weight: 800 !important;
  font-family: inherit !important;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(var(--red-rgb), 0.28);
  transition: background 0.15s ease;
}
.footer-newsletter .mailpoet_submit:hover,
.footer-newsletter input[type="submit"]:hover {
  background: var(--red2) !important;
}
