﻿/*
Theme Name: RummyLibrary Terracotta
Theme URI: https://rummylibrary.com
Author: RummyLibrary Editorial
Description: Warm terracotta Claude-inspired theme for Indian rummy / teen patti / Yono APK directory. Soft cream backgrounds, terracotta accents (prefix terra_*).
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: terra
Tags: directory, apk, rummy, india, mobile-first, terracotta, warm
*/

/* -------------------------------------------------------------------------
 * Design tokens — Claude warm terracotta palette, soft cream bg, 12px radius.
 * Minimum font size across the whole theme: 14px.
 * ---------------------------------------------------------------------- */
:root {
	/* Claude-inspired warm terracotta palette */
	--terra-primary: #C45C26;
	--terra-primary-2: #A0481E;
	--terra-primary-3: #D4784A;
	--terra-accent: #E8A87C;
	--terra-accent-dark: #C47850;
	--terra-accent-soft: #FDF0E6;
	--terra-bg: #FBF7F0;
	--terra-card: #FFFFFF;
	--terra-text: #3A2A1F;
	--terra-muted: #7A6555;
	--terra-border: #EDE4D9;
	--terra-danger: #C45C4A;
	--terra-success: #5A8F5A;
	--terra-warn: #C47850;
	--terra-radius: 12px;
	--terra-radius-sm: 8px;
	--terra-shadow: 0 1px 3px rgba(58, 42, 31, 0.07), 0 4px 16px rgba(58, 42, 31, 0.05);
	--terra-shadow-lg: 0 8px 28px rgba(58, 42, 31, 0.12);
	--terra-maxw: 1100px;
	--terra-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--terra-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--terra-text);
	background: var(--terra-bg);
	-webkit-font-smoothing: antialiased;
}

/* Global floor: nothing below 14px. */
.topbar, .breadcrumbs, .cat-card p, .group-card li, .coverage, .version-badge,
.cat-chip, .summary-line, .safety-notice, .hindi-line, .data-strip .ds-label,
.data-strip .ds-value, .app-card-meta, .app-card-rating, .app-panel .panel-rating,
.download-note, .table-filters, .table-filters select, .faq-block details .faq-a,
.footer-col li, .footer-col h4, .footer-links-inline, .footer-copy, .footer-updated,
.stat, .stat b, .row-chip, .entry-content th, .entry-content td, .guide-pager,
.hindi-switch, .details-list dt, .details-list dd { font-size: 14px; }

img { max-width: 100%; height: auto; }

a { color: var(--terra-primary-2); text-decoration: none; }
a:hover { color: var(--terra-accent-dark); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--terra-primary); margin: 0 0 0.5em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }

.container { max-width: var(--terra-maxw); margin: 0 auto; padding: 0 16px; }

/* -------------------------------------------------------------------------
 * Top bar (18+ + state-law line)
 * ---------------------------------------------------------------------- */
.topbar {
	background: var(--terra-primary);
	color: #F5EDE4;
	font-size: 14px;
	line-height: 1.5;
	padding: 7px 0;
}
.topbar .container { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.topbar a { color: var(--terra-accent); text-decoration: underline; }
.topbar .hindi-line { color: #B8A090; }

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */
.site-header {
	background: var(--terra-primary);
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 900;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.site-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.site-brand img { max-height: 44px; width: auto; display: block; }
.site-logo { max-height: 44px; }
.site-brand-text { color: #fff; font-size: 1.15rem; font-weight: 800; letter-spacing: 0.2px; white-space: nowrap; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a {
	display: block;
	color: #F0E6D8;
	padding: 9px 13px;
	border-radius: var(--terra-radius-sm);
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}
.main-nav a:hover { color: #fff; background: var(--terra-primary-3); text-decoration: none; }
.main-nav .current-menu-item > a { background: var(--terra-accent); color: var(--terra-primary); }

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 6px 8px;
}

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.main-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--terra-primary-2);
		padding: 8px 16px 14px;
		box-shadow: var(--terra-shadow-lg);
	}
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; }
	.main-nav a { padding: 13px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0; }
}

