/* WordPress content inside the library's blocks: what a post's own HTML needs that the mocks' hand-written
   prose did not (images and embeds from the editor, old alignment classes). No colours or fonts here: the look
   is the library's and the skin's. */
.prose img,.prose video,.prose iframe,.prose embed,.prose object{max-width:100%;height:auto}
.prose iframe[src*="youtube"],.prose iframe[src*="vimeo"],.prose iframe[src*="vidalytics"],.prose .wp-block-embed iframe{width:100%;aspect-ratio:16/9;height:auto}
.prose .aligncenter,.prose .wp-block-image.aligncenter{display:block;margin-left:auto;margin-right:auto}
.prose .alignleft{float:left;margin:0 1.2em .8em 0;max-width:50%}
.prose .alignright{float:right;margin:0 0 .8em 1.2em;max-width:50%}
.prose .wp-caption{max-width:100%}
.prose .wp-caption-text,.prose figcaption{font-size:.9em;opacity:.8}
.prose::after{content:"";display:table;clear:both}
.prose table{display:block;max-width:100%;overflow-x:auto}
.prose pre{max-width:100%;overflow-x:auto}

/* The home page's opening (owner, 2026-10-21): headline and bullets in one column, the video and its button in the
   other, both centred so no row leaves a gap; the press strip closes the band. A phone reads headline, video,
   bullets, button. Layout only; the look is the blocks'. */
.phead--hero{padding-top:calc(36px * var(--space,1));padding-bottom:0}
.phead--hero .phead__in{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:center}
.phead--hero .phead__col{display:flex;flex-direction:column;gap:22px;min-width:0}
.phead--hero .phead__list{margin:0}
.phead--hero .phead__list b{font-weight:700;color:var(--ink)}
.phead--hero .phead__acts{margin-top:0;justify-content:center}
.phead--hero .phead__cta{font-size:calc(23px * var(--fs-cta,1));padding:18px 48px;min-width:min(100%,340px);text-align:center}
.phead--hero .phead__video{display:block}
.phead--hero .phead__video img{display:block;width:100%;height:auto}
.phead--hero .phead__strip{margin-top:calc(32px * var(--space,1))}
@media (max-width:860px){
  .phead--hero .phead__in{display:flex;flex-direction:column;align-items:stretch;gap:22px}
  .phead--hero .phead__col{display:contents}
  .phead--hero .phead__txt{order:1}
  .phead--hero .phead__img{order:2}
  .phead--hero .phead__list{order:3}
  .phead--hero .phead__acts{order:4}
  .phead--hero .phead__cta{width:100%}
}

/* The testimonials slider on the home page (owner, 2026-10-21): one testimonial whole in the middle, a third of
   its neighbours showing either side. Swipe, scroll, the arrow buttons or the arrow keys move it. Colours and
   borders from the theme's own settings. */
.tslider{--tslide-w:60cqi;container-type:inline-size;position:relative}
.tslider__track{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;
  padding:8px calc((100cqi - var(--tslide-w)) / 2) 16px;overscroll-behavior-x:contain}
