/* Experiência editorial de estudo, alinhada aos tokens CYDAK. */
.learn-back { display: inline-flex; gap: 10px; align-items: center; margin-bottom: 22px; text-decoration: none; font-size: .8rem; }
.learn-course-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; padding: clamp(28px, 4vw, 56px); border-radius: 12px; background: #082d56; color: #fff; position: relative; overflow: hidden; }
.learn-course-copy { align-self: center; position: relative; }
.learn-eyebrow { font-size: .65rem; letter-spacing: .14em; font-weight: 600; text-transform: uppercase; color: var(--cy-orange); }
.learn-course-copy h1 { font-size: clamp(1.8rem, 3.1vw, 3.2rem); margin: 24px 0; line-height: 1.3; }
.learn-course-copy > p { color: #d0e0f1; font-size: .9rem; max-width: 620px; }
.learn-course-facts { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 28px; color: #d0e0f1; font-size: .75rem; }
.learn-course-facts i { color: var(--cy-orange); margin-right: 6px; }
.learn-progress-card { background: #fff; color: var(--cy-ink); border-radius: 10px; padding: 28px; align-self: center; position: relative; }
.learn-progress-number { font: 400 3rem var(--cy-title); margin: 18px 0; color: var(--cy-blue); }
.learn-progress-number > span { display: inline-block; font: 400 .7rem var(--cy-text); margin-left: 10px; color: var(--cy-muted); }
.learn-progress-card > p { font-size: .75rem; color: var(--cy-muted); margin: 12px 0 24px; }
.learn-progress-card .progress, .reader-sidebar .progress { height: 5px; }
.learn-muted { font-size: .75rem; line-height: 1.8; color: var(--cy-muted); }
.learn-info { padding: 18px 22px; border: 1px solid var(--cy-border); background: #eaf1f9; border-radius: 8px; font-size: .8rem; color: var(--cy-blue-dark); }
.learn-info > i { margin-right: 10px; }
.learn-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-block: 44px 26px; }
.learn-section-heading h2 { font-size: 1.4rem; margin: 10px 0 0; }
.learn-section-heading > span { color: var(--cy-muted); font-size: .72rem; }
.learn-chapter { display: flex; gap: 22px; padding: 28px 4px; align-items: center; border-top: 1px solid var(--cy-border); }
.learn-chapter:last-child { border-bottom: 1px solid var(--cy-border); }
.learn-chapter-number { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border: 1px solid #b5c7dc; border-radius: 50%; color: var(--cy-blue); font: 400 .95rem var(--cy-title); }
.learn-chapter--done .learn-chapter-number { color: #16724c; border-color: #a4d3be; background: #eaf6ef; }
.learn-chapter-body { flex: 1; min-width: 0; }
.learn-chapter-type { color: var(--cy-muted); font-size: .55rem; letter-spacing: .09em; }
.learn-chapter h3 { font-size: .98rem; margin: 7px 0; line-height: 1.5; }
.learn-chapter h3 a { text-decoration: none; }
.learn-chapter h3 a:hover { text-decoration: underline; }
.learn-chapter-body > p { color: var(--cy-muted); font-size: .77rem; margin: 8px 0; }
.learn-chapter-status { font-size: .68rem; color: var(--cy-muted); }
.learn-chapter--done .learn-chapter-status { color: #16724c; }
.learn-chapter-resources { display: flex; flex: none; gap: 14px; }
.learn-resource { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: .6rem; text-decoration: none; min-width: 58px; }
.learn-resource > i { display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #a7bdd7; border-radius: 50%; font-size: 1.25rem; }
.learn-resource:hover > i { background: var(--cy-blue); border-color: var(--cy-blue); color: #fff; }
.learn-course-bottom { display: flex; gap: 18px; align-items: center; padding: 26px; margin-top: 32px; background: #fff; border: 1px solid var(--cy-border); border-radius: 10px; }
.learn-course-bottom > i { font-size: 2rem; color: var(--cy-blue); }
.learn-course-bottom strong { font-size: .8rem; }
.learn-course-bottom p { font-size: .75rem; color: var(--cy-muted); margin: 5px 0 0; }
.learn-state { display: flex; align-items: center; flex-direction: column; gap: 16px; text-align: center; padding: 70px 24px; min-height: 300px; }
.learn-state h1, .learn-state h3 { font-size: 1.5rem; }
.learn-state p { color: var(--cy-muted); }
.study-layout { min-height: 100vh; background: #fff; }
.study-topbar { height: 68px; display: flex; align-items: center; gap: 24px; padding: 14px 28px; border-bottom: 1px solid var(--cy-border); background: #fff; position: relative; z-index: 10; }
.study-brand { display: flex; align-items: center; gap: 9px; font: 400 18px var(--cy-title); text-decoration: none; white-space: nowrap; }
.study-brand > span { padding: 4px 6px; border-radius: 5px; background: var(--cy-blue); color: #fff; font-size: 15px; }
.study-brand small { font: 500 .52rem var(--cy-text); letter-spacing: .15em; }
.study-topbar-caption { margin-left: 12px; padding-left: 24px; border-left: 1px solid var(--cy-border); font-size: .6rem; letter-spacing: .1em; color: var(--cy-muted); }
.study-profile { display: inline-flex; gap: 7px; align-items: center; margin-left: auto; text-decoration: none; font-size: .75rem; }
.reader-shell { display: grid; grid-template-columns: 66px 270px minmax(0,1fr); min-height: calc(100vh - 68px); }
.reader-tools { background: var(--cy-blue-dark); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px; position: sticky; top: 0; height: 100vh; }
.reader-tools > a, .reader-tools > button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #d5e4f5; font-size: 1.1rem; text-decoration: none; }
.reader-tools > .selected, .reader-tools > a:hover, .reader-tools > button:hover { background: #ffffff20; color: #fff; }
.reader-tools > .selected { box-shadow: inset 3px 0 var(--cy-orange); }
.reader-tools > button:disabled { opacity: .4; }
.reader-tools :focus-visible { outline-color: var(--cy-orange); }
.reader-sidebar { background: #f7f9fc; padding: 28px 22px; border-right: 1px solid var(--cy-border); position: sticky; top: 0; max-height: 100vh; overflow-y: auto; align-self: start; }
.reader-sidebar h2 { font-size: 1.1rem; margin-block: 12px; }
.reader-course-title { display: block; font: 400 .95rem/1.5 var(--cy-title); text-decoration: none; margin-bottom: 24px; }
.reader-progress-label { display: flex; justify-content: space-between; font-size: .68rem; margin-bottom: 8px; color: var(--cy-muted); }
.reader-progress-label strong { color: var(--cy-blue); }
.reader-section-label { display: block; font-size: .57rem; letter-spacing: .1em; font-weight: 600; color: var(--cy-muted); margin-block: 30px 14px; }
.reader-chapter-list { list-style: none; padding: 0; margin: 0 -10px; }
.reader-chapter-list a { display: flex; align-items: flex-start; gap: 10px; padding: 13px 10px; text-decoration: none; color: var(--cy-muted); border-radius: 6px; font-size: .73rem; line-height: 1.65; }
.reader-chapter-list a.current { background: #e5eef9; color: var(--cy-blue); }
.reader-chapter-list a:hover { background: #eaf1f9; }
.reader-step { flex: 0 0 22px; font-weight: 600; color: var(--cy-blue); }
.reader-chapter-list small { display: block; color: var(--cy-muted); font-size: .6rem; margin-top: 3px; }
.reader-sections { display: grid; gap: 4px; }
.reader-sections button { text-align: left; color: var(--cy-muted); border: 0; background: transparent; font-size: .7rem; padding: 8px 0; line-height: 1.5; }
.reader-sections button:hover { color: var(--cy-blue); text-decoration: underline; }
.reader-main { min-width: 0; padding: 28px clamp(24px, 5vw, 90px) 60px; }
.reader-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; color: var(--cy-muted); font-size: .65rem; max-width: 820px; margin: 0 auto 24px; }
.reader-breadcrumb a { text-decoration: none; }
.reader-paper { max-width: 820px; margin: 0 auto; }
.reader-heading { background: #082d56; color: #fff; border-radius: 12px; border-left: 4px solid var(--cy-orange); margin-bottom: 32px; padding: clamp(24px, 3vw, 36px); overflow-wrap: anywhere; }
.reader-heading-category { display: block; color: #bfd3ea; font-size: .65rem; margin-bottom: 16px; }
.reader-heading .cy-eyebrow { color: var(--cy-orange); }
.reader-heading h1 { margin: 20px 0; font-size: clamp(1.75rem, 3vw, 2.8rem); }
.reader-heading > p { font-size: .95rem; color: #d0e0f1; margin: 0; }
.reader-video { margin-bottom: 36px; }
.reader-video iframe { border: 0; border-radius: 8px; }
.reader-video p { font-size: .72rem; color: var(--cy-muted); margin-top: 12px; }
.lesson-html { line-height: 1.95; color: var(--cy-ink); overflow-wrap: anywhere; }
.lesson-html p { margin-bottom: 1.4em; }
.lesson-html h1, .lesson-html h2 { font-size: 1.6em; margin: 1.8em 0 .8em; }
.lesson-html h3, .lesson-html h4 { font-size: 1.25em; margin: 1.5em 0 .7em; }
.lesson-html h2, .lesson-html h3, .lesson-html h4 { scroll-margin-top: 30px; }
.lesson-html img, .lesson-html video, .lesson-html iframe { max-width: 100%; }
.lesson-html img { height: auto; border-radius: 8px; margin-block: 20px; }
.lesson-html blockquote, .lesson-html .learning-callout { border-left: 4px solid var(--cy-orange); background: var(--cy-surface); padding: 24px; margin-block: 28px; }
.lesson-html blockquote p:last-child, .lesson-html .learning-callout p:last-child { margin-bottom: 0; }
.lesson-html pre { overflow: auto; padding: 20px; background: #f3f6fa; border-radius: 6px; }
.lesson-html table { display: block; max-width: 100%; overflow-x: auto; }
.lesson-html table th, .lesson-html table td { border: 1px solid var(--cy-border); padding: 12px; }
.lesson-html details { border: 1px solid var(--cy-border); border-radius: 8px; padding: 20px; margin-block: 24px; }
.lesson-html summary { color: var(--cy-blue); font-weight: 600; cursor: pointer; }
.reader-reflection { display: flex; gap: 18px; background: #f3f6fa; border-left: 4px solid var(--cy-orange); padding: 24px; margin-top: 36px; }
.reader-reflection > i { color: var(--cy-blue); font-size: 1.4rem; }
.reader-reflection strong { font-size: .85rem; }
.reader-reflection p { font-size: .8rem; color: var(--cy-muted); margin: 8px 0 0; }
.reader-completion { border-top: 1px solid var(--cy-border); margin-top: 36px; padding-top: 28px; }
.reader-completed { display: flex; gap: 16px; color: #16724c; background: #edf8f1; border-radius: 8px; padding: 22px; }
.reader-completed > i { font-size: 1.5rem; }
.reader-completed p { font-size: .78rem; margin: 6px 0 0; }
.reader-next { display: flex; justify-content: space-between; gap: 28px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--cy-border); }
.reader-next > a { flex: 1; text-decoration: none; font-size: .82rem; }
.reader-next small { display: block; color: var(--cy-muted); font-size: .55rem; letter-spacing: .08em; margin-bottom: 8px; }
.reader-next-link { text-align: right; }
.reader-notes { font-size: .8rem; line-height: 1.8; }
.learn-quiz { margin-top: 28px; }
.learn-quiz > h2 { font-size: 1.5rem; margin-block: 12px; }
.learn-quiz > p { font-size: .85rem; color: var(--cy-muted); }
.quiz-question { border: 1px solid var(--cy-border); padding: 24px; border-radius: 10px; margin-block: 28px; }
.quiz-question legend { float: none; width: auto; font-weight: 600; font-size: .95rem; line-height: 1.7; margin-bottom: 18px; }
.quiz-question legend > span { color: var(--cy-blue); margin-right: 8px; }
.quiz-option { display: flex; gap: 12px; align-items: baseline; padding: 14px 16px; border: 1px solid var(--cy-border); border-radius: 6px; margin-bottom: 12px; font-size: .85rem; cursor: pointer; }
.quiz-option--selected { background: #eaf1f9; border-color: var(--cy-blue); }
.quiz-option input { accent-color: var(--cy-blue); flex: none; }
.quiz-feedback { font-size: .8rem; margin: 18px 0 0; }
.quiz-result { font-size: .85rem; margin-bottom: 20px; }
.learn-action-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 1100px) { .learn-course-hero { gap: 28px; grid-template-columns: 1.3fr 1fr; } .reader-shell { grid-template-columns: 58px 230px minmax(0,1fr); } .reader-sidebar { padding: 24px 16px; } .reader-main { padding-inline: 28px; } .reader-tools { padding-inline: 5px; } }
@media (max-width: 800px) {
    .learn-course-hero { grid-template-columns: 1fr; padding: 28px; }
    .learn-course-copy h1 { font-size: 1.9rem; }
    .learn-section-heading { align-items: start; flex-direction: column; }
    .learn-chapter { flex-wrap: wrap; align-items: flex-start; gap: 16px; }
    .learn-chapter-body { flex: 1 1 calc(100% - 70px); }
    .learn-chapter-resources { padding-left: 62px; }
    .learn-course-bottom { align-items: start; padding: 20px; }
    .study-topbar { height: 62px; padding-inline: 16px; gap: 12px; }
    .study-topbar-caption { display: none; }
    .study-brand { font-size: 16px; }
    .study-brand small { display: none; }
    .study-profile { font-size: .68rem; }
    .reader-shell { display: flex; flex-direction: column; }
    .reader-tools { position: sticky; top: 0; flex-direction: row; justify-content: center; height: auto; padding: 7px 10px; z-index: 10; }
    .reader-tools > a, .reader-tools > button { height: 40px; width: 44px; }
    .reader-sidebar { display: none; position: static; align-self: stretch; max-height: none; padding: 24px; border-bottom: 1px solid var(--cy-border); }
    .reader-sidebar--open { display: block; }
    .reader-main { padding: 24px 22px 40px; }
    .reader-breadcrumb { margin-bottom: 32px; }
    .reader-heading h1 { font-size: 1.8rem; }
    .lesson-html { font-size: 17px; }
    .reader-next { gap: 20px; }
    .reader-next > a { font-size: .75rem; }
    .quiz-question { padding: 18px; }
    .reader-reflection { padding: 20px; }
}
@media print {
    .study-topbar, .reader-tools, .reader-sidebar, .reader-breadcrumb, .reader-next, .reader-completion, .reader-video, .cy-skip, #blazor-error-ui { display: none !important; }
    .reader-shell { display: block; }
    .reader-main { padding: 0; }
    .reader-paper { max-width: 100%; }
    .reader-heading { background: #fff; color: #000; border: 1px solid #999; }
    .reader-heading-category, .reader-heading .cy-eyebrow, .reader-heading > p { color: #333; }
    .lesson-html { font-size: 12pt !important; }
    .study-layout { background: #fff; }
}
.comments-section { margin-top: 2rem; padding: 1.5rem; border: 1px solid rgba(255, 196, 0, .35); border-radius: 1rem; background: var(--bs-body-bg, #fff); box-shadow: 0 10px 30px rgba(255, 196, 0, .12); }
.comment-card { padding: 1rem 0; border-top: 1px solid rgba(128, 128, 128, .2); overflow-wrap: anywhere; }
.lesson-html .academy-font-poppins { font-family: Poppins, Arial, sans-serif; }
.lesson-html .academy-font-days { font-family: 'Days One', Poppins, sans-serif; }
.lesson-html .academy-highlight { background: #fff0ba; padding: .1em .25em; border-radius: .2em; }
.lesson-html h2, .lesson-html h3, .lesson-html h4 { overflow-wrap: anywhere; }
