/* ============================================================
   / — the Superbuy homepage layout, in this site's clothes
   (2026-11-09, user: 「将 http://127.0.0.1:8001/etc/ 模仿
   http://127.0.0.1:8003/页面进行更新，将现有ETC商品移至Popular gear中」,
   and to the follow-up question: 只照搬版式，动作走现有购物车).

   Built for /etc/ and then moved to / when the two pages swapped the same
   day (user: 「将现在的Home页面改成配置页（英文），将ETC改为Home,并移到最前面」);
   the class names are still .mg-sb-*.

   The geometry is the one acebase.cc laid down from the real page and measured
   at 1440 (see the header of acebase.cc's stylesheets/gear.css, and
   _tmp_ocr/superbuy_metrics.py there):
     inner column     1200px, centred
     hero             600px tall, 105deg gradient, h1 36/900, meta 14/500
                      (removed 2026-11-13; the advisor band below took its
                      gradient and its place at the top)
     search           760x64, 48px input, 112x48 submit
                      (removed with the hero)
     chips            36px tall, radius 24 (removed with the hero)
     advisor          white card on the hero's gradient, 340px intro column
                      and the five-question form beside it, answer below
                      (was the journey card, lifted 54px over the hero)
     feature row      five 304x136 banners (four before 2026-11-12)
     discovery        grey band, 48px padding, h2 24/700, 32px pill tabs,
                      5-column grid of 227x318 cards
   What did not come over is the palette and the action: this site is black
   ink, tan rules, green buy buttons and red prices, its cards take the 0.55rem
   corner the rest of the shop has, and the action is the shop's own cart
   button (price-cart.js binds any .mg-cart-add). The hero box was a link box
   like acebase's — Get price handed a pasted product link to WhatsApp — until
   2026-11-13, when the whole hero (copy, link box, chips) was removed and the
   advisor took its place; home-sb.js, which held that half, is no longer
   loaded.

   2026-11-12 (user: 「将Popular add-ons的商品以 add-ons类目放置在 Pre-owned
   之后，将setups的内容移至原来的 Popular add-ons，并更名为 热门配置（英文）」):
   the accessory shelf and its pills left for /add-ons/, so the pill tabs and
   the .mg-sb-card grid rules below have no page using them today; they stay
   with the layout they were measured for. The fifth banner — Add-ons — took
   the row to five columns (3 + 2 under 1024, 2 + 2 + 1 under 768; four and
   2 + 2 after the Setups banner left with its page), and the
   grey band now holds the players' setups in the shop's usual two-column
   .mg-card-grid instead of a 227x318 card grid.

   The same day, second turn: the twelve /gear/ reviews followed the setups
   onto this page as a white band under the grey one, and both bands were then
   asked to draw five cards a row on a PC (「尝试将它们在PC端，每行显示5条」) —
   five from 1200, four from 1024, three from 760, one on a phone. The third
   turn moved that second band to /guide/ whole (「将Popular gear的内容都移到
   http://127.0.0.1:8001/guide/」): the grey setups band is the page's only
   shelf now, and the white-band rule and the review cards' copy override went
   with it. /guide/'s version of the shelf has rungs of its own over its 960px
   column, in uncrate.css.

   Later the same day the five-a-row rung was undone for the setups band
   (「首页的Popular setups 改成每行显示3条」): three from 760 up, one on a
   phone. See the rung below — the 4- and 5-column blocks are gone.

   Full bleed: the theme locks .md-content__inner to 960px, so the page lifts
   that lock with :has() rather than 100vw — 100vw includes the scrollbar on
   Windows and would put a horizontal overflow on the page. */

/* ---------- the page takes the whole viewport column ---------- */

.md-main__inner:has(.mg-sb) {
  max-width: none;
  margin-top: 0;
}

.md-content:has(.mg-sb) {
  flex: 1 1 auto;
  min-width: 0;
}

/* Both margins carry !important because uncrate.css pins them with it — auto
   on the wide branch and 1.2rem below 1100px — so the hero would otherwise
   keep a gutter on the page that is meant to run edge to edge. */
.md-main__inner:has(.mg-sb) .md-content > .md-content__inner:not([hidden]) {
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0;
}

