/* Then & Now v28.0.3 — resized capsule layout + dark-mode legibility */

body.tnn-has-app{
  margin:0;
  background:#030b17;
  background-image:
    radial-gradient(circle at 20% -10%, rgba(37,99,235,.35), transparent 55%),
    radial-gradient(circle at 78% -5%, rgba(16,185,129,.25), transparent 55%),
    radial-gradient(circle at 50% 110%, rgba(14,165,233,.2), transparent 55%),
    linear-gradient(180deg,#020617,#04122b 55%,#061832);
  min-height:100vh;
  color:#e2e8f0;
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
}

.tchn-then-now-root{width:100%;}
.tchn-tn-frame{
  width:min(100%,1000px);
  margin:0 auto;
  padding:32px 20px 90px;
  display:flex;
  flex-direction:column;
  gap:26px;
}

.tchn-hub-header{
  background:rgba(3,9,23,.9);
  border-radius:32px;
  padding:18px 26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 24px 48px rgba(2,6,23,.7);
  backdrop-filter:blur(18px);
}

.tchn-hub-brand{display:flex;align-items:center;gap:16px;min-width:0;}
.tchn-hub-logo{
  width:76px;height:76px;
  border-radius:22px;
  padding:10px;
  background:rgba(15,23,42,.85);
  border:1px solid rgba(255,255,255,.15);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 18px 32px rgba(0,0,0,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.tchn-hub-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:16px;
}
.tchn-hub-title{display:flex;flex-direction:column;gap:4px;min-width:0;}
.tchn-hub-name{font-size:22px;font-weight:800;color:#fff;}
.tchn-hub-sub{color:rgba(226,240,255,.85);font-size:14px;white-space:nowrap;}

.tchn-hub-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
.tchn-nav-link{
  padding:9px 20px;
  border-radius:999px;
  background:rgba(15,23,42,.65);
  color:#e0f2ff;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  border:1px solid transparent;
  transition:.15s;
}
.tchn-nav-link:hover{background:rgba(59,130,246,.5);border-color:rgba(255,255,255,.15);}
.tchn-nav-link.is-current{
  background:linear-gradient(135deg,#1f49ff,#21a779);
  box-shadow:0 16px 32px rgba(4,120,87,.45);
  color:#fff;
}

.tchn-tn-hero{
  border-radius:30px;
  padding:36px 28px;
  background:linear-gradient(135deg,#244f7d,#16345f);
  box-shadow:0 25px 60px rgba(2,6,23,.55);
  text-align:center;
  color:#fff;
}
.tchn-tn-hero-icon{
  width:60px;height:60px;
  margin:0 auto 16px;
  border-radius:18px;
  background:rgba(255,255,255,.18);
  display:flex;align-items:center;justify-content:center;
  font-size:32px;
}
.tchn-tn-hero h2{margin:0;font-size:34px;font-weight:800;}
.tchn-tn-hero p{margin:10px auto 0;max-width:520px;color:rgba(255,255,255,.9);}

.tchn-tn-body{
  background:#ffffff;
  border-radius:28px;
  padding:34px 32px 40px;
  box-shadow:0 22px 48px rgba(15,23,42,.18);
  color:#0f172a;
}

.tchn-form{width:100%;}

.tchn-row{display:grid;gap:16px;margin-top:14px;}
.tchn-row-3{grid-template-columns:repeat(3,minmax(0,1fr));}
.tchn-row-compare{grid-template-columns:1fr;}
.tchn-row-buttons{grid-template-columns:repeat(4,minmax(0,1fr));}
.tchn-row-mini{grid-template-columns:1fr auto;align-items:center;margin-top:10px;}

.tchn-field label{
  display:block;
  font-weight:600;
  font-size:13px;
  color:#0f172a;
  margin-bottom:6px;
}
.tchn-field input,
.tchn-field select{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.15);
  background:#fff;
  color:#0f172a;
  font-size:15px;
  padding:11px 14px;
  min-height:46px;
  box-shadow:0 10px 18px rgba(2,6,23,.06);
}
.tchn-field input:focus,
.tchn-field select:focus{
  outline:none;
  border-color:#2c5282;
  box-shadow:0 0 0 2px rgba(44,82,130,.18),0 12px 24px rgba(2,6,23,.08);
}

.tchn-field select option{color:#0f172a;background:#fff;}

.tchn-field-compare label{text-align:center;}
.tchn-compare-box{
  border-radius:14px;
  border:1px solid rgba(15,23,42,.15);
  background:#fff;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:600;
  box-shadow:0 10px 18px rgba(2,6,23,.06);
}
.tchn-compare-box input{width:16px;height:16px;}

.tchn-btn{
  border-radius:14px;
  border:1px solid rgba(15,23,42,.15);
  background:#f8fafc;
  color:#0f172a;
  font-weight:700;
  height:46px;
  cursor:pointer;
  box-shadow:0 12px 24px rgba(2,6,23,.08);
  transition:.15s;
}
.tchn-btn:hover{transform:translateY(-1px);box-shadow:0 18px 30px rgba(2,6,23,.12);}
.tchn-btn-primary{
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff;
  border:none;
  box-shadow:0 16px 32px rgba(37,99,235,.35);
}

.tchn-toggle{display:flex;align-items:center;gap:10px;font-size:13px;color:#475569;}
.tchn-toggle input{width:16px;height:16px;}

.tchn-swap{
  width:46px;height:46px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.18);
  background:#ffffff;
  font-size:20px;
  cursor:pointer;
  box-shadow:0 12px 24px rgba(15,23,42,.18);
  transition:.2s;
}
.tchn-swap:hover{transform:rotate(180deg);}

.tchn-result{
  margin:22px 0 10px;
  font-size:20px;
  font-weight:800;
  text-align:center;
  white-space:pre-line;
  color:#0f172a;
}

.tchn-share{
  margin-top:14px;
  display:grid;
  grid-template-columns:1fr 110px;
  gap:12px;
}
.tchn-share input{
  border-radius:14px;
  border:1px solid rgba(15,23,42,.15);
  background:#fff;
  color:#0f172a;
  min-height:46px;
  padding:0 14px;
  box-shadow:0 10px 18px rgba(2,6,23,.06);
}

.tchn-tn-chart{margin-top:18px;}
.tchn-tn-chart canvas{
  width:100%;
  height:260px;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.1);
  background:#fff;
  box-shadow:0 18px 36px rgba(15,23,42,.12);
}

.tchn-tn-foot{
  margin-top:14px;
  text-align:center;
  color:#475569;
  font-size:12px;
}

/* Dark mode (inputs stay readable) */
.tchn-dark .tchn-tn-body{background:#050f1e;color:#e2e8f0;}
.tchn-dark .tchn-field label,
.tchn-dark .tchn-toggle,
.tchn-dark .tchn-result{color:#e2e8f0;}
.tchn-dark .tchn-field input,
.tchn-dark .tchn-field select,
.tchn-dark .tchn-share input,
.tchn-dark .tchn-compare-box{
  background:#ffffff!important;
  color:#0f172a!important;
  border-color:rgba(15,23,42,.25)!important;
}
.tchn-dark .tchn-btn{
  background:rgba(255,255,255,.08);
  color:#e2e8f0;
  border-color:rgba(255,255,255,.18);
}
.tchn-dark .tchn-btn-primary{background:linear-gradient(135deg,#1f49ff,#2dd4bf);}
.tchn-dark .tchn-swap{background:#ffffff;color:#0f172a;}
.tchn-dark .tchn-tn-foot{color:rgba(226,232,240,.8);}
.tchn-dark .tchn-tn-chart canvas{background:#ffffff;}

.tchn-tn-fallback{padding:18px;border-radius:14px;background:#fff;color:#0f172a;text-align:center;}
.tchn-tn-fallback-sub{opacity:.75;margin-top:6px;}
.tchn-tn-noscript{color:#b91c1c;}

body.tnn-has-app h1.entry-title,
body.tnn-has-app .wp-block-post-title,
body.tnn-has-app .entry-header{display:none!important;}

@media(max-width:900px){
  .tchn-row-3,
  .tchn-row-buttons{grid-template-columns:1fr;}
}
@media(max-width:720px){
  .tchn-hub-header{flex-direction:column;align-items:flex-start;}
  .tchn-hub-nav{justify-content:flex-start;}
}
@media(max-width:600px){
  .tchn-tn-body{padding:28px 22px 34px;}
  .tchn-share{grid-template-columns:1fr;}
}
