/* TRINITY PUNCH-LIST FIXES (2026-11-12 / 11-13)
   Interim file: /images/pub/trinity-fixes.css, linked as the Base Page Settings row
   "Trinity Fixes (temporary)". The same rules are appended to the end of live/override.css.
   Delete this row once override.css is in /content/ and the "(temporary)" rows are removed. */

/************ HERO SIDE TABS — EXPAND WITH TITLE ************/
@media only screen and (min-width: 50.99rem) {
    .site-home #g-slideshow .trinity-side-tabs .g-blockcontent-subcontent {
        align-items: flex-end;
    }
    .site-home #g-slideshow .trinity-side-tabs .g-blockcontent-subcontent-block {
        display: flex;
        justify-content: flex-end;
    }
    .site-home #g-slideshow .trinity-side-tabs .g-blockcontent-subcontent-block-content {
        justify-content: flex-start;
        width: auto;
        min-width: min(4.6vw, 64px);
        padding: 0 calc((min(4.6vw, 64px) - min(2.2vw, 30px)) / 2);
        transform: none;
        transition: background-color .2s ease, box-shadow .2s ease;
    }
    .site-home #g-slideshow .trinity-side-tabs .g-blockcontent-subcontent-title-icon {
        flex: 0 0 auto;
        width: min(2.2vw, 30px);
        text-align: center;
        transition: color .2s ease;
    }
    /* the title is hidden until hover/focus, then slides out to the left of the page edge */
    .site-home #g-slideshow .trinity-side-tabs .g-blockcontent-subcontent-title {
        position: static;
        width: auto;
        height: auto;
        clip: auto;
        max-width: 0;
        margin: 0;
        opacity: 0;
        overflow: hidden;
        white-space: nowrap;
        transition: max-width .3s ease, margin .3s ease, opacity .2s ease;
    }
    .site-home #g-slideshow .trinity-side-tabs .g-blockcontent-subcontent-title-text {
        color: var(--default-white);
        font-family: var(--body-font-family);
        font-size: min(1.1vw, 1.05rem);
        font-weight: 700;
        letter-spacing: normal;
        text-transform: none;
    }
    .site-home #g-slideshow .trinity-side-tabs .g-blockcontent-subcontent-block-content:is(:hover, :focus-within) {
        width: auto;
        background: var(--trinity-royal);
        box-shadow: -.3rem .4rem 1rem rgba(var(--default-black-rgb), .28);
    }
    .site-home #g-slideshow .trinity-side-tabs .g-blockcontent-subcontent-block-content:is(:hover, :focus-within) .g-blockcontent-subcontent-title {
        max-width: 16rem;
        margin: 0 .35rem 0 .75rem;
        opacity: 1;
    }
    .site-home #g-slideshow .trinity-side-tabs .g-blockcontent-subcontent-block-content:is(:hover, :focus-within) .g-blockcontent-subcontent-title-icon {
        color: var(--trinity-gold);
    }
}
@media (prefers-reduced-motion: reduce) {
    .site-home #g-slideshow .trinity-side-tabs .g-blockcontent-subcontent-title {
        transition: none;
    }
}

/************ QUOTE BAND — BLURRED PHOTO, EDGE-TOUCHING TRIANGLES ************/
html body.site-home #g-feature.trinity-quote-section {
    background: var(--trinity-navy);
    isolation: isolate;
}
html body.site-home #g-feature.trinity-quote-section::before {
    content: '';
    position: absolute;
    inset: -30px;
    z-index: 0;
    background: url('/images/stories/template/site-design/bg-quote.jpg') center / cover no-repeat;
    filter: blur(9px);
}
html body.site-home #g-feature.trinity-quote-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(var(--primary-color-rgb), .88);
}
html body.site-home #g-feature.trinity-quote-section > .g-container {
    z-index: 1;
}
/* the PNGs carry transparent padding; shift each cluster so its triangles meet the edges */
#g-feature.trinity-quote-section .trinity-quote-wrapper::before {
    transform: translate(-8.9%, -24%);
}
#g-feature.trinity-quote-section .trinity-quote-wrapper::after {
    transform: translate(6.2%, 16.1%);
}
@media only screen and (max-width: 50.99rem) {
    #g-feature.trinity-quote-section .trinity-quote-wrapper::before {
        transform: translate(-8.9%, -24%);
    }
    #g-feature.trinity-quote-section .trinity-quote-wrapper::after {
        transform: translate(6.2%, 16.1%);
    }
}

