@font-face {
    font-family: Outfit;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/outfit-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Noto Sans Tamil';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/noto-sans-tamil.woff2') format('woff2');
    unicode-range: U+0B80-0BFF, U+200C-200D, U+25CC;
}
html.ed-academy {
    font-size: 100%;
    color-scheme: dark;
    --ed-canvas: #08090c;
    --ed-panel: #111319;
    --ed-soft: #171a22;
    --ed-text: #f6f4ed;
    --ed-muted: #b8b8b3;
    --ed-link: #f2d46b;
    --ed-gold: #f2d46b;
    --ed-gold-end: #d5a817;
    --ed-on-gold: #0a0b0e;
    --ed-tint: rgb(226 189 66 / 11%);
    --ed-line: rgb(255 255 255 / 13%);
    --ed-edge: rgb(226 189 66 / 65%);
    --ed-card: linear-gradient(145deg, rgb(28 29 34 / 96%), rgb(13 14 18 / 98%));
    --ed-header: rgb(9 11 12 / 93%);
    --ed-footer: #07080a;
    --ed-brand: #d4af37;
}
html.ed-academy[data-theme="light"] {
    color-scheme: light;
    --ed-canvas: #fff;
    --ed-panel: #f7f5ef;
    --ed-soft: #efece3;
    --ed-text: #1a1c21;
    --ed-muted: #5c5f66;
    --ed-link: #6e5600;
    --ed-tint: rgb(138 109 0 / 10%);
    --ed-line: rgb(26 28 33 / 16%);
    --ed-edge: rgb(138 109 0 / 45%);
    --ed-card: linear-gradient(145deg, #fff, #f4f1e9);
    --ed-header: rgb(255 255 255 / 94%);
    --ed-footer: #f2efe7;
    --ed-brand: #795d00;
}
body.ed-public {
    --academy-blue: var(--ed-link);
    --academy-navy: var(--ed-text);
    --academy-amber: var(--ed-gold);
    --academy-ochre: var(--ed-link);
    --academy-cream: var(--ed-soft);
    --academy-paper: var(--ed-canvas);
    --academy-line: var(--ed-line);
    --academy-muted: var(--ed-muted);
    --primary: var(--ed-link);
    --primary-dark: var(--ed-link);
    --primary-light: var(--ed-tint);
    --primary-glow: transparent;
    --accent: var(--ed-link);
    --accent-rose: var(--ed-link);
    --accent-bronze: var(--ed-link);
    --accent-glow: transparent;
    --bg-dark: var(--ed-canvas);
    --bg-darker: var(--ed-footer);
    --bg-card: var(--ed-panel);
    --bg-card-hover: var(--ed-soft);
    --text-primary: var(--ed-text);
    --text-secondary: var(--ed-muted);
    --text-muted: var(--ed-muted);
    --border-color: var(--ed-line);
    --border-glow: var(--ed-edge);
    --gradient-gold: linear-gradient(135deg, var(--ed-gold), var(--ed-gold-end));
    --gradient-primary: var(--gradient-gold);
    --gradient-dark: linear-gradient(var(--ed-canvas), var(--ed-soft));
    --gradient-card: var(--ed-card);
    --shadow-glow: none;
    --shadow-card: 0 12px 35px rgb(0 0 0 / 10%);
    --font-body: Outfit, 'Noto Sans Tamil', 'Nirmala UI', Arial, sans-serif;
    --font-heading: var(--font-body);
    --font-display: var(--font-body);
    color: var(--ed-text);
    background: var(--ed-canvas);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
.ed-public :focus-visible { outline: 3px solid var(--ed-link); outline-offset: 3px; }
.ed-public ::selection { color: var(--ed-on-gold); background: var(--ed-gold); }
.ed-public [id] { scroll-margin-top: 76px; }
.ed-shell-wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.ed-skip { position: fixed; z-index: 1500; top: 6px; left: 10px; padding: 10px 16px; border-radius: 10px; color: var(--ed-on-gold); background: var(--ed-gold); transform: translateY(-165%); }
.ed-skip:focus { transform: none; }
.ed-masthead { position: sticky; top: 0; z-index: 90; border-bottom: 1px solid var(--ed-line); background: var(--ed-header); backdrop-filter: blur(18px); }
.ed-masthead .ed-shell-wrap { width: auto; margin: 0; padding-inline: 20px; }
.ed-masthead-row,.ed-wordmark,.ed-header-actions,.ed-main-nav { display: flex; align-items: center; }
.ed-masthead-row { min-height: 63px; gap: 24px; }
.ed-wordmark { flex-shrink: 0; gap: 10px; min-height: 48px; color: var(--ed-brand); text-decoration: none; }
.ed-brand-seal { display: block; flex: none; width: 52px; height: 52px; object-fit: contain; }
.ed-brand-type { display: grid; gap: 3px; text-align: start; }
.ed-wordmark strong { color: inherit; font: 700 21px/1 var(--font-heading); letter-spacing: -.02em; }
.ed-wordmark small { color: var(--ed-muted); font: 500 11px/1.1 var(--font-body); letter-spacing: .07em; }
.ed-public .ed-about .about-brand-heading .about-brand-seal { width: clamp(92px,14vw,168px); max-width: 100%; height: auto; }
.ed-main-nav { margin-left: auto; gap: 20px; }
.ed-main-nav a,.ed-nav-more summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--ed-muted); font: 600 .85rem/1.4 var(--font-body); text-decoration: none; }
.ed-main-nav > a,.ed-nav-more summary { white-space: nowrap; }
.ed-main-nav a:hover,.ed-main-nav [aria-current="page"],.ed-nav-more summary:hover { color: var(--ed-link); }
.ed-main-nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.ed-nav-more { position: relative; }
.ed-nav-more summary { gap: 7px; list-style: none; cursor: pointer; }
.ed-nav-more summary::-webkit-details-marker { display: none; }
.ed-nav-more summary::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.ed-nav-more[open] summary::after { transform: translateY(2px) rotate(225deg); }
.ed-nav-more[open] > div { position: absolute; z-index: 2; top: 100%; right: 0; width: 250px; max-height: calc(100dvh - 70px); overflow-y: auto; padding: 8px; background: var(--ed-panel); border: 1px solid var(--ed-line); border-radius: 14px; box-shadow: var(--shadow-card); }
.ed-nav-more > div > a { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 37px; padding: 7px 10px; border-radius: 8px; color: var(--ed-text); }
.ed-nav-more > div > a:hover { color: var(--ed-link); background: var(--ed-tint); }
.ed-nav-more > div p { margin: 6px 0 0; padding: 9px 10px 2px; border-top: 1px solid var(--ed-line); color: var(--ed-muted); font-size: .78rem; font-weight: 600; }
.ed-header-actions { gap: 12px; }
.ed-header-actions :is(a,button),.ed-drawer .ed-nav-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 20px; border: 1px solid var(--ed-line); border-radius: 9999px; color: var(--ed-text); background: transparent; font: 600 13px/1.3 var(--font-body); text-decoration: none; cursor: pointer; }
.ed-header-actions .ed-menu-toggle,.ed-header-actions button[hidden] { display: none; }
/* Reserve the enhanced controls at first paint; the ordinary links remain available if the script fails. */
.ed-navigation-capable .ed-header-actions .ed-theme-toggle[hidden] { display: inline-flex; visibility: hidden; }
.ed-header-actions .ed-theme-toggle { width: 50px; padding: 0; border-radius: 15px; color: var(--ed-muted); background: color-mix(in srgb,var(--ed-text) 5%,transparent); }
.ed-theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ed-theme-toggle .ed-sun,[data-theme="light"] .ed-theme-toggle .ed-moon { display: none; }
[data-theme="light"] .ed-theme-toggle .ed-sun { display: block; }
.ed-header-actions .ed-nav-cta,.ed-drawer nav a.ed-nav-cta { border-color: var(--ed-edge); color: var(--ed-on-gold); background: var(--gradient-gold); }
.ed-header-actions :is(button,a):hover,.ed-drawer .ed-drawer-close:hover { border-color: var(--ed-link); }
.ed-header-actions [aria-current="page"] { outline: 1px solid var(--ed-link); outline-offset: 2px; }
.ed-drawer:not([open]) { display: none; }
.ed-drawer { position: fixed; inset: 0 0 0 auto; width: min(360px,93vw); max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 20px; border: 0; border-left: 1px solid var(--ed-line); color: var(--ed-text); background: var(--ed-panel); overflow-y: auto; overscroll-behavior: contain; }
.ed-drawer::backdrop { background: rgb(0 0 0 / 56%); }
html:has(.ed-drawer[open]) { overflow: hidden; }
.ed-drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 12px; font: 700 20px/1.4 var(--font-body); color: var(--ed-link); }
.ed-drawer-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ed-line); border-radius: 12px; background: var(--ed-soft); color: var(--ed-text); font: 500 23px/1 var(--font-body); cursor: pointer; }
.ed-drawer nav { display: grid; }
.ed-drawer nav a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 10px; padding-block: 8px; border-top: 1px solid var(--ed-line); color: var(--ed-text); font-size: 15px; text-decoration: none; }
.ed-drawer nav a span,.ed-drawer nav a[aria-current] { color: var(--ed-link); }
.ed-drawer nav a.ed-nav-cta { margin-top: 12px; justify-content: center; }
.ed-foot { padding: 48px 0 28px; border-top: 1px solid var(--ed-line); color: var(--ed-text); background: var(--ed-footer); }
.ed-foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3,minmax(0,1fr)); gap: 32px; }
.ed-foot-mark { display: inline-flex; gap: 13px; color: var(--ed-link); }
.ed-foot-mark .ed-brand-seal { width: 64px; height: 64px; }
.ed-foot-mark strong { font-size: 24px; }
.ed-foot .ed-foot-mark:hover { text-decoration: none; }
.ed-foot-about { max-width: 360px; margin-top: 16px; color: var(--ed-muted); font-size: .88rem; line-height: 1.65; }
.ed-foot-col h2 { margin: 0 0 14px; color: var(--ed-text); font: 700 .84rem/1.5 var(--font-heading); letter-spacing: .08em; text-transform: uppercase; }
.ed-foot-col > a { display: flex; align-items: center; gap: 8px; width: fit-content; margin-top: 8px; min-height: 25px; color: var(--ed-muted); font-size: .86rem; text-decoration: none; }
.ed-foot a:hover { color: var(--ed-link); text-decoration: underline; text-underline-offset: 3px; }
.ed-foot-family img { width: 32px; height: 32px; padding: 3px; border-radius: 8px; background: #fff; object-fit: contain; }
.ed-foot-base { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--ed-line); color: var(--ed-muted); font-size: .8rem; }
.ed-foot-social { display: flex; gap: 12px; }
.ed-foot-social a { display: grid; place-items: center; width: 30px; height: 32px; color: var(--ed-muted); font-size: 1.05rem; }
@media (max-width: 768px) {
    html.ed-academy { font-size: 87.5%; }
    .ed-masthead .ed-shell-wrap { padding-inline: 11px; }
    .ed-masthead-row { gap: 14px; }
    .ed-main-nav { gap: 11px; }
    .ed-header-actions { gap: 6px; }
    /* Reserve the enhanced controls at first paint; the ordinary links remain available if the script fails. */
.ed-navigation-capable .ed-header-actions .ed-theme-toggle[hidden] { display: inline-flex; visibility: hidden; }
.ed-header-actions .ed-theme-toggle { width: 44px; }
    .ed-masthead .ed-brand-seal { width: 46px; height: 46px; }
    .ed-masthead .ed-wordmark { gap: 7px; }
    .ed-masthead .ed-wordmark strong { font-size: 19px; }
    .ed-masthead .ed-wordmark small { font-size: 10px; }
    .ed-public .ed-about .about-brand-heading .about-brand-seal { width: clamp(64px,18vw,96px); }
    .ed-foot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px; }
}
@media (max-width: 700px) {
    .ed-masthead-row { flex-wrap: wrap; gap: 0 8px; }
    .ed-main-nav { order: 3; width: 100%; flex-wrap: wrap; }
    .ed-masthead[data-ready] .ed-main-nav,.ed-masthead[data-ready] .ed-header-enquiry,
    .ed-navigation-capable .ed-masthead .ed-main-nav,.ed-navigation-capable .ed-masthead .ed-header-enquiry { display: none; }
    .ed-navigation-capable .ed-masthead:not([data-ready]) .ed-menu-toggle { display: inline-flex; visibility: hidden; }
    .ed-masthead[data-ready] .ed-menu-toggle { display: inline-flex; }
    .ed-header-actions { margin-left: auto; }
    .ed-header-actions :is(a,button) { padding-inline: 13px; font-size: 12px; }
    .ed-header-actions .ed-theme-toggle { padding: 0; }
    .ed-nav-more[open] > div { right: auto; left: max(-125px,-30vw); }
    .ed-shell-wrap { width: calc(100% - 28px); }
}
@media (max-width: 560px) {
    .ed-foot-grid { grid-template-columns: 1fr; gap: 24px; }
    .ed-foot-col > a { min-height: 30px; font-size: 1rem; }
}
@media (max-width: 350px) {
    .ed-masthead-row { column-gap: 6px; }
    .ed-header-actions { gap: 4px; }
    .ed-header-actions :is(a,button:not(.ed-theme-toggle)) { padding-inline: 9px; }
    .ed-masthead .ed-brand-seal { width: 43px; height: 43px; }
    .ed-masthead .ed-wordmark { gap: 6px; }
    .ed-masthead .ed-wordmark strong { font-size: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
    /* A short settling movement keeps the full title visible from the first frame. */
    .ed-public main h1 { animation: ed-heading-arrive 300ms cubic-bezier(.2,.7,.3,1); }
    .ed-nav-more[open] > div { animation: ed-menu-arrive 145ms ease-out; }
    .ed-drawer[open] { animation: ed-drawer-arrive 180ms cubic-bezier(.2,.7,.3,1); }

    .ed-header-actions :is(a,button), .ed-drawer-close, .ed-foot-col > a, .ed-main-nav a,
    .ed-nav-more summary, .ed-wordmark, .ed-drawer nav a {
        transition: color 140ms ease-out, background-color 140ms ease-out, border-color 140ms ease-out;
    }
    .ed-theme-toggle svg, .ed-nav-more summary::after { transition: transform 160ms ease-out; }
    .ed-public :is(.ds-action,.dir-card-footer a,.dir-site-link,.inner-hero-actions a,.mh-bento-link,.ed-drawer a) :is(.dir-destination span,[aria-hidden=true]:last-child) {
        transition: translate 160ms ease-out;
    }
    .ed-theme-toggle:focus-visible svg { transform: rotate(8deg); }
    .ed-public :is(.ds-action,.dir-card-footer a,.dir-site-link,.inner-hero-actions a,.mh-bento-link,.ed-drawer a):focus-visible :is(.dir-destination span,[aria-hidden=true]:last-child) {
        translate: 2px 0;
    }
    @keyframes ed-heading-arrive { from { translate: 0 5px; } to { translate: 0 0; } }
    @keyframes ed-menu-arrive { from { translate: 0 -3px; } to { translate: 0 0; } }
    @keyframes ed-drawer-arrive { from { translate: 8px 0; } to { translate: 0 0; } }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .ed-theme-toggle:hover svg { transform: rotate(8deg); }
    .ed-public :is(.ds-action,.dir-card-footer a,.dir-site-link,.inner-hero-actions a,.mh-bento-link,.ed-drawer a):hover :is(.dir-destination span,[aria-hidden=true]:last-child) {
        translate: 2px 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    html.ed-academy { scroll-behavior: auto; }
    .ed-public *, .ed-public *::before, .ed-public *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .ed-public .ed-home.marketing-home :is(.mh-button,.mh-player-control,.mh-bento-link,.mh-exam-card,.mh-episode-card,.mh-hub-card):hover,
    .ed-public .ed-home.marketing-home :is(.mh-player-art,.mh-episode-card):hover img { transform: none; }
}
