/*
 * TM Portal design system.
 *
 * Token values are injected per site by TM_Portal_Design (CSS custom
 * properties from the site_id palette), so this one stylesheet serves
 * SrchEngine, Suwarna and IndiaPay with no per-site forks. Structure and
 * component styling follow the agreed clickable mockups; GeneratePress
 * markup is adapted via its own class hooks.
 */

/* ---------- Base ---------- */
body.tm-portal {
	background: var(--tm-bg);
	color: var(--tm-text);
	font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 16px;
	line-height: 1.55;
}
body.tm-portal h1,
body.tm-portal h2,
body.tm-portal h3,
body.tm-portal h4,
body.tm-portal h5,
body.tm-portal h6 {
	color: var(--tm-text);
	font-family: inherit;
	letter-spacing: -0.2px;
}
body.tm-portal a { color: var(--tm-accent); }
body.tm-portal a:hover { color: var(--tm-text); }
body.tm-portal ::selection { background: var(--tm-accent-dim); color: var(--tm-on-accent); }
body.tm-portal .site-content,
body.tm-portal .inside-article,
body.tm-portal .comments-area,
body.tm-portal .page-header,
body.tm-portal .paging-navigation,
body.tm-portal .post-navigation { background: transparent; }
body.tm-portal .separate-containers .inside-article,
body.tm-portal .separate-containers .page-header,
body.tm-portal .separate-containers .comments-area {
	background: transparent;
	padding-left: 0;
	padding-right: 0;
}
body.tm-portal .content-area { color: var(--tm-text); }

/* ---------- Header / nav ---------- */
body.tm-portal .site-header {
	background: var(--tm-bg2);
	border-bottom: 1px solid var(--tm-border);
	position: sticky;
	top: 0;
	z-index: 60;
}
body.tm-portal .inside-header { padding-top: 16px; padding-bottom: 16px; }
body.tm-portal .main-title { font-size: 26px; font-weight: 800; line-height: 1.1; }
body.tm-portal .main-title a,
body.tm-portal .main-title a:hover { color: var(--tm-text); text-decoration: none; }
body.tm-portal .tm-brand-a { color: var(--tm-accent); }
body.tm-portal .tm-brand-b { color: var(--tm-text); }
body.tm-portal .site-description {
	font-size: 12.5px;
	color: var(--tm-muted);
	margin-top: 3px;
}
body.tm-portal .main-navigation {
	background: transparent;
}
body.tm-portal .main-navigation .main-nav ul li a {
	color: var(--tm-muted);
	font-weight: 600;
	font-size: 14px;
	padding: 9px 15px;
	border-radius: 8px;
	line-height: 1.4;
}
body.tm-portal .main-navigation .main-nav ul li:hover > a,
body.tm-portal .main-navigation .main-nav ul li:focus > a {
	color: var(--tm-text);
	background: #ffffff10;
}
body.tm-portal .main-navigation .main-nav ul li.current-menu-item > a,
body.tm-portal .main-navigation .main-nav ul li.current_page_item > a {
	background: var(--tm-accent-dim);
	color: var(--tm-on-accent);
}
body.tm-portal .main-navigation .menu-toggle {
	color: var(--tm-text);
	background: transparent;
}
body.tm-portal .main-navigation ul ul {
	background: var(--tm-card);
	border: 1px solid var(--tm-border);
	border-radius: 10px;
}
body.tm-portal .main-navigation ul ul li a { color: var(--tm-muted); }
body.tm-portal .navigation-search input[type="search"],
body.tm-portal .main-navigation .menu-bar-item a { color: var(--tm-muted); }

/* ---------- Buttons / forms ---------- */
body.tm-portal button,
body.tm-portal input[type="submit"],
body.tm-portal input[type="button"],
body.tm-portal .button,
body.tm-portal .wp-block-button__link {
	background: var(--tm-accent-dim);
	color: var(--tm-on-accent);
	font-weight: 700;
	border: none;
	border-radius: 8px;
	padding: 11px 22px;
	font-size: 14px;
}
body.tm-portal button:hover,
body.tm-portal input[type="submit"]:hover,
body.tm-portal .button:hover,
body.tm-portal .wp-block-button__link:hover {
	background: var(--tm-accent);
	color: var(--tm-on-accent);
}
body.tm-portal input[type="text"],
body.tm-portal input[type="email"],
body.tm-portal input[type="url"],
body.tm-portal input[type="search"],
body.tm-portal input[type="number"],
body.tm-portal select,
body.tm-portal textarea {
	background: var(--tm-panel);
	border: 1px solid var(--tm-border);
	border-radius: 8px;
	color: var(--tm-text);
	padding: 11px 13px;
	font-size: 14px;
}
body.tm-portal input::placeholder,
body.tm-portal textarea::placeholder { color: var(--tm-muted); }
body.tm-portal input:focus,
body.tm-portal select:focus,
body.tm-portal textarea:focus {
	border-color: var(--tm-accent);
	outline: none;
}
body.tm-portal table { border-color: var(--tm-border); }
body.tm-portal th, body.tm-portal td { border-color: var(--tm-border); }

/* ---------- Page heroes / titles ---------- */
body.tm-portal .entry-title,
body.tm-portal .page-title {
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.5px;
	line-height: 1.2;
}
body.tm-portal .entry-meta,
body.tm-portal .entry-meta a,
body.tm-portal .cat-links,
body.tm-portal .tags-links,
body.tm-portal .comments-link,
body.tm-portal .post-navigation a {
	color: var(--tm-muted);
	font-size: 13px;
}
body.tm-portal .byline .author-name { color: var(--tm-text); font-weight: 600; }

