/* Home page (help/templates/help/help_home_page.html), Material 3: one kind of container (a tonal fill,
   no borders), the shape scale 8 / 16 / 28 px, one state layer (8 % on hover, 12 % when pressed) and the
   same step between sections. Only the home page loads it. */
:root{--hm-hover:color-mix(in srgb,var(--text) 8%,var(--surface));--hm-press:color-mix(in srgb,var(--text) 12%,var(--surface))}

/* Page: white below the topics, as the reading pages; the grey (--bg) stays only behind the topic tiles. Dark
   theme: the topics band is the darkest (--s-lowest), the page --bg, the cards dark versions of the same tints */
:root{--home-page:var(--s-lowest);--home-band:var(--bg);
  --home-blue:var(--tint-blue-bg);--home-green:var(--tint-green-bg);--home-new:var(--s-lowest)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--home-page:var(--bg);--home-band:var(--s-lowest);
  --home-blue:color-mix(in srgb,var(--tint-blue-bg) 85%,var(--bg));--home-green:color-mix(in srgb,var(--tint-green-bg) 85%,var(--bg));--home-new:var(--surface)}}
:root[data-theme="dark"]{--home-page:var(--bg);--home-band:var(--s-lowest);
  --home-blue:color-mix(in srgb,var(--tint-blue-bg) 85%,var(--bg));--home-green:color-mix(in srgb,var(--tint-green-bg) 85%,var(--bg));--home-new:var(--surface)}
body[data-page="home"]{background:var(--home-page)}
/* the band runs the full width of the window (the shadow), cut at its own top and bottom (clip-path) */
/* .sec.tg-box: over the section step below, which has no bottom padding */
.sec.tg-box{background:var(--home-band);box-shadow:0 0 0 100vmax var(--home-band);clip-path:inset(0 -100vmax);
  padding-block-end:clamp(32px,5vw,64px)}

/* The same step between sections */
.sec{padding-block:64px 0}
.newband{margin-block:64px 80px}

/* Choose your topic (variant 1): the featured topic is a wide card over three of four columns, one row
   high, and the whole card is its link; the others are tiles with the icon on top. All of them are white
   cards with a thin border and a light shadow (the whole card is a link); the featured one has no gradient. Phones (a container
   under 700 px): six half-columns, so three tiles a row and a short last row stretches evenly. */
