/*
 * Page-design playbook styles.
 * Loaded on the pages listed in eam_core_enqueue_member_resources().
 * Refines typography and small details inside Kadence rowlayouts;
 * the rowlayouts still own structural backgrounds, columns, and spacing.
 */

/* Hide the global Kadence page-title row on these pages so our hero
 * is the first thing under the transparent header. Same approach pricing uses. */
body.page-id-1535 .kb-row-layout-id747_441210-26,
body.page-id-1536 .kb-row-layout-id747_441210-26,
body.page-id-374 .kb-row-layout-id747_441210-26,
body.page-id-371 .kb-row-layout-id747_441210-26,
body.page-id-314 .kb-row-layout-id747_441210-26,
body.page-id-373 .kb-row-layout-id747_441210-26,
body.page-id-428 .kb-row-layout-id747_441210-26,
body.page-id-370 .kb-row-layout-id747_441210-26,
body.page-id-426 .kb-row-layout-id747_441210-26,
body.page-id-872 .kb-row-layout-id747_441210-26,
body.page-id-272 .kb-row-layout-id747_441210-26,
body.page-id-1535 .entry-hero,
body.page-id-1536 .entry-hero,
body.page-id-374 .entry-hero,
body.page-id-371 .entry-hero,
body.page-id-314 .entry-hero,
body.page-id-373 .entry-hero,
body.page-id-428 .entry-hero,
body.page-id-370 .entry-hero,
body.page-id-426 .entry-hero,
body.page-id-872 .entry-hero,
body.page-id-272 .entry-hero {
  display: none !important;
}

/* === Hero typography polish ===
 * Sits inside a Kadence rowlayout that already sets the dark image bg + overlay.
 * We only style the text bits so they hit a stronger hierarchy than Kadence's
 * defaults give. */
.eam-page-hero__eyebrow {
  display: inline-block;
  /* The eyebrow is a Kadence advancedheading rendered as a block-level <div>;
   * fit-content keeps the pill hugging its text even where Kadence's own
   * block display wins the cascade, instead of stretching the full column. */
  width: fit-content;
  margin: 0 0 .9rem;
  padding: .35rem .75rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  font-family: var(--global-body-font-family, sans-serif);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--global-palette9, #fff);
}

