/* CMS supplies content; home.css owns the established public-page layout.
   Scoped overrides restore its proportions after the shared interface styles. */
.cms-logo { width:auto; height:auto; object-fit:contain; max-width:100%; }
.cms-partner .cms-logo--small { max-width:min(100%,140px); max-height:50px; }
.cms-partner .cms-logo--medium { max-width:min(100%,210px); max-height:66px; }
.cms-partner .cms-logo--large { max-width:min(100%,220px); max-height:90px; }
.cms-rich { overflow-wrap:anywhere; line-height:1.65; }
.cms-rich :first-child { margin-top:0; }
.cms-rich :last-child { margin-bottom:0; }
.cms-rich img { max-width:100%; height:auto; }
.cms-rich table { display:block; max-width:100%; overflow-x:auto; border-collapse:collapse; }
.cms-rich td,.cms-rich th { border:1px solid var(--border); padding:.4rem; }
.cms-partners__grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); }
.cms-partner { min-width:0; flex-direction:column; overflow-wrap:anywhere; }
.cms-partner>a { display:flex; flex-direction:column; align-items:center; max-width:100%; }
.cms-partner h3:not(.sr-only) { font-size:1rem; margin:1rem 0 .4rem; }
.cms-partners--featured { background:var(--surface-subtle); }
.cms-partners--featured .cms-partners__grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)); }
.cms-partners--featured .cms-partner { max-width:400px; }
.cms-footer { overflow-wrap:anywhere; }
.cms-footer .footer-content { max-width:800px; margin-inline:auto; }
.cms-footer .footer-link { white-space:normal; max-width:100%; }
/* Footer actions keep their button appearance inside main, also in legacy markup without .btn. */
body.app-interface .site-footer .footer-links a.footer-link { background:var(--brand-ink); color:var(--brand-on-ink); text-decoration:none; border:0; border-radius:50px; padding:.8rem 2rem; font-size:1rem; line-height:1.6; }
body.app-interface .site-footer .footer-links a.footer-link:hover,
body.app-interface .site-footer .footer-links a.footer-link:focus-visible { background:var(--brand-on-ink); color:var(--brand-ink); text-decoration:none; }
body.page-home { background:var(--surface); }
.page-home main.main-full { padding:0; }
.page-home .main-full>.hero-actions { padding-inline:1rem; }
.page-home .hero-actions .btn { background:var(--brand-ink); color:var(--brand-on-ink); border-color:var(--brand-ink); border-radius:50px; padding:.3rem 1rem; font-size:15px; line-height:1.6; min-height:45px; }
.page-home .hero-actions .btn:hover { background:var(--brand-accent); color:var(--brand-on-accent); }
.page-home .main-full>.hero { min-height:70vh; min-height:70svh; padding:2rem 2rem 6rem; background:var(--brand-accent); }
.page-home .hero-content { max-width:1200px; }
.page-home .cms-logo--hero { display:block; max-width:min(100%,460px); max-height:280px; margin:0 auto; }
.page-home .cms-logo--hero.cms-logo--small { max-width:min(100%,280px); max-height:180px; }
.page-home .cms-logo--hero.cms-logo--large { max-width:min(100%,640px); max-height:350px; }
.page-home .hero h1:not(.sr-only) { font-size:clamp(1.8rem,5vw,3.5rem); overflow-wrap:anywhere; }
.page-home .hero-subtitle { font-size:1.3rem; line-height:1.6; max-width:70ch; margin:1.5rem auto; }
.page-home .hero-edition { font-size:2rem; line-height:1.6; overflow-wrap:anywhere; }
.page-home .scroll-indicator { display:grid; place-items:center; min-width:44px; min-height:44px; text-decoration:none; z-index:1; }
.page-home .main-full .container { max-width:1200px; padding:0 2rem; }
.page-home .cms-schedule__message { padding:2rem; text-align:center; }
.page-home .timeline-countdowns { max-width:1000px; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); }
.page-home .timeline-countdowns--single { max-width:560px; }
.page-home .countdown-panel { min-width:0; overflow-wrap:anywhere; container-type:inline-size; }
/* Reserve more room for days; never break a number between its digits. */
.page-home .countdown-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.page-home .countdown-number { white-space:nowrap; overflow-wrap:normal; word-break:normal; font-variant-numeric:tabular-nums; font-size:clamp(2rem,14cqi,3.2rem); }
@container (min-width:24rem) {
    .page-home .countdown-grid { grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr)); }
}
.page-home .countdown-panel.is-ended .countdown-box { background:var(--brand-ink); }
.page-home .countdown-phase-status:empty { display:none; }
.page-home .countdown-phase-status { font-size:.9rem; margin-top:1rem; }
.page-home .countdown-panel.is-ended .countdown-phase-status { color:var(--brand-on-ink); }
.page-home .timeline-content { min-width:0; overflow-wrap:anywhere; }
.page-home .cms-steps { list-style:none; padding:0; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); }
.page-home .cms-step,.page-home .cms-document { min-width:0; overflow-wrap:anywhere; }
.page-home .cms-step__icon svg { width:48px; height:48px; }
.page-home .cms-step__types { padding-left:1.25rem; margin-top:1rem; }
.page-home .cms-document__description { margin-bottom:1.5rem; text-align:center; }
body.page-home .download-btn { background:var(--brand-ink); color:var(--brand-on-ink); border:0; border-radius:50px; padding:.9rem 2.2rem; max-width:100%; white-space:normal; font-size:1rem; line-height:1.6; }
body.page-home .download-btn:hover { background:var(--brand-accent); color:var(--brand-on-accent); }
.page-home .cms-footer { margin-top:0; }
@supports(height:100dvh) { .page-home .main-full>.hero { min-height:70dvh; } }
@media(max-width:768px) {
    .page-home .main-full .container { padding-inline:1rem; }
    .page-home .main-full>.hero { padding-inline:1.25rem; }
    .page-home .hero-subtitle { font-size:1.1rem; }
    .page-home .hero-edition { font-size:1.5rem; padding-inline:1.25rem; }
    .page-home .timeline-countdowns { margin-inline:0; }
    .page-home .timeline-countdowns--single { margin-inline:auto; }
    .page-home .countdown-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .page-home .cms-steps { row-gap:2.5rem; }
}
@media(max-width:480px) {
    .page-home .section-title { font-size:1.75rem; overflow-wrap:anywhere; }
    .page-home .timeline { padding-inline:.75rem; }
    .page-home .timeline-item { padding-left:46px; }
    .page-home .timeline-marker { left:10px; width:34px; height:34px; font-size:1rem; }
    .page-home .timeline::before { left:22px; }
    .page-home .timeline-content { padding:1.1rem; }
    .page-home .phase-badge { padding-inline:1rem; }
    .page-home .promo-card { padding:1.5rem; }
}
@media(prefers-reduced-motion:reduce) { .page-home .scroll-indicator { animation:none; } }
.cms-preview-banner { padding:1rem; background:var(--warning-bg); color:var(--warning); border:2px solid var(--warning); }
.cms-editor { max-width:88rem; margin-inline:auto; }
.cms-editor__bar { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem; padding:1rem; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-md); position:sticky; top:.5rem; z-index:30; }
.cms-editor__status { flex:1 1 240px; overflow-wrap:anywhere; }
.cms-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.5rem; margin:1.25rem 0; }
body.app-interface .cms-tabs .btn { justify-content:flex-start; text-align:left; white-space:normal; padding:.85rem 1rem; border-color:var(--border); }
body.app-interface .cms-tabs .btn[aria-selected=true] { background:var(--brand-accent); color:var(--brand-on-accent); border-color:var(--brand-ink); box-shadow:inset 4px 0 var(--brand-ink); }
.cms-editor__hint { margin:.5rem 0; font-size:.875rem; }
.cms-tools>summary { cursor:pointer; min-height:44px; padding:.5rem 0; font-weight:600; }
.cms-editor__tools { margin:0; }
.cms-panel { border:1px solid var(--border); background:var(--surface); border-radius:var(--radius-lg); padding:clamp(.75rem,2vw,1.5rem); min-width:0; }
.cms-fields { display:grid; gap:1.25rem; min-width:0; }
.cms-field { min-width:0; }
.cms-field>label { font-weight:600; margin-bottom:.5rem; }
.cms-fields>.btn { justify-self:start; }
.cms-field__media { margin-top:.5rem; }
.cms-fields label { display:grid; gap:.4rem; min-width:0; }
.cms-fields input:not([type=checkbox]),.cms-fields textarea,.cms-fields select { max-width:100%; width:100%; }
.cms-fields label:has(input[type=checkbox]) { display:flex; align-items:center; gap:.6rem; min-height:44px; padding:.5rem .75rem; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-subtle); cursor:pointer; }
.cms-fields label:has(input[type=checkbox]) input { flex:none; }
.cms-fields input[type=checkbox] { width:1.15rem; height:1.15rem; }
.cms-collection { display:grid; gap:1rem; margin:1rem 0; }
.cms-item { border:1px solid var(--border); border-radius:var(--radius-md); padding:1rem; min-width:0; background:var(--surface-subtle); }
.cms-item>summary { cursor:pointer; min-height:44px; font-weight:700; overflow-wrap:anywhere; padding:.6rem .25rem; }
.cms-item[open] { background:var(--surface); border-color:var(--control-border); }
.cms-item[open]>summary { border-bottom:1px solid var(--border); }
.cms-item[open]>.cms-fields { margin-top:1rem; }
.cms-actions { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; margin-top:.75rem; }
.cms-actions .btn { min-height:44px; }
.cms-item__actions { border-top:1px solid var(--border); padding-top:1rem; }
.cms-media-preview { display:flex; align-items:center; gap:1rem; flex-wrap:wrap; }
.cms-media-preview img { max-width:180px; max-height:100px; width:auto; height:auto; object-fit:contain; }
.cms-modal { box-sizing:border-box; width:min(960px,calc(100% - 2rem)); max-height:calc(100vh - 2rem); max-height:calc(100dvh - 2rem); overflow:auto; border:1px solid var(--border); border-radius:var(--radius-lg); background:var(--surface); color:var(--text); padding:1.25rem; overscroll-behavior:contain; }
.cms-modal::backdrop { background:var(--overlay); }
body.app-interface .cms-modal .btn { width:auto; }
.cms-modal__head { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1rem; }
.cms-modal__head h2 { margin:0; font-size:1.3rem; }
.cms-modal__head>.btn { flex:none; }
body.app-interface .cms-modal__head>.btn { width:auto; }
.cms-modal__head h2 { min-width:0; overflow-wrap:anywhere; }
.cms-icon-picker[open] { display:flex; flex-direction:column; height:min(820px,calc(100dvh - 2rem)); overflow:hidden; gap:.75rem; }
.cms-icon-picker>.cms-modal__head { margin:0; }
.cms-icon-picker> :not(.cms-icon-results) { flex:none; }
.cms-icon-current { display:flex; align-items:center; gap:.75rem; padding:.65rem .85rem; background:var(--surface-subtle); border-radius:var(--radius-sm); overflow-wrap:anywhere; }
.cms-icon-current img,.cms-icon-trigger img { flex:none; width:36px; height:36px; }
.cms-icon-filters { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) auto; align-items:end; gap:.75rem; }
.cms-icon-filters label { display:grid; gap:.35rem; min-width:0; font-size:.9rem; font-weight:600; }
.cms-icon-filters .form-input { width:100%; min-width:0; }
.cms-icon-picker>.cms-help { margin:0; font-size:.875rem; }
.cms-icon-results { overflow:auto; overscroll-behavior:contain; min-height:0; flex:1 1 auto; padding:.3rem; border-block:1px solid var(--border); }
.cms-icon-grid,.cms-media-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(112px,1fr)); align-content:start; gap:.6rem; }
body.app-interface .cms-icon-grid .btn,body.app-interface .cms-media-grid .btn { display:flex; flex-direction:column; justify-content:center; text-align:center; white-space:normal; gap:.5rem; min-width:0; min-height:112px; padding:.75rem .5rem; background:var(--surface); color:var(--text); border-color:var(--border); font-size:.8rem; line-height:1.35; overflow-wrap:anywhere; }
body.app-interface .cms-icon-grid .btn:hover,body.app-interface .cms-media-grid .btn:hover { background:var(--surface-subtle); border-color:var(--brand-ink); }
body.app-interface .cms-icon-grid .btn[aria-pressed=true] { background:var(--accent-soft); border:2px solid var(--brand-ink); }
.cms-icon-grid img { width:36px; height:36px; flex:none; }
.cms-icon-selected { font-size:.7rem; font-weight:700; }
.cms-icon-pagination { display:flex; align-items:center; justify-content:space-between; gap:.5rem; font-size:.875rem; }
body.app-interface .cms-icon-trigger.btn { justify-content:flex-start; gap:.75rem; text-align:left; white-space:normal; overflow-wrap:anywhere; }
.cms-media-grid { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); margin:1rem 0; }
.cms-media-grid img { width:100%; height:100px; object-fit:contain; }
.cms-editor summary:focus-visible,.cms-icon-results:focus-visible { outline:3px solid var(--focus-ring); outline-offset:3px; }
.cms-help { color:var(--text-muted); }
.cms-error { color:var(--error); }
.cms-editor .jodit-container { max-width:100%; min-width:0 !important; }
.cms-editor .jodit-toolbar__box { position:static !important; }
.rte-fallback { color:var(--warning); padding:.5rem; }
@media(max-width:800px) {
    .cms-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .cms-editor__bar { position:static; }
    .cms-editor__status { flex-basis:100%; }
    .cms-icon-filters { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
    .cms-icon-filters>.btn { grid-column:1 / -1; justify-self:start; }
}
@media(max-width:480px) {
    body.app-interface .cms-tabs .btn { font-size:.8rem; padding:.7rem; }
    .cms-editor__bar>.btn { flex:1 1 100%; }
    .cms-item { padding:.65rem; }
    .cms-step,.cms-document,.cms-partner { padding:1rem; }
    .cms-modal { padding:.75rem; width:calc(100% - 1rem); max-height:calc(100dvh - 1rem); }
    .cms-icon-picker[open] { height:calc(100dvh - 1rem); gap:.5rem; }
    .cms-icon-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .cms-icon-filters { grid-template-columns:minmax(0,1fr); gap:.5rem; }
    .cms-icon-filters label { font-size:.8rem; }
    .cms-icon-current { padding:.4rem; font-size:.8rem; }
    .cms-icon-current img { width:28px; height:28px; }
    .cms-icon-pagination { flex-wrap:wrap; }
    .cms-icon-pagination>span { order:-1; width:100%; text-align:center; }
}
@media(max-height:500px) { .cms-icon-current { display:none; } .cms-icon-picker[open] { gap:.35rem; padding:.65rem; } .cms-icon-picker .cms-modal__head h2 { font-size:1.1rem; } }
