/* MOFT Noticia window, shared by Novedades and Encargar (note.js). Layer on top of home.css. */

/* ---------- Noticia window ----------
   Light panel with the menu's frame (3px border, hard brand shadow) over the same darkened, blurred screen.
   The photo stays at the top, the text scrolls inside, Cerrar sits at the bottom. */
.note{width:min(92vw,560px);max-height:88dvh;margin:auto;padding:0;border:3px solid var(--moft-cacao);border-radius:var(--moft-radius-card);background:var(--moft-whipped-cream);color:var(--moft-text-on-light);box-shadow:var(--sh-panel) var(--moft-chocolate-deep);font-family:var(--moft-font);overflow:hidden}
.note[open]{display:flex}
.note::backdrop{background:color-mix(in srgb,var(--moft-tiramisu) 72%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.note__inner{display:flex;flex-direction:column;width:100%;max-height:calc(88dvh - 6px);min-height:0}
.note__top{position:relative;flex:none}
.note__ph{aspect-ratio:16/9;max-height:34dvh;width:100%;border-radius:0}
/* Cerrar on the photo: the header-pill build on the light ground */
.note__x{position:absolute;z-index:3;top:var(--moft-space-3);right:var(--moft-space-3);min-height:44px;padding:0 var(--moft-space-4);border:2px solid var(--moft-cacao);border-radius:var(--moft-radius-pill);background:var(--moft-whipped-cream);color:var(--moft-text-on-light);box-shadow:var(--sh-pill) var(--moft-chocolate-deep);font:inherit;font-size:var(--moft-size-small);font-weight:var(--moft-weight-black);letter-spacing:.05em;cursor:pointer}
.note__x:hover{background:var(--moft-salty-caramel)}
.note__x:active{transform:translate(3px,4px);box-shadow:none}
.note__scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:var(--moft-space-5);display:grid;align-content:start;gap:var(--moft-space-3)}
.note__scroll:focus-visible{outline:3px solid var(--moft-caramelo);outline-offset:-3px}
.note__t{font-family:var(--font-display);font-weight:900;font-variation-settings:"SOFT" 100,"WONK" 0;font-synthesis:none;font-size:var(--moft-size-h2);line-height:1.15;letter-spacing:.02em;text-wrap:balance}
.note__text{display:grid;gap:var(--moft-space-4);font-size:var(--moft-size-body);line-height:1.6;max-width:62ch}
.note__foot{flex:none;padding:var(--moft-space-4) var(--moft-space-5) var(--moft-space-5);border-top:2px dotted var(--moft-chocolate-light)}
.note__foot .moft-btn{width:100%;justify-content:center}

@media (min-width:768px){.note__foot .moft-btn{width:auto}}
@media (min-width:1024px){.note{width:min(80vw,640px)}}
