/* /tools/ in the mionto.net v2 look. Added by mionto_build/tools_v2_apply.py after every tools build
   (the tools build itself stays untouched). Only mionto.css variables, light + dark themes, mobile-first. */

/* ── language menu: light surface like the rest of the site (was always dark) ── */
.tools-lang-menu { background: var(--m-surface); border: 1px solid var(--m-border-bright); border-radius: 12px; box-shadow: var(--m-shadow-lg); }
.tools-lang[open] > summary { color: var(--m-text); border-color: var(--m-border-strong); }

/* ── page background like other v2 pages ── */
body[data-site="mionto-tools"] { background: var(--m-bg-1); }
.fr-section { padding: 0; }

/* ── hub ── */
.tv-hero { position: relative; overflow: hidden; padding: 44px 0 28px; }
.tv-hero:before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,.18), transparent 65%); pointer-events: none; }
.tv-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; position: relative; }
.tv-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--m-blue); background: var(--m-green-dim); border-radius: 99px; padding: 6px 14px; }
.tv-badge:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tv-hero h1 { font-size: clamp(32px, 6vw, 54px); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; margin: 16px 0 14px; max-width: 760px; text-wrap: balance; }
.tv-lead { font-size: clamp(15px, 2vw, 18px); color: var(--m-text-2); line-height: 1.6; max-width: 680px; margin: 0; }

.tv-groups { display: grid; gap: 28px; padding-bottom: 48px; }
.tv-group h2 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--m-muted); margin: 0 0 12px; }
.tv-grid { display: grid; gap: 12px; }
.tv-card { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px; border-radius: 20px;
  background: var(--m-surface); border: 1px solid var(--m-border); box-shadow: var(--m-shadow); color: var(--m-text); text-decoration: none;
  transition: transform .18s, border-color .18s, box-shadow .18s; min-width: 0; }
.tv-card:hover { transform: translateY(-2px); border-color: var(--m-green); box-shadow: var(--m-shadow-lg); }
.tv-ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.tv-ico svg { width: 24px; height: 24px; }
.tv-card b { display: block; font-size: 16px; line-height: 1.3; }
.tv-card small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--m-text-2); }
.tv-card > div { min-width: 0; }
.tv-go { color: var(--m-blue); font-size: 20px; font-weight: 700; transition: transform .18s; }
.tv-card:hover .tv-go { transform: translateX(3px); }
.i-green  { background: linear-gradient(135deg, #34D399, #059669); }
.i-indigo { background: linear-gradient(135deg, #818CF8, #4F46E5); }
.i-pink   { background: linear-gradient(135deg, #F9A8D4, #DB2777); }
.i-orange { background: linear-gradient(135deg, #FDBA74, #F97316); }
.i-sky    { background: linear-gradient(135deg, #7DD3FC, #0284C7); }
.i-violet { background: linear-gradient(135deg, #C4B5FD, #7C3AED); }

.tv-rebate { display: grid; gap: 14px; padding: 22px; border-radius: 26px; text-decoration: none; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #065F46, #047857 55%, #0D9488); box-shadow: 0 26px 50px -26px rgba(4,120,87,.75); }
.tv-rebate:after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: #34D399; filter: blur(80px); opacity: .35; right: -80px; top: -110px; }
.tv-rebate > * { position: relative; }
.tv-rebate .tv-kick { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.tv-rebate b { font-size: clamp(20px, 3vw, 26px); line-height: 1.2; }
.tv-rebate small { font-size: 15px; line-height: 1.5; opacity: .9; max-width: 560px; }
.tv-rebate .tv-btn { justify-self: start; background: #fff; color: #065F46; font-weight: 800; font-size: 14px; border-radius: 12px; padding: 12px 20px; }
.tv-groups .tools-cta { margin-top: 0; padding: 18px 20px; border: 1px solid var(--m-border); border-radius: 20px; background: var(--m-surface); }

@media (min-width: 760px) {
  .tv-hero { padding: 64px 0 36px; }
  .tv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tv-card { grid-template-columns: 1fr; align-content: start; gap: 12px; padding: 22px; }
  .tv-go { display: none; }
  .tv-card b { font-size: 17px; }
  .tv-rebate { grid-template-columns: 1fr auto; align-items: center; padding: 28px 32px; }
  .tv-rebate .tv-btn { grid-row: 1 / span 3; grid-column: 2; align-self: center; }
}

/* ── calculator pages ── */
.fr-calc-page { padding-top: 32px; padding-bottom: 48px; }
.fr-breadcrumb a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; color: var(--m-blue); text-decoration: none;
  background: var(--m-green-dim); border-radius: 99px; padding: 6px 12px; }
.fr-breadcrumb a:before { content: "←"; }
.fr-calc-page h1 { font-size: clamp(28px, 5vw, 44px); letter-spacing: -.03em; }
.calc-card { border-radius: 24px; box-shadow: var(--m-shadow); }
.calc-results { border-radius: 20px; background: linear-gradient(160deg, var(--m-green-dim), var(--m-bg-1) 70%); }
.calc-field input, .calc-field select, .calc-search { border-radius: 12px; min-height: 44px; }
.calc-explain h2, .faq h2 { letter-spacing: -.02em; }
.faq-item { border-radius: 16px; }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after { content: "+"; font-size: 20px; font-weight: 400; color: var(--m-blue); transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary:after { transform: rotate(45deg); }

@media (prefers-reduced-motion: reduce) { .tv-card, .tv-go { transition: none; } }

/* footer risk warning: hard-coded dark greys were unreadable in the dark theme */
body[data-site="mionto-tools"] footer [style*="#3a3a4a"] { color: var(--m-muted) !important; }
body[data-site="mionto-tools"] footer [style*="#4a4a5a"] { color: var(--m-text-2) !important; }
body[data-site="mionto-tools"] footer [style*="rgba(255,255,255,0.04)"] { border-top-color: var(--m-border) !important; }