.md-typeset .mg-sb {
  --sb-line: var(--ab-line);
  --sb-soft: var(--ab-panel-2);
  --sb-muted: var(--ab-text-muted);
  --sb-chip: #ececec;

  font-family: var(--ab-sans);
  color: var(--ab-text);
  background: #fff;
}

.md-typeset .mg-sb *,
.md-typeset .mg-sb *::before,
.md-typeset .mg-sb *::after {
  box-sizing: border-box;
}

.md-typeset .mg-sb-inner {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- hero ----------

   The gradient band, the photo, the headline, the meta line and the link box
   were all removed on 2026-11-13 (user: 「将这部分去掉，将下面这部分替代它的
   位置」): the racket advisor below now opens the page, and it takes the band
   itself — same 105deg gradient, no photo. The rules for the dropped pieces
   (`.mg-sb-hero*`, `.mg-sb-search*`, `.mg-sb-chip*`) went with them. */


/* ---------- the racket advisor (the page's opening band) ----------

   2026-11-13: the three-step sourcing card became a five-question advisor
   (user: 「部分改成咨询窗口…我为客户提供球拍选购建议」), and the same day
   the hero above it went (user: 「将这部分去掉，将下面这部分替代它的位置」).
   The hero's photo came back the next pass (「排版需要你重新优化，比如保留
   之前的背景图」, then 「我想要整块背景+卡片浮在上面那种」): it is the
   band's full-bleed background, washed with the site's 105deg gradient, and
   a 1040px white card floats on top of it. The five questions run in two
   columns under the intro; the answer fills the card below them. See
   docs/javascripts/racket-advisor.js for the questions and the rules. */

/* The hero's photo is the band's own background — the card floats over it,
   with the site's warm gradient washed over the picture so the tan/green
   palette still reads. */
.md-typeset .mg-sb-advisor {
  position: relative;
  z-index: 3;
  padding: 56px 0 60px;
  background-color: #d9ccb6;
  background-image:
    linear-gradient(105deg, rgba(251, 250, 247, 0.55) 0%,
      rgba(244, 239, 230, 0.42) 45%, rgba(217, 204, 182, 0.22) 100%),
    url("../images/home-hero/hero-dalu.webp");
  background-position: 0 0, 50% 46%;
  background-size: auto, cover;
  background-repeat: no-repeat;
}

.md-typeset .mg-sb-advisor__card {
  width: min(1040px, 100%);
  margin-inline: auto;
  border: 1px solid var(--sb-line);
  border-radius: 0.55rem;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.04),
    0 18px 44px -18px rgba(0, 0, 0, 0.28);
}

.md-typeset .mg-sb-advisor__content {
  min-width: 0;
  padding: 30px 32px 32px;
}

.md-typeset .mg-sb-advisor__intro {
  max-width: 760px;
}