.tslider__track::-webkit-scrollbar{display:none}
.tslider__track:focus-visible{outline:3px solid var(--focus,var(--blue));outline-offset:4px}
.tslider__slide{flex:0 0 var(--tslide-w);scroll-snap-align:center;transform:scale(.92);transition:transform .25s}
.tslider__slide.is-current{transform:none}
.tslider__slide .take{margin:0}
.tslider .take--face{--take2-face:72px}
.tslider__nav{display:flex;justify-content:center;gap:14px;margin-top:10px}
.tslider__btn{width:48px;height:48px;border-radius:50%;border:2px solid var(--ink);background:var(--card,#fff);color:var(--ink);
  font:700 22px/1 var(--font-cta);cursor:pointer}
.tslider__btn:hover{background:var(--soft)}
.tslider__btn:focus-visible{outline:3px solid var(--focus,var(--blue));outline-offset:2px}
@media (max-width:620px){.tslider{--tslide-w:84cqi}.tslider__track{gap:12px}.tslider .take--face{--take2-face:52px;gap:12px}}
@media (prefers-reduced-motion:reduce){.tslider__track{scroll-behavior:auto}.tslider__slide{transition:none}}

/* Cards with a button (Free Advice's free guides, the home page's programmes; owner, 2026-10-21): every card's button
   at its foot, so a row's buttons line up whatever the length of the text above them. */
.pcards--align .pcard{display:flex;flex-direction:column}
.pcards--align .pcard__body{display:flex;flex-direction:column;flex:1 1 auto}
.pcards--align .pcard__body .cta-btn{margin:auto 0 0;min-height:calc(2.5em + 26px);line-height:1.25;display:flex;align-items:center;justify-content:center;text-align:center}
.pcards--align .pcard__ex{margin-bottom:14px}

/* Meet the Girls (owner, 2026-10-21): cards side by side stretch to one height and keep "More about" at the foot, so
   the links line up across a row; on a phone the photo sits beside the name and tag, the description and the link run
   the card's full width; the team collage is left out on a phone. Layout only. */
.wgms--team .crew{align-items:stretch}
.wgms--team .mate:not(.mate--lead) .mate__body{display:flex;flex-direction:column;flex:1 1 auto}
.wgms--team .mate:not(.mate--lead) .mate__open{margin-top:auto;padding-top:10px;align-self:flex-start}
@media (max-width:860px){.wgms--team .phead--split .phead__img{display:none}}
@media (max-width:620px){
  .wgms--team .crew--compact .mate:not(.mate--lead){display:grid;grid-template-columns:var(--mate-img-w-phone,96px) minmax(0,1fr);
    grid-template-areas:"img name" "img role" "intro intro" "more more";grid-template-rows:auto 1fr auto auto;column-gap:14px;padding:16px}
  .wgms--team .crew--compact .mate:not(.mate--lead) .mate__body{display:contents;padding:0}
  .wgms--team .crew--compact .mate:not(.mate--lead) .mate__img{grid-area:img;margin:0;align-self:start}
  .wgms--team .crew--compact .mate:not(.mate--lead) .mate__name{grid-area:name;align-self:end}
  .wgms--team .crew--compact .mate:not(.mate--lead) .mate__role{grid-area:role;align-self:start}
  .wgms--team .crew--compact .mate:not(.mate--lead) .mate__intro{grid-area:intro;margin-top:14px}
  .wgms--team .crew--compact .mate:not(.mate--lead) .mate__open{grid-area:more;align-self:end;margin-top:6px}
}
/* "More about": the link's words only, without the library's small open-in-a-window icon, which read as a stray box (owner). */
.wgms--team .mate__open::after{content:none;display:none}
/* The team collage is as tall as the headline block beside it, so the head band takes no more room than its words. */
.team-collage{display:block;border-radius:calc(14px * var(--img-r,1));box-shadow:var(--img-shadow)}
@media (min-width:861px){
  .wgms--team .phead--split .phead__in{align-items:stretch}
  .wgms--team .phead--split .phead__img{position:relative;min-height:280px}
  .wgms--team .team-collage{position:absolute;top:0;left:50%;transform:translateX(-50%);height:100%;width:auto;max-width:100%}
}

/* Ask Marni's "Browse by topic" centred like the rest of the page (owner): the tiles' last row sits in the middle. */
.wgms--askm-hub .topics{display:flex;flex-wrap:wrap;justify-content:center}
.wgms--askm-hub .topic{flex:0 1 270px}
@media (max-width:620px){.wgms--askm-hub .topic{flex-basis:100%}}

/* Podcast (owner, 2026-10-21): the episode plays in the page; the listen label on its own line, the three apps on one. */
.wgms--podcast .player__audio{display:block;width:100%;max-width:420px;margin-top:4px}
.wgms--podcast .listen__lbl{flex-basis:100%;margin:0}
@media (min-width:621px){.wgms--podcast .listen{flex-wrap:wrap}.wgms--podcast .listen a{flex:0 0 auto}}

/* A post's topics (owner, 2026-10-21): straight after the article, before the free-guide box, labelled. */
.article__tags{align-items:center}
.article__tags-lbl{font-family:var(--font-cta);font-weight:700;font-size:calc(14px * var(--fs-text,1));color:var(--muted);margin-right:4px}

/* About (owner, 2026-10-21): Marni's photo as tall as the headline block beside it, in its frame and tilt. */
.hero-fit{display:block;float:none;margin:0 auto;width:100%;max-width:420px;height:auto;border:var(--img-frame);box-shadow:var(--img-shadow);
  transform:rotate(var(--img-tilt-right,0deg))}
@media (min-width:861px){
  .wgms--about .phead--split .phead__in{align-items:stretch}
  .wgms--about .phead--split .phead__img{position:relative;min-height:280px}
  .wgms--about .hero-fit{position:absolute;top:0;left:50%;height:100%;width:auto;max-width:100%;transform:translateX(-50%) rotate(var(--img-tilt-right,0deg))}
}

/* Highlighted words (owner, 2026-10-23): the book's yellow highlight behind Dark Gray type in a page's main headline,
   a pop-up's title and any heading on an Azure band; on white, section headings, bands and feature titles keep the
   book's red highlight words with no mark. */
.wgms .shead__t .emph,.wgms .ctaband__t .emph{background:none;padding:0;color:var(--red)}
.wgms .vfeature__t .mark-underline{background:none;padding:0;color:var(--red)}
.wgms .vfeature__t .emph{color:var(--red)}
.wgms .sec--soft .shead__t .emph,.wgms .sec--soft .ctaband__t .emph,.wgms .sec--soft .vfeature__t .emph{color:var(--ink);background:var(--accent-mark);padding:var(--accent-mark-pad);box-decoration-break:clone;-webkit-box-decoration-break:clone}
.wgms .sec--dark .ctaband__t .emph{color:var(--gold)}

/* Brand Book (owner, 2026-10-23): only the book's colours. Video frames behind the poster are Dark Gray; the podcast
   apps' marks are drawn in the page's ink; the button is the book's size (20px by 30px, 24px capitals). */
.wgms .videobox__frame{background:var(--ink)}
.wgms .listen__ic{fill:currentColor}
.wgms .cta-btn{padding:20px 30px;font-size:calc(24px * var(--fs-cta,1))}

/* Home "Who is Marni?" (owner, 2026-10-21): Marni's cut-out photo stands on the dark band below, with no gap. */
.sec--sit{padding-bottom:0}
.sec--sit .vfeature{align-items:end}
.sec--sit .vfeature > img{display:block;margin-bottom:0}
.sec--sit .vfeature > div{align-self:center;padding-bottom:calc(40px * var(--space,1))}
@media (max-width:860px){
  .sec--sit .vfeature{display:flex;flex-direction:column;align-items:stretch}
  .sec--sit .vfeature > div{order:1;padding-bottom:calc(24px * var(--space,1))}
  .sec--sit .vfeature > img{order:2;align-self:center}
}

/* Media Room's video clips: each fills its grid cell at 16:9. */
.media-clip iframe{display:block;width:100%;aspect-ratio:16/9;height:auto;border:0;border-radius:calc(10px * var(--img-r,1))}

/* The home page's Watch pop-up opens on "Before you Go..." (owner, 2026-10-23: no eyebrows; the line stays): a plain
   line in the header face, not a label. */
.optin__lead{margin:0 0 4px;font-family:var(--font-head);font-weight:700;font-size:calc(22px * var(--fs-text,1));line-height:1.2;color:var(--ink)}

/* On an Azure band the book's Vivid Blue cannot be read (3.1:1): links there are Dark Gray, still underlined. */
.wgms .phead:not(.phead--dark) .phead__link,.wgms .phead:not(.phead--dark) .crumbs a,.wgms .sec--soft .shead__more{color:var(--ink)}
/* Media Room's clips show the focus ring like every other stop. */
.wgms .media-clip:focus-within{outline:3px solid var(--focus);outline-offset:3px}
/* A rule in a post's own text draws in the book's Azure, not the browser's grey. */
.wgms .prose hr{border:0;border-top:1px solid var(--line);height:0}
