/* =========================================================================
   Study Timer Pro — tema
   Design tokens, layout, componentes e responsividade.
   Sincroniza claro/escuro com o plugin via [data-et-theme].
   ========================================================================= */

:root {
  --stp-brand: #4f46e5;
  --stp-brand-2: #ec4899;
  --stp-accent: #f97316;
  --stp-radius: 18px;

  --stp-bg: #f6f7fb;
  --stp-surface: #ffffff;
  --stp-surface-2: #f1f3f9;
  --stp-text: #10131c;
  --stp-muted: #5c6478;
  --stp-border: #e5e8f0;
  --stp-shadow: 0 1px 2px rgba(16, 19, 28, .04), 0 12px 32px -18px rgba(16, 19, 28, .28);
  --stp-shadow-lg: 0 24px 60px -28px rgba(16, 19, 28, .45);
  --stp-ring: color-mix(in srgb, var(--stp-brand) 40%, transparent);
  --stp-wrap: 1240px;
  --stp-head-h: 68px;
  --stp-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --stp-display: "Plus Jakarta Sans", var(--stp-font);
}

[data-et-theme="dark"] {
  --stp-bg: #0b0e17;
  --stp-surface: #131826;
  --stp-surface-2: #1a2032;
  --stp-text: #eef1f8;
  --stp-muted: #9aa4bd;
  --stp-border: rgba(255, 255, 255, .09);
  --stp-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 18px 40px -22px rgba(0, 0, 0, .8);
  --stp-shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .85);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--stp-bg);
  color: var(--stp-text);
  font-family: var(--stp-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--stp-display); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .4em; }
:focus-visible { outline: 3px solid var(--stp-ring); outline-offset: 2px; border-radius: 8px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.stp-skip {
  position: absolute; left: -9999px; top: 8px; z-index: 999;
  background: var(--stp-brand); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.stp-skip:focus { left: 12px; }

.stp-wrap { width: min(100% - 32px, var(--stp-wrap)); margin-inline: auto; }

/* ---------------------------------------------------------------- Botões */
.stp-btn {
  --b: var(--stp-brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--stp-display); font-weight: 700; font-size: 14.5px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.stp-btn:hover { transform: translateY(-1px); }
.stp-btn:active { transform: translateY(0); }

.stp-btn-primary {
  background: linear-gradient(135deg, var(--stp-brand), var(--stp-brand-2));
  color: #fff; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--stp-brand) 80%, transparent);
}
.stp-btn-soft { background: var(--stp-surface-2); color: var(--stp-text); border-color: var(--stp-border); }
.stp-btn-ghost { background: transparent; color: var(--stp-text); border-color: var(--stp-border); }
.stp-btn-hero { background: #fff; color: #16192a; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .55); }
.stp-btn-glass {
  background: rgba(255, 255, 255, .16); color: #fff;
  border-color: rgba(255, 255, 255, .34); backdrop-filter: blur(8px);
}

.stp-link-btn {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--stp-brand);
  font-weight: 600; font-size: 13.5px; font-family: var(--stp-display);
}
.stp-link-btn:hover { text-decoration: underline; }

/* --------------------------------------------------------------- Header */
.stp-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--stp-surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--stp-border);
}
.stp-header.is-stuck { box-shadow: var(--stp-shadow); }

.stp-header-inner {
  display: flex; align-items: center; gap: 18px; min-height: var(--stp-head-h);
}
.stp-brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-family: var(--stp-display); }
.stp-brand-mark {
  width: 30px; height: 30px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--stp-brand), var(--stp-brand-2));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .28);
}
.stp-brand-name { font-size: 17px; letter-spacing: -.02em; }
.custom-logo { max-height: 40px; width: auto; }

