/* TERRA · Nicoya: styles owned by interact.js — hover readout, drawing, comparing, keys.
   Square corners, no gradients, 44 px targets, gold focus from engine.css. */

/* hover readout: positioned by transform from the top-left of the map box */
.tip { left: 0; top: 0; min-width: 190px; max-width: 280px; will-change: transform; }
.ix-tip-head { font-weight: 500; font-size: 12.5px; color: var(--sand); }
.ix-tip-ll { font: 10.5px var(--mono); color: var(--sand-3); letter-spacing: .02em; margin-bottom: 4px; }
.ix-tip-facts { color: var(--sand-2); }
.ix-tip-lens { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--line); }
.ix-tip-lens span { display: block; font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sand-3); }
.ix-tip-lens b { display: block; font-weight: 500; color: var(--teal); }
.ix-tip-lens small { display: block; font-size: 11px; color: var(--sand-3); }
.ix-tip-dist { margin-top: 5px; color: var(--sand-3); font-size: 11.5px; }

/* drawing */
.mapwrap.ix-drawing { cursor: crosshair; outline: 1px solid rgba(198,167,106,.55); outline-offset: -1px; }
#btnDraw[data-on] { background: transparent; color: var(--gold); border-color: var(--gold); }
#btnDraw, #btnCompare { min-height: 44px; }

/* the place you drew, and the comparison */
.ix-g { margin-top: 4px; }
.ix-row span:first-child small, .ix-cmp th small { display: block; font-size: 11.5px; color: var(--sand-3); line-height: 1.4; }
.ix-row span:last-child { font-variant-numeric: tabular-nums; }
.ix-cover { display: flex; height: 10px; background: rgba(232,226,214,.08); }
.ix-cover i { display: block; height: 100%; }
.ix-years { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--sand-2); }
.ix-years span { display: inline-flex; gap: 6px; align-items: baseline; }
.ix-years b { font: 500 11px var(--mono); color: var(--gold); }
.ix-series { display: flex; flex-direction: column; gap: 6px; }
.ix-chart { width: 100%; height: auto; display: block; background: var(--forest-deep); }
.ix-chart .ix-ax { font: 9.5px var(--mono); fill: rgba(232,226,214,.6); }
.ix-chart .ix-hit { cursor: pointer; }
.ix-chart .ix-hit:hover { fill: rgba(232,226,214,.08); }
.ix-legend { display: flex; gap: 14px; font-size: 12px; color: var(--sand-2); }
.ix-legend i { display: inline-block; width: 14px; height: 3px; vertical-align: 3px; margin-right: 6px; }
.ix-flash { padding: 8px 10px; border-left: 2px solid var(--gold); background: rgba(198,167,106,.08); color: var(--sand-2); }

.ix-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ix-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; border-bottom: 1px solid var(--line-2); }
.ix-open { min-height: 44px; padding: 8px 0; background: transparent; border: 0; text-align: left; cursor: pointer; color: var(--sand); }
.ix-open:hover { color: var(--gold); }
.ix-open small { display: block; font-size: 12px; color: var(--sand-3); }
.ix-chip { min-height: 44px; min-width: 44px; }
.ix-undo { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--sand-2); border-bottom: 1px solid var(--line-2); }

.ix-pins { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ix-pin { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.ix-pin small { display: block; font: 10.5px var(--mono); color: var(--sand-3); }
.ix-key { display: inline-grid; place-items: center; width: 18px; height: 18px; font: 500 11px var(--mono); color: var(--forest-deep); }

.ix-tablewrap { overflow-x: auto; }
.ix-cmp { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ix-cmp th, .ix-cmp td { padding: 7px 4px; border-bottom: 1px solid var(--line-2); text-align: right; vertical-align: top; }
.ix-cmp th[scope="row"] { text-align: left; font-weight: 400; color: var(--sand-2); }
.ix-cmp thead th { font: 500 10.5px var(--mono); letter-spacing: .08em; color: var(--sand-3); border-bottom: 1px solid var(--line); }
.ix-cmp .ix-tg th { text-align: left; padding-top: 12px; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sand-3); border-bottom: 1px solid var(--line); }
.ix-cmp td.ix-d { color: var(--gold); white-space: nowrap; }

/* keys card and its button */
/* .btn.small (engine.css) sets 36 px; this selector outranks it so the button keeps a 44 px target */
.btn.small.ix-keysbtn { min-height: 44px; min-width: 44px; }
.ix-keys { position: absolute; right: 12px; top: 34px; z-index: 6; width: min(330px, calc(100% - 24px)); max-height: calc(100% - 50px); overflow-y: auto; padding: 10px 14px 12px; background: rgba(22,30,25,.96); border: 1px solid var(--line); font-size: 12.5px; }
.ix-keys[hidden] { display: none; }
.ix-keys-head { display: flex; justify-content: space-between; align-items: center; }
.ix-x { min-height: 44px; min-width: 44px; background: transparent; border: 0; color: var(--sand); font-size: 18px; cursor: pointer; }
.ix-x:hover { color: var(--gold); }
.ix-keys dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 4px 0 8px; }
.ix-keys dt { white-space: nowrap; }
.ix-keys dd { margin: 0; color: var(--sand-2); }
.ix-keys kbd { margin-right: 3px; }