/* ---------- Article typography (mockup .article-body) ---------- */
body.tm-portal.single-post .entry-content {
	font-size: 16.5px;
	line-height: 1.78;
	color: var(--tm-article);
	max-width: 760px;
}
body.tm-portal.single-post .entry-content p { margin-bottom: 18px; }
body.tm-portal.single-post .entry-content h2 {
	font-size: 23px;
	margin: 34px 0 14px;
	color: var(--tm-text);
}
body.tm-portal.single-post .entry-content h3 {
	font-size: 19px;
	margin: 28px 0 12px;
	color: var(--tm-text);
}
body.tm-portal.single-post .entry-content ul,
body.tm-portal.single-post .entry-content ol { margin: 0 0 18px 22px; }
body.tm-portal.single-post .entry-content li { margin-bottom: 9px; }
body.tm-portal.single-post .entry-content blockquote {
	border-left: 3px solid var(--tm-accent);
	padding: 6px 0 6px 20px;
	margin: 26px 0;
	font-size: 18px;
	font-weight: 600;
	color: var(--tm-text);
}
body.tm-portal.single-post .entry-content a { color: var(--tm-accent); text-decoration: underline; text-underline-offset: 2px; }
body.tm-portal .entry-content img { border-radius: 10px; }
body.tm-portal.single-post .featured-image img,
body.tm-portal .post-image img { border-radius: 14px; }
body.tm-portal .author-box,
body.tm-portal .comment-body {
	background: var(--tm-card);
	border: 1px solid var(--tm-border);
	border-radius: 12px;
}
body.tm-portal .paging-navigation,
body.tm-portal .comments-area { border-top: 1px solid var(--tm-border); }

/* Blog / archive cards */
body.tm-portal.blog article,
body.tm-portal.archive article,
body.tm-portal.search article {
	background: var(--tm-card);
	border: 1px solid var(--tm-border);
	border-radius: 14px;
	padding: 24px;
	margin-bottom: 20px;
}
body.tm-portal .read-more-button,
body.tm-portal a.read-more { color: var(--tm-accent); font-weight: 600; }

/* ---------- TM components (mockup) ---------- */
.tm-hero-grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 20px;
	margin: 26px 0 8px;
	align-items: start;
}
.tm-card {
	background: var(--tm-card);
	border: 1px solid var(--tm-border);
	border-radius: 14px;
	padding: 24px;
	margin-bottom: 20px;
}
.tm-card h3 { font-size: 17px; margin: 0 0 12px; color: var(--tm-text); }
.tm-card h2 { font-size: 21px; margin: 0 0 10px; color: var(--tm-text); }
.tm-card p { color: var(--tm-muted); font-size: 14.5px; }
.tm-card-accent { border-top: 3px solid var(--tm-accent); }
.tm-card-green { border-top: 3px solid var(--tm-green); }
.tm-card-amber { border-top: 3px solid var(--tm-amber); }
.tm-card-purple { border-top: 3px solid var(--tm-purple); }
.tm-live-badge {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.8px;
	color: var(--tm-green);
	border: 1px solid var(--tm-green);
	border-radius: 12px;
	padding: 2px 10px;
	margin-left: 6px;
	white-space: nowrap;
	vertical-align: middle;
}
.tm-btn {
	display: inline-block;
	background: var(--tm-accent-dim);
	color: var(--tm-on-accent);
	font-weight: 700;
	padding: 11px 24px;
	border-radius: 8px;
	text-decoration: none;
	font-size: 14px;
}
.tm-btn:hover { background: var(--tm-accent); color: var(--tm-on-accent); }
.tm-btn-ghost {
	background: transparent;
	color: var(--tm-accent);
	border: 1px solid var(--tm-accent-dim);
}
.tm-btn-ghost:hover { background: var(--tm-panel); color: var(--tm-accent); }
.tm-section-title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 36px 0 18px;
}
.tm-section-title h2 { font-size: 21px; margin: 0; white-space: nowrap; }
.tm-section-title .tm-rule { flex: 1; height: 1px; background: var(--tm-border); }

/* Featured post panel */
.tm-featured {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 20px;
	margin: 10px 0 6px;
}
.tm-featured-main {
	background: linear-gradient(135deg, var(--tm-bg2), var(--tm-card));
	border: 1px solid var(--tm-border);
	border-radius: 14px;
	padding: 30px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 260px;
	position: relative;
	overflow: hidden;
}
.tm-featured-img { position: absolute; inset: 0; opacity: 0.28; }
.tm-featured-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.tm-featured-main > *:not(.tm-featured-img) { position: relative; }
.tm-featured-main h2 { font-size: 24px; line-height: 1.3; margin: 0 0 10px; }
.tm-featured-main h2 a { color: var(--tm-text); text-decoration: none; }
.tm-featured-main h2 a:hover { color: var(--tm-accent); }
.tm-featured-main p { color: var(--tm-muted); font-size: 14.5px; margin: 0; }
.tm-featured-side { display: flex; flex-direction: column; gap: 14px; }
.tm-side-link {
	background: var(--tm-card);
	border: 1px solid var(--tm-border);
	border-radius: 10px;
	padding: 16px;
	flex: 1;
}
.tm-side-link a {
	color: var(--tm-text);
	text-decoration: none;
	font-weight: 600;
	font-size: 14.5px;
	line-height: 1.45;
	display: block;
}
.tm-side-link a:hover { color: var(--tm-accent); }
.tm-cat-tag {
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--tm-accent);
	margin-bottom: 8px;
	display: inline-block;
}

