@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wdth,wght@0,75..100,300..800;1,75..100,300..800&display=swap');


:root {
  --blue-950: #102b58;
  --blue-900: #173a72;
  --blue-800: #24477f;
  --blue-700: #2d5798;
  --blue-600: #1769a8;
  --blue-500: #087fc3;
  --gold-700: #8d7726;
  --gold-600: #a58b2c;
  --gold: #a58b2c;
  --gold-500: #b69b39;
  --gold-300: #d7c36e;
  --ink: #1d2a3d;
  --ink-soft: #526176;
  --muted: #667085;
  --line: #dbe3ec;
  --paper: #ffffff;
  --canvas: #f4f7fa;
  --soft-blue: #eef4fb;
  --soft-gold: #f7f2df;
  --shadow-sm: 0 10px 26px rgba(16, 43, 88, .08);
  --shadow-lg: 0 24px 70px rgba(16, 43, 88, .18);
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --max: 1240px;
  --header-h: 96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Open Sans", "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 9999;
  padding: .75rem 1rem; background: white; border-radius: 2px;
  box-shadow: var(--shadow-sm);
}
.skip-link:focus { top: 1rem; }

.site-header {
  height: var(--header-h);
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(219,227,236,.95);
  backdrop-filter: blur(12px);
}
.header-inner {
  height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header-end { display: flex; align-items: center; gap: 18px; min-width: 0; margin-left: auto; }
.header-alta { width: 112px; max-height: 34px; object-fit: contain; flex: 0 0 auto; }
.public-header .brand-lockup { flex: 0 1 auto; }
.reader-site-header .brand-lockup { align-self: stretch; }
.reader-site-header .brand-lockup .po-logo-full { align-self: center; }
.brand-lockup { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-lockup .po-logo { display: block; height: auto; object-fit: contain; flex: 0 0 auto; }
.brand-lockup .po-logo-compact { width: 132px; max-height: 82px; }
.brand-lockup .po-logo-full { width: 100px; max-height: 88px; }
.brand-divider { width: 1px; height: 38px; background: var(--line); }
.brand-meta { line-height: 1.15; }
.brand-meta strong {
  display: block; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-900);
}
.brand-meta span { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  font-size: 14px; font-weight: 700; color: var(--blue-900);
  padding: 10px 13px; border-radius: 2px;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--soft-blue); }
.nav-cta {
  color: white !important; background: var(--blue-900) !important;
  box-shadow: 0 8px 20px rgba(23,58,114,.18);
}
.mobile-toggle {
  display: none; border: 0; background: var(--soft-blue); color: var(--blue-900);
  width: 44px; height: 44px; border-radius: 2px; cursor: pointer;
}
.mobile-toggle span, .mobile-toggle::before, .mobile-toggle::after {
  content: ""; display: block; width: 20px; height: 2px;
  background: currentColor; margin: 4px auto; border-radius: 2px;
}

.hero {
  position: relative; min-height: calc(100svh - var(--header-h));
  display: grid; align-items: center; overflow: hidden;
  color: white; background: var(--blue-950);
  --reader-cover: url("pre-parto-maternidade.jpg");
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13,39,83,.96) 0%, rgba(13,39,83,.85) 42%, rgba(13,39,83,.24) 76%, rgba(13,39,83,.12) 100%),
    url("hero.jpg") center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: auto -8vw -33vh auto;
  width: 56vw; height: 56vw; border: 1px solid rgba(255,255,255,.12);
  transform: rotate(45deg);
}
.hero-inner {
  position: relative; z-index: 2; max-width: var(--max); width: 100%;
  margin: 0 auto; padding: 84px 24px 96px;
  display: grid; grid-template-columns: minmax(0, 650px) 1fr; gap: 64px;
}
.hero-copy { align-self: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-300); font-size: 13px; font-weight: 800;
  letter-spacing: .17em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 36px; height: 3px; background: var(--gold-500); }
.hero h1 {
  margin: 20px 0 18px; max-width: 620px;
  font-size: clamp(48px, 6.4vw, 88px); line-height: .95;
  letter-spacing: -.045em; text-transform: uppercase;
}
.hero h1 .gold { color: var(--gold-300); }
.hero .lead {
  max-width: 580px; font-size: clamp(18px, 2vw, 22px);
  color: rgba(255,255,255,.86); line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 20px; border-radius: 2px;
  font-weight: 800; font-size: 14px; letter-spacing: .02em;
  border: 1px solid transparent; transition: .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold-500); color: var(--blue-950); }
.btn-secondary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.32); color: white; }
.hero-edition {
  align-self: end; justify-self: end; width: min(360px, 100%);
  padding: 28px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-lg);
  background: rgba(9,33,72,.48); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.hero-edition .edition-number {
  font-size: 72px; line-height: 1; font-weight: 900; letter-spacing: -.05em;
}
.hero-edition .edition-label {
  color: var(--gold-300); font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; margin-top: 8px;
}
.hero-edition .edition-note {
  margin: 18px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16);
  font-size: 14px; color: rgba(255,255,255,.72);
}
.hero-alta { display: none; }

