/* Editorial identity shared by the landing, the catalogs and the Plus page: tokens, page shell and small primitives. */
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("../__apprendeu_static_assets/891951df5e8b/assets/fonts/caveat-latin.woff2") format("woff2"); }

/* Dark is the shared default; light overrides follow. */
body.editorial-page {
  --home-bg: var(--ui-bg);
  --home-surface: var(--ui-surface);
  --home-text: var(--ui-text);
  --home-muted: var(--ui-muted);
  --home-accent: var(--ui-accent);
  --home-line: var(--ui-line);
  --home-shadow: var(--ui-shadow);
  --home-indigo: #9baeff;
  --home-blue: #a9caff;
  --home-button-ink: #101a22;
  --home-button-fill: linear-gradient(115deg, #67ceff, #92b7ff);
  --home-cyan-wash: #102c46;
  --home-indigo-wash: #1b2546;
  --home-blue-wash: #182639;
  --home-canvas: var(--home-bg);
  --home-rot-ink: #c4ecff;
  --home-highlight: rgba(103, 206, 255, .26);
  --home-pencil: #9fd0ff;
  --home-dot: rgba(150, 190, 240, .12);
  --home-grid: rgba(150, 190, 240, .07);
  --home-desk: linear-gradient(125deg, #0c2a47, #15335a 52%, #182b57);
  --home-desk-glow: rgba(57, 158, 186, .28);
  --home-hero-lines: rgba(170, 210, 255, .08);
  --home-card-shadow: 0 24px 44px -24px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .2);
  --home-ok: #3fcf95;
  --home-beta: #ffc83d;
  --home-beta-ink: #3d2a00;
  --home-soon: #ff8aa0;
  --home-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  /* Small type floor: section kickers, uppercase tags and badges, captions and footnotes. */
  --type-kicker: .8rem;
  --type-tag: .75rem;
  --type-caption: .875rem;
  background: var(--home-bg);
  color: var(--home-text);
  overflow-x: clip;
}
html[data-theme="light"] body.editorial-page {
  --home-indigo: #244ea3;
  --home-blue: #005a9e;
  --home-button-ink: #fff;
  --home-button-fill: linear-gradient(115deg, #0078b4, #0754b8);
  --home-cyan-wash: #d6ebf8;
  --home-indigo-wash: #dfe4fa;
  --home-blue-wash: #dbe7f5;
  --home-canvas: #eaf1f8;
  --home-rot-ink: #0754b8;
  --home-highlight: rgba(255, 214, 64, .62);
  --home-pencil: #1d5fb8;
  --home-dot: rgba(71, 131, 188, .22);
  --home-grid: rgba(71, 131, 188, .13);
  --home-desk: linear-gradient(125deg, #7fb2ca, #a3bcdc 52%, #7f9dcd);
  --home-desk-glow: rgba(57, 158, 186, .45);
  --home-hero-lines: rgba(255, 255, 255, .55);
  --home-card-shadow: 0 24px 44px -24px rgba(16, 35, 61, .55), 0 2px 6px rgba(16, 35, 61, .08);
  --home-ok: #1f9d6b;
  --home-soon: #b3203a;
}

/* Discipline palette shared by the catalog, the discipline pages and the game pages: one accent and one tape tint per
   area. The default (multidisciplinar) sits at zero specificity so any [data-discipline], the page's own included, wins. */
:where(.editorial-page) { --subject: #67ceff; --tape: rgba(143, 214, 255, .62); }
[data-discipline="libras"] { --subject: #8a6cf0; --tape: rgba(196, 160, 255, .62); }
[data-discipline="lingua-portuguesa"] { --subject: #2f9e63; --tape: rgba(170, 230, 190, .66); }
[data-discipline="quimica"] { --subject: #1f9fd6; --tape: rgba(143, 214, 255, .66); }
[data-discipline="ciencias"] { --subject: #e0567a; --tape: rgba(255, 160, 190, .64); }
[data-discipline="historia"] { --subject: #d9921c; --tape: rgba(255, 214, 64, .64); }
[data-discipline="fisica"] { --subject: #f07b3f; --tape: rgba(255, 190, 140, .66); }
/* Readable tone of the accent for text, recomputed wherever the accent changes. */
:where(.editorial-page, .editorial-page [data-discipline]) { --subject-ink: color-mix(in srgb, var(--subject) 58%, #fff); }
html[data-theme="light"] :where(.editorial-page, .editorial-page [data-discipline]) { --subject-ink: color-mix(in srgb, var(--subject) 58%, #000); }

.home-shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.home-skip { position: fixed; top: 8px; left: 16px; z-index: 100; padding: 12px 18px; background: var(--home-accent); color: var(--home-bg); border-radius: 8px; transform: translateY(-160%); }
.home-skip:focus { transform: translateY(0); }
.editorial-page .home-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; font-size: var(--type-kicker); font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--home-blue); }
.home-chip { font-size: var(--type-tag); font-weight: 800; letter-spacing: .04em; text-transform: none; color: var(--home-text); background: var(--home-surface); border: 1px solid var(--home-line); border-radius: 100px; padding: 5px 10px; }
/* The legacy base spaces every li + li; editorial lists set their own rhythm with gap or padding. */
:where(.editorial-page main) li + li { margin-top: 0; }
/* Running text: justified with hyphenation from lang="pt-BR" (at least two letters on each side of the hyphen) once the
   column holds enough words per line. On phones the ~40-character column would open wide gaps between words, so the text
   stays aligned to the left there and only long words break. Chrome never hyphenates a paragraph's last word. */
.editorial-page .home-prose { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4; }
@media (min-width: 601px) {
  /* The slightly narrower word space is the shrink allowance typesetters give justified text: a line takes one more word
     before it stretches. Plain wrapping on purpose: "pretty" pulls a word down to the last line and opens gaps above it. */
  .editorial-page .home-prose { text-align: justify; hyphenate-limit-chars: 5 2 2; word-spacing: -.05em; text-wrap: wrap; }
}
/* Short card descriptions (two or three lines) justify only in the wide desktop columns; narrower, one long final word
   would leave the line above it stretched. */
@media (max-width: 1023px) {
  .editorial-page .home-prose-short { text-align: start; hyphenate-limit-chars: 10 4 4; word-spacing: normal; text-wrap: pretty; }
}

/* Paper and printed objects stay light in both themes. */
.home-paper {
  --home-text: #10233d;
  --home-muted: #3a5371;
  --home-accent: #007dba;
  --home-blue: #005a9e;
  --home-surface: #fff;
  --home-line: #c9d8e6;
  --home-pencil: #1d5fb8;
  --home-ok: #1f9d6b;
  --home-button-ink: #fff;
  --home-button-fill: linear-gradient(115deg, #0078b4, #0754b8);
  color: var(--home-text);
}
.home-button { display: inline-flex; justify-content: center; align-items: center; gap: 1.2rem; padding: 15px 24px; min-height: 52px; border-radius: 100px; font-size: .9rem; font-weight: 800;
  border: 1px solid transparent; white-space: nowrap; transition: background .2s, transform .25s, box-shadow .25s; }
.home-button:hover { transform: translateY(-4px); }
.home-button-primary { background: var(--home-button-fill); color: var(--home-button-ink); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--home-accent) 55%, transparent); }
.home-button-secondary { border-color: var(--home-accent); color: var(--home-blue); background: color-mix(in srgb, var(--home-surface) 85%, transparent); }
.home-button-secondary:hover { background: var(--home-surface); }
.home-text-link { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; color: var(--home-text); font-weight: 800; font-size: .92rem; }
.home-text-link i { color: var(--home-accent); transition: transform .2s; }
.home-text-link:hover i { transform: translate(3px, -3px); }
/* Way back to the level above (catalog → discipline → game). */
.home-back-link { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: var(--home-muted); font-size: .9rem; font-weight: 800; }
.home-back-link i { color: var(--home-accent); transition: transform .2s; }
.home-back-link:hover { color: var(--home-text); }
.home-back-link:hover i { transform: translateX(-3px); }
/* "Em breve" rubber stamp over a cover that cannot be opened yet. */
.home-stamp { position: absolute; left: 50%; top: 36%; z-index: 3; transform: translate(-50%, -50%) rotate(-8deg); background: #d6213f; color: #fff; font: 800 .95rem/1 var(--font-title);
  letter-spacing: .06em; text-transform: uppercase; padding: 9px 16px; border: 3px solid #fff; border-radius: 6px; box-shadow: 0 8px 18px rgba(0, 0, 0, .25); white-space: nowrap; }
.home-note { position: absolute; z-index: 9; display: flex; align-items: center; gap: 6px; margin: 0; font: 700 1.55rem/1 var(--home-hand); color: var(--home-pencil); white-space: nowrap; pointer-events: none; }
.home-note svg { width: 56px; height: 40px; overflow: visible; }
.home-note path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* Blocks marked .home-reveal rise into place once the page script adds .home-enhanced and sees them. */
@media (prefers-reduced-motion: no-preference) {
  .home-enhanced .home-reveal { transition: opacity .75s ease, translate .75s cubic-bezier(.2, .7, .3, 1); }
  .home-enhanced .home-reveal:not(.is-visible):not(:focus-within) { opacity: 0; translate: 0 28px; }
}
/* Blocks marked .reveal (main.js) fade in from the legacy base; without motion they are simply there. */
@media (prefers-reduced-motion: reduce) {
  .editorial-page .reveal { opacity: 1; transform: none; transition: none; }
  .home-back-link i { transition: none; }
}

/* Catalog pages (disciplines, assessments): a short title over a dotted canvas, then the cards. */
body.catalog-page { display: flex; flex-direction: column; min-height: 100svh; }
.catalog-page .site-footer { margin-top: 0; }
.catalog-main { flex: 1; min-width: 0; overflow: clip; color: var(--home-text);
  background:
    radial-gradient(circle, var(--home-dot) 1.2px, transparent 1.4px) 0 0 / 22px 22px,
    radial-gradient(ellipse at 8% 0%, var(--home-cyan-wash), transparent 55%),
    radial-gradient(ellipse at 96% 12%, var(--home-indigo-wash), transparent 50%),
    linear-gradient(180deg, var(--home-canvas), var(--home-blue-wash)); }
/* One page-title scale for every page on this canvas: catalog, assessments, disciplines and games. */
.catalog-main h1 { margin: 0; font-size: clamp(2.3rem, 4.6vw, 3.8rem); font-weight: 600; line-height: 1.04; color: var(--home-text); letter-spacing: -.05em; text-wrap: balance; }
.catalog-intro { padding: 52px 0 30px; }
.catalog-intro-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.catalog-mark { position: relative; z-index: 0; display: inline-block; padding: 0 .08em; color: var(--home-rot-ink); }
.catalog-mark::before { content: ""; position: absolute; z-index: -1; left: -.02em; right: -.04em; bottom: .06em; height: .46em; background: var(--home-highlight);
  border-radius: .2em .5em .3em .6em; transform: skewX(-8deg) rotate(-1.2deg); transform-origin: 0 50%; }

@media (max-width: 960px) {
  .home-shell { width: calc(100% - 40px); }
  .catalog-intro { padding: 44px 0 26px; }
}
@media (max-width: 600px) {
  .home-shell { width: calc(100% - 32px); }
  .catalog-intro { padding: 36px 0 22px; }
  .catalog-main h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
}
