/* Studio — skin for the sections outside site/ (activities, level test,
   store, portal). Loaded after each section's own CSS; rules are prefixed
   with .site-chrome so they win over the section's single-class rules.
   Tokens on :root re-map both the activities variables and the style.css
   variables that compat.css provides. */

:root {
  /* activities engine */
  --paper: #FAF8F5; --card: #FFFFFF; --ink: #17171C; --muted: #5D5D66; --line: #ECE7DF;
  --indigo: #2D5BE3; --rose: #E8521A; --amber: #D98A06; --teal: #12936B;
  --soft: #E9EFFD; --soft2: #F3F1EC; --field: #FAF8F5;
  --shadow: 0 1px 2px rgba(23,23,28,.05);
  --shadow-lg: 0 2px 4px rgba(23,23,28,.04), 0 24px 48px -18px rgba(23,23,28,.22);
  --r: 20px;
  /* style.css names (store, portal, level test via compat.css) */
  --white: #FFFFFF; --off-white: #FAF8F5; --mid: #5D5D66; --light: #ECE7DF;
  --accent: #E8521A; --accent-2: #2D5BE3; --grid-color: transparent;
  --radius: 14px; --max-w: 1180px; --transition: 200ms ease;
  --mono: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --heading-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --heading-weight: 800;
  --st-gap: max(16px, calc((100% - 1132px) / 2));
}