/* Article card grid */
.tm-article-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 8px;
}
.tm-article-card {
	background: var(--tm-card);
	border: 1px solid var(--tm-border);
	border-radius: 12px;
	padding: 20px;
}
.tm-article-card h4 { font-size: 15.5px; line-height: 1.45; margin: 6px 0 8px; }
.tm-article-card h4 a { color: var(--tm-text); text-decoration: none; }
.tm-article-card h4 a:hover { color: var(--tm-accent); }
.tm-article-card p { font-size: 13.5px; color: var(--tm-muted); margin: 0 0 10px; }
.tm-card-meta { font-size: 12px; color: var(--tm-muted); }

/* Category pills */
.tm-cat-strip { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 10px; }
.tm-cat-strip a {
	background: var(--tm-card);
	border: 1px solid var(--tm-border);
	color: var(--tm-text);
	text-decoration: none;
	padding: 10px 20px;
	border-radius: 24px;
	font-size: 14px;
	font-weight: 600;
}
.tm-cat-strip a:hover { border-color: var(--tm-accent); color: var(--tm-accent); }

/* Duel card (homepage) */
.tm-duel-q { font-size: 15.5px; font-weight: 700; line-height: 1.45; margin-bottom: 12px; color: var(--tm-text); }
.tm-duel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tm-duel-ans {
	background: var(--tm-panel);
	border: 1px solid var(--tm-border);
	border-radius: 10px;
	padding: 14px;
	font-size: 13.5px;
	color: var(--tm-article);
	line-height: 1.55;
}
.tm-duel-ans h5 {
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--tm-accent);
	margin: 0 0 6px;
}
.tm-duel-ans p { margin: 0; color: var(--tm-article); font-size: 13.5px; }
.tm-duel-note { font-size: 13px; color: var(--tm-muted); margin: 12px 0; }

/* Duel page: countdown + streak pills, bridge link, push opt-in */
body.tm-portal .tm-duel-countdown { background: rgba(52, 211, 153, 0.15) !important; color: #34d399 !important; }
body.tm-portal .tm-duel-streak { background: rgba(251, 191, 36, 0.15) !important; color: var(--tm-amber) !important; }
body.tm-portal .tm-duel-bridge a { font-weight: 700; }
body.tm-portal #tm-push-optin { background: var(--tm-accent-dim) !important; color: var(--tm-on-accent) !important; }

/* Newsletter (Kit) signup: card on tool pages, band on homepages */
.tm-newsletter-form input[type="email"] {
	background: var(--tm-bg2);
	border-color: var(--tm-border) !important;
	color: var(--tm-text);
}
.tm-newsletter-form button[type="submit"] {
	background: var(--tm-accent-dim) !important;
	color: var(--tm-on-accent) !important;
}
.tm-newsletter-band {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
	background: var(--tm-card);
	border: 1px solid var(--tm-border);
	border-left: 4px solid var(--tm-accent);
	border-radius: 12px;
	padding: 20px;
	margin: 20px 0;
}
.tm-newsletter-band .tm-newsletter-copy { flex: 1.4; min-width: 240px; display: flex; flex-direction: column; gap: 2px; }
.tm-newsletter-band .tm-newsletter-title { font-size: 17px; color: var(--tm-text); }
.tm-newsletter-band .tm-newsletter-text { font-size: 13.5px; color: var(--tm-muted); }
.tm-newsletter-band .tm-newsletter-side { flex: 1; min-width: 280px; }

/* Ticker bar (labels always; live values on segments whose feed is fresh) */
.tm-ticker {
	display: flex;
	gap: 28px;
	align-items: center;
	background: var(--tm-deeper);
	border: 1px solid var(--tm-border);
	border-radius: 10px;
	padding: 8px 16px;
	font-size: 13px;
	color: var(--tm-muted);
	overflow: hidden;
	white-space: nowrap;
	margin: 18px 0 4px;
}
.tm-ticker-item b { color: var(--tm-text); font-weight: 700; }
.tm-soon {
	color: var(--tm-amber);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

/* Rhythm bar (publishing schedule chips from the mockup) */
.tm-rhythm {
	margin-top: 24px;
	background: var(--tm-bg2);
	border: 1px solid var(--tm-border);
	border-radius: 12px;
	padding: 10px 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 13px;
	color: var(--tm-muted);
}
.tm-rhythm b { color: var(--tm-text); }
.tm-rchip { border: 1px solid var(--tm-border); border-radius: 20px; padding: 5px 12px; }
.tm-rchip-now { border-color: var(--tm-accent); color: var(--tm-text); }

/* Mockup hero rows (crawl hero is full width; duel row is 1.5fr / 1fr) */
.tm-crawl-hero {
	background: linear-gradient(135deg, var(--tm-bg2), var(--tm-card));
	border: 1px solid var(--tm-border);
	border-top: 3px solid var(--tm-accent);
	border-radius: 16px;
	padding: 28px;
	margin: 20px 0;
}
.tm-hero-eng { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin: 28px 0; align-items: start; }
.tm-hero-even { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; align-items: start; }
.tm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0; align-items: start; }
.tm-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 28px 0; align-items: start; }
.tm-hero-eng .tm-card,
.tm-hero-even .tm-card,
.tm-grid-3 .tm-card,
.tm-grid-4 .tm-card { margin-bottom: 0; }

