/* Hybrid Home (inc/home-hybrid.php, switch sm_home_hybrid): four relaunch sections inside the theme front page.
   Loaded on that page, after sm-site.css. Round 6: also loaded on the other theme pages (blog posts, /blog/) where the
   welcome section prints in place of the theme about block. No rule names a body class, so the welcome section looks
   the same there. Every rule is scoped to .sm-hh, the class each of the four sections
   carries, so the theme's own sections are not touched. The sections also carry .sm-ui (tokens, cards, buttons, areas,
   the redemption picture: sm-ui.css and sm-site.css). This file adds what the Elementor wrappers gave on the Elementor
   Home: the frame, the gaps and the headings. Selectors name .sm-ui.sm-hh plus the element, so they outrank the theme's
   front page rules (.hbg-front-page h2 and the like). No .entry-content, no .button and no span inside an h2 are used:
   the theme styles those. */

/* Frame. One centered column: 1180px at most, 20px from the screen edge. The page is white. */
.sm-ui.sm-hh{display:flex;flex-direction:column;gap:20px;box-sizing:border-box;width:min(1180px,calc(100% - 40px));max-width:none;float:none;clear:both;margin:0 auto;padding-inline:0;background:#fff;text-align:left;font-family:var(--sm-font-body);font-size:16px;line-height:1.5;color:var(--ink)}
.sm-ui.sm-hh>*{min-width:0}

/* The two panels: areas (light grey) and redemption (cream). Colors and side padding come from .sm-ui.sec.band and
   .sm-ui.sec.band-yellow in sm-site.css. Here: round corners at every width, and room above so a panel never touches
   the theme section before it. */
.sm-ui.sm-hh.band,.sm-ui.sm-hh.band-yellow{border-radius:22px}
.sm-ui.sm-hh.sm-hh--areas{margin-top:48px}
.sm-ui.sm-hh.sm-hh--redeem{margin-block:48px}

/* Section head: the heading (and the sentence under it) left, the link right. */
.sm-ui.sm-hh .sec-head{margin:0 0 26px;padding:0}
.sm-ui.sm-hh .sm-hh__headcol{display:flex;flex-direction:column;gap:20px;flex:1 1 auto;min-width:0}
.sm-ui.sm-hh .sec-head>a.btn{flex:0 0 auto}

/* Headings. */
.sm-ui.sm-hh h2.sm-hh__h{font-family:var(--sm-font-display);font-size:clamp(24px,3vw,34px);font-weight:700;line-height:1.15;letter-spacing:0;text-transform:none;text-align:left;text-wrap:balance;color:var(--ink);margin:0;padding:0;border:0;background:none}
.sm-ui.sm-hh h2.sm-hh__h::before,.sm-ui.sm-hh h2.sm-hh__h::after{content:none;display:none}

/* Text. */
.sm-ui.sm-hh p{font-family:var(--sm-font-body);margin:0;padding:0;text-align:left}
.sm-ui.sm-hh p.lead{font-size:18px;line-height:1.6;color:var(--ink-2);max-width:72ch;text-wrap:pretty}
.sm-ui.sm-hh p.eyebrow{font-family:var(--sm-font-display);font-size:12px;font-weight:600;line-height:1.4;letter-spacing:.12em;text-transform:uppercase;color:var(--pink-ink)}
.sm-ui.sm-hh p.muted{color:var(--ink-2)}

/* Links and the section buttons. Card buttons keep their own rules (sm-ui.css). */
.sm-ui.sm-hh a{text-decoration:none}
.sm-ui.sm-hh .ctas a.btn,.sm-ui.sm-hh .sec-head a.btn{font-family:var(--sm-font-display);font-size:15px;font-weight:600;line-height:1.2;letter-spacing:0;text-transform:none;margin:0}
.sm-ui.sm-hh .ctas a.btn-pink,.sm-ui.sm-hh .ctas a.btn-pink:hover,.sm-ui.sm-hh .ctas a.btn-pink:focus{color:#fff}
.sm-ui.sm-hh .ctas a.btn-pink{background:var(--pink-dark)}
.sm-ui.sm-hh .ctas a.btn-pink:hover,.sm-ui.sm-hh .ctas a.btn-pink:focus{background:var(--pink-ink)}
.sm-ui.sm-hh .sec-head a.btn-ghost,.sm-ui.sm-hh .sec-head a.btn-ghost:hover,.sm-ui.sm-hh .sec-head a.btn-ghost:focus{background:transparent;color:var(--pink-ink)}

/* Areas: seven tiles in the grey panel. */
.sm-ui.sm-hh a.area,.sm-ui.sm-hh a.area:hover{font-family:var(--sm-font-display);font-size:14px;font-weight:600;line-height:1.3;color:var(--ink)}
.sm-ui.sm-hh a.area img{width:48px;height:48px;max-width:none;margin:0;border-radius:0;box-shadow:none}
/* Seven across in a narrow panel: the longest label ("Comprehension") needs the room. */
@media (min-width:961px) and (max-width:1100px){.sm-ui.sm-hh a.area{font-size:13px;padding-inline:4px}}

/* Favorites: the product grid is .sm-grid (four across, two across from 960px down; sm-ui.css). */
.sm-ui.sm-hh article.sm-card{margin:0;padding:0;float:none;width:auto}

/* Redemption and welcome: two columns (.split, sm-site.css), one column from 860px down. */
.sm-ui.sm-hh .split{margin:0}
.sm-ui.sm-hh .split .pic{margin:0;line-height:0}
.sm-ui.sm-hh .split .pic img{display:block;max-width:none;margin:0}
/* No picture (the photo or the order picture is missing): the words take the row. */
.sm-ui.sm-hh.sm-hh--nopic .split{grid-template-columns:1fr}
.sm-ui.sm-hh.sm-hh--nopic .split .copy{max-width:62ch}
/* The order-to-library picture in a narrow column. The "Your library" head lets the site name go to its own line, the
   seller name stays on one line, and the "Redeemed" label stays inside its cover. */
.sm-ui.sm-hh .tpt-vis .rc .hd{flex-wrap:wrap}
.sm-ui.sm-hh .tpt-vis .rc .ln b{white-space:nowrap}
.sm-ui.sm-hh .tpt-vis .lib div::after{left:4px;bottom:4px;font-size:8.5px;letter-spacing:.02em;padding:2px 4px;max-width:calc(100% - 8px);overflow:hidden;white-space:nowrap}
/* Small laptops and tablets on their side: the picture gets the wider column. */
@media (min-width:861px) and (max-width:1100px){
  .sm-ui.sm-hh.sm-hh--redeem:not(.sm-hh--nopic) .split{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:32px}
  .sm-ui.sm-hh .tpt-vis{gap:10px}
  .sm-ui.sm-hh .tpt-vis .rc{padding:12px}
  .sm-ui.sm-hh .tpt-vis .arw{width:36px;height:36px}
}

@media (max-width:767px){
  .sm-ui.sm-hh.band,.sm-ui.sm-hh.band-yellow{border-radius:18px}
  .sm-ui.sm-hh.sm-hh--areas{margin-top:32px}
  .sm-ui.sm-hh.sm-hh--redeem{margin-block:32px}
}
@media (max-width:560px){
  .sm-ui.sm-hh{width:calc(100% - 32px)}
  .sm-ui.sm-hh p.lead{font-size:17px}
  .sm-ui.sm-hh .ctas a.btn{white-space:normal;text-align:center}
  /* The shop link sits under the heading here: close to it, and in line with its left edge. */
  .sm-ui.sm-hh .sec-head{row-gap:4px}
  .sm-ui.sm-hh .sec-head>a.btn-ghost{padding-left:0}
}