.section { padding: 92px 24px; }
.section.white { background: white; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-heading {
  display: grid; grid-template-columns: 1fr minmax(260px, 500px); gap: 48px;
  align-items: end; margin-bottom: 42px;
}
.section-kicker {
  color: var(--gold-700); font-size: 13px; font-weight: 900;
  letter-spacing: .15em; text-transform: uppercase;
}
.section-heading h2 {
  margin: 8px 0 0; color: var(--blue-950);
  font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -.035em;
}
.section-heading p { margin: 0; color: var(--muted); font-size: 18px; }

.chapter-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px;
}
.chapter-card {
  position: relative; overflow: hidden; min-height: 390px;
  border-radius: var(--radius-md); background: var(--blue-950);
  box-shadow: var(--shadow-sm); isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}
.chapter-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.chapter-card::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--card-image) center/cover no-repeat;
  transform: scale(1.01); transition: transform .5s ease;
}
.chapter-card:hover::before { transform: scale(1.05); }
.chapter-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,39,83,.05) 20%, rgba(13,39,83,.94) 78%);
}
.chapter-card-body {
  height: 100%; min-height: 390px; padding: 25px;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: white;
}
.chapter-number {
  position: absolute; top: 20px; left: 20px;
  min-width: 46px; height: 46px; padding: 0 12px;
  display: inline-grid; place-items: center;
  background: rgba(255,255,255,.9); color: var(--blue-900);
  border-radius: 2px; font-size: 14px; font-weight: 900;
}
.chapter-status {
  position: absolute; top: 20px; right: 20px;
  padding: 7px 10px; border-radius: 2px;
  font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(13,39,83,.72); border: 1px solid rgba(255,255,255,.25);
}
.chapter-card.available .chapter-status { background: var(--gold-500); color: var(--blue-950); border: 0; }
.chapter-card h3 { margin: 0 0 7px; font-size: 29px; line-height: 1.04; letter-spacing: -.02em; }
.chapter-card p { margin: 0; color: rgba(255,255,255,.76); line-height: 1.45; font-size: 15px; }
.chapter-card .chapter-link {
  margin-top: 20px; font-size: 13px; font-weight: 900; color: var(--gold-300);
  letter-spacing: .04em; text-transform: uppercase;
}

.project-strip {
  background: var(--blue-950); color: white;
  padding: 34px 24px;
}
.project-strip-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.project-strip strong { font-size: 22px; }
.project-strip p { margin: 3px 0 0; color: rgba(255,255,255,.68); }
.project-strip img { width: 125px; }

.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 2px;
  display: grid; place-items: center; background: var(--soft-gold);
  color: var(--gold-700); font-weight: 900; font-size: 19px;
}
.feature h3 { color: var(--blue-950); margin: 18px 0 8px; }
.feature p { color: var(--muted); margin: 0; }

