/* The app menu as a sidebar (wide screens) and as the /menu page. */
:root{--sl-bp:1180px;}

.sm-card{--sm-line:color-mix(in srgb, var(--navy) 10%, transparent); --sm-surf:color-mix(in srgb, var(--navy) 4%, transparent); --sm-surf2:color-mix(in srgb, var(--navy) 8%, transparent);
  --sm-gold:#e0a93a; --sm-pink:#e8639a; --sm-brand:linear-gradient(135deg,#31d6a8,#4a9df0);
  display:flex; flex-direction:column; gap:28px; padding:0;}
html[data-theme="light"] .sm-card{--sm-gold:#b98a24; --sm-pink:#d6477f;}
.sm-card.is-short{gap:22px;}
/* phones: one column in this order (the wrappers vanish and `order` sorts the blocks); wide /menu page: the account strip on top, then three columns */
.sm-c1,.sm-c2,.sm-c3{display:contents;}
.sm-user,.sm-guest{order:1;} .sm-cards{order:2;} .is-industry{order:3;} .is-rank{order:4;} .is-library{order:5;} .is-community{order:6;} .is-app{order:7;} .sm-foot{order:8;}
@media (min-width:900px){
  .sm-card:not(.is-short){display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:34px 40px; align-items:start;}
  .sm-card:not(.is-short) .sm-user,.sm-card:not(.is-short) .sm-guest{grid-column:1/-1;}
  .sm-card:not(.is-short) .sm-c1,.sm-card:not(.is-short) .sm-c2,.sm-card:not(.is-short) .sm-c3{order:2;}
  .sm-card:not(.is-short) .sm-c1,.sm-card:not(.is-short) .sm-c2,.sm-card:not(.is-short) .sm-c3{display:flex; flex-direction:column; gap:30px; min-width:0;}
}

/* who you are */
.sm-me{display:flex; align-items:center; gap:12px; color:var(--navy); text-decoration:none; min-width:0;}
.sm-av{position:relative; width:48px; height:48px; flex:none; border-radius:50%; overflow:hidden; background:linear-gradient(135deg,#4a8fe0,#7b6be0); display:grid; place-items:center; font:700 19px/1 'Sora','Inter',sans-serif; color:#fff;
  box-shadow:0 0 0 2px var(--paper), 0 0 0 3.5px color-mix(in srgb, var(--teal) 70%, transparent);}
.sm-av img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.sm-who{display:flex; flex-direction:column; min-width:0; gap:2px;}
.sm-who b{font:700 16px/1.25 'Sora','Inter',sans-serif; letter-spacing:-.01em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.sm-who i{direction:ltr; text-align:start; font:normal 500 13px/1.2 'Inter',sans-serif; color:var(--navy-soft); overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
html[lang="ar"] .sm-who b,html[lang="ja"] .sm-who b{font-family:inherit; letter-spacing:0;}
.sm-guest{flex-direction:column; align-items:stretch; text-align:center; gap:12px; padding:16px 14px; border-radius:18px; background:var(--sm-surf); border:1px solid var(--sm-line);}
.sm-guest .sm-who b{white-space:normal; font-size:14.5px; line-height:1.4;}
.sm-guest .btn{justify-content:center;}

.sm-user{--ac:var(--teal); display:flex; flex-direction:column; padding:16px; border-radius:18px; color:var(--navy); background:var(--white); border:1px solid var(--sm-line);}
.sm-user.is-premium{--ac:#e0a93a;} .sm-user.is-staff{--ac:#5fb0de;}
.sm-user.is-premium .sm-av,.sm-user.is-staff .sm-av{box-shadow:0 0 0 2px var(--paper), 0 0 0 3.5px var(--ac);}
/* photo with the status badge (crown = Premium, shield = staff) */
.sm-avw{position:relative; flex:none; display:block;}
.sm-avb{position:absolute; inset-inline-end:-4px; bottom:-4px; width:22px; height:22px; border-radius:50%; display:grid; place-items:center; background:var(--ac); color:#2a1a00; border:2px solid var(--white);}
.sm-user.is-staff .sm-avb{color:#06202f;}
.sm-avb svg{width:12px; height:12px;}
/* the upgrade bar (members without Premium) */
.sm-upg{display:flex; align-items:center; gap:10px; margin-top:14px; padding:11px 14px; border-radius:14px; text-decoration:none; color:var(--navy);
  background:linear-gradient(120deg, color-mix(in srgb, #f7d26a 22%, transparent), color-mix(in srgb, #f0a93b 12%, transparent)); border:1px solid color-mix(in srgb, #e0a93a 45%, transparent); transition:transform .15s,border-color .15s;}
.sm-upg:hover{transform:translateY(-1px); border-color:#e0a93a;}
.sm-upg-ic{display:grid; place-items:center; flex:none; width:34px; height:34px; border-radius:50%; background:linear-gradient(120deg,#f7d26a,#f0a93b); color:#2a1a00;}
.sm-upg-ic svg{width:17px; height:17px;}
.sm-upg span{display:grid; gap:1px; min-width:0; flex:1;}
.sm-upg b{font:700 13.5px/1.2 'Sora','Inter',sans-serif;}
.sm-upg small{font-size:12px; line-height:1.3; color:var(--navy-soft);}
html[lang="ar"] .sm-upg b,html[lang="ja"] .sm-upg b{font-family:inherit;}
.sm-upg>svg{width:16px; height:16px; flex:none; color:var(--navy-soft);}
html[dir="rtl"] .sm-upg>svg{scale:-1 1;}
a.sm-av{text-decoration:none;}
.sm-user .sm-av{width:52px; height:52px; font-size:20px;}
.sm-h1{display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px;}
.sm-user .sm-who{gap:3px; color:var(--navy); text-decoration:none;}
.sm-user .sm-who b{line-height:1.2;} .sm-user .sm-who i{line-height:1.2;}
.sm-coins{display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:14px;}
.sm-coin{--k:var(--teal); min-width:0; display:flex; align-items:center; gap:9px; height:46px; padding:0 12px 0 5px; border-radius:999px; border:1px solid color-mix(in srgb, var(--k) 38%, var(--sm-line));
  background:radial-gradient(120% 160% at 0% 50%, color-mix(in srgb, var(--k) 15%, transparent), transparent 70%);}
html[dir="rtl"] .sm-coin{padding:0 5px 0 12px; background:radial-gradient(120% 160% at 100% 50%, color-mix(in srgb, var(--k) 15%, transparent), transparent 70%);}
.sm-coin i{display:grid; place-items:center; width:34px; height:34px; flex:none; border-radius:50%;}
.sm-coin b{display:block; font:800 18px/1 'Sora','Inter',sans-serif; letter-spacing:-.02em; color:var(--k);}
.sm-coin small{display:block; margin-top:3px; font:600 9px/1 'JetBrains Mono',monospace; letter-spacing:.12em; text-transform:uppercase; color:var(--navy-soft); white-space:nowrap;}
/* the chips are links to the balance page */
a.sm-coin{color:inherit; text-decoration:none; transition:transform .15s,border-color .15s,background .15s;}
a.sm-coin:hover{transform:translateY(-1px); border-color:color-mix(in srgb, var(--k) 65%, var(--sm-line));}
.sm-coin.is-on{border-color:var(--k); box-shadow:0 0 0 1px color-mix(in srgb, var(--k) 55%, transparent);}
.sm-coin.is-star{--k:var(--sm-gold);}
/* the chip icons are the real Stars / Aura pictures */
.sm-coin i img{display:block; width:100%; height:100%; object-fit:contain;}
.sm-foot2{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; padding-top:14px; border-top:1px solid var(--sm-line); min-height:30px;}
.sm-follow{min-width:0; display:flex; flex-wrap:wrap; gap:4px 16px; font-size:13px; line-height:30px; color:var(--navy-soft);}
.sm-follow b{color:var(--navy); font-weight:700; font-size:14px;}
.sm-follow a{color:inherit; text-decoration:none; border-radius:6px; white-space:nowrap;}
.sm-follow a:hover{color:var(--teal);}
/* Gifts: the member's gift history, a small pink button */
.sm-gifts{--c:var(--sm-pink); display:inline-flex; align-items:center; justify-content:center; gap:7px; flex:none; height:30px; padding:0 12px; border-radius:999px; text-decoration:none; color:var(--c); background:color-mix(in srgb, var(--c) 14%, transparent); border:1px solid transparent; font:700 12.5px/1 'Inter',sans-serif; transition:background .15s,border-color .15s;}
html[lang="ar"] .sm-gifts,html[lang="ja"] .sm-gifts{font-family:inherit;}
.sm-gifts svg{width:15px; height:15px;}
a.sm-gifts:hover{background:color-mix(in srgb, var(--c) 22%, transparent); border-color:color-mix(in srgb, var(--c) 40%, transparent);}
.sm-gifts.is-soon{opacity:.5; cursor:default;}

/* the wide /menu page: the account becomes one compact strip that is only as wide as its content (name and follow counts | Stars and Aura stacked | Premium and Gifts stacked) */
@media (min-width:900px){
  .sm-card:not(.is-short) .sm-user{display:grid; grid-template-columns:auto auto auto auto; grid-template-areas:"av who coins prem" "av follow coins gifts"; column-gap:0; row-gap:6px; align-items:center; justify-self:start; width:fit-content; max-width:100%; padding:16px 24px;}
  .sm-card:not(.is-short) .sm-h1,.sm-card:not(.is-short) .sm-foot2{display:contents;}
  .sm-card:not(.is-short) .sm-user .sm-avw{grid-area:av; margin-inline-end:16px;}
  .sm-card:not(.is-short) .sm-user .sm-av{width:60px; height:60px; font-size:23px;}
  .sm-card:not(.is-short) .sm-user .sm-who{grid-area:who; align-self:end; padding-inline-end:28px;}
  .sm-card:not(.is-short) .sm-follow{grid-area:follow; align-self:start; flex-wrap:nowrap; gap:14px; line-height:1.3; padding-inline-end:28px;}
  .sm-card:not(.is-short) .sm-coins{grid-area:coins; grid-template-columns:1fr; gap:8px; margin:-16px 0; padding:14px 24px; align-self:stretch; align-content:center; border-inline:1px solid var(--sm-line); background:color-mix(in srgb, var(--navy) 3%, transparent);}
  .sm-card:not(.is-short) .sm-coin{height:40px; min-width:170px;}
  .sm-card:not(.is-short) .sm-coin i{width:30px; height:30px;}
  .sm-card:not(.is-short) .sm-coin b{font-size:16px;}
  .sm-card:not(.is-short) .sm-upg{grid-area:prem; margin:0; margin-inline-start:24px; height:34px; padding:0 12px 0 5px; gap:8px; border-radius:999px;}
  .sm-card:not(.is-short) .sm-upg-ic{width:24px; height:24px;} .sm-card:not(.is-short) .sm-upg-ic svg{width:13px; height:13px;}
  .sm-card:not(.is-short) .sm-upg small,.sm-card:not(.is-short) .sm-upg>svg{display:none;}
  .sm-card:not(.is-short) .sm-gifts{grid-area:gifts; margin-inline-start:24px; height:34px; padding:0 14px;}
  /* Premium and staff have no upgrade pill: Gifts takes the whole column, centered, so the strip stays balanced */
  .sm-card:not(.is-short) .sm-user.is-premium .sm-gifts,.sm-card:not(.is-short) .sm-user.is-staff .sm-gifts{grid-column:4; grid-row:1 / span 2; align-self:center; height:38px; padding:0 18px;}
}
/* the narrow sidebar: Premium and Gifts shrink to icons so the name keeps its room */
.sm-card.is-short .sm-gifts{width:30px; padding:0;} .sm-card.is-short .sm-gifts-t{display:none;}
.sm-card.is-short .sm-user{padding:14px;}
.sm-card.is-short .sm-follow{gap:2px 12px; font-size:12.5px;}

/* section titles */
.sm-group{padding:0; border:0;}
.sm-h{display:flex; align-items:center; gap:9px; margin:0 2px 12px; font:700 15px/1.2 'Sora','Inter',sans-serif; color:var(--navy);}
.sm-h::before{content:""; width:9px; height:9px; border-radius:50%; background:var(--sm-brand); flex:none;}
html[lang="ar"] .sm-h,html[lang="ja"] .sm-h{font-family:inherit;}
.sm-n{margin-inline-start:auto; font:600 11px/1 'JetBrains Mono',monospace; color:var(--navy-soft);}

/* Store, Events, Gifts */
.sm-cards{display:grid; grid-template-columns:1fr; gap:10px;}
/* Store: a compact row (same shape as the Events card): the animated icon on a teal tile, the name, a line under it, a round arrow.
 * When items were added since the last visit the tile gets a pink dot and the line turns pink ("3 new"). */
.sm-store{position:relative; display:flex; align-items:center; gap:12px; min-width:0; padding:12px 14px; border-radius:16px; color:var(--navy); text-decoration:none;
  border:1px solid var(--sm-line); background:var(--white); transition:transform .15s,border-color .15s;}
.sm-store-l{position:relative; flex:none; display:grid; place-items:center; width:44px; height:44px; border-radius:13px; color:#07201c; background:var(--teal);}
.sm-store-ic{display:block; width:30px; height:30px; object-fit:contain;}
.sm-store-dot{position:absolute; top:-4px; inset-inline-end:-4px; width:13px; height:13px; box-sizing:border-box; border-radius:50%; background:var(--sm-pink); border:2.5px solid var(--white);}
.sm-store-r{flex:1; min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:4px;}
.sm-store-r b{font:700 15px/1.2 'Sora','Inter',sans-serif; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
html[lang="ar"] .sm-store-r b,html[lang="ja"] .sm-store-r b{font-family:inherit;}
.sm-store-sub{font:600 12px/1.25 'Inter',sans-serif; color:var(--navy-soft); max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.sm-store-sub.is-new{color:var(--sm-pink); font-weight:700;}
html[lang="ar"] .sm-store-sub,html[lang="ja"] .sm-store-sub{font-family:inherit;}
.sm-store-sn{font:700 9.5px/1 'JetBrains Mono',monospace; letter-spacing:.1em; text-transform:uppercase; color:var(--teal);}
.sm-store-go{flex:none; display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:var(--sm-surf2); color:var(--navy); font-style:normal;}
.sm-store-go svg{width:16px; height:16px;}
html[dir="rtl"] .sm-store-go svg{transform:scaleX(-1);}
a.sm-store:hover{transform:translateY(-1px); border-color:color-mix(in srgb,var(--teal) 50%,var(--sm-line));}
a.sm-store:focus-visible{outline:2px solid var(--blue); outline-offset:2px;}
.sm-store.is-soon{cursor:default; opacity:.8;}
@media (prefers-reduced-motion:reduce){ .sm-store{transition:none;} }
.sm-events .sm-store-l{background:var(--sm-gold);}
a.sm-events:hover{border-color:color-mix(in srgb,var(--sm-gold) 55%,var(--sm-line));}
.sm-live{display:inline-flex; align-items:center; gap:6px; color:#e5384a; font-weight:700;}
html[data-theme="dark"] .sm-live,html:not([data-theme="light"]) .sm-live{color:#ff6b79;}
.sm-live i{flex:none; width:8px; height:8px; border-radius:50%; background:currentColor; box-shadow:0 0 0 4px color-mix(in srgb,currentColor 22%,transparent);}
@media (prefers-reduced-motion:no-preference){ .sm-live i{animation:sm-pulse 1.8s ease-in-out infinite;} }
@keyframes sm-pulse{50%{box-shadow:0 0 0 6px color-mix(in srgb,currentColor 8%,transparent);}}
.sm-card2{--c:var(--teal); display:flex; align-items:center; gap:12px; min-width:0; padding:12px 14px; border-radius:16px; color:var(--navy); text-decoration:none; font:700 14.5px/1.2 'Sora','Inter',sans-serif;
  border:1px solid color-mix(in srgb, var(--c) 26%, var(--sm-line)); background:linear-gradient(145deg, transparent, color-mix(in srgb, var(--c) 7%, transparent)); transition:transform .15s,border-color .15s;}
html[lang="ar"] .sm-card2,html[lang="ja"] .sm-card2{font-family:inherit;}
a.sm-card2:hover{transform:translateY(-1px); border-color:color-mix(in srgb, var(--c) 50%, var(--sm-line));}
.sm-card2.is-events{--c:var(--sm-gold);}
.sm-q-ic{display:grid; place-items:center; width:36px; height:36px; flex:none; border-radius:50%; background:color-mix(in srgb, var(--c) 16%, transparent); color:var(--c);}
.sm-q-ic svg{width:18px; height:18px;}
.sm-q-t{display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-width:0;}
.sm-card2 b{font:inherit; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.sm-soon{font:600 9.5px/1 'JetBrains Mono',monospace; letter-spacing:.1em; text-transform:uppercase; color:var(--navy-soft); flex:none;}
.sm-card2.is-soon{cursor:default;}
.sm-card.is-short .sm-cards{grid-template-columns:1fr;}
.sm-card.is-short .sm-card2{padding:10px 12px; gap:10px;}

/* Industry: gradient rounded squares */
.sm-tiles{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px 6px;}
.sm-tile{display:grid; justify-items:center; align-content:start; gap:8px; padding:6px 0 4px; border-radius:14px; text-align:center; color:var(--navy); text-decoration:none; font:550 12.5px/1.25 'Inter',sans-serif; min-width:0;}
html[lang="ar"] .sm-tile,html[lang="ja"] .sm-tile{font-family:inherit;}
.sm-tile i{display:grid; place-items:center; width:52px; height:52px; border-radius:16px; color:#fff;
  background:linear-gradient(145deg, color-mix(in srgb, var(--t) 88%, #fff), color-mix(in srgb, var(--t) 82%, #000));
  box-shadow:inset 0 1px 0 rgb(255 255 255/.22), 0 10px 18px -12px rgb(0 0 0/.7); transition:transform .15s,box-shadow .15s;}
.sm-tile i svg{width:23px; height:23px;}
.sm-tile span{max-width:100%; overflow-wrap:anywhere;}
a.sm-tile:hover i{transform:translateY(-3px); box-shadow:inset 0 1px 0 rgb(255 255 255/.22), 0 14px 22px -12px rgb(0 0 0/.8);}
.sm-tile.is-soon{opacity:.45; cursor:default;}

/* Top contributors: a striped gold edge, the title, this week's real first three and a trophy */
.sm-rk{--gold:#e0a92c; position:relative; overflow:hidden; display:flex; align-items:center; gap:12px; padding:15px 14px 15px 26px; border-radius:20px; color:var(--navy); text-decoration:none; background:var(--white); border:1px solid var(--border-soft); transition:transform .15s,border-color .15s;}
html[dir="rtl"] .sm-rk{padding:15px 26px 15px 14px;}
.sm-rk::before{content:""; position:absolute; inset-block:0; inset-inline-start:0; width:10px; background:repeating-linear-gradient(180deg,var(--gold) 0 10px,color-mix(in srgb,var(--gold) 55%,#000) 10px 20px);}
.sm-rk.is-soon{cursor:default;}
a.sm-rk:hover{transform:translateY(-1px); border-color:var(--gold);}
a.sm-rk:focus-visible{outline:2px solid var(--blue); outline-offset:2px;}
.sm-rk-tx{flex:1; min-width:0;}
.sm-rk-tx b{display:flex; align-items:center; gap:7px; font:800 16px/1.2 'Sora','Inter',sans-serif; color:var(--navy);}
html[lang="ar"] .sm-rk-tx b,html[lang="ja"] .sm-rk-tx b{font-family:inherit;}
.sm-rk-tx small{display:block; margin-top:3px; font-size:12.5px; line-height:1.35; color:var(--navy-soft);}
.sm-rk .sm-soon{padding:3px 7px;}
.sm-rk-stack{display:flex; margin-top:10px; direction:ltr; width:max-content;}
html[dir="rtl"] .sm-rk-stack{margin-inline-start:auto;}
.sm-rk-av{position:relative; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; overflow:hidden; background:var(--blue-tint); color:var(--blue-dark); font:800 11px/1 'Sora','Inter',sans-serif; font-style:normal; box-shadow:0 0 0 2px var(--white),0 0 0 4px var(--ring);}
.sm-rk-av.is-sq{border-radius:22%;}
.sm-rk-av img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.sm-rk-av.m1{--ring:#f2c45a; z-index:3;} .sm-rk-av.m2{--ring:#b9c3cf; z-index:2;} .sm-rk-av.m3{--ring:#d68b52; z-index:1;}
.sm-rk-av + .sm-rk-av{margin-inline-start:6px; margin-left:6px;}
.sm-rk-tr{flex:none; display:grid; place-items:center; width:30px; height:30px; color:var(--gold); font-style:normal;}
.sm-rk-tr svg{width:30px; height:30px;}
.sm-rk-go{flex:none; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--blue-tint); color:var(--blue);}
.sm-rk-go svg{width:15px; height:15px;}
html[dir="rtl"] .sm-rk-go svg{transform:scaleX(-1);}
@media (prefers-reduced-motion:reduce){ .sm-rk{transition:none;} }

/* lists: round icon chips, hairlines, chevrons */
.sm-list{list-style:none; margin:0; padding:0;}
.sm-list li{position:relative;}
.sm-list li + li::before{content:""; position:absolute; inset-inline:60px 10px; top:0; height:1px; background:var(--sm-line);}
.sm-item{position:relative; display:flex; align-items:center; gap:14px; min-height:52px; padding:8px 10px; border-radius:14px; color:var(--navy); text-decoration:none; font:550 15px/1.25 'Inter',sans-serif; transition:background .15s;}
html[lang="ar"] .sm-item,html[lang="ja"] .sm-item{font-family:inherit;}
a.sm-item:hover{background:var(--sm-surf2);}
a.sm-item::after{content:""; width:16px; height:16px; flex:none; background:var(--navy-soft); opacity:.55; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;}
html[dir="rtl"] a.sm-item::after{transform:scaleX(-1);}
.sm-item.is-on{background:color-mix(in srgb, var(--teal) 10%, transparent);}
.sm-item.is-on::before{content:""; position:absolute; inset-inline-start:0; top:12px; bottom:12px; width:3px; border-radius:3px; background:var(--teal);}
.sm-ic{display:grid; place-items:center; width:36px; height:36px; flex:none; border-radius:50%; background:var(--sm-surf2); color:var(--navy-soft); transition:background .15s,color .15s;}
.sm-ic svg{width:18px; height:18px;}
a.sm-item:hover .sm-ic,.sm-item.is-on .sm-ic{background:color-mix(in srgb, var(--k,var(--teal)) 16%, transparent); color:var(--k,var(--teal));}
.sm-t{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.sm-item.is-soon{opacity:.45; cursor:default;}
.sm-item .sm-soon{padding:3px 8px; border-radius:999px; background:var(--sm-surf2);}
.sm-card a:focus-visible{outline:2px solid var(--blue); outline-offset:2px;}
.sm-card.is-short .sm-item{min-height:46px;}

/* wide /menu page: Library and Community items are big square cards in a two-column grid, tinted in each item's colour */
@media (min-width:900px){
  .sm-card:not(.is-short) .is-library .sm-list,.sm-card:not(.is-short) .is-community .sm-list{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
  .sm-card:not(.is-short) .is-library .sm-list li::before,.sm-card:not(.is-short) .is-community .sm-list li::before{display:none;}
  .sm-card:not(.is-short) .is-library .sm-item,.sm-card:not(.is-short) .is-community .sm-item{flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:12px; min-height:92px; height:100%; padding:14px; border-radius:16px; border:1px solid var(--sm-line); background:var(--sm-surf); transition:transform .15s,border-color .15s,background .15s;}
  .sm-card:not(.is-short) .is-library a.sm-item:hover,.sm-card:not(.is-short) .is-community a.sm-item:hover{transform:translateY(-2px); border-color:color-mix(in srgb, var(--k,var(--teal)) 50%, var(--sm-line)); background:linear-gradient(160deg, color-mix(in srgb, var(--k,var(--teal)) 9%, transparent), var(--sm-surf));}
  .sm-card:not(.is-short) .is-library a.sm-item::after,.sm-card:not(.is-short) .is-community a.sm-item::after{display:none;}
  .sm-card:not(.is-short) .is-library .sm-item .sm-t,.sm-card:not(.is-short) .is-community .sm-item .sm-t{flex:none; max-width:100%; white-space:normal; font-size:14px; line-height:1.25;}
  .sm-card:not(.is-short) .is-library a.sm-item .sm-ic,.sm-card:not(.is-short) .is-community a.sm-item .sm-ic{background:color-mix(in srgb, var(--k,var(--teal)) 16%, transparent); color:var(--k,var(--teal));}
  .sm-card:not(.is-short) .is-community .sm-item.is-soon .sm-soon{position:absolute; top:12px; inset-inline-end:12px; padding:0; background:none;}
}

/* footer */
.sm-foot{padding:0 0 4px; margin:0; border:0;}
.sm-social{display:flex; flex-wrap:nowrap; gap:6px;}
.sm-social a{display:grid; place-items:center; flex:none; width:30px; height:30px; aspect-ratio:1; border-radius:50%; background:none; border:1px solid var(--sm-line); color:var(--navy-soft); text-decoration:none; transition:border-color .15s,color .15s;}
.sm-social a:hover{border-color:var(--teal);}
.sm-social img{display:block; width:17px; height:17px; object-fit:contain;}
.sm-legal{display:flex; flex-wrap:wrap; gap:6px 18px; margin:14px 2px 0; font-size:12.5px;}
.sm-legal a{color:var(--navy-soft); text-decoration:none;}
.sm-legal a:hover{color:var(--navy); text-decoration:underline;}
.sm-copy{margin:8px 2px 4px; font-size:11.5px; color:var(--navy-soft); opacity:.8;}

/* ---- the /menu page ---- */
.sm-page{position:relative; overflow-x:clip; background:var(--paper); padding:26px 0 70px; min-height:70vh;}
/* the glow fades in from nothing at the top and out at the bottom, so there is no visible edge anywhere */
.sm-page::before{content:""; position:absolute; inset:-30px 0 auto 0; height:380px; background:radial-gradient(36% 46% at 28% 40%, color-mix(in srgb, var(--teal) 7%, transparent), transparent); -webkit-mask-image:linear-gradient(transparent, #000 40%, #000 55%, transparent); mask-image:linear-gradient(transparent, #000 40%, #000 55%, transparent); pointer-events:none;}
@media (max-width:899px){ .sm-page::before{background:radial-gradient(60% 46% at 50% 40%, color-mix(in srgb, var(--teal) 7%, transparent), transparent);} }
.sm-page-in{position:relative; width:min(560px,100% - 32px); margin-inline:auto;}
@media (min-width:900px){ .sm-page{padding:18px 0 90px;} .sm-page-in{width:min(1120px,100% - 96px);} }
/* phone: the wrapper (.pg-main 30px) + .sm-page (26px) stacked into a 56px gap under the top bar; keep one tighter 14px */
@media (max-width:899px){ .pg-main:has(>.sm-page){padding-top:0;} .sm-page{padding-top:14px;} }
.sm-page-in > h1{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; margin:0; font:800 24px/1.3 'Sora','Inter',sans-serif; color:var(--navy);}
html[lang="ar"] .sm-page-in > h1,html[lang="ja"] .sm-page-in > h1{font-family:inherit;}

/* ---- the layout around a page ---- */
.sl-bg{background:var(--paper);}
.sl-menu,.sl-end{display:none;}
@media (min-width:1180px){
  .sl{--sl-col:288px; --sl-top:156px; padding-top:14px; display:grid; grid-template-columns:var(--sl-col) minmax(0,1fr); gap:28px; width:min(1560px,100% - 40px); margin-inline:auto; align-items:start;}
  .sl.has-end{grid-template-columns:var(--sl-col) minmax(0,1fr) var(--sl-col);}
  /* pinned: it stays in view while the page scrolls and never scrolls inside itself. It follows the header
   * (which slides away while reading down), the same way the community tabs do. */
  .sl-menu{display:block; position:sticky; top:var(--sl-top); align-self:start; padding:0 0 24px; transition:top .28s ease;}
  html.nav-hidden .sl-menu{--sl-top:76px;}
  html.nav-instant .sl-menu{transition:none;}
  .sl-end{display:block; min-height:1px;}
  .sl-main{min-width:0;}
}
/* short windows: drop the small print so the whole menu always fits without scrolling */
@media (min-width:1180px) and (max-height:820px){ .sm-copy{display:none;} }
@media (min-width:1180px) and (max-height:700px){ .sm-legal{display:none;} .sm-card{gap:12px;} a.sm-item,.sm-item{min-height:0; padding-block:4px;} }
.sm-card.is-short .sm-cards{grid-template-columns:1fr;}

