/*
 * Styles for the "Home New 2026" page (page ID 25785, /home-new-2026/).
 *
 * Extracted verbatim from 16 Custom HTML blocks that each carried their own
 * <style> tag inside post content. Moving them here makes the CSS reviewable,
 * diffable and deployable, and stops the page from being the only record of
 * its own design.
 *
 * Enqueued only on that page — see functions.php. Section headers below name
 * the block each rule set came from, in page order.
 *
 * Fonts: the blocks also carried four Google Fonts <link> tags. Cormorant,
 * Marcellus, Mulish and Noto Serif Tibetan are now self-hosted and declared in
 * theme.json, so the family names below resolve locally with no external
 * request. Cormorant Garamond was already vendored.
 */

/* ---------------------------------------------------------------------------
 * Overflow fix.
 *
 * None of the extracted blocks set box-sizing, so padding was added outside
 * the declared width and pushed content past the viewport: at 375px the page
 * scrolled 421px. .cwc-more was 355px + 48px padding = 403px, and
 * .tsadra-divider-light 355px + 40px = 395px. Border-box makes padding
 * inclusive, which is what every one of these rules already assumed.
 *
 * .trans-projects ("Recent Translation Projects") is the same failure, found
 * later: 355px + 24px padding each side = 403px, scrolling the page 38px at
 * 375px. Its own CSS is NOT in this file — that block's <style> tag is still
 * inline in post_content and was missed by the extraction, so only the
 * box-sizing correction can live here until the block is migrated.
 * ------------------------------------------------------------------------ */
.tsadra-hero-arrow, .tsadra-hero-arrow *,
.tsadra-highlight, .tsadra-highlight *,
.tsadra-divider-light, .tsadra-divider-light *,
.tsadra-divider, .tsadra-divider *,
.tsadra-lit, .tsadra-lit *,
.dharmacloud-intro, .dharmacloud-intro *,
.sl, .sl *,
.cwc, .cwc *,
.cwc-more, .cwc-more *,
.dm, .dm *,
.wa, .wa *,
.conf-deco-topleft, .conf-deco-topleft *,
.trans-projects, .trans-projects * {
	box-sizing: border-box;
}


/* ---------------------------------------------------------------------------
 * Card boxes running to the screen edge.
 *
 * The "Tibetan Collections" and "Conferences and Audio & Video" cards are core
 * Columns blocks with a background and border. Every other card section on the
 * page is inset from the edge — Literacy Projects sits at 26/34/50px and
 * Translation Projects at 34/34/64px (375/768/1280) — but these two sat flush
 * at 0, so the boxes bled off both sides.
 *
 * The gutter cannot be added where it belongs. The columns wrapper carries
 * padding-left:0 / padding-right:0 as an INLINE style generated from the
 * block's own attributes, and an inline style beats any stylesheet rule short
 * of !important, which this theme does not allow. The inline style does not
 * set max-width or horizontal margins, so insetting the row that way lands the
 * same result without fighting specificity.
 *
 * spacing--50 is clamp(30px, 5vw, 50px), giving 30/38/50px — between the two
 * reference sections at every width, and fluid rather than a hardcoded px.
 *
 * Fixing this properly means changing the block's padding attributes in the
 * editor, which is a database change and does not travel through git.
 * ------------------------------------------------------------------------ */
.wp-block-columns:has(> .wp-block-column.has-background) {
	max-width: calc(100% - var(--wp--preset--spacing--50) * 2);
	margin-inline: auto;
}


/* ---------------------------------------------------------------------------
 * Small-text scale.
 *
 * Each block below was written with its own tiny sizes: labels under the
 * numbers at 11px, capital-letter links at 10, 11, 13 or 14px, tags at 10px.
 * They read as too small, and inconsistently so. Every small text on the page
 * now takes one of these four roles, so the same kind of text is the same
 * size in every section. Change a role here, not in the block.
 * ------------------------------------------------------------------------ */
body {
  /* under a number: 13px on a phone to 16px on desktop — clearly smaller than
     the ~40px numbers so they stand out. Fluid rather than the "medium"
     preset, whose 16px floor pushed the third scholarship number past its
     card at 375px */
  --home-stat-label: clamp(0.8125rem, 0.72rem + 0.45vw, 1rem);
  /* the same role in Mulish (Dharmamitra, Wisdom Academy): its taller
     lowercase reads bigger than Gentium at equal size, so 10% smaller to
     look the same */
  --home-stat-label-sans: max(0.75rem, calc(var(--home-stat-label) * 0.9));
  /* heading over a group of numbers: 15-20px, always a step above the labels
     (it was a fixed 15px, which the labels overtook) */
  --home-stat-heading: clamp(0.9375rem, 0.8rem + 0.6vw, 1.25rem);
  --home-caps-link:  var(--wp--preset--font-size--small);  /* LEARN MORE → */
  --home-tag:        0.75rem;                               /* MASTERCLASS */
  /* italic subtitle, quote credit: 17-20px, kept just under the quote it
     credits (21px), which the parent's "large" preset overshot */
  --home-serif-note: clamp(1.0625rem, 0.9rem + 0.6vw, 1.25rem);
}


/* ===========================================================================
 * block-01  —  tsadra-hero-arrow
 * ======================================================================== */
