/* ============================================================
   AUROVAS · tools.css (2026-11-13) — herramientas con datos oficiales
   Prefijo tl- (índice y cada herramienta) y tlc- (gráficos). Blanco, tinta y hueso; sin desenfoques
   ni animaciones de entrada (regla de rendimiento de la web). Móvil primero.
   ============================================================ */
.tl-page { padding: clamp(92px, 11vw, 128px) 0 clamp(56px, 8vw, 96px); color: var(--ink); }
.tl-wrap { max-width: 1180px; }
:where(.tl-page) a { color: inherit; }
.tl-page sup { font-size: .62em; line-height: 0; vertical-align: .5em; }
.tl-page :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.tl-page [hidden] { display: none !important; }

/* ---------- migas, cabecera ---------- */
.tl-crumb { font-size: .82rem; color: var(--grey); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tl-crumb a { text-decoration: underline; text-underline-offset: 3px; }
.tl-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.tl-livedot { display: inline-flex; align-items: center; gap: 7px; color: #067647; font-weight: 700; }
.tl-livedot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 3px rgba(18,183,106,.18); }
.tl-head h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 5.2vw, 3.5rem); line-height: 1.02; letter-spacing: -.035em; margin: 12px 0 14px; text-wrap: balance; }
.tl-lead { max-width: 68ch; font-size: clamp(1.02rem, 1.5vw, 1.16rem); line-height: 1.6; color: var(--graphite); }
.tl-lead b { color: var(--ink); }
.tl-fresh { margin-top: 10px; font-size: .84rem; color: var(--grey); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tl-fresh .tl-livedot { font-size: .84rem; }

/* ---------- índice: el buscador y, justo debajo, las herramientas; los datos del día van después ---------- */
.tl-head--hub h1 { margin-top: 0; }
.tl-search { margin: 22px 0 0; position: relative; max-width: 620px; }
.tl-search input { width: 100%; height: 58px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 22px 0 54px; font: inherit; font-size: 1.05rem; background: #fff; }
.tl-search input:focus { outline: 0; box-shadow: 0 0 0 4px rgba(10,10,10,.1); }
.tl-search svg { position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); pointer-events: none; }
.tl-list { margin-top: clamp(22px, 3.4vw, 34px); display: grid; gap: clamp(22px, 3.4vw, 34px); }
.tl-group__h { font-family: var(--font-mono); font-size: .7rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin: 0 0 10px; }
.tl-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
.tl-card { display: grid; gap: 5px; align-content: start; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; text-decoration: none; }
.tl-card:hover, .tl-card:focus-visible { border-color: var(--ink); }
.tl-card h3 { font-family: var(--font-head); font-size: 1.12rem; letter-spacing: -.015em; line-height: 1.2; display: flex; align-items: center; gap: 8px; }
.tl-card p { font-size: .9rem; line-height: 1.45; color: var(--grey); }
.tl-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 3px rgba(18,183,106,.16); }
.tl-list.is-searching { gap: 10px; }
.tl-list.is-searching .tl-group__h { display: none; }
.tl-none { padding: 20px; border: 1px dashed var(--line); border-radius: var(--r-s); color: var(--grey); }

