/* ==========================================================================
   Breakdance FAQ widget, styled to the concept's .acc accordion.

   The widget is used instead of concept markup because it emits FAQPage schema
   (enable_schema), which clg-core lost when the old custom_faq_schema function
   was retired. The trade is that it renders its own bde-faq__* markup, so the
   concept's .acc rules are restated against those classes here.
   ========================================================================== */

.faq-list .bde-frequently-asked-questions{border:0}
.faq-list .bde-frequently-asked-questions .bde-faq__item{border:0;border-top:1px solid var(--hair);border-radius:0;background:none;margin:0;padding:0}
.faq-list .bde-frequently-asked-questions .bde-faq__item:last-child{border-bottom:1px solid var(--hair)}
.faq-list .bde-frequently-asked-questions .bde-faq__title-tag{margin:0}
.faq-list .bde-frequently-asked-questions .bde-faq__question{all:unset;box-sizing:border-box;width:100%;display:grid;grid-template-columns:36px minmax(0,1fr) 22px;gap:16px;align-items:center;padding:24px 0;cursor:pointer;background:none;border:0;counter-increment:clgfaq}
.faq-list .bde-frequently-asked-questions .bde-faq__title{font-family:var(--head);font-size:clamp(17px, 16px + .3vw, 20px);font-weight:500;line-height:1.4;letter-spacing:-.015em;color:var(--navy-900);transition:color var(--t) var(--ease-out)}
.faq-list .bde-frequently-asked-questions .bde-faq__icon{width:22px;height:22px;display:grid;place-items:center;color:var(--slate);transition:transform var(--t) var(--ease-out), color var(--t) var(--ease-out)}
.faq-list .bde-frequently-asked-questions .bde-faq__icon svg{width:16px;height:16px;fill:currentColor}
.faq-list .bde-frequently-asked-questions .bde-faq__icon--active{display:none}
.faq-list .bde-frequently-asked-questions .bde-faq__question[aria-expanded="true"] .bde-faq__icon--inactive{transform:rotate(45deg);color:var(--navy-900)}
.faq-list .bde-frequently-asked-questions .bde-faq__answer,.faq-list .bde-frequently-asked-questions .bde-faq__content{padding:0;border:0;background:none}
.faq-list .bde-frequently-asked-questions .bde-faq__answer p,.faq-list .bde-frequently-asked-questions .bde-faq__content p{padding:0 0 14px;margin:0;font-family:var(--body);font-size:var(--fs-body);line-height:1.65;color:var(--slate);max-width:64ch}
.faq-list .bde-frequently-asked-questions .bde-faq__answer p:last-child,.faq-list .bde-frequently-asked-questions .bde-faq__content p:last-child{padding-bottom:26px}
@media (hover:hover) and (pointer:fine){.faq-list .bde-frequently-asked-questions .bde-faq__question:hover .bde-faq__title{color:var(--cyan-ink)}.faq-list .bde-frequently-asked-questions .bde-faq__question:hover .bde-faq__icon{color:var(--navy-900)}}

/* ---- FAQ headshot group ----------------------------------------------
   The concept has the images as direct children of .fq-av, so .fq-av{display:
   flex} and .fq-av img+img{margin-left:-10px} overlap them. The shortcode adds
   a .bde-shortcode wrapper in between, which becomes the only flex child and
   leaves the images stacking as blocks. display:contents removes the wrapper
   from the layout so the concept's rules apply again.
   -------------------------------------------------------------------- */

.fq-av > .bde-shortcode{display:contents}

/* ---- Closing background ----------------------------------------------
   The concept pulls the photo up (top:-12%; height:124%) to centre the team
   within the band. R2 feedback change 21 asks for it centred; with the taller
   crop the pull-up cropped heads, so the image is positioned from the centre
   instead and the overlay is restated.
   -------------------------------------------------------------------- */

/* Zoomed out so the whole team is visible. The photo is 3:2 and the band is
   roughly 3.5:1, so object-fit:cover has to scale it about 2x and crops most of
   its height, cutting heads whatever object-position is used. contain shows the
   full frame; the navy section colour fills the sides, under the same overlay.
   A panoramic crop of the source (about 3000x1000) would remove the side gaps
   entirely and is the better long-term fix. */
