/* Guematría (02/11/2026): colours and type of alfabetohebreo.com, as in miembros.alfabetohebreo.com (app/globals.css):
   Fira Sans Condensed, turquoise #5CC3D0 / #31A3B1 / #2FA3B0, blue #124E82, text #666, column of 1100 px.
   --red keeps its name from the rueda but is the turquoise accent here. */
:root {
  --bg: #FFFFFF;
  --paper: #FFFFFF;
  --ink: #555555;
  --ink-2: #666666;
  --line: #CCCCCC;
  --line-2: #CCCCCC;
  --red: #31A3B1;
  --orange: #124E82;
  --grey1: #E3F1F3;
  --grey2: #F2F9FA;
  --accent: #31A3B1;
  --hl: #B3261E;
  --turq-light: #5CC3D0;
  --turq-dark: #2FA3B0;
  --blue: #124E82;
  --sans: 'Fira Sans Condensed', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Fira Sans Condensed', 'Helvetica Neue', Arial, sans-serif;
  --hebrew: 'Frank Ruhl Libre', 'Times New Roman', serif;
  --sym: 'Noto Sans Symbols', 'Segoe UI Symbol', 'Apple Symbols', serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
.he { font-family: var(--hebrew); direction: rtl; unicode-bidi: isolate; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site { max-width: 1280px; margin: 0 auto; background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
.site > main { flex: 1 0 auto; }
.site > footer { width: 100%; }

/* ---------- header (as 72shemot.com) ---------- */
.cabecera { border-top: 5px solid var(--red); margin: 0 16px; padding: 12px 8px 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.cabecera .logo { font-size: clamp(30px, 5vw, 40px); color: var(--red); line-height: 1.1; text-decoration: none; }
.cabecera .logo:hover { text-decoration: underline; }
.cabecera .logo-he { font-family: var(--hebrew); font-size: clamp(26px, 4vw, 34px); color: #8A8A8A; font-weight: 700; }
.cabecera p { flex-basis: 100%; margin: 0; color: var(--ink-2); font-size: 15px; }
.botonera { margin: 0 16px; background: var(--red); border-radius: 0 0 22px 22px; padding: 6px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.botonera h1 { margin: 0 auto 0 8px; color: #fff; font-size: 17px; font-weight: normal; }
.tools { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.btn { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; }
.btn:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.botonera .btn { background: transparent; border-color: transparent; color: #fff; }
.botonera .btn:hover { color: #FFD9B0; }
.botonera .btn[aria-pressed="true"] { background: #fff; color: var(--red); }
.btn[aria-pressed="true"] { background: var(--red); color: #fff; border-color: var(--red); }
.btn:focus-visible, .name:focus-visible, .name-card:focus-visible, .lang button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.lang { display: inline-flex; border: 1px solid rgba(255,255,255,.6); border-radius: 6px; overflow: hidden; }
.lang button { min-height: 44px; min-width: 46px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--red); font-weight: bold; }
.top-plain { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; max-width: 1280px; margin: 0 auto; }
.top-plain .lang { border-color: var(--line-2); }
.top-plain .lang button { color: var(--ink); }
.top-plain .lang button[aria-pressed="true"] { background: var(--red); color: #fff; }

/* ---------- wheel ---------- */
main { padding: 16px 16px 32px; }
.wheel-wrap { width: min(100%, 1100px); margin: 0 auto; aspect-ratio: 1; }
#wheel { width: 100%; height: 100%; display: block; }
#wheel text { font-family: var(--serif); }
#wheel text:not([fill]) { fill: var(--ink); }
#wheel .heb { font-family: var(--hebrew); font-weight: 700; }
#wheel .sym { font-family: var(--sym); }
.name { cursor: pointer; }
.name .hit { fill: transparent; }
.name:hover .hit, .name:focus .hit { fill: rgba(184, 10, 0, .14); }
.hint { text-align: center; color: var(--ink-2); font-size: 16px; margin: 8px 0 0; }

/* ---------- list ---------- */
.list { direction: rtl; display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 8px; margin-top: 24px; }
.name-card { direction: ltr; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 0; border-radius: 6px; background: var(--grey2); cursor: pointer; text-align: left; }
.name-card:nth-child(even) { background: var(--grey1); }
.name-card:hover { box-shadow: inset 0 0 0 2px var(--red); }
.name-card .num { color: var(--ink-2); font-size: 14px; min-width: 22px; }
.name-card .he { font-size: 24px; font-weight: 700; color: var(--accent); }
.name-card .t { flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--ink-2); line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.name-card .he { flex: none; }
.name-card .num { flex: none; }

/* ---------- ficha ---------- */
dialog.ficha { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); }
dialog.ficha::backdrop { background: rgba(31, 27, 22, .55); }
.f-head { display: flex; align-items: center; gap: 16px; padding: 14px 20px; position: sticky; top: 0; background: var(--red); color: #fff; z-index: 1; }
.f-num { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; font-size: 24px; font-style: italic; flex: none; }
.f-name { font-size: 54px; line-height: 1; color: #fff; font-weight: 700; }
.f-title { flex: 1; min-width: 0; }
.f-title h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.f-title p { margin: 2px 0 0; color: #FFE3D6; font-size: 15px; }
.f-close { margin-left: auto; min-width: 44px; min-height: 44px; border: 1px solid #fff; background: transparent; color: #fff; border-radius: 8px; cursor: pointer; font-size: 22px; line-height: 1; }
.f-body { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 18px; }
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.f-cell { background: var(--grey2); border-radius: 8px; padding: 8px 12px; }
.f-cell dt { font-size: 13px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .6px; }
.f-cell dd { margin: 0; font-size: 18px; }
.f-cell .he { font-size: 22px; }
.f-sec h3 { margin: 0 0 6px; font-size: 15px; color: var(--red); font-weight: normal; }
.f-app { font-size: 19px; margin: 0; }
.verse { font-size: 30px; line-height: 1.7; text-align: right; margin: 0; }
.verse .hl { color: var(--hl); font-size: 1.25em; }
.translit { font-style: italic; margin: 4px 0 0; }
.trans { margin: 4px 0 0; color: var(--ink-2); }
.f-note { font-size: 14px; color: var(--ink-2); }
.f-foot { font-size: 12px; color: #6F7071; border-top: 1px solid #EDEDED; padding-top: 10px; }

footer { max-width: 1280px; margin: 0 auto; padding: 14px 16px; font-size: 12px; color: #6F7071; background: var(--bg); text-align: center; }
footer p { margin: 4px 0; }

/* ---------- login / admin ---------- */
.card { max-width: 420px; margin: 8vh auto; padding: 28px 24px; background: var(--paper); border-top: 5px solid var(--red); border-radius: 0 0 12px 12px; }
.card h1 { margin: 0 0 4px; font-size: 28px; color: var(--red); font-weight: normal; }
.card p { margin: 0 0 16px; color: var(--ink-2); }
label { display: block; font-size: 15px; margin: 12px 0 4px; }
input, textarea { width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; font-size: 17px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--ink); }
textarea { min-height: 140px; font-family: ui-monospace, Menlo, monospace; font-size: 15px; }
.primary { width: 100%; margin-top: 18px; justify-content: center; background: var(--red); color: #fff; border-color: var(--red); }
.primary:hover { background: #8F0800; color: #fff; }
.msg { min-height: 24px; margin-top: 12px; color: var(--hl); }
.msg.ok { color: #2F6B2F; }
.admin h1 { color: var(--red); font-weight: normal; }
.admin { max-width: 900px; margin: 0 auto; padding: 16px; }
.admin table { width: 100%; border-collapse: collapse; background: var(--paper); }
.admin th { background: var(--red); color: #fff; font-weight: normal; }
.admin th, .admin td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #fff; }
.admin tbody tr:nth-child(odd) { background: var(--grey1); }
.admin tbody tr:nth-child(even) { background: var(--grey2); }
.admin .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.panel { background: var(--paper); border: 1px solid var(--grey1); border-radius: 12px; padding: 16px; margin: 16px 0; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .f-name { font-size: 42px; }
  .verse { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }

/* ---------- month card ---------- */
.f-num.sym-big { font-family: var(--sym); font-style: normal; font-size: 30px; }
.perm-big { text-align: center; background: linear-gradient(180deg, #03050C 0%, #0E1F45 50%, #1D428C 100%); border-radius: 10px; padding: 22px 12px 16px; color: #fff; }
.perm-big .perm { margin: 0; font-size: clamp(64px, 15vw, 120px); line-height: 1.2; color: #fff; font-weight: 700; display: flex; justify-content: center; gap: .14em; }
.perm-big .pl { position: relative; display: inline-block; padding-top: .28em; }
.perm-big .flame { position: absolute; top: .2em; left: 50%; width: .12em; height: .4em; transform: translateX(-50%); transform-origin: 50% 100%; filter: drop-shadow(0 0 .08em rgba(255, 190, 70, .8)); animation: flicker 2.2s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: translateX(-50%) scale(1, 1) rotate(0deg); } 25% { transform: translateX(-50%) scale(.94, 1.06) rotate(-2deg); } 50% { transform: translateX(-50%) scale(1.03, .96) rotate(1.5deg); } 75% { transform: translateX(-50%) scale(.97, 1.04) rotate(-1deg); } }
@media (prefers-reduced-motion: reduce) { .perm-big .flame { animation: none; } }
.perm-big .perm-tr { margin: 4px 0 0; font-size: 22px; font-style: italic; color: #fff; }
.perm-big .perm-label { margin: 2px 0 0; font-size: 13px; color: #D6E0F5; text-transform: uppercase; letter-spacing: .6px; }
.f-cell .letter-big { font-size: 40px; font-weight: 700; color: var(--red); line-height: 1.1; }
.six { direction: rtl; display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 8px; }
.phrase { background: var(--grey2); border-radius: 8px; padding: 12px 16px; margin-top: 10px; text-align: center; }
.phrase .ph-he { margin: 0; font-size: 26px; line-height: 1.5; }
.phrase .ph-perm { color: var(--red); font-weight: 700; }
.phrase .ph-tr { margin: 2px 0 0; font-style: italic; color: var(--ink-2); }
.phrase .ph-tr strong { color: var(--red); font-style: normal; }

/* ---------- birth Name calculator ---------- */
.calc { background: var(--grey2); border-radius: 12px; padding: 14px 16px; margin: 0 auto 16px; max-width: 1100px; }
.calc h2 { margin: 0 0 8px; font-size: 20px; color: var(--red); font-weight: normal; }
.calc-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.fld { display: flex; flex-direction: column; min-width: 150px; }
.fld.sm { min-width: 90px; width: 100px; }
.fld.grow { flex: 1 1 220px; }
.fld label { margin: 0 0 4px; font-size: 14px; color: var(--ink-2); }
/* Same look as the text fields in every browser (Safari draws its own, smaller, select otherwise). */
select { min-height: 44px; padding: 8px 36px 8px 12px; font: inherit; font-size: 17px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink); -webkit-appearance: none; appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23666666' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; }
.primary-inline { background: var(--red); color: #fff; border-color: var(--red); }
.primary-inline:hover { background: #8F0800; color: #fff; }
.primary-inline:disabled { opacity: .6; cursor: wait; }
.calc .msg { min-height: 0; margin-top: 6px; }
.calc-res { margin-top: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: #F2F9FA; border: 2px solid var(--red); border-radius: 12px; box-shadow: 0 4px 16px rgba(49,163,177,.15); }
.res-main { display: flex; align-items: center; gap: 16px; }
.res-he { font-size: 56px; font-weight: 700; color: var(--red); line-height: 1; }
.res-num { margin: 0 0 2px; font-size: 19px; font-weight: 700; color: var(--red); }
.res-title { margin: 0; font-size: 22px; }
.res-pos { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); }
.name.sel .hit { fill: rgba(184, 10, 0, .30); }
.name.sel text { font-weight: 700; }

/* ---------- PDF page (A4 at 96 dpi), rendered off-screen ---------- */
.pdf-holder { position: fixed; left: -10000px; top: 0; }
.pdf-page { width: 794px; height: 1123px; box-sizing: border-box; padding: 0 56px 40px; background: #fff; color: #333; font-family: var(--sans); display: flex; flex-direction: column; }
.pdf-top { border-top: 8px solid var(--red); padding: 18px 0 10px; display: flex; align-items: baseline; gap: 16px; }
.pdf-logo { font-size: 40px; color: var(--red); }
.pdf-logo-he { font-size: 34px; color: #8A8A8A; font-weight: 700; }
.pdf-bar { background: var(--red); color: #fff; border-radius: 0 0 18px 18px; padding: 10px 18px; font-size: 20px; }
.pdf-person { margin: 18px 0 0; font-size: 22px; }
.pdf-pos { margin: 6px 0 0; font-size: 15px; color: #666; }
.pdf-name { margin-top: 18px; text-align: center; background: linear-gradient(180deg, #03050C 0%, #0E1F45 50%, #1D428C 100%); border-radius: 12px; padding: 22px 12px 14px; color: #fff; }
.pdf-name .perm { margin: 0; font-size: 120px; line-height: 1.2; color: #fff; font-weight: 700; display: flex; justify-content: center; gap: .14em; font-family: var(--hebrew); direction: rtl; }
.pdf-name .pl { position: relative; display: inline-block; padding-top: .28em; }
.pdf-name .flame { position: absolute; top: .2em; left: 50%; margin-left: -.06em; width: .12em; height: .4em; transform: none !important; animation: none !important; }
.pdf-num { margin: 6px 0 0; font-size: 16px; color: #D6E0F5; }
.pdf-h { margin: 20px 0 4px; font-size: 26px; color: var(--red); font-weight: normal; }
.pdf-app { margin: 0; font-size: 17px; }
.pdf-psalm { margin-top: 16px; background: var(--grey2); border-radius: 10px; padding: 12px 16px; }
.pdf-label { margin: 0; font-size: 14px; color: var(--red); }
.pdf-psalm .verse { font-size: 30px; }
.pdf-info { margin-top: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pdf-cell { background: var(--grey2); border-radius: 8px; padding: 8px 12px; display: flex; flex-direction: column; }
.pdf-k { font-size: 12px; color: #666; text-transform: uppercase; letter-spacing: .5px; }
.pdf-v { font-size: 17px; font-family: var(--sans), var(--hebrew); }
.pdf-foot { margin-top: auto; border-top: 1px solid #E0E0E0; padding-top: 10px; font-size: 11px; line-height: 1.45; color: #555; text-align: center; }
.pdf-foot p { margin: 2px 0; }
.pdf-url { color: var(--red); font-size: 14px; }

/* ---------- letters of the month on the Star of David ---------- */
.mstar-sec h3 { text-align: center; }
.mstar { position: relative; width: min(280px, 70vw); margin: 0 auto; }
.mstar-cell .mstar { width: 96px; margin: 4px 0 0; }
.mstar-cell dd { display: flex; align-items: center; gap: 10px; }
.mstar-cell .mstar-letters { font-size: 21px; }
.mstar-name { font-size: 16px; }
.mstar img { display: block; width: 100%; height: auto; }
.mstar-letters { position: absolute; left: 0; right: 0; top: 55%; transform: translateY(-58%); direction: ltr; display: flex; justify-content: center; gap: .06em; color: #fff; font-weight: 700; font-size: min(84px, 20vw); line-height: 1.2; }
.mstar-letters .pl { position: relative; display: inline-block; padding-top: .28em; }
.mstar-letters .flame { position: absolute; top: .2em; left: 50%; width: .12em; height: .4em; transform: translateX(-50%); transform-origin: 50% 100%; filter: drop-shadow(0 0 .08em rgba(255, 190, 70, .8)); animation: flicker 2.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .mstar-letters .flame { animation: none; } }
.pdf-book { font-size: 11px; color: #888; }

/* ---------- Name to meditate (two cells wide) ---------- */
.f-cell.medit { grid-column: span 2; background: linear-gradient(180deg, #03050C 0%, #0E1F45 50%, #1D428C 100%); color: #fff; text-align: center; }
.f-cell.medit dt { color: #D6E0F5; text-align: left; }
.f-cell .medit-name { margin: 0; font-size: 64px; line-height: 1.15; font-weight: 700; display: flex; justify-content: center; gap: .14em; color: #fff; }
.medit-name .pl { position: relative; display: inline-block; padding-top: .3em; }
.medit-name .flame { position: absolute; top: .2em; left: 50%; width: .12em; height: .4em; transform: translateX(-50%); transform-origin: 50% 100%; filter: drop-shadow(0 0 .08em rgba(255, 190, 70, .8)); animation: flicker 2.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .medit-name .flame { animation: none; } }
.f-cell .cell-letter { display: block; margin-top: 2px; font-size: 30px; line-height: 1.1; font-weight: 700; color: var(--red); text-align: left; }

/* Lit words: one text run, flames positioned by script */
.lit { padding-top: .3em; }
.lit:not(.mstar-letters) { position: relative; }
.lit .lit-text { letter-spacing: .08em; }

/* Same height for every box in a grid (each row takes the height of the tallest box) */
.f-grid, .list, .six { grid-auto-rows: 1fr; }

/* Info pop-up next to «Minutos» */
.info-wrap { position: relative; }
.lbl-row { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; }
.lbl-row label { margin: 0; }
.info-btn { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--red); background: #fff; color: var(--red);
  font: bold 13px/1 Georgia, serif; font-style: italic; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.info-btn:hover, .info-btn[aria-expanded="true"] { background: var(--red); color: #fff; }
.info-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.info-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; width: min(340px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--grey1); border-top: 3px solid var(--red); border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.15); padding: 10px 14px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.info-pop p { margin: 0 0 6px; }
.info-pop p:last-child { margin-bottom: 0; }
.info-pop .info-title { font-weight: bold; color: var(--red); }

/* Birth date mode */
.fld.sm2 { min-width: 130px; width: 150px; }
.fld.city { position: relative; min-width: 240px; }
.city-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 25; margin: 4px 0 0; padding: 4px 0; list-style: none;
  background: #fff; border: 1px solid var(--grey1); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.15); max-height: 300px; overflow-y: auto; }
.city-list li { padding: 7px 12px; cursor: pointer; font-size: 15px; line-height: 1.3; }
.city-list li .tz { display: block; font-size: 12px; color: var(--ink-2); }
.city-list li:hover, .city-list li[aria-selected="true"] { background: var(--grey2); }
.city-list li.none { cursor: default; color: var(--ink-2); font-size: 14px; }
.res-birth { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }

/* Instructions page */
.instr-main { max-width: 980px; margin: 0 auto; padding: 16px; }
.i-intro { font-size: 18px; color: var(--ink-2); margin: 8px 0 16px; }
.i-toc { background: var(--grey2); border-radius: 12px; padding: 12px 18px; margin-bottom: 20px; }
.i-toc h2 { margin: 0 0 6px; font-size: 18px; color: var(--red); font-weight: normal; }
.i-toc ol { margin: 0; padding-left: 22px; columns: 2 260px; column-gap: 28px; }
.i-toc li { margin: 3px 0; break-inside: avoid; }
.i-sec { border-top: 1px solid var(--grey1); padding: 18px 0; scroll-margin-top: 12px; }
.i-sec h2 { margin: 0 0 10px; font-size: 22px; color: var(--red); font-weight: normal; }
.i-sec h3 { margin: 14px 0 6px; font-size: 17px; }
.i-txt { line-height: 1.55; }
.i-txt ul, .i-txt ol { padding-left: 22px; }
.i-txt li { margin: 4px 0; }
.i-sec .he { font-family: 'Frank Ruhl Libre', serif; font-size: 1.15em; }
.i-sec figure { margin: 12px 0 0; }
.i-sec figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid var(--grey1); border-radius: 8px; box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.i-back { text-align: center; margin: 24px 0 8px; }

/* Login page: short description of the content */
.card.about { margin-top: -4vh; border-top-width: 3px; padding: 18px 24px; }
.card.about h2 { margin: 0 0 8px; font-size: 18px; color: var(--red); font-weight: normal; }
.card.about ul { margin: 0 0 10px; padding-left: 20px; line-height: 1.45; font-size: 15px; }
.card.about li { margin: 4px 0; }
.card.about .about-note { margin: 0; font-size: 14px; }

/* PDF: sign and planet letters in red */
.pdf-letter { color: var(--red); font-weight: 700; }

/* Admin: access limits and login records */
.admin-wide { max-width: 1240px; }
.lim-row { align-items: flex-end; }
.lim { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-2); }
.lim input { width: 170px; }
.users td { vertical-align: middle; font-size: 14px; }
.users td.mail { font-size: 15px; min-width: 200px; overflow-wrap: anywhere; }
.users input[type=number] { width: 80px; min-height: 36px; padding: 4px 6px; }
.users .acts { display: flex; flex-wrap: wrap; gap: 4px; }
.users .acts .btn { min-height: 34px; padding: 4px 10px; font-size: 14px; }
.st { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 13px; white-space: nowrap; }
.st.on { background: #E3F1E3; color: #2F6B2F; }
.st.off { background: #F6E0DF; color: var(--red); }
.st-sub { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.lim .inf { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); margin: 2px 0 0; }
.lim .inf input { width: auto; min-height: 0; }
.lim input:disabled { background: var(--grey2); }
.modes { display: flex; flex-direction: column; gap: 8px; }
.mode { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--grey1); border-radius: 8px; cursor: pointer; font-size: 15px; color: var(--ink-2); }
.mode strong { color: var(--ink); font-weight: 600; }
.mode input { margin-top: 4px; width: auto; min-height: 0; }
.mode:has(input:checked) { border-color: var(--red); background: #F2F9FA; }
.notes { width: 100%; min-height: 160px; resize: vertical; font: 15px/1.5 'Trebuchet MS', Helvetica, Arial, sans-serif; }
.notes-at { font-size: 13px; color: var(--ink-2); }
/* Admin help pop-up */
.link-btn { background: none; border: 0; padding: 0; color: var(--red); cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; }
.link-btn .info-btn { text-decoration: none; }
.help-dlg { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.help-dlg::backdrop { background: rgba(0,0,0,.45); }
.help-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--red); color: #fff; padding: 12px 16px; position: sticky; top: 0; }
.help-head h2 { margin: 0; font-size: 19px; font-weight: normal; color: #fff; }
.help-body { padding: 4px 20px 18px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.help-body h3 { margin: 16px 0 6px; font-size: 16px; color: var(--red); }
.help-body ul { margin: 0; padding-left: 20px; }
.help-body li { margin: 4px 0; }
.help-btns dt { font-weight: 600; margin-top: 8px; }
.help-btns dd { margin: 2px 0 0 0; color: var(--ink-2); }
/* Criterion note under the birth Name result */
.res-crit { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); font-style: italic; }
.pdf-crit { margin: 0 0 10px; font-size: 13px; color: #666; font-style: italic; }
#cCritWrap { min-width: 230px; }
/* Name card opened from the birth Name result */
.f-birth { margin: 0 0 14px; padding: 10px 14px; background: #F2F9FA; border-left: 4px solid var(--red); border-radius: 6px; font-size: 14px; color: var(--ink); }
.f-birth p { margin: 3px 0; }
.f-birth p:last-child { font-style: italic; color: var(--ink-2); }
#cResPar { white-space: pre-line; }
/* Result of «Calcular»: short glow when it appears */
@keyframes resFlash { 0% { box-shadow: 0 0 0 0 rgba(49,163,177,.45); } 70% { box-shadow: 0 0 0 14px rgba(49,163,177,0); } 100% { box-shadow: 0 4px 16px rgba(49,163,177,.15); } }
.calc-res.flash { animation: resFlash 1.4s ease-out 2; }
@media (prefers-reduced-motion: reduce) { .calc-res.flash { animation: none; } }
@media (max-width: 560px) { .res-main { flex-direction: column; align-items: flex-start; gap: 6px; } .res-he { font-size: 48px; } }

/* ---------- videos page ---------- */
.v-main { padding: 16px; }
.v-stage { max-width: 960px; margin: 0 auto 24px; }
.v-player { position: relative; aspect-ratio: 16 / 9; background: #111; border-radius: 12px; overflow: hidden; }
.v-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.v-player:fullscreen { border-radius: 0; }
.v-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #111; cursor: pointer; }
.v-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-facade:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.v-playbtn { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(184, 10, 0, .92); box-shadow: 0 4px 18px rgba(0,0,0,.35); transition: transform .15s; }
.v-playbtn::after { content: ''; position: absolute; left: 33px; top: 24px; border-style: solid; border-width: 18px 0 18px 28px; border-color: transparent transparent transparent #fff; }
.v-facade:hover .v-playbtn { transform: scale(1.08); }
.v-now { padding: 12px 4px 0; }
.v-now-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-start; justify-content: space-between; }
.v-now h2 { margin: 4px 0 0; flex: 1 1 300px; color: var(--red); font-weight: normal; font-size: 24px; line-height: 1.25; }
.v-now .v-meta { margin: 6px 0 0; }
.v-desc { margin: 8px 0 0; white-space: pre-line; color: var(--ink); }
.v-meta { color: var(--ink-2); font-size: 14px; }
.v-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.v-layout:has(> .v-side[hidden]) { grid-template-columns: 1fr; }   /* without categories the list uses the full width */
.v-side { background: var(--grey2); border-radius: 12px; padding: 12px; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.v-side h2 { margin: 0 0 6px 6px; font-size: 18px; color: var(--red); font-weight: normal; }
.v-side ul { list-style: none; margin: 0; padding: 0; }
.v-catbtn { width: 100%; min-height: 40px; display: flex; justify-content: space-between; gap: 8px; align-items: center; text-align: left; padding: 6px 10px; border: 0; border-radius: 6px; background: none; color: var(--ink); cursor: pointer; }
.v-catbtn:hover { color: var(--red); }
.v-catbtn[aria-current="true"] { background: var(--red); color: #fff; }
.v-catbtn .v-n { font-size: 13px; opacity: .75; }
.v-catbtn:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; }
.v-filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.v-filters .fld { display: flex; flex-direction: column; }
.v-filters .fld.grow { flex: 1 1 220px; }
.v-filters label { margin: 0 0 4px; font-size: 14px; color: var(--ink-2); }
.v-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 20px 0 12px; border-bottom: 2px solid var(--red); padding-bottom: 8px; }
.v-head h2 { margin: 0; font-size: 22px; color: var(--red); font-weight: normal; }
.v-count { color: var(--ink-2); font-size: 15px; }
.v-view { margin-left: auto; display: flex; gap: 4px; }
.v-view .btn { min-height: 38px; padding: 4px 10px; font-size: 15px; }
.v-list { list-style: none; margin: 0; padding: 0; direction: ltr; }
.v-list.v-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.v-list.v-rows { display: flex; flex-direction: column; gap: 12px; }
.v-card .v-link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; background: var(--paper); border: 1px solid var(--grey1); border-radius: 10px; overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.v-card .v-link:hover { border-color: var(--red); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.v-card .v-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.v-card.on .v-link { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.v-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #222; flex: none; }
.v-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-mini-play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(184, 10, 0, .88); opacity: .9; }
.v-mini-play::after { content: ''; position: absolute; left: 17px; top: 12px; border-style: solid; border-width: 10px 0 10px 15px; border-color: transparent transparent transparent #fff; }
.v-dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.8); color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 4px; }
.v-txt { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.v-title { font-weight: bold; color: var(--red); line-height: 1.3; }
.v-sum { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.v-tag { font-size: 12px; background: var(--grey2); border: 1px solid var(--grey1); border-radius: 10px; padding: 0 8px; color: var(--ink); }
.v-card .v-meta { font-size: 13px; }
.v-list.v-rows .v-link { flex-direction: row; }
.v-list.v-rows .v-thumb { width: 240px; }
.v-list.v-rows .v-txt { flex: 1; padding: 10px 14px; }
.v-list.v-rows .v-sum { -webkit-line-clamp: 3; }
.v-pages { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 22px 0 6px; }
.v-pages .btn { min-height: 40px; min-width: 40px; justify-content: center; padding: 4px 10px; }
.v-pages .btn.cur { background: var(--red); border-color: var(--red); color: #fff; }
.v-gap { align-self: center; padding: 0 4px; color: var(--ink-2); }
.v-main .msg { margin-top: 0; min-height: 0; }
.v-main .msg:empty { display: none; }
@media (max-width: 860px) {
  .v-layout { grid-template-columns: 1fr; }
  .v-side { display: none; }
}
@media (max-width: 560px) {
  .v-main { padding: 12px; }
  .v-now h2 { font-size: 20px; }
  .v-list.v-rows .v-thumb { width: 130px; }
  .v-list.v-rows .v-sum { display: none; }
  .v-filters .fld { flex: 1 1 140px; }
  .v-filters select { width: 100%; }
  .v-view { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .v-playbtn, .v-card .v-link { transition: none; } }

/* ---------- admin: videos ---------- */
.vf-url { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.vf-urlin { flex: 1 1 380px; }
.vf-urlin label { margin-top: 0; }
.vf-grid { display: grid; grid-template-columns: 300px 1fr; gap: 16px; margin-top: 14px; align-items: start; }
.vf-thumb { aspect-ratio: 16 / 9; background: var(--grey2); border: 1px dashed var(--line-2); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--ink-2); overflow: hidden; font-size: 14px; }
.vf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vf-tri { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 34px 1fr; gap: 6px 8px; align-items: center; }
.vf-tri legend { font-size: 15px; margin-bottom: 6px; padding: 0; }
.vf-tri label { margin: 0; font-size: 14px; color: var(--ink-2); }
.vf-desc { margin-top: 14px; align-items: start; }
.vf-desc label { padding-top: 10px; }
.vf-desc textarea { min-height: 70px; font: 15px/1.45 var(--sans); resize: vertical; }
.vf-note { font-size: 13px; color: var(--ink-2); margin: 6px 0 0; }
.vf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.vf-box { border: 1px solid var(--grey1); border-radius: 10px; padding: 10px 12px; margin: 0; min-width: 0; }
.vf-box legend { font-size: 15px; padding: 0 4px; }
.vf-box select { width: 100%; }
.vf-sub { border: 0; padding: 0; margin: 10px 0 0; }
.vf-sub legend { font-size: 15px; padding: 0; margin-bottom: 4px; }
.vf-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.vf-checks label, .vf-hide { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0; font-size: 15px; }
.vf-checks input, .vf-hide input { width: 18px; height: 18px; min-height: 0; margin: 0; }
.vf-hide { margin-top: 12px; }
.va-list { list-style: none; margin: 0; padding: 0; }
.va-item { display: grid; grid-template-columns: 128px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-bottom: 1px solid var(--grey1); }
.va-item:nth-child(odd) { background: var(--grey2); }
.va-item.off .va-thumb, .va-item.off strong { opacity: .5; }
.va-thumb { aspect-ratio: 16 / 9; background: #222; border-radius: 6px; overflow: hidden; display: block; }
.va-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.va-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.va-txt strong { color: var(--red); font-weight: bold; overflow-wrap: anywhere; }
.va-meta { font-size: 13px; color: var(--ink-2); }
.va-miss { font-size: 12px; color: var(--orange); }
.va-txt .st { align-self: flex-start; }
.va-item .acts { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.va-item .acts .btn { min-height: 34px; padding: 4px 10px; font-size: 14px; }
.va-empty { padding: 12px; color: var(--ink-2); }
.va-cats input { min-height: 36px; padding: 4px 8px; font-size: 15px; min-width: 140px; }
.va-cats .acts { display: flex; gap: 4px; }
.va-cats .acts .btn { min-height: 34px; padding: 4px 10px; font-size: 14px; }
@media (max-width: 700px) {
  .vf-grid { grid-template-columns: 1fr; }
  .va-item { grid-template-columns: 96px 1fr; }
  .va-item .acts { grid-column: 1 / -1; justify-content: flex-start; }
}

/* «Donate» button: white with red letters inside the red menu; red on the login page */
.botonera .btn.donate { background: #fff; color: var(--red); border-color: #fff; font-weight: bold; }
.botonera .btn.donate:hover { background: #FFD9B0; border-color: #FFD9B0; color: var(--red); }
.top-left { display: flex; flex-wrap: nowrap; gap: 8px; }
.top-plain { flex-wrap: wrap; }
.top-plain .lang { margin-left: auto; }
.top-plain .btn.donate { background: var(--red); color: #fff; border-color: var(--red); font-weight: bold; }
.top-plain .btn.donate:hover { background: #8F0800; border-color: #8F0800; color: #fff; }
.don-grid { display: grid; grid-template-columns: 170px 1fr; gap: 8px 12px; align-items: center; }
.don-grid label { margin: 0; }
@media (max-width: 560px) { .don-grid { grid-template-columns: 1fr; } }

/* Login page: small wheel turning slowly (one turn every 6 minutes, same direction as the wheel inside) */
.login-wheel { text-align: center; margin: 2vh 0 20px; }
.login-wheel img { width: 230px; height: 230px; border-radius: 50%; filter: drop-shadow(0 4px 14px rgba(0,0,0,.18)); animation: loginSpin 360s linear infinite; }
@keyframes loginSpin { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { .login-wheel img { animation: none; } }
@media (max-width: 560px) { .login-wheel img { width: 190px; height: 190px; } }
.login-wheel + .card { margin-top: 0; }
.crit-fixed { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--grey1); border-radius: 8px; background: var(--grey2); font-size: 17px; color: var(--ink); }
.forgot { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); text-align: center; }

.users select.acc-sel { width: auto; min-width: 118px; }

/* ---------- Reduced access («Reducido»): only the calculator ---------- */
.calc-hero, .calc-intro { display: none; }
/* Until the type of access is known, the page is not shown (no flash of the full layout for a reduced access). */
body.loading main { visibility: hidden; }
body.reduced .wheel-wrap, body.reduced .hint, body.reduced .list, body.reduced #spin, body.reduced .cabecera p { display: none; }
body.reduced main { padding-top: 28px; }
body.reduced .calc { max-width: 720px; padding: 24px 28px 26px; }
body.reduced .calc-hero { display: block; text-align: center; margin: 0 0 14px; }
body.reduced .calc-hero img { width: 200px; height: 200px; display: block; border-radius: 50%; filter: drop-shadow(0 4px 14px rgba(0,0,0,.18)); animation: loginSpin 360s linear infinite; }
body.reduced .hero-fast { display: inline-block; border-radius: 50%; }
/* «Calcular»: the outer box turns fast for 3 s on top of the slow turn of the image (no jump). */
body.reduced .hero-fast.go { animation: calcSpin 3s cubic-bezier(.2,.6,.3,1) forwards; }
@keyframes calcSpin { from { transform: rotate(0deg); } to { transform: rotate(-900deg); } }
body.reduced .calc h2 { text-align: center; font-size: 26px; margin-bottom: 6px; }
body.reduced .calc-intro:not([hidden]) { display: block; text-align: justify; color: var(--ink-2); margin: 0 auto 18px; max-width: 560px; }
body.reduced #cForm { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; align-items: end; margin-top: 14px; }
body.reduced #cForm .fld { min-width: 0; width: auto; }
body.reduced #cDateWrap { order: 1; }
body.reduced #cTimeWrap { order: 2; }
body.reduced #cCityWrap { order: 3; grid-column: 1 / -1; }
body.reduced #cCritWrap { order: 4; grid-column: 1 / -1; }
body.reduced #cForm > button[type=submit] { order: 5; grid-column: 1 / -1; justify-content: center; min-height: 50px; font-size: 19px; }
body.reduced .calc .msg { text-align: center; }
body.reduced .calc-res { margin-top: 18px; }
body.reduced .res-he { font-size: 76px; }
@media (prefers-reduced-motion: reduce) { body.reduced .calc-hero img, body.reduced .hero-fast.go { animation: none; } }
@media (max-width: 560px) {
  body.reduced main { padding-top: 16px; }
  body.reduced .calc { padding: 18px 16px 20px; }
  body.reduced .calc-hero img { width: 160px; height: 160px; }
  body.reduced .calc h2 { font-size: 22px; }
  body.reduced #cForm { grid-template-columns: 1fr; }
  body.reduced .res-he { font-size: 60px; }
}
.don-grid textarea.intro-ta { min-height: 110px; }

/* ---------- First 4 videos on the main page (both accesses) ---------- */
.calc-intro { white-space: pre-line; }
.home-videos { margin: 36px auto 0; }
body.reduced .home-videos { max-width: 720px; margin-top: 28px; }
.home-videos h2 { margin: 0 0 12px; font-size: 22px; color: var(--red); font-weight: normal; }
.hv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
body.reduced .hv-grid { grid-template-columns: repeat(2, 1fr); }
.hv-card { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; }
.hv-card:hover { text-decoration: none; color: var(--red); }
.hv-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.hv-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #1D1D1D; }
.hv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.hv-card:hover .hv-thumb img { transform: scale(1.04); }
.hv-play { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(49,163,177,.9); }
.hv-play::after { content: ''; position: absolute; left: 19px; top: 14px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.hv-dur { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.75); color: #fff; font-size: 13px; }
.hv-title { font-size: 15px; line-height: 1.35; }
.hv-more { text-align: center; margin: 16px 0 0; }
@media (prefers-reduced-motion: reduce) { .hv-thumb img { transition: none; } }
@media (max-width: 800px) { .hv-grid { grid-template-columns: repeat(2, 1fr); } }
.about-intro { margin: 0 0 14px; font-size: 16px; white-space: pre-line; line-height: 1.55; }

/* ---------- Admin panel of emails: wider page, one line per email (26/10/2026) ---------- */
.site.site-wide { max-width: 1840px; }
.site-wide .admin-wide { max-width: none; padding: 16px 24px; }
.users th { padding: 6px 8px; font-size: 14px; }
.users td { padding: 4px 8px; white-space: nowrap; }
.users td.mail { min-width: 0; overflow-wrap: normal; }
.users .st-sub { display: inline; margin: 0 0 0 6px; }
.users .st-sub + .st-sub::before { content: '· '; }
.users input[type=number] { width: 64px; min-height: 30px; padding: 2px 6px; font-size: 14px; }
.users select.acc-sel { min-width: 0; min-height: 30px; padding: 2px 28px 2px 8px; font-size: 14px; background-position: right 8px center; }
.users .acts { flex-wrap: nowrap; gap: 4px; }
.users .acts .btn { min-height: 28px; padding: 2px 8px; font-size: 13px; white-space: nowrap; }
.site > * { min-width: 0; }
/* Centred blocks (max-width + auto margins) take the full available width inside the flex column. */
.site > main, .site > .admin { width: 100%; }
/* The email stays visible when the list scrolls sideways on a narrow screen. */
/* Hidden labels (.sr-only) in the header stay inside the scrolling list instead of widening the page. */
.users th { position: relative; }
.users th:first-child, .users td.mail { position: sticky; left: 0; z-index: 1; background: inherit; }
.users th:first-child { background: var(--red); }
/* The buttons stay visible on the right when the list scrolls sideways. */
.users th:last-child, .users td.acts-td { position: sticky; right: 0; z-index: 1; background: inherit; box-shadow: -6px 0 6px -6px rgba(0,0,0,.25); }
.users th:last-child { background: var(--red); }
/* Rows with unsaved changes, and the bar to save them all at once. */
.users tbody tr.dirty { background: #FFF1A8; }
.users input.bad { border-color: var(--red); background: #FDECEA; }
.save-bar { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 10px; margin-top: 10px; padding: 10px 14px; background: #FFF1A8; border: 1px solid #E5CF5C; border-radius: 10px; box-shadow: 0 -4px 14px rgba(0,0,0,.12); }
.save-bar #saveCount { margin-right: auto; font-weight: bold; }
.save-bar .save-hint { color: var(--red); font-size: 14px; }
.save-bar .btn.save { background: var(--red); color: #fff; border-color: var(--red); }
.save-bar .btn.save:disabled { opacity: .5; cursor: not-allowed; }
.users .acts .btn.icon-del { min-width: 34px; padding: 2px 6px; justify-content: center; color: var(--red); border-color: transparent; background: transparent; }
.users .acts .btn.icon-del:hover { background: #FDECEA; border-color: var(--red); }
/* Pages of the email list. */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 8px 0; font-size: 14px; }
.pager .pg-info { color: var(--ink-2); }
.pager .pg-nav { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.pager .pg-btn { min-height: 30px; min-width: 32px; padding: 2px 8px; font-size: 14px; justify-content: center; }
.pager .pg-btn.cur { background: var(--red); color: #fff; border-color: var(--red); opacity: 1; }
.pager .pg-btn:disabled:not(.cur) { opacity: .4; cursor: default; }
.pager .pg-gap { padding: 0 2px; color: var(--ink-2); }
.pager .pg-per { margin: 0 0 0 auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.pager .pg-per select { min-height: 30px; padding: 2px 26px 2px 8px; font-size: 14px; background-position: right 8px center; width: auto; }
/* Sortable column titles of the email list. */
.users th .th-sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; color: #fff; }
.users th .th-sort:hover { text-decoration: underline; }
.users th .th-sort:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 3px; }
.users th .sort-ic { font-size: 11px; opacity: .75; white-space: pre; }
.users th[aria-sort="ascending"] .sort-ic, .users th[aria-sort="descending"] .sort-ic { opacity: 1; }

/* ---------- Login page (27/10/2026): video and explanation on the left, «Entrar» and «Qué encontrarás dentro» on the right ---------- */
.lg-main { padding: 20px 16px 36px; }
.lg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "video card" "video about"; grid-template-rows: auto 1fr; gap: 20px 28px; align-items: start; max-width: 1240px; margin: 0 auto; }
.lg-video { grid-area: video; }
.lg-card { grid-area: card; }
.lg-about { grid-area: about; }
.lg-grid.no-video { grid-template-columns: minmax(0, 440px); grid-template-areas: "card" "about"; justify-content: center; }
.lg-video .v-player { box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.lg-title { margin: 14px 4px 4px; font-size: 24px; color: var(--red); font-weight: normal; }
.lg-intro { margin: 8px 4px 0; color: var(--ink-2); line-height: 1.6; white-space: pre-line; }
.lg-card { background: #fff; border: 1px solid var(--grey1); border-top: 4px solid var(--red); border-radius: 12px; padding: 20px 22px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.lg-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.lg-card-head img { width: 64px; height: 64px; border-radius: 50%; animation: loginSpin 360s linear infinite; }
.lg-card-head h2 { margin: 0; color: var(--red); font-weight: normal; font-size: 22px; }
.lg-card-head p { margin: 0; color: var(--ink-2); }
.lg-card label { display: block; margin: 12px 0 4px; font-size: 15px; color: var(--ink-2); }
.lg-card .btn.primary { width: 100%; justify-content: center; margin-top: 16px; min-height: 48px; font-size: 18px; }
.lg-card .forgot { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); text-align: center; }
.lg-about { background: var(--grey2); border-radius: 12px; padding: 16px 20px; }
.lg-about h2 { margin: 0 0 6px; color: var(--red); font-weight: normal; font-size: 18px; }
.lg-about ul { margin: 0 0 8px; padding-left: 20px; font-size: 15px; line-height: 1.45; }
.lg-about li { margin: 4px 0; }
.lg-about .about-note { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .lg-card-head img { animation: none; } }
/* Narrow screens: «Entrar» first, then the video and the text, then «Qué encontrarás dentro». */
@media (max-width: 900px) {
  .lg-grid, .lg-grid.no-video { grid-template-columns: minmax(0, 1fr); grid-template-areas: "card" "video" "about"; grid-template-rows: auto; max-width: 640px; }
  .lg-main { padding-top: 16px; }
}
/* Admin panel: video of the login page. */
.lv-grid { display: grid; grid-template-columns: 40px minmax(0, 2fr) minmax(0, 1.4fr) 96px; gap: 8px 10px; align-items: center; }
.lv-grid .lv-h { font-size: 13px; color: var(--ink-2); }
.lv-grid label { margin: 0; font-weight: bold; }
.lv-prev img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; display: block; }
@media (max-width: 760px) { .lv-grid { grid-template-columns: 40px minmax(0, 1fr); } .lv-grid .lv-h { display: none; } .lv-grid input[id^=lt] { grid-column: 2; } .lv-grid .lv-prev { grid-column: 2; } }
.va-item .acts .btn.pub-on { background: #E3F1E3; color: #2F6B2F; border-color: #8BBF8B; }
.va-item .acts .btn.pub-on:hover { border-color: #2F6B2F; color: #2F6B2F; }

/* ---------- Call to action after the calculation (bottom notice, does not cover the page) ---------- */
.cta-bar { position: fixed; left: 50%; bottom: 16px; z-index: 50; width: min(760px, calc(100% - 32px)); transform: translate(-50%, 20px); opacity: 0;
  display: flex; align-items: center; gap: 14px; padding: 14px 44px 14px 18px; background: #fff; border: 1px solid var(--grey1); border-left: 5px solid var(--red);
  border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.22); transition: transform .35s ease, opacity .35s ease; }
.cta-bar.on { transform: translate(-50%, 0); opacity: 1; }
.cta-bar p { margin: 0; flex: 1; font-size: 16px; line-height: 1.45; color: var(--ink); white-space: pre-line; }
.cta-bar .cta-go { flex: none; background: var(--red); color: #fff; border-color: var(--red); white-space: nowrap; }
.cta-bar .cta-go:hover { color: #fff; background: #9A0800; }
.cta-close { position: absolute; top: 6px; right: 8px; width: 32px; height: 32px; border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--ink-2); cursor: pointer; border-radius: 6px; }
.cta-close:hover { background: var(--grey2); color: var(--ink); }
.cta-close:focus-visible { outline: 3px solid var(--orange); }
@media (prefers-reduced-motion: reduce) { .cta-bar { transition: none; } }
@media (max-width: 560px) { .cta-bar { flex-direction: column; align-items: stretch; bottom: 10px; padding: 14px 16px 14px; } .cta-bar p { padding-right: 24px; } .cta-bar .cta-go { justify-content: center; } }
.cta-grid { display: grid; grid-template-columns: 40px minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 10px; align-items: start; }
.cta-grid label { margin: 8px 0 0; font-weight: bold; }
.cta-grid textarea { min-height: 80px; }
@media (max-width: 760px) { .cta-grid { grid-template-columns: 40px minmax(0, 1fr); } .cta-grid .lv-h { display: none; } .cta-grid input { grid-column: 2; } }

/* ---------- Registration page for private consultations (28/10/2026) ---------- */
.cons-page .lg-grid.cons-grid { grid-template-areas: "video card"; grid-template-rows: auto; }
.cons-title { margin: 4px 4px 8px; font-size: 28px; color: var(--red); font-weight: normal; }
.cons-page .lg-video .v-player { margin-top: 16px; }
.cons-card label { display: block; margin: 12px 0 4px; font-size: 15px; color: var(--ink-2); }
.cons-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.cons-wa { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 8px; }
.cons-wa select, .cons-card select { width: 100%; }
.cons-help { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.cons-help.ok { color: #2F6B2F; }
.cons-card input.bad { border-color: var(--red); background: #FDECEA; }
.cons-card textarea { min-height: 80px; }
.cons-opt { font-size: 13px; }
.cons-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cons-card label.cons-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; color: var(--ink); font-size: 15px; }
.cons-check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; }
.cons-legal { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.cons-thanks { padding: 8px 2px; outline: none; }
.cons-thanks p { margin: 0; font-size: 18px; line-height: 1.55; color: #2F6B2F; white-space: pre-line; }
.cons-closed, .cons-missing { margin: 0; font-size: 17px; color: var(--ink-2); }
.cons-missing { text-align: center; padding: 40px 0; }
body.loading.cons-page main { visibility: hidden; }
@media (max-width: 900px) { .cons-page .lg-grid.cons-grid { grid-template-areas: "video" "card"; } }
@media (max-width: 480px) { .cons-two, .cons-wa { grid-template-columns: 1fr; } }
/* Panel of consultations. */
.cons-me { color: var(--ink-2); font-size: 14px; margin-right: 6px; }
.cons-link input { flex: 1 1 360px; min-width: 0; font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.cons-cfg { display: grid; grid-template-columns: 170px repeat(3, minmax(0, 1fr)); gap: 8px 10px; align-items: start; margin-top: 8px; }
.cons-cfg .cfg-l { font-size: 14px; color: var(--ink-2); padding-top: 10px; }
.cons-cfg textarea { min-height: 90px; }
@media (max-width: 900px) { .cons-cfg { grid-template-columns: 1fr; } .cons-cfg .lv-h { display: none; } }
.cons-table td.nowrap { white-space: nowrap; }
.cons-table td.cons-com { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cons-table td.cons-local { white-space: nowrap; font-size: 13px; color: var(--ink-2); }
.cons-table input[type=datetime-local] { min-height: 30px; padding: 2px 6px; font-size: 14px; width: auto; }
.cons-table input.cons-obs { min-height: 30px; padding: 2px 8px; font-size: 14px; width: 220px; }
.cons-table select.est-sel { min-height: 30px; padding: 2px 28px 2px 8px; font-size: 14px; background-position: right 8px center; width: auto; }
.est-sel[data-v=programada] { color: #1D428C; font-weight: bold; }
.est-sel[data-v=realizada] { color: #2F6B2F; font-weight: bold; }
.est-sel[data-v=ausente] { color: #fff; background-color: var(--red); font-weight: bold; }
.est-sel[data-v=cancelada] { color: var(--ink-2); text-decoration: line-through; }
.cons-users td, .cons-users th { padding: 6px 8px; }
.cons-illu { display: block; width: 100%; height: auto; margin: 18px 0 0; border-radius: 14px; box-shadow: 0 6px 22px rgba(0,0,0,.12); }
/* Default limits: one column per limit, the title above wraps inside its column (no overlapping titles). */
.admin .row.lim-row { display: grid; grid-template-columns: repeat(5, minmax(150px, 190px)) auto; gap: 14px 22px; align-items: end; }
.lim-row .lim { min-width: 0; }
.lim-row .lim > label:first-child { min-height: 2.6em; display: flex; align-items: flex-end; line-height: 1.3; font-weight: bold; color: var(--ink); margin: 0; }
.lim-row .lim input:not([type=checkbox]), .lim-row .lim select { width: 100%; }
.lim-row .lim .inf { min-height: 22px; }
.lim-row > .btn { align-self: center; }
@media (max-width: 1100px) { .admin .row.lim-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .admin .row.lim-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lim-row > .btn { justify-self: start; align-self: end; margin-bottom: 26px; }
.lim-row .lim:not(:has(.inf)) { padding-bottom: 26px; }
/* ---------- Activation page after a donation (28/10/2026) ---------- */
.act-wrap { max-width: 560px; margin: 0 auto; text-align: center; }
.act-wheel { margin: 4px 0 10px; }
.act-wheel img { width: 180px; height: 180px; }
.act-title { margin: 6px 0 10px; }
.act-text { margin: 0 auto 18px; }
.act-card { text-align: left; }
.act-card .cons-thanks .btn.primary { margin-top: 14px; }
body.loading.act-page main { visibility: hidden; }

/* Admin list: «Completo» in light blue, «Reducido» stays white. */
.users select.acc-sel.is-full { background-color: #e3eefb; border-color: #9bbbe3; color: #1d4f8a; font-weight: 600; }

/* Reduced access, big wheel (28/10/2026): wheel on the left, calculator on the right; on narrow screens, the wheel on top.
   The wheel cannot be clicked, except the calculated Name (lit). */
.calc-wheel, .rw-row { display: none; }
body.reduced .rw-row { display: block; text-align: center; margin: -6px 0 6px; }
body.reduced .rw-btn[hidden] { display: none; }
body.reduced.rw .calc { max-width: 1320px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
body.reduced.rw .calc > * { grid-column: 2; }
body.reduced.rw .calc-wheel { display: block; grid-column: 1; grid-row: 1 / span 12; align-self: start; position: sticky; top: 16px; }
body.reduced.rw .calc-wheel .wheel-wrap { display: block; margin: 0; max-width: none; }
body.reduced.rw .calc-hero { display: none; }
body.reduced.rw .calc h2 { margin-top: 8px; }
body.reduced.rw .name.off { cursor: default; pointer-events: none; }
body.reduced.rw .name.sel { cursor: pointer; }
body.reduced.rw .name.sel .hit { fill: rgba(184, 10, 0, .38); }
body.reduced.rw .name.sel text { font-weight: 800; }
@media (max-width: 900px) {
  body.reduced.rw .calc { display: block; }
  body.reduced.rw .calc-wheel { position: static; max-width: 560px; margin: 0 auto 10px; }
}
body.reduced.rw .rw-under { text-align: center; margin: 14px 0 0; }
body.reduced.rw .rw-row { display: none; }

/* Menu order on every page (28/10/2026, Veronique): links (Vídeos, Instrucciones…, 72shemot.com, Consultas, Administrar),
   then Donar, the languages and, at the end, Salir / Entrar. */
.botonera .tools > * { order: 1; }
.botonera .tools > .donate { order: 6; }
.botonera .tools > .lang { order: 7; }
.botonera .tools > #logoutForm, .botonera .tools > #loginLink { order: 8; }

/* Mobile menu (28/10/2026, Veronique): line 1 the links (Vídeos, Instrucciones, 72shemot.com…);
   line 2, centred: Donar, the languages and «Salir» in a red box with a white line. */
@media (max-width: 600px) {
  .botonera .tools { width: 100%; justify-content: center; }
  .botonera .tools::before { content: ''; flex-basis: 100%; height: 0; order: 5; }
  .botonera #logoutForm .btn, .botonera #loginLink { border: 1px solid rgba(255,255,255,.85); border-radius: 6px; background: var(--red); }
  .botonera h1 { margin: 0 auto; text-align: center; }
  .botonera .tools { gap: 4px 2px; }
  .botonera .tools > a.btn:not(.donate) { padding-left: 9px; padding-right: 9px; }
}

/* Reduced access: no «Instrucciones» in the menu (28/10/2026, Veronique). */
body.reduced .botonera a[href="/instrucciones.html"] { display: none; }

/* Admin panel: checkbox with its text on one line (28/10/2026). */
.admin label.inf { display: inline-flex; align-items: center; gap: 0; font-size: 15px; white-space: pre-wrap; }
.admin label.inf input[type=checkbox] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0 8px 0 0; flex: 0 0 auto; }
.botonera .tools.tools-wrapped { width: 100%; justify-content: center; }

/* Thank-you page after a Stripe donation (/gracias, 29/10/2026) */
.gr-data { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 16px 0 8px; padding: 14px 16px; background: #F6F6F6; border-radius: 6px; font-size: 16px; }
.gr-data dt { color: var(--ink-2); }
.gr-data dd { margin: 0; word-break: break-all; color: var(--ink); }
.gr-data code { font-size: 17px; font-weight: bold; }
.btn.gr-copy { padding: 2px 10px; min-height: 0; font-size: 13px; margin-left: 6px; }
.gr-keep { font-size: 14px !important; color: var(--ink-2) !important; }
.gr-state p { margin: 0 0 8px; font-size: 17px; line-height: 1.5; }
.gr-page #gText:empty { display: none; }
.gr-page .cons-check a, .gr-page .cons-legal a { text-decoration: underline; }
.act-page .act-title { white-space: pre-line; }
/* Tabs of the panel of emails (30/10/2026) */
.adm-tabs { display: flex; gap: 4px; margin: 14px 0 0; border-bottom: 2px solid var(--red); }
.adm-tabs button { font: inherit; font-size: 17px; padding: 10px 22px; border: 1px solid #DDD; border-bottom: none; border-radius: 8px 8px 0 0; background: #F4F4F4; color: var(--ink-2); cursor: pointer; }
.adm-tabs button[aria-selected="true"] { background: var(--red); color: #fff; border-color: var(--red); }
.adm-main a { font-size: 17px; padding: 10px 22px; border: 1px solid #DDD; border-bottom: none; border-radius: 8px 8px 0 0; background: #F4F4F4; color: var(--ink-2); text-decoration: none; }
.adm-main a[aria-current="page"] { background: var(--red); color: #fff; border-color: var(--red); }
.adm-main { flex-wrap: wrap; }
.adm-sub { border-bottom: 1px solid #DDD; margin-top: 18px; }
.adm-sub button { font-size: 15px; padding: 7px 16px; }
.adm-sub button[aria-selected="true"] { background: #FDECEA; color: var(--red); border-color: var(--red); }
/* Call to action on the access page, below the explanation text (30/10/2026) */
.cta-inline { position: relative; display: flex; align-items: center; gap: 16px; margin: 20px 0 0; padding: 16px 48px 16px 18px; background: #FDF3F2; border: 1px solid #F0C9C5; border-left: 4px solid var(--red); border-radius: 8px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.cta-inline.on { opacity: 1; transform: none; }
.cta-inline p { margin: 0; flex: 1; font-size: 16px; line-height: 1.45; color: var(--ink); white-space: pre-line; }
.cta-inline .cta-go { flex: none; background: var(--red); color: #fff; border-color: var(--red); white-space: nowrap; }
.cta-inline .cta-go:hover { color: #fff; background: #9A0800; }
@media (prefers-reduced-motion: reduce) { .cta-inline { transition: none; } }
@media (max-width: 560px) { .cta-inline { flex-direction: column; align-items: stretch; } .cta-inline .cta-go { justify-content: center; } }
/* Privacy policy page (/privacidad, 30/10/2026): colours and size set in the panel */
.priv-main { padding: 8px 4px 24px; }
.priv-doc { max-width: 820px; margin: 0 auto; color: var(--p-text, #333); font-size: var(--p-size, 16px); line-height: 1.6; }
.priv-title { color: var(--p-title, var(--red)); font-size: 1.75em; font-weight: normal; margin: 8px 0 16px; }
.priv-body h2 { color: var(--p-title, var(--red)); font-size: 1.3em; font-weight: normal; margin: 1.6em 0 .5em; }
.priv-body h3 { color: var(--p-title, var(--red)); font-size: 1.08em; margin: 1.2em 0 .4em; }
.priv-body p { margin: 0 0 .8em; }
.priv-body ul, .priv-body ol { margin: 0 0 .8em; padding-left: 1.4em; }
.priv-body li { margin: 0 0 .35em; }
.priv-body a { color: var(--p-title, var(--red)); text-decoration: underline; }
.priv-body mark, .priv-edit mark { background: #FFF176; color: inherit; padding: 0 2px; }
.priv-date { margin-top: 2em; font-size: .9em; color: var(--ink-2); }
body.loading.priv-page main { visibility: hidden; }
.foot-priv { margin: 6px 0 0; }
.foot-priv a { color: inherit; text-decoration: underline; }
/* Panel: editor of the privacy policy (30/10/2026) */
.pv-langs { display: flex; gap: 4px; }
.pv-langs button { font: inherit; padding: 6px 16px; border: 1px solid #DDD; border-radius: 6px; background: #F4F4F4; cursor: pointer; }
.pv-langs button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.pv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 12px 0 0; padding: 6px; background: #F4F4F4; border: 1px solid #DDD; border-bottom: none; border-radius: 6px 6px 0 0; }
.pv-bar button { font: inherit; font-size: 14px; padding: 4px 9px; border: 1px solid #CCC; border-radius: 4px; background: #fff; cursor: pointer; }
.pv-bar button:hover { border-color: var(--red); }
.pv-sep { width: 1px; height: 22px; background: #CCC; margin: 0 4px; }
.pv-color { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.pv-color input { width: 32px; height: 26px; padding: 0; border: 1px solid #CCC; }
.pv-edit { min-height: 360px; max-height: 70vh; overflow: auto; padding: 14px 18px; border: 1px solid #DDD; border-radius: 0 0 6px 6px; background: #fff; color: var(--p-text, #333); font-size: var(--p-size, 16px); line-height: 1.6; outline: none; }
.pv-edit:focus { border-color: var(--red); }
.pv-styles { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 12px; align-items: center; }
.pv-styles label { display: inline-flex; align-items: center; gap: 6px; }
.pv-styles input[type="color"] { width: 40px; height: 30px; padding: 0; border: 1px solid #CCC; }

/* Panel, «Donativos»: state of the Stripe key of each entity (01/11/2026). */
.don-key { font-size: 13px; font-weight: normal; color: var(--ink-2); }
.don-key.missing { color: var(--red); }
/* Calculation limit after activating (01/11/2026). */
.gr-lim { font-weight: bold; color: var(--ink) !important; }

/* Calculator, «¿No encuentras tu lugar?» (01/11/2026). */
.np-link { display: block; text-align: left; margin: 6px 0 0; padding: 0; border: 0; background: none; color: var(--red); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.np-box { margin-top: 8px; padding: 10px 12px; border: 1px solid #DDD; border-radius: 8px; background: #FAFAFA; }
.np-box label { display: block; font-size: 14px; margin: 6px 0 3px; }
.np-box select { width: 100%; font: inherit; font-size: 15px; padding: 6px 8px; }
.np-info { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }

/* Pop-up «¿Cómo obtener mi acceso?» of the access page (02/11/2026). */
.howto-row { margin: 12px 0 0; text-align: center; }
.howto-btn { width: 100%; justify-content: center; border-color: var(--red); color: var(--red); background: #fff; font-weight: 600; }
.howto-btn:hover { background: #FFF4F2; }
dialog.howto { max-width: 560px; width: calc(100% - 32px); border: 0; border-top: 5px solid var(--red); border-radius: 14px; padding: 26px 28px 24px; box-shadow: 0 18px 50px rgba(0,0,0,.28); color: var(--ink); }
dialog.howto::backdrop { background: rgba(20, 10, 10, .45); }
dialog.howto h2 { margin: 0 80px 14px 0; color: var(--red); font-size: 24px; }
dialog.howto ol { margin: 0 0 20px; padding-left: 24px; }
dialog.howto li { margin: 0 0 10px; line-height: 1.45; font-size: 17px; }
.howto-x { position: absolute; top: 8px; right: 10px; display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 8px 0 10px; border: 0; background: transparent; color: #8A8A8A; cursor: pointer; border-radius: 18px; }
.howto-x .hx-l { font-size: 13px; color: #9A9A9A; }
.howto-x .hx-x { font-size: 26px; line-height: 1; color: var(--ink-2); }
.howto-x:hover { background: var(--grey1, #f1f1f1); }
.howto-x:hover .hx-l { color: var(--ink-2); }
.howto-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.howto-btns { align-items: stretch; }
.howto-btns .btn { flex: 1 1 180px; justify-content: center; margin: 0; min-height: 48px; font-size: 17px; }
.howto-btns .btn.primary { background: var(--red); border-color: var(--red); color: #fff; }

/* Donations panel (02/11/2026). */
.don-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 0 0 6px; }
.don-filters > div { min-width: 0; }
.don-filters label { margin: 0 0 4px; font-size: 14px; color: var(--ink-2); }
.don-filters #q { width: 280px; max-width: 100%; }
.don-filters input[type=date] { width: auto; }
.don-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.don-sum { margin: 8px 0 0; font-weight: 600; }
.don-table td.num, .don-table th.num { text-align: right; }
.don-table td.nowrap { white-space: nowrap; }
.don-table td.act-yes { color: #2E7D32; font-weight: 600; }
.don-table td.act-no { color: var(--ink-2); }
.don-pend[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }

/* Pop-up after the first calculation (02/11/2026). Same box as «¿Cómo obtener mi acceso?». */
dialog.after .ap-block { padding: 14px 0; border-bottom: 1px solid #EEE; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
dialog.after .ap-block:first-of-type { padding-top: 4px; }
dialog.after .ap-block[hidden] { display: none; }
dialog.after .ap-q { margin: 0; flex: 1 1 260px; font-size: 17px; line-height: 1.45; }
dialog.after .ap-block:first-of-type { margin-top: 26px; }
dialog.after .ap-block .btn { flex: 0 0 auto; min-height: 44px; justify-content: center; margin: 0; }
dialog.after .btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
dialog.after .ap-form { margin-top: 14px; }
dialog.after .ap-form label { margin: 10px 0 4px; }
dialog.after textarea { min-height: 0; resize: vertical; line-height: 1.4; }
dialog.after .ap-count { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); text-align: right; }
dialog.after .ap-vis { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; }
dialog.after .ap-vis label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 15px; }
dialog.after .ap-vis input { width: auto; min-height: 0; }
dialog.after .ap-note { font-size: 13px; color: var(--ink-2); margin: 10px 0; }
dialog.after .ap-done { margin: 30px 0 4px; font-size: 18px; text-align: center; font-weight: 600; }
dialog.after .ap-done:not([hidden]) + .ap-block { margin-top: 6px; }

/* Public page «Testimonios» (02/11/2026). */
.testi-main { padding: 24px 16px 40px; }
.testi-intro { color: var(--ink-2); font-size: 18px; margin: 0 0 18px; text-align: center; }
.testi-grid { columns: 3 300px; column-gap: 18px; }
.testi-card { break-inside: avoid; margin: 0 0 18px; background: #fff; border: 1px solid #E6E6E6; border-top: 4px solid var(--red); border-radius: 12px; padding: 18px 20px 14px; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.testi-card blockquote { margin: 0; font-size: 17px; line-height: 1.5; white-space: pre-line; position: relative; padding-left: 26px; }
.testi-card blockquote::before { content: '“'; position: absolute; left: 0; top: -10px; font-size: 44px; color: var(--red); font-family: Georgia, serif; line-height: 1; }
.testi-card figcaption { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 14px; }
.testi-name { font-weight: 700; color: var(--red); }
.testi-date { color: var(--ink-2); }

/* Panel «Comentarios» (02/11/2026). */
.com-table td.com-text { min-width: 260px; max-width: 460px; white-space: pre-line; font-size: 14px; }
.com-table td.ctr, .com-table th.sel, .com-table td.sel { text-align: center; }
.com-table input[type=checkbox] { width: 18px; height: 18px; min-height: 0; }
.com-table td.tp-pub { color: #2E7D32; font-weight: 600; }
.com-table td.tp-priv { color: var(--ink-2); }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0 0; padding: 8px 12px; background: #F4F7FB; border: 1px solid #C9D8EC; border-radius: 10px; }
.bulk-bar[hidden] { display: none; }
.bulk-bar #bulkN { font-weight: 600; margin-right: 6px; }
.bulk-bar .btn { min-height: 36px; padding: 4px 12px; font-size: 14px; }
.com-table .btn.icon-del, .bulk-bar .btn.icon-del { min-width: 34px; min-height: 34px; padding: 2px 6px; justify-content: center; color: var(--red); border-color: transparent; background: transparent; }
.com-table .btn.icon-del:hover, .bulk-bar .btn.icon-del:hover { background: #FDECEA; border-color: var(--red); }

/* Panel: texts of the pop-up after the calculation. */
.ap-adm-h { margin: 14px 0 4px; font-weight: 600; font-size: 15px; }
.ap-adm-row { display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: center; margin: 0 0 6px; }
.ap-adm-row label { margin: 0; }
.ap-adm-row textarea { min-height: 0; }
.testi-main .msg:empty { display: none; }
dialog.howto:focus { outline: none; }
.howto-x:focus { outline: none; }
.howto-x:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.admin .com-auto { font-weight: 600; }


/* ===================== Guematría · Alfabeto Hebreo (02/11/2026) ===================== */
/* Header and menu as miembros.alfabetohebreo.com: turquoise band with the image of alfabetohebreo.com, white menu. */
.site { max-width: none; }
.cabecera { border: 0; margin: 0; padding: 19px 0 0; height: 180px; display: block; text-align: center; background: var(--turq-light) url(https://alfabetohebreo.com/img/cabecera_alfabetohebreo_top.jpg) repeat-x top; border-bottom: 1px solid #ccc; }
.cab-link { display: block; max-width: 1100px; margin: 0 auto; }
.img-cabecera { width: 1100px; max-width: 100%; height: auto; display: block; }
.cab-fb { display: none; }
.cab-link.fb { display: flex; align-items: center; justify-content: center; gap: 14px; text-decoration: none; }
.cab-link.fb .img-cabecera { width: auto; height: 110px; border-radius: 8px; }
.cab-link.fb .cab-fb { display: inline; color: #fff; font-size: 40px; letter-spacing: .5px; }
@media (max-width: 1024px) { .cabecera { height: auto; padding: 8px 8px 6px; background-image: none; background-color: var(--turq-dark); border: 0; } .cab-link.fb .img-cabecera { height: 64px; } .cab-link.fb .cab-fb { font-size: 26px; } }
.botonera { margin: 0; background: #fff; border-radius: 0; border-bottom: 1px solid #ccc; padding: 4px 16px; justify-content: center; }
.botonera h1 { color: var(--red); font-size: 20px; margin: 0 auto 0 0; }
.botonera .btn { color: #666; font-size: 19px; background: transparent; border-color: transparent; }
.botonera .btn:hover { color: var(--red); }
.botonera .btn.donate { background: var(--red); color: #fff; border-color: var(--red); border-radius: 8px; }
.botonera .btn.donate:hover { background: #2a8e9a; border-color: #2a8e9a; color: #fff; }
.lang { border-color: #ccc; }
.lang button { color: #666; }
.lang button[aria-pressed="true"] { background: var(--red); color: #fff; }
@media (max-width: 760px) { .botonera #logoutForm .btn, .botonera #loginLink { background: #fff; border-color: #ccc; color: #666; } }
.btn:hover { border-color: var(--red); color: var(--red); }
.btn { border-radius: 8px; }
.primary, .primary-inline, .howto-btns .btn.primary, dialog.after .btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.primary:hover, .primary-inline:hover { background: #2a8e9a; border-color: #2a8e9a; color: #fff; }
footer { background: #fff; border-top: 1px solid #ccc; color: #888; }
.titulo-seccion { font-size: 40px; line-height: 1.1; color: var(--red); font-weight: 400; margin: 0 0 22px; }
@media (max-width: 1024px) { .titulo-seccion { font-size: 30px; text-align: center; } }

/* Calculator */
.gem-calc { background: var(--grey2); border: 1px solid #cde8eb; border-radius: 6px; padding: 26px 24px; margin-top: 30px; }
.gem-calc h2.titulo-seccion { color: var(--red); font-size: 34px; }
.gem-form .fld label { font-weight: 600; color: #555; font-size: 15px; }
.gem-form input { border-radius: 5px; }
.gem-res { background: #fff; border: 2px solid var(--turq-light); box-shadow: 0 6px 22px rgba(49,163,177,.15); gap: 6px; }
.res-for { margin: 0; font-size: 22px; color: var(--blue); font-weight: 500; }
.res-h { margin: 16px 0 6px; font-size: 22px; color: var(--red); font-weight: 400; border-bottom: 1px solid #cde8eb; padding-bottom: 4px; }
.res-birth, .res-hdate, .res-par { margin: 2px 0; }
.res-hdate { font-size: 19px; color: var(--blue); }
.res-note { margin: 8px 0 0; font-size: 14px; color: #777; }
.res-btns { margin-top: 12px; }
.gem-word { border: 1px solid #d8eef1; border-radius: 10px; padding: 12px 14px; margin: 10px 0; background: #fff; }
.gw-latin { margin: 0 0 6px; font-size: 20px; font-weight: 600; color: #555; }
.gw-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.gw-cols.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 760px) { .gw-cols.two { grid-template-columns: minmax(0, 1fr); } }
.gw-row { padding: 10px 12px; border-radius: 8px; }
.gw-row.gw-eq { background: var(--grey2); border: 1px dashed #b9dfe4; }
.gem-pdf .gw-cols.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.gw-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.gw-label { font-weight: 600; color: var(--red); }
.gw-note { font-size: 14px; color: #888; }
.gw-big { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; margin: 4px 0 6px; }
.gw-he { font-size: 54px; line-height: 1.2; color: var(--blue); font-weight: 700; }
.gw-sums { display: flex; flex-direction: column; gap: 2px; }
.gw-sum { font-size: 18px; color: #555; }
.gem-table { border-collapse: collapse; font-size: 15px; margin: 4px 0; width: 100%; max-width: 380px; }
.gem-table th, .gem-table td { border-bottom: 1px solid #e6f3f5; padding: 3px 10px; text-align: left; }
.gem-table th { color: #888; font-weight: 500; font-size: 13px; }
.gem-table td.num, .gem-table th:nth-child(n+2) { text-align: right; }
.gem-table tfoot td { font-weight: 600; color: var(--blue); border-bottom: 0; }
.gl-he { font-size: 22px; color: var(--blue); display: inline-block; min-width: 22px; text-align: center; }
.gw-fix { margin-top: 4px; min-height: 36px; padding: 4px 12px; font-size: 15px; }
.gem-total { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 12px 14px; border-radius: 10px; background: var(--grey2); }
.gem-total .gw-he { font-size: 40px; }

/* Hebrew keyboard */
dialog.kb { max-width: 560px; }
.kb-help { color: #777; margin: 0 0 8px; }
.kb-out { min-height: 64px; font-size: 46px; text-align: center; color: var(--blue); border: 1px solid #cde8eb; border-radius: 8px; margin: 0 0 10px; padding: 4px; }
.kb-keys { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; margin-bottom: 12px; }
.kb-key { min-height: 46px; font-size: 26px; border: 1px solid #cde8eb; border-radius: 6px; background: #fff; color: var(--blue); cursor: pointer; }
.kb-key:hover { background: var(--grey2); border-color: var(--red); }

/* PDF */
.gem-pdf { height: auto; font-family: var(--sans); }
.gem-pdf .pdf-foot { margin-top: 26px; }
.gem-pdf .pdf-top { border-top: 8px solid var(--turq-light); justify-content: center; }
.pdf-logo-img { height: 90px; width: auto; }
.gem-pdf .pdf-bar { background: var(--red); text-align: center; }
.gem-pdf .pdf-person { font-size: 26px; color: var(--blue); text-align: center; }
.gem-pdf .gem-word { break-inside: avoid; }
.gem-pdf .pdf-url { color: var(--red); }

/* Guematría panel (02/11/2026): only ES and FR. The EN fields stay in the page (the panel code reads them) but are not shown. */
.admin [id$="En"], .admin label[for$="En"], .admin .ap-adm-row:has(label[for$="En"]) { display: none !important; }
/* Compact PDF: more words per A4 page. */
.gem-pdf .gem-word { padding: 8px 12px; margin: 8px 0; }
.gem-pdf .gw-latin { font-size: 18px; margin-bottom: 2px; }
.gem-pdf .gw-he { font-size: 40px; }
.gem-pdf .gw-sum { font-size: 15px; }
.gem-pdf .gw-row { padding: 6px 10px; }
.gem-pdf .gem-table { font-size: 13px; }
.gem-pdf .gem-table th, .gem-pdf .gem-table td { padding: 1px 8px; }
.gem-pdf .gl-he { font-size: 17px; }
.gem-pdf .pdf-logo-img { height: 70px; }
.gem-pdf .res-h { font-size: 19px; margin-top: 12px; }

/* Equivalent name with two spellings (common and Tanakh) */
.gw-sub { margin: 6px 0 0; font-size: 14px; color: var(--blue); font-weight: 500; }
.gw-sp + .gw-sp { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #b9dfe4; }
/* Logo: the round sphere of letters of Alfabeto Hebreo (02/11/2026, decision of Veronique), never stretched, not turning. */
.lg-card-head img, .login-wheel img, .pdf-logo-img { object-fit: contain; border-radius: 0; animation: none; }
.login-wheel img { width: 180px; height: 180px; }
/* Panel ES / FR only: EN column headers hidden and the language grids with two columns. */
.admin .lv-en { display: none !important; }
.admin .cons-cfg { grid-template-columns: 170px repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .admin .cons-cfg { grid-template-columns: 1fr; } }
/* Calculator form: all boxes on the same line (labels at the top, boxes aligned); «¿No encuentras tu lugar?» under its box. */
.gem-form { align-items: flex-start; }
.gem-form .fld label { min-height: 24px; display: flex; align-items: flex-end; }
.gem-form > .btn { margin-top: 28px; min-height: 44px; }
.gem-form input { height: 44px; box-sizing: border-box; }