.stp-nav { margin-inline-start: auto; }
.stp-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.stp-menu li { position: relative; }
.stp-menu a {
  display: block; padding: 9px 13px; border-radius: 10px; text-decoration: none;
  font-size: 14.5px; font-weight: 600; color: var(--stp-muted);
  transition: background .18s ease, color .18s ease;
}
.stp-menu a:hover, .stp-menu .current-menu-item > a { background: var(--stp-surface-2); color: var(--stp-text); }
.stp-menu .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
  background: var(--stp-surface); border: 1px solid var(--stp-border);
  border-radius: 14px; box-shadow: var(--stp-shadow-lg); padding: 6px;
  list-style: none; margin: 0; display: none; z-index: 20;
}
.stp-menu li:hover > .sub-menu, .stp-menu li:focus-within > .sub-menu { display: block; }

.stp-header-actions { display: flex; align-items: center; gap: 8px; }
.stp-icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; border: 1px solid var(--stp-border);
  background: var(--stp-surface); color: var(--stp-text); cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.stp-icon-btn:hover { background: var(--stp-surface-2); transform: translateY(-1px); }
.stp-icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.stp-burger { display: none; flex-direction: column; gap: 4px; }
.stp-burger span { width: 17px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.stp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.stp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.stp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.stp-searchbar { border-top: 1px solid var(--stp-border); padding: 14px 0; background: var(--stp-surface); }

/* --------------------------------------------------------------- Busca */
.stp-search {
  display: flex; align-items: center; gap: 8px; position: relative;
  background: var(--stp-surface); border: 1px solid var(--stp-border);
  border-radius: 999px; padding: 6px 6px 6px 44px; box-shadow: var(--stp-shadow);
}
.stp-search-icon {
  position: absolute; left: 15px; width: 18px; height: 18px;
  fill: none; stroke: var(--stp-muted); stroke-width: 2; stroke-linecap: round;
}
.stp-search-input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--stp-text);
  font: inherit; font-size: 15px; padding: 8px 0;
}
.stp-search-input:focus { outline: none; }
.stp-search:focus-within { border-color: var(--stp-brand); box-shadow: 0 0 0 4px var(--stp-ring); }

/* ---------------------------------------------------------------- Hero */
.stp-hero { position: relative; isolation: isolate; padding: clamp(56px, 9vw, 104px) 0 clamp(72px, 10vw, 120px); color: #fff; overflow: hidden; }
.stp-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 120% at 12% 0%, color-mix(in srgb, var(--stp-brand-2) 70%, transparent) 0%, transparent 55%),
    radial-gradient(100% 120% at 100% 20%, color-mix(in srgb, var(--stp-accent) 55%, transparent) 0%, transparent 50%),
    linear-gradient(135deg, var(--stp-brand) 0%, color-mix(in srgb, var(--stp-brand) 55%, #0b0e17) 100%);
}
.stp-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.stp-hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 6vw, 90px); z-index: -1;
  background: var(--stp-bg);
  clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 100%);
}
.stp-hero-inner { text-align: center; max-width: 860px; }
.stp-hero-eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.stp-hero-title { font-size: clamp(32px, 5.6vw, 56px); font-weight: 800; margin-bottom: 14px; }
.stp-hero-sub { font-size: clamp(15px, 2.2vw, 19px); opacity: .92; margin: 0 auto 26px; max-width: 620px; }
.stp-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 26px; }
.stp-hero-search { max-width: 620px; margin: 0 auto; }
.stp-hero-search .stp-search { box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); }

.stp-hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px;
  list-style: none; margin: 30px 0 0; padding: 0;
}
.stp-hero-stats li { display: flex; flex-direction: column; align-items: center; }
.stp-hero-stats strong { font-family: var(--stp-display); font-size: 26px; line-height: 1; }
.stp-hero-stats span { font-size: 12.5px; opacity: .85; text-transform: uppercase; letter-spacing: .05em; }