.tg-box{container-type:inline-size}
.tg-h{margin:0 0 20px;font-size:var(--fs-h2);font-weight:600;letter-spacing:-.5px}
.tg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.tg a{color:var(--text);text-decoration:none}
.tg a:focus-visible{outline:3px solid var(--primary);outline-offset:2px}
.tg-ic{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:var(--radius-xl);background:var(--icon-bg);color:var(--icon-fg)}
.tg-ic .ico{width:34px;height:34px}
.tg-feat{grid-column:span 3;display:flex;align-items:center;gap:20px;padding:24px 28px;border:1px solid var(--border);border-radius:var(--radius-2xl);background:var(--card);box-shadow:var(--shadow);transition:border-color .15s}
.tg-feat .tg-d{opacity:1;color:var(--text2)}
.tg-feat .tg-go{margin-inline-start:auto;color:var(--primary)}
.tg-tx{flex:1 1 auto;display:flex;flex-direction:column;gap:4px;min-width:0}
.tg-tx b{font-size:var(--fs-h2);font-weight:600;line-height:1.25}
.tg-d{font-size:var(--fs-ui);line-height:1.4;opacity:.9;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.tg-go{flex:0 0 auto;width:28px;height:28px;transition:transform .15s}
.tg-feat:hover .tg-go{transform:translateX(3px)}
[dir="rtl"] .tg-feat:hover .tg-go{transform:scaleX(-1) translateX(3px)}
.tg-tile{display:flex;flex-direction:column;justify-content:space-between;gap:16px;min-height:150px;padding:20px;border:1px solid var(--border);border-radius:var(--radius-2xl);background:var(--card);box-shadow:var(--shadow);transition:border-color .15s,background-color .15s}
/* Topic tiles: on hover the tile takes a light tint of the link blue; the border stays (a grey layer and a
   darker border made it look inactive or selected) */
:is(.tg-feat,.tg-tile):hover{border-color:var(--border);background:color-mix(in srgb,var(--primary) 4%,var(--card))}
:is(.tg-feat,.tg-tile):active{background:color-mix(in srgb,var(--primary) 8%,var(--card))}
/* long words break with a hyphen; a label never takes more than three lines */
.tg-tile b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:var(--fs-article);font-weight:600;line-height:1.3;overflow-wrap:anywhere;hyphens:auto}
@container (max-width:759.98px){
  .tg{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
  .tg-feat{grid-column:1/-1;gap:14px;padding:18px;border-radius:var(--radius-xl)}
  .tg-feat .tg-d{display:none}
  .tg-tx b{font-size:var(--fs-h3)}
  .tg-go{width:24px;height:24px}
  .tg-ic{width:52px;height:52px;border-radius:var(--radius-xl)}
  .tg-ic .ico{width:28px;height:28px}
  .tg-tile{grid-column:span 2;justify-content:flex-start;align-items:center;gap:8px;min-height:112px;padding:14px 12px;border-radius:var(--radius-xl);text-align:center}
  .tg-tile b{font-size:var(--fs-small);line-height:1.25}
  /* a last row of one or two tiles fills the width (the card is the first child, so rows start at 3n+2) */
  .tg-tile:nth-child(3n+2):nth-last-child(1){grid-column:1/-1}
  .tg-tile:nth-child(3n+2):nth-last-child(2),.tg-tile:nth-child(3n+2):nth-last-child(2)+.tg-tile{grid-column:span 3}
}
/* the narrowest phones: less padding and a slightly smaller label, so words like “Employees” fit whole */
@container (max-width:339.98px){
  .tg-tile{padding-inline:6px}
  .tg-tile b{font-size:var(--fs-caption)}
}
@media (prefers-reduced-motion:reduce){.tg-go,.tg-tile,.tg-feat{transition:none}.tg-feat:hover .tg-go{transform:none}[dir="rtl"] .tg-feat:hover .tg-go{transform:scaleX(-1)}}

/* Set up your store, offline guide, "Still can't find it?", "New to Loyverse POS?": tonal fills without borders */
#homeExtra.hx{border:0;border-radius:var(--radius-2xl);background:var(--surface)}
#homeExtra .ck-list li{border-radius:var(--radius-lg);background:var(--s-lowest)}
#homeExtra .ck-prog i{background:color-mix(in srgb,var(--text) 10%,transparent)}
/* Offline guide (light blue) and Ask the Community (light green): tinted cards without a border on the white
   page, white squares and pills on the tints */
.g-row{gap:16px 20px;padding:22px 26px;border:0;border-radius:var(--radius-2xl);background:var(--home-blue);box-shadow:none}
.g-ic{flex:none;display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:var(--radius-xl);background:var(--s-lowest);color:var(--primary)}
.g-ic .ico{width:28px;height:28px}
.g-txt b{font-size:var(--fs-article);font-weight:600}
.g-txt span{color:var(--ink-muted)}
.g-row .g-btns .btn{min-height:44px;padding:0 18px;border:1px solid var(--line);border-radius:var(--radius-pill);background:var(--card);color:var(--primary);font-size:var(--fs-ui);font-weight:600}
.g-row .g-btns .btn .ico{width:20px;height:20px}
.g-row .g-btns .btn:hover{background:color-mix(in srgb,var(--primary) 8%,var(--card))}
.sg{position:relative;gap:8px;padding:24px 26px 26px;border:0;border-radius:var(--radius-2xl);box-shadow:none}
.sg-green{--sg-bg:var(--s-lowest);--sg-fg:var(--tint-green-fg);background:var(--home-green)}
.sg-green:hover{background:color-mix(in srgb,var(--tint-green-fg) 6%,var(--home-green))}
.sg-green:active{background:color-mix(in srgb,var(--tint-green-fg) 10%,var(--home-green))}
/* Ask the Community is the only card: the whole width */
#homeSupport .sup-grid{grid-template-columns:minmax(0,1fr)}
.sg:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.sg .ic{width:56px;height:56px;margin-bottom:8px;border-radius:var(--radius-xl);background:var(--sg-bg);color:var(--sg-fg)}
.sg .ic .ico{width:28px;height:28px}
.sg b{padding-inline-end:52px;font-size:var(--fs-h3);font-weight:600}
.sg span:last-child{font-size:var(--fs-ui);color:var(--ink-muted)}
/* the arrow in the corner only repeats the tile's link */
.sg-go{position:absolute;top:20px;inset-inline-end:20px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--sg-bg);color:var(--sg-fg)}
.sg-go .ico{width:20px;height:20px}
[dir="rtl"] .sg-go .ico{transform:scaleX(-1)}
/* desktop: a row like the offline guide, icon, text and the arrow in the middle of the right edge */
@media (min-width:760px){
  .sg{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:20px;row-gap:2px;padding:22px 26px}
  .sg .ic{grid-row:1/3;grid-column:1;align-self:center;margin-bottom:0}
  .sg b{grid-column:2;align-self:end;font-size:var(--fs-article)}
  .sg span:last-child{grid-column:2;align-self:start}
  .sg-go{top:50%;transform:translateY(-50%)}
}
@media (max-width:759.98px){
  .g-row{flex-direction:column;align-items:stretch}
  .g-row .g-txt{flex:none}
  /* one under the other, the whole width: the labels stay on one line */
  .g-row .g-btns{flex-direction:column;width:100%;gap:8px}
  .g-row .g-btns .btn{width:100%}
  #homeSupport .sup-grid{grid-template-columns:1fr;gap:12px}
}
/* New to Loyverse POS?: white with a thin border; the orange button is its only colour */
.newband{border:1px solid var(--border);border-radius:var(--radius-2xl);background:var(--home-new);color:var(--text)}
.newband p{color:var(--text2);opacity:1}
/* the banner's button is "Get started" in the header's colours (site.css) */
.newband .btn.btn-cta{background:var(--gs);color:var(--on-gs)}
.newband .btn.btn-cta:hover{background:var(--gs-hover);color:var(--on-gs)}