.tsadra-hero-arrow {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  animation: tsadra-bounce 2.4s ease-in-out infinite;
}
.tsadra-hero-arrow .label {
  /* The word "Scroll" above the circle is hidden; the bouncing arrow says it
     on its own. The span stays in post_content, so this is the one switch. */
  display: none;
  font-family: 'Mulish', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #e0c074;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}
.tsadra-hero-arrow .circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px solid rgba(224, 192, 116, 0.75);
  background: rgba(224, 192, 116, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(224, 192, 116, 0.4), inset 0 0 18px rgba(224, 192, 116, 0.18);
  backdrop-filter: blur(2px);
  position: relative;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tsadra-hero-arrow .circle::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(224, 192, 116, 0.3);
  animation: tsadra-pulse 2.4s ease-in-out infinite;
}
.tsadra-hero-arrow:hover .circle {
  background: rgba(224, 192, 116, 0.22);
  border-color: #e0c074;
  box-shadow: 0 0 40px rgba(224, 192, 116, 0.55), inset 0 0 22px rgba(224, 192, 116, 0.28);
}
.tsadra-hero-arrow svg {
  width: 30px;
  height: 30px;
  stroke: #e0c074;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
@keyframes tsadra-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(12px); }
}
@keyframes tsadra-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
@media (max-width: 840px) {
  .tsadra-hero-arrow .circle { width: 56px; height: 56px; }
  .tsadra-hero-arrow svg { width: 24px; height: 24px; }
  .tsadra-hero-arrow { bottom: 24px; gap: 10px; }
  .tsadra-hero-arrow .label { font-size: 11px; }
}

/* ===========================================================================
 * block-02  —  tsadra-highlight
 * ======================================================================== */
.tsadra-highlight {
  max-width: 900px;
  margin: 0 auto 48px;
  border: 1px solid #d8cdb0;
  border-radius: 10px;
  background: #fffdf8;
  overflow: hidden;
}
.tsadra-highlight summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
}
.tsadra-highlight summary::-webkit-details-marker { display: none; }
.tsadra-highlight .hl-badge {
  font-family: 'Mulish', sans-serif; font-weight: 600;
  font-size: var(--home-tag); letter-spacing: 0.14em; text-transform: uppercase;
  color: #8a6a25; background: #f4e9c9;
  padding: 5px 10px; border-radius: 20px; white-space: nowrap;
}
.tsadra-highlight .hl-title {
  font-family: 'Marcellus', serif; font-weight: 400;
  font-size: 18px; color: #16302a; flex: 1;
}
/* The "+" is drawn with two bars rather than the text glyph: Gentium Plus sits
   its plus above the font's centre line, so the character could never be
   centred in the circle. font-size: 0 hides the glyph; the bars rotate with
   the circle into an "x" when open. */
.tsadra-highlight .hl-toggle {
  font-size: 0; color: #8a6a25; transition: transform 0.25s ease; flex-shrink: 0;
  width: 36px; height: 36px; border: 1.5px solid #8a6a25; border-radius: 50%;
  position: relative;
}
.tsadra-highlight .hl-toggle::before,
.tsadra-highlight .hl-toggle::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%);
}
.tsadra-highlight .hl-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.tsadra-highlight[open] .hl-toggle { transform: rotate(45deg); }
.tsadra-highlight .hl-body { padding: 0 24px 28px; }
.tsadra-highlight .hl-image {
  width: 100%; max-width: 560px; display: block; margin: 0 auto 18px;
  border-radius: 6px;
}
.tsadra-highlight .hl-body p {
  font-family: 'Cormorant', serif; font-size: 17px; line-height: 1.6;
  color: #2d5060; max-width: 640px; margin: 0 auto 14px; text-align: center;
}
.tsadra-highlight .hl-btn {
  display: block; width: fit-content; margin: 8px auto 0;
  font-family: 'Mulish', sans-serif; font-weight: 600;
  font-size: var(--home-caps-link); letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: #8a6a25;
  padding: 12px 26px; border-radius: 30px; text-decoration: none;
}

/* ===========================================================================
 * block-03  —  tsadra-divider-light
 * ======================================================================== */
.tsadra-divider-light {
  text-align: center;
  padding: 90px 20px 60px;
  max-width: 760px;
  margin: 0 auto;
}
.tsadra-divider-light .tdl-label {
  font-family: 'Cormorant Garamond', 'Cormorant', serif;
  font-weight: 500;
  font-size: 50px;
  letter-spacing: 0.05em;
  color: #16302a;
  margin: 0 0 24px;
  text-shadow: 0 1px 12px rgba(247, 244, 238, 0.9);
}
.tsadra-divider-light .tdl-sub {
  font-family: 'Cormorant Garamond', 'Cormorant', serif;
  font-style: italic;
  font-size: 35px;
  color: #8a6a25;
  margin-top: 0;
  text-shadow: 0 1px 10px rgba(247, 244, 238, 0.85);
}
.tsadra-divider-light .tdl-line {
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #16302a, transparent);
  margin: 50px auto 0;
}

/* ===========================================================================
 * block-04  —  (no leading class)
 * ======================================================================== */
.wp-block-cb-carousel-v2 .cb-button-next {
  right: 10px !important;
}

/* Recent Publications carousel.
 *
 * Each slide held a 300px cover inside a figure stretched to the full slide
 * width, so every book had an empty box beside it and the gaps looked huge.
 * Shrink the figure to the cover and centre it. How many books show per width
 * is set in inc/home-2026.php, which rewrites the block's breakpoints.
 *
 * The dots sat at the plugin's default bottom: -35px, below the carousel and
 * past the section's 10px padding, i.e. inside Recent Translation Projects.
 * Reserve room for them inside the carousel instead. */
