:root {
    --blue: #15376b;
    --blue-dark: #0d2447;
    --blue-soft: #eaf0fa;
    --orange: #e6ab1f;
    --orange-dark: #bd8814;
    --orange-soft: #fcf3da;

    --ink: #1a2030;
    --ink-soft: #5c6577;
    --ink-faint: #a3aab9;

    --page-bg: #fbfbfc;
    --surface: #ffffff;
    --line: #e7e9ef;
    --line-strong: #d4d8e2;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 14px 30px rgba(15, 23, 42, 0.10), 0 4px 8px rgba(15, 23, 42, 0.05);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);

    --ring: rgba(230, 171, 31, 0.55);

    --nav-height: 72px;

    --font-gurmukhi: "Puratan Hastlikhat", "Noto Sans Gurmukhi Sized", "Noto Sans Gurmukhi", "Inter", serif;
}

@font-face {
    font-family: "Puratan Hastlikhat";
    src:
        url("../fonts/Puratan_Hastlikhat.woff2") format("woff2"),
        url("../fonts/Puratan_Hastlikhat.woff") format("woff"),
        url("../fonts/Puratan_Hastlikhat.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

/*
 * Puratan Hastlikhat is a legacy ASCII font with no Unicode Gurmukhi glyphs.
 * A few letters (notably ਲ਼ lalla-pair) have no usable legacy glyph, so they
 * are emitted as real Unicode and fall through to Noto Sans Gurmukhi. Noto's
 * letters render smaller than Puratan's, so this sized copy (scoped to the
 * Gurmukhi Unicode block only) scales it up to match. Placed in the font
 * stack ahead of plain Noto. Self-hosted alongside Puratan in /fonts/.
 */
@font-face {
    font-family: "Noto Sans Gurmukhi Sized";
    src: url("../fonts/NotoSansGurmukhi-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    size-adjust: 165%;
    unicode-range: U+0A00-0A7F;
}

.gurmukhi {
    font-family: var(--font-gurmukhi);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body,
h1,
h2,
h3,
p,
div,
button,
ul,
li,
a {
    margin: 0;
    padding: 0;
}

button {
    font: inherit;
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

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

html,
body {
    min-height: 100%;
}

body {
    background: var(--page-bg);
    color: var(--ink);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.5;
}

main {
    flex: 1;
    width: 100%;
}

.site-nav {
    background: var(--blue-dark);
    border-bottom: 1px solid var(--blue-dark);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    font-family: "Fraunces", "Cormorant Garamond", "Iowan Old Style", "Apple Garamond", "Baskerville", "Times New Roman", "Times", Georgia, serif;
    font-weight: 600;
    font-size: 26px;
    letter-spacing: -0.3px;
    color: #ffffff;
    line-height: 1;
}

.site-brand .my {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    margin-right: 1.5px;
}

.site-brand .accent {
    color: var(--orange);
    font-weight: 600;
}

.site-links {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 100%;
}

.site-links a {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.72);
    transition: color var(--transition);
    position: relative;
}

.site-links a:hover {
    color: #ffffff;
}

.site-links a.is-active {
    color: #ffffff;
}

.site-links a.is-active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -1px;
    height: 2px;
    background: var(--orange);
}

.site-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    cursor: pointer;
    color: #ffffff;
    align-items: center;
    justify-content: center;
}

.site-menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Account area (Dashboard link + Sign out) — match the nav links */
.site-account {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    height: 100%;
}

.site-account-dash,
.site-account-login,
.site-account-profile {
    display: inline-flex;
    align-items: center;
    height: 100%;
    position: relative;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.72);
    transition: color var(--transition);
    white-space: nowrap;
}

.site-account-dash:hover,
.site-account-login:hover,
.site-account-profile:hover,
.site-account a.is-active {
    color: #ffffff;
}

.site-account a.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--orange);
}

.site-account-signout {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
    white-space: nowrap;
    min-width: 76px;
}