@media (max-width:759.98px){
  .sec{padding-block:40px 0}
  .newband{margin-block:40px 48px}
}

/* Hero: the logo blue one tone lighter (--hero), a white heading in General Sans 600 at 58 px (38 px on
   phones), as on loyverse.com; the field is white without a line, its focus a white ring, since a blue one
   would not show on the blue. Dark theme: the dark --hero, the orange button and blue icons stay the accents */
.hero h1{color:var(--on-hero);font-size:var(--fs-h1-home);font-weight:600}
.hero-s .big-search{border:0;box-shadow:none}
.hero-s .big-search:focus-within{outline:3px solid var(--on-hero);outline-offset:2px;box-shadow:none}
.sec-h h2{font-weight:600}
@media (max-width:759.98px){.hero h1{font-size:var(--fs-h1-home-mobile)}}

/* Design package 10.
   14) Both bottom headings 600 like "Popular articles" (not .sec-h, so the browser's h2 bold applied)
   15) The offline guide's and "Ask the Community"'s subtitles 16 px like the "New to Loyverse POS?" text
   16) "Ask the Community" 18 px on phones too, as on desktop */
#homeSupport > h2,.newband h2{font-weight:600}
.g-txt span,.sg span:last-child{font-size:var(--fs-body)}
.sg b{font-size:var(--fs-article)}

/* Design package 11: no "New to Loyverse POS?" for a signed-in customer; its wrap stays as the room before the
   footer (72 px, 32 on phones) */
body[data-auth="in"] .newband{display:none}
body[data-auth="in"] .wrap:has(>.newband){margin-block:0 72px}
@media (max-width:759.98px){body[data-auth="in"] .wrap:has(>.newband){margin-block:0 32px}}