/************ SCHOOL NEWS — VIEW ALL BUTTON (matches newsletter date buttons) ************/
.trinity-news-widget .trinity-news-more {
    display: flex;
    justify-content: center;
    margin: min(2vw, 1.75rem) 0 0;
}
.trinity-news-widget .button.trinity-news-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(17.5vw, 250px);
    min-height: min(3.4vw, 48px);
    margin: 0;
    padding: .4rem 1rem;
    background: var(--default-white);
    color: var(--trinity-navy);
    border: 3px solid var(--trinity-gold);
    border-radius: 8px;
    box-shadow: none;
    font-family: var(--body-font-family);
    font-size: min(1.25vw, 1.15rem);
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
    text-decoration: none;
    transition: background-color .2s ease;
}
.trinity-news-widget .button.trinity-news-button:hover,
.trinity-news-widget .button.trinity-news-button:focus-visible {
    background: var(--trinity-gold);
    color: var(--trinity-navy);
    box-shadow: none;
}
.trinity-news-widget .button.trinity-news-button:focus-visible {
    outline: 3px solid var(--trinity-navy);
    outline-offset: 2px;
}
@media only screen and (max-width: 50.99rem) {
    .trinity-news-widget .trinity-news-more {
        margin-top: 1.25rem;
    }
    .trinity-news-widget .button.trinity-news-button {
        width: min(62vw, 16rem);
        min-height: 3rem;
        font-size: 1.05rem;
    }
}

/************ PWA (STANDALONE) — KEEP THE MENU TOGGLE IN THE FIXED HEADER ************/
/* the browser-mode toggle offset must not apply in the installed app */
@media only screen and (max-width: 50.99rem) {
    @media (display-mode: standalone) {
        html body:has(#g-navigation.trinity-nav) .g-offcanvas-toggle {
            top: 0;
            left: 10pt;
            z-index: 1001;
        }
        /* the fixed PWA header carries the brand; drop the duplicate header band */
        html body #g-navigation.trinity-nav .trinity-navigation {
            display: none;
        }
    }
}

/************ NEWSLETTER — STATIC COVER + BUTTON (opens the Smore newsletter) ************/
.trinity-newsletter-cover-link {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 .5rem 1.25rem rgba(var(--primary-color-rgb), .2);
    transition: transform .2s ease, box-shadow .2s ease;
}
.trinity-newsletter-cover-link img {
    display: block;
    width: 100%;
    aspect-ratio: 85 / 100;
    height: auto;
    object-fit: cover;
    object-position: center top;
}
.trinity-newsletter-cover-link:focus-visible {
    outline: 3px solid var(--trinity-gold);
    outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
    .trinity-newsletter-cover-link:hover {
        transform: translateY(-4px);
        box-shadow: 0 .9rem 1.75rem rgba(var(--primary-color-rgb), .28);
    }
}
.trinity-newsletter-dates .button.trinity-newsletter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: min(3.4vw, 48px);
    margin: 0;
    padding: .4rem 1rem;
    background: var(--default-white);
    color: var(--trinity-navy);
    border: 3px solid var(--trinity-gold);
    border-radius: 8px;
    box-shadow: none;
    font-family: var(--body-font-family);
    font-size: min(1.25vw, 1.15rem);
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.2;
    text-align: center;
    text-transform: none;
    text-decoration: none;
    transition: background-color .2s ease;
}
.trinity-newsletter-dates .button.trinity-newsletter-button:hover,
.trinity-newsletter-dates .button.trinity-newsletter-button:focus-visible {
    background: var(--trinity-gold);
    color: var(--trinity-navy);
    box-shadow: none;
}
.trinity-newsletter-dates .button.trinity-newsletter-button:focus-visible {
    outline: 3px solid var(--trinity-navy);
    outline-offset: 2px;
}
@media only screen and (max-width: 50.99rem) {
    .trinity-newsletter-dates .button.trinity-newsletter-button {
        min-height: 3rem;
        font-size: 1.05rem;
    }
}