.wp-block-cb-carousel-v2 {
  --wp--custom--carousel-block--pagination-bottom: 0;
  padding-bottom: 48px;
}
.wp-block-cb-carousel-v2 .swiper-slide .wp-block-image {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.sl, .sl * {
  box-sizing: border-box;
}
.cwc, .cwc * {
  box-sizing: border-box;
}
.wp-block-uagb-container.alignfull:not(.cat-sticky),
.wp-block-group.alignfull,
.wp-block-cover.alignfull {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
@media (max-width: 840px) {
  * {
    background-attachment: scroll !important;
  }
}
.lit-card__button,
a.broken_link {
  text-decoration: none !important;
}

/* ===========================================================================
 * block-17  —  trans-projects  ("Recent Translation Projects")
 *
 * Sits here in page order, between block-04 and block-05. Missed by the
 * original extraction: its <style> tag stayed in post_content until now, so
 * these rules are copied verbatim, unchanged. The box-sizing correction they
 * need lives in the overflow-fix block at the top of this file — the padding
 * below is left exactly as authored so this copy stays byte-identical to the
 * inline original while both are live.
 * ======================================================================== */
/* Section background: red-orange terracotta, in place of the
 * Spectra container's brown (rgba(61, 34, 11, 0.89), set in the block's
 * attributes). It darkens toward the bottom so it settles into the warm, dark
 * Literacy Projects photo below, and echoes the red line under the header.
 * :has() outranks the plugin's two-class selector without !important. */
.wp-block-uagb-container:has(> .trans-projects) {
  background: linear-gradient(180deg, #b95c3c 0%, #a44d33 60%, #843d2a 100%);
}

/* Recent Publications, the section just above: the same Maitreya drawing, a
 * little stronger (alpha ×1.4) than the uploaded original its Spectra block
 * points at. Only the image is swapped; size, position and attachment stay
 * the block's own, so the seam below still lines up. :has() outranks the
 * plugin's two-class selector. */
.wp-block-uagb-container:has(+ .wp-block-uagb-container > .trans-projects) {
  background-image: url('../images/maitreya-line-strong.webp');
}

/* The Maitreya drawing behind Recent Publications carries on into this
 * section, in white and a little fainter (alpha ×0.7). Publications pins it to the window (fixed, 45% 26%,
 * 100% auto — set in the Spectra block's attributes), so a white copy pinned
 * with the same size and position lines up exactly at the seam and the
 * figure reads as one drawing across both sections. Below 840px every
 * background scrolls (block-04), each section then places the drawing on its
 * own and the lines cannot meet, so the white copy is desktop only. */
@media (min-width: 841px) {
  .wp-block-uagb-container:has(> .trans-projects) {
    background:
      url('../images/maitreya-line-white.webp') 45% 26% / 100% auto no-repeat fixed,
      linear-gradient(180deg, #b95c3c 0%, #a44d33 60%, #843d2a 100%);
  }
}

/* Deep clay cards in place of the original teal-tinted glass, so card and
 * section are one warm family. The colour is what the earlier see-through
 * glass (rgba(58, 20, 12, 0.38)) blended to over the terracotta, now at 0.85
 * so the white drawing behind barely reads through: more solid, not darker.
 * Warm gold titles and links (5.0:1), ivory reading text (7.1:1), and a gold border
 * strong enough to draw the card's edge on the terracotta. Every selector is
 * prefixed with the section so it also outranks the copy of these rules that
 * may still be inline in post_content on production. */
.wp-block-uagb-container:has(> .trans-projects) .tp-project {
  background: rgba(124, 55, 36, 0.85);
  border-color: rgba(240, 200, 140, 0.75);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 14px 34px rgba(60, 20, 10, 0.25);
}
/* Mirror the zig-zag: first card text left / image right, second card image
 * left / text right. The .tp-flip class that sets the order sits on the
 * second card in post_content; swapping it there would be a database change,
 * so the directions are swapped here instead. Side-by-side widths only —
 * below 821px the cards stack, image on top, as before. */
@media (min-width: 821px) {
  .wp-block-uagb-container:has(> .trans-projects) .tp-project { flex-direction: row-reverse; }
  .wp-block-uagb-container:has(> .trans-projects) .tp-project.tp-flip { flex-direction: row; }
}
.wp-block-uagb-container:has(> .trans-projects) .tp-project:hover {
  border-color: #f0c88c;
  box-shadow: 0 22px 46px rgba(60, 20, 10, 0.35);
}
.wp-block-uagb-container:has(> .trans-projects) .tp-title { color: #f0c98a; }
.wp-block-uagb-container:has(> .trans-projects) .tp-body { color: #fbf3e8; }
.wp-block-uagb-container:has(> .trans-projects) .tp-more {
  color: #f0c98a;
  border-bottom-color: rgba(240, 201, 138, 0.6);
}

.trans-projects {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 80px;
}
.tp-project {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 56px;
  border: 1px solid rgba(224, 192, 116, 0.35);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(20, 40, 48, 0.30);   /* frosted panel — clouds show through */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.tp-project:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 192, 116, 0.85);
  box-shadow: 0 26px 54px rgba(0,0,0,0.4);
}
.tp-project,
.tp-project:link,
.tp-project:visited,
.tp-project:hover,
.tp-project:focus,
.tp-project *,
.tp-project:visited * {
  text-decoration: none !important;
}
.tp-project:last-child { margin-bottom: 0; }
.tp-project.tp-flip { flex-direction: row-reverse; }
.tp-image {
  flex: 0 0 46%;
  overflow: hidden;
}
.tp-image img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.tp-project:hover .tp-image img {
  transform: scale(1.05);
}
.tp-text {
  flex: 1;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tp-title {
  font-family: 'Marcellus', serif;
  font-variant: small-caps;
  font-size: 26px;
  letter-spacing: 0.05em;
  color: #e0c074;
  margin: 0 0 18px;
}
.tp-body {
  font-family: 'Cormorant Garamond', 'Cormorant', serif;
  font-size: 21px;
  line-height: 1.65;
  color: #f7f4ee;
  margin: 0;
}
.tp-body em { font-style: italic; }
.tp-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-family: 'Mulish', sans-serif;
  font-weight: 500;
  font-size: var(--home-caps-link);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e0c074;
  border-bottom: 1px solid rgba(224,192,116,0.6);
  padding-bottom: 4px;
  align-self: flex-start;
  transition: gap 0.3s ease;
}
.tp-project:hover .tp-more { gap: 12px; }
@media (max-width: 820px) {
  .tp-project, .tp-project.tp-flip { flex-direction: column; }
  .tp-image { flex: none; }
  .tp-image img { min-height: 240px; height: 240px; }
  .tp-text { padding: 32px 28px; }
}


/* ===========================================================================
 * block-05  —  tsadra-lit
 * ======================================================================== */
  .tsadra-lit {
    position: relative;
    padding: clamp(40px, 8vw, 72px) clamp(16px, 4vw, 24px) clamp(48px, 9vw, 88px);
    background: none;
    color: #f6ecd9;
    font-family: 'Cormorant Garamond', Georgia, serif;
    overflow: hidden;
    box-sizing: border-box;
  }
  .tsadra-lit *, .tsadra-lit *::before, .tsadra-lit *::after {
    box-sizing: border-box;
  }
  .tsadra-lit__inner {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
  }
.tsadra-lit__inner::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, 110vw);
    height: clamp(380px, 55vw, 540px);
    background: radial-gradient(ellipse 55% 50% at 50% 42%,
      rgba(12, 9, 6, 0.38) 0%,
      rgba(12, 9, 6, 0.18) 45%,
      transparent 68%);
    z-index: 0;
    pointer-events: none;
  }
.tsadra-lit__inner > * {
    position: relative;
    z-index: 1;
  }
  .tsadra-lit__eyebrow {
    font-size: clamp(34px, 5.5vw, 52px);
    letter-spacing: 0.06em;
    font-variant: small-caps;
    margin: 0 0 30px;
  }
.tsadra-lit__subtitle {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: clamp(19px, 3vw, 26px);
    letter-spacing: 0.02em;
    color: #e0c074;
    margin: 0 auto 40px;
    max-width: 820px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  }
  .tsadra-lit__intro {
    max-width: 800px;
    margin: 0 auto clamp(56px, 9vw, 80px);
    font-size: clamp(18px, 3.4vw, 22px);
    line-height: 1.5;
    color: #f0e4cc;
  }

  .tsadra-lit__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 28px);
  }
  @media (max-width: 760px) {
    .tsadra-lit__cards { grid-template-columns: 1fr; }
  }

  .lit-card {
    background: rgba(25, 18, 12, 0.4);
    border: 1px solid rgba(230, 200, 150, 0.4);
    border-radius: 14px;
    padding: clamp(24px, 5vw, 36px) clamp(18px, 5vw, 32px) clamp(24px, 5vw, 32px);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  .lit-card__icon {
    width: clamp(110px, 20vw, 160px);
    height: clamp(110px, 20vw, 160px);
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 18px;
    border: 4px solid #e3a94a;
    box-shadow:
      0 0 0 3px rgba(30, 20, 10, 0.5),
      0 0 24px rgba(227, 169, 74, 0.45);
  }

  .lit-card__title {
    font-size: clamp(28px, 7vw, 40px);
    font-weight: 600;
    margin: 0 0 4px;
    color: #f6ecd9;
  }
  .lit-card__subtitle {
    font-size: var(--home-serif-note);
    font-style: italic;
    letter-spacing: 0.02em;
    color: #d8c4a0;
    margin: 0 0 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(227, 169, 74, 0.55);
    width: 100%;
  }

  .lit-card__quote-bo {
    font-family: 'Noto Serif Tibetan', serif;
    font-size: clamp(17px, 4vw, 22px);
    line-height: 1.8;
    color: #f2e2c0;
    margin: 0 0 16px;
    word-break: keep-all;
  }

  .lit-card__quote-en {
    font-size: clamp(18px, 3.8vw, 21px); /* floor 18, above the 17px credit */
    font-style: italic;
    line-height: 1.5;
    color: #f6ecd9;
    margin: 0 0 10px;
  }

  .lit-card__attribution {
    font-size: var(--home-serif-note);
    color: #c9ac7d;
    margin: 0 0 24px;
  }

  .lit-card__desc {
    font-size: clamp(17px, 3.6vw, 19px);
    line-height: 1.6;
    color: #e9dcc2;
    margin: 0 0 28px;
  }

  .lit-card__button {
    display: inline-block;
    padding: 14px 32px;
    background: #e8d9b8;
    color: #2a1f14;
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    margin-top: auto;
  }
  .lit-card__button:hover,
  .lit-card__button:focus-visible {
    background: #f6ecd9;
  }

  @media (max-width: 420px) {
    .lit-card__quote-en br {
      display: none;
    }
  }

/* ===========================================================================
 * block-06  —  dharmacloud-intro
 * ======================================================================== */
.dharmacloud-intro {
  text-align: center;
  padding: 40px 20px 30px;
  max-width: 900px;
  margin: 0 auto;
}
.dharmacloud-intro .dci-title {
  font-family: 'Cormorant Garamond', 'Cormorant', serif;
  font-size: 44px;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: #16302a;
  margin: 0 0 20px;
  text-shadow: 0 1px 12px rgba(247, 244, 238, 0.9);
}
.dharmacloud-intro .dci-sub {
  font-family: 'Cormorant Garamond', 'Cormorant', serif;
  font-style: italic;
  font-size: 32px;
  color: #6b4a12;
  margin: 0 0 28px;
  text-shadow:
    0 0 14px rgba(247, 244, 238, 0.95),
    0 0 28px rgba(247, 244, 238, 0.75),
    0 2px 6px rgba(0, 0, 0, 0.12);
}
.dharmacloud-intro .dci-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  line-height: 1.7;
  color: #241f1a;
  margin: 0;
  text-shadow:
    0 0 14px rgba(247, 244, 238, 0.95),
    0 0 28px rgba(247, 244, 238, 0.75),
    0 2px 6px rgba(0, 0, 0, 0.12);
}

/* ===========================================================================
 * block-07  —  (no leading class)
 * ======================================================================== */
.new-books-panel {
  background: rgba(150, 157, 137, 0.45);
  border-radius: 18px;
  padding: 40px 48px 48px;
  margin: 40px auto 0;
  max-width: 1280px;
  box-shadow: inset 0 0 0 1px rgba(120, 128, 108, 0.4);
}

/* ===========================================================================
 * block-08 (and block-16, which was an identical subset)
 *
 * Original note in the block: "CURTAIN EFFECT: P&P slides over Catalogue".
 * .cat-sticky sticks while .sl-overlap scrolls over it; the 768px rule
 * disables the effect on mobile, where sticky + overlap misbehaves.
 * ======================================================================== */
.wp-block-uagb-container.cat-sticky {
  position: sticky !important;
  top: 0;
  z-index: 1;
}
.wp-block-uagb-container.sl-overlap {
  position: relative;
  z-index: 2;
}
.wp-block-group:has(> .cat-sticky) {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
@media (max-width: 768px) {
  .wp-block-uagb-container.cat-sticky {
    position: static !important;
  }
}

/* The Catalogue background is a 1920x1874 / 336 KB WebP set by Spectra on both
 * .cat-sticky (Tibetan Collections) and .conf-wrap (Conferences). It is a CSS
 * background, so srcset cannot apply and Cloudflare Polish cannot shrink it --
 * a phone downloads the full 336 KB to paint a 375px-wide box, where cover
 * upscales it anyway. Swap in a 960px copy (147 KB) below the same 768px
 * breakpoint the rule above uses.
 *
 * The 960px copy lives in the theme, not the Media Library, and is referenced
 * relative to this file. Both sections set white and pale-gold text with no
 * background colour behind the image, so a missing image is not a cosmetic
 * loss -- the text becomes invisible. Shipping the file alongside the rule
 * means it cannot arrive without its image.
 *
 * No !important needed: these selectors match Spectra's own
 * .wp-block-uagb-container.uagb-block-<id> specificity (0,2,0) and this
 * stylesheet is enqueued after the generated Spectra one.
 * .conf-wrap repeats its gold gradient because background-image is one
 * shorthand list -- dropping the gradient here would lose the overlay. */
@media (max-width: 768px) {
  .wp-block-uagb-container.cat-sticky {
    background-image: url('../images/tibetan-catalogue-background-960.webp');
  }

  .wp-block-uagb-container.conf-wrap {
    background-image:
      linear-gradient(to right, #b38829, #b38829),
      url('../images/tibetan-catalogue-background-960.webp');
  }
}

/* ===========================================================================
 * block-09  —  tsadra-divider
 * ======================================================================== */
.wp-block-uagb-container.sl-overlap {
  position: relative;
  z-index: 2;
}
.tsadra-divider {
  text-align: center;
  padding: 40px 20px 50px;
  max-width: 760px;
  margin: 0 auto;
}
.tsadra-divider .td-line {
  width: 90px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e0c074, transparent);
  margin: 50px auto 0;
}
.tsadra-divider .td-label {
  font-family: 'Cormorant Garamond', 'Cormorant', serif;
  font-weight: 500;
  font-size: 50px;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin: 0 0 48px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.tsadra-divider .td-sub {
  font-family: 'Cormorant Garamond', 'Cormorant', serif;
  font-style: italic;
  font-size: 35px;
  color: #e8d49a;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
}

/* ===========================================================================
 * block-10  —  sl
 * ======================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Marcellus&family=Mulish:wght@200;300;400;500&display=swap');
/* ===== TEAL CARD — the only background layer, behind images and stats ===== */
.sl .sl-card {
  max-width: 1240px; margin: 0 auto;
  background: linear-gradient(180deg, #335868 0%, #2d5060 100%);
  padding: 80px 56px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.sl .sl-inner { max-width: 1120px; margin: 0 auto; }
.sl .sl-label { font-family: 'Mulish', sans-serif; font-weight: 300;
font-size: clamp(20px, 2.4vw, 26px); letter-spacing: 0.06em; text-transform: uppercase; color: #e0c074; margin-bottom: 40px; }
.sl .sl-stage { position: relative; padding-bottom: 180px; }
/* ===== CONTEMPLATIVE IMAGE (big, left) ===== */
.sl .sl-back {
  width: 72%; margin-right: auto; aspect-ratio: 16/9;
  background-size: cover; background-position: center;
  background-image: url('https://www.tsadra.org/wp-content/uploads/2026/06/contemplative-SC.jpg');
  background-color: #16302a;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
/* ===== STUDY IMAGE (smaller, right, overlapping) ===== */
.sl .sl-front {
  position: absolute; top: 22%; right: 0; width: 30%; aspect-ratio: 3/4;
  background-size: cover; background-position: center;
  background-image: url('https://www.tsadra.org/wp-content/uploads/2026/06/study-scholarship.jpg');
  background-color: #2e1614;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  border: 5px solid #2d5060; z-index: 2;
}
/* ===== TITLE (nested in the lower-left pocket) ===== */
.sl .sl-title {
  position: absolute; left: 2%; bottom: 0; z-index: 3; width: 58%;
  font-family: 'Marcellus', serif; font-weight: 400;
  font-size: 60px; line-height: 1.0; color: #f7f4ee; letter-spacing: 0.02em;
}
.sl .sl-lower { display: grid; grid-template-columns: 1fr 0.9fr; gap: 50px; align-items: start; margin-top: 50px; }
.sl .sl-intro { font-family: 'Cormorant', serif; font-style: italic; font-size: 22px; color: rgba(247,244,238,0.85); line-height: 1.6; }
.sl .sl-intro .strong { font-style: normal; font-family: 'Marcellus', serif; color: #f7f4ee; font-size: 19px; display: block; margin-top: 12px; letter-spacing: 0.02em; }
/* ===== STATISTICS — no box, free on the teal ===== */
.sl .sl-statgroup h4 { font-family: 'Marcellus', serif; font-weight: 400; font-size: var(--home-stat-heading); color: #e0c074; letter-spacing: 0.04em; margin-bottom: 14px; }
.sl .sl-statgroup + .sl-statgroup { margin-top: 28px; }
.sl .sl-statrow { display: flex; gap: 28px; }
@media (max-width: 480px) { .sl .sl-statrow { gap: 20px; } }
.sl .sl-stat { flex: 1; }
.sl .sl-stat .n { font-family: 'Marcellus', serif; font-size: 40px; line-height: 0.9; color: #f7f4ee; }
.sl .sl-stat .l { font-size: var(--home-stat-label); letter-spacing: 0.03em; color: rgba(247,244,238,0.7); line-height: 1.4; margin-top: 7px; }
/* ===== BUTTONS — Contemplative / Buddhist Studies, in the intro column ===== */
.sl .sl-links { display: flex; justify-content: center; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.sl .sl-btn {
  display: inline-block;
  font-family: 'Mulish', sans-serif; font-weight: 700; font-style: normal;
  font-size: var(--home-caps-link); letter-spacing: 0.14em; text-transform: uppercase;
  color: #2d5060; text-decoration: none;
  background: #e0c074;
  border: 1px solid #e0c074; border-radius: 6px;
  padding: 16px 32px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
/* Keep the arrow on the label's line on phones, where 32px side padding left
   "BUDDHIST STUDIES →" a few pixels short once the text grew to 14px. */
@media (max-width: 480px) { .sl .sl-btn { padding-inline: 22px; white-space: nowrap; } }
.sl .sl-btn:hover {
  background: transparent; color: #e0c074;
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}
.sl .sl-link { font-family:'Mulish',sans-serif; font-weight:500; font-size: var(--home-caps-link); letter-spacing: 0.18em; text-transform: uppercase; color: #f7f4ee; text-decoration: none; border-bottom: 1px solid #e0c074; padding-bottom: 4px; }

/* ===== WATCH THE SERIES — lone link below the card, on the thangka ===== */
.sl .sl-watch { text-align: center; margin-top: 60px; }
@media (max-width: 840px) {
  .sl { padding: 30px 20px 60px; }
  .sl .sl-card { padding: 50px 28px; }
  .sl .sl-stage { padding-bottom: 0; }
  .sl .sl-back { width: 100%; aspect-ratio: 3/2; }
  .sl .sl-front { position: relative; top: auto; right: auto; width: 55%; margin: -40px 0 0 auto; }
  .sl .sl-title { position: relative; left: auto; bottom: auto; width: 100%; font-size: 44px; margin-top: 30px; }
  .sl .sl-lower { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; }
  .sl .sl-watch { margin-top: 44px; }
}

/* ===========================================================================
 * block-11  —  cwc
 * ======================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;1,300;1,400&family=Mulish:wght@300;400;500&display=swap');

.cwc { text-align: center; max-width: 940px; margin: 0 auto; padding: 40px 24px; }
.cwc .cwc-label {
  font-family: 'Mulish', sans-serif; font-weight: 300;
  font-size: 20px; letter-spacing: 0.25em; text-transform: uppercase;
  color: #e0c074; margin-bottom: 32px;
}
.cwc .cwc-q {
  font-family: 'Cormorant', serif; font-style: italic;
  font-size: 23px; color: #f7f4ee; line-height: 1.5;
}

/* ===========================================================================
 * block-12  —  cwc-more
 * ======================================================================== */
.cwc-more { text-align: center; padding: 26px 24px 90px; }
.cwc-more a {
  font-family: 'Mulish', sans-serif; font-weight: 500;
  font-size: var(--home-caps-link); letter-spacing: 0.18em; text-transform: uppercase;
  color: #e0c074; text-decoration: none;
  border-bottom: 1px solid #e0c074; padding-bottom: 4px;
}
.cwc-more-caption {
  display: block; margin-bottom: 60px;
  font-family: 'Mulish', sans-serif; font-weight: 500;
  font-size: var(--home-caps-link); letter-spacing: 0.18em; text-transform: uppercase;
  color: #e0c074;
}
.cwc-more-image {
  display: block;
  margin: 0 auto;
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ===========================================================================
 * block-13  —  dm
 * ======================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=Cormorant:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Marcellus&family=Mulish:wght@200;300;400;500&display=swap');
.dm, .dm * { box-sizing: border-box; }
.dm * { margin: 0; padding: 0; }
.dm {
  font-family: 'Mulish', sans-serif; font-weight: 300;
  width: 100%; padding: 90px 56px;
  background: #f4f1eb;
  /* The .dm-bear halo below is inset -10%, so it bleeds 10% of the column
     width past each side and extended the document: 816px at a 768px
     viewport, 383px at 375px. Clip it at this full-bleed band rather than
     shrinking the inset, which would change the gradient's radius. `clip`
     rather than `hidden` so no scroll container is created and overflow-y
     stays visible. */
  overflow-x: clip;
}
.dm .dm-inner { max-width: 1120px; margin: 0 auto; }

/* ===== TWO COLUMNS — text left, bear right ===== */
.dm .dm-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }

.dm .dm-label {
  font-family: 'Mulish', sans-serif; font-weight: 300;
  font-size: clamp(20px, 2.4vw, 26px); letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a6a25;
  margin-bottom: 48px;
}
/* ===== TITLE ===== */
.dm .dm-title {
  font-family: 'Marcellus', serif; font-weight: 400;
  font-size: 56px; line-height: 1.05; color: #13243f; letter-spacing: 0.02em;
}
.dm .dm-subtitle {
  font-family: 'Cormorant', serif; font-style: italic;
  font-size: 26px; color: #8a6a25; margin-top: 10px;
}

.dm .dm-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; line-height: 1.65; color: #2d5060;
  margin-top: 28px; max-width: 560px;
}

/* ===== TOOL CHIPS ===== */
.dm .dm-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; max-width: 560px; }
.dm .dm-tool {
  font-family: 'Mulish', sans-serif; font-weight: 400;
  font-size: var(--home-caps-link); letter-spacing: 0.14em; text-transform: uppercase;
  color: #2d5060;
  border: 1px solid rgba(138,106,37,0.5);
  padding: 7px 14px; border-radius: 2px;
}

/* ===== STATS ROW ===== */
.dm .dm-stats { display: flex; gap: 36px; margin-top: 34px; }
.dm .dm-stat .n { font-family: 'Marcellus', serif; font-size: 38px; line-height: 0.9; color: #8a6a25; }
.dm .dm-stat .l { font-size: var(--home-stat-label-sans); letter-spacing: 0.03em; color: rgba(45,80,96,0.85); line-height: 1.4; margin-top: 7px; }

/* ===== GHOST BUTTON + DOCS LINK ===== */
.dm .dm-actions { display: flex; align-items: center; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.dm .dm-btn {
  display: inline-block;
  font-family: 'Mulish', sans-serif; font-weight: 500;
  font-size: var(--home-caps-link); letter-spacing: 0.22em; text-transform: uppercase;
  color: #8a6a25; text-decoration: none;
  border: 1px solid #8a6a25; padding: 14px 30px;
  transition: background 0.25s, color 0.25s;
}
.dm .dm-btn:hover { background: #8a6a25; color: #f7f4ee; }
.dm .dm-link {
  font-family: 'Mulish', sans-serif; font-weight: 500;
  font-size: var(--home-caps-link); letter-spacing: 0.18em; text-transform: uppercase;
  color: #2d5060; text-decoration: none;
  border-bottom: 1px solid #8a6a25; padding-bottom: 4px;
}

/* ===== BEAR — faint teal halo on cream ===== */
.dm .dm-bear { position: relative; text-align: center; }
.dm .dm-bear::before {
  content: ''; position: absolute; inset: -10%;
  background: radial-gradient(circle at 50% 45%, rgba(45,80,96,0.10) 0%, rgba(45,80,96,0.04) 40%, transparent 68%);
  z-index: 0;
}
.dm .dm-bear img { position: relative; z-index: 1; width: 100%; max-width: 420px; height: auto; }

@media (max-width: 840px) {
  .dm { padding: 56px 24px; }
  .dm .dm-grid { grid-template-columns: 1fr; gap: 40px; }
  .dm .dm-bear { order: -1; }
  .dm .dm-bear img { max-width: 260px; }
  .dm .dm-title { font-size: 40px; }
  .dm .dm-stats { flex-wrap: wrap; gap: 28px; }
  .dm .dm-actions { gap: 22px; }
}

/* ===========================================================================
 * block-14  —  wa
 * ======================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Marcellus&family=Mulish:wght@200;300;400;500&display=swap');

.wa, .wa * { box-sizing: border-box; }
.wa * { margin: 0; padding: 0; }
.wa { margin-block-start: 0 !important; margin-top: 0 !important; }
.wp-block-group:has(> .wa) { margin-block-start: 0 !important; margin-top: 0 !important; }

/* ===== SECTION — starry stupa background (single layer, parallax on desktop) ===== */
.wa {
  position: relative;
  font-family: 'Mulish', sans-serif; font-weight: 300;
  width: 100%;
  background: url('https://www.tsadra.org/wp-content/uploads/2026/07/wisdom-academy-banner.jpg') center / cover no-repeat;
  background-color: #13243f;
  background-attachment: fixed;
  padding: 90px 56px 100px;
}
@media (max-width: 840px) {
  .wa {
    /* Drop the banner below 840px and let the base rule's #13243f fill the
       section.
       The box is ~375x1637 on a phone against a 1920x985 image, so `cover`
       scales it 1.66x and shows a 226px window -- 12% of the width. Whatever
       that window lands on, the section's text (#f7f4ee, some at 70-85%
       opacity, and #e0c074) sits straight on the photo with no scrim, so a lit
       stupa behind it is unreadable. Flat navy keeps the type clean, and the
       image is never fetched at this width: 239 KB saved on phones. */
    background-image: none;
  }
}

.wa .wa-inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; }

.wa .wa-label {
  font-family: 'Mulish', sans-serif; font-weight: 300;
  font-size: clamp(20px, 2.4vw, 26px); letter-spacing: 0.06em; text-transform: uppercase;
  color: #e0c074; margin-bottom: 48px;
  /* Same width and offset as .wa-frieze, so the label starts right above the
     first masterclass card rather than at the edge of the inner column. */
  width: 88%; margin-left: auto; text-align: left;
}

/* ===== FRIEZE — pushed right, captions centered ===== */
.wa .wa-frieze {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px; width: 88%; margin-left: auto;
}
.wa .wa-card { text-decoration: none; display: block; text-align: center; }
.wa .wa-card .img {
  aspect-ratio: 2/3; background-size: cover; background-position: center top;
  background-color: #16302a;
  box-shadow: 0 22px 54px rgba(0,0,0,0.55);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.wa .wa-card:hover .img { transform: translateY(-6px); box-shadow: 0 30px 64px rgba(0,0,0,0.65); }
.wa .wa-card .name {
  font-family: 'Marcellus', serif; font-weight: 400;
  font-size: 19px; color: #f7f4ee; letter-spacing: 0.02em; margin-top: 20px;
}
.wa .wa-card .course {
  font-family: 'Cormorant', serif; font-style: italic;
  font-size: 17.5px; color: rgba(247,244,238,0.75); line-height: 1.45; margin-top: 6px;
}
.wa .wa-card .tag {
  display: inline-block;
  margin-top: 14px; padding-top: 8px;
  border-top: 1px solid rgba(224,192,116,0.5);
  font-family: 'Mulish', sans-serif; font-weight: 500;
  font-size: var(--home-tag); letter-spacing: 0.18em; text-transform: uppercase;
  color: #e0c074;
}

/* ===== CENTERED STORY ===== */
.wa .wa-lower { text-align: center; padding-top: 70px; max-width: 820px; margin: 0 auto; }
.wa .wa-title {
  font-family: 'Marcellus', serif; font-weight: 400;
  font-size: 40px; line-height: 1.15; color: #f7f4ee; letter-spacing: 0.03em;
}
.wa .wa-text {
  font-family: 'Cormorant', serif; font-style: italic;
  font-size: 23px; color: rgba(247,244,238,0.85); line-height: 1.65; margin-top: 24px;
}

/* ===== STATS ===== */
.wa .wa-statrow { display: flex; gap: 56px; justify-content: center; margin-top: 44px; }
.wa .wa-stat .n { font-family: 'Marcellus', serif; font-size: 40px; line-height: 0.9; color: #e0c074; }
.wa .wa-stat .l { font-size: var(--home-stat-label-sans); letter-spacing: 0.03em; color: rgba(247,244,238,0.7); line-height: 1.4; margin-top: 8px; max-width: 220px; margin-left: auto; margin-right: auto; }
.wa .wa-links { display: flex; gap: 34px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.wa .wa-link {
  font-family:'Mulish',sans-serif; font-weight:500;
  font-size: var(--home-caps-link); letter-spacing: 0.18em; text-transform: uppercase;
  color: #f7f4ee; text-decoration: none;
  border-bottom: 1px solid #e0c074; padding-bottom: 4px;
}

@media (max-width: 840px) {
  .wa { padding: 50px 24px 60px; }
  .wa .wa-frieze { grid-template-columns: repeat(2, 1fr); width: 100%; gap: 20px; }
  .wa .wa-label { width: 100%; }
  .wa .wa-lower { padding-top: 50px; }
  .wa .wa-title { font-size: 32px; }
  .wa .wa-text { font-size: 20px; }
  .wa .wa-statrow { gap: 32px; flex-wrap: wrap; }
}

/* ===========================================================================
 * block-15  —  conf-deco-topleft
 * ======================================================================== */
.conf-wrap {
  position: relative;
  z-index: 0;
}
.conf-deco-topleft {
  position: absolute;
  /* Was -20px (-10px on phones), which lifted the image's top edge over the
     bottom of the Wisdom Academy section above. Start it flush with the
     section instead. */
  top: 0;
  left: 50%;
  transform: translateX(-50vw);
  width: 460px;
  height: auto;
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 600px) {
  .conf-deco-topleft {
    width: 220px;
  }
}

/* Explore More cards (Conferences / Conversations / YouTube). The text ran to
   the card edges; inset everything below the full-bleed image. */
.conf-wrap .uagb-infobox__content-wrap { --card-inset: clamp(20px, 3vw, 32px); }
.conf-wrap .uagb-ifb-title-wrap,
.conf-wrap .uagb-ifb-desc,
.conf-wrap .uagb-ifb-button-wrapper {
  padding-inline: var(--card-inset);
  box-sizing: border-box; /* the title wrap is width: 100% */
}
.conf-wrap .uagb-ifb-button-wrapper { padding-bottom: 8px; }

/* The Conferences card was saved with a 100px image width for tablet and
   phone (Spectra, below 977px), so it shrank to a thumbnail while the other
   two cards stayed full width. Keep every card image full width at all sizes.
   The extra classes outrank Spectra's per-block selector without !important. */
.conf-wrap .wp-block-uagb-info-box.uagb-infobox__content-wrap .uagb-ifb-image-content img {
  width: 100%;
  height: auto;
}

/* "Visit Website" buttons (Spectra info boxes — Explore More and Tibetan
   Collections). Their text is white on a beige button, and Spectra turns the
   button white on hover and on focus, so the label vanished — and a clicked
   link keeps focus, so it stayed blank. Dark text reads on beige and on
   white. After a mouse click the button keeps its beige; keyboard focus
   still gets the white state plus an outline. */
.wp-block-uagb-info-box .uagb-ifb-button-wrapper .uagb-infobox-cta-link,
.wp-block-uagb-info-box .uagb-ifb-button-wrapper .uagb-infobox-cta-link:hover,
.wp-block-uagb-info-box .uagb-ifb-button-wrapper .uagb-infobox-cta-link:focus,
.wp-block-uagb-info-box .uagb-ifb-button-wrapper .uagb-infobox-cta-link:visited {
  color: #3b2a12;
}
.wp-block-uagb-info-box.uagb-infobox__content-wrap .wp-block-button.uagb-ifb-button-wrapper .uagb-infobox-cta-link.wp-block-button__link:focus:not(:focus-visible) {
  background-color: #ddc492;
}
.wp-block-uagb-info-box .uagb-ifb-button-wrapper .uagb-infobox-cta-link:focus-visible {
  outline: 2px solid #f7f4ee;
  outline-offset: 3px;
}

/* Conversations topics on one line, gold dot between each. The markup is
   rewritten from three <br>-separated lines in inc/home-2026.php. The row
   may use the card's full width (the negative margin undoes the inset), which
   is what keeps it to one line on a 1280px screen. */
.conf-wrap .cwc-topics {
  display: flex; flex-wrap: wrap; justify-content: center;
  column-gap: 0.4em; margin: 0.4em calc(-1 * var(--card-inset)) 0;
  font-size: 0.9em; white-space: nowrap;
}
.conf-wrap .cwc-topics span + span::before {
  content: '·'; color: #e0c074; font-weight: 700; margin-right: 0.4em;
}


/* ===========================================================================
 * Counters Block (ctrb/counters) — mobile overflow fix
 *
 * Not one of the Custom HTML blocks: this comes from the plugin, which emits
 * grid-template-columns: 200px 200px for its "2 columns on mobile" setting.
 * That is 400px of fixed track inside a 343px container, so the page scrolled
 * 421px at a 375px viewport and every section looked shifted right.
 *
 * Making the tracks fluid fixes it without touching the plugin. minmax(0, 1fr)
 * rather than 1fr so long counter labels can shrink instead of forcing the
 * track wide again.
 * ======================================================================== */
@media (max-width: 782px) {
	.wp-block-ctrb-counters .ctrbCounters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wp-block-ctrb-counters .ctrbCounters .counter {
		width: auto;
		min-width: 0;
	}
}


/* ===========================================================================
 * From WPCode snippet 28425, "Homepage Custom Styles (Home New 2026)"
 *
 * A pure-CSS snippet scoped by WPCode's conditional logic to this page's URL.
 * Its own header described the right intention — consolidating CSS for native
 * blocks, section by section — it was just kept in the database. Moved here so
 * it is version-controlled with the rest of the page's CSS; the snippet can be
 * deleted once this is live.
 * ======================================================================== */
/* ==========================================================================
   Homepage Custom Styles — Home New 2026
   Consolidated CSS for native WordPress blocks (no custom HTML/structure).
   Organized by homepage section as each one is converted.
   ========================================================================== */

/* --- Recent Translation Projects: card hover effect --- */
.tp-card {
  border: 1px solid rgba(224, 192, 116, 0.35);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.tp-card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 192, 116, 0.85);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.4);
}

.tp-card .wp-block-media-text__media img {
  transition: transform 0.6s ease;
}

.tp-card:hover .wp-block-media-text__media img {
  transform: scale(1.05);
}
