/* FSM · E-book Interativo · Identidade da Formação em Saúde da Mulher */
:root{color-scheme:light;--wine:#53052C;--wine-2:#6b1641;--wine-dark:#33001a;--gold:#B29262;--gold-light:#d8bd95;--pink:#D80077;--cream:#F4F3E4;--blush:#F9E2D8;--body:#36232c;--muted:#816f78;--bg:#faf9f4;--paper:#fffefb;--surface:#fff;--line:#e9e1dd;--soft:#f5eff1;--success:#146641;--success-bg:#e5f6e9;--error:#aa2446;--error-bg:#fff0f1;--shadow:0 14px 35px rgba(64,14,36,.06);--reader-font-size:19px}
html[data-theme=dark]{color-scheme:dark;--body:#f4e9ed;--muted:#b9a9b0;--bg:#1d141b;--paper:#271b24;--surface:#31212b;--line:#4a3641;--soft:#3c2935;--cream:#292029;--blush:#452d39;--gold:#d4b485;--success:#9be1be;--success-bg:#1e3e2f;--error:#ff9db5;--error-bg:#522936;--shadow:0 18px 44px rgba(0,0,0,.16)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--body);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}a{text-decoration:none;color:inherit}button{cursor:pointer}img{max-width:100%}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--pink);outline-offset:3px}.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.container{width:min(1200px,calc(100% - 64px));margin:0 auto}[hidden]{display:none!important}
/* Main navigation */
.site-header{height:91px;background:var(--paper);border-bottom:1px solid var(--line);position:relative;z-index:2}.header-inner,.header-links{display:flex;align-items:center;justify-content:space-between;height:100%}.brand img{display:block;width:195px;height:auto}.header-links{gap:34px;color:var(--body);font-size:13px;font-weight:600;letter-spacing:.01em}.header-links a:hover{color:var(--wine)}.icon-button{border:1px solid var(--line);background:var(--paper);color:var(--body);height:40px;width:40px;display:grid;place-items:center;border-radius:50%;font-size:22px}.icon-button:hover{background:var(--soft)}
/* Hero */
.hero{background:linear-gradient(114deg,#43001e 0%,#57042b 56%,#6e1941 100%);color:#fffaf6;overflow:hidden}.hero-grid{display:grid;grid-template-columns:minmax(0,1.07fr) minmax(0,.93fr);align-items:center;min-height:508px;gap:20px}.hero-copy{position:relative;z-index:1;padding:78px 0 74px}.eyebrow{color:var(--wine);font-size:10px;letter-spacing:.21em;font-weight:850;margin:0 0 18px}.eyebrow.light{display:flex;align-items:center;color:#e2c59f}.eyebrow-dot{width:6px;height:6px;background:var(--gold-light);border-radius:50%;display:inline-block;margin-right:11px}.hero h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(42px,4vw,65px);line-height:1.12;font-weight:500;letter-spacing:-.047em;max-width:640px;margin:0 0 24px}.hero h1 em{color:#e6c59f;font-style:italic;font-weight:400}.hero-copy>p{color:#efdbdf;font-size:16px;line-height:1.75;max-width:505px;margin:0 0 32px}.button{display:inline-flex;justify-content:center;align-items:center;gap:14px;border:1px solid transparent;padding:14px 23px;border-radius:9px;font-size:13px;font-weight:750;transition:transform .2s,background .2s,color .2s;min-height:45px;white-space:nowrap}.button:hover{transform:translateY(-1px)}.button-gold{background:#caaa7d;color:#3b0a22}.button-gold:hover{background:#e0be8f}.button-wine{background:var(--wine);color:#fff!important}.button-outline{border-color:var(--line);color:var(--body);background:var(--paper)}.button-outline:hover{background:var(--soft)}.hero-meta{display:flex;gap:43px;margin-top:51px;color:#e6d3db;font-size:12px;line-height:1.75}.hero-meta strong{color:#fff7f6;font-size:12px}.hero-art{position:relative;min-height:460px;display:flex;justify-content:center;align-items:center}.hero-orbit{position:absolute;border:1px solid rgba(227,185,150,.22);border-radius:50%}.orbit-one{width:405px;height:405px}.orbit-two{width:310px;height:310px}.hero-flower{width:min(72%,325px);filter:brightness(0) saturate(100%) invert(76%) sepia(21%) saturate(518%) hue-rotate(340deg) brightness(97%);opacity:.74;animation:float 7s ease-in-out infinite}.hero-art:before,.hero-art:after{content:"";position:absolute;width:8px;height:8px;border-radius:100%;background:#d3b38a;opacity:.7}.hero-art:before{left:17%;top:22%}.hero-art:after{right:10%;bottom:18%}.hero-float{position:absolute;z-index:1;font-size:12px;letter-spacing:.01em;font-weight:650;padding:15px 19px;background:rgba(255,255,255,.095);border:1px solid rgba(231,189,164,.26);border-radius:10px;backdrop-filter:blur(8px);box-shadow:0 12px 34px rgba(12,0,11,.11)}.hero-float span{color:#eed1a8;margin-right:8px}.float-one{top:20%;left:-2%}.float-two{right:-7%;bottom:27%}.hero-art-caption{position:absolute;bottom:17px;right:15%;letter-spacing:.25em;color:#b990a3;font-size:9px}@keyframes float{50%{transform:translateY(-9px)}}
/* Library */
.library-section{padding-top:76px;padding-bottom:92px;scroll-margin-top:24px}.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:26px}.section-head h2,.about-inner h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(32px,3vw,46px);font-weight:500;letter-spacing:-.035em;margin:0 0 14px;line-height:1.16}.section-description{font-size:14px;color:var(--muted);line-height:1.7;margin:0}.library-count{color:var(--muted);font-size:12px;white-space:nowrap}.library-tools{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:37px 0 31px}.search-field{display:flex;align-items:center;gap:10px;padding:0 18px;background:var(--paper);border:1px solid var(--line);border-radius:10px;height:49px;min-width:315px;width:min(410px,100%);color:var(--muted)}.search-field>span:first-child{font-size:26px;line-height:1}.search-field input{background:transparent;border:0;outline:0;width:100%;height:100%;min-width:0;color:var(--body);font-size:12px}.search-field input:focus{outline:0}.search-field:focus-within{border-color:var(--gold)}.search-field input::placeholder{color:var(--muted)}.filter-pills{display:flex;gap:8px;flex-wrap:wrap}.filter-pill{padding:10px 15px;border-radius:22px;border:1px solid var(--line);background:var(--paper);color:var(--muted);font-size:12px;font-weight:650}.filter-pill[aria-pressed=true]{background:var(--wine);border-color:var(--wine);color:white}.book-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px;align-items:stretch}.book-card{background:var(--paper);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}.book-card:hover{transform:translateY(-4px);box-shadow:0 19px 44px rgba(84,14,46,.13)}.cover-wrap{height:292px;position:relative;display:flex;justify-content:center;align-items:center;padding:25px;background:linear-gradient(140deg,#f6eee9,#efe8db);overflow:hidden}.cover-wrap:before{content:"";width:350px;height:350px;border-radius:50%;border:1px solid rgba(83,5,44,.08);position:absolute;top:-90px;right:-120px}.cover-wrap img{width:190px;height:267px;object-fit:cover;box-shadow:14px 17px 25px rgba(47,5,25,.17);border-radius:4px;position:relative;transition:transform .25s}.book-card:hover .cover-wrap img{transform:translateY(-4px) rotate(-1deg)}.book-label{position:absolute;left:16px;top:16px;background:var(--paper);border:1px solid var(--line);padding:7px 10px;color:var(--wine);border-radius:6px;font-size:10px;font-weight:800;letter-spacing:.055em}.book-body{padding:23px 24px 25px;display:flex;flex:1;flex-direction:column}.book-category{font-size:10px;letter-spacing:.13em;text-transform:uppercase;font-weight:800;color:var(--gold);margin:0 0 11px}.book-body h3{font-family:Georgia,serif;font-size:24px;font-weight:500;line-height:1.21;margin:0 0 9px;letter-spacing:-.022em}.book-body .book-description{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 18px;flex:1}.book-meta{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:17px 0;gap:8px;color:var(--muted);font-size:11px}.book-cta{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--soft);padding:13px 16px;border-radius:7px;font-size:12px;color:var(--wine);font-weight:750}.book-cta span:last-child{font-size:19px}.empty-state{text-align:center;padding:65px;color:var(--muted);background:var(--paper);border:1px solid var(--line);border-radius:14px}.empty-state h3{color:var(--body);font-family:Georgia,serif;font-size:26px;font-weight:500}.empty-flower{font-size:42px;color:var(--gold)}.loading-msg{color:var(--muted)}
/* About and footer */
.about-section{background:var(--cream);padding:65px 0;border-top:1px solid var(--line)}.about-inner{display:grid;grid-template-columns:100px minmax(0,1.2fr) minmax(190px,.7fr);gap:42px;align-items:center}.about-icon{width:98px;height:98px;display:grid;place-items:center;border:1px solid var(--gold);border-radius:50%;background:var(--paper)}.about-icon img{width:74px}.about-inner h2{font-size:34px;max-width:520px}.about-inner p:not(.eyebrow){color:var(--muted);max-width:620px;font-size:13px;line-height:1.9}.about-features{display:flex;flex-direction:column;gap:0}.about-features span{border-bottom:1px solid var(--line);padding:14px 0;color:var(--gold);font-size:11px}.about-features strong{font-size:12px;margin-left:12px;color:var(--body);font-weight:600}.site-footer{background:var(--paper);border-top:1px solid var(--line)}.footer-inner{display:flex;justify-content:space-between;gap:20px;padding:25px 0;color:var(--muted);font-size:11px}
/* Reader shell */
.page-reader{background:var(--bg)}.reader-header{position:sticky;z-index:20;top:0;height:76px;background:var(--paper);border-bottom:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);align-items:center;padding:0 25px;gap:14px}.reader-header-start,.reader-header-actions{display:flex;align-items:center;gap:14px}.reader-header-actions{justify-content:flex-end;gap:8px}.reader-logo{width:132px;height:auto}.back-link{display:inline-flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);font-weight:650;white-space:nowrap}.back-link:hover{color:var(--wine)}.reader-header-line{height:25px;width:1px;background:var(--line)}.reader-header-mid{max-width:290px;justify-self:center;text-align:center;width:100%}.reader-heading{display:block;font-size:12px;color:var(--body);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:750}.header-progress-track{height:3px;background:var(--line);margin-top:9px;border-radius:4px;overflow:hidden}.header-progress-fill{width:0;height:100%;background:var(--gold);transition:width .2s}.reader-small-btn{height:35px;min-width:36px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--body);font-size:13px;font-weight:650}.reader-small-btn:hover,.reader-action-btn:hover{background:var(--soft)}.reader-action-btn{height:35px;padding:0 13px;border-radius:7px;border:1px solid var(--line);background:var(--paper);color:var(--wine);font-size:12px;font-weight:750}.mobile-menu-btn{display:none}.reader-layout{display:grid;grid-template-columns:287px minmax(0,1fr);min-height:calc(100vh - 76px)}.reader-sidebar{position:sticky;top:76px;height:calc(100vh - 76px);border-right:1px solid var(--line);background:var(--paper);display:flex;flex-direction:column;overflow-y:auto;scrollbar-width:thin}.sidebar-top{padding:24px 24px 18px;display:flex;align-items:center;justify-content:space-between;font-size:10px;font-weight:850;color:var(--gold);letter-spacing:.17em}.close-ghost{border:0;background:transparent;color:var(--muted);font-size:25px;display:none}.sidebar-book{padding:0 24px 21px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line)}.sidebar-book img{height:76px;width:54px;border-radius:3px;object-fit:cover;box-shadow:2px 4px 11px rgba(0,0,0,.13)}.sidebar-book h2{font-size:13px;margin:0 0 7px;line-height:1.4;font-weight:750}.sidebar-book p{font-size:10px;color:var(--muted);margin:0}.side-progress{padding:24px 24px 25px;border-bottom:1px solid var(--line)}.side-progress-label{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:11px}.side-progress-label strong{color:var(--wine);font-size:13px}.side-progress-track{height:5px;border-radius:8px;background:var(--line);overflow:hidden}.side-progress-track>div{width:0;height:100%;background:var(--wine);transition:width .3s}.side-progress small{font-size:10px;color:var(--muted);display:block;margin-top:9px}.chapter-list-title{padding:21px 24px 12px;font-size:10px;letter-spacing:.14em;color:var(--muted);font-weight:850}.toc{padding:0 10px 24px}.toc a{display:flex;align-items:center;gap:11px;padding:13px 12px;border-radius:9px;font-size:12px;line-height:1.4;border-left:3px solid transparent;margin-bottom:3px;color:var(--muted)}.toc a:hover{background:var(--soft)}.toc a[aria-current=page]{color:var(--wine);background:var(--soft);border-left-color:var(--pink);font-weight:700}.toc-number{flex:0 0 27px;width:27px;height:27px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;font-size:10px;background:var(--paper);color:var(--muted)}.toc a[aria-current=page] .toc-number{background:var(--wine);border-color:var(--wine);color:#fff}.toc a.is-done .toc-number{color:var(--success);border-color:var(--success);font-weight:800}.toc-text small{display:block;font-size:9px;letter-spacing:.1em;text-transform:uppercase;font-weight:750;color:var(--gold);margin-bottom:4px}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:18px 22px;color:var(--muted);font-size:10px}.reader-main{min-width:0}.reader-content-shell{width:min(795px,calc(100% - 96px));margin:0 auto;padding:59px 0 50px}.reader-loading,.reader-error{text-align:center;margin:90px 0;color:var(--muted)}.loading-flower{font-size:52px;color:var(--gold)}.reader-error h1{font-family:Georgia,serif;color:var(--body);font-weight:500}.chapter-topline{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:22px;margin-bottom:31px;gap:16px}.chapter-topline .eyebrow{margin:0}.chapter-bookmark{background:none;border:0;color:var(--muted);font-size:11px;font-weight:650}.chapter-bookmark[aria-pressed=true]{color:var(--wine)}.chapter-bookmark:hover{color:var(--gold)}
/* Typesetting */
.chapter-article{font-size:var(--reader-font-size);color:var(--body);line-height:1.89;overflow-wrap:anywhere}.chapter-article>h1,.chapter-article .ch-title{font-family:Georgia,"Times New Roman",serif;letter-spacing:-.045em;line-height:1.19;font-size:clamp(37px,4vw,55px);font-weight:500;margin:0 0 28px}.chapter-article .lead{font-size:1.09em;line-height:1.76;color:var(--body);margin-top:0}.chapter-article h2{font-family:Georgia,serif;letter-spacing:-.025em;font-weight:500;font-size:1.5em;line-height:1.35;margin:42px 0 15px}.chapter-article h3{font-size:1.05em;margin:32px 0 12px}.chapter-article p{margin:0 0 21px}.chapter-article strong{font-weight:730}.chapter-article ul,.chapter-article ol{padding-left:30px;margin:0 0 24px}.chapter-article li{margin-bottom:10px}.chapter-article blockquote{border-left:3px solid var(--gold);padding:8px 0 8px 22px;margin:32px 0;color:var(--muted);font-family:Georgia,serif;font-size:1.13em}.chapter-article a{color:var(--wine);text-decoration:underline;text-underline-offset:4px}.chapter-article img{border-radius:8px;margin:18px 0;max-width:100%}.chapter-article .callout{border-left:3px solid var(--gold);background:var(--cream);padding:25px 27px;margin:31px 0;border-radius:0 10px 10px 0}.chapter-article .callout p:last-child{margin-bottom:0}.callout-label{display:block;letter-spacing:.12em;font-size:10px;font-weight:800;color:var(--wine);text-transform:uppercase;margin-bottom:11px}.term{color:var(--wine);border:0;border-bottom:1px dashed var(--pink);background:transparent;padding:0 2px;cursor:pointer;line-height:inherit;font-size:inherit;font-family:inherit;display:inline}.term:hover{background:var(--blush)}.quote-card{background:var(--wine);color:#fffaf5;padding:24px 35px 33px;border-radius:12px;margin:35px 0}.quote-mark{font-size:60px;font-family:Georgia,serif;color:var(--gold-light);line-height:1}.quote-card p{font-family:Georgia,serif;font-size:1.23em;line-height:1.6;margin:0}.chapter-end{margin-top:69px;padding:34px 0;display:flex;gap:15px;align-items:center;justify-content:flex-start;border-top:1px solid var(--line)}.chapter-end .button{font-size:12px}.chapter-end p{color:var(--success);font-size:11px}.chapter-nav{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:5px}.chapter-nav-card{border:1px solid var(--line);background:var(--paper);border-radius:12px;padding:23px 22px;text-align:left;min-height:107px;color:var(--body);display:flex;flex-direction:column;gap:11px}.chapter-nav-card.next{text-align:right;align-items:flex-end}.chapter-nav-card:hover{border-color:var(--gold)}.chapter-nav-card small{color:var(--gold);font-size:10px;letter-spacing:.15em;font-weight:850}.chapter-nav-card strong{font-weight:650;font-size:13px;line-height:1.5}.chapter-nav-card:disabled{opacity:.3;cursor:not-allowed}.reader-finish{text-align:center;padding:66px 0 0;font-size:9px;letter-spacing:.18em;color:var(--muted)}.reader-finish span{padding:0 18px;color:var(--gold)}
/* Interactive lesson blocks */
.activity{border:1px solid var(--line);border-radius:13px;margin:34px 0;padding:27px;background:var(--paper);font-size:15px;line-height:1.6;box-shadow:0 7px 23px rgba(81,5,44,.035)}.activity-header{display:flex;align-items:center;gap:10px;margin-bottom:18px}.activity-sparkle{width:29px;height:29px;display:grid;place-items:center;background:var(--blush);color:var(--wine);border-radius:8px;font-size:19px}.activity-heading{flex:1}.activity-type{display:block;text-transform:uppercase;letter-spacing:.13em;font-size:9px;font-weight:850;color:var(--gold);margin-bottom:4px}.activity-title{font-size:15px;font-weight:760;line-height:1.4;margin:0}.activity-intro{font-size:13px;color:var(--muted);margin-bottom:16px}.activity-option{display:block;padding:13px 17px;margin:9px 0;border:1px solid var(--line);background:var(--bg);width:100%;text-align:left;border-radius:8px;color:var(--body);font-size:13px;line-height:1.55}.activity-option:hover{border-color:var(--gold)}.activity-option[aria-selected=true],.activity-option[aria-pressed=true]{border-color:var(--gold);background:var(--cream);color:var(--wine);font-weight:700}.activity-response{margin-top:18px;border-radius:9px;background:var(--cream);padding:17px 19px;font-size:13px;color:var(--body);line-height:1.7}.activity-response p{margin:0}.activity-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.activity-grid .comparison-item{padding:20px;border-radius:9px;background:var(--cream);border:1px solid var(--line)}.comparison-item h4{font-family:Georgia,serif;font-size:18px;font-weight:500;margin:0 0 9px}.comparison-item p{font-size:13px;color:var(--muted);margin:0}.activity details{border:1px solid var(--line);background:var(--bg);border-radius:8px;margin:9px 0;padding:0}.activity summary{cursor:pointer;padding:15px 17px;font-size:13px;font-weight:720;list-style:none;display:flex;align-items:center;justify-content:space-between}.activity summary::after{content:'+';font-size:20px;color:var(--gold)}.activity details[open] summary::after{content:'−'}.activity details>div{padding:0 17px 17px;color:var(--muted);font-size:13px;line-height:1.65}.activity-stages{display:flex;gap:7px;flex-wrap:wrap}.stage-btn{background:var(--bg);border:1px solid var(--line);border-radius:8px;font-size:11px;color:var(--body);padding:10px 13px}.stage-btn[aria-pressed=true]{background:var(--wine);color:#fff;border-color:var(--wine)}.flashcard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.flashcard{min-height:145px;background:var(--cream);border:1px solid var(--line);border-radius:10px;padding:20px;color:var(--body);text-align:center;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:12px}.flashcard small{font-size:9px;letter-spacing:.09em;color:var(--gold);text-transform:uppercase}.flashcard span{font-family:Georgia,serif;font-size:17px;line-height:1.4}.flashcard[aria-pressed=true]{background:var(--wine);color:white;border-color:var(--wine)}.flashcard[aria-pressed=true] small{color:var(--gold-light)}.checkline{display:flex;align-items:flex-start;gap:11px;cursor:pointer;padding:11px 5px;font-size:13px}.checkline input{accent-color:var(--wine);width:17px;height:17px;margin-top:2px}.check-counter{font-size:11px;color:var(--muted);margin-top:12px}.reflection-input{resize:vertical;min-height:120px;width:100%;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--body);font-size:13px;line-height:1.7;padding:16px}.reflection-saved{font-size:11px;color:var(--success);min-height:21px;margin-top:9px}.range-wrap{display:flex;gap:20px;align-items:center}.range-wrap input{flex:1;accent-color:var(--wine)}.range-wrap output{font-size:24px;font-family:Georgia,serif;color:var(--wine)}.media-embed{position:relative;aspect-ratio:16/9;border-radius:9px;overflow:hidden}.media-embed iframe{width:100%;height:100%;border:0}
/* Quiz */
.quiz{border-color:#decbbb}.quiz-question{font-size:15px;font-weight:730;line-height:1.55;margin-bottom:20px}.quiz-option{width:100%;border:1px solid var(--line);background:var(--bg);padding:15px 17px;margin:9px 0;border-radius:9px;display:flex;align-items:flex-start;gap:12px;text-align:left;font-size:13px;line-height:1.6;color:var(--body);transition:border-color .15s}.quiz-option:hover:not(:disabled){border-color:var(--gold)}.quiz-letter{flex:0 0 23px;width:23px;height:23px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;font-size:10px;color:var(--muted);font-weight:750}.quiz-option.is-correct{border-color:var(--success);background:var(--success-bg)}.quiz-option.is-correct .quiz-letter{background:var(--success);color:var(--paper);border-color:var(--success)}.quiz-option.is-wrong{border-color:var(--error);background:var(--error-bg)}.quiz-option.is-wrong .quiz-letter{background:var(--error);color:var(--paper);border-color:var(--error)}.quiz-feedback{padding:17px 19px;border-radius:9px;margin-top:17px;font-size:13px;line-height:1.6}.quiz-feedback strong{display:block;margin-bottom:7px}.quiz-feedback p{margin:0}.quiz-feedback.ok{background:var(--success-bg);color:var(--success)}.quiz-feedback.no{background:var(--error-bg);color:var(--error)}.quiz-retry{margin-top:15px;color:var(--wine);background:none;border:0;padding:7px 0;font-size:12px;text-decoration:underline;text-underline-offset:4px}
/* Modal and notes */
.term-dialog{border:1px solid var(--line);background:var(--paper);color:var(--body);border-radius:15px;width:min(440px,calc(100% - 35px));padding:29px;box-shadow:0 25px 90px rgba(36,4,19,.21)}.term-dialog::backdrop{background:rgba(27,7,20,.55);backdrop-filter:blur(4px)}.term-dialog-head{display:flex;justify-content:space-between;align-items:center;color:var(--gold);font-size:10px;letter-spacing:.15em;font-weight:850}.term-dialog-head button,.notes-head button{border:0;background:none;color:var(--muted);font-size:28px;line-height:1}.term-dialog h2{font-family:Georgia,serif;font-size:29px;font-weight:500;line-height:1.3;margin:20px 0 10px}.term-dialog p{color:var(--muted);font-size:14px;line-height:1.8}.dialog-done{background:var(--wine);border:0;color:white;padding:12px 19px;border-radius:7px;font-size:12px;font-weight:730;margin-top:12px}.notes-backdrop{position:fixed;inset:0;background:rgba(31,8,20,.4);z-index:28}.notes-panel{position:fixed;right:0;top:0;width:min(440px,100%);height:100vh;overflow:auto;background:var(--paper);z-index:29;border-left:1px solid var(--line);box-shadow:-16px 0 45px rgba(0,0,0,.15);padding:30px;transform:translateX(105%);transition:transform .22s ease}.notes-panel.is-open{transform:translateX(0)}.notes-head{display:flex;justify-content:space-between;align-items:center}.notes-head h2{font-family:Georgia,serif;font-size:37px;font-weight:500;margin:0}.notes-head .eyebrow{margin:0 0 7px}.notes-info{font-size:12px;line-height:1.75;color:var(--muted);margin:23px 0 28px}.notes-label{display:block;font-size:13px;font-weight:750;margin-bottom:12px}.notes-panel textarea{border:1px solid var(--line);border-radius:10px;padding:15px;width:100%;background:var(--bg);color:var(--body);font-size:13px;line-height:1.7;resize:vertical;min-height:195px}.notes-action-row{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}.notes-action-row .button{font-size:11px;padding:11px 14px}.notes-panel #notes-status{font-size:12px;color:var(--success);min-height:25px}.notes-tip{margin-top:28px;border-top:1px solid var(--line);padding-top:19px;font-size:11px;color:var(--muted);line-height:1.8}.standalone-error{min-height:100vh;display:grid;place-items:center;text-align:center}.standalone-error h1{font-family:Georgia,serif;font-size:42px;font-weight:400}
@media(max-width:1100px){.reader-header{grid-template-columns:auto minmax(140px,1fr) auto}.reader-logo{display:none}.reader-header-line{display:none}.reader-layout{grid-template-columns:248px minmax(0,1fr)}.reader-content-shell{width:calc(100% - 72px)}.hero-float.float-two{right:0}.about-inner{gap:22px}.book-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:780px){.container{width:calc(100% - 36px)}.site-header{height:74px}.brand img{width:155px}.header-links{gap:18px}.header-links a:nth-child(2){display:none}.hero-grid{grid-template-columns:1fr;min-height:auto}.hero-copy{padding:63px 0 25px}.hero h1{font-size:45px;max-width:580px}.hero-art{min-height:260px;margin-top:-34px}.hero-flower{width:180px}.hero-orbit.orbit-one{width:245px;height:245px}.hero-orbit.orbit-two{width:190px;height:190px}.hero-float{font-size:10px;padding:9px 12px}.float-one{left:3%;top:14%}.float-two{right:0;bottom:19%}.hero-art-caption{display:none}.hero-meta{margin-top:33px;gap:27px}.library-section{padding:57px 0 64px}.library-tools{flex-direction:column;align-items:stretch}.search-field{width:100%}.filter-pills{overflow-x:auto;flex-wrap:nowrap;padding-bottom:6px}.filter-pill{white-space:nowrap}.about-inner{grid-template-columns:70px 1fr}.about-icon{width:68px;height:68px}.about-icon img{width:51px}.about-features{grid-column:2}.about-inner h2{font-size:29px}.reader-header{height:67px;padding:0 14px;grid-template-columns:1fr auto}.reader-header-mid{display:none}.back-link span{display:none}.reader-header-actions{gap:5px}.reader-action-btn span{display:none}.reader-small-btn.font-btn{display:none}.mobile-menu-btn{display:inline-flex;align-items:center;gap:7px;padding:0 10px}.reader-layout{display:block;min-height:calc(100vh - 67px)}.reader-sidebar{position:fixed;top:0;left:0;height:100vh;width:min(320px,90vw);z-index:26;transform:translateX(-105%);transition:transform .22s ease;box-shadow:10px 0 40px rgba(0,0,0,.08)}.reader-sidebar.is-open{transform:translateX(0)}.side-backdrop:not([hidden]){position:fixed;inset:0;background:rgba(30,8,18,.46);z-index:25}.close-ghost{display:block}.reader-content-shell{width:min(710px,calc(100% - 42px));padding-top:37px}.chapter-article{font-size:calc(var(--reader-font-size) - 1px)}.chapter-article>h1{font-size:38px}.activity{padding:20px}.reader-header-start{gap:5px}}
@media(max-width:550px){.header-links{gap:10px}.header-links a{font-size:12px}.hero-copy{padding:48px 0 18px}.hero h1{font-size:39px}.hero-copy>p{font-size:14px}.hero-meta{gap:18px;font-size:11px}.hero-meta strong{font-size:11px}.hero-art{min-height:225px}.hero-float.float-one{left:-3%}.hero-float.float-two{right:-3%}.section-head{align-items:flex-start}.section-head h2{font-size:32px}.library-count{display:none}.book-grid{grid-template-columns:1fr}.cover-wrap{height:284px}.cover-wrap img{height:247px;width:174px}.book-body h3{font-size:23px}.about-section{padding:47px 0}.about-inner{grid-template-columns:1fr}.about-features{grid-column:1}.about-icon{width:70px;height:70px}.footer-inner{flex-direction:column;font-size:10px;gap:7px}.reader-header{padding:0 10px}.reader-header-actions .reader-small-btn:not(.mobile-menu-btn){width:31px;min-width:31px}.mobile-menu-btn span{display:none}.reader-content-shell{width:calc(100% - 36px)}.chapter-article{line-height:1.76}.chapter-article>h1{font-size:35px}.chapter-article .lead{font-size:1em}.chapter-nav{gap:10px}.chapter-nav-card{padding:17px 13px}.chapter-nav-card strong{font-size:11px}.activity-grid,.flashcard-grid{grid-template-columns:1fr}.notes-panel{padding:24px}.chapter-end{flex-direction:column;align-items:flex-start}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Theme contrast corrections: preserve the original wine brand on buttons while lifting text in dark mode */
html[data-theme=dark] .eyebrow:not(.light),html[data-theme=dark] .book-category{color:var(--gold)}
html[data-theme=dark] .book-cta,html[data-theme=dark] .toc a[aria-current=page],html[data-theme=dark] .side-progress-label strong,html[data-theme=dark] .chapter-bookmark[aria-pressed=true],html[data-theme=dark] .term,html[data-theme=dark] .callout-label,html[data-theme=dark] .range-wrap output,html[data-theme=dark] .reader-action-btn{color:#edc1d5}
html[data-theme=dark] .dialog-done,html[data-theme=dark] .button-wine{background:#79254e}
html[data-theme=dark] .toc a[aria-current=page] .toc-number{background:#79254e}
html[data-theme=dark] .filter-pill[aria-pressed=true]{background:#79254e;border-color:#79254e}
html[data-theme=dark] .book-label{color:#edc1d5}
html[data-theme=dark] .quiz-option.is-correct .quiz-letter{color:#133b29}
html[data-theme=dark] .quiz-option.is-wrong .quiz-letter{color:#502131}
/* Final polish */
.book-grid:has(> .book-card:only-child){grid-template-columns:minmax(290px,390px)}
html[data-theme=dark] .brand img,html[data-theme=dark] .reader-logo{filter:brightness(0) saturate(100%) invert(86%) sepia(9%) saturate(435%) hue-rotate(290deg)}
html[data-theme=dark] .hero-flower{filter:brightness(0) saturate(100%) invert(76%) sepia(21%) saturate(518%) hue-rotate(340deg) brightness(97%)}
@media(max-width:550px){.book-grid:has(> .book-card:only-child){grid-template-columns:1fr}}

/* FSM v1.1: o hero usa a flor isolada da marca, sem letras ou outros cortes. */
.hero-flower{width:clamp(190px,25vw,290px);max-height:290px;object-fit:contain;filter:brightness(0) saturate(100%) invert(76%) sepia(21%) saturate(518%) hue-rotate(340deg) brightness(97%);opacity:.82}
.hero-art{isolation:isolate;overflow:visible}
.hero-orbit{pointer-events:none}
@media(max-width:780px){.hero-flower{width:185px;max-height:190px}}
.about-icon img{object-fit:contain}