/************ HERO — MOCKUP 1 FULL-WIDTH PHOTO (2026-11-13) ************/
/* the hero copy particle now only carries "Watch Full Video", overlaid lower-right */
.trinity-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
html body.site-home #g-slideshow.trinity-home-hero {
    --slideshow-height: min(50.7vw, 730px);
}
html body.site-home #g-slideshow.trinity-home-hero > .g-container {
    width: 100%;
    max-width: 100% !important;
    padding: 0 !important;
}
html body.site-home #g-slideshow.trinity-home-hero > .g-container > .g-grid:has(#rotate-addpic) {
    position: relative;
    min-height: 0;
}
html body.site-home #g-slideshow.trinity-home-hero #rotate-addpic {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}
html body.site-home #g-slideshow.trinity-home-hero .trinity-hero-copy {
    position: absolute;
    right: min(3vw, 44px);
    bottom: min(5.2vw, 76px);
    z-index: 3;
    flex: none;
    width: auto;
    max-width: 70%;
    height: auto;
    background: transparent;
}
html body.site-home #g-slideshow.trinity-home-hero .trinity-hero-copy :is(.g-content, .g-content-array, .g-grid, .g-block, .g-array-item) {
    height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
}
.trinity-hero-wrapper.trinity-hero-overlay {
    display: block;
    height: auto;
    padding: 0;
}
.trinity-hero-overlay .trinity-hero-video {
    margin: 0 !important;
}
.trinity-hero-overlay .trinity-hero-video a {
    color: var(--default-white);
    font-family: var(--title-font-family);
    font-size: min(3.1vw, 2.85rem);
    font-weight: 700;
    letter-spacing: var(--trinity-heading-tracking);
    line-height: 1.1;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 3px;
    text-underline-offset: .2em;
    text-shadow: 0 2px 10px rgba(var(--default-black-rgb), .55);
    transition: color .2s ease, text-decoration-color .2s ease;
}
.trinity-hero-overlay .trinity-hero-video a:hover,
.trinity-hero-overlay .trinity-hero-video a:focus-visible {
    color: var(--default-white);
    text-decoration-color: var(--trinity-gold);
}
.trinity-hero-overlay .trinity-hero-video a:focus-visible {
    outline: 3px solid var(--trinity-gold);
    outline-offset: 6px;
}
/* quicklinks span the width shown in mockup 1 */
html body.site-home #g-slideshow .trinity-quicklinks .g-blockcontent-subcontent {
    width: min(93vw, 1320px);
}
html body.site-home #g-slideshow .trinity-side-tabs {
    top: min(15vw, 216px);
}
@media only screen and (max-width: 50.99rem) {
    html body.site-home #g-slideshow.trinity-home-hero {
        --slideshow-height: 62vw;
        --slideshow-height-mobile: 62vw;
    }
    html body.site-home #g-slideshow.trinity-home-hero > .g-container {
        padding: 0 !important;
    }
    html body.site-home #g-slideshow.trinity-home-hero > .g-container > .g-grid:has(#rotate-addpic) {
        flex-direction: row;
    }
    html body.site-home #g-slideshow.trinity-home-hero .trinity-hero-copy {
        right: 5vw;
        bottom: 2.6rem;
        max-width: 90%;
    }
    .trinity-hero-overlay .trinity-hero-video a {
        font-size: clamp(1.05rem, 5vw, 1.4rem);
        letter-spacing: .09em;
    }
    html body.site-home #g-slideshow .trinity-quicklinks .g-blockcontent-subcontent {
        width: 100%;
    }
}

/************ HERO — CAPPED AT THE PAGE MAX WIDTH, ALWAYS 16:9 (2026-11-13) ************/
html body.site-home #g-slideshow.trinity-home-hero {
    --trinity-hero-width: min(100%, var(--site-container-max-width, 1440px));
    --slideshow-height: auto;
    --slideshow-height-mobile: auto;
}
html body.site-home #g-slideshow.trinity-home-hero > .g-container {
    width: var(--trinity-hero-width);
    max-width: var(--site-container-max-width, 1440px) !important;
    margin: 0 auto;
    padding: 0 !important;
}
html body.site-home #g-slideshow.trinity-home-hero #rotate-addpic,
html body.site-home #g-slideshow.trinity-home-hero #rotate-addpic :is(.g-content, .g-swiper, .swiper-wrapper, .swiper-slide) {
    height: auto;
}
html body.site-home #g-slideshow.trinity-home-hero #rotate-addpic .swiper-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}
/* the copy block now only carries the visually hidden page heading */
html body.site-home #g-slideshow.trinity-home-hero .trinity-hero-copy {
    pointer-events: none;
}
@media only screen and (max-width: 50.99rem) {
    html body.site-home #g-slideshow.trinity-home-hero > .g-container {
        width: 100%;
    }
}

