/* localmedic Cornerstone blocks (inc/lm-blocks.php): the shortcodes' layout, and a few
   classes for Cornerstone sections and cells. Colours, buttons, tiles, cards, bands and
   shapes are the shared set in lm-ui.css. How-to: docs/cornerstone-blocks.md. */

/* ---------- [lm_hero] ---------- */
.lm-bhero{padding:40px 0 84px; overflow:hidden;}
.lm-bhero__grid{display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; position:relative; z-index:1;}
.lm-bhero__grid--text{grid-template-columns:1fr; max-width:820px;}
.lm-bhero__text{display:flex; flex-direction:column; align-items:flex-start; gap:18px; min-width:0;}
.lm-bhero .lm-hero__title{font-size:clamp(38px,30px + 2.6vw,62px)!important; max-width:16ch;}
.lm-bhero .lm-hero__lead{max-width:40ch;}
.lm-bhero .lm-rating{margin:0;}
.lm-bhero__call{width:100%; color:var(--lm-muted); font-size:15px;}
.lm-bhero__call a{color:var(--lm-ink)!important; font-weight:700;}
.lm-bhero__tile{z-index:3!important;}
.lm-bhero__badge--1{left:-6%; top:50%;}
.lm-bhero__badge--2{right:-3%; bottom:16%;}
mark.lm-hl{background:linear-gradient(transparent 58%,var(--lm-yellow) 58%,var(--lm-yellow) 92%,transparent 92%); color:inherit; padding:0 .08em;}
@media (max-width:960px){
  .lm-bhero__grid{grid-template-columns:1fr;}
  .lm-bhero .lm-art{max-width:420px; justify-self:center; order:-1;}
}
@media (max-width:600px){
  .lm-bhero{padding:20px 0 56px;}
  /* On a phone the heading comes first, and the badges sit top and bottom so they
     don't cover each other. */
  .lm-bhero .lm-art{max-width:320px; order:0; margin-top:8px;}
  .lm-bhero__badge--1{left:-2%; top:4%;} .lm-bhero__badge--2{right:-1%; bottom:2%;}
  .lm-bhero .lm-btns{width:100%;} .lm-bhero .lm-btns .lm-btn{flex:1 1 100%;}
}