/* Daily Rupee hero (IndiaPay mockup): one white card, three columns.
   Left is the live USD/INR on the navy-to-blue gradient, middle is the
   satire slot with its Georgia masthead, right is the money-move tip. */
.tm-dr-hero {
	display: grid;
	grid-template-columns: 1fr 1.6fr 1fr;
	gap: 0;
	background: var(--tm-card);
	border: 1px solid var(--tm-border);
	border-radius: 14px;
	overflow: hidden;
	margin: 20px 0 4px;
}
.tm-dr-rate {
	background: linear-gradient(135deg, var(--tm-deeper), var(--tm-accent));
	color: #fff;
	padding: 24px;
}
.tm-dr-lbl { font-size: 13px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
.tm-dr-num { font-size: 44px; font-weight: 800; line-height: 1.1; margin: 8px 0 2px; }
.tm-dr-chg { font-size: 14px; font-weight: 600; }
.tm-dr-rate .tm-updated { color: #cbd5e1 !important; }
.tm-dr-btn {
	display: inline-block;
	background: #fff;
	color: var(--tm-deeper);
	font-weight: 700;
	font-size: 13.5px;
	padding: 9px 16px;
	border-radius: 8px;
	text-decoration: none;
	margin-top: 14px;
}
.tm-dr-btn:hover { color: var(--tm-accent); }
.tm-dr-satire { padding: 24px; border-right: 1px solid var(--tm-border); }
.tm-dr-masthead {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #b91c1c;
	border-bottom: 2px solid var(--tm-text);
	padding-bottom: 6px;
	margin-bottom: 12px;
}
.tm-dr-masthead span { color: var(--tm-muted); letter-spacing: 0.5px; }
.tm-dr-satire h2 { font-size: 21px; line-height: 1.35; margin: 0 0 8px; }
.tm-dr-satire h2 a { color: var(--tm-text); text-decoration: none; }
.tm-dr-satire h2 a:hover { color: var(--tm-accent); }
.tm-dr-satire p, .tm-dr-tip p { font-size: 14px; color: var(--tm-muted); line-height: 1.55; margin: 0 0 12px; }
.tm-dr-tip { padding: 24px; background: var(--tm-panel); }
.tm-dr-lbl-dark { color: var(--tm-text); margin-bottom: 8px; }
.tm-dr-more { font-size: 14px; font-weight: 700; color: var(--tm-accent); text-decoration: none; display: inline-block; margin-top: 12px; }

/* Placeholder cards (unbuilt mockup modules, honestly labeled) */
.tm-ph-text { font-size: 13.5px; color: var(--tm-muted); margin: 0 0 6px; }
.tm-ph-rows { margin: 4px 0 14px; }
.tm-ph-rows span {
	display: block;
	height: 12px;
	border-radius: 6px;
	background: var(--tm-panel);
	margin: 16px 0;
}
.tm-ph-rows span:nth-child(2) { width: 82%; }
.tm-ph-rows span:nth-child(3) { width: 64%; }
.tm-ph-rows span:nth-child(4) { width: 76%; }
.tm-ph-rows span:nth-child(5) { width: 58%; }
.tm-ph-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tm-ph-soon {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--tm-amber);
	border: 1px solid var(--tm-amber);
	border-radius: 12px;
	padding: 2px 10px;
	white-space: nowrap;
}
.tm-ph-note { font-size: 12.5px; color: var(--tm-muted); }

/* Reserved ad slot (no ad content until AdSense is approved) */
.tm-ad-slot {
	border: 1px dashed var(--tm-border);
	background: repeating-linear-gradient(45deg, var(--tm-card), var(--tm-card) 10px, var(--tm-panel) 10px, var(--tm-panel) 20px);
	color: var(--tm-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 90px;
	border-radius: 12px;
	margin: 20px 0;
	padding: 12px;
}

/* Newsletter band */
.tm-nl-band {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
	background: var(--tm-card);
	border: 1px solid var(--tm-border);
	border-left: 4px solid var(--tm-accent);
	border-radius: 12px;
	padding: 20px;
	margin: 22px 0;
}
.tm-nl-band h3 { margin: 0; font-size: 16px; }
.tm-nl-band p { margin: 4px 0 0; color: var(--tm-muted); font-size: 13.5px; }

/* ---------- Plugin widget dark overrides ----------
 * The Phase 1-3 widgets render light inline styles. These rules retint
 * the known inline signatures so the widgets sit on the dark design
 * without touching their logic or markup. */
body.tm-portal .tm-empty {
	background: var(--tm-panel) !important;
	border-color: var(--tm-border) !important;
	color: var(--tm-muted) !important;
}
body.tm-portal .tm-crawler-results {
	background: var(--tm-card) !important;
	border-color: var(--tm-border) !important;
	color: var(--tm-text);
}
body.tm-portal .tm-crawler-results table { color: var(--tm-text); }
body.tm-portal .tm-crawler-form input[type="url"],
body.tm-portal .tm-crawler-form input[type="text"] { flex: 1; min-width: 220px; }
body.tm-portal .tm-crawler-submit {
	background: var(--tm-accent-dim) !important;
	color: var(--tm-on-accent) !important;
}
body.tm-portal div[style*="background:#f8fafc"] {
	background: var(--tm-card) !important;
	border-color: var(--tm-border) !important;
}
body.tm-portal .tm-ai-duel div[style*="background:#fff"],
body.tm-portal .tm-gold-guess div[style*="background:#fff"],
body.tm-portal .tm-rupee-call div[style*="background:#fff"] {
	background: var(--tm-panel) !important;
	border-color: var(--tm-border) !important;
}
body.tm-portal .tm-ai-duel div[style*="color:#1e293b"],
body.tm-portal .tm-gold-guess div[style*="color:#1e293b"],
body.tm-portal .tm-rupee-call div[style*="color:#1e293b"] {
	color: var(--tm-article) !important;
}
body.tm-portal .tm-ai-duel p[style*="color:#475569"],
body.tm-portal .tm-ai-duel p[style*="color:#64748b"],
body.tm-portal .tm-ai-duel div[style*="color:#64748b"] {
	color: var(--tm-muted) !important;
}
body.tm-portal #tm-duel-vote button[type="submit"] {
	background: var(--tm-accent-dim) !important;
	color: var(--tm-on-accent) !important;
}
body.tm-portal .tm-duel-copy {
	background: var(--tm-card) !important;
	color: var(--tm-text) !important;
	border-color: var(--tm-border) !important;
}
body.tm-portal .tm-ai-duel,
body.tm-portal .tm-crawler-check,
body.tm-portal .tm-gold-guess,
body.tm-portal .tm-rupee-call { color-scheme: dark; }

/* Tables rendered by data shortcodes */
body.tm-portal .tm-rate-table,
body.tm-portal .tm-city-rates { width: 100%; }
body.tm-portal .tm-rate-table th,
body.tm-portal .tm-city-rates th {
	text-align: left;
	color: var(--tm-muted);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}
body.tm-portal .tm-stale { color: var(--tm-amber) !important; }

/* ---------- Footer ---------- */
body.tm-portal .site-info {
	background: var(--tm-deeper);
	border-top: 1px solid var(--tm-border);
	color: var(--tm-muted);
	font-size: 13px;
}
body.tm-portal .site-info a { color: var(--tm-muted); }
body.tm-portal .site-info a:hover { color: var(--tm-accent); }
body.tm-portal .footer-widgets-container { background: var(--tm-deeper); }
.tm-footer-grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 38px 20px 6px;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 24px;
	background: var(--tm-deeper);
}
.tm-footer-grid .tm-footer-logo { font-size: 17px; font-weight: 800; color: var(--tm-text); margin-bottom: 8px; }
.tm-footer-grid p { font-size: 13px; color: var(--tm-muted); line-height: 1.6; margin: 0; max-width: 300px; }
.tm-footer-grid h5 { font-size: 14px; margin: 0 0 12px; color: var(--tm-text); }
.tm-footer-grid a {
	color: var(--tm-muted);
	text-decoration: none;
	font-size: 13px;
	display: block;
	padding: 4px 0;
}
.tm-footer-grid a:hover { color: var(--tm-accent); }

