/**
 * Block Templates — CSS Overrides
 *
 * Styles for templates that need visual changes beyond
 * what existing block attributes can achieve.
 * Each section is for a specific block + template combination.
 */


/* ═══════════════════════════════════════════════════════════════
   HERO BLOCK
   ═══════════════════════════════════════════════════════════════ */

/* Minimal — short hero, hides paragraph and CTA */
.hero-block--tpl-minimal .paragraph,
.hero-block--tpl-minimal .hero-content a {
  display: none;
}

/* Banner — very short divider, title only */
.hero-block--tpl-banner .paragraph,
.hero-block--tpl-banner .hero-content a {
  display: none;
}
.hero-block--tpl-banner .hero-content {
  padding: 16px 24px;
}
.hero-block--tpl-banner .hero-content h1,
.hero-block--tpl-banner .hero-content h2,
.hero-block--tpl-banner .hero-content h3,
.hero-block--tpl-banner .hero-content h4,
.hero-block--tpl-banner .hero-content h5,
.hero-block--tpl-banner .hero-content h6 {
  font-size: 1.4rem;
  margin: 0;
}


/* ═══════════════════════════════════════════════════════════════
   SMALL IMAGE TEXT BLOCK
   ═══════════════════════════════════════════════════════════════ */

/* Compact — tighter padding, smaller image */
.sitb--tpl-compact .small-image-text-block__image {
  max-height: 120px;
}
.sitb--tpl-compact .small-image-text-block__text {
  padding: 12px 16px;
}

/* Text Only — hide image area entirely */
.sitb--tpl-text-only .small-image-text-block__image {
  display: none;
}


/* ═══════════════════════════════════════════════════════════════
   QUOTE BLOCK
   ═══════════════════════════════════════════════════════════════ */