.eam-page-hero__title {
  margin: 0 0 .9rem;
  font-family: var(--global-heading-font-family, Georgia, serif);
  font-size: clamp(2.3rem, 5vw, 3.75rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--global-palette9, #fff);
  max-width: 620px;
}

.eam-page-hero__lede {
  margin: 0;
  font-family: var(--global-body-font-family, sans-serif);
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
  max-width: 520px;
}

/* Quick-reference card on the right column of the hero */
.eam-page-hero__card {
  border-radius: 14px;
  background: var(--global-palette9, #fff);
  box-shadow: 0 30px 60px -25px rgba(10, 15, 40, .35);
}

.eam-page-hero__card-title {
  margin: 0 0 .85rem;
  font-family: var(--global-body-font-family, sans-serif);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--global-palette1, #5a64ad);
}

/* === Tier card refinement (access-levels page) ===
 * Applied via className on the Kadence column. Kadence owns bgColor/borderRadius;
 * we add interaction polish and a small icon container behind the icon. */
.eam-tier-card {
  transition: transform .25s ease, box-shadow .25s ease;
}

.eam-tier-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px -22px rgba(29, 29, 29, .25) !important;
}

.eam-tier-card .wp-block-kadence-icon {
  display: inline-flex;
  padding: .55rem;
  margin-bottom: .85rem !important;
  border-radius: 10px;
  background: rgba(90, 100, 173, .12);
}

.eam-tier-card.eam-tier-card--restricted .wp-block-kadence-icon {
  background: rgba(255, 255, 255, .12);
}

/* === Course entry refinement (course-materials page) ===
 * Same idea: Kadence column shape + our row polish. */
.eam-course-entry__meta {
  margin: 0 0 .35rem;
  font-family: var(--global-body-font-family, sans-serif);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--global-palette1, #5a64ad);
}

.eam-course-entry__resource {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem .9rem;
  margin-top: .5rem;
  background: var(--global-palette9, #fff);
  border: 1px solid rgba(29, 29, 29, .08);
  border-radius: 6px;
  font-family: var(--global-body-font-family, sans-serif);
  font-size: .9rem;
  color: var(--global-palette3, #1d1d1d);
}

.eam-course-entry__resources {
  margin-top: .5rem;
}

.eam-course-entry__resources .eam-course-entry__resource:first-child {
  margin-top: 0;
}

.eam-course-entry__resource-label {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 500;
}

.eam-course-entry__resource-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  color: var(--global-palette1, #5a64ad);
  text-decoration: none;
}

.eam-course-entry__resource-link:hover,
.eam-course-entry__resource-link:focus {
  color: var(--global-palette2, #303a8c);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eam-course-entry__resource-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: rgba(29, 29, 29, .55);
  white-space: nowrap;
}

.eam-course-entry__resource-status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c4994a;
}

.eam-course-entry__resource-status--ready {
  color: var(--global-palette1, #5a64ad);
  font-weight: 600;
}

.eam-course-entry__resource-status--ready::before {
  background: #2f9e62;
}

.eam-course-entry__resource--locked {
  background: rgba(90, 100, 173, .06);
}

.eam-course-entry__resource-status--locked::before {
  background: var(--global-palette1, #5a64ad);
}

@media (max-width: 640px) {
  .eam-course-entry__resource {
    align-items: flex-start;
    flex-direction: column;
    gap: .45rem;
  }
}

/* ============================================================
 * Course Materials — editorial hub redesign
 * ------------------------------------------------------------
 * Turns the stacked course list into a 2-up card grid with a
 * section header, an instructor line, and a "Course materials"
 * block that pins to the bottom of each card. Structure stays
 * native Kadence; this only adds layout + polish. */

/* Section header: title left, count right, with a baseline rule */
.eam-course-section-head .kt-inside-inner-col {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--global-palette3, #1d1d1d);
  padding-bottom: .7rem;
}

.eam-course-section-head__title {
  margin: 0;
  font-family: var(--global-heading-font-family, Georgia, serif);
  font-weight: 500;
  letter-spacing: -.01em;
}

.eam-course-section-head__count {
  margin: 0;
  font-family: var(--global-body-font-family, sans-serif);
  font-size: .82rem;
  letter-spacing: .04em;
}

/* 2-up grid of course cards; auto-stacks to one column when narrow */
.eam-course-grid > .kt-inside-inner-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.eam-course-grid > .kt-inside-inner-col > .wp-block-kadence-column {
  margin: 0 !important;
}

/* Each card fills its grid cell; inner column is a flex stack so the
 * materials block can sit flush at the bottom regardless of copy length */
.eam-course-entry,
.eam-course-entry > .kt-inside-inner-col {
  height: 100%;
}

.eam-course-entry > .kt-inside-inner-col {
  display: flex;
  flex-direction: column;
}

.eam-course-entry {
  transition: transform .25s ease, box-shadow .25s ease;
}

.eam-course-entry:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -20px rgba(20, 24, 50, .28) !important;
}

/* Instructor line — generic avatar glyph (deliberately not a photo) */
.eam-course-entry__instructor {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--global-body-font-family, sans-serif);
  font-weight: 700;
  font-size: .92rem;
}

.eam-course-entry__instructor::before {
  content: "";
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--global-palette1, #5a64ad)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}

/* "Course materials" sub-label — pins the materials block to the bottom */
.eam-course-entry__matlabel {
  margin-top: auto;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(29, 29, 29, .12);
  font-family: var(--global-body-font-family, sans-serif);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Image-led card thumbnail (sits at the top of each course card) */
.eam-course-entry__thumb {
  margin: 0 0 1.1rem !important;
}

.eam-course-entry__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
}

/* Featured course banner (image + dark->purple overlay, white text) */
.eam-featured__eyebrow {
  display: inline-block;
  padding: .4rem .8rem;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  font-family: var(--global-body-font-family, sans-serif);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
}

.eam-featured__title {
  font-family: var(--global-heading-font-family, Georgia, serif);
  font-weight: 700;
  letter-spacing: -.01em;
}

.eam-featured__lede {
  font-size: 1.02rem;
  opacity: .96;
}

.eam-featured__meta {
  font-weight: 600;
  letter-spacing: .03em;
  opacity: .95;
}

/* Pending callout (left-bordered note) */
.eam-pending-note {
  border-left: 3px solid var(--global-palette1, #5a64ad) !important;
}

/* EAM Conferences page: hide pre-2020 congress cards from the archive query
 * so they only appear in the text-only "Earlier congresses" list below.
 * Marker.io EAM-10: pre-2020 conferences should not have images. */
body.page-id-872 .kb-query-item.post-1594,
body.page-id-872 .kb-query-item.post-1595,
body.page-id-872 .kb-query-item.post-1596,
body.page-id-872 .kb-query-item.post-1597,
body.page-id-872 .kb-query-item.post-1598,
body.page-id-872 .kb-query-item.post-1599,
body.page-id-872 .kb-query-item.post-1600,
body.page-id-872 .kb-query-item.post-1601 {
  display: none !important;
}

/* ============================================================
 * EAM Conferences page: editorial "About the series" overview
 * ------------------------------------------------------------
 * Replaces the old 2-col intro + 4-card stat strip with one
 * centered narrative section: eyebrow + title + lede, a typographic
 * stat band (no boxes — just numerals and labels separated by
 * thin rules), and a single horizontal row of member-perk chips.
 * Designed to feel like a serious editorial page, not a marketing
 * landing strip. */
.eam-conf-overview {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--global-body-font-family, sans-serif);
}

.eam-conf-overview__head {
  margin-bottom: 3rem;
}

.eam-conf-overview__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .35rem .85rem;
  border: 1px solid rgba(90, 100, 173, .35);
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--global-palette1, #5a64ad);
  background: rgba(90, 100, 173, .06);
}

.eam-conf-overview__title {
  margin: 0 0 1.25rem;
  font-family: var(--global-heading-font-family, Georgia, serif);
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -.015em;
  font-weight: 500;
  color: var(--global-palette3, #1d1d1d);
  text-wrap: balance;
}

.eam-conf-overview__lede {
  margin: 0 auto;
  max-width: 680px;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.6;
  color: var(--global-palette4, #2d3748);
}

/* --- Stat band: typographic, no boxes --- */
.eam-conf-overview__stats {
  list-style: none;
  margin: 0 auto 3rem;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(29, 29, 29, .12);
  border-bottom: 1px solid rgba(29, 29, 29, .12);
}

.eam-conf-overview__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: 0 1rem;
  position: relative;
}

.eam-conf-overview__stat + .eam-conf-overview__stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: rgba(29, 29, 29, .12);
}

.eam-conf-overview__stat-num {
  font-family: var(--global-heading-font-family, Georgia, serif);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  color: var(--global-palette1, #5a64ad);
  letter-spacing: -.02em;
}

.eam-conf-overview__stat-label {
  font-size: .82rem;
  letter-spacing: .02em;
  line-height: 1.45;
  color: var(--global-palette4, #2d3748);
  max-width: 200px;
}

/* --- Member-perk chip row --- */
.eam-conf-overview__perks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .65rem .9rem;
}

.eam-conf-overview__perks-label {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--global-palette1, #5a64ad);
  margin-right: .25rem;
}

.eam-conf-overview__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.eam-conf-overview__chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: var(--global-palette7, #e0e7e3);
  font-size: .85rem;
  font-weight: 500;
  color: var(--global-palette3, #1d1d1d);
  line-height: 1.2;
}

.eam-conf-overview__chip-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  color: var(--global-palette1, #5a64ad);
}

/* Mobile: stack stats vertically, drop vertical dividers, keep tight rhythm */
@media (max-width: 720px) {
  .eam-conf-overview__stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }
  .eam-conf-overview__stat + .eam-conf-overview__stat::before {
    display: none;
  }
  .eam-conf-overview__stat-label {
    max-width: none;
  }
  .eam-conf-overview__perks {
    flex-direction: column;
    text-align: center;
  }
}

/* EAM Conferences page: Featured 2027 video — visible "Unmute / Mute"
 * toggle pinned to the bottom-right of the video. The native HTML5 mute
 * button is hard to spot, so this gives a clear, easily-pressed control. */
.eam-feature-video {
  position: relative;
}
.eam-feature-video__sound {
  position: absolute;
  right: 14px;
  bottom: 56px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .9rem;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 29, 29, .75);
  color: #fff;
  font-family: var(--global-body-font-family, sans-serif);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .15s ease, transform .15s ease;
}
.eam-feature-video__sound:hover {
  background: var(--global-palette1, #5a64ad);
  transform: translateY(-1px);
}
.eam-feature-video__sound:focus-visible {
  outline: 2px solid var(--global-palette9, #fff);
  outline-offset: 2px;
}