/* ---------- Responsive (mockup breakpoint) ---------- */
@media (max-width: 900px) {
	.tm-hero-grid,
	.tm-hero-eng,
	.tm-hero-even,
	.tm-grid-3,
	.tm-grid-4,
	.tm-dr-hero,
	.tm-duel-grid,
	.tm-featured,
	.tm-article-grid { grid-template-columns: 1fr; }
	.tm-dr-satire { border-right: none; border-top: 1px solid var(--tm-border); }
	/* Duel page answer grids are inline-styled 2-col; stack them like
	   the mockup's duel-grid breakpoint. */
	body.tm-portal .tm-ai-duel div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
	.tm-footer-grid { grid-template-columns: 1fr 1fr; }
	.tm-featured-main h2 { font-size: 21px; }
	body.tm-portal .entry-title,
	body.tm-portal .page-title { font-size: 27px; }
}
@media (max-width: 640px) {
	.tm-footer-grid { grid-template-columns: 1fr; }
	.tm-card { padding: 18px; }
}

/* ---------- Utility bar (mockups with a strapline bar) ---------- */
.tm-utility { background: var(--tm-deeper); color: var(--tm-panel); font-size: 13px; }
.tm-utility-in {
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.tm-utility-right { opacity: 0.85; white-space: nowrap; }
.tm-lang-chip {
	border: 1px solid var(--tm-border);
	border-radius: 12px;
	padding: 2px 10px;
	font-size: 12px;
	font-weight: 700;
	margin-left: 10px;
	white-space: nowrap;
}

/* ---------- Wide + narrow row (chart beside news) ---------- */
.tm-grid-21 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin: 28px 0; align-items: start; }
.tm-grid-21 .tm-card { margin-bottom: 0; }

/* ---------- Rhythm bar call-to-action ---------- */
.tm-rhythm-cta {
	margin-left: auto;
	background: var(--tm-accent-dim);
	color: var(--tm-on-accent);
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 20px;
	text-decoration: none;
	font-size: 13px;
	white-space: nowrap;
}
.tm-rhythm-cta:hover { color: var(--tm-on-accent); opacity: 0.92; }