/************ HERO — ROTATOR FILLS THE SECTION, QUICKLINKS HANG INTO THE NEXT SECTION (2026-11-13) ************/
@media only screen and (min-width: 50.99rem) {
    html body.site-home #g-slideshow.trinity-home-hero {
        --section-slideshow-bg: transparent;
        z-index: 6;
        padding: 0 !important;
        background: transparent;
    }
    html body.site-home #g-slideshow.trinity-home-hero > .g-container > .g-grid:has(.trinity-quicklinks) {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 6;
        margin: 0;
        transform: translateY(50%);
    }
    html body.site-home #g-slideshow.trinity-home-hero .trinity-quicklinks {
        margin-top: 0;
    }
    /* room for the overhanging half of the quicklinks */
    html body.site-home #g-above.trinity-mission-section > .g-container {
        padding-top: calc(min(4.5vw, 4.5rem) + min(2.4vw, 37px)) !important;
    }
}

/* Welcome: static article beside image-only carousel. Supersedes inset slide layout. */
.site-home #g-expanded.trinity-feature-section > .g-container {
 width:100%; max-width:100% !important; padding:0 !important;
}
.trinity-feature-section > .g-container > .g-grid:has(.trinity-welcome-static) {
 align-items:stretch; background:var(--trinity-royal); margin:0;
}
.trinity-feature-section .trinity-feature { min-width:0; }
.trinity-feature-section .trinity-feature > .g-content { margin:0; padding:0; height:100%; }
.trinity-feature-section .trinity-feature .g-swiper { height:100%; border-radius:0; }
.trinity-feature-section .trinity-feature .swiper-slide {
 padding:0; gap:0; min-height:100%; height:auto; align-items:stretch;
}
.trinity-feature-section .trinity-feature .swiper-slide > img {
 position:absolute; inset:0; width:100%; height:100%; max-height:none;
 aspect-ratio:auto; object-fit:cover; border-radius:0; flex:none;
}
.trinity-feature-section .trinity-feature .swiper-slide .slide { display:none !important; }
.trinity-feature-section .trinity-welcome-static > .g-content {
 height:auto; padding:clamp(2rem,4vw,4rem); margin:0;
}
.trinity-welcome-static :is(.g-content-array,.g-grid,.g-block,.g-array-item) {
 margin:0; padding:0;
}
.trinity-welcome-static .g-array-item-image { display:none; }
.trinity-welcome-static .trinity-feature-copy p { font-size:clamp(1rem,1.05vw,1.125rem); }
.trinity-welcome-static .trinity-feature-title { font-size:clamp(1.6rem,2.2vw,2rem); }
.trinity-welcome-static .trinity-feature-buttons { gap:.8rem; margin-top:1.75rem; }
.trinity-welcome-static .button.trinity-feature-button { width:min(100%,20rem); min-height:3rem; font-size:1rem; }
@media (max-width:50.99rem) {
 .trinity-feature-section > .g-container > .g-grid:has(.trinity-welcome-static) { flex-direction:column; }
 .trinity-feature-section .trinity-feature { width:100%; flex:0 0 auto; }
 .trinity-feature-section .trinity-feature:not(.trinity-welcome-static) .g-swiper { height:65vw; min-height:16rem; }
 .trinity-feature-section .trinity-feature .swiper-navigation [class*="swiper-button-"] { top:50%; }
}

/* Outrank the later inline build container rule. */
html body.site-home #g-expanded.trinity-feature-section > .g-container { width:100% !important; max-width:100% !important; padding:0 !important; margin:0 !important; }

/**************************************************************/
/************ TESTIMONIALS CAROUSEL — photo + quote ***********/
/**************************************************************/
/* 2026-11-25: category 54 is now the family testimonials (one photo + one
   quote per slide). This block supersedes the image-only "Welcome beside
   carousel" rules further up: the quote renders again beside the photo, and
   each slide grows to fit it. Specificity + !important beat both the build
   style block and the shared slideshow kit (which absolutely positions the
   slide image and hides the text body). */
