:is([data-theme="mono"],[data-color-scheme="dark"]) .alert-info{
     background:color-mix(in oklab, #00a5ef 18%, var(--card));
     border-left-color:#38bdf8;
}
 :is([data-theme="mono"],[data-color-scheme="dark"]) .alert-success{
     background:color-mix(in oklab, #00c758 18%, var(--card));
     border-left-color:#4ade80;
}
 :is([data-theme="mono"],[data-color-scheme="dark"]) .alert-warning{
     background:color-mix(in oklab, #ffb020 18%, var(--card));
     border-left-color:#facc15;
}
 :is([data-theme="mono"],[data-color-scheme="dark"]) .alert-danger{
     background:color-mix(in oklab, #ff3b5c 18%, var(--card));
     border-left-color:#f87171;
}
 .box{
     border:0;
     padding:14px 16px;
     border-radius:0;
     background:var(--bg-elev);
     margin:14px 0;
}
 .expand{
     border:0;
     border-radius:0;
     overflow:hidden;
     margin:14px 0;
}
 .expand-header{
     /* Reset browser button chrome so a real <button> looks identical to the old div. */
     width:100%;
     border:none;
     text-align:left;
     font-family:inherit;
     color:inherit;
     background:var(--bg-elev);
     padding:12px 16px;
     cursor:pointer;
     font-weight:600;
     display:flex;
     justify-content:space-between;
     align-items:center;
     font-size:13px;
}
/* The "+" toggle glyph rotates into an "x" on open, echoing the same open/close state the
   content transition below shows - a cheap, directly-motivated micro-interaction rather than
   decoration. */
 .expand-header span:last-child{
     display:inline-block;
     transition:transform .3s ease;
}
 .expand.open .expand-header span:last-child{
     transform:rotate(45deg);
}
/* grid-template-rows 0fr -> 1fr (not max-height) so this animates smoothly regardless of
   how tall the content actually is - a short paragraph and a pdf shortcode's 700px embed
   both need to work here, and a fixed max-height cap would make the common short case snap
   open almost instantly (the transition covers the whole 0-to-cap range in a fixed duration,
   so real content miles shorter than the cap finishes "visually" long before the transition
   itself ends). expand-content-inner is the single grid item the 0fr/1fr track actually
   sizes against; background/padding live on it since the outer track is 0px tall while
   closed and would otherwise clip them oddly. */
 .expand-content{
     display:grid;
     grid-template-rows:0fr;
     transition:grid-template-rows .4s ease;
     background:var(--card);
}
 .expand-content-inner{
     overflow:hidden;
     min-height:0;
     opacity:0;
     padding:0 16px;
     transition:opacity .25s ease, padding .4s ease;
}
 .expand.open .expand-content{
     grid-template-rows:1fr;
}
 .expand.open .expand-content-inner{
     opacity:1;
     padding:14px 16px;
     transition:opacity .3s ease .15s, padding .4s ease;
}
 .pdf-embed{
     border:1px solid var(--border-soft);
     background:var(--bg-elev);
     padding:8px;
     margin:14px 0;
}
 .pdf-embed object,.pdf-embed embed{
     display:block;
     border:1px solid var(--border);
     background:var(--card);
}
 .pdf-embed-caption{
     margin-top:8px;
     font-size:13px;
     color:var(--muted-foreground);
     text-align:center;
}
 .pdf-embed-open{
     display:none;
     text-align:center;
     padding:12px 16px;
     border:1px solid var(--border);
     background:var(--card);
     color:var(--foreground);
     text-decoration:none;
     font-size:13px;
     font-weight:600;
}
 .pdf-embed-open:hover{
     background:var(--foreground);
     color:var(--background);
     border-color:var(--foreground);
}
 .swiper{
     display:flex;
     gap:12px;
     overflow:auto;
     scroll-snap-type:x mandatory;
     padding-bottom:6px;
}
 .swiper-item{
     min-width:280px;
     scroll-snap-align:start;
     background:var(--card);
     border:1px solid var(--border);
     border-radius:0;
     padding:14px;
}
