/* The glossary hub (/glossary/, the client's [ayedu_glossary_hub] shortcode) in the site's own design: light hero like
   the traditions hubs, the site's field and pill controls in a sticky bar, the A to Z list on hairlines, the site's
   accordion and CTA panel. The glossary's own stylesheet is removed (class-legacy-glossary.php). */
html body .ayedu-glossary-wrapper { --gl-wrap: 1288px; --gl-gutter: clamp(16px, 5.3vw, 76px); }
html body .ayedu-glossary-wrapper :is(.ayedu-hero-container, .ayedu-nav-container, .ayedu-atoz-container, .ayedu-faq-container, .ayedu-bottom-cta-inner) {
  max-width: calc(var(--gl-wrap) + 2 * var(--gl-gutter)); margin-inline: auto; padding-inline: var(--gl-gutter);
}

/* Hero: breadcrumb, serif title with the sage italic accent the traditions hubs use, lead, two buttons, photo. */
html body .ayedu-glossary-wrapper .ayedu-hero-section { background: var(--ay-page); padding: 26px 0 clamp(40px, 6vw, 72px); }
html body .ayedu-glossary-wrapper .ayedu-hero-container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
html body .ayedu-glossary-wrapper .ayedu-hero-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; line-height: 1.4; color: var(--ay-ink-quiet); margin: 0 0 clamp(28px, 4vw, 48px); }
html body .ayedu-glossary-wrapper .ayedu-hero-breadcrumb a { color: var(--ay-wine); font-weight: 600; text-decoration: none; }
html body .ayedu-glossary-wrapper .ayedu-hero-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
html body .ayedu-glossary-wrapper .ayedu-hero-breadcrumb .sep { font-size: 0; color: var(--ay-ink-caption); }
html body .ayedu-glossary-wrapper .ayedu-hero-breadcrumb .sep::before { content: "·"; font-size: 14px; }
html body .ayedu-glossary-wrapper .ayedu-hero-breadcrumb .current { color: var(--ay-ink-body); }
html body .ayedu-glossary-wrapper .ayedu-hero-h1 { font-family: var(--ay-serif); font-weight: 400; font-size: clamp(38px, 4.6vw, 62px); line-height: 1.08; letter-spacing: -0.02em; color: var(--ay-ink); margin: 0 0 22px; text-wrap: balance; }
html body .ayedu-glossary-wrapper .ayedu-hero-h1 span { font-family: inherit; color: var(--ay-ink) !important; }
html body .ayedu-glossary-wrapper .ayedu-hero-h1 span + span { font-style: italic; font-weight: 600; color: var(--ay-sage) !important; }
html body .ayedu-glossary-wrapper .ayedu-hero-p { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--ay-ink-quiet); max-width: 56ch; margin: 0 0 30px; }
html body .ayedu-glossary-wrapper .ayedu-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
html body .ayedu-glossary-wrapper :is(.ayedu-btn-orange, .ayedu-btn-secondary, .ayedu-cta-white-btn) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-family: var(--ay-sans); font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ay-ease-ui), border-color .2s var(--ay-ease-ui), color .2s var(--ay-ease-ui), transform .12s var(--ay-ease-ui);
}
html body .ayedu-glossary-wrapper :is(.ayedu-btn-orange, .ayedu-cta-white-btn) { background: var(--ay-wine); color: var(--ay-white); border: 1px solid var(--ay-wine); }
html body .ayedu-glossary-wrapper :is(.ayedu-btn-orange, .ayedu-cta-white-btn):hover { background: var(--ay-wine-hover); border-color: var(--ay-wine-hover); color: var(--ay-white); }
html body .ayedu-glossary-wrapper .ayedu-btn-secondary { background: var(--ay-white); color: var(--ay-ink); border: 1px solid var(--ay-ink); }
html body .ayedu-glossary-wrapper .ayedu-btn-secondary:hover { border-color: var(--ay-wine); color: var(--ay-wine); }
html body .ayedu-glossary-wrapper :is(.ayedu-btn-orange, .ayedu-btn-secondary, .ayedu-cta-white-btn):active { transform: scale(.98); }
html body .ayedu-glossary-wrapper .ayedu-hero-card { border-radius: var(--ay-radius-card); overflow: hidden; box-shadow: var(--ay-shadow-card); aspect-ratio: 4 / 3; background: var(--ay-grey); }
html body .ayedu-glossary-wrapper .ayedu-hero-card img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Sticky bar: the site's search field, tradition pills, and the A to Z jump row. */
html body .ayedu-glossary-wrapper .ayedu-nav-section { position: sticky; top: 0 !important; z-index: 20; background: var(--ay-page) !important; border-block: 1px solid var(--ay-line); padding: 18px 0; }
html body.admin-bar .ayedu-glossary-wrapper .ayedu-nav-section { top: 32px !important; }
@media (max-width: 782px) { html body.admin-bar .ayedu-glossary-wrapper .ayedu-nav-section { top: 46px !important; } }
html body .ayedu-glossary-wrapper .ayedu-nav-container { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; grid-template-areas: "search filters" "letters letters"; gap: 14px 24px; align-items: center; }
html body .ayedu-glossary-wrapper .ayedu-search-box { grid-area: search; position: relative; }
html body .ayedu-glossary-wrapper .ayedu-search-box svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ay-ink-quiet); pointer-events: none; }
/* !important on the box: the Elementor kit styles every text input (padding, radius, border) with a longer selector. */
html body .ayedu-glossary-wrapper .ayedu-search-input { width: 100%; height: 48px !important; padding: 0 18px 0 46px !important; border: 1px solid var(--ay-field) !important; border-radius: 999px !important; background: var(--ay-white) !important; color: var(--ay-ink); font: 400 16px/1 var(--ay-sans); box-shadow: none !important; transition: border-color .2s var(--ay-ease-ui); }
html body .ayedu-glossary-wrapper .ayedu-search-input::placeholder { color: var(--ay-ink-caption); opacity: 1; }
html body .ayedu-glossary-wrapper .ayedu-search-input:hover { border-color: var(--ay-ink) !important; }
html body .ayedu-glossary-wrapper .ayedu-search-input:focus { outline: 2px solid var(--ay-magenta); outline-offset: 2px; border-color: var(--ay-ink) !important; }
html body .ayedu-glossary-wrapper .ayedu-tradition-filters { grid-area: filters; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
html body .ayedu-glossary-wrapper .ayedu-filter-pill { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #DADADA; background: var(--ay-white); color: var(--ay-ink); font: 600 14.5px/1 var(--ay-sans); cursor: pointer; transition: background-color .2s var(--ay-ease-ui), border-color .2s var(--ay-ease-ui), color .2s var(--ay-ease-ui); }
html body .ayedu-glossary-wrapper .ayedu-filter-pill:hover { border-color: var(--ay-wine); }
html body .ayedu-glossary-wrapper .ayedu-filter-pill.active { background: var(--ay-blush); border-color: var(--ay-wine); color: var(--ay-wine); }
html body .ayedu-glossary-wrapper .ayedu-alphabet-bar { grid-area: letters; display: flex; gap: 4px; justify-content: space-between; }
html body .ayedu-glossary-wrapper .ayedu-letter-pill { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border-radius: 999px; color: var(--ay-ink); font: 600 14px/1 var(--ay-sans); text-decoration: none; transition: background-color .2s var(--ay-ease-ui), color .2s var(--ay-ease-ui); }
html body .ayedu-glossary-wrapper .ayedu-letter-pill:hover { background: var(--ay-blush); color: var(--ay-wine); }
html body .ayedu-glossary-wrapper .ayedu-letter-pill.active { background: var(--ay-wine); color: var(--ay-white); }
html body .ayedu-glossary-wrapper .ayedu-letter-pill.disabled { color: #B9BCBE; pointer-events: none; }

/* A to Z: three columns of letter blocks on hairlines, serif letters, the term as an ink link with a tradition chip. */
html body .ayedu-glossary-wrapper .ayedu-atoz-section { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px); }
html body .ayedu-glossary-wrapper .ayedu-atoz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) clamp(28px, 4vw, 64px); align-items: start; }
html body .ayedu-glossary-wrapper .ayedu-letter-heading { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--ay-line); font-family: var(--ay-serif); font-size: 40px; line-height: 1; color: var(--ay-wine); }
html body .ayedu-glossary-wrapper .ayedu-letter-count { font: 600 12px/1 var(--ay-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ay-ink-caption); }
html body .ayedu-glossary-wrapper .ayedu-terms-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
html body .ayedu-glossary-wrapper .ayedu-term-item { display: flex; align-items: center; gap: 10px; min-height: 44px; }
html body .ayedu-glossary-wrapper .ayedu-term-link { color: var(--ay-ink); font-size: 18px; font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .2s var(--ay-ease-ui), background-size .25s var(--ay-ease-ui); }
html body .ayedu-glossary-wrapper .ayedu-term-link:hover { color: var(--ay-wine); background-size: 100% 1px; }
html body .ayedu-glossary-wrapper .ayedu-term-tag { padding: 4px 9px; border-radius: 999px; background: var(--ay-blush-pill); color: var(--ay-wine); font: 600 11.5px/1.2 var(--ay-sans); letter-spacing: .02em; }
html body .ayedu-glossary-wrapper .ayedu-term-item[data-cat*="muslim"] .ayedu-term-tag { background: var(--ay-sage-soft); color: var(--ay-sage-text); }
html body .ayedu-glossary-wrapper .no-results-message { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: var(--ay-ink-quiet); font-size: 18px; }

