/*
Theme Name: Telugu Finance Tips
Theme URI: https://telugufinancetips.com
Author: Telugu Finance Tips
Author URI: https://telugufinancetips.com
Description: A fast, SEO-ready WordPress theme built for Telugu-language personal finance publishing - mutual funds, stocks, insurance and money tips. Includes 35 built-in financial calculators (SIP, EMI, PPF, FD, income tax and more), each on its own page, AdSense-ready ad zones, newsletter capture and JSON-LD schema markup. Telugu typography via Noto Sans Telugu.
Version: 1.2.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: telugufinancetips
Tags: blog, news, finance, two-columns, right-sidebar, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root{
  --tft-green:#0f7b46;
  --tft-green-dark:#0a5c34;
  --tft-green-light:#e6f4ec;
  --tft-gold:#f0a500;
  --tft-ink:#161b22;
  --tft-body:#33404d;
  --tft-muted:#6b7785;
  --tft-line:#e3e8ee;
  --tft-bg:#f6f8fa;
  --tft-card:#ffffff;
  --tft-radius:12px;
  --tft-shadow:0 1px 2px rgba(16,24,40,.05),0 8px 24px rgba(16,24,40,.06);
  --tft-wrap:1200px;
  --tft-font-te:"Noto Sans Telugu","Gautami","Nirmala UI",sans-serif;
  --tft-font-en:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  background:var(--tft-bg);
  color:var(--tft-body);
  font-family:var(--tft-font-te);
  font-size:17px;
  line-height:1.85;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--tft-green);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4,h5,h6{
  font-family:var(--tft-font-te);
  color:var(--tft-ink);
  line-height:1.4;
  margin:0 0 .6em;
  font-weight:700;
}
h1{font-size:2rem}
h2{font-size:1.5rem}
h3{font-size:1.25rem}
p{margin:0 0 1.2em}
code,kbd,pre{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
blockquote{
  margin:1.5em 0;padding:1em 1.25em;border-left:4px solid var(--tft-green);
  background:var(--tft-green-light);border-radius:0 var(--tft-radius) var(--tft-radius) 0;
}
table{width:100%;border-collapse:collapse;margin:1.5em 0;font-size:.95rem}
th,td{padding:.7rem .9rem;border:1px solid var(--tft-line);text-align:left}
th{background:var(--tft-green-light);color:var(--tft-ink);font-weight:700}
tbody tr:nth-child(even){background:#fafbfc}
hr{border:0;border-top:1px solid var(--tft-line);margin:2.5em 0}
.tft-en{font-family:var(--tft-font-en)}

/* ==========================================================================
   3. Layout
   ========================================================================== */
.tft-wrap{max-width:var(--tft-wrap);margin:0 auto;padding:0 20px}
.tft-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:36px;padding:32px 0 56px}
.tft-layout.tft-full{grid-template-columns:minmax(0,1fr)}
.screen-reader-text{
  position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);
  clip-path:inset(50%);word-wrap:normal!important;
}
.skip-link:focus{
  position:fixed;left:12px;top:12px;z-index:9999;width:auto;height:auto;clip:auto;clip-path:none;
  background:var(--tft-green);color:#fff;padding:10px 18px;border-radius:8px;
}

/* ==========================================================================
   4. Header
   ========================================================================== */
