/*
Theme Name:   Calculator Dekho Child
Theme URI:    https://calculatordekho.com
Description:  Custom child theme for Calculator Dekho (GeneratePress + GenerateBlocks)
Author:       Calculator Dekho Team
Author URI:   https://calculatordekho.com
Template:     generatepress
Version:      1.0.0
Text Domain:  calculator-dekho-child
*/

/* ═══════════════════════════════════════════════════════
   Remove GeneratePress's default footer bar — we have our
   own custom navy footer (added via inc/footer.php) instead.
═══════════════════════════════════════════════════════ */
.site-footer,
.site-info {
	display: none !important;
}

/* ═══════════════════════════════════════════════════════
   HOME PAGE — Block-editor-friendly styles
   (Used by the "Calculator Dekho — Homepage" block pattern.
   Visual language matches aslitools.com: warm cream hero,
   bold black headline with an underlined orange highlight,
   inline stats sentence, pill category filters, and square
   icon-badge cards. All content is normal WordPress blocks —
   this CSS only handles look & feel, not the text/links.)
═══════════════════════════════════════════════════════ */

:root {
	--cd-cream: #FDF6EE;
	--cd-orange: #EA580C;
	--cd-orange-dark: #C2410C;
	--cd-ink: #1A1A1A;
}

/* Remove GeneratePress's default top padding above the content ONLY on
   pages that use this pattern (detected via the .cd-hero block), so the
   hero touches the menu directly. Other pages are unaffected. */
.entry-content:has(.cd-hero),
.inside-article:has(.cd-hero) {
	padding-top: 0 !important;
}
.entry-content > .cd-hero:first-child,
.inside-article > .cd-hero:first-child {
	margin-top: 0 !important;
}

/* ---------- Hero ---------- */
.cd-hero {
	position: relative;
	background-color: var(--cd-cream);
	background-image: radial-gradient(circle, rgba(234,88,12,0.10) 1px, transparent 1px);
	background-size: 22px 22px;
	padding: 72px 20px 56px;
	text-align: center;
	overflow: hidden;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.cd-hero-inner { max-width: 700px; margin: 0 auto; }
.cd-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #FFFFFF;
	border: 1px solid #FBD5B4;
	color: var(--cd-orange-dark);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.03em;
	padding: 7px 16px;
	border-radius: 100px;
	margin-bottom: 26px;
}
.cd-hero-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: clamp(28px, 5.5vw, 48px);
	color: var(--cd-ink);
	line-height: 1.2;
	margin: 0 0 16px;
}
.cd-hero-highlight {
	background: none !important;
	background-color: transparent !important;
	color: var(--cd-orange) !important;
	padding: 0 !important;
	text-decoration: underline;
	text-decoration-color: var(--cd-orange);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}
.cd-hero-sub {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	color: #57534E;
	max-width: 560px;
	margin: 0 auto 28px;
	line-height: 1.65;
}

/* Search box (Custom HTML block inside the pattern) */
.cd-search-wrap {
	position: relative;
	max-width: 480px;
	margin: 0 auto 22px;
}
.cd-search-icon {
	position: absolute !important;
	left: 16px !important;
	top: 50%;
	transform: translateY(-50%);
	width: 18px !important;
	height: 18px !important;
	color: #A8A29E;
	pointer-events: none;
	z-index: 2;
}
.cd-search-input {
	width: 100%;
	padding: 15px 44px 15px 46px !important;
	font-size: 15px;
	font-family: 'Inter', sans-serif;
	background: #FFFFFF;
	border: 1.5px solid #F0E4D6;
	border-radius: 12px;
	color: var(--cd-ink);
	outline: none;
	transition: border-color 0.2s;
	box-shadow: 0 4px 16px rgba(234,88,12,0.06);
	position: relative;
	z-index: 1;
}
.cd-search-input:focus { border-color: var(--cd-orange); }
.cd-search-clear {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: #A8A29E;
	font-size: 14px;
	padding: 4px;
}