.authors-panel {
  background: var(--blue-950); color: white; padding: 42px 46px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.authors-panel-copy { flex: 1 1 460px; min-width: 0; }
.authors-panel h2 { margin: 10px 0; font-size: 34px; line-height: 1.08; }
.authors-panel p { margin: 0; color: rgba(255,255,255,.72); max-width: 580px; }
.authors-panel .btn { flex: 0 0 auto; }

.site-footer { background: #0b234b; color: white; padding: 54px 24px 26px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between; align-items: center; gap: 30px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-po { width: 180px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.12)); }
.footer-alta { width: 145px; }
.footer-links { display: flex; gap: 22px; font-size: 14px; color: rgba(255,255,255,.78); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px;
  padding-top: 22px; font-size: 12px; color: rgba(255,255,255,.52);
}

/* Reader */
.reader-page { background: #eef2f6; }
.read-progress {
  position: fixed; top: 0; left: 0; z-index: 1000; height: 4px; width: 0;
  background: linear-gradient(90deg,var(--gold-500),var(--gold-300));
}
.reader-shell {
  max-width: 1500px; margin: 0 auto; min-height: calc(100vh - var(--header-h));
  display: grid; grid-template-columns: 300px minmax(0,1fr);
  grid-template-areas:
    "hero    hero"
    "toolbar toolbar"
    "sidebar article";
}
.reader-main { display: contents; }
.reader-hero { grid-area: hero; }
.reader-toolbar { grid-area: toolbar; }
.reader-sidebar { grid-area: sidebar; }
.article, [data-search-empty] { grid-area: article; }
.reader-sidebar {
  position: sticky; top: calc(var(--header-h) + 54px); align-self: start;
  max-height: calc(100vh - var(--header-h) - 54px);
  padding: 26px 20px 30px; overflow-y: auto;
  background: #f8fafc; border-right: 1px solid var(--line);
  scrollbar-width: thin; scrollbar-color: rgba(16,43,88,.18) transparent;
}
.reader-sidebar::-webkit-scrollbar { width: 6px; }
.reader-sidebar::-webkit-scrollbar-track { background: transparent; }
.reader-sidebar::-webkit-scrollbar-thumb {
  background: rgba(16,43,88,.18); border-radius: 3px;
}
.reader-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(16,43,88,.35); }
.reader-sidebar .side-label {
  margin: 0 10px 10px; color: var(--muted); font-size: 11px;
  font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
}
.chapter-nav { margin-bottom: 26px; }
.chapter-nav a {
  display: flex; gap: 12px; align-items: flex-start; padding: 11px 10px;
  border-radius: 2px; color: var(--muted); font-size: 13px; line-height: 1.3;
}
.chapter-nav a:hover { background: var(--soft-blue); color: var(--blue-900); }
.chapter-nav a.active { color: var(--blue-900); background: white; box-shadow: var(--shadow-sm); font-weight: 800; }
.chapter-nav .nav-num {
  color: var(--gold-700); font-weight: 900; min-width: 24px;
}
.chapter-dropdown { position: relative; }
.chapter-dropdown > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px;
  background: white; color: var(--blue-900); font-size: 13px; font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.chapter-dropdown > summary::-webkit-details-marker,
.chapter-dropdown > summary::marker { display: none; content: ""; }
.chapter-dropdown > summary:hover { background: var(--soft-blue); }
.chapter-dropdown .chapter-current { display: flex; gap: 10px; align-items: center; min-width: 0; }
.chapter-dropdown .chapter-current > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapter-dropdown .chapter-caret {
  color: var(--gold-700); font-size: 14px; transition: transform .2s ease;
}
.chapter-dropdown[open] .chapter-caret { transform: rotate(180deg); }
.chapter-dropdown .chapter-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: white; border: 1px solid var(--line); border-radius: 4px;
  box-shadow: var(--shadow-lg); padding: 6px; max-height: 60vh; overflow-y: auto;
}
.chapter-dropdown .chapter-list a {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px;
  border-radius: 2px; color: var(--muted); font-size: 13px; line-height: 1.3;
}
.chapter-dropdown .chapter-list a:hover { background: var(--soft-blue); color: var(--blue-900); }
.chapter-dropdown .chapter-list a.active { color: var(--blue-900); background: var(--soft-gold); font-weight: 800; }
.chapter-dropdown .chapter-list .nav-num { color: var(--gold-700); font-weight: 900; min-width: 24px; }
.section-nav a {
  display: block; padding: 8px 10px 8px 22px;
  color: #617086; font-size: 13px; border-left: 2px solid var(--line);
}
.section-nav a:hover, .section-nav a.active {
  color: var(--blue-900); border-left-color: var(--gold-500); background: var(--soft-gold);
}
.side-search { display: block; margin: 0 8px 15px; position: relative; }
.side-search::before { content: "⌕"; position: absolute; left: 11px; top: 5px; color: var(--muted); font-size: 19px; }
.side-search input {
  width: 100%; min-width: 0; border: 1px solid var(--line); background: white;
  border-radius: 2px; padding: 9px 10px 9px 34px; outline: none; font-size: 13px;
}
.side-search input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(8,127,195,.1); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.reader-main { min-width: 0; }
.reader-hero {
  min-height: 480px; position: relative; overflow: hidden; color: white;
  display: flex; align-items: flex-end;
  background: var(--blue-950);
}
.reader-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,39,83,.05) 10%, rgba(13,39,83,.92) 92%),
    var(--reader-cover) center/cover no-repeat;
}
.reader-hero-content {
  position: relative; z-index: 1; padding: 52px clamp(26px,5vw,72px); width: 100%;
}
.reader-hero .chapter-index {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--gold-300); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
}
.reader-hero h1 {
  margin: 12px 0 10px; font-size: clamp(45px,6vw,76px);
  line-height: .96; letter-spacing: -.045em; text-transform: uppercase;
}
.reader-hero p { margin: 0; max-width: 700px; color: rgba(255,255,255,.78); font-size: 19px; }

.reader-toolbar {
  position: sticky; top: var(--header-h); z-index: 40;
  padding: 13px clamp(20px,4vw,58px); background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: flex-start; gap: 20px;
}
.reader-toolbar .current { font-size: 13px; font-weight: 800; color: var(--blue-900); }
.reader-search {
  width: min(360px,50vw); position: relative;
}
.reader-search input {
  width: 100%; border: 1px solid var(--line); background: #f8fafc;
  border-radius: 2px; padding: 10px 14px 10px 38px; outline: none;
}
.reader-search input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(8,127,195,.12); }
.reader-search::before { content: "⌕"; position: absolute; left: 13px; top: 7px; color: var(--muted); font-size: 20px; }