.tft-topbar{background:var(--tft-green-dark);color:#cfe8da;font-size:.82rem}
.tft-topbar .tft-wrap{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:38px;flex-wrap:wrap}
.tft-topbar a{color:#fff;opacity:.9}
.tft-ticker{display:flex;gap:18px;overflow:hidden;white-space:nowrap}
.tft-ticker span b{color:var(--tft-gold)}

.tft-header{background:var(--tft-card);border-bottom:1px solid var(--tft-line);position:sticky;top:0;z-index:120}
.tft-header-inner{display:flex;align-items:center;gap:20px;min-height:76px}
.tft-brand{display:flex;align-items:center;gap:12px;text-decoration:none!important}
.tft-brand-mark{
  width:44px;height:44px;border-radius:10px;flex:0 0 44px;
  background:linear-gradient(135deg,var(--tft-green),var(--tft-green-dark));
  color:#fff;display:grid;place-items:center;font-weight:800;font-size:1.05rem;font-family:var(--tft-font-en);
}
.tft-brand-text{display:flex;flex-direction:column;line-height:1.2}
.tft-brand-name{font-size:1.28rem;font-weight:800;color:var(--tft-ink)}
.tft-brand-tag{font-size:.76rem;color:var(--tft-muted)}
.tft-header-actions{margin-left:auto;display:flex;align-items:center;gap:10px}
.tft-search-toggle,.tft-menu-toggle{
  background:var(--tft-bg);border:1px solid var(--tft-line);border-radius:9px;
  width:40px;height:40px;display:grid;place-items:center;cursor:pointer;color:var(--tft-ink);
}
.tft-menu-toggle{display:none}

/* Nav */
.tft-nav{background:var(--tft-green);}
.tft-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap}
.tft-nav li{position:relative}
.tft-nav a{
  display:block;padding:12px 16px;color:#fff;font-weight:600;font-size:.95rem;text-decoration:none!important;
}
.tft-nav a:hover,.tft-nav .current-menu-item>a{background:var(--tft-green-dark)}
.tft-nav ul ul{
  display:none;position:absolute;top:100%;left:0;min-width:220px;background:var(--tft-card);
  box-shadow:var(--tft-shadow);border-radius:0 0 10px 10px;flex-direction:column;z-index:130;
}
.tft-nav li:hover>ul{display:flex}
.tft-nav ul ul a{color:var(--tft-ink);padding:10px 16px;font-weight:500}
.tft-nav ul ul a:hover{background:var(--tft-green-light)}

.tft-searchbar{display:none;background:var(--tft-card);border-bottom:1px solid var(--tft-line);padding:14px 0}
.tft-searchbar.is-open{display:block}

/* ==========================================================================
   5. Search form / buttons / forms
   ========================================================================== */
.tft-searchform{display:flex;gap:8px}
.tft-searchform input[type=search],
input[type=text],input[type=email],input[type=url],input[type=number],input[type=search],input[type=tel],textarea,select{
  width:100%;padding:11px 14px;border:1px solid var(--tft-line);border-radius:9px;
  font-family:inherit;font-size:.95rem;background:#fff;color:var(--tft-ink);
}
input:focus,textarea:focus,select:focus{outline:2px solid var(--tft-green);outline-offset:1px;border-color:var(--tft-green)}
.tft-btn,button,input[type=submit]{
  display:inline-block;background:var(--tft-green);color:#fff;border:0;border-radius:9px;
  padding:11px 20px;font-family:inherit;font-size:.95rem;font-weight:700;cursor:pointer;
  text-decoration:none!important;transition:background .15s ease;
}
.tft-btn:hover,button:hover,input[type=submit]:hover{background:var(--tft-green-dark)}
.tft-btn-ghost{background:transparent;color:var(--tft-green);border:1px solid var(--tft-green)}
.tft-btn-ghost:hover{background:var(--tft-green-light);color:var(--tft-green-dark)}

/* ==========================================================================
   6. Cards / posts
   ========================================================================== */
.tft-section-title{
  display:flex;align-items:center;gap:12px;margin:0 0 20px;font-size:1.3rem;
  padding-bottom:10px;border-bottom:2px solid var(--tft-line);position:relative;
}
.tft-section-title::after{content:"";position:absolute;left:0;bottom:-2px;width:72px;height:2px;background:var(--tft-green)}
.tft-section-title .tft-more{margin-left:auto;font-size:.82rem;font-weight:600}

.tft-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px}
.tft-card{
  background:var(--tft-card);border:1px solid var(--tft-line);border-radius:var(--tft-radius);
  overflow:hidden;display:flex;flex-direction:column;transition:transform .15s ease,box-shadow .15s ease;
}
.tft-card:hover{transform:translateY(-3px);box-shadow:var(--tft-shadow)}
.tft-card-thumb{display:block;aspect-ratio:16/9;background:var(--tft-green-light);overflow:hidden}
.tft-card-thumb img{width:100%;height:100%;object-fit:cover}
.tft-card-body{padding:16px 18px 20px;display:flex;flex-direction:column;flex:1}
.tft-card-title{font-size:1.06rem;margin:0 0 8px;line-height:1.5}
.tft-card-title a{color:var(--tft-ink)}
.tft-card-title a:hover{color:var(--tft-green)}
.tft-card-excerpt{font-size:.9rem;color:var(--tft-muted);margin:0 0 14px;flex:1}
.tft-meta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-size:.78rem;color:var(--tft-muted);font-family:var(--tft-font-en)}
.tft-cat{
  display:inline-block;background:var(--tft-green-light);color:var(--tft-green-dark);
  font-size:.72rem;font-weight:700;padding:3px 10px;border-radius:999px;text-decoration:none!important;
}
.tft-cat:hover{background:var(--tft-green);color:#fff}

/* Hero */
.tft-hero{display:grid;grid-template-columns:1.6fr 1fr;gap:22px;margin:28px 0 8px}
.tft-hero-main{position:relative;border-radius:var(--tft-radius);overflow:hidden;min-height:380px;background:#0b2b1c}
.tft-hero-main img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;opacity:.62}
.tft-hero-caption{
  position:relative;z-index:2;padding:28px;margin-top:auto;
  background:linear-gradient(to top,rgba(6,25,16,.94) 35%,transparent);
  display:flex;flex-direction:column;justify-content:flex-end;min-height:380px;
}
.tft-hero-caption h2{color:#fff;font-size:1.75rem;margin:10px 0 8px}
.tft-hero-caption h2 a{color:#fff}
.tft-hero-caption .tft-meta{color:#c9d8d0}
.tft-hero-side{display:grid;gap:14px;align-content:start}
.tft-hero-item{display:flex;gap:12px;background:var(--tft-card);border:1px solid var(--tft-line);border-radius:10px;padding:10px}
.tft-hero-item img{width:92px;height:68px;object-fit:cover;border-radius:8px;flex:0 0 92px}
.tft-hero-item h3{font-size:.95rem;margin:0 0 6px;line-height:1.45}
.tft-hero-item h3 a{color:var(--tft-ink)}

/* Single post */
.tft-article{background:var(--tft-card);border:1px solid var(--tft-line);border-radius:var(--tft-radius);padding:32px}
.tft-article-header h1{font-size:2.05rem;margin-bottom:14px}
.tft-breadcrumbs{font-size:.8rem;color:var(--tft-muted);margin-bottom:14px;font-family:var(--tft-font-en)}
.tft-breadcrumbs a{color:var(--tft-muted)}
.tft-article-meta{
  display:flex;flex-wrap:wrap;gap:14px;align-items:center;padding:14px 0;margin-bottom:22px;
  border-top:1px solid var(--tft-line);border-bottom:1px solid var(--tft-line);
  font-size:.83rem;color:var(--tft-muted);font-family:var(--tft-font-en);
}
.tft-avatar{width:34px;height:34px;border-radius:50%}
.tft-featured{border-radius:var(--tft-radius);overflow:hidden;margin-bottom:24px}
.tft-content{font-size:1.19rem}
.tft-content h2{margin-top:1.8em;font-size:1.62rem;scroll-margin-top:150px;padding-left:12px;border-left:4px solid var(--tft-green)}
.tft-content h3{margin-top:1.5em;font-size:1.34rem;scroll-margin-top:150px}
.tft-content ul,.tft-content ol{padding-left:1.4em;margin-bottom:1.3em}
.tft-content li{margin-bottom:.5em}
.tft-content img{border-radius:10px;margin:1.2em 0}
.tft-content figure{margin:1.4em 0}
.tft-content figcaption{font-size:.82rem;color:var(--tft-muted);text-align:center;margin-top:.5em}

.tft-toc{background:var(--tft-bg);border:1px solid var(--tft-line);border-radius:10px;padding:18px 22px;margin:0 0 26px}
.tft-toc-title{font-weight:800;color:var(--tft-ink);margin-bottom:8px;font-size:1rem}
.tft-toc ol{margin:0;padding-left:1.2em}
.tft-toc li{margin-bottom:.35em;font-size:.93rem}

.tft-tags{display:flex;flex-wrap:wrap;gap:8px;margin:26px 0}
.tft-tags a{
  font-size:.8rem;background:var(--tft-bg);border:1px solid var(--tft-line);
  padding:5px 12px;border-radius:999px;color:var(--tft-body);text-decoration:none!important;
}
.tft-tags a:hover{background:var(--tft-green);color:#fff;border-color:var(--tft-green)}

.tft-share{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:22px 0;padding:16px 0;border-top:1px solid var(--tft-line)}
.tft-share span{font-weight:700;color:var(--tft-ink);font-size:.9rem}
.tft-share a{
  font-size:.82rem;padding:7px 14px;border-radius:8px;color:#fff!important;
  text-decoration:none!important;font-family:var(--tft-font-en);font-weight:600;
}
.tft-share .s-wa{background:#25d366}.tft-share .s-fb{background:#1877f2}
.tft-share .s-tw{background:#111}.tft-share .s-tg{background:#26a5e4}

.tft-author-box{display:flex;gap:16px;background:var(--tft-bg);border:1px solid var(--tft-line);border-radius:var(--tft-radius);padding:20px;margin:28px 0}
.tft-author-box img{width:64px;height:64px;border-radius:50%;flex:0 0 64px}
.tft-author-box h4{margin:0 0 6px;font-size:1.05rem}
.tft-author-box p{margin:0;font-size:.9rem;color:var(--tft-muted)}

.tft-postnav{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:28px 0}
.tft-postnav a{
  display:block;background:var(--tft-card);border:1px solid var(--tft-line);
  border-radius:10px;padding:16px;color:var(--tft-ink);text-decoration:none!important;font-size:.93rem;
}
.tft-postnav a:hover{border-color:var(--tft-green)}
.tft-postnav small{display:block;color:var(--tft-muted);font-size:.75rem;margin-bottom:5px;font-family:var(--tft-font-en)}
.tft-postnav .next{text-align:right}

/* Disclaimer */
.tft-disclaimer{
  background:#fff8e6;border:1px solid #f5d78e;border-left:4px solid var(--tft-gold);
  border-radius:0 10px 10px 0;padding:16px 20px;font-size:.88rem;color:#6b4f10;margin:26px 0;
}
.tft-disclaimer strong{color:#4a3708}

/* ==========================================================================
   7. Sidebar / widgets
   ========================================================================== */
.tft-sidebar{display:flex;flex-direction:column;gap:24px;align-self:start;position:sticky;top:96px}
.tft-widget,.widget{
  background:var(--tft-card);border:1px solid var(--tft-line);border-radius:var(--tft-radius);padding:20px;
}
.tft-widget-title,.widget .widget-title,.widget h2{
  font-size:1rem;margin:0 0 14px;padding-bottom:10px;border-bottom:2px solid var(--tft-line);
  position:relative;color:var(--tft-ink);
}
.tft-widget-title::after,.widget .widget-title::after{content:"";position:absolute;left:0;bottom:-2px;width:52px;height:2px;background:var(--tft-green)}
.widget ul{list-style:none;margin:0;padding:0}
.widget li{padding:8px 0;border-bottom:1px dashed var(--tft-line);font-size:.92rem}
.widget li:last-child{border-bottom:0}
.tft-popular{display:flex;gap:12px;padding:12px 0;border-bottom:1px dashed var(--tft-line)}
.tft-popular:last-child{border-bottom:0}
.tft-popular-num{
  flex:0 0 26px;height:26px;border-radius:6px;background:var(--tft-green-light);color:var(--tft-green-dark);
  display:grid;place-items:center;font-weight:800;font-size:.8rem;font-family:var(--tft-font-en);
}
.tft-popular h4{font-size:.9rem;margin:0 0 4px;line-height:1.5;font-weight:600}
.tft-popular h4 a{color:var(--tft-ink)}
.tft-popular time{font-size:.74rem;color:var(--tft-muted);font-family:var(--tft-font-en)}

/* ==========================================================================
   8. Newsletter
   ========================================================================== */
.tft-newsletter{
  background:linear-gradient(135deg,var(--tft-green),var(--tft-green-dark));color:#fff;
  border-radius:var(--tft-radius);padding:24px;border:0;
}
.tft-newsletter h3{color:#fff;font-size:1.1rem;margin-bottom:8px}
.tft-newsletter p{font-size:.88rem;opacity:.92;margin-bottom:14px}
.tft-newsletter form{display:flex;flex-direction:column;gap:10px}
.tft-newsletter input[type=email]{border:0}
.tft-newsletter button{background:var(--tft-gold);color:#3a2900}
.tft-newsletter button:hover{background:#ffb92e}
.tft-newsletter small{display:block;margin-top:10px;font-size:.74rem;opacity:.8}
.tft-newsletter-inline{margin:30px 0}
.tft-newsletter-inline form{flex-direction:row;flex-wrap:wrap}
.tft-newsletter-inline input[type=email]{flex:1;min-width:200px}
.tft-nl-msg{font-size:.85rem;margin-top:8px}

/* ==========================================================================
   9. Ad zones
   ========================================================================== */
.tft-ad{
  margin:26px 0;text-align:center;background:#fff;border:1px dashed var(--tft-line);
  border-radius:10px;padding:12px;overflow:hidden;
}
.tft-ad-label{
  display:block;font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--tft-muted);margin-bottom:8px;font-family:var(--tft-font-en);
}
.tft-ad-placeholder{
  min-height:90px;display:grid;place-items:center;background:var(--tft-bg);
  border-radius:8px;color:var(--tft-muted);font-size:.8rem;font-family:var(--tft-font-en);
}
.tft-ad-sidebar .tft-ad-placeholder{min-height:250px}
.tft-ad-header{margin:16px 0 0}

/* ==========================================================================
   10. Calculators
   ========================================================================== */
.tft-calc{
  background:var(--tft-card);border:1px solid var(--tft-line);border-radius:var(--tft-radius);
  padding:24px;margin:30px 0;box-shadow:var(--tft-shadow);
}
.tft-calc-head{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.tft-calc-head h3{margin:0;font-size:1.2rem}
.tft-calc-icon{
  width:38px;height:38px;flex:0 0 38px;border-radius:9px;background:var(--tft-green-light);
  color:var(--tft-green-dark);display:grid;place-items:center;font-size:1.1rem;
}
.tft-calc-sub{font-size:.85rem;color:var(--tft-muted);margin:0 0 18px}
.tft-calc-fields{display:grid;gap:18px}
.tft-calc-field label{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:.92rem;font-weight:600;color:var(--tft-ink);margin-bottom:8px}
.tft-calc-val{
  font-family:var(--tft-font-en);background:var(--tft-green-light);color:var(--tft-green-dark);
  border-radius:7px;padding:3px 10px;font-size:.86rem;font-weight:700;white-space:nowrap;
}
.tft-calc-field input[type=range]{width:100%;accent-color:var(--tft-green);height:22px;padding:0;border:0;background:transparent}
.tft-calc-field input[type=number]{font-family:var(--tft-font-en)}
.tft-calc-results{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px;
  margin-top:22px;padding-top:20px;border-top:1px solid var(--tft-line);
}
.tft-calc-result{background:var(--tft-bg);border-radius:10px;padding:14px;text-align:center}
.tft-calc-result span{display:block;font-size:.78rem;color:var(--tft-muted);margin-bottom:5px}
.tft-calc-result strong{font-size:1.22rem;color:var(--tft-ink);font-family:var(--tft-font-en);word-break:break-word}
.tft-calc-result.is-primary{background:var(--tft-green);}
.tft-calc-result.is-primary span{color:#cfe8da}
.tft-calc-result.is-primary strong{color:#fff}
.tft-calc-bar{display:flex;height:12px;border-radius:999px;overflow:hidden;margin-top:18px;background:var(--tft-line)}
.tft-calc-bar i{display:block;height:100%}
.tft-calc-bar .b1{background:var(--tft-green)}
.tft-calc-bar .b2{background:var(--tft-gold)}
.tft-calc-legend{display:flex;gap:18px;justify-content:center;margin-top:10px;font-size:.8rem;color:var(--tft-muted);flex-wrap:wrap}
.tft-calc-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px}
.tft-calc-note{font-size:.78rem;color:var(--tft-muted);margin-top:14px;text-align:center}

/* ==========================================================================
   11. Pagination / comments / footer
   ========================================================================== */
.tft-pagination{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:36px 0 0}
.tft-pagination .page-numbers{
  display:grid;place-items:center;min-width:40px;height:40px;padding:0 12px;
  background:var(--tft-card);border:1px solid var(--tft-line);border-radius:9px;
  color:var(--tft-body);text-decoration:none!important;font-family:var(--tft-font-en);font-size:.9rem;
}
.tft-pagination .page-numbers.current,.tft-pagination .page-numbers:hover{background:var(--tft-green);border-color:var(--tft-green);color:#fff}

.comments-area{background:var(--tft-card);border:1px solid var(--tft-line);border-radius:var(--tft-radius);padding:28px;margin-top:28px}
.comment-list{list-style:none;margin:0;padding:0}
.comment-list li{padding:18px 0;border-bottom:1px solid var(--tft-line)}
.comment-list .children{list-style:none;padding-left:28px}
.comment-author img{border-radius:50%;margin-right:10px;vertical-align:middle}
.comment-form p{margin-bottom:14px}
.comment-form label{display:block;font-size:.9rem;font-weight:600;margin-bottom:6px;color:var(--tft-ink)}

.tft-footer{background:#101a15;color:#a8bcb1;margin-top:auto;padding-top:48px;font-size:.92rem}
.tft-footer h4{color:#fff;font-size:1rem;margin-bottom:16px}
.tft-footer-cols{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:32px;padding-bottom:36px}
.tft-footer a{color:#a8bcb1}
.tft-footer a:hover{color:#fff}
.tft-footer ul{list-style:none;margin:0;padding:0}
.tft-footer li{padding:5px 0}
.tft-footer .tft-brand-name{color:#fff}
.tft-footer .tft-brand-tag{color:#7f9689}
.tft-footer-about{font-size:.88rem;line-height:1.8;max-width:360px}
.tft-social{display:flex;gap:10px;margin-top:16px}
.tft-social a{
  width:36px;height:36px;border-radius:9px;background:#1c2b23;display:grid;place-items:center;
  color:#a8bcb1;text-decoration:none!important;font-size:.85rem;font-family:var(--tft-font-en);
}
.tft-social a:hover{background:var(--tft-green);color:#fff}
.tft-footer-legal{
  border-top:1px solid #1e2c25;padding:20px 0;display:flex;justify-content:space-between;
  gap:16px;flex-wrap:wrap;font-size:.82rem;color:#7f9689;
}
.tft-footer-disclaimer{
  background:#0a120e;border-top:1px solid #1e2c25;padding:18px 0;font-size:.78rem;color:#77897f;line-height:1.75;
}

body{display:flex;flex-direction:column;min-height:100vh}
#tft-main{flex:1}
.tft-page-header{background:var(--tft-card);border-bottom:1px solid var(--tft-line);padding:28px 0}
.tft-page-header h1{margin:0 0 6px;font-size:1.8rem}
.tft-page-header p{margin:0;color:var(--tft-muted);font-size:.92rem}
.tft-notfound{background:var(--tft-card);border:1px solid var(--tft-line);border-radius:var(--tft-radius);padding:48px;text-align:center}

/* WP core classes */
.alignleft{float:left;margin:.4em 1.6em 1em 0}
.alignright{float:right;margin:.4em 0 1em 1.6em}
.aligncenter{margin-left:auto;margin-right:auto}
.alignwide{max-width:1100px;margin-left:auto;margin-right:auto}
.alignfull{max-width:100%}
.wp-caption{max-width:100%}
.sticky .tft-card-title::before{content:"\2605 ";color:var(--tft-gold)}
.bypostauthor{}

/* ==========================================================================
   12. Responsive
   ========================================================================== */
@media(max-width:1024px){
  .tft-layout{grid-template-columns:minmax(0,1fr);gap:28px}
  .tft-sidebar{position:static}
  .tft-hero{grid-template-columns:1fr}
  .tft-hero-main,.tft-hero-caption{min-height:300px}
  .tft-footer-cols{grid-template-columns:1fr 1fr}
}
@media(max-width:768px){
  body{font-size:16px}
  h1{font-size:1.6rem}
  .tft-article{padding:20px}
  .tft-article-header h1{font-size:1.55rem}
  .tft-menu-toggle{display:grid}
  .tft-nav{position:absolute;left:0;right:0;display:none}
  .tft-nav.is-open{display:block}
  .tft-nav ul{flex-direction:column}
  .tft-nav ul ul{position:static;display:flex;background:var(--tft-green-dark);box-shadow:none;border-radius:0}
  .tft-nav ul ul a{color:#fff}
  .tft-postnav{grid-template-columns:1fr}
  .tft-footer-cols{grid-template-columns:1fr}
  .tft-ticker{display:none}
}
@media print{
  .tft-header,.tft-nav,.tft-sidebar,.tft-footer,.tft-ad,.tft-share,.tft-newsletter{display:none!important}
  .tft-layout{grid-template-columns:1fr}
}

/* ==========================================================================
   13. Calculator hub + individual calculator pages
   ========================================================================== */
.tft-calc-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:18px;margin:0 0 40px;
}
.tft-calc-card{
  display:flex;flex-direction:column;gap:4px;
  background:var(--tft-card);border:1px solid var(--tft-line);border-radius:var(--tft-radius);
  padding:20px;text-decoration:none!important;color:var(--tft-body);
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;
  position:relative;overflow:hidden;min-height:150px;
}
.tft-calc-card::after{
  content:"";position:absolute;inset:0 0 auto auto;width:64px;height:64px;
  background:var(--tft-green-light);border-radius:0 0 0 64px;opacity:.55;transition:opacity .15s ease;
}
.tft-calc-card:hover{transform:translateY(-3px);box-shadow:var(--tft-shadow);border-color:var(--tft-green)}
.tft-calc-card:hover::after{opacity:1}
.tft-calc-card-icon{
  position:relative;z-index:1;width:40px;height:40px;border-radius:10px;
  background:var(--tft-green-light);color:var(--tft-green-dark);
  display:grid;place-items:center;font-size:1.15rem;margin-bottom:10px;
}
.tft-calc-card-name{position:relative;z-index:1;font-weight:700;color:var(--tft-ink);font-size:1rem;line-height:1.45}
.tft-calc-card-en{position:relative;z-index:1;font-family:var(--tft-font-en);font-size:.76rem;color:var(--tft-green);font-weight:600}
.tft-calc-card-tag{position:relative;z-index:1;font-size:.84rem;color:var(--tft-muted);line-height:1.6;margin-top:6px}

.tft-calc-hero{display:flex;align-items:center;gap:16px;margin:14px 0 6px}
.tft-calc-hero .tft-calc-icon{width:56px;height:56px;flex:0 0 56px;font-size:1.5rem;border-radius:14px}
.tft-calc-hero h1{margin:0;font-size:1.7rem}
.tft-calc-en{margin:4px 0 0;font-family:var(--tft-font-en);font-size:.86rem;color:var(--tft-green);font-weight:600}
.tft-calc-lead{color:var(--tft-muted);font-size:1rem;margin:10px 0 0}
.tft-calc-all{text-align:center;margin:32px 0}

/* Select fields inside calculators */
.tft-calc-field select{background:#fff;cursor:pointer}

/* FAQ blocks */
.tft-faq{
  background:var(--tft-card);border:1px solid var(--tft-line);border-radius:10px;
  padding:0;margin:0 0 12px;overflow:hidden;
}
.tft-faq summary{
  cursor:pointer;padding:16px 20px;font-weight:700;color:var(--tft-ink);
  list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:1.02rem;
}
.tft-faq summary::-webkit-details-marker{display:none}
.tft-faq summary::after{content:"+";color:var(--tft-green);font-size:1.4rem;font-weight:400;line-height:1}
.tft-faq[open] summary::after{content:"\2212"}
.tft-faq[open] summary{border-bottom:1px solid var(--tft-line)}
.tft-faq>div{padding:16px 20px;font-size:1rem}
.tft-faq>div p:last-child{margin-bottom:0}

/* Calculator page tweaks */
.tft-calc-page .tft-calc{box-shadow:none;margin-top:22px}
.tft-calc-single .tft-article{padding-bottom:24px}

@media(max-width:768px){
  .tft-calc-grid{grid-template-columns:1fr 1fr;gap:12px}
  .tft-calc-card{padding:14px;min-height:auto}
  .tft-calc-card-tag{display:none}
  .tft-calc-hero h1{font-size:1.35rem}
  .tft-calc-hero .tft-calc-icon{width:44px;height:44px;flex:0 0 44px;font-size:1.2rem}
}
@media(max-width:420px){
  .tft-calc-grid{grid-template-columns:1fr}
}

/* ==========================================================================
   14. Editable calculator inputs (slider + type-your-own)
   ========================================================================== */
.tft-calc-field label{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  font-size:.92rem;font-weight:600;color:var(--tft-ink);margin-bottom:10px;flex-wrap:wrap;
}
.tft-calc-label{flex:1;min-width:0}

.tft-calc-val{
  display:inline-flex;align-items:center;gap:2px;
  background:var(--tft-green-light);border:1px solid transparent;border-radius:8px;
  padding:2px 10px;transition:border-color .15s ease,background .15s ease;
  font-family:var(--tft-font-en);flex:0 0 auto;
}
.tft-calc-val:focus-within{background:#fff;border-color:var(--tft-green);box-shadow:0 0 0 3px rgba(15,123,70,.14)}
.tft-calc-affix{font-style:normal;color:var(--tft-green-dark);font-size:.86rem;font-weight:700}

.tft-calc-num{
  width:auto;min-width:64px;max-width:150px;
  border:0!important;background:transparent!important;padding:4px 2px!important;
  font-family:var(--tft-font-en);font-size:.92rem;font-weight:700;
  color:var(--tft-green-dark);text-align:right;
  field-sizing:content;
}
.tft-calc-num:focus{outline:none!important;box-shadow:none!important}
.tft-calc-num::-webkit-outer-spin-button,
.tft-calc-num::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.tft-calc-num[type=number]{-moz-appearance:textfield;appearance:textfield}
.tft-calc-num.is-over{color:#a2560b}
.tft-calc-val:has(.is-over){background:#fff4e0}

.tft-calc-limits{
  display:flex;justify-content:space-between;font-size:.72rem;color:var(--tft-muted);
  font-family:var(--tft-font-en);margin-top:2px;
}
.tft-calc-hint{
  font-size:.8rem;color:var(--tft-muted);margin:18px 0 0;
  padding:10px 14px;background:var(--tft-bg);border-radius:8px;line-height:1.6;
}
.tft-calc-fields{gap:22px}

/* Invisible legacy anchors kept so previously shared links still resolve */
.tft-anchor{display:block;height:0;overflow:hidden;scroll-margin-top:150px}
[id]{scroll-margin-top:150px}

@media(max-width:520px){
  .tft-calc-field label{gap:8px}
  .tft-calc-num{max-width:110px;font-size:.88rem}
  .tft-calc-label{flex:1 1 100%;order:1}
  .tft-calc-val{order:2;margin-left:auto}
}

/* Disclaimer shown on views whose template does not place it inline */
.tft-disclaimer-auto{padding-bottom:8px}
.tft-disclaimer-auto .tft-disclaimer{margin:0 0 34px}
