/* October reading refinements, using the existing Bloco palette and type. */
.rail-overview { display:block; padding:.65rem .5rem; min-height:44px; box-sizing:border-box; }
.reading-rail .rail-overview { border-bottom:1px solid var(--line); margin-bottom:.4rem; }
.verb-submenu { padding-left:1.1rem; }
.verb-submenu a { font-size:.9em; }
.reference-extra table { width:100%; border-collapse:collapse; }
.reference-extra th, .reference-extra td { padding:.8rem .65rem; text-align:left; vertical-align:top; border-bottom:1px solid var(--line); }
.reference-extra th:first-child { width:23%; }
.reference-extra th { font-weight:500; }
.reference-extra td > span[lang="pt-BR"] { font-family:var(--serif); font-size:1.125rem; line-height:1.5; }
.reference-extra td small { display:block; color:var(--muted); font-size:.85rem; margin-top:.35rem; }
.reference-extra th[lang] { color:var(--accent); }
.reference-extra .lesson-prose { max-width:72ch; }
.reference-extra h2 { margin-top:2.5rem; }
.reference-extra .recall-example { padding:1rem 0; border-bottom:1px solid var(--line); }
.reference-extra summary { cursor:pointer; min-height:44px; align-content:center; }
.reference-extra details p[lang] { font-family:Georgia,serif; font-size:1.3rem; }
.reference-extra .reference-sources { display:flex; flex-direction:column; gap:.65rem; }
.reference-extra .reference-sources a { width:fit-content; }
.reference-extra details { scroll-margin-top:6rem; }
.reference-extra .small-comparison { max-width:100%; overflow-x:auto; }
.reference-extra .pattern-change { color:var(--accent); font-weight:700; }
.reference-topic-links { display:flex; flex-wrap:wrap; gap:.65rem 1.4rem; padding:1rem 0; }
.reference-panel .everyday-comparison { margin-top:1.5rem; }
.everyday-comparison td, .everyday-comparison th { white-space:normal; }
.everyday-comparison th:first-child { min-width:8rem; }
.everyday-comparison td { min-width:5rem; }
.lesson-matrix th small { display:block; font-family:system-ui,sans-serif; font-size:.75rem; color:var(--muted); font-weight:400; }
@media(max-width:640px) {
  .reference-extra th, .reference-extra td { padding:.7rem .4rem; font-size:.9rem; overflow-wrap:anywhere; }
  .reference-extra th:first-child { width:29%; }
  .reference-extra td:nth-child(2) { width:25%; }
  .reference-nav-inner { gap:.65rem; }
}
@media print { .rail-overview { display:none; } }

/* The complement guide keeps the same reading system, with wrapped examples. */
.complement-guide { padding-top: 8px; }
.complement-guide h2 { text-wrap: balance; }
.complement-intro, .complement-prose { max-width: 70ch; }
.complement-intro { margin-block: 10px 20px; color: var(--muted); }
.complement-matrix { width: 100%; min-width: 620px; table-layout: fixed; }
.complement-matrix th, .complement-matrix td { padding: 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.complement-matrix th:first-child { width: 35%; }
.complement-matrix thead th { font: 500 .875rem var(--sans); background: var(--surface); }
.complement-matrix tbody th { font: 400 1.1875rem/1.5 var(--serif); }
.complement-matrix tbody th small { display: block; margin-top: 8px; color: var(--muted); font: 400 .875rem/1.5 var(--sans); }
.complement-matrix th:first-child { position: sticky; left: 0; background: var(--paper); z-index: 1; }
.complement-matrix thead th:first-child { background: var(--surface); }
.complement-example + .complement-example { margin-top: 14px; }
.complement-example p { margin: 0; font: 400 1.25rem/1.5 var(--serif); }
.complement-example p.complement-translation { margin-top: 3px; color: var(--muted); font: 400 .9375rem/1.5 var(--sans); }
.complement-section { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.complement-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 18px; }
.complement-prose > p { margin: 0 0 16px; line-height: 1.7; }
.complement-prose > .complement-refs { font-size: .8125rem; line-height: 1.6; color: var(--muted); }
.complement-refs a, .complement-sources a { text-decoration: underline; text-underline-offset: 3px; }
.complement-examples .complement-example { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.complement-mistakes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.complement-mistakes li > p { font-size: .9375rem; margin: 12px 0; }
.complement-mistake { color: var(--muted); }
.complement-mistake > span:first-child { display: block; font-size: .8125rem; margin-bottom: 4px; }
.complement-guide .lesson-explanations { max-width: 100%; }
.complement-guide .lesson-explanations summary { display: block; padding-right: 36px; }
.complement-guide .lesson-explanations summary > span { font: 400 1.1875rem/1.5 var(--serif); }
.complement-guide .lesson-explanations summary > small { display: block; margin-top: 6px; color: var(--muted); font: 400 .875rem/1.5 var(--sans); }
.complement-answer { max-width: 70ch; padding: 2px 0 16px; }
.complement-answer > p:first-child { color: var(--accent); }
.complement-sources { columns: 2; padding-left: 20px; }
.complement-sources li { break-inside: avoid; margin-bottom: 10px; font-size: .9375rem; }
@media (max-width: 760px) {
 .complement-columns, .complement-mistakes { grid-template-columns: 1fr; gap: 20px; }
 .complement-matrix { min-width: 570px; }
 .complement-matrix th:first-child { width: 155px; }
 .complement-matrix th, .complement-matrix td { padding: 12px; }
 .complement-matrix tbody th { font-size: 1rem; }
 .complement-sources { columns: 1; }
}