.article {
  width: calc(100% - 48px); max-width: none;
  margin: 0; padding: 24px 32px 96px 40px;
}
.article-intro {
  margin-bottom: 48px; padding: 27px 30px; border-left: 5px solid var(--gold-500);
  background: white; border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm); color: var(--muted);
}
.content-section {
  scroll-margin-top: calc(var(--header-h) + 90px);
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius-md); margin-bottom: 24px; overflow: hidden;
  box-shadow: 0 8px 22px rgba(16,43,88,.05);
}
.content-section-header {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 23px 28px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg,var(--soft-blue),white);
}
.content-section h2 {
  margin: 0; color: var(--blue-950); font-size: 25px; line-height: 1.12; letter-spacing: -.018em;
}
.source-tag {
  display: none;
  color: var(--muted); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; white-space: nowrap; opacity: .65;
}
.content-section-body {
  padding: 28px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.gold-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.gold-list li {
  position: relative; padding-left: 28px; color: #29384d;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
}
.gold-list li::before {
  content: ""; position: absolute; left: 0; top: .7em;
  width: 9px; height: 9px; transform: rotate(45deg);
  background: var(--gold-500);
}
.gold-list .subheading {
  padding: 13px 16px; background: var(--soft-gold); border-radius: 2px;
  color: var(--blue-950); font-weight: 900; font-size: 18px;
  text-align: left; hyphens: none;
}
.gold-list .subheading::before { display: none; }
.content-section.search-hidden { display: none; }
.search-empty {
  display: none; text-align: center; padding: 50px 24px; background: white;
  border-radius: var(--radius-md); color: var(--muted);
}
.reader-next {
  margin-top: 38px; padding: 28px; background: var(--blue-950); color: white;
  border-radius: var(--radius-md); display: flex; justify-content: space-between; align-items: center; gap: 22px;
}
.reader-next span { color: var(--gold-300); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.reader-next strong { display: block; font-size: 25px; margin-top: 4px; }
.reader-next .lock { color: rgba(255,255,255,.58); font-size: 13px; }

/* Authors */
.page-hero {
  padding: 86px 24px 70px; background: var(--blue-950); color: white;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -180px;
  width: 480px; height: 480px; border: 80px solid rgba(255,255,255,.035); transform: rotate(45deg);
}
.page-hero-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; }
.page-hero h1 { margin: 10px 0; font-size: clamp(46px,7vw,76px); line-height: 1; letter-spacing: -.04em; }
.page-hero p { max-width: 720px; color: rgba(255,255,255,.72); font-size: 19px; }
.author-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.author-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.author-card-top { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.author-avatar {
  width: 62px; height: 62px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg,var(--blue-900),var(--blue-500));
  color: white; display: grid; place-items: center; font-weight: 900; font-size: 20px;
}
.author-card h2 { margin: 0; color: var(--blue-950); font-size: 22px; line-height: 1.15; }
.author-card p { color: #4b5c73; font-size: 15px; line-height: 1.65; }
.author-card a { color: var(--blue-700); font-weight: 800; font-size: 14px; word-break: break-word; }

/* Small screens */
@media (max-width: 1050px) {
  .chapter-grid { grid-template-columns: repeat(2,1fr); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-edition { justify-self: start; }
  .reader-shell { grid-template-columns: 250px minmax(0,1fr); }
}
@media (max-width: 820px) {
  :root { --header-h: auto; }
  .site-header { height: auto; }
  .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 20px; }
  .header-inner > .header-end { margin-bottom: 4px; }
  .brand-lockup .po-logo-compact { width: 104px; max-height: 68px; }
  .brand-lockup .po-logo-full { width: 76px; max-height: 72px; }
  .header-end { gap: 10px; }
  .header-alta { width: 88px; max-height: 34px; }
  .brand-meta, .brand-divider { display: none; }
  .mobile-toggle { display: block; }
  /* Row 1: brand → alta → toggle | Row 2: header-end (dropdown+search) */
  .header-inner > .brand-lockup { order: 1; }
  .header-inner > .header-alta { order: 2; margin-left: 10px; }
  .header-inner > .mobile-toggle { order: 3; margin-left: auto; }
  .header-inner > .main-nav { order: 4; flex: 1 1 100%; margin-top: 8px; }
  .header-inner > .header-end { order: 5; flex: 1 1 100%; margin-top: 8px; margin-left: 0; }
  .header-end .header-search { flex: 1 1 auto; max-width: none; margin-top: 0; }
  .main-nav {
    display: none; position: absolute; left: 14px; right: 14px; top: 100%; z-index: 90;
    background: white; border: 1px solid var(--line); border-radius: 2px; padding: 10px;
    flex-direction: column; align-items: stretch; box-shadow: var(--shadow-lg); gap: 4px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 14px; }
  .hero { min-height: auto; margin-top: 14px; }
  .page-hero { margin-top: 14px; }
  .hero-inner { padding: 80px 22px 74px; }
  .hero h1 { font-size: clamp(45px,13vw,70px); }
  .hero-edition { display: none; }
  .section { padding: 70px 20px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .chapter-grid, .feature-grid, .author-cards { grid-template-columns: 1fr; }
  .authors-panel {
    padding: 32px; flex-direction: column; flex-wrap: nowrap;
    align-items: flex-start; justify-content: flex-start; gap: 22px;
  }
  .authors-panel-copy { flex-basis: auto; }
  .authors-panel .btn { width: 100%; }
  .project-strip-inner, .footer-top, .footer-bottom { align-items: center; text-align: center; flex-direction: column; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .footer-bottom .fmeta { text-align: center; }
  .reader-shell { display: block; }
  .reader-sidebar {
    position: fixed; top: var(--header-h); left: -310px; z-index: 90;
    width: 300px; transition: left .25s ease; box-shadow: var(--shadow-lg);
  }
  .reader-sidebar.open { left: 0; }
  .reader-toolbar { top: var(--header-h); }
  .reader-toolbar .current { display: none; }
  .reader-toolbar::before {
    content: "☰  Todos os capítulos"; cursor: pointer; color: var(--blue-900); font-weight: 900;
    padding: 8px 12px; background: var(--soft-blue); border-radius: 2px;
    font-size: 13px; letter-spacing: .01em; white-space: nowrap;
  }
  .reader-hero { min-height: 420px; margin-top: 14px; }
  .reader-hero-content { padding: 42px 24px; }
  .article { width: min(100% - 28px, 860px); padding-top: 40px; }
  .content-section-header, .content-section-body { padding: 22px; }
  .source-tag { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .header-inner { padding: 0 12px; gap: 10px; }
  .header-alta { width: 70px; }
  .public-header .brand-lockup .po-logo-compact { width: 90px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .chapter-card, .chapter-card-body { min-height: 350px; }
  .reader-hero h1 { font-size: 42px; }
  .reader-next { align-items: flex-start; flex-direction: column; }
}
@media print {
  .site-header, .reader-sidebar, .reader-toolbar, .read-progress, .site-footer { display: none !important; }
  body, .reader-page { background: white; }
  .reader-shell { display: block; }
  .reader-hero { min-height: 270px; break-after: page; }
  .article { width: 100%; padding: 0; }
  .content-section { box-shadow: none; break-inside: avoid; }
  .source-tag { display: none; }
}

/* Logo Padrão Ouro já é branca com fundo transparente. */

.reader-next-link { text-decoration: none; color: white; transition: transform .2s ease, box-shadow .2s ease; }
.reader-next-link:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(6,24,55,.18); }
.reader-arrow { font-size: 34px; color: var(--gold-300); font-weight: 800; }


/* Complete-edition content components */
.content-section-body {
  display: grid;
  gap: 24px;
}

.gold-paragraph {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr);
  gap: 17px;
  align-items: start;
}

.gold-paragraph > span {
  width: 9px;
  height: 9px;
  margin-top: .72em;
  transform: rotate(45deg);
  background: var(--gold-500);
}

.gold-paragraph p {
  margin: 0;
  color: #29384d;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
  text-wrap: pretty;
}

.content-subheading {
  margin: 14px 0 2px;
  padding: 15px 18px;
  border-left: 4px solid var(--gold-500);
  border-radius: 2px;
  background: var(--soft-gold);
  color: var(--blue-950);
  font-size: 18px;
  line-height: 1.3;
}

.content-block {
  display: grid;
  gap: 14px;
}

.block-title {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.25;
  font-weight: 850;
  color: var(--blue-900);
  text-transform: uppercase;
  letter-spacing: .025em;
  text-wrap: balance;
}

.item-notes {
  display: grid;
  gap: 7px;
  padding: 0 3px;
}

.item-notes p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.45;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
}

.table-scroll {
  position: relative;
  overflow-x: auto;
  border: 1px solid rgba(11, 42, 93, .10);
  border-radius: 2px;
  background: white;
  box-shadow: 0 16px 38px rgba(11, 42, 93, .08);
  scrollbar-color: var(--gold-500) #e9eef5;
  scrollbar-width: thin;
}

.table-scroll:focus-visible {
  outline: 3px solid rgba(8, 127, 195, .22);
  outline-offset: 3px;
}

.technical-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  font-size: 14px;
  line-height: 1.35;
}

.content-table-block.is-compact .technical-table {
  min-width: 560px;
}

.technical-table thead th {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-500));
  color: white;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
  text-wrap: balance;
}

