/* Pragati Classes — theme: tokens, type, header, buttons
   Look: a well-kept notebook. Ink blue on white, ruled lines, a red margin, one highlighter. */

:root {
  --ink: #1D2B64;
  --ink-2: #2B3C85;
  --paper: #FFFFFF;
  --rule: #DCE4F5;
  --hl: #FFE14D;
  --green: #1F8A5B;
  --margin: #E8574A;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #56618C;
  --surface: #FFFFFF;
  --tint: #F4F7FD;
  --line: rgb(29 43 100 / .13);
  --accent: var(--ink);
  --accent-ink: #FFFFFF;
  --focus: #3D63DD;
  --field-bg: #FFFFFF;
  --actionbar-bg: rgb(255 255 255 / .97);

  --font-display: "Bricolage Grotesque", "Noto Sans Devanagari", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Noto Sans Devanagari", system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 24px 60px -24px rgb(29 43 100 / .35);
  --header-h: 70px;
  --wrap: 1180px;
}

body { font-size: 1.09rem; }

/* ------------------------------------------------------------- type */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
section { padding-block: clamp(72px, 9vw, 112px); position: relative; }

.section-head { display: grid; gap: 12px; max-width: 44rem; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 1.125rem; max-width: 58ch; }
.section-head--row { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 20px; }
.section-head--row > div:not(.tabs) { display: grid; gap: 12px; }
@media (max-width: 760px) { .section-head--row { grid-template-columns: 1fr; } }

/* highlighter: the one bit of colour drama on the page */
mark.hl { color: inherit; background: linear-gradient(100deg, transparent 0, var(--hl) 2%, var(--hl) 97%, transparent 100%) no-repeat 0 62% / 100% 58%; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .08em; }
html.js-ready .hero mark.hl { animation: highlight .9s .45s cubic-bezier(.6, .1, .3, 1) both; }
@keyframes highlight { from { background-size: 0% 58%; } }

/* ------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgb(255 255 255 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.site-header__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--hl); font-size: 1.15rem; }

.nav__list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__list a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; color: var(--muted); transition: color .2s, background .2s; }
.nav__list a:hover { color: var(--fg); background: var(--tint); }
.nav__list a[aria-current] { color: var(--fg); background: linear-gradient(transparent 60%, var(--hl) 60% 90%, transparent 90%); border-radius: 0; }

.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform .3s, top .3s; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 920px) {
  .menu-btn { display: block; }
  .nav__list { position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; padding: 8px 20px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  .nav__list.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list a { padding: 14px 4px; border-radius: 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--fg); border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) { .hide-sm { display: none !important; } .brand { font-size: 1.1rem; } }

/* ----------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; background: transparent; color: var(--fg); font-weight: 700; font-size: 1.02rem; text-decoration: none; white-space: nowrap; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-2); box-shadow: 0 10px 24px -10px rgb(29 43 100 / .6); }
.btn--line { border-color: var(--line); }
.btn--line:hover { border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1.06rem; }
.btn--block { width: 100%; }