.tl-today { margin: clamp(40px, 6vw, 68px) 0 0; padding-top: clamp(24px, 3.4vw, 34px); border-top: 2px solid var(--ink); }
.tl-today__h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 14px; }
.tl-today__h h2 { font-family: var(--font-head); font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: -.02em; }
.tl-today__h p { font-size: .84rem; color: var(--grey); }
.tl-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tl-tile { display: flex; flex-direction: column; gap: 4px; padding: 15px 16px 13px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--bone); text-decoration: none; min-width: 0; }
a.tl-tile:hover { border-color: var(--ink); }
.tl-tile__k { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.tl-tile__v { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 3.4vw, 1.9rem); letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tl-tile__v small { font-family: var(--font-main); font-size: .78rem; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.tl-tile__n { font-size: .78rem; color: var(--grey); line-height: 1.35; }
.is-up { color: #b42318; } .is-down { color: #067647; }

/* ---------- la calculadora ---------- */
.tl-calc { margin-top: clamp(22px, 4vw, 34px); display: grid; grid-template-columns: 1fr; border: 1.5px solid var(--ink); border-radius: var(--r-l); overflow: hidden; background: #fff; }
.tl-in { padding: clamp(18px, 3vw, 30px); display: grid; gap: 18px; align-content: start; }
.tl-out { padding: clamp(18px, 3vw, 30px); background: var(--bone); border-top: 1.5px solid var(--ink); display: grid; gap: 16px; align-content: start; min-width: 0; }
.tl-in__h, .tl-out__h { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.tl-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: end; }
.tl-f { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }   /* la columna no puede ensancharse por el ancho propio del <input> */
.tl-f__l { font-size: .86rem; font-weight: 600; color: var(--graphite); line-height: 1.3; }
.tl-f__l small { display: block; font-weight: 400; font-size: .78rem; color: var(--grey); margin-top: 2px; }
.tl-f__c { display: flex; align-items: center; border: 1px solid #cfcdc7; border-radius: 12px; background: #fff; height: 50px; padding: 0 14px; gap: 8px; }
.tl-f__c:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10,10,10,.08); }
.tl-f__c input { flex: 1; width: 100%; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1.12rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); height: 100%; }
.tl-f__c i { font-style: normal; font-size: .9rem; color: var(--grey); white-space: nowrap; }
.tl-f select { height: 50px; border: 1px solid #cfcdc7; border-radius: 12px; padding: 0 12px; font: inherit; font-size: 1rem; font-weight: 600; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
.tl-f select:focus { border-color: var(--ink); outline: 0; box-shadow: 0 0 0 3px rgba(10,10,10,.08); }
.tl-f input[type=range] { width: 100%; height: 28px; accent-color: var(--ink); margin: 0; }
.tl-seg { display: flex; border: 1px solid #cfcdc7; border-radius: 12px; padding: 4px; gap: 4px; background: #fff; }
.tl-seg button { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: .92rem; font-weight: 600; color: var(--graphite); cursor: pointer; padding: 6px 8px; line-height: 1.2; }
.tl-seg button.is-on { background: var(--ink); color: #fff; }
.tl-hint { font-size: .82rem; line-height: 1.5; color: var(--grey); }
.tl-hint a { text-decoration: underline; text-underline-offset: 3px; }
.tl-sub { border-top: 1px dashed #cfcdc7; padding-top: 16px; display: grid; gap: 16px; }
.tl-adv { border-top: 1px dashed #cfcdc7; }
.tl-adv summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: .9rem; font-weight: 600; color: var(--graphite); }
.tl-adv summary::-webkit-details-marker { display: none; }
.tl-adv summary::before { content: '+'; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid #cfcdc7; border-radius: 50%; font-weight: 400; flex: none; }
.tl-adv[open] summary::before { content: '−'; }
.tl-adv__in { display: grid; gap: 16px; padding: 6px 0 4px; }
.tl-detail { display: grid; gap: 16px; padding-bottom: 6px; }

.tl-big { display: grid; gap: 2px; }
.tl-big__k { font-size: .86rem; font-weight: 600; color: var(--graphite); }
.tl-big__v { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.5rem, 8vw, 3.6rem); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tl-big__v small { font-size: .32em; font-weight: 600; letter-spacing: 0; color: var(--grey); margin-left: 6px; }
.tl-big__n { font-size: .88rem; color: var(--grey); line-height: 1.45; }
.tl-big.is-up .tl-big__v { color: #b42318; } .tl-big.is-down .tl-big__v { color: #067647; }
.tl-dl { display: grid; gap: 0; margin: 0; }
.tl-dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; border-top: 1px solid #dedbd3; }
.tl-dl dt { font-size: .92rem; color: var(--graphite); }
.tl-dl dt small { display: block; font-size: .78rem; color: var(--grey); }
.tl-dl dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.tl-dl .is-total { border-top: 2px solid var(--ink); }
.tl-dl .is-total dt { font-weight: 700; color: var(--ink); } .tl-dl .is-total dd { font-size: 1.15rem; }
.tl-say { font-size: .98rem; line-height: 1.55; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #dedbd3; }
.tl-warn { font-size: .9rem; line-height: 1.5; padding: 12px 14px; border-radius: 12px; background: #fff7e6; border: 1px solid #f0d9a8; color: #6b4a00; }
.tl-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tl-duo > div { padding: 14px; border: 1px solid #dedbd3; border-radius: 12px; background: #fff; display: grid; gap: 3px; min-width: 0; }
.tl-duo > div.is-win { border: 2px solid var(--ink); }
.tl-duo b { font-family: var(--font-head); font-size: clamp(1.25rem, 3.6vw, 1.6rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tl-duo span { font-size: .8rem; color: var(--grey); line-height: 1.35; }
.tl-duo em { font-style: normal; font-size: .72rem; font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.tl-actions { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid #dedbd3; padding-top: 14px; }
.tl-actions .tl-btn { min-height: 40px; font-size: .84rem; padding: 0 14px; border-color: #b9b5ac; background: none; }
.tl-btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; background: #fff; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.tl-btn:hover { background: var(--ink); color: #fff; }
.tl-btn--ink { background: var(--ink); color: #fff; } .tl-btn--ink:hover { background: var(--graphite); }
.tl-disc { margin-top: 12px; font-size: .82rem; color: var(--grey); line-height: 1.5; max-width: 90ch; }
.tl-more { border-top: 1px solid #dedbd3; padding-top: 4px; }
.tl-more summary { cursor: pointer; font-weight: 600; font-size: .94rem; padding: 10px 0; min-height: 44px; display: flex; align-items: center; gap: 8px; list-style: none; }
.tl-more summary::-webkit-details-marker { display: none; }
.tl-more summary::before { content: '+'; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid #b9b5ac; border-radius: 50%; font-weight: 400; flex: none; }
.tl-more[open] summary::before { content: '−'; }
.tl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* tablas */
.tl-t { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.tl-t th { text-align: left; font-size: .76rem; font-weight: 600; color: var(--grey); padding: 8px 10px 8px 0; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.tl-t td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tl-t--num td:not(:first-child), .tl-t--num th:not(:first-child) { text-align: right; padding-right: 0; padding-left: 10px; }
.tl-t tr.is-now td { font-weight: 700; background: rgba(10,10,10,.035); }
.tl-t tr.is-off td { color: var(--grey-2); }
.tl-t small { color: var(--grey); font-weight: 400; }
.tl-out .tl-t td { border-bottom-color: #dedbd3; }

/* barras y gráficos */
.tl-bars { display: grid; gap: 8px; }
.tl-bars__r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; font-size: .88rem; }
.tl-bars__l { color: var(--graphite); } .tl-bars__v { font-weight: 700; font-variant-numeric: tabular-nums; }
.tl-bars__t { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: #e4e1da; overflow: hidden; }
.tl-bars__t span { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.tl-bars__r.is-2 .tl-bars__t span { background: #6b6b6b; } .tl-bars__r.is-3 .tl-bars__t span { background: #a8a49b; } .tl-bars__r.is-ok .tl-bars__t span { background: #12894f; }
.tlc { width: 100%; height: auto; display: block; }
.tlc-grid { stroke: #dedbd3; stroke-width: 1; } .tlc-ax { font-size: 11px; fill: #6b6b6b; font-family: var(--font-main); }
.tlc-line { fill: none; stroke: #0a0a0a; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.tlc-line--2 { stroke: #a8a49b; stroke-dasharray: 5 4; } .tlc-dot { fill: #0a0a0a; stroke: #fff; stroke-width: 2; }
.tlc-a { fill: #0a0a0a; } .tlc-b { fill: #b9b4a9; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--graphite); }
.tl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; background: #0a0a0a; } .tl-legend i.b { background: #b9b4a9; }
.tl-legend i.l2 { height: 0; border-top: 2px dashed #a8a49b; background: none; width: 16px; vertical-align: middle; }
.tl-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-tabs button { min-height: 36px; padding: 0 12px; border: 1px solid #cfcdc7; border-radius: 999px; background: #fff; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.tl-tabs button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* buscador de municipios */
.tl-sugwrap { position: relative; }
.tl-sug { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-m); }
.tl-sug button { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; text-align: left; padding: 11px 14px; min-height: 48px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-weight: 600; cursor: pointer; }
.tl-sug button:hover, .tl-sug button:focus { background: var(--bone); }
.tl-sug small { grid-column: 1; font-weight: 400; color: var(--grey); font-size: .8rem; } .tl-sug b { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-variant-numeric: tabular-nums; }
.tl-sug p { padding: 14px; font-size: .9rem; color: var(--grey); }

/* ---------- euríbor: marcador ---------- */
.tl-score { margin-top: clamp(22px, 4vw, 34px); display: grid; grid-template-columns: 1fr; border: 1.5px solid var(--ink); border-radius: var(--r-l); overflow: hidden; }
.tl-score__main { background: var(--ink); color: #fff; padding: clamp(20px, 3.4vw, 34px); display: grid; gap: 6px; align-content: center; }
.tl-score__main .tl-tile__k { color: rgba(255,255,255,.7); }
.tl-score__v { font-family: var(--font-head); font-weight: 700; font-size: clamp(3.4rem, 13vw, 6rem); letter-spacing: -.05em; line-height: .95; font-variant-numeric: tabular-nums; }
.tl-score__d { font-size: 1.02rem; font-weight: 700; } .tl-score__main .is-up { color: #ffb4a8; } .tl-score__main .is-down { color: #86efac; }
.tl-score__n { font-size: .88rem; color: rgba(255,255,255,.72); line-height: 1.5; }
.tl-score__side { display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.tl-score__side > div { padding: 16px clamp(14px, 2.4vw, 22px); border-top: 1px solid var(--line); display: grid; gap: 3px; align-content: start; }
.tl-score__side > div:nth-child(odd) { border-right: 1px solid var(--line); }
.tl-score__side b { font-family: var(--font-head); font-size: clamp(1.3rem, 3.6vw, 1.7rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tl-score__side span { font-size: .8rem; color: var(--grey); line-height: 1.4; }
.tl-panel { margin-top: 18px; padding: clamp(16px, 3vw, 26px); border: 1px solid var(--line); border-radius: var(--r-m); display: grid; gap: 14px; }
.tl-panel__h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tl-panel__h h2 { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: -.015em; }

/* ---------- texto, preguntas, fuentes ---------- */
.tl-cols { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 56px); margin-top: clamp(36px, 6vw, 64px); }
.tl-body { min-width: 0; max-width: 74ch; font-size: 1.04rem; line-height: 1.72; color: var(--graphite); }
.tl-body h2 { font-family: var(--font-head); color: var(--ink); font-size: clamp(1.4rem, 2.8vw, 1.85rem); letter-spacing: -.02em; line-height: 1.15; margin: 1.7em 0 .5em; text-wrap: balance; }
.tl-body h2:first-child { margin-top: 0; }
.tl-body h3 { font-family: var(--font-head); color: var(--ink); font-size: 1.14rem; margin: 1.4em 0 .35em; }
.tl-body p { margin: 0 0 1em; } .tl-body ul, .tl-body ol { margin: 0 0 1em; padding-left: 1.25em; } .tl-body ul { list-style: disc; } .tl-body ol { list-style: decimal; } .tl-body li { margin: .3em 0; }
.tl-body a { text-decoration: underline; text-underline-offset: 3px; }
.tl-body strong, .tl-body b { color: var(--ink); }
.tl-body .tl-scroll { margin: 0 0 1.2em; }
.tl-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-links a { font-size: .88rem; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.tl-links a:hover { border-color: var(--ink); }
.tl-formula { font-family: var(--font-mono); font-size: .9rem; background: var(--bone); border-radius: 12px; padding: 14px 16px; margin: 0 0 1em; overflow-x: auto; color: var(--ink); }
.tl-faq details { border-top: 1px solid var(--line); }
.tl-faq details:last-child { border-bottom: 1px solid var(--line); }
.tl-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 16px 28px 16px 0; position: relative; list-style: none; min-height: 44px; }
.tl-faq summary::-webkit-details-marker { display: none; }
.tl-faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; font-weight: 400; }
.tl-faq details[open] summary::after { content: '−'; }
.tl-faq details p { margin: 0 0 16px; }
.tl-src { margin-top: 2em; padding: 18px 20px; border-radius: var(--r-s); background: var(--bone); font-size: .9rem; line-height: 1.6; }
.tl-src h2 { font-size: 1rem; margin: 0 0 8px; } .tl-src ul { margin: 0; padding-left: 1.1em; } .tl-src p { margin: 8px 0 0; color: var(--grey); }
.tl-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.tl-box { border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; display: grid; gap: 10px; }
.tl-box h2 { font-family: var(--font-head); font-size: 1.08rem; letter-spacing: -.01em; }
.tl-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl-box li a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .95rem; min-height: 44px; align-items: center; }
.tl-box li a:hover { text-decoration: underline; } .tl-box li a::after { content: '→'; color: var(--grey); }
.tl-box--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.tl-box--ink p { color: rgba(255,255,255,.78); font-size: .94rem; line-height: 1.55; }
.tl-box--ink .tl-btn { background: #fff; color: var(--ink); border-color: #fff; justify-content: center; } .tl-box--ink .tl-btn:hover { background: var(--bone); }
.tl-box--ink .tl-btn--ghost { background: none; color: #fff; border-color: rgba(255,255,255,.4); } .tl-box--ink .tl-btn--ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- desde tableta ---------- */
@media (min-width: 720px) {
  .tl-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-score { grid-template-columns: 1.15fr 1fr; }
  .tl-score__side > div:nth-child(-n+2) { border-top: 0; }
}
@media (min-width: 940px) {
  .tl-calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tl-calc--wide { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .tl-out { border-top: 0; border-left: 1.5px solid var(--ink); }
  .tl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tl-cols { grid-template-columns: minmax(0, 1fr) 320px; }
  .tl-side { position: sticky; top: calc(var(--nav-h) + 24px); }
}
@media (max-width: 479px) {
  .tl-row { grid-template-columns: 1fr; }
  .tl-score__side b { font-size: 1.25rem; }
}

/* ---------- imprimir o guardar en PDF: una hoja con los datos y el resultado (la monta herramientas.js) ---------- */
#tl-print { display: none; }
@media print {
  @page { size: A4 portrait; margin: 14mm 15mm; }
  html, body { background: #fff !important; }
  body > *:not(#tl-print) { display: none !important; }
  #tl-print, #tl-print * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #tl-print { display: block; color: #0a0a0a; font-family: var(--font-main); font-size: 10.5pt; line-height: 1.45; }
  #tl-print [hidden] { display: none !important; }
  .tlp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 1.5pt solid #0a0a0a; font-size: 8.5pt; color: #555; }
  .tlp-head strong { font-family: var(--font-head); font-size: 12pt; letter-spacing: .3em; color: #0a0a0a; }
  #tl-print h1 { font-family: var(--font-head); font-size: 20pt; line-height: 1.1; letter-spacing: -.02em; margin: 14pt 0 12pt; }
  #tl-print h2 { font-family: var(--font-mono); font-size: 7.5pt; letter-spacing: .14em; text-transform: uppercase; color: #555; margin: 0 0 6pt; font-weight: 400; }
  .tlp-in { margin-bottom: 14pt; }
  .tlp-in dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18pt; margin: 0; }
  .tlp-in dl > div { display: flex; justify-content: space-between; gap: 10pt; padding: 4pt 0; border-bottom: .5pt solid #d9d6cf; break-inside: avoid; }
  .tlp-in dt { color: #444; } .tlp-in dd { margin: 0; font-weight: 700; text-align: right; }
  .tlp-out { display: grid; gap: 10pt; }
  .tlp-out .tl-big { break-inside: avoid; }
  .tlp-out .tl-big__v { font-size: 30pt; }
  .tlp-out .tl-big__k, .tlp-out .tl-big__n { font-size: 9.5pt; }
  .tlp-out .tl-dl > div { padding: 5pt 0; break-inside: avoid; }
  .tlp-out .tl-say, .tlp-out .tl-warn { padding: 7pt 9pt; break-inside: avoid; font-size: 10pt; }
  .tlp-out .tl-duo { break-inside: avoid; }
  .tlp-out .tl-duo b { font-size: 15pt; }
  .tlp-out .tl-more { border: 0; padding: 0; }
  .tlp-out .tl-scroll { overflow: visible; }
  .tlp-out .tl-t { font-size: 8.5pt; } .tlp-out .tl-t td, .tlp-out .tl-t th { padding: 3pt 6pt 3pt 0; }
  .tlp-out .tl-t tr { break-inside: avoid; }
  .tlp-out .tlc { max-height: 150pt; break-inside: avoid; }
  .tlp-out .tl-bars { break-inside: avoid; }
  .tlp-out .tl-hint { font-size: 8.5pt; }
  .tlp-out a { color: inherit; text-decoration: none; }
  .tlp-foot { margin-top: 14pt; padding-top: 7pt; border-top: .5pt solid #d9d6cf; font-size: 7.5pt; line-height: 1.5; color: #555; }
}
