/* ==========================================================================
   agent-css-stmary-toccoa.css
   Agent-maintained site CSS for stmary-toccoa (church scope).
   One commented block per section. Every rule is scoped to the section's
   own class. Linked as a Gantry Page Settings CSS row (with ?v=).
   Do not edit by hand without updating the ?v= on the outline rows.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section: Mass band (Mass Schedule + Mass Intentions cards)
   Prefix: massband-   Ticket: SOL-31349 (2026-12-02)
   Block classes (Gantry #Home outline 33, header section):
     .massband-card .massband-schedule   -> article 55 (Mass Times)
     .massband-card .massband-intentions -> article 257 (Mass Intentions)
   Portable article wrapper: .massband-list (article 257 / template)
   -------------------------------------------------------------------------- */

/* Card row */
#g-header .g-block.massband-card {
  display: flex !important;
}
#g-header .g-block.massband-card > .g-content.g-particle {
  flex: 1 1 auto;
  margin: 1.5rem 0.75rem !important;
  padding: 2rem 2.25rem !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  color: #111 !important;
}
#g-header .g-block.massband-card .g-content .g-content {
  padding: 0 !important;
  margin: 0 !important;
}
#g-header .g-block.massband-card .g-array-item-text {
  color: #111 !important;
}

/* Card headings + text */
#g-header .g-block.massband-card h1.mt-big-title {
  font-size: 2.6rem !important;
  line-height: 1.1 !important;
  margin: 0 0 1rem !important;
  color: rgb(45, 126, 181) !important;
}
#g-header .g-block.massband-card h4 {
  color: #111 !important;
  margin: 1rem 0 0.35rem !important;
}
#g-header .g-block.massband-card p {
  color: #111 !important;
  margin: 0 0 0.5rem;
}
#g-header .g-block.massband-card a {
  color: rgb(45, 126, 181) !important;
  text-decoration: underline;
}
/* trailing editor line (<p>&nbsp;</p>) takes no room in the card */
#g-header .g-block.massband-card .massband-list ~ p:last-child {
  margin: 0 !important;
  line-height: 0 !important;
}

/* Phones / small tablets: cards stack full width */
@media (max-width: 50.99rem) {
  #g-header .g-block.massband-card {
    flex: 0 0 100% !important;
    width: 100% !important;
  }
  #g-header .g-block.massband-card > .g-content.g-particle {
    margin: 0.75rem 1rem !important;
    padding: 1.5rem !important;
  }
  #g-header .g-block.massband-card h1.mt-big-title {
    font-size: 2.1rem !important;
  }
}

/* Mass Intentions list — works in the home card and on /mass-intentions */
.massband-list ul {
  list-style: none !important;
  margin: 0.25rem 0 0.75rem !important;
  padding: 0 !important;
}
.massband-list ul > li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0.45rem 0 !important;
  border-bottom: 1px solid rgba(45, 126, 181, 0.2);
  line-height: 1.45;
}
.massband-list ul > li:last-child {
  border-bottom: 0;
}
.massband-list ul > li strong {
  color: rgb(45, 126, 181);
  margin-right: 0.35rem;
}
/* the article page already shows "Mass Intentions" as its page title */
.massband-list > h1.mt-big-title {
  display: none;
}
#g-header .g-block.massband-card .massband-list > h1.mt-big-title {
  display: block !important;
}

/* massband — match the original Mass Schedule box type (header section kit
   sets 400 weight / 2rem h4 / 1.1rem p). Added 2026-12-02, SOL-31349. */
#g-header .g-block.massband-card h1.mt-big-title,
#g-header .g-block.massband-card h4 {
  font-weight: 700 !important;
}
#g-header .g-block.massband-card h4 {
  font-size: 1.4rem !important;
}
#g-header .g-block.massband-card p,
#g-header .g-block.massband-card li {
  font-size: 1rem !important;
}

/* massband — ONE card (supersedes the two-card look above). The row that
   holds both .massband-card blocks is the card; the blocks inside are
   transparent with a divider. Placed above the quicklinks. 2026-12-02. */
#g-header .g-grid:has(> .g-block.massband-card) {
  margin: 2rem 0.75rem 1.5rem !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
#g-header .g-grid > .g-block.massband-card > .g-content.g-particle {
  margin: 0 !important;
  padding: 2rem 2.5rem !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