/* FAQ: the site's accordion rows. */
html body .ayedu-glossary-wrapper .ayedu-faq-section { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--ay-line); }
html body .ayedu-glossary-wrapper .ayedu-faq-container { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
html body .ayedu-glossary-wrapper .ayedu-section-title h2 { font-family: var(--ay-serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.015em; color: var(--ay-ink); margin: 0 0 14px; }
html body .ayedu-glossary-wrapper .ayedu-section-title p { font-size: 17px; line-height: 1.6; color: var(--ay-ink-quiet); margin: 0; max-width: 40ch; }
html body .ayedu-glossary-wrapper .ayedu-faq-list { border-top: 1px solid var(--ay-line); }
html body .ayedu-glossary-wrapper .ayedu-faq-item { border-bottom: 1px solid var(--ay-line); }
html body .ayedu-glossary-wrapper .ayedu-faq-question { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 18px 0; cursor: pointer; font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--ay-ink); }
html body .ayedu-glossary-wrapper .ayedu-faq-question:hover { color: var(--ay-wine); }
html body .ayedu-glossary-wrapper .ayedu-faq-icon { flex: 0 0 32px; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; border: 1px solid #DADADA; font-size: 20px; font-weight: 400; line-height: 1; color: var(--ay-ink); transition: transform .25s var(--ay-ease-ui), background-color .2s var(--ay-ease-ui); }
html body .ayedu-glossary-wrapper .ayedu-faq-item.active .ayedu-faq-icon { transform: rotate(45deg); background: var(--ay-blush); border-color: var(--ay-blush); color: var(--ay-wine); }
html body .ayedu-glossary-wrapper .ayedu-faq-answer { padding: 0 52px 22px 0; font-size: 17px; line-height: 1.65; color: var(--ay-ink-quiet); }

/* Closing panel: the blush CTA panel the blog ends with. */
html body .ayedu-glossary-wrapper .ayedu-bottom-cta { padding: 0 0 clamp(56px, 7vw, 96px); }
html body .ayedu-glossary-wrapper .ayedu-bottom-cta-inner { position: relative; }
html body .ayedu-glossary-wrapper .ayedu-bottom-cta-inner::before { content: ""; position: absolute; inset: 0 var(--gl-gutter); z-index: 0; background: var(--ay-blush); border-radius: var(--ay-radius-card); }
html body .ayedu-glossary-wrapper .ayedu-bottom-cta-inner > * { position: relative; z-index: 1; }
html body .ayedu-glossary-wrapper .ayedu-bottom-cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title btn" "text btn"; column-gap: 32px; align-items: center; padding-block: clamp(28px, 4vw, 44px); }
html body .ayedu-glossary-wrapper .ayedu-bottom-cta-inner h2 { grid-area: title; margin: 0 0 8px; padding-left: clamp(24px, 3vw, 44px); font-family: var(--ay-serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.01em; color: var(--ay-ink); }
html body .ayedu-glossary-wrapper .ayedu-bottom-cta-inner p { grid-area: text; margin: 0; padding-left: clamp(24px, 3vw, 44px); font-size: 16.5px; line-height: 1.55; color: var(--ay-ink-tint); max-width: 62ch; }
html body .ayedu-glossary-wrapper .ayedu-bottom-cta-inner .ayedu-cta-white-btn { grid-area: btn; margin-right: clamp(24px, 3vw, 44px); }

@media (max-width: 1024px) {
  html body .ayedu-glossary-wrapper .ayedu-atoz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body .ayedu-glossary-wrapper .ayedu-faq-container { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  html body .ayedu-glossary-wrapper .ayedu-hero-container { grid-template-columns: 1fr; }
  html body .ayedu-glossary-wrapper .ayedu-hero-section { padding-top: 20px; }
  html body .ayedu-glossary-wrapper .ayedu-hero-card { aspect-ratio: 16 / 10; }
  /* On a phone the three rows would cover a quarter of the screen, so the bar scrolls with the page. */
  html body .ayedu-glossary-wrapper .ayedu-nav-section { position: static; }
  html body .ayedu-glossary-wrapper .ayedu-nav-container { grid-template-columns: 1fr; grid-template-areas: "search" "filters" "letters"; gap: 12px; }
  html body .ayedu-glossary-wrapper .ayedu-tradition-filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gl-gutter)); padding-inline: var(--gl-gutter); }
  html body .ayedu-glossary-wrapper .ayedu-tradition-filters .ayedu-filter-pill { flex: 0 0 auto; }
  html body .ayedu-glossary-wrapper .ayedu-alphabet-bar { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gl-gutter)); padding-inline: var(--gl-gutter); }
  html body .ayedu-glossary-wrapper :is(.ayedu-tradition-filters, .ayedu-alphabet-bar)::-webkit-scrollbar { display: none; }
  html body .ayedu-glossary-wrapper .ayedu-letter-pill { min-width: 40px; height: 40px; }
  html body .ayedu-glossary-wrapper .ayedu-bottom-cta-inner { grid-template-columns: 1fr; grid-template-areas: "title" "text" "btn"; row-gap: 6px; }
  html body .ayedu-glossary-wrapper .ayedu-bottom-cta-inner :is(h2, p) { padding-inline: 24px; }
  html body .ayedu-glossary-wrapper .ayedu-bottom-cta-inner .ayedu-cta-white-btn { justify-self: start; margin: 14px 0 0 24px; }
}
@media (max-width: 600px) {
  html body .ayedu-glossary-wrapper .ayedu-atoz-grid { grid-template-columns: 1fr; }
  html body .ayedu-glossary-wrapper .ayedu-nav-section { padding: 12px 0; }
  html body .ayedu-glossary-wrapper .ayedu-hero-actions > a { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html body .ayedu-glossary-wrapper * { transition: none !important; }
}
