/* =====================================================================================
   SECTION STYLE OPTIONS (SECSTYLE-20261128, owner-approved spec) - small settings on top of a
   section style (css/section-styles.css). Each value is a class TOKEN stored next to the style in
   tbl_Sections.CustomClass; no token = today's look, so every existing page is unchanged.
   Registry (labels, which style offers which option): js/section-style-options.js
     a1s-h-sm | (none = medium) | a1s-h-lg          page-header height              (a1s-pagehead)
     a1s-cols-2 | a1s-cols-3 | a1s-cols-4 | (none)  cards per row on a computer      (a1s-cards, a1s-iconcards, a1s-news, a1s-albums)
     a1s-acc-primary | -secondary | -accent | -warm accent colour from the THEME     (every a1s-* style)
   ===================================================================================== */

/* ---------------- accent colour: one of the theme's own colours, for this section only ---------------- */
.site-section.a1s-acc-primary   { --a1s-hi: var(--primary, #15803D); }
.site-section.a1s-acc-secondary { --a1s-hi: var(--secondary, #14532D); }
.site-section.a1s-acc-accent    { --a1s-hi: var(--accent, #DDB037); }
.site-section.a1s-acc-warm      { --a1s-hi: var(--accent-warm, #F97316); }

/* ---------------- page-header height ---------------- */
.site-section.a1s-pagehead.a1s-h-sm { min-height: 180px !important; }
.site-section.a1s-pagehead.a1s-h-sm .a1-hero-content { padding: 22px 0; }
.site-section.a1s-pagehead.a1s-h-sm .a1-hero-heading { font-size: 2.2rem; }
.site-section.a1s-pagehead.a1s-h-lg { min-height: 380px !important; }
.site-section.a1s-pagehead.a1s-h-lg .a1-hero-content { padding: 64px 0; }
/* a long title always stays whole: it wraps, never clips or overflows */
.site-section.a1s-pagehead .a1-hero-heading { overflow-wrap: anywhere; }
@media (max-width: 767.98px) {
  /* phone: the height is the photo band on top; the text below is never cut, whatever its length */
  .site-section.a1s-pagehead.a1s-h-sm.has-bg-media { padding-top: 125px !important; background-size: 100% 140px !important; }
  .site-section.a1s-pagehead.a1s-h-sm::after, [dir="ltr"] .site-section.a1s-pagehead.a1s-h-sm::after { background: linear-gradient(to bottom, transparent 0, transparent 85px, var(--a1s-card) 140px) !important; }
  .site-section.a1s-pagehead.a1s-h-sm .hero-slideshow, .site-section.a1s-pagehead.a1s-h-sm .section-overlay { height: 140px !important; }
  .site-section.a1s-pagehead.a1s-h-sm .a1-hero-heading { font-size: 1.7rem; }
  .site-section.a1s-pagehead.a1s-h-lg.has-bg-media { padding-top: 225px !important; background-size: 100% 240px !important; }
  .site-section.a1s-pagehead.a1s-h-lg::after, [dir="ltr"] .site-section.a1s-pagehead.a1s-h-lg::after { background: linear-gradient(to bottom, transparent 0, transparent 170px, var(--a1s-card) 240px) !important; }
  .site-section.a1s-pagehead.a1s-h-lg .hero-slideshow, .site-section.a1s-pagehead.a1s-h-lg .section-overlay { height: 240px !important; }
  .site-section.a1s-pagehead.a1s-h-sm .a1-hero-content, .site-section.a1s-pagehead.a1s-h-lg .a1-hero-content { padding: 0 0 24px; }
}

/* ---------------- cards per row (computer); tablet and phone adapt so text and buttons stay readable ---------------- */
.site-section.a1s-cols-2 .col-lg-12 > .row:not(.justify-content-center) > [class*="col"],
.site-section.a1s-cols-3 .col-lg-12 > .row:not(.justify-content-center) > [class*="col"],
.site-section.a1s-cols-4 .col-lg-12 > .row:not(.justify-content-center) > [class*="col"] { flex: 0 0 auto !important; }
@media (min-width: 992px) {
  .site-section.a1s-cols-2 .col-lg-12 > .row:not(.justify-content-center) > [class*="col"] { width: 50% !important; max-width: 50% !important; }
  .site-section.a1s-cols-3 .col-lg-12 > .row:not(.justify-content-center) > [class*="col"] { width: 33.3333% !important; max-width: 33.3333% !important; }
  .site-section.a1s-cols-4 .col-lg-12 > .row:not(.justify-content-center) > [class*="col"] { width: 25% !important; max-width: 25% !important; }
}
@media (min-width: 576px) and (max-width: 991.98px) {   /* tablet: never more than two side by side */
  .site-section.a1s-cols-2 .col-lg-12 > .row:not(.justify-content-center) > [class*="col"],
  .site-section.a1s-cols-3 .col-lg-12 > .row:not(.justify-content-center) > [class*="col"],
  .site-section.a1s-cols-4 .col-lg-12 > .row:not(.justify-content-center) > [class*="col"] { width: 50% !important; max-width: 50% !important; }
}
@media (max-width: 575.98px) {   /* phone: one per row */
  .site-section.a1s-cols-2 .col-lg-12 > .row:not(.justify-content-center) > [class*="col"],
  .site-section.a1s-cols-3 .col-lg-12 > .row:not(.justify-content-center) > [class*="col"],
  .site-section.a1s-cols-4 .col-lg-12 > .row:not(.justify-content-center) > [class*="col"] { width: 100% !important; max-width: 100% !important; }
}