#g-header .g-grid > .g-block.massband-intentions > .g-content.g-particle {
  border-left: 1px solid rgba(45, 126, 181, 0.25);
}
@media (max-width: 50.99rem) {
  #g-header .g-grid:has(> .g-block.massband-card) {
    margin: 1rem !important;
  }
  #g-header .g-grid > .g-block.massband-card > .g-content.g-particle {
    padding: 1.5rem !important;
  }
  #g-header .g-grid > .g-block.massband-intentions > .g-content.g-particle {
    border-left: 0;
    border-top: 1px solid rgba(45, 126, 181, 0.25);
  }
}

/* --------------------------------------------------------------------------
   Section: Translate Control (prefix stm-tr) — SOL-31349, 2026-12-02
   Language menu under the header Toplinks "Translate" item.
   Script: /images/pub/agent-js-stmary-toccoa.js. Standard: kb/translate-control
   -------------------------------------------------------------------------- */
.ql-toplinks-studius .g-blockcontent-subcontent-block.stm-tr {
  position: relative !important;
  overflow: visible !important;
  cursor: pointer;
}
.ql-toplinks-studius .stm-tr .stm-tr-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1002;
  margin: 4px 0 0 !important;
  padding: 0.3rem 0 !important;
  list-style: none !important;
  min-width: 170px;
  max-width: 90vw;
  max-height: 60vh;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  text-align: left;
}
.ql-toplinks-studius .stm-tr.open .stm-tr-menu {
  display: block;
}
.ql-toplinks-studius .stm-tr .stm-tr-menu li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ql-toplinks-studius .stm-tr .stm-tr-menu button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.5em 1.1em;
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.95rem;
  text-transform: none;
  color: #222;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.ql-toplinks-studius .stm-tr .stm-tr-menu button:hover,
.ql-toplinks-studius .stm-tr .stm-tr-menu button:focus {
  background: rgba(45, 126, 181, 0.1);
}
.ql-toplinks-studius .stm-tr .stm-tr-menu button[aria-current="true"] {
  font-weight: 700;
  color: rgb(45, 126, 181);
}
.ql-toplinks-studius .stm-tr.stm-tr-busy {
  cursor: progress;
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   Home page edge alignment — SOL-31349, 2026-12-02
   Every home section container is 1440px max, centered on the same box as
   the hero swiper. The override.css insets differed (header 2vw/2rem, main
   1.8rem, expanded 5rem), so the edges did not line up. One shared inset:
   min(2vw, 2rem) on narrow screens, shrinking to 0 once the viewport is
   wider than 1440px, so content lines up with the hero's own edges.
   -------------------------------------------------------------------------- */
@media only screen and (min-width: 50.99rem) {
  body.site-home #g-header > .g-container,
  body.site-home #g-container-main > .g-container,
  body.site-home #g-expanded > .g-container,
  body.site-home #g-extension > .g-container {
    padding-left: max(0px, calc(min(2vw, 2rem) - max(0px, (100vw - 1440px) / 2))) !important;
    padding-right: max(0px, calc(min(2vw, 2rem) - max(0px, (100vw - 1440px) / 2))) !important;
  }
  /* Mass card spans the same width as the quicklinks (no extra side margin) */
  body.site-home #g-header .g-grid:has(> .g-block.massband-card) {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* Shorter quicklinks: 16:9 images instead of 4:3 */
  body.site-home #g-header .ql-underbite .g-blockcontent-subcontent-img {
    aspect-ratio: 16 / 9 !important;
  }
}
@media only screen and (max-width: 50.99rem) {
  body.site-home #g-header .g-grid:has(> .g-block.massband-card) {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Quicklinks match the Recent News image ratio (2.39:1, measured on
   .ph-sideway-stack images). Supersedes the 16:9 rule above. 2026-12-02. */
@media only screen and (min-width: 50.99rem) {
  body.site-home #g-header .ql-underbite .g-blockcontent-subcontent-img {
    aspect-ratio: 2.39 / 1 !important;
  }
}

/* REVERTED 2026-12-02: the 2.39:1 quicklink rule above is undone at Jeremy's
   request; quicklinks are back to 16:9. Drop both the 2.39 rule and this
   one at the next full rewrite of this file. */
@media only screen and (min-width: 50.99rem) {
  body.site-home #g-header .ql-underbite .g-blockcontent-subcontent-img {
    aspect-ratio: 16 / 9 !important;
  }
}