body.site-chrome {
  display: flex; flex-direction: column; min-height: 100vh; margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
body.site-chrome:not(.present) { padding: 0; }
body.site-chrome .ax-page { padding: clamp(16px, 2.4vw, 32px) clamp(16px, 4vw, 48px) clamp(32px, 4vw, 64px); }
body.site-chrome:not(.present) > .wrap {
  margin: clamp(16px, 2.4vw, 32px) auto clamp(32px, 4vw, 64px);
  width: calc(100% - 2 * clamp(16px, 4vw, 48px));
}
.site-chrome .theme-fab { top: auto; bottom: 16px; right: 16px; }

/* shared section heads (portal, level test) */
.site-chrome .page-hero, .site-chrome .portal-hero {
  margin: 16px var(--st-gap) 0; padding: 24px 22px 28px; border: 0; border-radius: 28px; background: #E9EFFD;
  position: relative; overflow: hidden;
}
.site-chrome .page-hero::after, .site-chrome .portal-hero::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: #2D5BE3; opacity: .08; pointer-events: none;
}
.site-chrome .page-hero .container, .site-chrome .portal-hero .container { padding: 0; }
.site-chrome .page-hero h1, .site-chrome .portal-hero h1 { font-size: clamp(1.65rem, 6vw, 2.6rem); letter-spacing: -.035em; line-height: 1.08; }
.site-chrome .page-hero p, .site-chrome .portal-hero p { font-size: 1.05rem; font-weight: 400; color: var(--mid); max-width: 60ch; }
.site-chrome .breadcrumb { text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 600; color: #1E3FA6; }
.site-chrome .breadcrumb a { color: #1E3FA6; }
.site-chrome .hero-eyebrow { font-weight: 800; letter-spacing: .1em; color: #2D5BE3; }
.site-chrome .btn {
  border-radius: 999px; font-family: inherit; text-transform: none; letter-spacing: 0; font-weight: 700;
  font-size: .95rem; padding: 13px 24px; min-height: 48px;
}
.site-chrome .btn-accent { box-shadow: 0 8px 20px -10px var(--accent); }
.site-chrome .card-link { font-weight: 700; font-size: .92rem; color: #A8380C; }
@media (min-width: 900px) {
  .site-chrome .page-hero, .site-chrome .portal-hero { margin-top: 28px; padding: 36px 44px 42px; }
}

/* ── activities ──────────────────────────────────────────────────────── */
.sec-activities :is(h1, .name, .ex-item h3, .modal h2) { font-weight: 800; letter-spacing: -.03em; }
.sec-activities h1 { letter-spacing: -.04em; }
.sec-activities :is(.btn, .langbtn, .toggle, .tool) { border-radius: 999px; }
.sec-activities .card { border-color: var(--line); }
.sec-activities .card:hover { border-color: var(--accent); }
.sec-activities .controls { top: 64px; background: rgba(250,248,245,.92); }
html[data-theme="dark"] .sec-activities .controls { background: rgba(22,20,31,.92); }
.sec-activities .eyebrow { letter-spacing: .1em; }

/* ── level test ──────────────────────────────────────────────────────── */
.site-chrome .lt-wrap { padding-top: 28px; }
.site-chrome .lt-q { border-radius: 20px; padding: 20px; box-shadow: 0 1px 2px rgba(23,23,28,.05); }
.site-chrome .lt-q > p { font-weight: 700; font-size: 1rem; }
.site-chrome .lt-num { font-weight: 800; }
.site-chrome .lt-opts label {
  min-height: 48px; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--light);
  background: var(--off-white); font-size: .95rem;
}
.site-chrome .lt-opts label:hover { border-color: #2D5BE3; }
.site-chrome .lt-opts label:has(input:checked) { border-color: #2D5BE3; background: #E9EFFD; }
.site-chrome .lt-opts input { accent-color: #2D5BE3; }
.site-chrome .lt-submit {
  border-radius: 999px; background: #2D5BE3; font-family: inherit; text-transform: none; letter-spacing: 0;
  font-weight: 700; font-size: 1rem; padding: 16px; box-shadow: 0 8px 20px -10px #2D5BE3;
}
.site-chrome .lt-submit:hover { filter: brightness(1.07); }
.site-chrome .lt-badge { border-radius: 22px; font-weight: 800; }
.site-chrome :is(.lt-card, .lt-alert, .lt-ok) { border-radius: 18px; }
.site-chrome .lt-recs a { border-radius: 14px; font-weight: 600; }
.site-chrome .lt-field label { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 700; color: var(--ink); }
.site-chrome .lt-field input { min-height: 50px; border-radius: 14px; border: 1.5px solid #DDD6CB; font-family: inherit; font-size: 16px; }
.site-chrome .lt-langs { display: none; }

/* ── store ───────────────────────────────────────────────────────────── */
.site-chrome .store-shell { padding: 20px 16px 72px; max-width: 1180px; }
@media (min-width: 640px) { .site-chrome .store-shell { padding: 28px 24px 88px; } }
.site-chrome .store-intro {
  text-align: left; margin: 0 0 22px; padding: 26px 22px; border-radius: 28px; background: #FDEEE6;
}
@media (min-width: 900px) { .site-chrome .store-intro { padding: 36px 44px; } }
.site-chrome .store-intro p { margin: 10px 0 0; font-size: 1.05rem; font-weight: 400; }
.site-chrome .store-intro h1 { letter-spacing: -.04em; margin-bottom: 0; }
.site-chrome .store-intro h1::after { display: none; }
.site-chrome .eyebrow { font-weight: 800; letter-spacing: .1em; color: #E8521A; margin-bottom: 8px; }
.site-chrome .product-grid { border: 0; overflow: visible; gap: 16px; }
.site-chrome .product-card {
  background: #fff; border: 1px solid var(--light); border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(23,23,28,.05); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.site-chrome .product-card:hover {
  background: #fff; transform: translateY(-3px); border-color: #E8521A;
  box-shadow: 0 1px 2px rgba(23,23,28,.04), 0 10px 30px -12px rgba(23,23,28,.18);
}
.site-chrome .product-card::after { display: none; }
.site-chrome .product-body { padding: 18px 20px 20px; }
.site-chrome .product-meta { text-transform: none; letter-spacing: 0; font-size: .78rem; font-weight: 700; }
.site-chrome .supplier-badge { border: 0; border-radius: 999px; padding: 3px 10px; background: #FDEEE6; color: #A8380C; }
.site-chrome .product-card h2 { font-size: 1.14rem; letter-spacing: -.02em; }
.site-chrome .product-card p { font-size: .93rem; font-weight: 400; line-height: 1.6; }
.site-chrome .price { font-size: .95rem; }
.site-chrome .deal-button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: .92rem; font-weight: 700;
  text-transform: none; letter-spacing: 0; box-shadow: 0 8px 20px -10px #E8521A;
}
.site-chrome .gallery { border: 1px solid var(--light); border-radius: 24px; overflow: hidden; }
.site-chrome .detail-copy { border-radius: 24px; padding: 26px 22px; box-shadow: 0 1px 2px rgba(23,23,28,.04), 0 10px 30px -12px rgba(23,23,28,.14); }
.site-chrome .detail-copy h1 { letter-spacing: -.035em; }
.site-chrome :is(.lead, .full-description, .tags) { font-size: .98rem; font-weight: 400; line-height: 1.7; }
.site-chrome .thumb-row img { border-radius: 10px; }
.site-chrome .back-link { font-weight: 700; font-size: .92rem; color: #A8380C; }
.site-chrome :is(.affiliate-disclosure, .empty-state) { border-radius: 16px; font-size: .9rem; font-weight: 400; }

/* ── portal ──────────────────────────────────────────────────────────── */
.site-chrome .portal-subnav { padding: 8px 16px; background: #fff; border-bottom: 1px solid var(--light); }
.site-chrome .portal-subnav .container { gap: 4px; max-width: 1180px; padding: 0; }
.site-chrome .portal-subnav a {
  padding: 7px 12px; border-radius: 999px; text-transform: none; letter-spacing: 0;
  font-size: .88rem; font-weight: 600; color: var(--mid);
}
.site-chrome .portal-subnav a:hover { background: rgba(23,23,28,.05); color: var(--ink); }
.site-chrome .portal-breadcrumb-bar { background: transparent; border: 0; padding: 14px 16px 0; }
.site-chrome .portal-breadcrumb-bar .container { max-width: 1180px; padding: 0 8px; }
.site-chrome .portal-section { padding: 28px 16px 72px; }
.site-chrome .portal-section .container { max-width: 1180px; padding: 0 8px; }
.site-chrome .section-header h2 { font-weight: 800; letter-spacing: .09em; color: #2D5BE3; }
.site-chrome .section-header a { font-weight: 700; text-transform: none; letter-spacing: 0; font-size: .88rem; }
.site-chrome :is(.stat-card, .portal-card) { border-radius: 20px; box-shadow: 0 1px 2px rgba(23,23,28,.05); }
.site-chrome .stat-card .stat-num { font-weight: 800; }
.site-chrome .stat-card .stat-label { font-weight: 700; letter-spacing: .06em; }
.site-chrome .portal-card:hover { border-color: #2D5BE3; }
.site-chrome .portal-card h3 { font-size: 1.12rem; }
.site-chrome .portal-card p { font-size: .93rem; font-weight: 400; line-height: 1.6; }
.site-chrome .portal-card .card-link { color: #1E3FA6; }
.site-chrome .auth-wrap { min-height: auto; padding: 40px 16px 72px; }
.site-chrome .auth-card {
  border: 1px solid var(--light); border-radius: 28px; padding: 34px 26px;
  box-shadow: 0 2px 4px rgba(23,23,28,.04), 0 24px 48px -18px rgba(23,23,28,.22);
}
.site-chrome .auth-card .auth-logo { font-weight: 800; letter-spacing: .08em; }
.site-chrome .auth-card .auth-logo span { color: #E8521A; }
.site-chrome .auth-card h1 em { font-style: normal; font-weight: 800; }
.site-chrome .form-group label { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 700; color: var(--ink); }
.site-chrome :is(.form-group input, .form-group select, .form-group textarea) {
  min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid #DDD6CB;
  font-family: inherit; font-size: 16px; background: var(--off-white);
}
.site-chrome :is(.form-group input, .form-group select, .form-group textarea):focus { border-color: #2D5BE3; background: #fff; box-shadow: 0 0 0 4px #E9EFFD; }
.site-chrome .alert { border-radius: 12px; font-size: .9rem; }
.site-chrome .data-table-wrap { border-radius: 16px; }
.site-chrome .data-table thead { background: #F3F1EC; color: var(--mid); }
.site-chrome .data-table thead th { font-weight: 700; }

/* level test wrapper: fill the column (the body is a flex column, so an auto-margin box would shrink to its content) */
.site-chrome .lt-wrap { width: 100%; min-width: 0; }
.site-chrome .lt-opts label { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .site-chrome .lt-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .site-chrome .lt-opts { grid-template-columns: 1fr; } }
/* activity cards are <button>s, which do not inherit the page font by default */
.sec-activities :is(button, input, select, textarea) { font-family: inherit; }
/* portal cards had a 280px minimum column, too wide for small phones */
.site-chrome .portal-cards { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
/* long single words ("profedominik.com") in big headings may wrap on small phones */
.site-chrome h1 { overflow-wrap: break-word; }
