:root {
  color-scheme: light;
  --navy: #111e33;
  --navy-deep: #0d192c;
  --ink: #18263b;
  --muted: #4e5869;
  --gold: #edc47c;
  --gold-dark: #795324;
  --paper: #fbfaf7;
  --line: #dededb;
  --gutter: clamp(1.125rem, 4.25vw, 3.5rem);
  --display: "Instrument Serif", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.6 var(--body); }
html[lang="ta"] { --display: "Noto Sans Tamil", system-ui, sans-serif; --body: "Noto Sans Tamil", system-ui, sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; width: 100%; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid #ad7130; outline-offset: 4px; }
[hidden] { display: none !important; }
section[id], details[id] { scroll-margin-top: 5.75rem; }
.wrap { width: min(100% - var(--gutter) * 2, 72rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 8; inset: .5rem auto auto .5rem; transform: translateY(-180%); background: white; padding: .5rem 1rem; }
.skip-link:focus { transform: none; }
.icon { display: inline-flex; flex: none; width: 1.2rem; height: 1.2rem; }
.icon svg { width: 100%; height: 100%; }
.site-header { background: #fff; position: sticky; top: 0; z-index: 4; border-bottom: 1px solid #eae8e3; }
.nav-row { min-height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; line-height: 1.22; text-decoration: none; flex: none; }
.brand-mark { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border: 1px solid #314360; border-radius: .55rem; font: 1.32rem/1 "Instrument Serif", Georgia, serif; background: var(--navy); color: var(--gold); }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: .8125rem; margin-top: .15rem; }
.site-header nav { display: none; gap: clamp(1rem, 3.1vw, 2.7rem); }
.site-header nav a { text-decoration: none; font-weight: 700; font-size: .9rem; }
.site-header nav a:hover { color: var(--gold-dark); }
.language-button { background: #fff; color: var(--ink); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: .5rem; border-radius: .45rem; min-height: 2.65rem; padding: .35rem .65rem; font-weight: 700; font-size: .875rem; font-family: "Noto Sans Tamil", var(--body); }
.language-button:hover { background: #f7f0e4; }
.language-button .icon { height: 1rem; width: 1rem; }
.hero, .dark-section { color: #fff; background: var(--navy-deep); }
.hero { overflow: hidden; background: radial-gradient(ellipse at 78% 33%, #283b55 0%, #172840 38%, #101d32 68%, #0d192c 100%); }
.hero-layout { display: grid; gap: 2.2rem; align-items: center; padding-block: 2.75rem 2rem; }
.hero-copy { min-width: 0; }
.eyebrow { color: var(--gold-dark); text-transform: uppercase; letter-spacing: .13em; font-weight: 700; font-size: .875rem; line-height: 1.45; }
.gold { color: var(--gold); }
.hero h1 { font: 400 clamp(2.65rem, 10.4vw, 5.75rem)/.97 var(--display); letter-spacing: -.024em; margin-block: 1.05rem 1.15rem; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: var(--gold); font-weight: 400; }
.hero-description { color: #dbe2eb; max-width: 32rem; font-size: clamp(1rem, 1.5vw, 1.125rem); }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.45rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .55rem; min-height: 2.9rem; padding: .65rem 1.05rem; border: 1px solid transparent; border-radius: .45rem; font-weight: 700; font-size: .9rem; text-align: center; line-height: 1.35; text-decoration: none; transition: background-color .16s ease, border-color .16s ease; }
.primary { color: #172030; background: var(--gold); border-color: var(--gold); }
.primary:hover { background: #f7d79e; border-color: #f7d79e; }
.outline-light { color: #fff; border-color: #8c99ac; background: transparent; }
.outline-light:hover { background: #2b3e57; border-color: #aeb9c7; }
.mobile-qualification { display: flex; align-items: center; gap: .65rem; margin-top: 1rem; color: var(--gold); }
.mobile-qualification p { line-height: 1.35; }
.mobile-qualification strong, .mobile-qualification p span { display: block; }
.mobile-qualification p span { color: #dbe2eb; font-size: .875rem; }
.profile { position: relative; width: min(100%, 24rem); margin-inline: auto; align-self: center; padding: .63rem; background: #152337; border: 1px solid #c7985a; border-radius: .8rem .8rem .5rem .5rem; box-shadow: 0 1rem 3rem #08112155; }
.profile-visual { aspect-ratio: 1 / 1.08; overflow: hidden; border-radius: .38rem .38rem 0 0; background: #eddbcb; }
.profile img { height: 100%; object-fit: cover; object-position: 50% 39%; }
.profile figcaption { display: flex; flex-direction: column; padding: .85rem .7rem .35rem; line-height: 1.25; }
.profile figcaption strong { color: #fff; font-family: var(--display); font-weight: 400; font-size: 1.9rem; }
.profile figcaption span { color: var(--gold); font-size: .875rem; margin-top: .2rem; }
.eligibility { background: #f4ead6; border-bottom: 1px solid #e8dbc2; }
.eligibility-row { display: grid; gap: .45rem; padding-block: 1.05rem; }
.qualification { display: none; align-items: center; gap: .85rem; }
.qualification strong, .qualification p span, .age strong, .age span { display: block; line-height: 1.4; }
.qualification strong { font-size: 1.18rem; }
.qualification p span, .age span { font-size: .875rem; color: #544838; }
.badge-icon { display: grid; place-items: center; flex: none; background: #f2e8d4; color: var(--gold-dark); border-radius: .6rem; width: 2.9rem; height: 2.9rem; }
.badge-icon .icon { width: 1.38rem; height: 1.38rem; }
.qualification .badge-icon { color: var(--gold); background: var(--navy); }
.text-link { display: inline-block; width: fit-content; color: var(--gold-dark); font-weight: 700; font-size: .91rem; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.text-link:hover { color: #492c10; }
.section { padding-block: clamp(3.25rem, 7vw, 6rem); }
.section-head { min-width: 0; max-width: 43rem; }
.section-head h2, .contact h2, dialog h2 { font: 400 clamp(2.7rem, 6.2vw, 4.5rem)/1 var(--display); letter-spacing: -.02em; margin-block: .55rem .85rem; }
.section-head > p:not(.eyebrow) { color: var(--muted); }
.section-head > .text-link { margin-block-start: .8rem; }
.role-grid, .milestone-grid { display: grid; gap: 1rem; margin-top: 1.7rem; }
.role-card { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; padding: clamp(1.2rem, 2.5vw, 1.8rem); background: white; border: 1px solid var(--line); border-radius: .75rem; box-shadow: 0 3px 10px #17243a06; }
.role-card.featured { border-color: #b78d53; }
.role-card h3 { font: 600 clamp(1.25rem, 2.25vw, 1.6rem)/1.18 var(--body); letter-spacing: -.025em; }
.role-card p { color: var(--muted); flex: 1; }
.role-button { background: #fff; color: var(--navy); border-color: #adb4bd; }
.role-button:hover { background: #f6efe2; border-color: #a4783f; }
.role-card .role-button { margin-top: .3rem; }
.scheme { margin-top: 1rem; border: 1px solid var(--line); border-radius: .6rem; background: #fff; }
.scheme summary { display: flex; align-items: center; gap: .65rem; list-style: none; padding: .9rem 1rem; font-weight: 700; cursor: pointer; }
.scheme summary::-webkit-details-marker { display: none; }
.scheme summary::after { content: ""; flex: none; margin: 0 .2rem 0 auto; width: .55rem; height: .55rem; border-right: 2px solid var(--gold-dark); border-bottom: 2px solid var(--gold-dark); transform: translateY(-2px) rotate(45deg); }
.scheme[open] summary::after { transform: translateY(2px) rotate(225deg); }
.scheme summary .icon { color: var(--gold-dark); }
.scheme-body { padding: 0 1rem 1rem; display: grid; gap: .85rem; color: var(--muted); }
.stipend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.stipend-grid div { padding: .55rem .35rem; background: #f8f1e5; border-radius: .38rem; text-align: center; }
.stipend-grid dt, .stipend-grid small { color: #5d4a31; font-size: .875rem; font-weight: 500; }
.stipend-grid dd { color: var(--navy); font-size: 1.22rem; font-weight: 700; }
.stipend-grid small { display: block; }
.earn-layout, .support-layout, .join-layout { display: grid; gap: 1.9rem; }
.dark-section .section-head > p:not(.eyebrow), .dark-section article p, .contact p:not(.eyebrow) { color: #d7e1ed; }
.earn-items { border-block: 1px solid #3e4e64; }
.earn-items article, .support-list article { display: flex; align-items: flex-start; gap: .85rem; padding-block: 1rem; }
.earn-items article + article { border-top: 1px solid #3e4e64; }
.earn-items .icon { margin-top: .2rem; color: var(--gold); }
.earn-items h3, .support-list h3, .steps h3, .story h3 { font-size: 1.1rem; line-height: 1.3; margin-bottom: .3rem; }
.support-list article { padding-block: .55rem 1.1rem; }
.support-list article + article { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.support-list p, .steps p, .story p { color: var(--muted); }
.milestone-section { background: #f0ede6; }
.story { background: #fff; border-radius: .7rem; overflow: hidden; border: 1px solid var(--line); }
.story-visual { height: 6.75rem; display: grid; place-items: center; background: radial-gradient(circle at 50% 120%, #f5dfb7, #e9dbc5 68%); color: #644824; }
.story:nth-child(2) .story-visual { color: #f0d29d; background: radial-gradient(circle at 50% 110%, #3b5168, #263b54 74%); }
.story:nth-child(3) .story-visual { background: radial-gradient(circle at 50% 110%, #e6e4d2, #deddd0 74%); }
.story-visual .icon { width: 2.5rem; height: 2.5rem; }
.story-visual img { height: 100%; object-fit: cover; }
.story-caption { padding: 1.1rem; }
.steps { padding: 0; margin: 0; list-style: none; counter-reset: steps; }
.steps li { counter-increment: steps; position: relative; margin-left: 1.1rem; padding: .1rem 0 1.5rem 2.15rem; border-left: 1px solid #c9b391; }
.steps li:last-child { border-color: transparent; padding-bottom: 0; }
.steps li::before { content: counter(steps); position: absolute; inset: 0 auto auto -1.08rem; display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 50%; background: #f1e6d3; color: #624522; font-size: .9rem; font-weight: 700; }
.contact { padding-block: clamp(2.25rem, 5vw, 4rem); background: #182940; }
.contact-row { display: grid; gap: 1.25rem; align-items: center; }
.contact-actions { margin-top: 0; }
.site-footer { background: #fff; padding-block: 1.1rem calc(5rem + env(safe-area-inset-bottom)); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem; color: var(--muted); font-size: .9rem; }
.mobile-bar { position: fixed; z-index: 5; inset: auto 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; background: var(--navy-deep); border-top: 1px solid #3e4e64; padding: .55rem var(--gutter) calc(.55rem + env(safe-area-inset-bottom)); }
.mobile-call { color: #fff; border-color: #748498; }
.mobile-whatsapp { color: #172030; background: var(--gold); }
dialog { width: min(calc(100% - 1.5rem), 31rem); padding: 0; border: 1px solid #d9d2c5; border-radius: .85rem; max-height: calc(100dvh - 1.5rem); color: var(--ink); background: white; }
dialog::backdrop { background: #071120bc; backdrop-filter: blur(3px); }
.dialog-inner { position: relative; padding: clamp(1.15rem, 5vw, 2rem); }
.dialog-inner > p:not(.eyebrow) { color: var(--muted); }
dialog h2 { font-size: clamp(2.55rem, 9vw, 3.45rem); margin-top: .35rem; }
.close-button { position: absolute; top: .72rem; right: .72rem; display: grid; place-items: center; width: 2.45rem; height: 2.45rem; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.close-button:hover { background: #f6efe2; }
form { display: grid; gap: .4rem; margin-top: .8rem; }
form label { color: var(--ink); font-weight: 700; font-size: .9rem; margin-top: .4rem; }
input, select { border: 1px solid #aeb5bf; border-radius: .4rem; color: var(--ink); background: white; padding: .55rem .7rem; width: 100%; min-height: 2.75rem; }
select { appearance: none; padding-right: 2.05rem; text-overflow: ellipsis; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' stroke='%2318263b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") right .65rem center/ .875rem no-repeat; }
.form-button { margin-top: .6rem; }
.draft-label { font-weight: 700; margin-top: .9rem; }
#draft-text { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; padding: .7rem .8rem; border: 1px solid var(--line); background: #f6f2e9; border-radius: .45rem; margin: .4rem 0 .85rem; }
.draft-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.draft-note { margin-top: .55rem; color: var(--muted); font-size: .875rem; }
#call-details h2 { padding-right: 1.6rem; }
.call-number { margin-block: .9rem; background: #f6f2e9; font-size: 1.25rem; font-weight: 700; }
.copy-status:not(:empty) { margin-top: .5rem; }
html[lang="ta"] .eyebrow { letter-spacing: 0; }
html[lang="ta"] h1 { font-size: clamp(1.6rem, 5.05vw, 3.2rem); font-weight: 700; line-height: 1.25; }
html[lang="ta"] h1 em { font-style: normal; font-weight: 700; }
html[lang="ta"] h2 { font-size: clamp(1.7rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.25; }
html[lang="ta"] .role-card h3 { letter-spacing: 0; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.4; }
html[lang="ta"] .profile figcaption strong { font-size: 1.3rem; font-weight: 600; }

@media (min-width: 44rem) {
  .nav-row { min-height: 4.65rem; }
  .site-header nav { display: flex; }
  .hero-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .75fr); gap: clamp(1.6rem, 4.4vw, 4.4rem); padding-block: clamp(3.1rem, 5.7vw, 5.15rem); }
  .hero h1 { font-size: clamp(3.15rem, 6.1vw, 5.6rem); }
  .hero-actions { margin-top: 1.8rem; }
  .profile { justify-self: end; margin: 0; }
  .mobile-qualification { display: none; }
  .eligibility-row { grid-template-columns: auto auto auto; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; }
  .qualification { display: flex; }
  .role-grid, .milestone-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .earn-layout, .support-layout, .join-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); }
  .contact-row { grid-template-columns: 1fr auto; }
  .mobile-bar { display: none; }
  .site-footer { padding-block: 1.3rem; }
}
@media (max-width: 24rem) {
  .hero-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
