/* SML Design System 1.1.0
   One look for every page of stockmarketloop.com. Tokens first, then the theme pages (Twenty Twenty-Two), then the shared
   components other plugins print (engagement controls, feed cards, the global header), then the Groups screen.
   Everything here refines markup that already exists; nothing is added or removed. */

:root {
  --sml-bg: #0b1119;
  --sml-bg-2: #0d1520;
  --sml-panel: #121a26;
  --sml-panel-2: #172231;
  --sml-line: rgba(255, 255, 255, .08);
  --sml-line-2: rgba(255, 255, 255, .14);
  --sml-text: #e6edf5;
  --sml-muted: #93a4b8;
  --sml-dim: #6b7c90;
  --sml-green: #38f58a;
  --sml-green-ink: #03120a;
  --sml-green-soft: rgba(56, 245, 138, .12);
  --sml-red: #f2495c;
  --sml-blue: #7ae6ff;
  --sml-amber: #ffb020;
  --sml-font: "IBM Plex Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --sml-display: Archivo, "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --sml-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sml-radius: 12px;
  --sml-radius-lg: 16px;
  --sml-shadow: 0 10px 30px -14px rgba(0, 0, 0, .7);
  --sml-focus: 0 0 0 3px rgba(122, 230, 255, .45);
}

/* ---------- base ---------- */
html { -webkit-text-size-adjust: 100%; }
body.sml-ds, body.wp-theme-twentytwentytwo, body.sml-store-page, body.sml-signal-news-post {
  font-family: var(--sml-font);
  font-size: 16px; line-height: 1.55; letter-spacing: .002em;
  font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "calt";
  background: var(--sml-bg);
  color: var(--sml-text);
}
/* the house type everywhere, including the screens that print their own <body> and the scripts and inline styles that still name the old font */
html { font-family: var(--sml-font); }
#sml-global-header, #sml-hf-shell, #sml-optimized-home, #sml-landing-v2, .sml-article-wrap, .sml-newsletter-page, .sml-terminal, .sml-guest-modal, [class*="sml-guest"],
[style*="font-family: Inter"], [style*="font-family:Inter"], [style*="font-family: 'Inter'"], [style*='font-family: "Inter"'] { font-family: var(--sml-font) !important; }
.sml-gh-tick, .sml-gh-tick * { font-family: var(--sml-mono) !important; }
button, input, select, textarea { font-family: inherit; }
body.sml-ds table, body.sml-ds .sml-gh-tape, body.sml-ds [class*="price"], body.sml-ds [class*="quote"] { font-variant-numeric: tabular-nums; }
body.sml-ds .sml-ds-kicker, body.sml-ds .sml-kicker, body.sml-ds .sml-newsletter-kicker { font-family: var(--sml-mono); letter-spacing: .08em; text-transform: uppercase; font-size: 11px; font-weight: 600; }
/* the header is inserted by a script that runs late; hold its space from the first paint so the page does not jump when it lands */
body.sml-ds:not(.sml-global-header-on):not(.login):not(.sml-embed-tool):not(.sml-pwa-standalone) { padding-top: 100px; }
@media (max-width: 820px) { body.sml-ds:not(.sml-global-header-on):not(.login):not(.sml-embed-tool):not(.sml-pwa-standalone) { padding-top: 172px; } }
body.sml-ds.sml-global-header-on { padding-top: 0; }
/* colours a few older snippets still pick from a framework palette, brought onto the house tokens */
body.sml-ds .sml-quote { background: var(--sml-panel) !important; color: var(--sml-text) !important; border: 1px solid var(--sml-line-2) !important; }
body.sml-ds .sml-quote-label { color: var(--sml-blue) !important; }
body.sml-ds .sml-btn.dark { background: var(--sml-panel-2) !important; color: #fff !important; border: 1px solid var(--sml-line-2); }
body.sml-ds .sml-btn.secondary { background: var(--sml-blue) !important; color: #06202a !important; }
body.sml-ds .sml-sgf-tab { background: var(--sml-green) !important; color: var(--sml-green-ink) !important; }
body.sml-ds .sml-lf__share-toggle:hover { color: var(--sml-blue) !important; background: rgba(122, 230, 255, .1) !important; }
body.sml-ds :focus-visible { outline: none; box-shadow: var(--sml-focus); border-radius: 6px; }
body.sml-ds ::selection { background: rgba(56, 245, 138, .28); color: #fff; }
body.sml-ds .wp-site-blocks img, body.sml-ds .entry-content img { max-width: 100%; height: auto; } /* content images only: the global header sizes its own logo */
@media (prefers-reduced-motion: reduce) { body.sml-ds *, body.sml-ds *::before, body.sml-ds *::after { animation-duration: .001s !important; transition-duration: .001s !important; } }

/* ---------- theme pages (Twenty Twenty-Two): the dark canvas and one type scale ---------- */
body.wp-theme-twentytwentytwo .wp-site-blocks { background: transparent; color: var(--sml-text); }
body.wp-theme-twentytwentytwo .wp-site-blocks > header.wp-block-template-part,
body.wp-theme-twentytwentytwo .wp-site-blocks > .wp-block-template-part:first-child { display: none; } /* the theme header: the site already has its global header */
body.wp-theme-twentytwentytwo main, body.wp-theme-twentytwentytwo .entry-content { font-family: var(--sml-font); }
body.wp-theme-twentytwentytwo h1, body.wp-theme-twentytwentytwo h2, body.wp-theme-twentytwentytwo h3, body.wp-theme-twentytwentytwo h4,
body.wp-theme-twentytwentytwo .wp-block-post-title, body.wp-theme-twentytwentytwo .wp-block-site-title, body.wp-theme-twentytwentytwo .wp-block-query-title {
  font-family: var(--sml-display); font-weight: 800; letter-spacing: -.028em; color: #fff; line-height: 1.08; text-wrap: balance;
}
body.wp-theme-twentytwentytwo h3, body.wp-theme-twentytwentytwo h4 { font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
body.wp-theme-twentytwentytwo h1, body.wp-theme-twentytwentytwo .wp-block-post-title { font-size: clamp(30px, 4.2vw, 46px); }
body.wp-theme-twentytwentytwo h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 1.6em; }
body.wp-theme-twentytwentytwo h3 { font-size: clamp(19px, 2.2vw, 23px); }
body.wp-theme-twentytwentytwo h4 { font-size: 17px; }
body.wp-theme-twentytwentytwo .wp-block-site-title, body.wp-theme-twentytwentytwo .wp-block-site-title a { font-size: 26px; text-decoration: none; }
body.wp-theme-twentytwentytwo .entry-content p, body.wp-theme-twentytwentytwo .entry-content li { font-size: 17px; line-height: 1.68; color: var(--sml-text); }
body.wp-theme-twentytwentytwo .entry-content p.has-large-font-size { font-size: 20px; line-height: 1.5; color: #fff; }
body.wp-theme-twentytwentytwo .entry-content :where(p, li, figcaption, td) > a:not(.wp-block-button__link):not(.sml-btn) { color: var(--sml-blue); text-decoration: underline; text-decoration-color: rgba(122, 230, 255, .4); text-underline-offset: 3px; }
body.wp-theme-twentytwentytwo .entry-content :where(p, li, figcaption, td) > a:not(.wp-block-button__link):hover { text-decoration-color: var(--sml-blue); }
body.wp-theme-twentytwentytwo .wp-block-separator { border: 0; border-top: 1px solid var(--sml-line-2); opacity: 1; width: 100%; max-width: none; margin: 28px auto; }
body.wp-theme-twentytwentytwo .wp-block-post-date, body.wp-theme-twentytwentytwo .wp-block-post-author, body.wp-theme-twentytwentytwo .wp-block-post-terms { color: var(--sml-muted); font-size: 14px; }
body.wp-theme-twentytwentytwo .wp-block-image img, body.wp-theme-twentytwentytwo .wp-block-post-featured-image img, body.wp-theme-twentytwentytwo .entry-content figure img { border-radius: var(--sml-radius-lg); border: 1px solid var(--sml-line); }
body.wp-theme-twentytwentytwo figcaption { color: var(--sml-dim); font-size: 13px; }
body.wp-theme-twentytwentytwo .wp-block-cover { border-radius: var(--sml-radius-lg); overflow: hidden; }
body.wp-theme-twentytwentytwo .wp-block-cover .wp-block-cover__background { background-color: rgba(7, 12, 18, .72) !important; }
body.wp-theme-twentytwentytwo .wp-block-button__link, body.wp-theme-twentytwentytwo .wp-element-button {
  font-family: var(--sml-font); font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(20, 170, 90, .6);
  background: var(--sml-green); color: var(--sml-green-ink); text-decoration: none; box-shadow: 0 6px 16px -10px rgba(56, 245, 138, .6); transition: transform .15s, filter .15s;
}
body.wp-theme-twentytwentytwo .wp-block-button__link:hover, body.wp-theme-twentytwentytwo .wp-element-button:hover { filter: brightness(1.06); transform: translateY(-1px); }
body.wp-theme-twentytwentytwo .is-style-outline .wp-block-button__link { background: transparent; color: var(--sml-text); border-color: var(--sml-line-2); box-shadow: none; }
body.wp-theme-twentytwentytwo .wp-block-file, body.wp-theme-twentytwentytwo .wp-block-table table { color: var(--sml-text); }
body.wp-theme-twentytwentytwo .wp-block-table td, body.wp-theme-twentytwentytwo .wp-block-table th { border-color: var(--sml-line-2); }
body.wp-theme-twentytwentytwo blockquote { border-left: 3px solid var(--sml-green); color: var(--sml-muted); padding-left: 18px; }
body.wp-theme-twentytwentytwo code, body.wp-theme-twentytwentytwo kbd { font-family: var(--sml-mono); background: var(--sml-panel-2); border-radius: 6px; padding: 2px 6px; font-size: .92em; }
body.wp-theme-twentytwentytwo .wp-site-blocks > footer.wp-block-template-part, body.wp-theme-twentytwentytwo .wp-site-blocks > .wp-block-template-part:last-child { display: none; } /* the theme footer ("Proudly powered by WordPress"): the site prints its own legal footer */
body.wp-theme-twentytwentytwo .wp-site-blocks > main { padding-bottom: 56px; }
#sml-legal-footer { font-family: var(--sml-font) !important; color: var(--sml-dim) !important; border-top-color: var(--sml-line) !important; }
#sml-legal-footer a { text-decoration-color: rgba(147, 164, 184, .4) !important; text-underline-offset: 3px; }
body.wp-theme-twentytwentytwo .wp-block-post-featured-image img { width: 100%; max-height: 480px; object-fit: cover; }
body.wp-theme-twentytwentytwo .wp-block-post-featured-image { margin-bottom: 32px !important; }

/* the page title the theme prints above the content: close to the content, no stray rule and spacer under it */
body.wp-theme-twentytwentytwo .wp-site-blocks > main > .wp-block-group:first-child > .wp-block-post-title { margin: 8px 0 14px !important; }
body.wp-theme-twentytwentytwo .wp-site-blocks > main > .wp-block-group:first-child > .wp-block-separator { display: none; }
body.wp-theme-twentytwentytwo .wp-site-blocks > main > .wp-block-group:first-child + .wp-block-spacer { height: 8px !important; }
/* a page whose content carries its own heading, or is an app screen with its own header, does not need the theme's copy of the title */
body.sml-ds-own-title .wp-site-blocks > main > .wp-block-group:first-child, body.sml-ds-own-title .wp-site-blocks > main > .wp-block-group:first-child + .wp-block-spacer { display: none; }
/* app screens inside a page (the ticker terminal, newsletter, Loop Letters, publisher pages) take the full width */
body.sml-ds-app .wp-site-blocks > main > .entry-content.is-layout-constrained > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
body.sml-ds-app .wp-site-blocks > main { padding-bottom: 0; }
body.sml-ds-app .wp-site-blocks > main > .entry-content { margin-top: 0 !important; }

/* archives (a category, a tag, an author): the stories as a grid of cards instead of a column of bare headlines */
body.wp-theme-twentytwentytwo .wp-block-query-title { font-size: clamp(28px, 3.6vw, 40px) !important; margin: 8px 0 6px !important; }
.sml-ds-archive-sub { color: var(--sml-muted); font-size: 15px; margin: 0 0 26px; }
body.wp-theme-twentytwentytwo main.wp-block-query { padding-bottom: 56px; }
body.wp-theme-twentytwentytwo .wp-block-post-template { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
body.wp-theme-twentytwentytwo .wp-block-post-template > .wp-block-post { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 20px 20px 18px; background: var(--sml-panel); border: 1px solid var(--sml-line); border-radius: var(--sml-radius-lg); box-shadow: var(--sml-shadow); transition: border-color .15s, transform .15s; }
body.wp-theme-twentytwentytwo .wp-block-post-template > .wp-block-post:hover { border-color: var(--sml-line-2); transform: translateY(-2px); }
body.wp-theme-twentytwentytwo .wp-block-post-template > .wp-block-post > * { max-width: none !important; margin: 0 !important; }
body.wp-theme-twentytwentytwo .wp-block-post-template .wp-block-post-title { font-size: 20px !important; font-weight: 700 !important; font-style: normal !important; line-height: 1.25; }
body.wp-theme-twentytwentytwo .wp-block-post-template .wp-block-post-title a { color: #fff; text-decoration: none; }
body.wp-theme-twentytwentytwo .wp-block-post-template .wp-block-post-title a:hover { color: var(--sml-green); }
body.wp-theme-twentytwentytwo .wp-block-post-template .wp-block-post-featured-image img { max-height: 180px; border-radius: var(--sml-radius); }
body.wp-theme-twentytwentytwo .wp-block-post-template .wp-block-columns { display: block; }
body.wp-theme-twentytwentytwo .wp-block-post-template .wp-block-column { flex-basis: auto !important; }
body.wp-theme-twentytwentytwo .wp-block-post-template .wp-block-column:empty, body.wp-theme-twentytwentytwo .wp-block-post-template .wp-block-spacer { display: none; }
body.wp-theme-twentytwentytwo .wp-block-post-template .wp-block-post-excerpt__excerpt { color: var(--sml-muted); font-size: 15px; line-height: 1.55; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
body.wp-theme-twentytwentytwo .wp-block-post-template .wp-block-post-excerpt__more-text { display: none; }
body.wp-theme-twentytwentytwo .wp-block-post-template .wp-block-post-date { font-style: normal !important; font-size: 13px !important; color: var(--sml-dim); font-family: var(--sml-mono); }
body.wp-theme-twentytwentytwo .wp-block-post-template .wp-block-post-date a { color: inherit; text-decoration: none; }
body.wp-theme-twentytwentytwo .wp-block-query-pagination { margin-top: 28px; gap: 10px; font-size: 14px; }
body.wp-theme-twentytwentytwo .wp-block-query-pagination a, body.wp-theme-twentytwentytwo .wp-block-query-pagination .page-numbers { color: var(--sml-text); text-decoration: none; padding: 8px 14px; border: 1px solid var(--sml-line-2); border-radius: 999px; }
body.wp-theme-twentytwentytwo .wp-block-query-pagination .page-numbers.current { background: var(--sml-green); color: var(--sml-green-ink); border-color: transparent; font-weight: 700; }
.sml-ds-empty { margin: 8px 0 0; padding: 28px 22px; border: 1px dashed var(--sml-line-2); border-radius: var(--sml-radius-lg); color: var(--sml-muted); font-size: 16px; }
.sml-ds-empty a { color: var(--sml-blue); }

/* Loop Letters directory (/n/): each publication as a row card */
.ll-pub .ll-head__name { font-family: var(--sml-display); font-weight: 700; letter-spacing: -.02em; }
.ll-pub .ll-head__tagline { color: var(--sml-muted); }
.ll-pub .ll-dir { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ll-pub .ll-dir__item { margin: 0; }
.ll-pub .ll-dir__link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--sml-panel); border: 1px solid var(--sml-line); border-radius: var(--sml-radius-lg); text-decoration: none !important; color: var(--sml-text); transition: border-color .15s, transform .15s; }
.ll-pub .ll-dir__link:hover { border-color: var(--sml-line-2); transform: translateY(-1px); }
.ll-pub .ll-dir__link > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ll-pub .ll-dir__name { font-weight: 700; color: #fff; font-size: 17px; }
.ll-pub .ll-dir__by { color: var(--sml-muted); font-size: 13.5px; }
.ll-pub .ll-dir__avatar, .ll-pub .ll-dir__link .sml-ds-avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; }

/* the sign-in page (wp-login.php): the same canvas, the site logo, one card */
body.login.sml-ds { background: var(--sml-bg) !important; font-family: var(--sml-font); }
body.login.sml-ds .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
body.login.sml-ds #login { width: 400px; max-width: calc(100% - 32px); margin: 0 auto; padding: 6vh 0 40px; }
body.login.sml-ds #login h1 a, body.login.sml-ds #login .wp-login-logo a { display: block; background: url(logo.png) center / contain no-repeat; width: 220px; height: 64px; margin: 0 auto 18px; overflow: hidden; text-indent: -9999px; font-size: 0; color: transparent; text-decoration: none; }
body.login.sml-ds form p, body.login.sml-ds form .user-pass-wrap, body.login.sml-ds form .user-email-wrap { margin: 0 0 14px; }
body.login.sml-ds label { display: block; margin-bottom: 6px; }
body.login.sml-ds .forgetmenot label { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
body.login.sml-ds input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--sml-green); }
body.login.sml-ds .wp-pwd { position: relative; }
body.login.sml-ds .button.wp-hide-pw { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; min-width: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
body.login.sml-ds .submit { display: flex; justify-content: flex-end; margin: 18px 0 0; }
body.login.sml-ds .forgetmenot { float: none; margin-top: 12px; }
body.login.sml-ds #jetpack-sso-wrap { margin: 0 0 14px; }
body.login.sml-ds #jetpack-sso-wrap .button { display: block; width: 100%; box-sizing: border-box; text-align: center; text-decoration: none; }
body.login.sml-ds #nav, body.login.sml-ds #backtoblog, body.login.sml-ds .privacy-policy-page-link { margin: 14px 0 0; font-size: 14px; }
body.login.sml-ds #nav a + a { margin-left: 4px; }
body.login.sml-ds #loginform, body.login.sml-ds #registerform, body.login.sml-ds #lostpasswordform, body.login.sml-ds form { background: var(--sml-panel); border: 1px solid var(--sml-line); border-radius: var(--sml-radius-lg); box-shadow: var(--sml-shadow); color: var(--sml-text); padding: 26px 24px; }
body.login.sml-ds label, body.login.sml-ds .message, body.login.sml-ds .jetpack-sso-form-display p { color: var(--sml-text); font-size: 14px; }
body.login.sml-ds .message, body.login.sml-ds .notice, body.login.sml-ds #login_error { background: var(--sml-panel-2); border: 1px solid var(--sml-line-2); border-left: 3px solid var(--sml-green); color: var(--sml-text); border-radius: 10px; box-shadow: none; }
body.login.sml-ds #login_error { border-left-color: var(--sml-red); }
body.login.sml-ds input[type="text"], body.login.sml-ds input[type="email"], body.login.sml-ds input[type="password"], body.login.sml-ds input[type="number"] { display: block; width: 100%; box-sizing: border-box; background: var(--sml-bg); color: var(--sml-text); border: 1px solid var(--sml-line-2); border-radius: 10px; padding: 10px 12px; font-size: 15px; box-shadow: none; margin: 0; }
body.login.sml-ds .jetpack-sso-form-display input[type="number"] { display: inline-block; width: 80px; }
body.login.sml-ds input:focus { border-color: var(--sml-blue); box-shadow: var(--sml-focus); }
body.login.sml-ds .button-primary, body.login.sml-ds .wp-core-ui .button-primary, body.login.sml-ds #jetpack-sso-wrap .button { background: var(--sml-green) !important; color: var(--sml-green-ink) !important; border: 0 !important; border-radius: 999px !important; font-weight: 700 !important; padding: 2px 22px !important; min-height: 42px; box-shadow: 0 6px 16px -10px rgba(56, 245, 138, .6) !important; text-shadow: none !important; }
body.login.sml-ds .button-secondary, body.login.sml-ds .button.wp-hide-pw { color: var(--sml-muted); background: transparent; border-color: var(--sml-line-2); box-shadow: none; }
body.login.sml-ds .button.wp-hide-pw .dashicons { color: var(--sml-muted); }
body.login.sml-ds #nav, body.login.sml-ds #backtoblog { text-align: center; }
body.login.sml-ds #nav a, body.login.sml-ds #backtoblog a, body.login.sml-ds .privacy-policy-page-link a, body.login.sml-ds .jetpack-sso-toggle { color: var(--sml-muted) !important; text-decoration: none; }
body.login.sml-ds #nav a:hover, body.login.sml-ds #backtoblog a:hover { color: var(--sml-text) !important; }
body.login.sml-ds .privacy-policy-page-link { margin-top: 16px; text-align: center; }
body.login.sml-ds #jetpack-sso-wrap__action { color: var(--sml-muted); }
body.login.sml-ds .login-action-login .forgetmenot label { color: var(--sml-muted); }


/* forms on theme pages and plugin screens (never inside the feed shell, which styles its own) */
body.sml-ds :where(.entry-content, .wp-site-blocks, .sml-gex, main) :where(input[type="text"], input[type="search"], input[type="email"], input[type="number"], input[type="url"], textarea, select):not([class*="sml-hf"]) {
  font: 500 15px/1.4 var(--sml-font); color: var(--sml-text); background: var(--sml-bg-2); border: 1px solid var(--sml-line-2); border-radius: 10px; padding: 10px 12px;
}
body.sml-ds :where(.entry-content, .wp-site-blocks, main) :where(input, textarea, select)::placeholder { color: var(--sml-dim); }

/* ---------- engagement controls (sml-home-feed-engagement-social-bridge): the Like / React / Comment / Share row and the comment box ---------- */
.sml-hfe-actions { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 6px; padding: 0; }
.sml-hfe-action-with-menu { position: relative; display: inline-flex; }
.sml-hfe-btn, .sml-hfe-open {
  -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 13px; margin: 0;
  border: 1px solid var(--sml-line-2); border-radius: 999px; background: var(--sml-panel-2); color: var(--sml-muted);
  font: 600 13px/1 var(--sml-font); text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s, background .15s;
}
.sml-hfe-btn:hover, .sml-hfe-open:hover { border-color: rgba(56, 245, 138, .55); color: var(--sml-text); }
.sml-hfe-btn[aria-pressed="true"], .sml-hfe-btn.is-active { background: var(--sml-green-soft); border-color: rgba(56, 245, 138, .55); color: var(--sml-green); }
.sml-hfe-btn:disabled { opacity: .55; cursor: default; }
.sml-hfe-btn [data-hfe-count] { font-family: var(--sml-mono); font-weight: 600; font-size: 12px; color: var(--sml-text); }
.sml-hfe-btn::before { content: ""; width: 15px; height: 15px; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.sml-hfe-btn[data-hfe-like] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 21l7.8-7.6 1-1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E"); }
.sml-hfe-btn[data-hfe-react] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 14s1.5 2 4 2 4-2 4-2'/%3E%3Cline x1='9' y1='9' x2='9.01' y2='9'/%3E%3Cline x1='15' y1='9' x2='15.01' y2='9'/%3E%3C/svg%3E"); }
.sml-hfe-btn[data-hfe-comment] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
.sml-hfe-btn[data-hfe-share] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cline x1='8.6' y1='13.5' x2='15.4' y2='17.5'/%3E%3Cline x1='15.4' y1='6.5' x2='8.6' y2='10.5'/%3E%3C/svg%3E"); }
.sml-hfe-btn[data-hfe-gift] { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 12 20 22 4 22 4 12'/%3E%3Crect x='2' y='7' width='20' height='5'/%3E%3Cline x1='12' y1='22' x2='12' y2='7'/%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z'/%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'/%3E%3C/svg%3E"); }
.sml-hfe-open { margin-left: auto; color: var(--sml-green); border-color: rgba(56, 245, 138, .35); }
.sml-hfe-open::after { content: "\2192"; font-size: 14px; }
.sml-hfe-reaction-menu, [data-hfe-reaction-menu], [data-hfe-share-menu] {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; display: none; gap: 4px; padding: 6px; border-radius: 12px;
  background: var(--sml-panel); border: 1px solid var(--sml-line-2); box-shadow: var(--sml-shadow);
}
[data-hfe-reaction-menu].is-open, [data-hfe-share-menu].is-open, [data-hfe-reaction-menu][aria-hidden="false"], [data-hfe-share-menu][aria-hidden="false"] { display: flex; }
[data-hfe-reaction-menu] button, [data-hfe-share-menu] button { -webkit-appearance: none; appearance: none; border: 0; background: transparent; color: var(--sml-text); font: 600 13px var(--sml-font); padding: 6px 9px; border-radius: 8px; cursor: pointer; }
[data-hfe-reaction-menu] button:hover, [data-hfe-share-menu] button:hover { background: var(--sml-panel-2); }
.sml-hfe-comment-panel { display: none; margin: 10px 0 4px; padding: 12px; border-radius: var(--sml-radius); background: var(--sml-bg-2); border: 1px solid var(--sml-line); }
.sml-hfe-comment-panel.is-open { display: block; }
.sml-hfe-comments { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.sml-hfe-comments:empty { display: none; }
.sml-hfe-comments > * { padding: 9px 11px; border-radius: 10px; background: var(--sml-panel); color: var(--sml-text); font-size: 14px; line-height: 1.5; }
.sml-hfe-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
.sml-hfe-form textarea { grid-column: 1; min-height: 44px; max-height: 160px; resize: vertical; width: 100%; box-sizing: border-box; font: 500 14px/1.45 var(--sml-font); color: var(--sml-text); background: var(--sml-panel); border: 1px solid var(--sml-line-2); border-radius: 10px; padding: 10px 12px; }
.sml-hfe-form textarea::placeholder { color: var(--sml-dim); }
.sml-hfe-form button[type="submit"] { -webkit-appearance: none; appearance: none; grid-column: 2; min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--sml-green); color: var(--sml-green-ink); font: 700 13px var(--sml-font); cursor: pointer; }
.sml-hfe-form button[type="submit"]:disabled { opacity: .6; }
.sml-hfe-status { grid-column: 1 / -1; min-height: 0; color: var(--sml-dim); font-size: 12px; }
.sml-hfe-status:empty { display: none; }
.sml-hfe-status.is-error { color: var(--sml-red); }
.sml-hfe-article-target { padding: 10px 14px; border-radius: var(--sml-radius-lg); }

/* the read-only counts printed with each feed card ("Likes 0 · Comments 0 · Shares 0 · Open") */
.sml-sth-actions { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px !important; font: 600 12.5px var(--sml-font); color: var(--sml-dim); }
.sml-sth-actions > span { display: inline-flex; align-items: center; gap: 5px; }
.sml-sth-actions > span .sml-ds-ico { width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.sml-sth-actions > span .sml-ds-n { font-family: var(--sml-mono); font-weight: 600; color: var(--sml-muted); }
.sml-sth-actions > a { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(56, 245, 138, .35); color: var(--sml-green) !important; text-decoration: none !important; font-weight: 700; }
.sml-sth-actions > a::after { content: "\2192"; }
.sml-sth-actions > a:hover { background: var(--sml-green-soft); }

/* ---------- the home feed cards: calmer surfaces, no neon halo ---------- */
#sml-optimized-home .oh-post { box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 12px 28px -18px rgba(0, 0, 0, .8) !important; border-color: var(--sml-line) !important; border-top-color: var(--sml-line-2) !important; transition: border-color .15s, transform .15s !important; }
#sml-optimized-home .oh-post:hover { transform: translateY(-2px) !important; border-color: rgba(56, 245, 138, .3) !important; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 36px -18px rgba(0, 0, 0, .85) !important; }
#sml-optimized-home .oh-post h2 { font-family: var(--sml-display) !important; font-size: 18.5px !important; line-height: 1.3 !important; letter-spacing: -.01em !important; }
#sml-optimized-home .oh-post > p { color: var(--sml-muted) !important; font-size: 14px !important; line-height: 1.62 !important; }
#sml-optimized-home .oh-post-avatar { box-shadow: 0 0 0 2px var(--sml-panel), 0 0 0 3px rgba(56, 245, 138, .55) !important; }
#sml-optimized-home .oh-post-author-name { font-weight: 600 !important; }
#sml-optimized-home .oh-meta, #sml-optimized-home .oh-post-date { font-family: var(--sml-mono) !important; font-size: 11px !important; letter-spacing: .02em; color: var(--sml-dim) !important; }
#sml-optimized-home .oh-post > a > img, #sml-optimized-home .oh-post figure img { border-radius: 12px !important; border: 1px solid var(--sml-line); }
.sml-rh-btn { box-shadow: none !important; border-color: var(--sml-line-2) !important; color: var(--sml-muted) !important; }
.sml-rh-btn:hover { color: var(--sml-green) !important; border-color: rgba(56, 245, 138, .45) !important; box-shadow: none !important; }
.sml-ds-avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(160deg, #1f6b4a, #0f3b2b); color: #d8ffe9; font: 700 13px var(--sml-font); letter-spacing: .02em; flex: none; box-shadow: 0 0 0 2px var(--sml-panel), 0 0 0 3px rgba(56, 245, 138, .55); }

/* ---------- the global header and symbols tape: one weight of green, no glow ---------- */
#sml-global-header .sml-gh-kick, #sml-global-header .sml-gh-kick:hover, #sml-global-header .sml-gh-kick:focus-visible {
  background: var(--sml-green) !important; color: var(--sml-green-ink) !important; border: 1px solid rgba(20, 170, 90, .7) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset !important; text-shadow: none !important; font-family: var(--sml-font) !important; font-weight: 800 !important; letter-spacing: .02em !important;
}
#sml-global-header .sml-gh-kick:hover { filter: brightness(1.06); }
#sml-global-header .sml-gh-account { box-shadow: 0 0 0 1px rgba(56, 245, 138, .4) !important; }
#sml-global-header .sml-gh-nav a { font-family: var(--sml-font) !important; font-weight: 600 !important; font-size: 15px !important; }
#sml-global-header .sml-gh-search { box-shadow: none !important; }
#sml-global-header .sml-gh-search input { font-family: var(--sml-font) !important; }
#sml-global-header .sml-gh-tape, #sml-global-header .sml-gh-tick { font-family: var(--sml-mono) !important; }
#sml-global-header .sml-gh-tick { font-size: 12px !important; letter-spacing: 0 !important; }

/* ---------- the Groups screen: its own serif heading joins the house type ---------- */
#sml-gex-title, .sml-gex-featured h2, .sml-gex-featured h3, .sml-gex-section-head h2, .sml-gex-section-head h3, .sml-gex-tile h3, .sml-gex-tile-top h2, .sml-gex-rank strong, [class^="sml-gex"] h2, [class^="sml-gex"] h3 {
  font-family: var(--sml-display) !important; letter-spacing: -.02em !important; font-weight: 700 !important;
}
.sml-gex-tile, .sml-gex-rank { font-family: var(--sml-font); }
.sml-gex-primary { box-shadow: none !important; text-shadow: none !important; }
.sml-gex-rank-logo .sml-ds-avatar { width: 40px; height: 40px; font-size: 12px; }
.sml-gex-tile-logo .sml-ds-avatar { width: 56px; height: 56px; font-size: 15px; }

/* ---------- the Loop Store (stockmarketloop-store): packs, gifts and perks as one card system ---------- */
.sml-store__hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin: 8px 0 28px; }
.sml-store__hero-art img { width: 160px; max-width: 30vw; height: auto; }
.sml-store__section { margin: 36px 0; }
.sml-store__heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 16px; }
.sml-store__heading h2 { margin: 0; font-size: 24px; }
.sml-store__heading span { color: var(--sml-muted); font-size: 14px; }
.sml-store__premium-label { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 6px 0 12px; }
.sml-store__premium-label strong { color: var(--sml-amber); font-size: 14px; }
.sml-store__premium-label span { color: var(--sml-muted); font-size: 13px; }
.sml-store__packs, .sml-store__gift-grid, .sml-store__perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.sml-store__perks { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sml-store__pack, .sml-store__gift, .sml-store__perk { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 16px 16px; border-radius: var(--sml-radius-lg); background: var(--sml-panel); border: 1px solid var(--sml-line); text-align: center; transition: border-color .15s, transform .15s; }
.sml-store__pack:hover, .sml-store__gift:hover, .sml-store__perk:hover { border-color: rgba(56, 245, 138, .35); transform: translateY(-2px); }
.sml-store__perk { align-items: stretch; text-align: left; }
.sml-store__pack img { width: 64px !important; height: auto; margin-bottom: 2px; }
.sml-store__badge { position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 999px; background: var(--sml-green-soft); color: var(--sml-green); font: 800 10px var(--sml-mono); letter-spacing: .08em; text-transform: uppercase; }
.sml-store__pack-amount { font: 700 24px/1.1 var(--sml-display); color: #fff; }
.sml-store__pack-amount small { font: 700 12px var(--sml-mono); color: var(--sml-muted); margin-left: 3px; }
.sml-store__bonus { color: var(--sml-green); font: 600 12.5px var(--sml-font); }
.sml-store__pack button, .sml-store__gift button, .sml-store__perk-buy, .sml-store__confirm, .sml-store__perk-buy button { -webkit-appearance: none; appearance: none; margin-top: auto; width: 100%; min-height: 40px; border: 0; border-radius: 10px; background: var(--sml-green); color: var(--sml-green-ink); font: 700 14px var(--sml-font); cursor: pointer; }
.sml-store__gift button { background: var(--sml-panel-2); color: var(--sml-text); border: 1px solid var(--sml-line-2); }
.sml-store__gift button:hover, .sml-store__pack button:hover { filter: brightness(1.06); border-color: rgba(56, 245, 138, .5); }
.sml-store__gift-art { width: 96px; height: 96px; display: grid; place-items: center; }
.sml-store__gift-art img { max-width: 100%; max-height: 100%; }
.sml-store__gift--premium .sml-store__gift-art { width: 120px; height: 120px; }
.sml-store__gift-name { font-weight: 600; font-size: 14px; color: var(--sml-text); }
.sml-store__perk-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sml-store__perk-tag { padding: 3px 8px; border-radius: 999px; background: var(--sml-panel-2); color: var(--sml-muted); font: 700 10px var(--sml-mono); letter-spacing: .08em; text-transform: uppercase; }
.sml-store__owned { color: var(--sml-green); font: 700 12px var(--sml-font); }
.sml-store__options { display: flex; flex-wrap: wrap; gap: 8px; }
.sml-store__option { -webkit-appearance: none; appearance: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--sml-line-2); background: var(--sml-panel-2); color: var(--sml-muted); font: 600 13px var(--sml-font); cursor: pointer; }
.sml-store__option.is-active { background: var(--sml-green-soft); border-color: rgba(56, 245, 138, .55); color: var(--sml-green); }
.sml-store__notice { padding: 12px 14px; border-radius: var(--sml-radius); background: var(--sml-bg-2); border: 1px solid var(--sml-line); color: var(--sml-muted); font-size: 14px; }
.sml-store__verify { margin: 24px 0; padding: 16px; border-radius: var(--sml-radius-lg); background: var(--sml-panel); border: 1px solid var(--sml-line); }
.sml-store__verify-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.sml-store__verify-badges > * { padding: 5px 10px; border-radius: 999px; background: var(--sml-panel-2); border: 1px solid var(--sml-line-2); font: 600 12px var(--sml-font); color: var(--sml-text); }
.sml-store__verify-foot, .sml-store__footer { color: var(--sml-dim); font-size: 13px; }
.sml-store__modal { position: fixed; inset: 0; z-index: 2147483100; display: none; place-items: center; padding: 16px; background: rgba(3, 6, 10, .72); backdrop-filter: blur(4px); }
.sml-store__modal.is-open, .sml-store__modal[open] { display: grid; }
.sml-store__dialog { width: min(520px, 100%); max-height: 90vh; overflow: auto; padding: 22px; border-radius: var(--sml-radius-lg); background: var(--sml-panel); border: 1px solid var(--sml-line-2); box-shadow: var(--sml-shadow); color: var(--sml-text); }
.sml-store__modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.sml-store__cancel { -webkit-appearance: none; appearance: none; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--sml-line-2); background: transparent; color: var(--sml-muted); font: 600 14px var(--sml-font); cursor: pointer; }
.sml-store__screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.sml-store__screen { border-radius: var(--sml-radius-lg); overflow: hidden; border: 1px solid var(--sml-line); background: var(--sml-panel); }
@media (max-width: 640px) { .sml-store__hero { grid-template-columns: 1fr; } .sml-store__hero-art { order: -1; } }

/* ---------- the feed shell for a visitor who is not signed in ---------- */
.sml-ds-hide { display: none !important; }
#sml-hf-me-card.sml-ds-guest { display: inline-flex !important; align-items: center; justify-content: center; min-height: 38px; padding: 0 18px; border-radius: 999px; background: var(--sml-green); color: var(--sml-green-ink); font: 700 13.5px var(--sml-font); letter-spacing: .01em; white-space: nowrap; }
#sml-hf-me-card.sml-ds-guest:hover { filter: brightness(1.06); }
.sml-ds-guest-note { color: var(--sml-muted); font: 500 13px/1.45 var(--sml-font); }
#sml-hf-tabs .hf-gm-add { font-family: var(--sml-font); }
/* the shell's green buttons (header Sign In / LOOP-KICK, the composer's Post / Sign In): one flat green, no halo */
html body #sml-hf-shell #sml-hf-loop-kick, html body #sml-hf-shell #sml-hf-post, html body #sml-hf-shell .hf-composer > a, html body #sml-hf-shell .hf-composer > button {
  background: var(--sml-green) !important; color: var(--sml-green-ink) !important; border: 1px solid rgba(20, 170, 90, .7) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset !important; font-family: var(--sml-font) !important; font-weight: 700 !important;
}
html body #sml-hf-shell #sml-hf-loop-kick:hover, html body #sml-hf-shell #sml-hf-post:hover { filter: brightness(1.06); }
html body #sml-hf-shell .hf-head { box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 10px 24px -16px rgba(0, 0, 0, .9) !important; }
html body #sml-hf-shell .hf-composer > div:first-child { box-shadow: 0 0 0 2px var(--sml-panel), 0 0 0 3px rgba(56, 245, 138, .55) !important; }

/* ---------- small print everywhere ---------- */
body.sml-ds .sml-ds-note { color: var(--sml-dim); font-size: 12px; }