.md-typeset .mg-sb-advisor__eyebrow {
  margin: 0;
  color: var(--ab-accent-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* The page has no other h1 now, so this is it — set without Material's
   2px rule and padding. */
.md-typeset .mg-sb-advisor__title {
  margin: 6px 0 0;
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--ab-text);
  font-family: var(--ab-sans);
  font-size: clamp(24px, 2.1vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.22;
}

.md-typeset .mg-sb-advisor__lead {
  margin: 10px 0 0;
  color: var(--sb-muted);
  font-size: 14px;
  line-height: 1.55;
}

.md-typeset .mg-sb-advisor__aside {
  margin: 12px 0 0;
  color: var(--sb-muted);
  font-size: 13px;
  line-height: 1.5;
}

.md-typeset .mg-sb-advisor__aside a {
  color: var(--ab-accent-deep);
  text-decoration: underline;
}

/* ---------- the advisor form ---------- */

.md-typeset .mg-adv-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 20px;
  min-width: 0;
}

/* The form is display:grid, so [hidden] has to be spelled out. */
.md-typeset .mg-adv-form[hidden] {
  display: none;
}

/* One question at a time, inside a long input-style box. Picking an option
   moves to the next question on its own; the last screen is the notes line. */
.md-typeset .mg-adv-box {
  padding: 16px 18px 14px;
  border: 1px solid var(--sb-line);
  border-radius: 0.75rem;
  background: #fbfaf6;
}

.md-typeset .mg-adv-screen {
  min-width: 0;
}

.md-typeset .mg-adv-screen[hidden] {
  display: none;
}

.md-typeset .mg-adv-screen:focus {
  outline: none;
}

.md-typeset .mg-adv-question {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  color: var(--ab-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.md-typeset .mg-adv-question em {
  color: var(--sb-muted);
  font-style: normal;
  font-weight: 500;
}

.md-typeset .mg-adv-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.md-typeset .mg-adv-progress__track {
  position: relative;
  flex: 0 0 96px;
  height: 4px;
  border-radius: 99px;
  background: var(--sb-line);
  overflow: hidden;
}

.md-typeset .mg-adv-progress__track i {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: 99px;
  background: var(--ab-green);
  transition: width 0.2s ease;
}

.md-typeset .mg-adv-progress__text {
  color: var(--sb-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.md-typeset .mg-adv-q {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}


/* Each question is one dropdown, drawn as a long input with a tan chevron. */
.md-typeset .mg-adv-select {
  display: block;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 44px 0 16px;
  border: 1px solid var(--sb-line);
  border-radius: 0.65rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236f6250' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  color: var(--ab-text);
  font-family: var(--ab-sans);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.md-typeset .mg-adv-select:invalid,
.md-typeset .mg-adv-select option[value=""] {
  color: var(--sb-muted);
}

.md-typeset .mg-adv-select:hover {
  border-color: var(--ab-accent-deep);
}

.md-typeset .mg-adv-select:focus-visible {
  border-color: var(--ab-green);
  outline: 2px solid var(--ab-green-deep);
  outline-offset: 1px;
}

/* The last screen's long bar. */
.md-typeset .mg-adv-notes {
  display: block;
  margin: 0;
}

.md-typeset .mg-adv-notes input {
  display: block;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--sb-line);
  border-radius: 0.65rem;
  background: #fff;
  color: var(--ab-text);
  font-family: var(--ab-sans);
  font-size: 15px;
  line-height: 1;
}

.md-typeset .mg-adv-notes input::placeholder {
  color: var(--sb-muted);
}

.md-typeset .mg-adv-notes input:focus {
  border-color: var(--ab-green);
  outline: 2px solid var(--ab-green-deep);
  outline-offset: 1px;
}

/* Foot of the box: Back on the left, Show my setup on the right. */
.md-typeset .mg-adv-box__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.md-typeset .mg-adv-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  margin: 0 0 0 auto;
  padding: 0 24px;
  border: 0;
  border-radius: 0.55rem;
  background: var(--ab-green);
  color: #fff;
  font-family: var(--ab-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.md-typeset .mg-adv-submit:hover {
  background: var(--ab-green-deep);
}

.md-typeset .mg-adv-back {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ab-accent-deep);
  font-family: var(--ab-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  cursor: pointer;
}

.md-typeset .mg-adv-back:hover {
  color: var(--ab-green-deep);
}

/* Only a revisited question needs it: the dropdown already holds a value, so
   there is no change event left to advance on. */
.md-typeset .mg-adv-next {
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ab-green-deep);
  font-family: var(--ab-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  cursor: pointer;
}

.md-typeset .mg-adv-next:hover {
  color: var(--ab-green);
}

/* The submit, Next and Back carry display rules of their own, so [hidden] has
   to win. */
.md-typeset .mg-adv-submit[hidden],
.md-typeset .mg-adv-next[hidden],
.md-typeset .mg-adv-back[hidden] {
  display: none;
}

.md-typeset .mg-adv-form__note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--sb-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- the advisor's answer ---------- */

.md-typeset .mg-adv-result {
  padding: 22px 32px 30px;
  border-top: 1px solid var(--sb-line);
}

/* The result is a grid child, so [hidden] has to be spelled out. */
.md-typeset .mg-adv-result[hidden] {
  display: none;
}

.md-typeset .mg-adv-result__eyebrow {
  margin: 0;
  color: var(--ab-accent-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.md-typeset .mg-adv-result__title {
  margin: 4px 0 0;
  color: var(--ab-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.md-typeset .mg-adv-result__lead {
  margin: 6px 0 0;
  color: var(--sb-muted);
  font-size: 13px;
  line-height: 1.5;
}

.md-typeset .mg-adv-result__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.md-typeset .mg-adv-result__chat {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 0.55rem;
  background: var(--ab-green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.md-typeset .mg-adv-result__chat:hover {
  background: var(--ab-green-deep);
  color: #fff;
}

.md-typeset .mg-adv-result__again {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ab-accent-deep);
  font-family: var(--ab-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: underline;
  cursor: pointer;
}


/* ---------- five catalogue banners ---------- */

.md-typeset .mg-sb-features {
  padding-top: 28px;
}

.md-typeset .mg-sb-features__grid {
  display: grid;
  /* four catalogues since 2026-11-12 — Add-ons joined after Pre-owned, and
     the Setups banner left with its page the same day */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.md-typeset .mg-sb-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 136px;
  padding: 20px 18px 20px 22px;
  border-radius: 0.55rem;
  color: var(--ab-text);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.md-typeset .mg-sb-feature:hover {
  color: var(--ab-text);
  box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.md-typeset .mg-sb-feature--blades {
  background: linear-gradient(120deg, #f5f1e9, #e7dcc8);
}

.md-typeset .mg-sb-feature--rubbers {
  background: linear-gradient(120deg, #f8f2ec, #efded0);
}

.md-typeset .mg-sb-feature--preowned {
  background: linear-gradient(120deg, #f1f4ef, #dde5d8);
}

.md-typeset .mg-sb-feature--addons {
  background: linear-gradient(120deg, #eef4f8, #d9e6ef);
}

.md-typeset .mg-sb-feature--setups {
  background: linear-gradient(120deg, #f4f2f7, #e3ddec);
}

.md-typeset .mg-sb-feature__text {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.md-typeset .mg-sb-feature__eyebrow {
  display: block;
  color: var(--ab-text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.md-typeset .mg-sb-feature__title {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.md-typeset .mg-sb-feature__go {
  flex: none;
  display: inline-grid;
  place-items: center;
  color: var(--ab-accent-deep);
}

/* ---------- discovery band ---------- */

.md-typeset .mg-sb-discovery {
  margin-top: 36px;
  padding: 48px 0 60px;
  background: var(--sb-soft);
}

/* Three cards a row in the shelf, from a tablet up (user, 2026-11-12, later
   the same day: 「首页的Popular setups 改成每行显示3条」 — an hour after the
   five-a-row turn). The .mg-card-grid the rest of the site uses is two up;
   this is the band's own rung, so /setups/ and the shop pages keep theirs. A
   phone stays single-column on the grid's own rung.

   Three is the width these cards want. The inner column caps at 1200px, so a
   desktop card draws 389px and a 1024px window draws 315px — the earlier
   five-a-row rung drew 182px there and set a 20px uppercase title to four
   lines. The four- and five-rung media blocks this replaces are gone; one rung
   covers every window above 760. */
@media screen and (min-width: 760px) {
  .md-typeset .mg-sb-discovery .mg-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

.md-typeset .mg-sb-discovery__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.md-typeset .mg-sb-discovery__title {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ab-text);
  font-family: var(--ab-sans);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.md-typeset .mg-sb-discovery__lead {
  margin: 8px 0 0;
  color: var(--sb-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.md-typeset .mg-sb-chat {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 36px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 0.55rem;
  background: var(--ab-green);
  color: #fff;
  font-family: var(--ab-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.md-typeset .mg-sb-chat:hover {
  background: var(--ab-green-deep);
  color: #fff;
}

/* category pills */

.md-typeset .mg-sb-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.md-typeset .mg-sb-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 0.55rem;
  background: var(--sb-chip);
  color: var(--sb-muted);
  font-family: var(--ab-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.md-typeset .mg-sb-pill:hover {
  background: #e0e0e0;
}

.md-typeset .mg-sb-pill.is-active {
  background: var(--ab-text);
  color: #fcfcfc;
}

.md-typeset .mg-sb-pill.is-active:hover {
  background: #333;
}

/* card grid */

.md-typeset .mg-sb-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.md-typeset .mg-sb-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 14px 14px 12px;
  border: 1px solid var(--sb-line);
  border-radius: 0.55rem;
  background: #fff;
  text-align: left;
  transition: box-shadow 0.18s ease;
}

.md-typeset .mg-sb-card:hover {
  box-shadow: 0 14px 26px -20px rgba(0, 0, 0, 0.45);
}

.md-typeset .mg-sb-card[hidden] {
  display: none;
}

/* Square like the reference card, but `contain` rather than `cover`: these are
   packaged products shot on white at every aspect there is, and a bottle cut
   off at the cap reads worse than a little air around it. */
.md-typeset .mg-sb-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 0.4rem;
  background: #fafafa;
}

.md-typeset .mg-sb-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 6px;
  border-radius: 0;
  object-fit: contain;
  cursor: zoom-in;
}

/* the photo-count pill gallery-lightbox.js stamps on a multi-photo card */
.md-typeset .mg-sb-card .mg-price-thumb-count {
  right: 8px;
  bottom: 8px;
}

.md-typeset .mg-sb-card__title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.8em;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  color: var(--ab-text);
  font-family: var(--ab-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.md-typeset .mg-sb-card__quote {
  margin: 6px 0 0;
  padding: 0;
}

.md-typeset .mg-sb-card__price {
  color: var(--ab-red);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.md-typeset .mg-sb-card__bottom {
  margin-top: auto;
  padding-top: 10px;
}

/* price-cart.js binds any .mg-cart-add, so the cart line is the shop's own
   button; only its shape changes to the reference card's full-width action. */
.md-typeset .mg-sb-card .mg-cart-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 0.4rem;
  background: var(--ab-green);
  color: #fff;
  font-family: var(--ab-sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.md-typeset .mg-sb-card .mg-cart-add:hover {
  background: var(--ab-green-deep);
}

.md-typeset .mg-sb-card .mg-cart-add--done {
  background: var(--ab-green-deep);
}

.md-typeset .mg-sb-empty {
  margin: 32px 0 0;
  color: var(--sb-muted);
  font-size: 15px;
  line-height: 1.6;
}

.md-typeset .mg-sb-empty[hidden] {
  display: none;
}

/* a hash landing gets a little air under the band's edge */
.md-typeset .mg-sb [id] {
  scroll-margin-top: 16px;
}

/* ---------- breakpoints ---------- */

@media screen and (max-width: 1199px) {
  .md-typeset .mg-sb-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (max-width: 1099px) {
  .md-typeset .mg-sb-advisor {
    padding: 32px 0 36px;
  }

  .md-typeset .mg-sb-advisor__content {
    padding: 24px;
  }
}

@media screen and (max-width: 1023px) {
  .md-typeset .mg-sb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* four banners: 2 + 2, so no row ends on a lone card */
  .md-typeset .mg-sb-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .md-typeset .mg-sb-inner {
    width: min(1200px, 100% - 32px);
  }

  .md-typeset .mg-sb-advisor {
    padding: 24px 0 28px;
  }

  .md-typeset .mg-sb-advisor__card {
    padding: 0;
  }

  .md-typeset .mg-sb-advisor__content {
    padding: 20px;
  }

  .md-typeset .mg-adv-form__note {
    grid-column: 1;
  }

  .md-typeset .mg-adv-box {
    padding: 14px 14px 12px;
  }

  /* Show my setup stays left of the fixed cart/WhatsApp floats */
  .md-typeset .mg-adv-submit {
    margin-left: 0;
  }

  .md-typeset .mg-adv-box__foot {
    flex-wrap: wrap;
  }

  .md-typeset .mg-adv-result {
    padding: 20px;
  }

  .md-typeset .mg-sb-advisor__title {
    font-size: 21px;
  }

  .md-typeset .mg-sb-features {
    padding-top: 20px;
  }

  .md-typeset .mg-sb-features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md-typeset .mg-sb-feature {
    min-height: 108px;
    padding: 14px 14px 14px 16px;
  }

  .md-typeset .mg-sb-feature__title {
    font-size: 18px;
  }

  .md-typeset .mg-sb-discovery {
    margin-top: 24px;
    padding: 32px 0 40px;
  }

  .md-typeset .mg-sb-discovery__head {
    flex-wrap: wrap;
  }

  .md-typeset .mg-sb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .md-typeset .mg-sb-card {
    padding: 12px 12px 10px;
  }
}

@media screen and (max-width: 389px) {
  .md-typeset .mg-sb-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