.technical-table th,
.technical-table td {
  padding: 13px 14px;
  border-right: 1px solid rgba(11, 42, 93, .08);
  border-bottom: 1px solid rgba(11, 42, 93, .09);
  text-align: center;
  vertical-align: middle;
  hyphens: none;
}

.technical-table th:last-child,
.technical-table td:last-child {
  border-right: 0;
}

.technical-table tbody tr:last-child td {
  border-bottom: 0;
}

.technical-table tbody tr:nth-child(even) td {
  background: rgba(8, 92, 177, .035);
}

.technical-table tbody td:first-child {
  font-weight: 750;
  color: var(--blue-900);
}

.technical-table.highlight-last-row tbody tr:last-child td {
  background: rgba(182, 155, 57, .14);
  color: var(--blue-950);
  font-weight: 850;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.info-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(8, 92, 177, .16);
  border-radius: 2px;
  background:
    linear-gradient(145deg, rgba(8, 92, 177, .08), rgba(255, 255, 255, .94) 64%),
    white;
  box-shadow: 0 14px 30px rgba(11, 42, 93, .08);
}

.info-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -54px;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(182, 155, 57, .26);
  transform: rotate(45deg);
}

.card-eyebrow {
  margin: 0;
  color: var(--gold-700);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.card-title {
  margin: 0;
  color: var(--blue-950);
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1;
  font-weight: 900;
}

.card-meta {
  margin: 0;
  color: var(--blue-700);
  font-weight: 800;
}

.card-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
}

.content-figure {
  display: grid;
  gap: 10px;
  margin: 2px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #f8fafc;
}

.content-figure.wide,
.content-figure.split {
  max-width: none;
}

.figure-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  background: white;
  cursor: zoom-in;
}

.content-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.content-figure.split img {
  max-height: 520px;
  object-fit: cover;
}

.content-figure figcaption {
  padding: 1px 5px 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: justify;
  text-align-last: center;
  text-justify: inter-word;
  hyphens: auto;
}

/* Imagem usada como caixa de título, sem duplicar a foto no corpo do texto. */
.content-subheading.image-title {
  position: relative;
  min-height: 190px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 16px;
  padding: 26px 28px;
  border: 0;
  border-radius: 2px;
  background: var(--blue-950);
  color: white;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}

.content-subheading.image-title::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--title-image);
  background-position: center 52%;
  background-size: cover;
  transform: scale(1.01);
}

.content-subheading.image-title::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 31, 70, .96) 0%, rgba(7, 31, 70, .76) 42%, rgba(7, 31, 70, .18) 82%);
}

.content-subheading.image-title span {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .34);
}

.chapter-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.chapter-pager {
  min-height: 108px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--blue-950);
  color: white;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.chapter-pager:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(6, 24, 55, .18);
}