/* ---------- Festival list (real calendar dates from site config) ---------- */
.tm-fest {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--tm-border);
}
.tm-fest-name { font-weight: 700; font-size: 14.5px; color: var(--tm-text); }
.tm-fest-date, .tm-fest-note { font-size: 12.5px; color: var(--tm-muted); }
.tm-fest-count {
	background: var(--tm-accent-dim);
	color: var(--tm-on-accent);
	font-size: 12px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 20px;
	white-space: nowrap;
}
.tm-fest-link { display: inline-block; margin: 10px 16px 0 0; font-size: 13px; font-weight: 700; }
.tm-src-note { font-size: 11px; color: var(--tm-muted); margin-top: 12px; font-style: italic; line-height: 1.5; }

/* ---------- "More from" link strip ---------- */
.tm-more-strip {
	background: var(--tm-panel);
	border-radius: 12px;
	padding: 18px 22px;
	margin: 4px 0 10px;
}
.tm-more-strip h4 { margin: 0 0 10px; font-size: 16px; }
.tm-more-strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.tm-more-strip li { font-size: 14px; padding: 3px 0; }

@media (max-width: 900px) {
	.tm-grid-21 { grid-template-columns: 1fr; }
	.tm-more-strip ul { grid-template-columns: 1fr; }
}

/* ---------- Suwarna: light maroon/gold mockup ----------
 * The shared rules above assume the dark token mapping; Suwarna's
 * mockup is a light theme on the same tokens, so the differences are
 * scoped here: Georgia serif headings, gold-ruled shadow cards,
 * maroon links and buttons, white form fields, gold-on-maroon footer
 * text. Everything is keyed to the tm-site-suwarna body class. */