/* ------------------------------------------------------------ Seções */
.stp-section { padding: clamp(36px, 5vw, 64px) 0; }
.stp-section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  gap: 16px; margin-bottom: 22px;
}
.stp-section-title { font-size: clamp(21px, 3vw, 28px); margin: 0; }
.stp-section-sub { margin: 6px 0 0; color: var(--stp-muted); font-size: 14.5px; }

/* -------------------------------------------------------------- Cards */
.stp-grid { display: grid; gap: 20px; }
.stp-grid-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.stp-grid-rail { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.stp-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--stp-surface); border: 1px solid var(--stp-border);
  border-radius: var(--stp-radius); box-shadow: var(--stp-shadow);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.stp-card:hover { transform: translateY(-4px); box-shadow: var(--stp-shadow-lg); border-color: color-mix(in srgb, var(--stp-brand) 40%, var(--stp-border)); }
.stp-card-media { display: block; aspect-ratio: 16 / 10; background: var(--stp-surface-2); overflow: hidden; }
.stp-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.stp-card:hover .stp-card-img { transform: scale(1.05); }
.stp-card-fallback {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: linear-gradient(140deg, hsl(var(--h) 82% 62%), hsl(calc(var(--h) + 42) 84% 54%));
  color: #fff; font-family: var(--stp-display); font-weight: 800; font-size: 34px; letter-spacing: -.02em;
}
.stp-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.stp-card-meta { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--stp-brand); }
.stp-card-title { font-size: 17px; margin: 0; }
.stp-card-title a { text-decoration: none; }
.stp-card-title a:hover { color: var(--stp-brand); }
.stp-card-excerpt { margin: 0; color: var(--stp-muted); font-size: 14px; }
.stp-card-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--stp-border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--stp-muted);
}

/* ------------------------------------------------------------- Tiles */
.stp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.stp-tile {
  display: flex; flex-direction: column; gap: 6px; padding: 16px;
  border-radius: var(--stp-radius); text-decoration: none;
  background: var(--stp-surface); border: 1px solid var(--stp-border); box-shadow: var(--stp-shadow);
  transition: transform .18s ease, box-shadow .22s ease;
}
.stp-tile:hover { transform: translateY(-3px); box-shadow: var(--stp-shadow-lg); }
.stp-tile-badge {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(140deg, hsl(var(--h) 85% 60%), hsl(calc(var(--h) + 40) 85% 50%));
  color: #fff; font-family: var(--stp-display); font-weight: 800; font-size: 15px; margin-bottom: 4px;
}
.stp-tile-name { font-family: var(--stp-display); font-weight: 700; font-size: 15px; }
.stp-tile-count { font-size: 12.5px; color: var(--stp-muted); }

/* --------------------------------------------------------------- CTA */
.stp-cta {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px;
  padding: clamp(22px, 4vw, 34px); border-radius: calc(var(--stp-radius) + 8px); color: #fff;
  background: linear-gradient(120deg, var(--stp-brand), var(--stp-brand-2));
  box-shadow: 0 26px 60px -30px color-mix(in srgb, var(--stp-brand) 90%, transparent);
}
.stp-cta-title { margin: 0 0 6px; font-size: clamp(20px, 3vw, 26px); }
.stp-cta-text { margin: 0; opacity: .92; font-size: 15px; }
.stp-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stp-cta .stp-btn-primary { background: #fff; color: #16192a; box-shadow: none; }
.stp-cta .stp-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }

/* ------------------------------------------------------------ Layout */
.stp-page-head { padding: clamp(28px, 5vw, 52px) 0 6px; }
.stp-page-title { font-size: clamp(26px, 4.2vw, 40px); margin: 0; }
.stp-page-sub { color: var(--stp-muted); }

.stp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 24px 0 64px; }
.stp-layout:has(.stp-sidebar) { grid-template-columns: minmax(0, 1fr) 320px; }
.stp-sidebar { display: flex; flex-direction: column; gap: 18px; }
.stp-widget { background: var(--stp-surface); border: 1px solid var(--stp-border); border-radius: var(--stp-radius); padding: 18px; box-shadow: var(--stp-shadow); }
.stp-widget-title { font-size: 15px; margin: 0 0 10px; }
.stp-widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stp-widget a { text-decoration: none; color: var(--stp-muted); font-size: 14.5px; }
.stp-widget a:hover { color: var(--stp-brand); }

