/* ============================================================
   Abhyaskram Promotion Manager — Gujarati Typography
   ============================================================ */

/* ---------- @font-face Noto Sans Gujarati (CDN fallback declarations) ---------- */
/* Primary loading via Google Fonts link in HTML <head>.
   These @font-face rules serve as explicit reference for weight mapping. */

@font-face {
    font-family: 'Noto Sans Gujarati';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/notosansgujarati/v25/wlpvgx_HC1ti5ViekvcxnhMlCVo3f5pv.woff2') format('woff2');
    unicode-range: U+0A80-0AFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839;
}

@font-face {
    font-family: 'Noto Sans Gujarati';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/notosansgujarati/v25/wlpvgx_HC1ti5ViekvcxnhMlCVo3f5pv.woff2') format('woff2');
    unicode-range: U+0A80-0AFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839;
}

@font-face {
    font-family: 'Noto Sans Gujarati';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/notosansgujarati/v25/wlpvgx_HC1ti5ViekvcxnhMlCVo3f5pv.woff2') format('woff2');
    unicode-range: U+0A80-0AFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839;
}

@font-face {
    font-family: 'Noto Sans Gujarati';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/notosansgujarati/v25/wlpvgx_HC1ti5ViekvcxnhMlCVo3f5pv.woff2') format('woff2');
    unicode-range: U+0A80-0AFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839;
}

/* ---------- Base Gujarati text class ---------- */
.gu-text {
    font-family: 'Noto Sans Gujarati', 'Inter', sans-serif;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

/* ---------- Gujarati headings ---------- */
.gu-heading {
    font-family: 'Noto Sans Gujarati', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

h1.gu-heading { font-size: 2rem; }
h2.gu-heading { font-size: 1.75rem; }
h3.gu-heading { font-size: 1.35rem; }
h4.gu-heading { font-size: 1.1rem; }

/* ---------- Gujarati number formatting helpers ---------- */
/* Use .gu-num to render digits in Gujarati numerals via CSS font-feature */
.gu-num {
    font-family: 'Noto Sans Gujarati', sans-serif;
    font-variant-numeric: lining-nums tabular-nums;
}

/* Force Gujarati (Devanagari-style) digit rendering on certain elements */
.gu-digits {
    font-feature-settings: 'lnum' 1;
}

/* ---------- Gujarati input field adjustments ---------- */
input.gu-text,
textarea.gu-text,
select.gu-text,
input[lang="gu"],
textarea[lang="gu"] {
    font-family: 'Noto Sans Gujarati', 'Inter', sans-serif;
    line-height: 1.8;
    padding-top: 12px;
    padding-bottom: 12px;
    letter-spacing: 0.01em;
}

/* Larger Gujarati form labels */
label.gu-text,
.form-label.gu-text {
    font-family: 'Noto Sans Gujarati', 'Inter', sans-serif;
    line-height: 1.6;
}

/* ---------- Poster text classes (for canvas overlay / preview text) ---------- */

/* Title — large, bold poster headline */
.poster-text-title {
    font-family: 'Noto Sans Gujarati', sans-serif;
    font-weight: 700;
    font-size: 2.25rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* Subtitle — secondary line on poster */
.poster-text-subtitle {
    font-family: 'Noto Sans Gujarati', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.4;
    letter-spacing: 0;
}

/* Body — descriptive text on poster */
.poster-text-body {
    font-family: 'Noto Sans Gujarati', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* Caption — small text on poster (chapter info, branding) */
.poster-text-caption {
    font-family: 'Noto Sans Gujarati', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

/* ---------- Gujarati-specific nav and UI text ---------- */
.nav-label.gu-text {
    font-family: 'Noto Sans Gujarati', 'Inter', sans-serif;
    font-size: 0.92rem;
    line-height: 1.4;
}

/* Pill / tab text in Gujarati */
.pill.gu-text,
.standard-pills .pill {
    font-family: 'Noto Sans Gujarati', 'Inter', sans-serif;
}

/* ---------- Selection text in Gujarati ---------- */
::selection {
    background: rgba(30, 64, 175, 0.2);
    color: inherit;
}

/* ---------- Placeholder text in Gujarati inputs ---------- */
input.gu-text::placeholder,
textarea.gu-text::placeholder {
    font-family: 'Noto Sans Gujarati', 'Inter', sans-serif;
    opacity: 0.55;
}
