/* Theme oficial v1. Contrato: docs/theme/THEME-OFICIAL.md. */
:root{--cq-paper:#f6f2e9;--cq-ink:#252b27;--cq-soft:#545d54;--cq-accent:#883d2e;--cq-blue:#2c5261;--cq-navy:#243f4a;--cq-line:#c9c3b5;--cq-wash:#eae4d7;--cq-space-1:.25rem;--cq-space-2:.5rem;--cq-space-3:.75rem;--cq-space-4:1rem;--cq-space-6:1.5rem;--cq-space-8:2rem;--cq-space-12:3rem}
.theme-component{margin-block:2rem;padding-block:1.5rem;border-top:1px solid var(--cq-line)}
.theme-component h2{font-size:1.7rem;margin-bottom:.75rem}.theme-component p{margin-block:.7rem}
.theme-spec{font:1rem/1.6 Arial,sans-serif}.theme-spec code{overflow-wrap:anywhere}

/* Shared foundations and CQ09/CQ17; documented in the v2 registry. */
:root{--cq-font-editorial:Georgia,'Times New Roman',serif;--cq-font-interface:Arial,Helvetica,sans-serif;--cq-font-code:Consolas,monospace;--cq-surface:#fffcf6;--cq-on-dark:#fffdf8;--cq-focus-dark:#f1cdb7}
.cq-table-scroll{max-width:100%;overflow:auto}.cq-table-scroll:focus-visible{outline:3px solid var(--cq-accent);outline-offset:4px}
.cq-message{padding:1.25rem;margin:1.5rem 0;border:1px solid var(--cq-line);border-left:4px solid var(--cq-blue);background:var(--cq-surface);max-width:840px}
.cq-message-error{border-left-color:var(--cq-accent)}.cq-message h2{font:600 1.4rem/1.4 var(--cq-font-editorial);margin-bottom:.7rem}.cq-message p+p{margin-top:.8rem}

/* CQ05: constrain native year selection during text enlargement. */
.year-filter select{max-width:100%;min-width:0}

/* CQ18 blog palette and readable consent controls. */
.cuaderno .cat-consent-banner,.cuaderno .cat-consent-panel{background:var(--cq-navy);color:var(--cq-on-dark);font-family:var(--cq-font-interface)}
.cuaderno .cat-consent-btn,.cuaderno [data-consent-save]{font-size:1rem;min-height:48px}

/* CQ18 reflow and official action palette. */
.cuaderno .cat-consent-banner__actions{min-width:0;max-width:100%;flex:0 1 auto}
.cuaderno .cat-consent-btn,.cuaderno [data-consent-save]{white-space:normal;overflow-wrap:anywhere;max-width:100%}
.cuaderno .cat-consent-btn--primary,.cuaderno [data-consent-save]{background:var(--cq-paper);border-color:var(--cq-paper);color:var(--cq-navy)}
.cuaderno .cat-consent-btn--primary:hover,.cuaderno .cat-consent-btn--primary:focus-visible,.cuaderno [data-consent-save]:hover{background:var(--cq-wash);border-color:var(--cq-paper);color:var(--cq-navy)}