/* Highlighted — yellow background card */
.quote-block--tpl-highlighted {
  background-color: var(--color-accent, #ffc556);
  padding: 24px 32px;
  border-radius: 4px;
}

/* Large — bigger font, centered */
.quote-block--tpl-large blockquote,
.quote-block--tpl-large .quote-block__text {
  font-size: 1.4em;
  text-align: center;
  line-height: 1.6;
}
.quote-block--tpl-large .quote-block__author {
  text-align: center;
}


/* ═══════════════════════════════════════════════════════════════
   INGRESS BLOCK
   ═══════════════════════════════════════════════════════════════ */

/* Large — bigger font, more spacing */
.ingress-block--tpl-large {
  font-size: 1.3em;
  line-height: 1.7;
  margin-top: 2rem;
  margin-bottom: 2rem;
}


/* ═══════════════════════════════════════════════════════════════
   CONTACTS BLOCK
   ═══════════════════════════════════════════════════════════════ */

/* Compact — smaller cards */
.contacts-block--tpl-compact .contact-card {
  padding: 12px;
}
.contacts-block--tpl-compact .contact-card img {
  width: 60px;
  height: 60px;
}
.contacts-block--tpl-compact .contact-card__name {
  font-size: 0.9em;
}

/* Highlighted — yellow accent border-top */
.contacts-block--tpl-highlighted .contact-card {
  border-top: 3px solid var(--color-accent, #ffc556);
}


/* ═══════════════════════════════════════════════════════════════
   LINKED TEXT BLOCK
   ═══════════════════════════════════════════════════════════════ */

/* Outlined — white bg with colored left border */
.linked-text--tpl-outlined .linked-text-card {
  background-color: #ffffff !important;
  border-left: 4px solid var(--color-accent, #ffc556);
  color: var(--color-text, #333);
}
.linked-text--tpl-outlined .linked-text-card a {
  color: var(--color-text, #333);
}

/* Dark — dark card backgrounds */
.linked-text--tpl-dark .linked-text-card {
  background-color: #333333 !important;
  color: #ffffff;
}
.linked-text--tpl-dark .linked-text-card a {
  color: #ffffff;
}


/* ═══════════════════════════════════════════════════════════════
   LOGO BANNER BLOCK
   ═══════════════════════════════════════════════════════════════ */

/* Compact — smaller logos, tighter */
.logo-banner--tpl-compact .logo-banner-item img {
  max-height: 40px;
}
.logo-banner--tpl-compact .logo-banner-row {
  gap: 16px;
}

/* Bordered — border around each logo */
.logo-banner--tpl-bordered .logo-banner-item {
  border: 1px solid var(--color-border, #c2c2c2);
  border-radius: 4px;
  padding: 12px 16px;
}


/* ═══════════════════════════════════════════════════════════════
   LIST BLOCK
   ═══════════════════════════════════════════════════════════════ */

/* Highlighted — yellow background */
.list-block--tpl-highlighted {
  background-color: var(--color-accent, #ffc556);
  padding: 24px 32px;
  border-radius: 4px;
}

/* Card — each item in a card */
.list-block--tpl-card .list-block__item {
  border: 1px solid var(--color-border, #c2c2c2);
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 8px;
}


/* ═══════════════════════════════════════════════════════════════
   NEWS BLOCK
   ═══════════════════════════════════════════════════════════════ */

/* Compact — tighter spacing */
.news-block--tpl-compact .nb-items {
  gap: 12px;
}
.news-block--tpl-compact .nb-card {
  padding: 12px;
}
.news-block--tpl-compact .nb-card__image img {
  max-height: 140px;
}


/* ═══════════════════════════════════════════════════════════════
   EVENTS BLOCK
   ═══════════════════════════════════════════════════════════════ */

/* Compact — tighter spacing */
.events-block-v2--tpl-compact .eb-items {
  gap: 12px;
}
.events-block-v2--tpl-compact .eb-card {
  padding: 12px;
}
.events-block-v2--tpl-compact .eb-card__image img {
  max-height: 140px;
}


/* ═══════════════════════════════════════════════════════════════
   RELATED CONTENT BLOCK
   ═══════════════════════════════════════════════════════════════ */

/* Highlighted — yellow accent background */
.related-content--tpl-highlighted {
  background-color: var(--color-accent, #ffc556);
  padding: 24px;
  border-radius: 4px;
}

/* Bordered — border + shadow around each column */
.related-content--tpl-bordered .related-content__col {
  border: 1px solid var(--color-border, #c2c2c2);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  padding: 16px;
}


/* ═══════════════════════════════════════════════════════════════
   EXPANDABLE CONTENT BLOCK
   ═══════════════════════════════════════════════════════════════ */

/* Bordered — card-like border */
.expandable--tpl-bordered {
  border: 1px solid var(--color-border, #c2c2c2);
  border-radius: 4px;
  padding: 16px;
}

/* Highlighted — yellow accent on toggle header */
.expandable--tpl-highlighted .expandable-content__toggle,
.expandable--tpl-highlighted .expandable-content-block__toggle {
  background-color: var(--color-accent, #ffc556);
  padding: 12px 16px;
  border-radius: 4px;
}


/* ═══════════════════════════════════════════════════════════════
   GUIDE HERO BLOCK
   ═══════════════════════════════════════════════════════════════ */

/* Dark — dark overlay */
.guide-hero--tpl-dark .guide-hero__content {
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
}
.guide-hero--tpl-dark .guide-hero__content h1,
.guide-hero--tpl-dark .guide-hero__content h2,
.guide-hero--tpl-dark .guide-hero__content h3 {
  color: #ffffff;
}

/* Compact — reduced height */
.guide-hero--tpl-compact {
  min-height: auto;
}
.guide-hero--tpl-compact .guide-hero__number {
  font-size: 48px;
}


/* ═══════════════════════════════════════════════════════════════
   SUBSCRIBE BLOCK
   ═══════════════════════════════════════════════════════════════ */

/* Dark — dark background */
.subscribe--tpl-dark {
  background-color: #333333;
  color: #ffffff;
  padding: 32px;
  border-radius: 4px;
  border-top-color: #555;
}
.subscribe--tpl-dark h1,
.subscribe--tpl-dark h2,
.subscribe--tpl-dark h3,
.subscribe--tpl-dark p {
  color: #ffffff;
}

/* Compact — inline layout */
.subscribe--tpl-compact {
  padding: 16px 0;
}
.subscribe--tpl-compact .newsletter-module {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.subscribe--tpl-compact .newsletter-module h2 {
  margin: 0;
  font-size: 1.1em;
  white-space: nowrap;
}
.subscribe--tpl-compact .newsletter-module .ingress {
  display: none;
}


/* ═══════════════════════════════════════════════════════════════
   MEMBERSHIP CARD BLOCK
   ═══════════════════════════════════════════════════════════════ */

/* Featured — larger, accent border */
.membership-card--tpl-featured {
  transform: scale(1.03);
  border: 2px solid var(--color-accent, #ffc556);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  position: relative;
}

/* Compact — smaller */
.membership-card--tpl-compact {
  padding: 16px;
}
.membership-card--tpl-compact .membership-card__price {
  font-size: 1.4em;
}


/* ═══════════════════════════════════════════════════════════════
   JOB LISTINGS BLOCK
   ═══════════════════════════════════════════════════════════════ */

/* Compact — tighter rows */
.job-listings--tpl-compact .jl-item {
  padding: 8px 12px;
}
.job-listings--tpl-compact .jl-item__title {
  font-size: 0.9em;
}

/* Card — bordered cards */
.job-listings--tpl-card .jl-item {
  border: 1px solid var(--color-border, #c2c2c2);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 12px;
}


/* ═══════════════════════════════════════════════════════════════
   INITIATIVES BLOCK
   ═══════════════════════════════════════════════════════════════ */

/* Compact — tighter */
.initiatives--tpl-compact .initiative-card {
  padding: 12px;
}

/* List — horizontal rows */
.initiatives--tpl-list .initiatives-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.initiatives--tpl-list .initiative-card {
  border-bottom: 1px solid var(--color-border, #c2c2c2);
  border-radius: 0;
}


/* ═══════════════════════════════════════════════════════════════
   ORGANIZATION LIST BLOCK
   ═══════════════════════════════════════════════════════════════ */

/* Compact — smaller cards */
.org-list--tpl-compact .ol-card {
  padding: 12px;
}
.org-list--tpl-compact .ol-card__logo {
  max-height: 40px;
}

/* Detailed — show description */
.org-list--tpl-detailed .ol-card__description {
  display: block !important;
}


/* ═══════════════════════════════════════════════════════════════
   RSS FEED BLOCK
   ═══════════════════════════════════════════════════════════════ */

/* Compact — smaller items */
.rss-feed--tpl-compact .rss-item {
  padding: 8px 0;
}
.rss-feed--tpl-compact .rss-item__title {
  font-size: 0.9em;
}

/* Card — bordered cards */
.rss-feed--tpl-card .rss-item {
  border: 1px solid var(--color-border, #c2c2c2);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 12px;
}