html body.site-home #g-expanded.trinity-feature-section .trinity-feature .g-swiper {
  height: auto !important;
  background: var(--trinity-royal);
}
html body.site-home #g-expanded.trinity-feature-section .trinity-feature .swiper-slide {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: clamp(1.5rem, 4vw, 4rem) !important;
  min-height: clamp(18rem, 39.5vw, 569px) !important;
  height: auto !important;
  padding: clamp(1.75rem, 4.3vw, 62px) clamp(1.5rem, 7.5vw, 106px) clamp(2.5rem, 5vw, 74px) clamp(1.5rem, 6.6vw, 94px) !important;
  box-sizing: border-box !important;
  background: var(--trinity-royal) !important;
}
html body.site-home #g-expanded.trinity-feature-section .trinity-feature .swiper-slide > img {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  flex: 0 0 47% !important;
  width: 47% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 8px !important;
  box-shadow: 0 .6rem 1.6rem rgba(var(--default-black-rgb), .28);
}
html body.site-home #g-expanded.trinity-feature-section .trinity-feature .swiper-slide .slide {
  display: block !important;
  position: static !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: auto !important;
  background: none !important;
}
html body.site-home #g-expanded.trinity-feature-section .trinity-feature .swiper-slide .slide-content-wrapper,
html body.site-home #g-expanded.trinity-feature-section .trinity-feature .swiper-slide .slide-content {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  transform: none !important;
  text-align: center !important;
  color: var(--default-white) !important;
}
html body.site-home #g-expanded.trinity-feature-section .trinity-feature .swiper-slide .slide-content p {
  max-width: 34rem;
  margin: 0 auto clamp(.7rem, 1.1vw, 1rem) !important;
  color: var(--default-white) !important;
  font-family: var(--body-font-family);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.55;
}
html body.site-home #g-expanded.trinity-feature-section .trinity-feature .swiper-slide .slide-content p:last-child {
  margin-bottom: 0 !important;
  font-style: italic;
  font-weight: 700;
}
@media only screen and (max-width: 50.99rem) {
  html body.site-home #g-expanded.trinity-feature-section .trinity-feature .g-swiper {
    height: auto !important;
    min-height: 0 !important;
  }
  html body.site-home #g-expanded.trinity-feature-section .trinity-feature .swiper-slide {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.25rem !important;
    min-height: 0 !important;
    padding: 1.25rem 7vw 2.5rem !important;
  }
  html body.site-home #g-expanded.trinity-feature-section .trinity-feature .swiper-slide > img {
    flex: 0 0 auto !important;
    width: 100% !important;
  }
  html body.site-home #g-expanded.trinity-feature-section .trinity-feature .swiper-slide .slide-content p {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/************ ROTATOR PAGINATION — CLEAR OF THE QUICKLINKS (2026-12-04) ************/
/* The quicklinks row straddles the hero's bottom edge (translateY(50%) on desktop,
   a negative margin under 51rem), so the rotator's bullets were being covered by
   the cards. Lift the pagination clear of that overhang. The container's own
   bullets sit ~2rem above its bottom edge, which is already in the numbers. */
html body.site-home #g-slideshow.trinity-home-hero #rotate-addpic [class^="swiper-pagination-parent"] {
    bottom: calc(min(2.4vw, 34px) + 1.6rem) !important;
}
@media only screen and (max-width: 50.99rem) {
    html body.site-home #g-slideshow.trinity-home-hero #rotate-addpic [class^="swiper-pagination-parent"] {
        bottom: 2.5rem !important;
    }
}

/************ QUICKLINK "LUNCH MENU" — SOLID CARD (2026-12-04) ************/
/* The first quicklink was left at 80% alpha in the build style block, so it read as
   washed out next to the other four solid cards. Same tokens, full opacity. */
html body.site-home .trinity-quicklinks .trinity-ql-lunch .g-blockcontent-subcontent-block-content,
html body.site-home .trinity-quicklinks .g-blockcontent-subcontent-block:first-child .g-blockcontent-subcontent-block-content {
    background: var(--trinity-royal) !important;
    border-color: var(--trinity-gold) !important;
}
@media (hover: hover) and (pointer: fine) {
    html body.site-home .trinity-quicklinks .trinity-ql-lunch .g-blockcontent-subcontent-block-content:hover,
    html body.site-home .trinity-quicklinks .g-blockcontent-subcontent-block:first-child .g-blockcontent-subcontent-block-content:hover {
        background: var(--trinity-navy) !important;
    }
}