.site-account-signout:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.site-account-signout:disabled {
    opacity: 0.6;
    cursor: default;
}

.site-menu-btn svg {
    width: 18px;
    height: 18px;
}

.site-footer {
    background: var(--blue-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 22px 24px 18px;
    margin-top: 56px;
    border-top: 3px solid var(--orange);
}

.site-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.site-footer-brand {
    font-family: "Fraunces", "Cormorant Garamond", "Iowan Old Style", "Apple Garamond", "Baskerville", "Times New Roman", "Times", Georgia, serif;
    font-weight: 600;
    color: #ffffff;
    font-size: 20px;
    letter-spacing: -0.3px;
    line-height: 1;
}

.site-footer-brand .my {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    margin-right: 1.5px;
}

.site-footer-brand .accent {
    color: var(--orange);
    font-weight: 600;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.site-footer-links a {
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition);
}

.site-footer-links a:hover {
    color: #ffffff;
}

.site-footer-copy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
    letter-spacing: 0.3px;
}

.page-header {
    background: #f4f7fc;
    border-bottom: 1px solid var(--line);
    padding: 56px 24px 48px;
    position: relative;
    overflow: hidden;
}

.page-header-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.page-header-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 14px;
}

.page-header-title {
    font-family: "Cormorant Garamond", "Iowan Old Style", "Apple Garamond", "Baskerville", "Times New Roman", "Times", Georgia, serif;
    font-weight: 600;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
    color: var(--ink);
    letter-spacing: 0;
}

.page-header-sub {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-top: 10px;
}

.btn {
    background: var(--blue);
    color: #fff;
    border: 1px solid var(--blue);
    padding: 10px 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    border-radius: var(--radius);
    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
    text-transform: uppercase;
    min-width: 104px;
}

.btn:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

.btn:active {
    transform: scale(0.97);
}

.btn:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

.btn-ghost {
    background: transparent;
    color: var(--blue);
    border-color: var(--line-strong);
}

.btn-ghost:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

@media (max-width: 760px) {
    .site-nav-inner {
        padding: 0 16px;
        gap: 12px;
    }

    .site-account {
        gap: 8px;
    }

    .site-account-dash,
    .site-account-login,
    .site-account-profile,
    .site-account-signout {
        font-size: 12px;
    }

    .site-account-signout {
        padding: 6px 10px;
        min-width: 64px;
    }

    .site-menu-btn {
        display: inline-flex;
    }

    .site-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--blue-dark);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 12px 12px;
        gap: 2px;
        box-shadow: var(--shadow-md);
        display: none;
        height: auto;
    }

    .site-links.is-open {
        display: flex;
    }

    .site-links a {
        padding: 12px 16px;
        font-size: 14px;
        height: auto;
    }

    .site-links a.is-active::after {
        display: none;
    }

    .site-links a.is-active {
        background: rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-sm);
    }

    .page-header {
        padding: 36px 20px 32px;
    }
}

@media (max-width: 430px) {
    .site-brand {
        font-size: 22px;
    }

    .site-account-profile {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ============ Account controls folded into the mobile menu ============ */
/* Desktop: account lives only in the top bar; the menu copy is hidden. */
.site-links-account { display: none; }

@media (max-width: 760px) {
    /* Hide the top-bar account; it moves into the hamburger dropdown. */
    .site-account { display: none; }

    .site-links-account {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-links-account a,
    .site-links-account .site-account-login,
    .site-links-account .site-account-signout {
        display: block;
        width: 100%;
        text-align: left;
        padding: 12px 16px;
        font-size: 14px;
        height: auto;
        min-width: 0;
        border: 0;
        border-radius: var(--radius-sm);
        background: transparent;
        color: rgba(255, 255, 255, 0.85);
        font-family: inherit;
    }

    .site-links-account .site-account-signout { cursor: pointer; }
    .site-links-account .site-account-profile { display: block; }
    .site-links-account a.is-active { background: rgba(255, 255, 255, 0.08); }
}