/* --------------------------------------------------------------- Post */
.stp-single-head { padding: clamp(28px, 5vw, 56px) 0 10px; }
.stp-single-title { font-size: clamp(28px, 4.6vw, 44px); max-width: 24ch; }
.stp-single-meta { color: var(--stp-muted); font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.stp-single-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.stp-single-cover img { border-radius: calc(var(--stp-radius) + 6px); box-shadow: var(--stp-shadow-lg); margin-top: 18px; }

.stp-prose { font-size: 17px; line-height: 1.75; }
.stp-prose > * + * { margin-top: 1.05em; }
.stp-prose h2 { font-size: clamp(21px, 3vw, 28px); margin-top: 1.7em; }
.stp-prose h3 { font-size: 20px; margin-top: 1.5em; }
.stp-prose a { color: var(--stp-brand); text-underline-offset: 3px; }
.stp-prose img, .stp-prose iframe { border-radius: var(--stp-radius); }
.stp-prose blockquote {
  margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--stp-brand);
  background: var(--stp-surface); border-radius: 0 var(--stp-radius) var(--stp-radius) 0; color: var(--stp-muted);
}
.stp-prose code { background: var(--stp-surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.stp-prose table { width: 100%; border-collapse: collapse; }
.stp-prose th, .stp-prose td { border: 1px solid var(--stp-border); padding: 10px; text-align: left; }

/* ----------------------------------------------------------- Dashpage */
.stp-dashpage { padding: clamp(26px, 5vw, 52px) 0 72px; }
.stp-dashpage-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 22px; }
.stp-dashpage-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stp-notice {
  padding: 16px 18px; border-radius: var(--stp-radius);
  background: color-mix(in srgb, var(--stp-accent) 12%, var(--stp-surface));
  border: 1px solid color-mix(in srgb, var(--stp-accent) 40%, var(--stp-border));
}
/* Painel do plugin ganha a largura total dentro do tema */
.stp-dashpage .et-dash, .stp-dashpage .et-modal-card-lg { max-width: 100% !important; width: 100% !important; }

/* -------------------------------------------------------- Modal aula */
.stp-lightbox {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: center; justify-content: center; padding: 18px;
  background: rgba(6, 8, 16, .72); backdrop-filter: blur(6px);
}
.stp-lightbox.is-open { display: flex; animation: stp-fade .18s ease; }
.stp-lightbox-card {
  position: relative; width: min(1100px, 100%); height: min(78vh, 780px);
  background: var(--stp-surface); border-radius: calc(var(--stp-radius) + 6px);
  overflow: hidden; box-shadow: var(--stp-shadow-lg); display: flex; flex-direction: column;
}
.stp-lightbox-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--stp-border); }
.stp-lightbox-title { font-family: var(--stp-display); font-weight: 700; font-size: 15px; margin: 0; }
.stp-lightbox iframe { flex: 1; width: 100%; border: 0; }
@keyframes stp-fade { from { opacity: 0 } to { opacity: 1 } }

