/*
Theme Name: Paithan News
Theme URI: https://paithan.in
Description: Paithan News - A fast, fully dashboard-editable, mobile-first news & magazine child theme for GeneratePress. Optimized for Google Discover, Core Web Vitals, SEO and AdSense.
Author: Paithan News
Author URI: https://paithan.in
Template: generatepress
Version: 3.3.0
Text Domain: paithan-news
*/

/* Fonts are enqueued (optimized, non-render-blocking) in functions.php — no CSS @import here. */

:root {
    /* Color Palette */
    --wph-primary: #dc2626;
    --wph-secondary: #e11d48;
    --wph-bg: #f8fafc;
    --wph-text: #0f172a;
    --wph-text-muted: #64748b;
    --wph-border: #e2e8f0;
    --wph-card-bg: #ffffff;
    --wph-success: #22c55e;

    /* Layout */
    --wph-container: 1240px;
    --wph-spacing: 0.85rem;
    --wph-radius: 10px;
    --wph-radius-sm: 6px;
    --wph-radius-full: 9999px;

    /* Shadows */
    --wph-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
    --wph-shadow-hover: 0 12px 20px -5px rgba(15, 23, 42, 0.06), 0 6px 8px -6px rgba(15, 23, 42, 0.06);
    --wph-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);

    /* ---- Centralized Typography System — Noto Sans Devanagari ---- */
    --wph-font: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --wph-font-family: var(--wph-font);
    --fs-body: 1.0625rem;         /* 17px — comfortable for Devanagari */
    --fs-small: 0.8125rem;        /* 13px — meta / labels */
    --fs-nav: 0.95rem;            /* 15px — navigation */
    --fs-card-title: 1.0625rem;   /* 17px — card / list titles */
    --fs-hero: clamp(1.35rem, 1rem + 1.6vw, 1.9rem);
    --fs-h1: clamp(1.6rem, 1.2rem + 1.8vw, 2.15rem);
    --fs-h2: clamp(1.3rem, 1.05rem + 1vw, 1.6rem);
    --fs-h3: 1.25rem;
    --fs-h4: 1.0625rem;
    --fs-h5: 0.95rem;
    --fs-h6: 0.85rem;
    --lh-body: 1.75;              /* generous line-height for Devanagari matras */
    --lh-heading: 1.3;
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-black: 800;
}

/* Base resets & typography */
*,
*:before,
*:after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html,
body {
    overflow-x: clip;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--wph-text);
    font-family: var(--wph-font);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    font-weight: var(--fw-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.site,
#page {
    overflow-x: hidden;
    width: 100%;
}

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

a {
    color: var(--wph-text);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
    color: var(--wph-primary);
}

/* Form elements must inherit the site font (browsers don't inherit it by default) */
button,
input,
select,
textarea {
    font-family: inherit;
}

/* Visible keyboard focus — accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--wph-primary);
    outline-offset: 2px;
    border-radius: 2px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--wph-text);
    font-family: var(--wph-font);
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* Responsive Custom Logo Fixes */
.custom-logo-link {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.custom-logo-link img.custom-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* =======================================================================
   CENTRALIZED TYPOGRAPHY MAP (Paithan News)
   One font family (Noto Sans Devanagari) + one scale, applied site-wide
   via CSS custom properties. No !important; relies on normal cascade.
   ======================================================================= */
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

/* Make every text surface use the one font family (covers inline-styled nodes
   too, since they set size but inherit family). */
body, button, input, select, textarea, optgroup,
.wph-logo, .main-navigation a, .wph-drawer-menu-list li a,
.wph-section-title, .wph-hero-title, .wph-post-title, .wph-card-title,
.wph-trending-title, .wph-list-title, .wph-hlist-title, .wph-related-post-title,
.widget-title, .wph-breadcrumbs, .wph-premium-meta, .entry-content,
.wph-post-content, .wph-footer-col, .site-footer, .wph-cat-pill {
    font-family: var(--wph-font);
}

/* Article / WordPress-generated reading text — matches the reference body style */
.wph-post-content,
.entry-content,
.page-content {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
}
.wph-post-content p,
.entry-content p,
.wph-post-content li,
.entry-content li {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    margin: 0 0 1.15em;
}
.wph-post-content h2,
.entry-content h2 { font-size: var(--fs-h2); margin-top: 1.6em; }
.wph-post-content h3,
.entry-content h3 { font-size: var(--fs-h3); margin-top: 1.4em; }

/* Navigation */
.main-navigation a { font-size: var(--fs-nav); font-weight: var(--fw-semibold); }
/* PN_TYPO_PLACEHOLDER */

/* Meta, labels, breadcrumbs — small scale */
.wph-premium-meta,
.wph-post-meta,
.wph-breadcrumbs,
.wph-meta-date,
.wph-meta-author { font-size: var(--fs-small); }

/* Widget / section headings weight */
.widget-title { font-weight: var(--fw-bold); line-height: var(--lh-heading); }

/* Buttons & form controls keep the family + a sensible size */
.wph-btn,
button,
input[type="submit"],
.search-submit { font-weight: var(--fw-semibold); }

/* Respect users who prefer reduced motion (accessibility) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Screen-reader-only helper (for accessible headings/labels) */
.screen-reader-text,
.wph-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* Utility: hide an element on small screens (used by Subscribe button option) */
@media (max-width: 768px) {
    .wph-hide-mobile { display: none !important; }
}