/* ---------- [lm_course_dates style="cards"] ---------- */
.lm-bdates__list{display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:18px;}
.lm-bdate{background:#fff; border-radius:22px; padding:20px; display:flex; flex-direction:column; gap:12px; margin:0!important;}
.lm-bdate::before{content:none!important;}
.lm-bdate__top{display:flex; gap:14px; align-items:center;}
.lm-bdate__day{flex:none; width:68px; text-align:center; border-radius:16px; padding:6px 0 8px; font-weight:800; font-size:13px; line-height:1.15; text-transform:uppercase;}
.lm-bdate__day b{display:block; font-family:var(--lm-font-head); font-size:28px;}
.lm-bdate__name{font-family:var(--lm-font-head)!important; color:var(--lm-heading)!important; font-size:19px!important; line-height:1.25!important; margin:0!important;}
.lm-bdate__meta{display:flex; flex-wrap:wrap; gap:4px 14px; color:var(--lm-muted); font-size:15px; margin:0!important;}
.lm-bdate__foot{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:auto;}
.lm-bdate__price{display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px;}
.lm-bdate__price b{font-family:var(--lm-font-head); font-weight:800; font-size:22px; color:var(--lm-heading);}
.lm-bdates__more{margin:16px 0 0!important;}
.lm-bdates .lm-pill{display:inline-block; border:1px solid; border-radius:999px; padding:2px 10px; font-size:14px; font-weight:800; white-space:nowrap;}
.lm-bdates .lm-pill--ok{background:var(--lm-mint); color:var(--lm-on-mint); border-color:transparent;}
.lm-bdates .lm-pill--warn{background:var(--lm-butter); color:var(--lm-on-butter); border-color:transparent;}
.lm-bdates .lm-pill--off{background:#F0F0F0; color:#434751; border-color:#C2C2C2;}

/* ---------- [lm_logos] ---------- */
.lm-blogos{padding:28px 0 0;}
.lm-blogos__title{text-align:center; font-family:var(--lm-font-head)!important; color:var(--lm-heading)!important; font-size:20px!important; margin:0 0 18px!important;}
.lm-blogos ul{display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:14px;}
.lm-blogos li{background:#fff; border:2px solid var(--lm-line); border-radius:18px; height:88px; display:flex; align-items:center; justify-content:center; padding:10px 14px; box-sizing:border-box;}
.lm-blogos img{max-width:100%; max-height:64px; width:auto; height:auto; object-fit:contain;}
.lm-blogos .lm-pattern{margin-top:28px;}

/* ---------- Cornerstone sections: give a section one of these classes ----------
   lm-bs        padding for a plain white section (72px top and bottom)
   lm-bs-deco-a soft yellow circle top left, pink diamond bottom right (cream bands)
   lm-bs-deco-b yellow circle top right, magenta quarter bottom left (yellow bands)
   lm-bs-head   on a Text element: the heading and intro above a section's cards */
.x-section.lm-bs{padding:72px 0!important;}
.x-section.lm-band{padding:64px 0 72px!important;}
.lm-bs-deco-a,.lm-bs-deco-b{position:relative; overflow:hidden;}
.lm-bs-deco-a > *,.lm-bs-deco-b > *{position:relative; z-index:1;}
.lm-bs-deco-a::before,.lm-bs-deco-a::after,.lm-bs-deco-b::before,.lm-bs-deco-b::after{content:""; position:absolute; pointer-events:none; z-index:0;}
.lm-bs-deco-a::before{width:200px; height:200px; border-radius:50%; background:var(--lm-yellow-pale); left:-70px; top:-80px;}
.lm-bs-deco-a::after{width:70px; height:70px; border-radius:18px; transform:rotate(45deg); background:var(--lm-pink-pale); right:6%; bottom:-30px;}
.lm-bs-deco-b::before{width:260px; height:260px; border-radius:50%; background:var(--lm-yellow-soft); right:-80px; top:-110px;}
.lm-bs-deco-b::after{width:140px; height:140px; border-top-right-radius:100%; background:var(--lm-magenta); left:-46px; bottom:-46px;}
.lm-bs-head{margin-bottom:28px;}
.lm-bs-head h2{font-family:var(--lm-font-head)!important; color:var(--lm-heading)!important; font-size:clamp(28px,24px + 1vw,36px)!important; line-height:1.15!important; margin:0 0 8px!important;}
.lm-bs-head p{color:var(--lm-text-soft); max-width:60ch; margin:0!important;}
.lm-bs-head p + p{margin-top:12px!important;}
.lm-bs-head .lm-card-tag{color:var(--lm-heading); margin-bottom:6px!important;}

/* Cards built from Cornerstone cells or divs: add lm-card and a colour (lm-card--butter…)
   to the cell. lm-card--big makes a feature card; lm-card--dot adds a soft circle. */
.lm-card.lm-card--big{border-radius:26px; padding:28px; gap:14px; position:relative; overflow:hidden;}
.lm-card--big h3{font-family:var(--lm-font-head)!important; color:var(--lm-heading)!important; font-size:24px!important; line-height:1.2!important; margin:0!important;}
.lm-card--dot{position:relative; overflow:hidden;}
.lm-card--dot > *{position:relative; z-index:1;}
.lm-card--dot::before{content:""; position:absolute; z-index:0; width:150px; height:150px; border-radius:50%; right:-50px; top:-50px; background:rgba(255,255,255,.55);}
.lm-card .x-text p,.lm-card .x-text{margin:0;}
.lm-card .x-text + .x-text{margin-top:10px;}
/* One Text element holding a card's icon, tag, heading, words and link: space them out
   like the card's own children and keep the link at the bottom. */
.lm-card > .x-text{display:flex; flex-direction:column; gap:10px; flex:1 1 auto;}
.lm-card > .x-text > :last-child:has(> .lm-link:only-child){margin-top:auto!important; padding-top:4px;}
.lm-card > .x-text > h3{margin:0!important;}
.lm-card-tag{font-weight:800; font-size:13px; color:var(--lm-on,var(--lm-heading));}

/* A link tile: icon beside a heading and a line (the "who we work with" row). */
/* In a grid cell the Text element and its link fill the cell, so the row's tiles match. */
.x-cell > .x-text:has(.lm-tilelink){flex:1 1 auto; display:flex;}
.x-text > .lm-tilelink,.x-text > p:has(> .lm-tilelink){flex:1 1 auto; margin:0;}
.x-text > p:has(> .lm-tilelink){display:flex;}
.lm-tilelink{display:flex!important; gap:14px; align-items:flex-start; background:#fff; border:2px solid var(--lm-line); border-radius:20px; padding:18px; color:var(--lm-ink)!important; text-decoration:none!important;}
.lm-tilelink:hover,.lm-tilelink:focus-visible{border-color:var(--lm-heading);}
.lm-tilelink b{display:block; font-family:var(--lm-font-head); color:var(--lm-heading); font-size:18px; line-height:1.25; margin-bottom:2px;}
.lm-tilelink span.t{font-size:15px; color:var(--lm-muted); line-height:1.45;}

/* A wide rounded panel (the "Join our team" strip). */
.lm-panel-mint{display:flex; flex-wrap:wrap; gap:18px 28px; align-items:center; justify-content:space-between; background:var(--lm-mint); border-radius:28px; padding:30px 36px; position:relative; overflow:hidden;}
.lm-panel-mint h2{font-family:var(--lm-font-head)!important; color:var(--lm-heading)!important; font-size:26px!important; margin:0 0 4px!important;}
.lm-panel-mint p{color:var(--lm-on-mint); margin:0!important;}
@media (max-width:600px){
  .x-section.lm-bs{padding:52px 0!important;}
  .lm-panel-mint{padding:24px;}
}

/* A numbered circle for a card (the "Working alongside you" row):
   <span class="lm-tile lm-tile--md lm-c--y lm-num">1</span> */
.lm-num{border-radius:50%!important; font-family:var(--lm-font-head); font-weight:800; font-size:17px; line-height:1;}
.lm-card h3.lm-card__title{font-family:var(--lm-font-head)!important; color:var(--lm-heading)!important; font-size:20px!important; line-height:1.25!important;}

/* Grids of cards that wrap to fewer columns by themselves: give a Grid the class
   lm-bgrid (cards at least 270px wide) or lm-bgrid lm-bgrid--sm (at least 220px). */
.x-grid.lm-bgrid{grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--lm-bgrid-min,270px)),1fr))!important;}
.x-grid.lm-bgrid--sm{--lm-bgrid-min:220px;}

