/* BLOTHOR v3 · primitives, independent of any framework. Explicit bt-* classes; the kit's (0.1.0), then what was
   added here: the theme control, the notice, the hidden-but-read text and the apps' background. */
/* The kit stops at 42 px; the owner asked for larger titles on a wide screen (2026-10-09). A phone keeps its 26. */
[data-blothor] .bt-heading{font-family:var(--bt-display);font-weight:400;line-height:1.2;letter-spacing:-.035em;font-size:clamp(26px,4.6vw,55px)}
[data-blothor] .bt-reading{font-family:var(--bt-reading);color:var(--bt-body);line-height:1.8;max-width:65ch}
[data-blothor] .bt-muted{color:var(--bt-muted)}
[data-blothor] .bt-kicker{font:400 11px/1.5 var(--bt-display);letter-spacing:.12em;color:var(--bt-earth)}
[data-blothor] .bt-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:var(--bt-touch);padding:12px 18px;border:1px solid var(--bt-primary);border-radius:var(--bt-radius-control);background:var(--bt-primary);color:var(--bt-on-primary);font:400 13px/1.5 var(--bt-display);cursor:pointer;text-decoration:none;transition:transform var(--bt-fast),background-color var(--bt-fast),box-shadow var(--bt-fast)}
[data-blothor] .bt-button.secondary{background:transparent;border-color:var(--bt-input-border);color:var(--bt-text)}
/* The kit told light from dark here with a selector; with an automatic theme that is a token's job. */
[data-blothor] .bt-button.danger{background:var(--bt-danger);border-color:var(--bt-danger);color:var(--bt-on-danger)}
[data-blothor] .bt-button:disabled{opacity:.45;cursor:not-allowed}
[data-blothor] .bt-button.pill{border-radius:var(--bt-radius-pill)}
[data-blothor] .bt-card{padding:24px;border:1px solid var(--bt-border);border-radius:var(--bt-radius-card);background:var(--bt-panel);box-shadow:0 3px 12px #14121003}
[data-blothor] .bt-field{display:flex;flex-direction:column;gap:8px;font:400 12px/1.5 var(--bt-display)}
[data-blothor] .bt-input{box-sizing:border-box;width:100%;min-height:var(--bt-field-height);padding:12px 14px;border:1px solid var(--bt-input-border);border-radius:var(--bt-radius-control);background:var(--bt-input);color:var(--bt-text);font:400 16px/1.5 var(--bt-reading)}
[data-blothor] .bt-input[aria-invalid='true']{border-color:var(--bt-danger)}
[data-blothor] .bt-error{color:var(--bt-danger);font:400 12px/1.5 var(--bt-reading)}
[data-blothor] .bt-chip{display:inline-flex;align-items:center;padding:5px 12px;border-radius:var(--bt-radius-pill);background:var(--bt-active);color:var(--bt-text);font:400 11px/1.5 var(--bt-display)}
[data-blothor] .bt-dialog{box-sizing:border-box;width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:28px;border:1px solid var(--bt-border);border-radius:var(--bt-radius-modal);background:var(--bt-bg);color:var(--bt-text);box-shadow:0 24px 80px #14121016}
[data-blothor] .bt-dialog::backdrop{background:var(--bt-scrim);backdrop-filter:blur(3px)}
[data-blothor] .bt-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
[data-blothor] :is(.bt-button,.bt-input,a):focus-visible{outline:2px solid var(--bt-focus);outline-offset:3px;box-shadow:0 0 0 4px var(--bt-focus-ring)}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){[data-blothor] .bt-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #466b5c12}}
[data-blothor] .bt-button:active:not(:disabled){transform:none;transition-duration:90ms}
@media(max-width:480px){[data-blothor] .bt-card{padding:18px 16px}[data-blothor] .bt-dialog{padding:22px 18px}}
@media(prefers-reduced-motion:reduce){[data-blothor] *,[data-blothor] *::before,[data-blothor] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ── Added here ─────────────────────────────────────────────────────────────────────────────────────────── */
/* A notice: a line down its left side, never a coloured box. Its words say what it is; the colour only helps. */
[data-blothor] .bt-notice{margin:0;padding:2px 0 2px 16px;border-left:2px solid var(--bt-earth);color:var(--bt-body);font:400 14px/1.7 var(--bt-reading)}
[data-blothor] .bt-notice.ok{border-left-color:var(--bt-primary)}
[data-blothor] .bt-notice.danger{border-left-color:var(--bt-danger)}
[data-blothor] .bt-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* The theme control: three positions (automatic, light, dark). Plain radio buttons, so the keyboard and a screen
   reader get them for free; js/theme.js finds it by `data-bt-theme` and keeps it in step with the choice.
     <div class="bt-theme" role="radiogroup" aria-label="Tema" data-bt-theme>
       <label><input type="radio" name="bt-theme" value="auto"><span>Automático</span></label> … light, dark
     </div> */
[data-blothor] .bt-theme{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--bt-input-border);border-radius:var(--bt-radius-control);background:var(--bt-input)}
[data-blothor] .bt-theme label{position:relative;display:flex;flex:1 1 auto}
[data-blothor] .bt-theme input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
[data-blothor] .bt-theme span{display:flex;flex:1;align-items:center;justify-content:center;min-height:calc(var(--bt-touch) - 8px);padding:0 12px;border-radius:7px;color:var(--bt-muted);font:400 12px/1.5 var(--bt-display);white-space:nowrap;transition:background-color var(--bt-fast),color var(--bt-fast)}
[data-blothor] .bt-theme input:checked + span{background:var(--bt-active);color:var(--bt-text);box-shadow:inset 0 0 0 1px var(--bt-border)}
[data-blothor] .bt-theme input:focus-visible + span{outline:2px solid var(--bt-focus);outline-offset:1px}
/* The apps' background, as the owner chose it in his laboratory (and confirmed on 2026-10-09): a faint grid and two
   slow «bloops», one green and one earth. One empty element, first in <body>; `grid` and `bloops` are separate so a
   screen can take only one. It sits behind everything and never takes a click. Still when the device asks for
   less movement (the rule above).
     <div class="bt-backdrop grid bloops" aria-hidden="true"></div> */
[data-blothor] .bt-backdrop{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
[data-blothor] .bt-backdrop.grid{background-image:linear-gradient(var(--bt-grid) 1px,transparent 1px),linear-gradient(90deg,var(--bt-grid) 1px,transparent 1px);background-size:32px 32px}
/* The green one sits at the left edge of a wide screen (the owner, 2026-10-09: centred, it sat under the content). */
[data-blothor] .bt-backdrop.bloops::before,[data-blothor] .bt-backdrop.bloops::after{content:'';position:absolute;top:3%;left:-8%;width:min(55vw,720px);height:min(65vh,600px);border-radius:38% 62% 56% 44% / 44% 34% 66% 56%;background:var(--bt-primary);opacity:var(--bt-bloop-green);filter:blur(65px);animation:bt-bloop-drift 32s ease-in-out infinite alternate}
[data-blothor] .bt-backdrop.bloops::after{top:50%;left:auto;right:-12%;width:min(45vw,600px);border-radius:68% 32% 35% 65% / 35% 64% 36% 65%;background:var(--bt-earth);opacity:var(--bt-bloop-earth);animation-delay:-16s}
@keyframes bt-bloop-drift{to{translate:25px 35px;scale:1.07;border-radius:62% 38% 35% 65% / 56% 66% 34% 44%}}
@media(max-width:580px){[data-blothor] .bt-backdrop.bloops::before{left:-20%;width:85vw;height:45vh;filter:blur(45px)}[data-blothor] .bt-backdrop.bloops::after{width:70vw}}