body.tm-portal.tm-site-suwarna h1,
body.tm-portal.tm-site-suwarna h2,
body.tm-portal.tm-site-suwarna h3 { font-family: Georgia, 'Times New Roman', serif; }
body.tm-portal.tm-site-suwarna a { color: var(--tm-accent-dim); }
body.tm-portal.tm-site-suwarna a:hover { color: var(--tm-text); }
body.tm-portal.tm-site-suwarna .tm-btn,
body.tm-portal.tm-site-suwarna .tm-rhythm-cta { color: var(--tm-on-accent); }
body.tm-portal.tm-site-suwarna .site-header { border-bottom: 3px solid var(--tm-accent); position: static; }
body.tm-portal.tm-site-suwarna .main-title { font-family: Georgia, 'Times New Roman', serif; font-size: 34px; letter-spacing: 1px; }
body.tm-portal.tm-site-suwarna .tm-brand-a { color: var(--tm-accent-dim); }
body.tm-portal.tm-site-suwarna .tm-brand-b { color: var(--tm-accent); }
body.tm-portal.tm-site-suwarna .main-navigation .main-nav ul li a { color: var(--tm-accent-dim); }
body.tm-portal.tm-site-suwarna .main-navigation .main-nav ul li:hover > a,
body.tm-portal.tm-site-suwarna .main-navigation .main-nav ul li:focus > a { background: var(--tm-panel); color: var(--tm-accent-dim); }
body.tm-portal.tm-site-suwarna button:hover,
body.tm-portal.tm-site-suwarna input[type="submit"]:hover,
body.tm-portal.tm-site-suwarna .button:hover { color: var(--tm-deeper); }
body.tm-portal.tm-site-suwarna input[type="text"],
body.tm-portal.tm-site-suwarna input[type="email"],
body.tm-portal.tm-site-suwarna input[type="url"],
body.tm-portal.tm-site-suwarna input[type="search"],
body.tm-portal.tm-site-suwarna input[type="number"],
body.tm-portal.tm-site-suwarna select,
body.tm-portal.tm-site-suwarna textarea { background: #fff; }
body.tm-portal.tm-site-suwarna .tm-card {
	border: 1px solid #f0e6cc;
	border-top: 4px solid var(--tm-accent);
	box-shadow: 0 2px 12px rgba(92, 26, 26, 0.08);
}
body.tm-portal.tm-site-suwarna .tm-card-green { border-top-color: var(--tm-green); }
body.tm-portal.tm-site-suwarna .tm-card-amber { border-top-color: var(--tm-amber); }
body.tm-portal.tm-site-suwarna .tm-card-purple { border-top-color: var(--tm-purple); }
body.tm-portal.tm-site-suwarna .tm-card h3 { color: var(--tm-accent-dim); }
body.tm-portal.tm-site-suwarna .tm-section-title { border-bottom: 3px solid var(--tm-accent); padding-bottom: 8px; }
body.tm-portal.tm-site-suwarna .tm-section-title h2 { font-size: 24px; color: var(--tm-accent-dim); }
body.tm-portal.tm-site-suwarna .tm-section-title .tm-rule { display: none; }
body.tm-portal.tm-site-suwarna .tm-section-sub { font-size: 14px; color: var(--tm-muted); margin: -6px 0 16px; }
body.tm-portal.tm-site-suwarna .tm-ticker { background: var(--tm-accent-dim); border-color: #7a2a2a; }
body.tm-portal.tm-site-suwarna .tm-ticker-item b { color: #f2d06b; }
body.tm-portal.tm-site-suwarna .tm-ticker .tm-soon { color: #e8c87a; }
body.tm-portal.tm-site-suwarna .tm-rhythm { background: var(--tm-panel); border-color: var(--tm-accent); }
body.tm-portal.tm-site-suwarna .tm-rchip { background: var(--tm-card); border-color: #e6d29a; color: var(--tm-text); }
body.tm-portal.tm-site-suwarna .tm-rchip-now { background: var(--tm-accent-dim); border-color: var(--tm-accent-dim); color: var(--tm-on-accent); }
body.tm-portal.tm-site-suwarna .tm-cat-strip a { background: var(--tm-card); border-color: var(--tm-accent); color: var(--tm-accent-dim); }
body.tm-portal.tm-site-suwarna .tm-cat-strip a:hover { background: var(--tm-accent-dim); border-color: var(--tm-accent-dim); color: #fff; }
body.tm-portal.tm-site-suwarna.blog article,
body.tm-portal.tm-site-suwarna.archive article,
body.tm-portal.tm-site-suwarna.search article { border-color: #f0e6cc; box-shadow: 0 2px 8px rgba(92, 26, 26, 0.07); }
body.tm-portal.tm-site-suwarna.single-post .entry-content h2 { color: var(--tm-accent-dim); }
body.tm-portal.tm-site-suwarna .tm-rate-alert { border: none !important; background: transparent !important; padding: 0 !important; max-width: none !important; }
body.tm-portal.tm-site-suwarna .tm-gold-guess { color-scheme: light; max-width: none !important; margin: 0 !important; }
body.tm-portal.tm-site-suwarna .tm-footer-grid h5,
body.tm-portal.tm-site-suwarna .tm-footer-grid .tm-footer-logo { color: #f2d06b; }
body.tm-portal.tm-site-suwarna .tm-footer-grid a { color: #c9a86a; }
body.tm-portal.tm-site-suwarna .tm-footer-grid p { color: #b89a68; }
body.tm-portal.tm-site-suwarna .tm-footer-note { margin-top: 10px; font-size: 12px; }
body.tm-portal.tm-site-suwarna .site-info { color: #b89a68; }
body.tm-portal.tm-site-suwarna .site-info a { color: #c9a86a; }

/* ---------- IndiaPay: light blue/navy mockup ----------
 * IndiaPay's mockup is a light theme on the same tokens, so the
 * differences are scoped here: white header with a 3px blue rule,
 * two-tone logo (blue India, navy Pay), white shadow cards with a
 * 4px tone top rule in the mockup's own card palette, navy section
 * titles with a blue underline, navy ticker, pale-blue rhythm bar,
 * white form fields, and light text on the navy footer. Everything
 * is keyed to the tm-site-indiapay body class. */
body.tm-portal.tm-site-indiapay .site-header { border-bottom: 3px solid var(--tm-accent); position: static; }
body.tm-portal.tm-site-indiapay .main-title { font-size: 32px; }
body.tm-portal.tm-site-indiapay .tm-brand-b { color: var(--tm-deeper); }
body.tm-portal.tm-site-indiapay .main-navigation .main-nav ul li a { color: var(--tm-text); }
body.tm-portal.tm-site-indiapay .main-navigation .main-nav ul li:hover > a,
body.tm-portal.tm-site-indiapay .main-navigation .main-nav ul li:focus > a { background: var(--tm-panel); color: var(--tm-accent); }
body.tm-portal.tm-site-indiapay input[type="text"],
body.tm-portal.tm-site-indiapay input[type="email"],
body.tm-portal.tm-site-indiapay input[type="url"],
body.tm-portal.tm-site-indiapay input[type="search"],
body.tm-portal.tm-site-indiapay input[type="number"],
body.tm-portal.tm-site-indiapay select,
body.tm-portal.tm-site-indiapay textarea { background: #fff; }
body.tm-portal.tm-site-indiapay .tm-card {
	border: 1px solid var(--tm-border);
	border-top: 4px solid var(--tm-accent);
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(15, 42, 74, 0.08);
}
body.tm-portal.tm-site-indiapay .tm-card-green { border-top-color: var(--tm-green); }
body.tm-portal.tm-site-indiapay .tm-card-amber { border-top-color: var(--tm-amber); }
body.tm-portal.tm-site-indiapay .tm-card-purple { border-top-color: var(--tm-purple); }
body.tm-portal.tm-site-indiapay .tm-card-orange { border-top-color: #ea580c; }
body.tm-portal.tm-site-indiapay .tm-card-teal { border-top-color: #0d9488; }
body.tm-portal.tm-site-indiapay .tm-card-indigo { border-top-color: #4f46e5; }
body.tm-portal.tm-site-indiapay .tm-card-gold { border-top-color: #b45309; }
body.tm-portal.tm-site-indiapay .tm-card-rust { border-top-color: #d4a017; }
body.tm-portal.tm-site-indiapay .tm-section-title { border-bottom: 2px solid var(--tm-accent); padding-bottom: 8px; }
body.tm-portal.tm-site-indiapay .tm-section-title h2 { font-size: 22px; color: var(--tm-deeper); }
body.tm-portal.tm-site-indiapay .tm-section-title .tm-rule { display: none; }
body.tm-portal.tm-site-indiapay .tm-ticker { background: var(--tm-deeper); border-color: var(--tm-deeper); }
body.tm-portal.tm-site-indiapay .tm-ticker-item b { color: #fff; }
body.tm-portal.tm-site-indiapay .tm-ticker .tm-soon { color: #fbbf24; }
body.tm-portal.tm-site-indiapay .tm-rhythm { background: #eff6ff; border-color: #bfdbfe; }
body.tm-portal.tm-site-indiapay .tm-rchip { background: #fff; border-color: #dbeafe; color: var(--tm-text); }
body.tm-portal.tm-site-indiapay .tm-rchip-now { border-color: var(--tm-accent); }
body.tm-portal.tm-site-indiapay .tm-article-card { box-shadow: 0 2px 8px rgba(15, 42, 74, 0.06); }
body.tm-portal.tm-site-indiapay.blog article,
body.tm-portal.tm-site-indiapay.archive article,
body.tm-portal.tm-site-indiapay.search article { box-shadow: 0 2px 8px rgba(15, 42, 74, 0.06); }
body.tm-portal.tm-site-indiapay .tm-featured-main { box-shadow: 0 2px 12px rgba(15, 42, 74, 0.08); }
body.tm-portal.tm-site-indiapay .tm-rate-alert { border: none !important; background: transparent !important; padding: 0 !important; max-width: none !important; }
body.tm-portal.tm-site-indiapay .tm-rupee-call { color-scheme: light; max-width: none !important; margin: 0 !important; }
body.tm-portal.tm-site-indiapay .tm-footer-grid h5,
body.tm-portal.tm-site-indiapay .tm-footer-grid .tm-footer-logo { color: #fff; }
body.tm-portal.tm-site-indiapay .tm-footer-grid a { color: #b6c6da; }
body.tm-portal.tm-site-indiapay .tm-footer-grid p { color: #b6c6da; }
body.tm-portal.tm-site-indiapay .tm-footer-note { margin-top: 10px; font-size: 12px; }
body.tm-portal.tm-site-indiapay .site-info { color: #b6c6da; }
body.tm-portal.tm-site-indiapay .site-info a { color: #b6c6da; }

/* Wave 1 live feed widgets (server-rendered from tm_feed_<name>) */
.tm-ticker-val { color: var(--tm-accent); font-weight: 600; }
.tm-feed-list { list-style: none; margin: 0; padding: 0; }
.tm-feed-row {
	display: flex;
	gap: 10px;
	align-items: baseline;
	padding: 8px 0;
	border-bottom: 1px solid var(--tm-border);
}
.tm-feed-row:last-child { border-bottom: none; }
.tm-feed-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.tm-feed-rank { color: var(--tm-accent); font-weight: 800; font-size: 13px; min-width: 18px; }
.tm-feed-title { color: var(--tm-text); font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; }
a.tm-feed-title:hover { color: var(--tm-accent); }
.tm-feed-meta { font-size: 12px; color: var(--tm-muted); }
.tm-feed-score { font-size: 17px; font-weight: 800; color: var(--tm-text); white-space: nowrap; }
.tm-feed-foot { margin-top: 10px; font-size: 12px; color: var(--tm-muted); }
.tm-feed-note { font-size: 12px; color: var(--tm-muted); margin-top: 8px; }
.tm-feed-sub {
	font-size: 12.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--tm-text);
	margin: 16px 0 4px;
}
.tm-share-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.tm-share-name { width: 86px; flex: none; font-size: 13px; font-weight: 600; color: var(--tm-text); }
.tm-share-track { flex: 1; height: 10px; background: var(--tm-panel); border-radius: 5px; overflow: hidden; }
.tm-share-fill { display: block; height: 100%; background: var(--tm-accent); border-radius: 5px; }
.tm-share-pct { width: 54px; flex: none; text-align: right; font-size: 13px; font-weight: 700; color: var(--tm-text); }

/* Gold tools ([tm_gold_calculator] / [tm_gold_vs]): token-styled forms
 * and result tables inside the standard card chrome. */
.tm-gold-tool .tm-tool-intro { font-size: 13.5px; color: var(--tm-muted); margin: 0 0 14px; }
.tm-tool-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-bottom: 14px; }
.tm-tool-field { display: flex; flex-direction: column; gap: 4px; }
.tm-tool-field span { font-size: 12.5px; font-weight: 600; color: var(--tm-muted); }
.tm-tool-field input,
.tm-tool-field select {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid var(--tm-border);
	border-radius: 8px;
	background: var(--tm-bg2);
	color: var(--tm-text);
	font-size: 15px;
}
.tm-tool-out { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-bottom: 12px; }
.tm-tool-out td { padding: 7px 0; border-bottom: 1px solid var(--tm-border); color: var(--tm-text); }
.tm-tool-out td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.tm-tool-out tr:last-child td { border-bottom: none; }
.tm-tool-out .tm-tool-total td { font-size: 16.5px; font-weight: 800; color: var(--tm-accent-dim); border-top: 2px solid var(--tm-accent); }
.tm-tool-sub { font-size: 12px; color: var(--tm-muted); font-weight: 400; }
.tm-tool-rate { font-size: 12.5px; color: var(--tm-muted); border-top: 1px solid var(--tm-border); padding-top: 10px; }
.tm-tool-rate .tm-updated { margin-top: 2px !important; }
.tm-tool-note { font-size: 12px; color: var(--tm-muted); margin: 8px 0 0; }
.tm-tool-equiv { font-size: 15px; font-weight: 600; color: var(--tm-text); margin: 0 0 12px; }
.tm-tool-fun { list-style: none; margin: 0 0 14px; padding: 0; font-size: 14px; color: var(--tm-text); }
.tm-tool-fun li { padding: 5px 0; border-bottom: 1px dashed var(--tm-border); }
.tm-tool-fun li:last-child { border-bottom: none; }
.tm-tool-fun-n { font-weight: 800; color: var(--tm-accent-dim); }
@media (max-width: 640px) {
	.tm-tool-fields { grid-template-columns: 1fr; }
}