/* -------------------------------------------------------- Utilitários */
.stp-empty { text-align: center; padding: 60px 0 80px; display: grid; gap: 14px; justify-items: center; }
.stp-404 { font-family: var(--stp-display); font-size: clamp(64px, 16vw, 140px); font-weight: 800; line-height: 1; background: linear-gradient(120deg, var(--stp-brand), var(--stp-brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }
.stp-empty .stp-search { max-width: 460px; width: 100%; }

.stp-pagination { display: flex; justify-content: center; margin-top: 32px; }
.stp-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.stp-pagination .page-numbers {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 12px; text-decoration: none; background: var(--stp-surface);
  border: 1px solid var(--stp-border); font-weight: 600; font-size: 14px;
}
.stp-pagination .page-numbers.current { background: linear-gradient(135deg, var(--stp-brand), var(--stp-brand-2)); color: #fff; border-color: transparent; }

.stp-totop {
  position: fixed; right: 16px; bottom: 112px; z-index: 55;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--stp-border); background: var(--stp-surface); color: var(--stp-text);
  box-shadow: var(--stp-shadow-lg); display: grid; place-items: center;
}
.stp-totop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------- Rodapé */
.stp-footer { background: var(--stp-surface); border-top: 1px solid var(--stp-border); margin-top: 20px; }
.stp-footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 32px; padding: 48px 0 32px; }
.stp-footer-desc { color: var(--stp-muted); max-width: 42ch; margin: 12px 0 18px; }
.stp-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.stp-footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stp-footer-menu a { text-decoration: none; color: var(--stp-muted); font-size: 14.5px; }
.stp-footer-menu a:hover { color: var(--stp-brand); }
.stp-footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  border-top: 1px solid var(--stp-border); padding: 18px 0; color: var(--stp-muted); font-size: 13.5px;
}
.stp-footer-bottom p { margin: 0; }

/* --------------------------------------------------- Comentários */
.stp-comments { padding: 32px 0 64px; }
.stp-comment-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.stp-comment-list .comment-body { background: var(--stp-surface); border: 1px solid var(--stp-border); border-radius: var(--stp-radius); padding: 16px; }
.stp-comments textarea, .stp-comments input[type="text"], .stp-comments input[type="email"], .stp-comments input[type="url"] {
  width: 100%; padding: 11px 14px; border-radius: 12px; font: inherit;
  border: 1px solid var(--stp-border); background: var(--stp-surface); color: var(--stp-text);
}
.stp-comments label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.stp-comments p { margin: 0 0 14px; }

/* ------------------------------------------------------ Responsivo */
@media (max-width: 1024px) {
  .stp-layout:has(.stp-sidebar) { grid-template-columns: minmax(0, 1fr); }
  .stp-footer-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .stp-burger { display: inline-flex; }
  .stp-nav {
    position: fixed; inset: var(--stp-head-h) 0 auto 0; margin: 0;
    background: var(--stp-surface); border-bottom: 1px solid var(--stp-border);
    padding: 12px 16px 20px; box-shadow: var(--stp-shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease; max-height: calc(100dvh - var(--stp-head-h)); overflow-y: auto;
  }
  .stp-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .stp-menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .stp-menu a { padding: 12px 14px; font-size: 16px; }
  .stp-menu .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding-left: 10px; }
  .stp-hide-sm { display: none; }
  .stp-section-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .stp-cta, .stp-dashpage-head { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .stp-grid-grid, .stp-grid-rail { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
  .stp-card-body { padding: 12px 13px 14px; }
  .stp-card-title { font-size: 15px; }
  .stp-card-excerpt { display: none; }
  .stp-tiles { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
  .stp-search { padding-left: 40px; }
  .stp-search-submit { display: none; }
  .stp-hero-stats { gap: 10px 20px; }
  .stp-lightbox-card { height: 82dvh; }
  .stp-totop { bottom: 140px; right: 12px; }
}

@media print {
  .stp-header, .stp-footer, .stp-totop, .stp-cta, .et-bar { display: none !important; }
  body { background: #fff; color: #000; }
}

/* v2: área do criador de questões na página Meus estudos */
.stp-quiz-area { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--stp-border, #e5e7f0); }
.stp-dashpage .stp-wrap { max-width: 1560px; }
.stp-dashpage-body .et-dash-page, .stp-quiz-area .eq-manager { width: 100%; }
@media (max-width: 780px) { .stp-quiz-area { margin-top: 32px; padding-top: 24px; } }