/* Inline stats sentence (replaces separate stat numbers) */
.cd-hero-stats-line {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #78716C;
	margin: 0;
}
.cd-stat-highlight {
	background: none !important;
	background-color: transparent !important;
	color: var(--cd-orange) !important;
	font-weight: 700 !important;
	padding: 0 !important;
}

/* ---------- Tools section ---------- */
.cd-tools-section {
	max-width: 1100px;
	margin: 0 auto;
	padding: 56px 20px 10px;
	background: #FFFFFF;
}
.cd-section-header { margin-bottom: 24px; }
.cd-section-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: clamp(22px, 3.5vw, 32px);
	color: var(--cd-ink);
	margin: 0 0 8px;
}
.cd-section-sub { font-size: 15px; color: #78716C; margin: 0; }

/* Category filter pills */
.cd-filter-bar { gap: 10px !important; margin-bottom: 32px; }
.cd-filter .wp-block-button__link {
	background: #FFFFFF !important;
	color: #57534E !important;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 13.5px !important;
	padding: 11px 18px !important;
	border-radius: 100px !important;
	border: 1.5px solid #EFE7DC;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cd-filter .wp-block-button__link:hover { border-color: var(--cd-orange); color: var(--cd-orange-dark) !important; }
.cd-filter.active .wp-block-button__link {
	background: var(--cd-orange) !important;
	color: #fff !important;
	border-color: var(--cd-orange);
}

.cd-tools-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
	gap: 18px;
	padding-bottom: 30px;
}

/* ---------- Tool Card ---------- */
.cd-tool-card {
	background: #FFFFFF;
	border-radius: 14px;
	padding: 20px 18px;
	border: 1.5px solid #F0EFEA;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	text-align: left;
}
.cd-tool-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0,0,0,0.08);
	border-color: #FBD5B4;
}
.cd-tool-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	font-size: 21px !important;
	margin: 0 0 14px !important;
}
.cd-icon-blue { background: #EFF6FF; }
.cd-icon-green { background: #F0FDF4; }
.cd-icon-purple { background: #FAF5FF; }
.cd-icon-red { background: #FEF2F2; }
.cd-icon-orange { background: #FFF3E8; }
.cd-tool-card h3 {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 16px;
	color: var(--cd-ink);
	margin: 0 0 6px;
}
.cd-tool-card p { font-size: 13px; color: #78716C; margin: 0; line-height: 1.5; }
.cd-tool-card .cd-card-btn .wp-block-button__link {
	background: none;
	color: inherit;
	padding: 12px 0 0;
	font-size: 14px;
	font-weight: 600;
}
.cd-color-1 .cd-card-btn .wp-block-button__link { color: #2563EB; }
.cd-color-2 .cd-card-btn .wp-block-button__link { color: #16A34A; }
.cd-color-3 .cd-card-btn .wp-block-button__link { color: #9333EA; }
.cd-color-4 .cd-card-btn .wp-block-button__link { color: #DC2626; }
.cd-color-5 .cd-card-btn .wp-block-button__link { color: var(--cd-orange); }

.cd-no-results { text-align: center; font-size: 15px; color: #A8A29E; padding: 40px 20px !important; }

/* ---------- Popular strip ---------- */
.cd-popular-section {
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px 20px 56px;
	text-align: center;
	background: #FFFFFF;
}
.cd-popular-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
	gap: 18px;
	margin-top: 28px;
	text-align: left;
}
.cd-popular-card {
	background: linear-gradient(160deg, #FFF3E8 0%, #FFFFFF 65%);
	border: 1.5px solid #FBD5B4;
	border-radius: 16px;
	padding: 24px;
}
.cd-popular-icon { font-size: 30px !important; margin: 0 0 12px !important; }
.cd-popular-card h3 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 17px; color: var(--cd-ink); margin: 0 0 8px; }
.cd-popular-card p { font-size: 13px; color: #78716C; margin: 0 0 16px; line-height: 1.55; }
.cd-popular-btn .wp-block-button__link {
	display: inline-block;
	background: var(--cd-orange) !important;
	color: #fff !important;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 13px !important;
	padding: 10px 18px !important;
	border-radius: 8px !important;
}
.cd-popular-btn .wp-block-button__link:hover { background: var(--cd-orange-dark) !important; }

/* ---------- Why Us section ---------- */
.cd-why-section {
	background-color: var(--cd-cream);
	background-image: radial-gradient(circle, rgba(234,88,12,0.08) 1px, transparent 1px);
	background-size: 22px 22px;
	padding: 60px 20px;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	text-align: center;
}
.cd-why-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 20px;
	max-width: 1000px;
	margin: 28px auto 0;
}
.cd-why-card {
	background: #FFFFFF;
	border-radius: 14px;
	padding: 26px 22px;
	text-align: left;
	border: 1px solid #F0EFEA;
}
.cd-why-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: #FFF3E8;
	font-size: 20px !important;
	margin: 0 0 14px !important;
}
.cd-why-card h4 {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 16px;
	color: var(--cd-ink);
	margin: 0 0 8px;
}
.cd-why-card p { font-size: 13px; color: #78716C; margin: 0; line-height: 1.6; }

/* ---------- Home page mobile ---------- */
@media (max-width: 640px) {
	.cd-hero { padding: 52px 16px 40px; }
	.cd-tools-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
	.cd-tool-card { padding: 16px 14px; }
	.cd-why-grid { grid-template-columns: repeat(1, 1fr) !important; }
	.cd-filter .wp-block-button__link { font-size: 12.5px !important; padding: 9px 14px !important; }
}

   FORM HUB PAGE — Block-editor-friendly styles
   (Used by the "Calculator Dekho — Form Hub" block pattern.)
   Uses the SAME cream + orange visual language as the Homepage
   (.cd-hero) so every page on the site looks like one theme.
═══════════════════════════════════════════════════════ */

/* Same top-padding fix, scoped to pages using .fh-hero */
.entry-content:has(.fh-hero),
.inside-article:has(.fh-hero) {
	padding-top: 0 !important;
}
.entry-content > .fh-hero:first-child,
.inside-article > .fh-hero:first-child {
	margin-top: 0 !important;
}

/* ---------- Hero (matches .cd-hero on the homepage) ---------- */
.fh-hero {
	position: relative;
	background-color: var(--cd-cream);
	background-image: radial-gradient(circle, rgba(234,88,12,0.10) 1px, transparent 1px);
	background-size: 22px 22px;
	padding: 72px 20px 56px;
	text-align: center;
	overflow: hidden;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.fh-hero-inner { max-width: 680px; margin: 0 auto; }
.fh-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #FFFFFF;
	border: 1px solid #FBD5B4;
	color: var(--cd-orange-dark);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.03em;
	padding: 7px 16px;
	border-radius: 100px;
	margin-bottom: 26px;
}
.fh-hero-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: clamp(28px, 5.5vw, 46px);
	color: var(--cd-ink);
	line-height: 1.2;
	margin: 0 0 16px;
}
.fh-hero-title mark { background: none !important; background-color: transparent !important; color: var(--cd-orange) !important; padding: 0 !important; }
.fh-hero-sub { font-family: 'Inter', sans-serif; font-size: 16px; color: #57534E; max-width: 560px; margin: 0 auto 28px; line-height: 1.65; }

.fh-hero-stats { display: flex !important; gap: 20px; margin-bottom: 26px; }
.fh-stat { text-align: center; }
.fh-stat-num { font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 700; color: var(--cd-orange); margin: 0; line-height: 1; }
.fh-stat-label { font-size: 12px; color: #78716C; text-transform: uppercase; letter-spacing: 0.05em; margin: 4px 0 0; }
.fh-stat-div { width: 1px; height: 32px; background: #E7DDCE; }

.fh-whatsapp-btn .wp-block-button__link {
	background: #25D366 !important;
	color: #fff !important;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	border-radius: 100px !important;
	padding: 13px 26px !important;
}
.fh-whatsapp-btn .wp-block-button__link:hover { background: #1ebe5b !important; }

/* ---------- Tabs nav ---------- */
.fh-tabs-nav {
	background: #FFFFFF;
	border-bottom: 1px solid #F0EFEA;
	position: sticky;
	top: 0;
	z-index: 10;
	padding: 4px 20px;
}
.fh-tabs-inner { display: flex !important; gap: 4px !important; }
.fh-tab .wp-block-button__link {
	background: none !important;
	color: #6B7280 !important;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 14px;
	padding: 14px 16px !important;
	border-radius: 0 !important;
	border-bottom: 2px solid transparent;
	transition: color 0.2s, border-color 0.2s;
}
.fh-tab .wp-block-button__link:hover { color: #EA580C !important; }
.fh-tab.active .wp-block-button__link { color: #EA580C !important; border-bottom-color: #EA580C; }

/* ---------- Sections ---------- */
.fh-main { max-width: 1100px; margin: 0 auto; padding: 0 20px 60px; }
.fh-section { display: none !important; padding-top: 36px; }
.fh-section.active { display: block !important; }
.fh-section-header { margin-bottom: 24px; }
.fh-section-header h2 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(20px, 3vw, 26px); color: #1A1A1A; margin: 0 0 6px; }
.fh-section-header p { font-size: 14px; color: #6B7280; margin: 0; }

.fh-note {
	background: #FFF7ED;
	border: 1px solid #FED7AA;
	color: #92400E;
	font-size: 13px;
	padding: 12px 16px;
	border-radius: 10px;
	margin-top: 18px;
}
.fh-note a { color: #EA580C; font-weight: 600; text-decoration: none; }
.fh-note a:hover { text-decoration: underline; }

/* ---------- CSC Form cards ---------- */
.fh-cards-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important; gap: 14px; }
.fh-form-card {
	background: #FFFFFF; border: 1px solid #F0EFEA; border-radius: 14px;
	padding: 18px; transition: box-shadow 0.2s, transform 0.2s;
}
.fh-form-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.07); transform: translateY(-2px); }
.fh-form-card h3 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px; color: #1A1A1A; margin: 0 0 4px; }
.fh-form-card p { font-size: 13px; color: #6B7280; margin: 0 0 8px; line-height: 1.4; }
.fh-form-tags { font-size: 11px !important; color: #6B7280 !important; text-transform: uppercase; letter-spacing: 0.04em; }
.fh-col-blue h3 { color: #1D4ED8; }
.fh-col-green h3 { color: #15803D; }
.fh-col-purple h3 { color: #7E22CE; }
.fh-download-btn .wp-block-button__link {
	background: #1A1A1A !important; color: #fff !important;
	font-size: 13px !important; padding: 9px 16px !important; border-radius: 8px !important;
}
.fh-download-btn .wp-block-button__link:hover { background: #EA580C !important; }

/* ---------- Device fix (accordion via core/details) ---------- */
.fh-device-block { background: #FFFFFF; border: 1px solid #F0EFEA; border-radius: 16px; padding: 18px 20px; margin-bottom: 18px; }
.fh-mantra-header, .fh-morpho-header { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px; margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; }
.fh-mantra-header { background: #EFF6FF; color: #1D4ED8; }
.fh-morpho-header { background: #F0FDF4; color: #15803D; }
.fh-device-block .wp-block-details {
	border-top: 1px solid #F0EFEA; padding: 12px 4px;
}
.fh-device-block .wp-block-details summary {
	font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px; color: #1A1A1A; cursor: pointer;
}
.fh-device-block .wp-block-details p { font-size: 13px; color: #4B5563; line-height: 1.7; margin: 10px 0 0; }

/* ---------- ₹200 Services ---------- */
.fh-services-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; gap: 18px; }
.fh-service-card { background: #FFFFFF; border: 1px solid #F0EFEA; border-radius: 16px; padding: 20px; position: relative; transition: box-shadow 0.2s, transform 0.2s; }
.fh-service-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.08); transform: translateY(-3px); }
.fh-service-popular { border-color: #EA580C; box-shadow: 0 0 0 1px rgba(234,88,12,0.2); }
.fh-popular-badge {
	display: inline-block; background: #EA580C; color: #fff !important; font-size: 11px !important; font-weight: 700;
	padding: 4px 12px; border-radius: 100px; margin: 0 0 10px;
}
.fh-service-card h3 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px; color: #1A1A1A; margin: 0 0 6px; }
.fh-service-card p { font-size: 13px; color: #6B7280; margin: 0 0 10px; }
.fh-price-new { font-family: 'Poppins', sans-serif !important; font-size: 22px !important; font-weight: 700; color: #16A34A !important; margin: 0 0 14px !important; }
.fh-service-btn .wp-block-button__link {
	display: block; text-align: center; background: #25D366 !important; color: #fff !important;
	font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px !important; border-radius: 10px !important;
}
.fh-service-btn .wp-block-button__link:hover { background: #1ebe5b !important; }

/* ---------- Premium forms ---------- */
.fh-premium-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; gap: 18px; }
.fh-premium-card { background: #FFFFFF; border: 1px solid #F0EFEA; border-radius: 16px; padding: 20px; transition: box-shadow 0.2s, transform 0.2s; }
.fh-premium-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.08); transform: translateY(-3px); }
.fh-premium-highlight { border-color: #F59E0B; box-shadow: 0 0 0 1px rgba(245,158,11,0.2); }
.fh-premium-badge-tag {
	display: inline-block; font-size: 11px !important; font-weight: 700; letter-spacing: 0.05em;
	text-transform: uppercase; background: #F3F4F6; color: #6B7280 !important;
	padding: 3px 10px; border-radius: 100px; margin: 0 0 8px !important;
}
.fh-tag-gold { background: #FFFBEB; color: #B45309 !important; }
.fh-tag-custom { background: #F0FDFA; color: #0D9488 !important; }
.fh-premium-card h3 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px; color: #1A1A1A; margin: 0 0 6px; }
.fh-premium-card p { font-size: 13px; color: #6B7280; margin: 0 0 10px; }
.fh-premium-price { font-family: 'Poppins', sans-serif !important; font-size: 20px !important; font-weight: 700; color: #1A1A1A !important; margin: 0 0 14px !important; }
.fh-premium-price span { font-size: 13px; font-weight: 400; color: #9CA3AF; }
.fh-premium-btn .wp-block-button__link {
	display: block; text-align: center; background: #1A1A1A !important; color: #fff !important;
	font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px !important; border-radius: 10px !important;
}
.fh-premium-btn .wp-block-button__link:hover { background: #EA580C !important; }
.fh-premium-btn-gold .wp-block-button__link { background: #D97706 !important; }
.fh-premium-btn-gold .wp-block-button__link:hover { background: #B45309 !important; }
.fh-premium-btn-teal .wp-block-button__link { background: #0D9488 !important; }
.fh-premium-btn-teal .wp-block-button__link:hover { background: #0F766E !important; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
	.fh-hero { padding: 50px 16px 44px; }
	.fh-stat-num { font-size: 17px; }
	.fh-tab .wp-block-button__link { padding: 12px 12px !important; font-size: 13px; }
	.fh-services-grid, .fh-premium-grid { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════════════
   GLOBAL CALCULATOR / TOOL CARD (shortcodes)
   One shared design system for every [shortcode] tool
   (EMI, Land Area, Graduation %, Bank Exam Age, YouTube
   Timer, Passport Photo, and any future calculator).
   Individual shortcode files should NOT redefine these —
   they only add markup + logic that is unique to that tool.
   This guarantees every tool page looks like one theme.
═══════════════════════════════════════════════════════ */
.cd-calc-wrapper {
	max-width: 480px;
	margin: 30px auto;
	font-family: 'Inter', sans-serif;
}
.cd-calc-wrapper.cd-calc-wide { max-width: 560px; }
.cd-calc-card {
	background: #FFFFFF;
	border: 1px solid #F0EFEA;
	border-radius: 16px;
	padding: 28px 24px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.cd-calc-title {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 22px;
	color: var(--cd-ink);
	margin: 0 0 4px;
}
.cd-calc-subtitle { font-size: 14px; color: #6B7280; margin: 0 0 20px; }
.cd-calc-row { margin-bottom: 16px; }
.cd-calc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cd-calc-wrapper label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	margin-bottom: 6px;
}
.cd-calc-wrapper input,
.cd-calc-wrapper select,
.cd-calc-wrapper textarea {
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
	border: 1px solid #E5E7EB;
	border-radius: 10px;
	background: #FAFAFA;
	box-sizing: border-box;
	font-family: 'Inter', sans-serif;
	color: var(--cd-ink);
	resize: vertical;
}
.cd-calc-wrapper input:focus,
.cd-calc-wrapper select:focus,
.cd-calc-wrapper textarea:focus {
	outline: none;
	border-color: var(--cd-orange);
	background: #FFFFFF;
}
.cd-tenure-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Primary button — always brand orange, on every tool */
.cd-calc-button {
	width: 100%;
	padding: 13px;
	background: var(--cd-orange);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	font-family: 'Poppins', sans-serif;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.2s ease;
}
.cd-calc-button:hover { background: var(--cd-orange-dark); }
.cd-calc-button:disabled { background: #FBD5B4; cursor: not-allowed; }

/* Secondary / reset button — soft orange, never a different hue */
.cd-secondary-button {
	width: 100%;
	padding: 11px;
	background: var(--cd-cream);
	color: var(--cd-orange-dark);
	font-size: 14px;
	font-weight: 600;
	font-family: 'Inter', sans-serif;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	margin-bottom: 16px;
}
.cd-secondary-button:disabled { color: #FBD5B4; cursor: not-allowed; }

/* Toggle group (e.g. Years/Semesters, Minutes/Seconds) */
.cd-toggle-group { display: flex; gap: 8px; background: #F3F4F6; padding: 4px; border-radius: 10px; }
.cd-toggle-btn {
	flex: 1;
	padding: 10px 6px;
	background: transparent;
	border: none;
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 13.5px;
	color: #6B7280;
	cursor: pointer;
	transition: all 0.2s ease;
}
.cd-toggle-btn.cd-toggle-active {
	background: #FFFFFF;
	color: var(--cd-orange-dark);
	font-weight: 600;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Results block */
.cd-calc-results { margin-top: 20px; border-top: 1px dashed #E5E7EB; padding-top: 16px; }
.cd-result-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 14px; color: #374151; }
.cd-result-item strong { font-family: 'Poppins', sans-serif; color: var(--cd-orange); font-size: 15px; }
.cd-result-highlight strong { font-size: 24px; }

/* Eligibility / status boxes — kept semantically green/red
   (pass/fail is a meaning, not a brand choice) but typography
   matches the rest of the theme */
.cd-status-box { margin-top: 14px; padding: 14px; border-radius: 10px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px; text-align: center; }
.cd-status-eligible { background: #DCFCE7; color: #15803D; }
.cd-status-not-eligible { background: #FEE2E2; color: #B91C1C; }

.cd-calc-note { margin-top: 18px; font-size: 12px; color: #9CA3AF; line-height: 1.5; }

/* Live timer display (YouTube Script Timer) */
.cd-timer-display {
	text-align: center;
	font-family: 'Poppins', sans-serif;
	font-size: 48px;
	font-weight: 700;
	color: var(--cd-ink);
	background: #FAFAFA;
	border: 1px solid #F0EFEA;
	border-radius: 12px;
	padding: 24px 10px;
	margin-bottom: 18px;
	letter-spacing: 1px;
}
.cd-timer-buttons { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.cd-laps-container { margin-top: 16px; max-height: 200px; overflow-y: auto; }
.cd-lap-item {
	display: flex; justify-content: space-between; padding: 10px 12px; font-size: 13px;
	color: #374151; background: #FAFAFA; border-radius: 8px; margin-bottom: 6px;
}
.cd-lap-item strong { font-family: 'Poppins', sans-serif; color: var(--cd-ink); }

/* Marks/semester rows (Graduation % Calculator) */
.cd-marks-rows-container { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.cd-sem-row { display: grid; grid-template-columns: 28px 1fr 1fr; gap: 8px; align-items: center; }
.cd-sem-label { font-size: 13px; font-weight: 600; color: #6B7280; }
.cd-sem-row input { padding: 10px 12px; font-size: 14px; }

/* Principal vs Interest progress bar (EMI Calculator) — a data
   visualisation, so it keeps two contrasting swatches, but both
   are now shades of the brand orange instead of orange+green */
.cd-progress-bar-container { margin-top: 18px; }
.cd-progress-bar { width: 100%; height: 12px; background: #FBD5B4; border-radius: 6px; overflow: hidden; display: flex; }
.cd-progress-principal { height: 100%; background: var(--cd-orange); transition: width 0.3s ease; }
.cd-progress-legend { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: #374151; }
.cd-progress-legend strong { font-family: 'Poppins', sans-serif; margin-left: 4px; }
.cd-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.cd-dot-principal { background: var(--cd-orange); }
.cd-dot-interest { background: #FBD5B4; }

@media (max-width: 640px) {
	.cd-calc-wrapper { margin: 20px auto; }
	.cd-calc-card { padding: 22px 18px; }
	.cd-timer-display { font-size: 36px; }
}

/* ═══════════════════════════════════════════════════════
   SINGLE POST & PAGE TYPOGRAPHY
   Applies to every blog post, SEO article, and normal page
   (Home, Form Hub and the tool pages are excluded from the
   heading-color rule below since they use their own branded
   hero patterns) so all reading content shares one consistent
   font system and color language — Poppins for headings,
   Inter for body copy, brand orange for links/accents.
═══════════════════════════════════════════════════════ */
.entry-content,
.inside-article {
	font-family: 'Inter', sans-serif;
	font-size: 16.5px;
	line-height: 1.75;
	color: #3F3B36;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	color: var(--cd-ink);
	line-height: 1.3;
	margin: 1.6em 0 0.6em;
}
.entry-content h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; }
.entry-content h2 { font-size: clamp(22px, 3.2vw, 28px); }
.entry-content h3 { font-size: clamp(19px, 2.6vw, 22px); }
.entry-content h4 { font-size: 17px; }
.entry-content > *:first-child { margin-top: 0; }

.entry-content p { margin: 0 0 1.3em; }
.entry-content a {
	color: var(--cd-orange-dark);
	text-decoration: underline;
	text-decoration-color: #FBD5B4;
	text-underline-offset: 2px;
	transition: text-decoration-color 0.2s;
}
.entry-content a:hover { text-decoration-color: var(--cd-orange-dark); }

.entry-content ul,
.entry-content ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content li::marker { color: var(--cd-orange); }

.entry-content strong { color: var(--cd-ink); font-weight: 600; }

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 16px 20px;
	background: var(--cd-cream);
	border-left: 4px solid var(--cd-orange);
	border-radius: 8px;
	color: #57534E;
	font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content img {
	border-radius: 12px;
	height: auto;
	max-width: 100%;
}
.entry-content figcaption {
	font-size: 13px;
	color: #9CA3AF;
	text-align: center;
	margin-top: 8px;
}

.entry-content code {
	font-family: 'SFMono-Regular', Consolas, monospace;
	background: #F5F0E8;
	color: var(--cd-orange-dark);
	padding: 2px 6px;
	border-radius: 5px;
	font-size: 0.9em;
}
.entry-content pre {
	background: var(--cd-ink);
	color: #F5F0E8;
	padding: 18px;
	border-radius: 10px;
	overflow-x: auto;
}
.entry-content pre code { background: none; color: inherit; padding: 0; }

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.6em 0;
	font-size: 14.5px;
}
.entry-content th,
.entry-content td {
	border: 1px solid #F0EFEA;
	padding: 10px 14px;
	text-align: left;
}
.entry-content th {
	background: var(--cd-cream);
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	color: var(--cd-ink);
}
.entry-content hr { border: none; border-top: 1px solid #F0EFEA; margin: 2.4em 0; }

/* Post/page title (outside .entry-content on GeneratePress) */
.entry-title {
	font-family: 'Poppins', sans-serif !important;
	font-weight: 700 !important;
	color: var(--cd-ink) !important;
}
.entry-meta { font-family: 'Inter', sans-serif; color: #9CA3AF; }