/* A list of links in a card, each with an arrow (the "Popular courses for teams" cards). */
.lm-blist{list-style:none!important; margin:0!important; padding:0!important;}
.lm-blist li{margin:0!important; padding:0!important;}
.lm-blist li::before{content:none!important;}
.lm-blist a{display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid rgba(0,28,65,.14); color:var(--lm-ink)!important; font-weight:700; text-decoration:none!important;}
.lm-blist a::after{content:"\2192"; flex:none; color:var(--lm-heading);}
.lm-blist a:hover,.lm-blist a:focus-visible{text-decoration:underline!important;}

/* A tile like lm-tilelink that isn't a link ("What's included"). */
.lm-tilelink--plain:hover{border-color:var(--lm-line);}

/* Train your team: the enquiry form's own script sizes its frame to the whole page's
   height, which on the longer page would leave a huge gap. Keep it to the form. */
#enquiry #embedded-form{height:1000px!important;}

/* A big figure in a card (About's facts): <p class="lm-big">2014</p> */
.lm-card .lm-big{font-family:var(--lm-font-head); font-weight:800; font-size:30px; line-height:1.1; color:var(--lm-heading); margin:0!important;}
/* The small legal line under a section. */
.lm-legal{font-size:14px; color:var(--lm-muted); margin:18px 0 0!important;}

/* Inside a Cornerstone page, line the shortcodes' content up with Cornerstone's own
   container (88% wide, up to 1200px), so every section starts at the same edge. */
.x-text .lm-wrap{width:88%; max-width:1200px; padding-left:0; padding-right:0; margin-left:auto; margin-right:auto; box-sizing:border-box;}
