/* Herald · Tools — app tweaks. Base in glass-core.css. */

/* Result hero (calculator / tip / convert) — big, premium. */
.t-out {
  flex-shrink: 0;
  text-align: center;
  padding: 20px 16px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--s-3), var(--s-1));
  border: 1px solid var(--line);
}
.t-big {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  word-break: break-all;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
}
.t-sub { font-size: var(--fs-sm); color: var(--text-secondary); margin-top: 6px; }

/* Premium tiles (home tools + tip/convert inputs), 2-up grid. */
.t-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 16px 14px;
  min-height: 104px;
}
.t-bg {
  position: absolute;
  right: -16px;
  bottom: -18px;
  width: 96px;
  height: 96px;
  color: #52d9ff;
  opacity: 0.08;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.t-bg .icon { width: 100%; height: 100%; }
.t-tile:focus .t-bg { opacity: 0.16; }
.t-tile-ic { color: #52d9ff; display: flex; position: relative; z-index: 1; }
.t-tile-ic .icon { width: 30px; height: 30px; }
.t-tile-nm, .t-tile-sb, .t-tile-lab, .t-tile-val { position: relative; z-index: 1; }
.t-tile-nm {
  font-size: var(--fs-base);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}
.t-tile-sb { font-size: var(--fs-xs); color: var(--text-muted); }
.t-vtile { gap: 9px; }
.t-tile-lab {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.t-tile-val {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.t-tile:focus {
  outline: none;
  border-color: var(--focus-ring) !important;
  box-shadow: 0 0 0 2px var(--focus-ring), 0 0 20px var(--aa-glow, rgba(82, 217, 255, 0.3));
  transform: translateY(-1px);
}
.t-tile:focus .t-tile-val,
.t-tile:focus .t-tile-nm { color: var(--brand); }

/* Full-width home feature cards — 3 confident rows that fill the
   screen instead of a sparse 2-col grid with dead space. */
.t-home {
  flex-direction: row;
  align-items: center;
  gap: 18px;
  min-height: 158px;
  padding: 22px 22px;
}
.t-home-ic {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #52d9ff;
  background: linear-gradient(180deg, rgba(82, 217, 255, 0.14), rgba(82, 217, 255, 0.04));
  border: 1px solid rgba(82, 217, 255, 0.22);
}
.t-home-ic .icon { width: 34px; height: 34px; }
.t-home-tx { position: relative; z-index: 1; flex: 1; min-width: 0; }
.t-home-nm {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text-primary);
}
.t-home-sb {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t-home-go {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
}
.t-home:focus {
  outline: none;
  border-color: var(--focus-ring) !important;
  box-shadow: 0 0 0 2px var(--focus-ring), 0 0 20px var(--aa-glow, rgba(82, 217, 255, 0.3));
  transform: translateY(-1px);
}
.t-home:focus .t-home-nm { color: var(--app-accent, var(--brand)); }
.t-home:focus .t-home-ic {
  color: var(--app-accent, var(--brand));
  border-color: var(--focus-ring);
  background: linear-gradient(180deg, var(--aa-glow-soft, rgba(106, 255, 180, 0.16)), var(--aa-bloom, rgba(106, 255, 180, 0.04)));
}
.t-home:focus .t-home-go { color: var(--brand); }

/* Tip % quick presets — one tap, no scrolling. The active tip stays
   clearly marked even when focus is elsewhere. */
.t-pct { min-height: 84px; }
.t-pct.is-on {
  border-color: #52d9ff !important;
  background: linear-gradient(180deg, rgba(82, 217, 255, 0.16), rgba(82, 217, 255, 0.05));
}
.t-pct.is-on .t-tile-val,
.t-pct.is-on .t-tile-lab { color: #52d9ff; }