/* The banner crop is 3300x1100 (ratio 3.0), which matches this band, so the
   photo needs almost no scaling and nothing is cut. The earlier taller-band and
   object-fit:contain workarounds are gone: they were only needed because the
   source was 3:2. Back to the concept's own treatment. */
.closing-bg img{position:absolute;top:0;left:0;transform:none;width:100%;height:100%;object-fit:cover;object-position:top center;filter:grayscale(.3)}
.closing-bg{background-color:var(--navy-950)}

/* ---- Headshot crop ----------------------------------------------------
   The concept's .fq-av img uses object-position:50% 20%, which suited its
   placeholder crops. These portraits are 2000x3000 full-length shots, so 20%
   down still cuts the heads when squashed into a 40px circle. Anchored near
   the top instead.
   -------------------------------------------------------------------- */

.fq-av img{object-position:50% 4%}

/* ---- Question numbers ------------------------------------------------
   The concept numbers each question 01-06 in a 36px column (.fq-n). The
   Breakdance widget has no number element, so the numbers are generated with a
   CSS counter on the question button instead.
   -------------------------------------------------------------------- */

.faq-list .bde-frequently-asked-questions{counter-reset:clgfaq}
.faq-list .bde-frequently-asked-questions .bde-faq__question::before{content:counter(clgfaq, decimal-leading-zero);align-self:start;padding-top:5px;font-family:var(--head);font-size:13px;font-weight:600;line-height:1.4;color:var(--cyan-ink);font-variant-numeric:tabular-nums}
.faq-list .bde-frequently-asked-questions .bde-faq__answer,.faq-list .bde-frequently-asked-questions .bde-faq__content{padding-left:52px}
@media (max-width: 767px){.faq-list .bde-frequently-asked-questions .bde-faq__question{grid-template-columns:28px minmax(0,1fr) 22px;gap:12px}.faq-list .bde-frequently-asked-questions .bde-faq__answer,.faq-list .bde-frequently-asked-questions .bde-faq__content{padding-left:40px}}

/* ---- Thin plus -------------------------------------------------------
   The concept's #i-plus is a stroked icon (fill:none; stroke-width:1.6), so it
   reads as a fine cross. Breakdance ships a solid filled plus, which looks
   heavy beside it. The widget's own svg is hidden and a 1.6px cross is drawn
   with pseudo-elements instead, rotating 45 degrees when the item opens.
   -------------------------------------------------------------------- */

.faq-list .bde-frequently-asked-questions .bde-faq__icon svg{display:none}
.faq-list .bde-frequently-asked-questions .bde-faq__icon{position:relative;width:22px;height:22px}
.faq-list .bde-frequently-asked-questions .bde-faq__icon::before,.faq-list .bde-frequently-asked-questions .bde-faq__icon::after{content:"";position:absolute;top:50%;left:50%;background:currentColor;border-radius:1px}
.faq-list .bde-frequently-asked-questions .bde-faq__icon::before{width:13px;height:2px;transform:translate(-50%,-50%)}
.faq-list .bde-frequently-asked-questions .bde-faq__icon::after{width:2px;height:13px;transform:translate(-50%,-50%)}
.faq-list .bde-frequently-asked-questions .bde-faq__icon--active{display:none}
.faq-list .bde-frequently-asked-questions .bde-faq__question[aria-expanded="true"] .bde-faq__icon--inactive{transform:rotate(45deg);color:var(--navy-900)}

/* ---- Question weight -------------------------------------------------
   Montserrat is loaded at 600 and 700 only (matching the concept), so the
   concept's font-weight:500 renders at 600. Kept the same here rather than
   loading a lighter weight, so the FAQ matches every other heading.
   -------------------------------------------------------------------- */

.faq-list .bde-frequently-asked-questions .bde-faq__title{font-weight:600}

/* ---- Grid width ------------------------------------------------------
   The concept's .faq-grid is 4fr / 7fr, so the accordion runs to the container
   edge, lining up with the header and footer. Restated because the Breakdance
   wrapper around the widget was leaving the list short of the edge.
   -------------------------------------------------------------------- */

.faq-list,.faq-list .clg-faq-accordion,.faq-list .bde-frequently-asked-questions{width:100%;max-width:none}