.chapter-pager span {
  color: var(--gold-300);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.chapter-pager strong {
  margin-top: 7px;
  font-size: 19px;
  line-height: 1.2;
}

.chapter-pager.next { text-align: right; }

.figure-dialog {
  width: min(96vw, 1500px);
  max-height: 94vh;
  padding: 42px 12px 12px;
  border: 0;
  border-radius: 2px;
  background: white;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.figure-dialog::backdrop { background: rgba(5, 20, 45, .78); }
.figure-dialog img { display: block; width: 100%; height: auto; max-height: calc(94vh - 58px); object-fit: contain; }
.dialog-close { position: absolute; right: 12px; top: 7px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--blue-950); color: white; font-size: 25px; line-height: 1; cursor: pointer; }

@media (max-width: 980px) {
  .article { width: min(100%, calc(100% - 28px)); }
  .card-grid.columns-3,
  .card-grid.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .reader-page { background: #ffffff; }
  .article { width: 100%; padding: 22px 0 60px; }
  .article-intro { margin: 0 0 28px; border-radius: 0; border-left-width: 4px; box-shadow: none; padding: 18px 16px 18px 18px; }
  .content-section { background: transparent; border: none; border-radius: 0; box-shadow: none; margin-bottom: 6px; overflow: visible; }
  .content-section-header { background: transparent; border-bottom: none; padding: 18px 16px 4px; }
  .content-section-body { padding: 8px 16px 22px; }
  .reader-next { margin-left: 12px; margin-right: 12px; padding: 22px 18px; }
  .chapter-dropdown > summary { display: none; }
  .chapter-dropdown .chapter-list { display: block; position: static; padding: 0; border: none; box-shadow: none; max-height: none; overflow: visible; border-radius: 0; background: transparent; }
  .chapter-dropdown .chapter-list a { padding: 12px 10px; }
  .chapter-nav { margin-bottom: 20px; }
  .site-header { position: relative; top: auto; }
}

@media (max-width: 720px) {
  .content-section-body { gap: 20px; }
  .gold-paragraph { grid-template-columns: 9px minmax(0, 1fr); gap: 13px; }
  .technical-table { min-width: 580px; font-size: 12px; }
  .technical-table th,
  .technical-table td { padding: 10px 11px; }
  .technical-table th:first-child,
  .technical-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: white;
    box-shadow: 5px 0 9px rgba(11, 42, 93, .06);
  }
  .technical-table thead th:first-child {
    z-index: 2;
    color: white;
    background: var(--blue-900);
  }
  .technical-table tbody tr:nth-child(even) td:first-child { background: #f7f9fc; }
  .card-grid.columns-2,
  .card-grid.columns-3,
  .card-grid.columns-4 { grid-template-columns: 1fr; }
  .content-subheading.image-title { min-height: 160px; padding: 22px; }
  .chapter-pagination { grid-template-columns: 1fr; }
  .chapter-pager.next { text-align: left; }
  .content-figure { padding: 6px; }
}

/* ===== Revisão Mestre V7 ===== */
/* Títulos técnicos não herdam a justificação do corpo do texto. */
.content-table-block .block-title,
.content-card-block .block-title {
  text-align: center;
  text-align-last: center;
}

/* Conteúdo dos balões/cards centralizado. */
.info-card {
  justify-items: center;
  text-align: center;
}
.info-card .card-eyebrow,
.info-card .card-title,
.info-card .card-meta,
.info-card .card-text {
  width: 100%;
  text-align: center;
  text-align-last: center;
}

/* ===== V8 · refinamento institucional, e-book e instalação ===== */
:root {
  --corporate-navy: #0d2c5c;
  --corporate-blue: #155fa7;
  --corporate-gold: #b59a3b;
}

:focus-visible {
  outline: 3px solid rgba(8,127,195,.4);
  outline-offset: 3px;
}

.nav-ebook {
  border: 1px solid rgba(23,58,114,.18);
  background: white;
}
.nav-ebook:hover { border-color: rgba(23,58,114,.35); }
.nav-install { color: var(--gold-700) !important; }
.nav-install[hidden] { display: none !important; }

.btn-ebook {
  background: white;
  color: var(--blue-950);
  border-color: rgba(255,255,255,.32);
}
.btn-outline {
  background: transparent;
  color: var(--blue-950);
  border-color: rgba(16,43,88,.24);
}

.ebook-section {
  color: white;
  background:
    radial-gradient(circle at 12% 15%, rgba(215,195,110,.18), transparent 30%),
    linear-gradient(135deg, #0c2957, #163f78 58%, #0b2a59);
  overflow: hidden;
}
.ebook-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 430px) 1fr;
  gap: clamp(42px,7vw,90px);
  align-items: center;
}
.ebook-visual { display: grid; place-items: center; perspective: 1200px; }
.ebook-cover-mockup {
  width: min(330px,82vw);
  aspect-ratio: 1 / 1.36;
  padding: 46px 34px 38px;
  border-radius: 8px 18px 18px 8px;
  color: var(--blue-950);
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(240,244,249,.98)),
    white;
  box-shadow: 18px 24px 55px rgba(0,0,0,.30), inset -8px 0 18px rgba(16,43,88,.08);
  transform: rotateY(9deg) rotateX(2deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
}
.ebook-cover-mockup::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 12px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg,var(--gold-500),var(--blue-900));
}
.ebook-cover-mockup img { width: 88%; margin: 0 auto 34px; }
.ebook-cover-mockup span {
  color: var(--gold-700); font-size: .82rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .14em;
}
.ebook-cover-mockup strong { margin-top: 12px; font-size: 1.12rem; line-height: 1.3; }
.ebook-copy h2 {
  margin: 12px 0 22px;
  max-width: 760px;
  font-size: clamp(36px,5vw,64px);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.ebook-copy > p { max-width: 750px; color: rgba(255,255,255,.78); font-size: 19px; }
.ebook-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ebook-section .btn-outline { color: white; border-color: rgba(255,255,255,.35); }

/* Autores: fotografia como elemento editorial, sem perder legibilidade das biografias */
.author-cards { grid-template-columns: 1fr; gap: 24px; }
.author-card {
  display: grid;
  grid-template-columns: 210px minmax(0,1fr);
  gap: 30px;
  padding: 0;
  overflow: hidden;
  min-height: 280px;
  border-color: rgba(16,43,88,.12);
}
.author-media {
  min-height: 280px;
  background: linear-gradient(145deg,var(--blue-900),var(--blue-600));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.author-photo {
  width: 100%; height: 100%; min-height: 280px;
  object-fit: cover;
  object-position: 50% 25%;
}
.author-avatar {
  width: 92px; height: 92px;
  font-size: 28px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}
.author-content { padding: 30px 32px 28px 0; align-self: center; }
.author-content h2 { margin: 0 0 14px; font-size: 27px; }
.author-content p { margin: 0 0 16px; font-size: 15.5px; }

.install-dialog {
  width: min(420px,calc(100% - 32px));
  border: 0;
  border-radius: 2px;
  padding: 34px;
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(16,43,88,.35);
  text-align: center;
}
.install-dialog::backdrop { background: rgba(7,25,55,.64); backdrop-filter: blur(5px); }
.install-dialog img { width: 86px; height: 86px; margin: 0 auto 16px; border-radius: 2px; }
.install-dialog h2 { margin: 0; color: var(--blue-950); }
.install-dialog p { color: var(--ink-soft); }
.install-dialog .dialog-close {
  position: absolute; right: 14px; top: 12px;
  width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--soft-blue); color: var(--blue-950); font-size: 24px;
}

/* Pequenos ajustes de acabamento institucional */
.site-header { box-shadow: 0 1px 0 rgba(16,43,88,.04); }
.chapter-card, .feature, .author-card, .content-section { border-color: rgba(16,43,88,.10); }
.footer-bottom { letter-spacing: .01em; }

@media (max-width: 900px) {
  .ebook-showcase { grid-template-columns: 1fr; text-align: center; }
  .ebook-copy > p { margin-left: auto; margin-right: auto; }
  .ebook-actions { justify-content: center; }
  .author-card { grid-template-columns: 170px minmax(0,1fr); }
}
@media (max-width: 650px) {
  .author-card { grid-template-columns: 1fr; }
  .author-media, .author-photo { min-height: 360px; max-height: 420px; }
  .author-content { padding: 24px; }
  .ebook-cover-mockup { transform: none; }
  .ebook-copy h2 { font-size: 38px; }
}

/* ===== V10 · idiomas, leitura assistida e acabamento institucional ===== */
:root { --reader-font-scale: 1; }

.language-switcher {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.language-switcher .lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: white url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%23102b58' d='M6 8L0 0h12z'/></svg>") no-repeat right 10px center;
  background-size: 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 8px 30px 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-900);
  cursor: pointer;
}
.language-switcher .lang-select:hover { border-color: var(--blue-700); }
.language-switcher .lang-select:focus { outline: 2px solid var(--blue-500); outline-offset: 2px; }

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f5f8fc;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 4px 10px;
  min-width: 180px;
  max-width: 260px;
}
.header-search-results {
  position: absolute; top: calc(100% + 6px); right: 0;
  width: min(420px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto;
  background: white; border: 1px solid var(--line); border-radius: 4px;
  box-shadow: var(--shadow-lg); z-index: 120; padding: 6px;
  scrollbar-width: thin; scrollbar-color: rgba(16,43,88,.18) transparent;
}
.header-search-results::-webkit-scrollbar { width: 6px; }
.header-search-results::-webkit-scrollbar-thumb { background: rgba(16,43,88,.18); border-radius: 3px; }
.header-search-chapter { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.header-search-chapter:last-child { border-bottom: 0; }
.header-search-chapter-head {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px;
  border-radius: 3px; color: var(--blue-900); font-weight: 800; font-size: 14px;
}
.header-search-chapter-head:hover { background: var(--soft-blue); }
.header-search-chapter-head .header-search-num { color: var(--gold-700); font-weight: 900; min-width: 24px; }
.header-search-section {
  display: block; padding: 8px 12px 8px 34px; border-radius: 3px;
  color: var(--muted); font-size: 12.5px; line-height: 1.4;
}
.header-search-section:hover { background: var(--soft-gold); color: var(--ink); }
.header-search-sec-title {
  display: block; color: var(--blue-900); font-weight: 700;
  font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px;
}
.header-search-sec-snip mark { background: var(--gold-500); color: var(--blue-950); padding: 0 2px; border-radius: 2px; }
.header-search-more { display: block; padding: 4px 12px 4px 34px; color: var(--muted); font-size: 11.5px; font-style: italic; }
.header-search-empty { padding: 14px 12px; color: var(--muted); font-size: 13px; }
.header-search-icon { width: 16px; height: 16px; color: var(--blue-900); flex-shrink: 0; }
.header-search-input {
  border: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
  font-size: 14px;
  width: 100%;
  min-width: 0;
  padding: 4px 0;
}
.header-search-input::placeholder { color: var(--muted); }

/* Ordem visual no header-end (só interno): dropdown (1) → search (2) */
.header-end .language-switcher { order: 1; }
.header-end .header-search { order: 2; }
/* Ordem visual no header-inner: brand → main-nav → header-end (dropdown+search) → alta → toggle(hidden desktop) */
.header-inner > .brand-lockup { order: 1; }
.header-inner > .main-nav { order: 2; }
.header-inner > .header-end { order: 3; }
.header-inner > .header-alta { order: 4; }
.header-inner > .mobile-toggle { order: 5; }
@media (max-width: 820px) {
  .header-inner > .brand-lockup { order: 1; }
  .header-inner > .header-alta { order: 2; margin: 0 auto; width: 130px; max-height: 40px; }
  .header-inner > .mobile-toggle { order: 3; }
  .header-inner > .main-nav { order: 4; }
  .header-inner > .header-end { order: 5; }
}

.translation-status {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 300;
  max-width: min(390px,calc(100% - 36px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 2px;
  color: white;
  background: rgba(13,44,92,.96);
  box-shadow: 0 18px 50px rgba(7,25,55,.28);
  font-size: 13px;
  line-height: 1.35;
}
.translation-status[hidden] { display: none; }
.translation-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: var(--gold-300);
  border-radius: 50%;
  animation: po-spin .8s linear infinite;
  flex: 0 0 auto;
}
@keyframes po-spin { to { transform: rotate(360deg); } }

.reader-toolbar { justify-content: space-between; }
.reader-tools {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.reader-tools button,
.reader-tools [data-font-value] {
  min-height: 34px;
  border: 1px solid rgba(16,43,88,.14);
  border-radius: 2px;
  background: white;
  color: var(--blue-900);
  font-size: 12px;
  font-weight: 850;
}
.reader-tools button {
  padding: 6px 10px;
  cursor: pointer;
}
.reader-tools button:hover { background: var(--soft-blue); }
.reader-tools [data-font-value] {
  min-width: 47px;
  display: grid;
  place-items: center;
  padding: 5px 8px;
  color: var(--muted);
}
.content-section-body,
.gold-paragraph p,
.item-notes,
.technical-table,
.info-card { font-size: calc(1em * var(--reader-font-scale)); }

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: var(--blue-950);
  color: white;
  box-shadow: 0 14px 34px rgba(16,43,88,.28);
  font-size: 23px;
  cursor: pointer;
}
.back-to-top[hidden] { display: none; }
.back-to-top:hover { background: var(--blue-700); }

/* Fotografias dos autores com proporção e foco mais uniformes. */
.author-media { aspect-ratio: 4 / 5; min-height: 0; }
.author-photo {
  min-height: 0;
  aspect-ratio: 4 / 5;
  object-position: center 22%;
  filter: saturate(.96) contrast(1.02);
}
.author-content { padding-top: 28px; padding-bottom: 28px; }

/* Refinamentos para leitura técnica. */
.content-section-header h2,
.block-title { text-wrap: balance; }
.content-section-body { hanging-punctuation: first last; }
.technical-table th { text-wrap: balance; }
.technical-table td { text-wrap: pretty; }
.content-figure img { image-rendering: auto; }

@media (max-width: 1180px) {
  .header-end { gap: 10px; }
  .main-nav { gap: 4px; }
  .main-nav a { padding-left: 9px; padding-right: 9px; }
  .header-alta { width: 94px; }
}
@media (max-width: 900px) {
  .language-switcher { order: 1; }
  .mobile-toggle { order: 2; }
  .reader-tools [data-share-chapter] { display: none; }
}
@media (max-width: 650px) {
  .language-switcher { margin-left: auto; }
  .language-switcher a,
.language-switcher button { min-width: 31px; padding: 6px 5px; }
  .reader-toolbar { gap: 8px; padding-right: 12px; }
  .reader-tools { gap: 3px; }
  .reader-tools button { padding: 5px 8px; }
  .reader-tools [data-font-value] { display: none; }
  .translation-status { right: 12px; bottom: 12px; max-width: calc(100% - 24px); }
  .back-to-top { right: 14px; bottom: 14px; }
}
.feature-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
@media (max-width: 1120px) { .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; } }

/* ===== V11 · mensagem de boas-vindas ===== */
.welcome-section { background: var(--soft-blue); padding-top: 28px; padding-bottom: 18px; }
#capitulos { padding-top: 24px; padding-bottom: 24px; }
#capitulos + .section { padding-top: 20px; }
.chapter-status { display: none; }
.welcome-card {
  background: white;
  padding: 30px 44px 40px;
}
.welcome-quote {
  margin: 14px 0 0;
  padding-left: 0;
  display: grid;
  gap: 16px;
}
.welcome-quote p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
}
.welcome-signoff {
  margin-top: 30px;
  padding: 20px 22px;
  background: var(--soft-blue);
  display: flex;
  gap: 16px;
  align-items: center;
}
.signoff-photo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  flex-shrink: 0;
}
.signoff-text strong {
  display: block;
  color: var(--blue-950);
  font-size: 17px;
  margin-bottom: 3px;
}
.signoff-text span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 820px) {
  .welcome-card { padding: 28px; }
  .welcome-signoff { flex-direction: column; text-align: center; align-items: center; }
}
