@font-face {
  font-family: Manrope;
  src: url("manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --ink: #111d34;
  --navy: #0b1326;
  --navy-light: #172954;
  --paper: #fff;
  --wash: #edf2fa;
  --soft: #f7f9fd;
  --muted: #44536e;
  --line: #d7e0ee;
  --blue: #2449ad;
  --accent: #ffd078;
  --cream: #fff3db;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5.35rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 1rem/1.65 Manrope, system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
p + p { margin-top: .85rem; }
h1, h2, h3 { line-height: 1.09; font-weight: 800; letter-spacing: -.05em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.55vw, 4.7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.43rem); letter-spacing: -.025em; }
a { color: var(--blue); text-decoration: none; }
:focus-visible { outline: 3px solid #4261d4; outline-offset: 4px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }
.wrap { width: min(calc(100% - 3rem), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(3.1rem, 6vw, 5.55rem); }
.subtle { color: var(--muted); }
.label { margin: 0 0 .7rem; color: var(--blue); font-size: .86rem; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.dark .label { color: var(--accent); }
.dark { color: var(--paper); background: var(--navy); }
.tint { background: var(--wash); }

.skip { position: fixed; z-index: 20; top: .5rem; left: .5rem; transform: translateY(-160%); padding: .65rem 1rem; border-radius: .45rem; background: white; font-weight: 800; }
.skip:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 10; top: 0; background: #fff; border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.55rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }
.brand img { width: 2.25rem; height: 2.25rem; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(.15rem, 1.1vw, .75rem); }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .7rem; border-radius: .45rem; color: var(--ink); font-size: .93rem; font-weight: 750; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current], .main-nav a.current-section { color: var(--blue); background: var(--wash); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .75rem 1.25rem; border: 1px solid transparent; border-radius: .6rem; background: var(--blue); color: white; font-weight: 800; line-height: 1.25; text-align: center; transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
.button:hover { background: #183681; }
.button.small { min-height: 44px; padding-inline: 1rem; font-size: .9rem; }
.button.warm { background: var(--accent); color: #172139; box-shadow: 0 5px 14px #0b13261f; }
.button.warm:hover { background: #ffbd46; box-shadow: 0 6px 18px #0b132638; }
.button.outline { background: transparent; border-color: #798eaf; color: white; }
.button.outline:hover { background: #283b60; border-color: #a5b5d0; }
.button.full { width: 100%; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: 1.35rem; }
.text-link, .prose a, .micro a, .disclosures details p a {
  color: #193d9b;
  font-weight: 800;
  background: #e9effe;
  border-radius: .25rem;
  padding: .05em .24em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.text-link:hover, .prose a:hover, .micro a:hover, .disclosures details p a:hover { background: #d7e3ff; color: #122866; }

.hero { padding-block: clamp(2.65rem, 5.6vw, 4.6rem); overflow: clip; background: radial-gradient(ellipse at 82% 50%, #263f78 0, transparent 52%), linear-gradient(116deg, #0b1326 28%, #132346 100%); }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(1rem, 4.25vw, 4rem); }
.hero h1 { max-width: 12ch; }
.hero h1 span { color: var(--accent); }
.hero-hook { margin: 1.15rem 0 .55rem; color: #fff; font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 800; letter-spacing: -.023em; }
.hero-copy { max-width: 35rem; margin: 0; color: #dce6fb; font-size: clamp(1rem, 1.5vw, 1.09rem); }
.hero .micro { color: #cad7ed; }
.micro { margin: .75rem 0 0; font-size: .9rem; }
.product { position: relative; min-width: 0; padding-top: 1rem; }
.product-display { position: relative; isolation: isolate; display: grid; align-items: start; padding: 6% 7% 6% 3%; }
.product-display::before {
  position: absolute; z-index: -1; inset: 5% 0 4% 8%;
  border: 1px solid #5c77ad;
  border-radius: 1.4rem;
  background: radial-gradient(circle, #91ace0 1px, transparent 1.4px) 0 0 / 18px 18px;
  opacity: .55; content: "";
}
.product-display::after {
  position: absolute; z-index: -1; content: ""; inset: 1% 3% 1% 10%;
  border-bottom: 2px solid #ffd078b8; border-radius: 1.65rem; transform: rotate(-7deg);
}
.product-cover { grid-area: 1 / 1; z-index: 2; width: 74%; border: 1px solid #8ba3d0; border-radius: .8rem; box-shadow: 0 24px 40px #030714ab; transform: rotate(-6deg); }
.product-page { grid-area: 1 / 1; z-index: 1; width: 48%; aspect-ratio: 5 / 6; object-fit: cover; object-position: top; justify-self: end; margin-top: 8%; border: .42rem solid white; border-radius: .36rem; background: white; box-shadow: 0 15px 30px #060c20a0; transform: rotate(11deg); }
.product figcaption { color: #d7e1f4; margin: .65rem 0 0; text-align: center; font-size: .875rem; }
.quick-facts { border-bottom: 1px solid var(--line); background: var(--soft); }
.quick-facts dl { display: grid; grid-template-columns: repeat(4, 1fr); margin-block: 0; padding-block: 1.25rem; }
.quick-facts dl div { display: grid; gap: .14rem; align-content: center; padding-inline: clamp(.55rem, 2.5vw, 1.8rem); }
.quick-facts dl div + div { border-inline-start: 1px solid var(--line); }
.quick-facts dt { color: var(--blue); font-size: clamp(1.7rem, 3.7vw, 2.55rem); font-weight: 800; line-height: 1.05; letter-spacing: -.065em; }
.quick-facts dd { margin: 0; color: var(--muted); font-size: .91rem; font-weight: 650; }

.split { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(1.4rem, 5vw, 4.6rem); align-items: start; }
.section-intro { max-width: 46rem; margin-bottom: 1.65rem; }
.section-intro p:last-child, .split-copy h2 + p { color: var(--muted); margin-top: .85rem; font-size: 1.06rem; }
.split-copy a.text-link { display: inline; }
.split-copy > p + a { display: inline-block; margin-top: .85rem; }
.sample-layout { align-items: center; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }
.sample-grid, .guide-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sample-card, .guide-card { min-width: 0; border: 1px solid var(--line); border-radius: 1rem; background: white; box-shadow: 0 7px 24px #1229560a; }
.sample-card { display: flex; flex-direction: column; overflow: hidden; }
.sample-card img { width: 100%; aspect-ratio: 280 / 171; padding: .9rem .9rem 0; object-fit: cover; object-position: top; background: #e9effa; }
.card-inner { padding: 1.15rem; }
.sample-card .card-inner { display: flex; flex: 1; flex-direction: column; }
.sample-card .actions { margin-top: auto; padding-top: 1rem; }
.card-inner h3 a { color: var(--ink); }
.card-inner p { margin: .55rem 0 0; color: var(--muted); }
.card-inner .label { margin: 0 0 .55rem; color: var(--blue); }
.sample-extra { margin: 1.15rem 0 0; }
.sample-card .button { padding-inline: .7rem; }

.disclosures details, .question { background: #fff; border: 1px solid var(--line); border-radius: .65rem; }
.disclosures details + details { margin-top: .6rem; }
summary { position: relative; display: block; padding: .9rem 3rem .9rem 1.1rem; min-height: 48px; border-radius: .65rem; font-weight: 800; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+" / ""; position: absolute; top: 50%; right: 1rem; width: 1.65rem; height: 1.65rem; transform: translateY(-50%); border-radius: 50%; color: var(--blue); background: var(--wash); text-align: center; line-height: 1.62rem; font-size: 1.15rem; }
details[open] > summary::after { content: "−" / ""; }
summary:hover { color: var(--blue); background: #f6f8fe; }
summary small { display: block; color: var(--muted); font-size: .85rem; font-weight: 700; }
.disclosures details > p, .question > p { margin: 0; padding: 0 1rem 1rem; color: var(--muted); }
.program ol { margin: 0; padding: 0 1.05rem .75rem; list-style: none; }
.program li { display: grid; grid-template-columns: 4.35rem 1fr; gap: .55rem; border-top: 1px solid var(--line); padding: .58rem .1rem; line-height: 1.42; }
.program li > span, .program li small { color: var(--muted); font-size: .87rem; }
.program li small { display: block; margin-top: .2rem; }
.program-foot { margin: 1rem 0 0; color: var(--muted); font-size: .92rem; }

.teacher-section { background: linear-gradient(105deg, #fff, #fff8eb); }
.author-row { display: grid; grid-template-columns: minmax(8rem, 15rem) minmax(0, 38rem); gap: clamp(1.4rem, 6vw, 4.5rem); align-items: center; justify-content: center; }
.portrait { width: 100%; border: 1px solid var(--line); border-radius: 1rem; }
.author-row h2 + p { margin-top: .85rem; }
.author-row p:last-of-type { color: var(--muted); }
.author-row > div > .text-link { display: inline-block; margin-top: 1rem; }

.offer { background: radial-gradient(ellipse at 100% 4%, #284278 0, transparent 67%), var(--navy); }
.offer-grid { align-items: center; }
.offer h2 + p { margin-top: .85rem; color: #dee7f9; max-width: 31rem; }
.release { margin: 1.55rem 0 0; }
.release div { padding: .75rem 0; border-top: 1px solid #536983; }
.release dt { color: var(--accent); font-weight: 800; }
.release dd { margin: .2rem 0 0; color: #e3ebfc; }
.offer-card { padding: clamp(1.25rem, 3vw, 2.2rem); border-radius: 1.05rem; border-top: .3rem solid var(--accent); background: white; color: var(--ink); box-shadow: 0 18px 40px #060a1757; }
.offer-card :focus-visible { outline-color: #4261d4; }
.price { margin: .42rem 0 .08rem; font-size: clamp(3rem, 6vw, 4.35rem); font-weight: 800; line-height: 1.06; letter-spacing: -.07em; }
.price small { font-size: .45em; letter-spacing: -.03em; }
.offer-card ul { margin: 1rem 0 1.15rem; padding: .7rem 0 0 1.25rem; border-top: 1px solid var(--line); }
.offer-card li { margin: .22rem 0; }
.offer-card .micro { color: var(--muted); }

.guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-grid:has(> :last-child:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-card { position: relative; --card-tint: #eaf0ff; --card-label: #24459c; border-top: 4px solid var(--card-label); background: linear-gradient(var(--card-tint), #fff 88%); }
.guide-card.chave-primaria-e-estrangeira { --card-tint: #e7f5ee; --card-label: #235d45; }
.guide-card.oltp-vs-olap { --card-tint: #fff1da; --card-label: #784b0d; }
.guide-card .label, .guide-card-action { color: var(--card-label); }
.guide-card .card-inner { display: flex; flex-direction: column; height: 100%; }
.guide-card a { display: inline-block; }
.guide-card a::after { position: absolute; content: ""; inset: 0; border-radius: .8rem; }
.guide-card:focus-within { outline: 3px solid #4261d4; outline-offset: 4px; }
.guide-card a:focus-visible { outline: 0; }
.guide-card:hover { box-shadow: 0 8px 25px #1c325e22; }
.guide-card-action { display: flex; align-items: center; gap: .65rem; margin-top: auto; padding-top: .95rem; font-weight: 800; }
.chevron { width: .44rem; height: .44rem; border-top: .13rem solid currentColor; border-right: .13rem solid currentColor; transform: rotate(45deg); }
.closing { padding-block: 2.2rem; background: var(--cream); }
.closing .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.closing h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }

.site-footer { padding-block: 2.4rem; background: var(--navy); color: #dae5f7; }
.foot-row { display: grid; grid-template-columns: 1fr 2fr; gap: 1.1rem; align-items: start; }
.site-footer .brand { color: white; }
.site-footer p { margin: .65rem 0 0; font-size: .88rem; }
.foot-links { display: flex; gap: .25rem 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; color: #e7eefc; font-size: .92rem; }
.foot-links a:hover { color: var(--accent); }

.page-top { padding-block: clamp(2.45rem, 5vw, 4.35rem); background: radial-gradient(ellipse at 100% 85%, #223769 0, transparent 70%), var(--navy); }
.page-top-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .48fr); align-items: end; gap: clamp(1.3rem, 5vw, 4rem); }
.page-top-grid:not(:has(.guide-rule)) { grid-template-columns: minmax(0, 1fr); }
.page-top h1 { max-width: 22ch; font-size: clamp(2.25rem, 5vw, 3.8rem); }
.page-top .lead { max-width: 45rem; margin: 1rem 0 0; color: #d8e2f7; font-size: clamp(1rem, 1.6vw, 1.14rem); }
.crumb { margin: 0 0 1.05rem; color: #d2dcf0; font-size: .9rem; }
.crumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem .55rem; margin: 0; padding: 0; list-style: none; }
.crumb li + li::before { content: "/" / ""; margin-right: .55rem; color: #b9c8e9; }
.crumb a { display: inline-block; border-radius: .3rem; padding: .2rem .36rem; background: #26395f; color: #fff; font-weight: 800; }
.crumb a:hover { background: #3a4f79; }
.guide-rule { border: 1px solid #798eaf; border-radius: .8rem; border-top: .2rem solid var(--accent); background: #112044; padding: 1.15rem 1.25rem; color: #ecf2ff; }
.guide-rule .label { margin-bottom: .35rem; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 46rem) minmax(13.5rem, 1fr); gap: clamp(1.5rem, 5vw, 4.75rem); align-items: start; }
.guide-sidebar { grid-column: 2; grid-row: 1; position: sticky; top: 6rem; }
.guide-toc { border: 1px solid var(--line); border-radius: .85rem; background: var(--soft); padding: .95rem; }
.guide-toc .label { margin: 0 .45rem .25rem; }
.guide-toc ul { margin: 0; padding: 0; list-style: none; }
.guide-toc a { display: flex; align-items: center; min-height: 44px; padding: .4rem .48rem; border-radius: .36rem; font-weight: 800; }
.guide-toc a:hover { background: var(--wash); color: #152d73; }
.prose { max-width: 47rem; min-width: 0; }
.prose h2 { margin: 2.2rem 0 .75rem; font-size: clamp(1.45rem, 3vw, 2.1rem); text-wrap: pretty; }
.prose h2:first-child { margin-top: 0; }
.prose p + p, .prose p + .text-link, .prose p + a { margin-top: .85rem; }
.prose li + li { margin-top: .35rem; }
.prose pre { overflow-x: auto; margin: 1rem 0; padding: 1rem 1.15rem; border: 1px solid #283c65; border-radius: .6rem; background: var(--navy); color: #eef4ff; font-size: .94rem; }
.prose p code, .prose li code, .prose table code { padding: .1em .28em; background: var(--wash); border-radius: .2em; font-size: .96em; }
.prose table { margin: 1.05rem 0; border-collapse: collapse; width: 100%; font-size: .94rem; }
.prose caption { text-align: left; margin-bottom: .35rem; font-weight: 800; }
.prose th, .prose td { padding: .55rem .6rem; text-align: left; border: 1px solid var(--line); }
.prose th { background: var(--wash); }
.prose .question { margin: .85rem 0 1.15rem; background: #fff9ee; border-color: #e0cba4; }
.prose .question > summary:hover { background: #fff1d6; }
.prose .note { margin-block: 1.35rem; padding: 1rem 1.15rem; border-inline-start: .3rem solid var(--blue); background: var(--wash); }
.section.article { padding-top: clamp(2rem, 4.7vw, 3.25rem); }

@media (max-width: 900px) {
  .sample-layout { grid-template-columns: minmax(0, 1fr); }
  .sample-layout .split-copy { max-width: 43rem; }
}
@media (max-width: 740px) {
  .guide-layout, .page-top-grid { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .guide-sidebar { grid-column: 1; position: static; }
  .guide-rule { max-width: 40rem; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 6.45rem; }
  .wrap { width: calc(100% - 2rem); }
  .head-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: auto; gap: 0 .5rem; padding-top: .45rem; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 0; }
  .main-nav a { font-size: .87rem; padding-inline: .33rem; }
  .brand { min-height: 44px; }
  .hero-grid, .split, .foot-row, .author-row { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 13ch; }
  .hero-hook { margin-top: .9rem; }
  .hero .actions { margin-top: 1.12rem; gap: .5rem; }
  .hero .button { flex: 1 1 auto; padding-inline: .64rem; font-size: .9rem; }
  .product { width: min(100%, 24rem); justify-self: center; }
  .quick-facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: .72rem; row-gap: .55rem; }
  .quick-facts dl div { padding-block: .35rem; }
  .quick-facts dl div:nth-child(odd) { border: 0; }
  .author-row { gap: 1.35rem; }
  .portrait { width: min(48%, 12rem); }
  .guide-grid, .guide-grid:has(> :last-child:nth-child(2)) { grid-template-columns: minmax(0, 1fr); }
  .closing .wrap { align-items: start; flex-direction: column; }
  .foot-links { justify-content: flex-start; }
}
@media (max-width: 490px) {
  .sample-grid { grid-template-columns: minmax(0, 1fr); }
  .sample-card img { max-height: 185px; }
  .prose th, .prose td { padding-inline: .4rem; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media (forced-colors: active) {
  .prose a, .text-link, .micro a, .disclosures details p a, .crumb a { outline: 1px solid LinkText; }
  .button { border-color: ButtonText; }
}



/* Biblioteca editorial */
:root { --editorial: #faf7ef; --reading-green: #193d32; --reading-rule: #d9ded4; }
[hidden] { display: none !important; }
.theme-fundamentos { --theme: #884235; --theme-dark: #482c25; --theme-soft: #f7eae2; --theme-line: #dbc3b6; }
.theme-sql { --theme: #1f614e; --theme-dark: #1b4034; --theme-soft: #e9f1e8; --theme-line: #bfcec1; }
.theme-avancado { --theme: #394c82; --theme-dark: #263657; --theme-soft: #ebedf8; --theme-line: #c7cde2; }
.theme-engenharia { --theme: #805112; --theme-dark: #593a1e; --theme-soft: #f7eddb; --theme-line: #dccdb1; }

.library-page, .story-page { background: #fdfcf8; color: #242b25; }
.library-page .site-header, .story-page .site-header { border-bottom-color: #e4e6dd; }
.library-hero { background: #17392f; color: #f9f5ea; }
.library-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(1.2rem, 4vw, 4.7rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 5rem);
}
.editorial-label { color: var(--theme, #f5b79c); font-weight: 800; font-size: .79rem; letter-spacing: .09em; text-transform: uppercase; }
.library-copy .editorial-label { color: #f6bca5; }
.library-hero h1, .reading h1, .reading-prose h2, .library-toolbar h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.library-hero h1 { margin-top: .8rem; font-size: clamp(3rem, 6.65vw, 6rem); line-height: .94; text-wrap: initial; }
.library-hero h1 em { color: #f2af92; font-weight: 400; font-style: italic; }
.library-intro { max-width: 32rem; margin-top: 1.2rem; font-size: clamp(.98rem, 1.65vw, 1.13rem); color: #e6eee2; }
.library-cover {
  background: #214438;
  border-radius: .25rem;
  border: 1px solid #ffffff37;
  overflow: hidden;
  min-width: 0;
}
.library-cover > img { width: 100%; aspect-ratio: 1.65; object-fit: cover; }
.library-cover .reading-figure { border: 0; border-radius: 0; margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .library-cover > img { animation: editorial-arrival .55s cubic-bezier(.18,.8,.24,1) both; }
}
@keyframes editorial-arrival {
  from { transform: scale(1.018); opacity: .8; }
  to { transform: scale(1); opacity: 1; }
}
.library-main { padding-block: clamp(2.4rem, 5vw, 4.6rem); }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--reading-rule); }
.library-toolbar h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
.library-count { margin-top: .2rem; color: #535d53; font-size: .9rem; }
.library-filters { display: grid; grid-template-columns: minmax(10rem, 1.28fr) minmax(8rem, 1fr); gap: .75rem; width: min(100%,35rem); }
.library-filters label { display: block; font-size: .82rem; font-weight: 800; margin-bottom: .29rem; }
.library-filters input, .library-filters select { width: 100%; min-height: 45px; padding: .45rem .67rem; border: 1px solid #b4bfb4; border-radius: .32rem; background: #fffffc; color: #242b25; font: inherit; }
.library-filters select { font-size: .91rem; }
.library-group { padding-top: clamp(1.8rem, 3.8vw, 3.1rem); }
.library-group-title { margin-bottom: .72rem; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .75rem; }
.library-group-title h2 { font-size: clamp(1.45rem, 2.8vw, 2.05rem); color: var(--theme-dark); }
.library-group-title p { margin: 0; color: #535d53; font-size: .88rem; }
.library-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem 1.1rem; list-style: none; padding: 0; margin: 0; }
.library-card { display: flex; min-width: 0; border-bottom: 1px solid var(--theme-line); }
.library-card > a { width: 100%; min-height: 8.25rem; color: #242b25; padding: .85rem .7rem .9rem 0; transition: color .2s ease, background-color .2s ease; }
.library-card > a:hover { color: var(--theme); background: color-mix(in srgb, var(--theme-soft) 52%, transparent); }
.library-card .label { color: var(--theme); font-size: .72rem; margin-bottom: .26rem; }
.library-card h3 { font-size: clamp(1.09rem, 1.75vw, 1.28rem); line-height: 1.22; text-wrap: pretty; }
.library-card p:not(.label) { color: #4e5a50; margin: .5rem 0 0; font-size: .9rem; }
.library-empty { margin-top: 1rem; }

.reading-header { border-bottom: 1px solid var(--theme-line); background: color-mix(in srgb, var(--theme-soft) 48%, #fdfcf8); }
.reading-head { max-width: 61rem; padding-block: clamp(1.65rem, 3.9vw, 3.25rem) clamp(2rem, 4.4vw, 3.8rem); }
.back-to-library { color: var(--theme-dark); font-size: .86rem; font-weight: 800; display: inline-block; margin-bottom: clamp(1.3rem, 3vw, 2.55rem); }
.back-to-library:hover { color: var(--theme); }
.reading h1 { color: #222820; font-size: clamp(2.5rem, 6.15vw, 5.26rem); line-height: 1.02; margin-top: .59rem; text-wrap: pretty; max-width: 64rem; }
.story-lead { max-width: 43rem; margin-top: 1rem; color: #404c42; font-size: clamp(1.07rem, 2.05vw, 1.28rem); line-height: 1.53; }
.reading-body { max-width: 54rem; padding-block: clamp(2rem,4.85vw,3.8rem) clamp(2.8rem,6vw,5.6rem); }
.reading-body > * + * { margin-top: clamp(1.55rem,4.1vw,3.25rem); }
.reading-prose { max-width: 43rem; margin-inline: auto; color: #29332a; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.15rem,2vw,1.36rem); line-height: 1.64; font-weight: 400; }
.reading-prose p + p { margin-top: .9em; }
.reading-prose h2 { color: #232c22; font-size: clamp(1.8rem,3.75vw,3rem); line-height: 1.08; margin-bottom: .7em; text-wrap: pretty; }
.reading-figure { border-radius: .58rem; border: 1px solid var(--theme-line,#bfcec1); background: #fffefb; overflow: hidden; color: #263328; }
.reading-figure h2, .figure-table caption { text-align: left; color: var(--theme-dark,#193d32); font-size: clamp(1.12rem,2.5vw,1.48rem); line-height: 1.26; font-weight: 800; letter-spacing: -.025em; }
.figure-stage { padding: clamp(.9rem,3vw,1.7rem); }
.figure-table { overflow-x: auto; }
.figure-table table, .join-result table { width: 100%; border-collapse: collapse; text-align: left; }
.figure-table caption { padding: .95rem 1rem .72rem; }
.figure-table :is(th,td), .join-result :is(th,td) { padding: .62rem clamp(.39rem,1.7vw,1rem); vertical-align: top; border-bottom: 1px solid var(--theme-line,#bfcec1); line-height: 1.4; }
.figure-table thead th, .join-result thead th { background: var(--theme-soft,#e9f1e8); color: var(--theme-dark,#1b4034); font-size: .86rem; }
.figure-table tbody th, .figure-table td, .join-result tbody td { font-size: .93rem; }
.figure-table tbody tr:last-of-type > *, .join-result tbody tr:last-of-type > * { border-bottom: 0; }
.figure-table tbody tr:nth-child(even), .join-result tbody tr:nth-child(even) { background: #f8f9f3; }
.reading-figure figcaption { padding: .71rem 1rem .85rem; border-top: 1px solid var(--theme-line,#bfcec1); }
.reading-body figcaption { color: #465448; font-size: .89rem; line-height: 1.55; }
.flow-figure ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .58rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.flow-figure li { display: flex; flex-direction: column; gap: .28rem; padding: .85rem; background: var(--theme-soft); border-top: 2px solid var(--theme); border-radius: 0 0 .35rem .35rem; }
.flow-figure li > span { color: var(--theme); font-size: .83rem; font-weight: 800; }
.flow-figure li > strong { color: var(--theme-dark); line-height: 1.23; font-size: clamp(1rem,2.2vw,1.29rem); overflow-wrap: anywhere; }
.flow-figure li > p { color: #445146; font-size: .87rem; line-height: 1.45; }
.flow-figure.stacked ol { grid-template-columns: minmax(0,1fr); gap: .38rem; }
.flow-figure.stacked li { border-top: 0; border-left: 2px solid var(--theme); }
.flow-figure.stacked li:nth-child(2) { margin-left: clamp(.6rem,4vw,2rem); }
.flow-figure.stacked li:nth-child(3) { margin-left: clamp(1.2rem,8vw,4rem); }
.join-inputs { display: grid; grid-template-columns: minmax(0,1fr) 1.5rem minmax(0,1fr); align-items: start; gap: .6rem; margin: .92rem 0 1.12rem; }
.join-inputs > div { padding: .68rem .82rem; min-width: 0; background: #e9f1e8; border-radius: .35rem; }
.join-inputs h3 { font-size: 1rem; color: #244a3d; margin-bottom: .25rem; }
.join-inputs p + p { margin-top: .2rem; }
.join-inputs code { margin-right: .27rem; font-size: .85rem; }
.join-arrow { align-self: center; color: #2d6956; font-weight: 800; text-align: center; }
.join-mode { display: flex; align-items: center; gap: .42rem; font-size: .86rem; font-weight: 800; margin-bottom: .51rem; color: #294d40; }
.join-mode:has(select[hidden]) { display: none; }
.join-mode select { min-height: 42px; font: inherit; color: #1a4033; border: 1px solid #93aa9d; border-radius: .3rem; background: white; padding: .2rem .42rem; }
.join-status { color: #365848; margin-top: .46rem; font-size: .86rem; }
.code-figure { margin-top: 1rem; }
.code-figure pre, .exam-stem pre { padding: .9rem 1rem; border-radius: .36rem; overflow: auto; background: #23362d; color: #f6f8ec; line-height: 1.55; font-size: clamp(.8rem,1.7vw,.98rem); }
.code-figure figcaption { padding: .1rem .12rem 0; }
.source-figure img { width: 100%; max-height: 35rem; object-fit: contain; background: #faf8f2; border: 1px solid var(--theme-line); border-radius: .36rem; }
.source-figure figcaption, .article-video figcaption { margin: .58rem .05rem 0; }
.source-figure figcaption span { color: #535e55; }
.article-video video { display: block; max-width: 100%; height: auto; max-height: 27rem; background: #203122; border-radius: .36rem; }
.article-video figcaption strong { color: #2c4034; }
.exam-panel { border-block: 1px solid var(--theme-line); background: color-mix(in srgb, var(--theme-soft) 46%, #fdfcf8); padding: clamp(.88rem,3.2vw,1.65rem); scroll-margin-top: 1rem; }
.exam-panel h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem,3.4vw,2.48rem); font-weight: 500; }
.exam-origin { color: var(--theme); font-weight: 800; font-size: .83rem; margin-top: .48rem; }
.exam-hint { margin-top: .7rem; font-size: .94rem; }
.exam-stem { margin-block: .95rem; padding: .75rem .85rem; border-left: 2px solid var(--theme-line); background: #fffdf8; color: #343e36; }
.exam-stem p { margin: 0; }
.exam-stem p + p { margin-top: .52rem; }
.answers { display: flex; flex-wrap: wrap; gap: .4rem; }
.answers button { background: #fffef9; border: 1px solid var(--theme-line); color: var(--theme-dark); min-height: 43px; padding: .35rem .8rem; border-radius: .3rem; text-align: left; font: inherit; font-size: .87rem; font-weight: 750; cursor: pointer; max-width: 100%; }
.answers button:hover { background: var(--theme-soft); }
.answers button[aria-pressed=true] { background: var(--theme-dark); color: white; }
.quiz-ready .question-options { display: none; }
.question-options { margin-block: .55rem 0; padding-left: 1.4rem; }
.quiz-status:empty { display: none; }
.quiz-status { margin-block: .62rem; font-weight: 750; font-size: .9rem; }
.exam-panel details { margin-top: .75rem; border-color: var(--theme-line); background: #fffdf8; }
.exam-panel details p { font-size: .94rem; }
.exam-panel details .gabarito { color: var(--theme-dark); }
.exam-panel :is(a,summary), .story-source a, .reading-footer a { color: var(--theme-dark); font-weight: 800; }
.exam-panel a:hover, .story-source a:hover, .reading-footer a:hover { color: var(--theme); }
.exam-panel > :last-child:not(details) { display: inline-block; margin-top: .8rem; font-size: .86rem; }
.exam-panel > .exam-links:last-child { display: flex; flex-wrap: wrap; gap: .45rem 1.3rem; }
.exam-panel a[target="_blank"]::after, .story-source a[target="_blank"]::after { content: " ↗" / ""; }
.story-source { color: #465448; font-size: .93rem; }
.reading-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .45rem 1.4rem; border-top: 1px solid var(--reading-rule); padding-top: .72rem; font-size: .91rem; }

.course-page .hero { background: radial-gradient(ellipse at 83% 38%, #484178 0, transparent 49%), linear-gradient(120deg, #21182b 16%, #272141 94%); }
.course-page .quick-facts { background: #f4ede3; }
.course-page .sample-section { background: #fffbf4; }
.course-page #programa { background: #edf3ee; }
.course-page #oferta { background: radial-gradient(ellipse at 98% 26%, #535186, transparent 68%), #27253e; }
.course-articles { background: #eef4eb; }
.course-articles .actions { margin-top: 1rem; }
.course-divider { color: #32244b; background: #f3e8e2; }
.course-page .offer-card { border-top-color: #ffca76; }
@media(max-width: 850px) {
  .library-toolbar { align-items: start; flex-direction: column; }
  .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width: 680px) {
  .library-hero-grid { grid-template-columns: minmax(0,1fr); }
  .library-cover > img { aspect-ratio: 1.9; }
  .flow-figure ol { grid-template-columns: minmax(0,1fr); }
  .flow-figure li { border-top: 0; border-left: 2px solid var(--theme); }
}
@media(max-width: 460px) {
  .library-grid, .library-filters { grid-template-columns: minmax(0,1fr); }
  .library-card > a { min-height: unset; }
  .figure-table :is(th,td), .join-result :is(th,td) { font-size: .76rem; overflow-wrap: anywhere; }
  .reading-body .join-inputs > div { padding-inline: .53rem; }
  .exam-links { flex-direction: column; align-items: flex-start; }
}