/* -------------------------------------------------------------------------
 * Hero (front page)
 * ---------------------------------------------------------------------- */
.hero {
	background: linear-gradient(135deg, var(--terra-primary) 0%, var(--terra-primary-3) 100%);
	color: #fff;
	padding: 48px 0 42px;
	text-align: center;
}
.hero h1 { color: #fff; font-size: 2.1rem; margin-bottom: 12px; }
.hero p.lead { color: #E8D9C8; font-size: 1.05rem; max-width: 780px; margin: 0 auto 16px; }
.hero .trust-strip {
	display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center;
	margin-top: 8px; font-size: 14px; color: #B8A090;
}
.hero .trust-strip span::before { content: "✓ "; color: var(--terra-accent); font-weight: 800; }
.hero-eyebrow {
	display: inline-block; margin-bottom: 10px; padding: 5px 14px;
	background: rgba(240, 165, 0, 0.14); color: var(--terra-accent);
	border: 1px solid rgba(240, 165, 0, 0.45); border-radius: 999px;
	font-size: 13px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
}
.hero .hero-hindi { color: #B8A090; font-size: 0.95rem; max-width: 780px; margin: 0 auto 14px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 6px 0 18px; }
.hero-cta .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.hero-cta .btn-outline:hover { background: #fff; color: var(--terra-primary); }

/* -------------------------------------------------------------------------
 * Steps (front-page "How to claim your bonus")
 * ---------------------------------------------------------------------- */
.section-sub { color: var(--terra-muted); margin: -8px 0 16px; }
.steps {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
	counter-reset: step;
}
.step {
	background: var(--terra-card); border-radius: var(--terra-radius);
	box-shadow: var(--terra-shadow); padding: 20px; position: relative;
	border-top: 4px solid var(--terra-accent);
}
.step-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%;
	background: var(--terra-primary); color: #fff; font-weight: 800; margin-bottom: 10px;
}
.step p { margin: 0; color: var(--terra-text); }

/* -------------------------------------------------------------------------
 * Pros & cons / who should play (single app page)
 * ---------------------------------------------------------------------- */
.proscons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.checklist { background: var(--terra-bg); border-radius: var(--terra-radius-sm); padding: 14px 16px; }
.checklist h3 { margin: 0 0 8px; font-size: 1rem; }
.checklist--pro { border-left: 4px solid var(--terra-success); }
.checklist--pro h3 { color: var(--terra-success); }
.checklist--con { border-left: 4px solid var(--terra-danger); }
.checklist--con h3 { color: var(--terra-danger); }
.checklist .check-list { background: transparent; padding: 0; }
.checklist .check-list li { border-bottom: 1px dashed var(--terra-border); }
.checklist .check-list li:last-child { border-bottom: 0; }

/* App single-page hero honesty line */
.honesty-line { color: var(--terra-muted); font-size: 0.9rem; margin: 6px 0 0; }

/* -------------------------------------------------------------------------
 * Sections & cards
 * ---------------------------------------------------------------------- */
.section { margin: 28px 0; }
.section-title {
	display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
	font-size: 1.35rem; margin-bottom: 16px; padding-bottom: 8px;
	border-bottom: 2px solid var(--terra-accent);
}
.section-title .more { font-size: 14px; font-weight: 600; }

.cat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cat-card {
	background: var(--terra-card);
	border-radius: var(--terra-radius);
	box-shadow: var(--terra-shadow);
	padding: 22px;
	display: block;
	color: var(--terra-text);
	border-top: 4px solid var(--terra-primary-2);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--terra-shadow-lg); text-decoration: none; color: var(--terra-primary); }
.cat-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.cat-card p { margin: 0; color: var(--terra-muted); }

.group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.group-card {
	background: var(--terra-card);
	border-radius: var(--terra-radius);
	box-shadow: var(--terra-shadow);
	padding: 18px;
}
.group-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.group-card ul { list-style: none; margin: 0; padding: 0; }
.group-card li { padding: 7px 0; border-bottom: 1px dashed var(--terra-border); }
.group-card li:last-child { border-bottom: 0; }
.group-card li a { color: var(--terra-text); display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.group-card li a:hover { color: var(--terra-accent-dark); text-decoration: none; }
.group-card li .g-bonus { color: var(--terra-accent-dark); font-weight: 700; white-space: nowrap; }

/* -------------------------------------------------------------------------
 * App card (grid)
 * ---------------------------------------------------------------------- */
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.app-card {
	background: var(--terra-card);
	border-radius: var(--terra-radius);
	box-shadow: var(--terra-shadow);
	padding: 20px;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.app-card-rank {
	position: absolute;
	top: -9px; left: 14px;
	background: var(--terra-accent);
	color: var(--terra-primary);
	font-weight: 800;
	font-size: 14px;
	width: 30px; height: 30px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	box-shadow: var(--terra-shadow);
}
.app-card-top { display: flex; gap: 14px; align-items: center; }
.app-card-logo { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex: none; }
.app-card-logo-fallback {
	width: 72px; height: 72px; border-radius: 14px; flex: none;
	background: var(--terra-primary-2); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 30px; font-weight: 800;
}
.app-card-title { font-size: 1.06rem; margin: 0 0 4px; }
.app-card-title a { color: var(--terra-primary); }
.app-card-title a:hover { color: var(--terra-accent-dark); }
.app-card-meta { margin: 0; color: var(--terra-muted); }
.app-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.app-card-rating { color: var(--terra-primary); font-weight: 700; }
.app-card-actions { display: flex; gap: 10px; }
.app-card-actions .btn { flex: 1; text-align: center; padding: 11px 10px; min-width: 0; }

/* Coverage badges — short labels, wrapping allowed (never overflow) */
.coverage {
	display: inline-block;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 999px;
	line-height: 1.35;
}
.coverage-covers { background: #E8F5E9; color: var(--terra-success); }
.coverage-partial { background: var(--terra-accent-soft); color: var(--terra-warn); }
.coverage-short { background: #FDEEEE; color: var(--terra-danger); }

/* -------------------------------------------------------------------------
 * Buttons
 * ---------------------------------------------------------------------- */
.btn {
	display: inline-block;
	padding: 11px 20px;
	border-radius: var(--terra-radius-sm);
	font-weight: 700;
	font-size: 15px;
	border: 0;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
	text-decoration: none;
	line-height: 1.4;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-download { background: var(--terra-accent); color: var(--terra-primary); }
.btn-download:hover { background: var(--terra-accent-dark); color: #fff; }
.btn-review { background: var(--terra-primary-2); color: #fff; }
.btn-review:hover { background: var(--terra-primary-3); color: #fff; }
.btn-outline { background: transparent; color: var(--terra-primary-2); border: 2px solid var(--terra-primary-2); }
.btn-outline:hover { background: var(--terra-primary-2); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-lg { padding: 14px 24px; font-size: 16px; }

/* -------------------------------------------------------------------------
 * App list rows (replaces tables everywhere — v1.1)
 * ---------------------------------------------------------------------- */
.table-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.table-filters select, .table-filters input {
	padding: 9px 12px;
	border: 1px solid var(--terra-border);
	border-radius: var(--terra-radius-sm);
	background: var(--terra-card);
	font-size: 14px;
	color: var(--terra-text);
}
.table-filters label { color: var(--terra-muted); display: flex; align-items: center; gap: 6px; }

.app-rows { display: flex; flex-direction: column; gap: 14px; }
.app-row {
	background: var(--terra-card);
	border-radius: var(--terra-radius);
	box-shadow: var(--terra-shadow);
	padding: 18px 22px;
	display: flex;
	align-items: center;
	gap: 18px;
}
/* Left: icon */
.row-app { flex: none; }
.row-app img { width: 100px; height: 100px; border-radius: 14px; object-fit: cover; display: block; }
.row-logo-fallback {
	width: 72px; height: 72px; border-radius: 14px;
	background: var(--terra-primary-2); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 30px; font-weight: 800;
}
/* Right: title / bonus+min withdrawal / rating+downloads / button */
.row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.row-name-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.row-name { font-weight: 800; font-size: 19px; color: var(--terra-primary); overflow-wrap: break-word; line-height: 1.3; }
.row-name:hover { color: var(--terra-accent-dark); }
.row-meta1 { margin: 0; color: var(--terra-text); }
.row-bonus { font-weight: 800; color: var(--terra-accent-dark); }
.meta-sep { margin: 0 8px; color: #C9B8A8; }
.row-meta2 { margin: 0; color: var(--terra-muted); }
.row-actions { margin-top: 3px; }
.row-actions .btn { padding: 10px 22px; }

/* Details list (single app page — replaces the old details table) */
.details-list { margin: 0; }
.dl-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 13px 0;
	border-bottom: 1px solid var(--terra-border);
	align-items: baseline;
}
.dl-row:last-child { border-bottom: 0; }
.details-list dt { color: var(--terra-muted); font-weight: 600; }
.details-list dd { margin: 0; font-weight: 800; color: var(--terra-primary); text-align: right; overflow-wrap: anywhere; }

/* -------------------------------------------------------------------------
 * Single app page
 * ---------------------------------------------------------------------- */
/* Hero: icon first so users instantly recognise the app */
.app-hero {
	display: flex;
	align-items: center;
	gap: 26px;
	margin: 20px 0 0;
}
/* First-screen download CTA (hero) */
.hero-download {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: 18px 0 0;
}
.hero-download .btn { min-width: 200px; text-align: center; }
.hero-download .btn.is-disabled { opacity: 0.65; cursor: not-allowed; }
.hero-dl-meta { color: var(--terra-muted); font-size: 0.92rem; }
.hero-icon { flex: none; }
.hero-icon img {
	width: 300px;
	max-width: 100%;
	max-height: 400px;
	height: auto;
	border-radius: 20px;
	object-fit: contain;
	display: block;
}
.hero-icon-fallback {
	width: 300px; height: 300px;
	border-radius: 20px;
	background: var(--terra-primary-2); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 56px; font-weight: 800;
}
.hero-info { min-width: 0; flex: 1; }

.single-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 22px; align-items: start; margin: 22px 0; }
.single-sidebar { position: sticky; top: 84px; }
.app-panel { background: var(--terra-card); border-radius: var(--terra-radius); box-shadow: var(--terra-shadow); padding: 24px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.app-panel .panel-app-name { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: center; font-size: 1.15rem; font-weight: 800; color: var(--terra-primary); text-align: center; line-height: 1.3; }
.app-panel .panel-app-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; flex: none; background: #fff; border: 1px solid var(--terra-border); padding: 2px; }
.app-panel .panel-app-logo-fallback { display: flex; align-items: center; justify-content: center; background: var(--terra-primary-2); color: #fff; font-size: 18px; font-weight: 800; border: 0; }
.app-panel .panel-app-title { min-width: 0; }
.app-panel .panel-rating { text-align: center; color: var(--terra-muted); }
.app-panel .panel-rating b { font-size: 22px; color: var(--terra-primary); }
.app-panel .download-note { color: var(--terra-muted); text-align: center; }
.app-panel .btn-lg i, .app-panel .btn i { margin-right: 6px; }

/* Full-width data strip (outside the sidebar) */
.data-strip { background: var(--terra-card); border-radius: var(--terra-radius); box-shadow: var(--terra-shadow); padding: 18px 20px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; }
.data-strip .ds-item { text-align: center; min-width: 0; }
.data-strip .ds-label { display: block; text-transform: uppercase; letter-spacing: 0.4px; color: var(--terra-muted); margin-bottom: 3px; }
.data-strip .ds-value { font-weight: 800; color: var(--terra-primary); overflow-wrap: break-word; }

/* Screenshots */
.screen-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.screen-item { display: block; border-radius: var(--terra-radius-sm); overflow: hidden; border: 1px solid var(--terra-border); background: #f6f8fb; }
.screen-item img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.screen-item:hover { border-color: var(--terra-accent); }

.single-main { display: flex; flex-direction: column; gap: 20px; }
.single-main .box { background: var(--terra-card); border-radius: var(--terra-radius); box-shadow: var(--terra-shadow); padding: 24px 26px; }
.single-main .box h2 { margin-top: 0; }
.single-main .box h3 { margin-top: 18px; }

.app-title-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.version-badge {
	background: var(--terra-success);
	color: #fff;
	font-weight: 800;
	letter-spacing: 0.5px;
	padding: 4px 12px;
	border-radius: 999px;
	text-transform: uppercase;
}
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.cat-chip {
	background: var(--terra-primary-2);
	color: #fff;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 999px;
}
.cat-chip a { color: #fff; }
.cat-chip a:hover { color: var(--terra-accent); }

.summary-line { color: var(--terra-muted); margin: 10px 0 0; }
.hindi-line { color: var(--terra-muted); }

/* Checklist ("what players usually check first") */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { padding: 9px 0 9px 34px; position: relative; border-bottom: 1px dashed var(--terra-border); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
	content: "✓";
	position: absolute; left: 0; top: 9px;
	width: 22px; height: 22px;
	background: var(--terra-primary-2);
	color: #fff;
	border-radius: 50%;
	font-size: 14px;
	display: flex; align-items: center; justify-content: center;
}

/* FAQ (native details/summary — no FAQPage schema) */
.faq-block details { border: 1px solid var(--terra-border); border-radius: var(--terra-radius-sm); margin-bottom: 10px; background: #fff; }
.faq-block summary {
	cursor: pointer;
	padding: 14px 18px;
	font-weight: 700;
	font-size: 15.5px;
	color: var(--terra-primary);
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after { content: "+"; font-size: 22px; color: var(--terra-accent-dark); font-weight: 800; }
.faq-block details[open] summary::after { content: "−"; }
.faq-block details .faq-a { padding: 0 18px 16px; color: var(--terra-text); }

/* Safety notice */
.safety-notice { color: var(--terra-muted); margin: 6px 0; }
.safety-box { background: var(--terra-accent-soft); border: 1px solid #f3d9a4; border-radius: var(--terra-radius); padding: 16px 20px; margin: 18px 0; }
.safety-box .safety-notice { margin: 5px 0; }

/* Report modal */
.report-modal { display: none; position: fixed; inset: 0; background: rgba(20, 33, 61, 0.55); z-index: 1200; align-items: center; justify-content: center; padding: 16px; }
.report-modal.open { display: flex; }
.report-modal .report-box { background: #fff; border-radius: var(--terra-radius); max-width: 500px; width: 100%; padding: 24px; box-shadow: var(--terra-shadow-lg); }
.report-modal h3 { margin-top: 0; }
.report-modal label { display: block; margin: 12px 0 4px; color: var(--terra-text); }
.report-modal input[type="text"], .report-modal textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--terra-border); border-radius: var(--terra-radius-sm); font-family: inherit; font-size: 14px; }
.report-modal .report-close { float: right; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--terra-muted); }

/* Sticky download bar (single app only — never cross-promotes).
   Visible on all screens once the first-screen CTA scrolls out of view. */
.sticky-dl {
	position: fixed;
	bottom: 0; left: 0; right: 0;
	background: var(--terra-primary);
	padding: 10px 16px;
	z-index: 950;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
	transform: translateY(110%);
	transition: transform 0.25s ease;
}
.sticky-dl.show { transform: translateY(0); }
.sticky-dl .btn { display: block; margin: 0 auto; width: min(420px, 100%); text-align: center; }
body.has-sticky-dl { padding-bottom: 78px; }

/* -------------------------------------------------------------------------
 * Breadcrumbs
 * ---------------------------------------------------------------------- */
.breadcrumbs { color: var(--terra-muted); margin: 16px 0 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li + li::before { content: "›"; margin: 0 6px; color: #C9B8A8; }
.breadcrumbs a { color: var(--terra-muted); }
.breadcrumbs a:hover { color: var(--terra-primary); }

/* -------------------------------------------------------------------------
 * Guides / articles / generic pages
 * ---------------------------------------------------------------------- */
.entry-content { background: var(--terra-card); border-radius: var(--terra-radius); box-shadow: var(--terra-shadow); padding: 28px 30px; }
.entry-content h2 { margin-top: 30px; border-bottom: 1px solid var(--terra-border); padding-bottom: 6px; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 24px; }
.entry-content li { margin-bottom: 8px; }

/* Guides hub: turn the plain list into recognizable article cards */
.guides-hub .entry-content > ul {
	list-style: none;
	padding: 0;
	margin: 20px 0 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.guides-hub .entry-content > ul > li {
	margin: 0;
	background: var(--terra-card);
	border: 1px solid var(--terra-border);
	border-left: 4px solid var(--terra-accent);
	border-radius: var(--terra-radius);
	box-shadow: var(--terra-shadow);
	padding: 16px 108px 16px 18px;
	position: relative;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.guides-hub .entry-content > ul > li:hover { transform: translateY(-2px); box-shadow: var(--terra-shadow-lg); }
.guides-hub .entry-content > ul > li a {
	color: var(--terra-primary);
	font-weight: 700;
	font-size: 1.02rem;
	line-height: 1.45;
	text-decoration: none;
	display: block;
}
.guides-hub .entry-content > ul > li a:hover { color: var(--terra-accent-dark); text-decoration: underline; }
.guides-hub .entry-content > ul > li a::after {
	content: "Read guide →";
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	background: var(--terra-accent-soft);
	color: var(--terra-accent-dark);
	font-size: 12px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 999px;
	white-space: nowrap;
}
.guides-hub .entry-content > ul > li a:hover::after { background: var(--terra-primary); color: #fff; text-decoration: none; }

.guide-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.guide-pager a { background: var(--terra-card); border-radius: var(--terra-radius); box-shadow: var(--terra-shadow); padding: 14px 18px; font-weight: 600; color: var(--terra-primary); }
.guide-pager a:hover { color: var(--terra-accent-dark); text-decoration: none; }

.hindi-switch { background: var(--terra-accent-soft); border: 1px solid #f3d9a4; border-radius: var(--terra-radius-sm); padding: 12px 16px; margin: 18px 0 0; }
.hindi-switch a { color: var(--terra-primary); font-weight: 700; }

/* -------------------------------------------------------------------------
 * Footer (v1.1: inline legal/safety links, high-contrast on navy)
 * ---------------------------------------------------------------------- */
.site-footer { background: var(--terra-primary); color: #c3cde0; margin-top: 48px; }
.footer-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; padding: 36px 0 14px; }
.footer-col h4 { color: #fff; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #c3cde0; }
.footer-col a:hover { color: var(--terra-accent); text-decoration: none; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 0 28px; }
.footer-links-inline { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; align-items: center; }
.footer-links-inline li { font-size: 14px; }
.footer-links-inline li + li::before { content: "|"; margin: 0 14px; color: #48567f; }
.footer-links-inline a { color: #d6ddef; font-weight: 600; }
.footer-links-inline a:hover { color: var(--terra-accent); text-decoration: none; }

/* Dark safety box inside the navy footer — distinct from the page background */
.site-footer .safety-box { background: rgba(255, 255, 255, 0.06); border: 1px solid #39496f; }
.site-footer .safety-notice { color: #b6c3da; }
.site-footer .safety-notice a { color: var(--terra-accent); }
.site-footer .hindi-line { color: #8d9db8; }
.footer-copy { color: #93a1bc; margin-top: 12px; }
.footer-updated { color: #93a1bc; margin-top: 6px; }

/* -------------------------------------------------------------------------
 * 404
 * ---------------------------------------------------------------------- */
.error404-wrap { text-align: center; padding: 60px 16px; }
.error404-wrap h1 { font-size: 5rem; margin: 0; color: var(--terra-accent); }
.error404-wrap form { max-width: 440px; margin: 18px auto; display: flex; gap: 8px; }
.error404-wrap input[type="search"] { flex: 1; padding: 11px 14px; border: 1px solid var(--terra-border); border-radius: var(--terra-radius-sm); font-size: 15px; }

/* -------------------------------------------------------------------------
 * Sidebar (generic pages)
 * ---------------------------------------------------------------------- */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.sidebar-box { background: var(--terra-card); border-radius: var(--terra-radius); box-shadow: var(--terra-shadow); padding: 18px; margin-bottom: 18px; }
.sidebar-box h3 { font-size: 1.05rem; margin-top: 0; }
.sidebar-box ul { list-style: none; margin: 0; padding: 0; }
.sidebar-box li { padding: 8px 0; border-bottom: 1px dashed var(--terra-border); }
.sidebar-box li:last-child { border-bottom: 0; }
.sidebar-box li a { color: var(--terra-text); }
.sidebar-box li a:hover { color: var(--terra-accent-dark); }
.sidebar-box small { color: var(--terra-muted); }

/* -------------------------------------------------------------------------
 * Overflow hardening (v1.2.1) — nothing may exceed the viewport width.
 * Root causes: long URLs/words in listing content and FAQ answers stretch
 * grid/flex children (min-width:auto). clip() does not create a scroll
 * container, so position:sticky keeps working.
 * ---------------------------------------------------------------------- */
html, body { overflow-x: clip; }
img, iframe, embed, object, video { max-width: 100%; }
a, p, h1, h2, h3, h4, li, dt, dd, summary, th, td,
.entry-content, .summary-line, .app-title-row, .single-main, .single-sidebar,
.single-layout, .box, .data-strip, .app-panel, .screen-grid, .group-card,
.app-card, .details-list, .faq-block, .check-list { overflow-wrap: break-word; }
.single-layout > *, .app-rows > *, .app-row > *, .data-strip > *, .screen-grid > *, .dl-row > *, .group-card ul > * { min-width: 0; }
pre, code { white-space: pre-wrap; overflow-wrap: break-word; }

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */
@media (max-width: 980px) {
	.cat-cards, .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.with-sidebar { grid-template-columns: minmax(0, 1fr); }
	.footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.app-row { gap: 14px; }
	.row-actions { margin-left: 0; }
}
@media (max-width: 768px) {
	.app-hero { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
	.hero-icon img, .hero-icon-fallback { width: 200px; }
	.hero-icon-fallback { height: 200px; }
	.hero-info { display: flex; flex-direction: column; }
	.hero-download { order: -1; justify-content: center; }
	.single-title { font-size: 1.55rem; }
	.single-layout { grid-template-columns: minmax(0, 1fr); }
	.single-sidebar { position: static; }
	.screen-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.data-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	/* Download bar stays pinned on mobile even without JS */
	.sticky-dl { transform: translateY(0); }
	body.single-app { padding-bottom: 78px; }
	.app-row { gap: 14px; padding: 16px; }
	.row-app img, .row-logo-fallback { width: 80px; height: 80px; }
	.row-actions .btn { display: block; width: 100%; }
}
@media (max-width: 640px) {
	.cat-cards, .group-grid, .guides-hub .entry-content > ul { grid-template-columns: minmax(0, 1fr); }
	.app-grid { grid-template-columns: minmax(0, 1fr); } /* one card per row on mobile */
	.hero h1 { font-size: 1.6rem; }
	.hero p.lead { font-size: 1rem; }
	.entry-content { padding: 20px 18px; }
	.guides-hub .entry-content > ul > li { padding: 14px 16px; }
	.guides-hub .entry-content > ul > li a::after { position: static; transform: none; display: inline-block; margin-top: 8px; }
	.single-main .box { padding: 18px 16px; }
	.screen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-top { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.data-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-links-inline li + li::before { content: ""; margin: 0; }
	.footer-links-inline { flex-direction: column; align-items: flex-start; gap: 8px; }
	.steps, .proscons { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
	.screen-grid { grid-template-columns: minmax(0, 1fr); }
}


/* --- E-E-A-T / guide modules --- */
.author-card { clear: both; }
.author-card img { object-fit: cover; background: var(--terra-border); }
.safety-notice { clear: both; }
.entry-content table,
.box table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
  font-size: 14px;
  background: var(--terra-card);
}
.entry-content th,
.box table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--terra-border);
  color: var(--terra-primary);
  background: var(--terra-accent-soft);
}
.entry-content td,
.box table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--terra-border);
  vertical-align: top;
}
.faq-block details {
  border: 1px solid var(--terra-border);
  border-radius: var(--terra-radius-sm);
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--terra-card);
}
.faq-block summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--terra-primary);
}
.faq-block .faq-a { margin: 8px 0 4px; color: var(--terra-text); }
.author-profile-hero {
  display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap;
  margin-bottom: 24px; padding: 20px; background: var(--terra-card);
  border-radius: var(--terra-radius); box-shadow: var(--terra-shadow);
}
.author-profile-hero img {
  width: 140px; height: 140px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--terra-border);
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.tag-list span {
  background: var(--terra-accent-soft); color: var(--terra-primary-2);
  padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.article-list { list-style: none; padding: 0; margin: 0; }
.article-list li {
  padding: 14px 0; border-bottom: 1px solid var(--terra-border);
}
.article-list li:last-child { border-bottom: 0; }
.article-list a { font-weight: 700; color: var(--terra-primary); }
.article-meta { font-size: 13px; color: var(--terra-muted); margin-top: 4px; }

.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 12px 0; }
.compare-card { background: var(--terra-accent-soft); border-radius: var(--terra-radius); padding: 14px 16px; border: 1px solid var(--terra-border); }
.compare-card h3 { margin: 0 0 8px; font-size: 1rem; color: var(--terra-primary); }
.guide-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 14px; }
.guide-table th { text-align: left; padding: 11px 12px; background: var(--terra-accent-soft); color: var(--terra-primary); border-bottom: 2px solid var(--terra-border); }
.guide-table td { padding: 11px 12px; border-bottom: 1px solid var(--terra-border); vertical-align: top; }
.lesson-callout { background: var(--terra-accent-soft); border-left: 4px solid var(--terra-primary); padding: 12px 14px; border-radius: 0 var(--terra-radius-sm) var(--terra-radius-sm) 0; }
.lead-answer { font-size: 1.05rem; font-weight: 600; color: var(--terra-text); }
.sources-line { font-size: 13px; color: var(--terra-muted); }
.author-card { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin: 18px 0; padding: 16px 18px; border: 1px solid var(--terra-border); border-radius: var(--terra-radius); background: var(--terra-card); }
.safety-notice { border-left: 4px solid var(--terra-accent); padding: 14px 16px; margin: 12px 0; background: var(--terra-accent-soft); border-radius: 0 var(--terra-radius-sm) var(--terra-radius-sm) 0; }
@media (max-width: 640px) { .compare-grid { grid-template-columns: 1fr; } }

.editor-field-note {
  margin: 14px 0 20px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #FDF0E6 0%, #fff 60%);
  border: 1px solid var(--terra-border);
  border-radius: var(--terra-radius);
  border-left: 4px solid var(--terra-primary);
}
.editor-field-note .efn-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terra-primary);
  margin-bottom: 6px;
}
.editor-field-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--terra-text);
}

.trending-tags { margin: 28px 0; }
.trending-tags h2 { margin-bottom: 12px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  background: var(--terra-accent-soft); color: var(--terra-primary);
  font-weight: 700; font-size: 14px; border: 1px solid var(--terra-border);
  text-decoration: none;
}
.tag-cloud a:hover { background: var(--terra-primary); color: #fff; }
.payout-proofs { margin: 24px 0; padding: 16px 18px; background: var(--terra-card);
  border: 1px solid var(--terra-border); border-radius: var(--terra-radius); }
.payout-proofs h2 { margin: 0 0 12px; font-size: 1.15rem; }
.proof-list { list-style: none; padding: 0; margin: 0; }
.proof-list li {
  padding: 10px 0; border-bottom: 1px solid var(--terra-border);
  font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
}
.proof-list li:last-child { border-bottom: 0; }
.proof-badge {
  font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  background: #e7f6ec; color: #1b6b3a; padding: 2px 8px; border-radius: 999px;
}
.hinglish-seo-box {
  margin: 28px 0; padding: 18px; background: linear-gradient(135deg,#FDF0E6,#fff);
  border-left: 4px solid var(--terra-primary); border-radius: var(--terra-radius);
}
