/* UttaraPedia Global — a small, readable editorial layout; no remote fonts. */
body.gg-page {
  --gg-paper: #fcfaf5;
  --gg-card: #fffefb;
  --gg-ink: #253a30;
  --gg-green: #194a37;
  --gg-muted: #59685e;
  --gg-border: #d6ded2;
  --gg-tint: #edf2e7;
  --gg-rust: #92522d;
  margin: 0;
  color: var(--gg-ink);
  background: var(--gg-paper);
  font: 400 17px/1.72 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}
.gg-page *, .gg-page *::before, .gg-page *::after { box-sizing: border-box; }
.gg-page [hidden] { display: none !important; }
.gg-page img { display: block; max-width: 100%; height: auto; }
.gg-page a { color: var(--gg-green); text-underline-offset: .2em; }
.gg-page a:hover { color: var(--gg-rust); }
.gg-page :focus-visible { outline: 3px solid #aa5b2c; outline-offset: 4px; }
.gg-page p { margin: 0 0 1.1em; }
.gg-page :is(h1, h2, h3) { color: #153f2f; line-height: 1.2; overflow-wrap: anywhere; }
.gg-page h1 { font: 500 clamp(2.1rem, 4.1vw, 3.65rem)/1.13 Georgia, "Times New Roman", serif; letter-spacing: -.025em; margin: .2em 0 .48em; }
.gg-page h2 { font: 500 clamp(1.65rem, 2.6vw, 2.15rem)/1.25 Georgia, "Times New Roman", serif; letter-spacing: -.018em; margin: 1.6em 0 .65em; }
.gg-page h3 { font-size: 1.18rem; margin: 1.2em 0 .5em; }
.gg-page :is(button, input, select, textarea) { font: inherit; }
.gg-page :is(button, .ug-button) { min-height: 44px; }
.gg-page button { cursor: pointer; }
.gg-page :is(button, .ug-button, summary, .gg-card) { -webkit-tap-highlight-color: #194a3722; }
.gg-page :is(ul, ol) { padding-inline-start: 1.35em; }
.gg-page li { margin: .4em 0; }
.gg-page :is(.ug-mast, .ug-main, .ug-footer) { width: 100%; max-width: 1184px; margin-inline: auto; }
.gg-page .ug-mast { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 32px 18px; border-bottom: 1px solid var(--gg-border); }
.gg-page .ug-brand { flex: 0 0 auto; font: 700 29px/1.2 Georgia, serif; letter-spacing: -.8px; color: var(--gg-green); text-decoration: none; }
.gg-page .ug-brand span { display: block; margin-top: 5px; font: 600 10px/1.5 system-ui, sans-serif; letter-spacing: 1.25px; }
.gg-page .ug-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0 18px; font-size: 13px; line-height: 1.4; font-weight: 650; max-width: 720px; }
.gg-page .ug-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.gg-page .ug-main { padding: 0 32px 34px; }
.gg-page .ug-skip { position: absolute; top: -100px; left: 12px; z-index: 100; padding: 10px 16px; color: var(--gg-green); background: #fff; border: 2px solid currentColor; }
.gg-page .ug-skip:focus { top: 10px; }
.gg-page .ug-crumb { margin: 22px 0 4px; font-size: 13px; color: var(--gg-muted); }
.gg-page .ug-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 38px 0 30px; }
.gg-page .ug-hero > * { min-width: 0; }
.gg-page .ug-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.8rem); }
.gg-page .ug-kicker { color: var(--gg-rust); font-size: 11px; font-weight: 750; line-height: 1.5; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 12px; }
.gg-page :is(.ug-lead, .gg-intro) { color: var(--gg-muted); font-size: clamp(1.06rem, 1.6vw, 1.2rem); line-height: 1.68; max-width: 900px; }
.gg-page :is(.ug-article-head, .ug-course-head) { padding: 30px 0 14px; }
.gg-page :is(.ug-meta, .gg-meta) { color: var(--gg-muted); font-size: 13px; line-height: 1.6; margin: 12px 0 16px; }
.gg-page :is(.ug-actions, .gg-actions) { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin: 20px 0 4px; }
.gg-page :is(.ug-button, .gg-actions button, [data-gg-complete], .gg-quiz button[type="submit"]) { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 44px; padding: 10px 18px; border: 1px solid var(--gg-green); border-radius: 7px; background: var(--gg-green); color: #fff; font: 650 14px/1.45 system-ui, sans-serif; text-align: center; text-decoration: none; white-space: normal; }
.gg-page :is(.ug-button, .gg-actions button, [data-gg-complete], .gg-quiz button[type="submit"]):hover { background: #286047; color: #fff; }
.gg-page [data-gg-complete][aria-pressed="true"] { background: #e5eedf; color: #184b34; border-color: #9bb18c; }
.gg-page :is([data-gg-reset], [data-gg-speak], .ug-copy) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 13px; border: 1px solid #b8c6b1; border-radius: 6px; background: #f4f6ee; color: #244f38; font-size: 13px; line-height: 1.5; }
.gg-page :is([data-gg-reset], [data-gg-speak], .ug-copy):hover { background: #e7eedf; }
.gg-page :is(.gg-section, .ug-intro) { margin-block: 30px; }
.gg-page .gg-section > h2:first-child { margin-top: 0; }
.gg-page .ug-intro { border-block: 1px solid var(--gg-border); padding-block: 22px; }
.gg-page .ug-intro h2 { margin-top: 0; }
.gg-page :is(.gg-country-grid, .gg-language-grid, .gg-article-grid, .ug-grid) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gg-page .gg-language-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gg-page :is(.gg-card, .ug-card) { min-width: 0; display: flex; flex-direction: column; align-items: stretch; border: 1px solid var(--gg-border); border-radius: 11px; background: var(--gg-card); color: var(--gg-ink); text-decoration: none; overflow: hidden; transition: border-color .15s ease, background-color .15s ease; }
.gg-page :is(.gg-card, .ug-card):hover { border-color: #8ba282; background: #f3f6ed; }
.gg-page .gg-card > img, .gg-page .gg-card > picture > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gg-page .gg-card > :is(div, article) { padding: 16px 19px 18px; }
.gg-page .gg-card :is(h2, h3) { font: 600 1.22rem/1.3 Georgia, serif; margin: 0 0 10px; }
.gg-page .gg-card p { font-size: 14px; line-height: 1.65; color: var(--gg-muted); margin-bottom: 12px; }
.gg-page .gg-card > :is(h2, h3) { margin: 18px 19px 10px; }
.gg-page .gg-card > p { margin-inline: 19px; }
.gg-page .gg-card > span { margin: auto 19px 18px; padding-top: 8px; font-size: 13px; font-weight: 700; }
.gg-page .gg-card > small { margin: 0 19px 14px; font-size: 12px; color: var(--gg-muted); }
.gg-page .ug-card { padding: 21px; }
.gg-page .ug-card :is(h2, h3) { font: 600 1.3rem/1.3 Georgia, serif; margin: 0 0 12px; }
.gg-page .ug-card p { font-size: 15px; line-height: 1.65; color: var(--gg-muted); }
.gg-page .ug-card > span { margin-top: auto; font-size: 13px; font-weight: 700; }
.gg-page :is(.gg-figure, .ug-photo) { margin: 0; min-width: 0; }
.gg-page :is(.gg-figure, .ug-photo) img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: #e3e8df; }
.gg-page :is(.gg-figure, .ug-photo) figcaption { color: var(--gg-muted); font-size: 12px; line-height: 1.65; padding: 9px 1px 0; overflow-wrap: anywhere; }
.gg-page :is(.gg-figure, .ug-photo) figcaption small { display: block; margin-top: 3px; font-size: 11px; }
.gg-page :is(.gg-article-body, .ug-prose) { width: 100%; max-width: 780px; margin-inline: auto; font-size: 18px; line-height: 1.85; }
.gg-page .gg-article-body > .gg-figure { margin: 26px 0; }
.gg-page .gg-article-body h2 { scroll-margin-top: 20px; }
.gg-page :is(.gg-toc, .gg-country-note, .gg-consult, .ug-note, .ug-learning-promo) { background: var(--gg-tint); border: 1px solid var(--gg-border); border-radius: 10px; padding: 22px 25px; margin-block: 26px; }
.gg-page :is(.gg-toc, .gg-country-note, .gg-consult, .ug-note, .ug-learning-promo) > :is(h2, h3):first-child { margin-top: 0; }
.gg-page :is(.gg-toc, .gg-country-note, .gg-consult, .ug-note) > :last-child { margin-bottom: 0; }
.gg-page .gg-country-note { border-inline-start: 4px solid #78966a; font-size: 15px; }
.gg-page .gg-toc { font-size: 15px; }
.gg-page .gg-toc li { margin: .5em 0; }
.gg-page .gg-toc :is(h2, h3) { font: 700 16px/1.4 system-ui, sans-serif; }
.gg-page .gg-checklist { padding-inline-start: 1.25em; }
.gg-page .gg-checklist li { padding-inline-start: .2em; margin: .7em 0; }
.gg-page .gg-subnav { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 17px; border-block: 1px solid var(--gg-border); padding-block: 6px; margin-block: 20px; font-size: 14px; }
.gg-page .gg-subnav a { display: inline-flex; align-items: center; min-height: 44px; }
.gg-page .gg-lesson-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 22px; }
.gg-page .gg-lesson-list > li { min-width: 0; margin: 0; }
.gg-page .gg-lesson-list > li > a { height: 100%; }
.gg-page .gg-is-complete { border-inline-start: 5px solid #628749; }
.gg-page .gg-is-complete::after { content: "✓"; align-self: flex-end; margin: -8px 16px 12px; font: 700 19px/1 system-ui, sans-serif; color: #326538; }
.gg-page [data-gg-progress] { color: #325739; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gg-page :is([data-gg-status], .ug-status, [data-gg-audio-note]) { font-size: 13px; line-height: 1.65; color: var(--gg-muted); }
.gg-page .gg-phrase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-block: 22px; }
.gg-page .gg-phrase { min-width: 0; padding: 21px 22px; border: 1px solid var(--gg-border); border-radius: 10px; background: var(--gg-card); }
.gg-page .gg-phrase > :last-child { margin-bottom: 0; }
.gg-page .gg-hindi { color: #194a37; font-size: clamp(1.45rem, 2.4vw, 1.8rem); font-weight: 650; line-height: 1.65; margin-bottom: 5px; }
.gg-page .gg-roman { color: #5d584a; font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.gg-page .gg-native-pronunciation { color: #354f40; border-inline-start: 3px solid #b8c9a6; padding-inline-start: 11px; margin-top: 12px; font-size: 14px; line-height: 1.7; }
.gg-page .gg-native-pronunciation :is(small, strong) { display: block; font-size: 12px; margin-bottom: 4px; }
.gg-page .gg-phrase details { border-top: 1px solid #e0e5db; padding-top: 8px; margin-top: 14px; }
.gg-page .gg-phrase summary { cursor: pointer; min-height: 44px; padding-block: 9px; color: #24563a; font-size: 14px; font-weight: 650; }
.gg-page .gg-phrase details p { margin: 7px 0 4px; }
.gg-page .gg-phrase .gg-actions { margin-top: 14px; gap: 8px; }
.gg-page .gg-quiz { max-width: 780px; padding: 23px 26px; margin-block: 28px; border: 1px solid #bccdad; border-radius: 11px; background: #f0f4e9; }
.gg-page .gg-quiz fieldset { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }
.gg-page .gg-quiz legend { width: 100%; font-weight: 650; line-height: 1.55; margin-bottom: 12px; }
.gg-page .gg-quiz > h2 { margin-top: 0; }
.gg-page .gg-quiz label { display: flex; align-items: flex-start; gap: 11px; min-height: 44px; padding: 11px 13px; margin-block: 8px; border: 1px solid #d0dac7; border-radius: 7px; background: #fffefb; font-size: 15px; line-height: 1.6; cursor: pointer; }
.gg-page .gg-quiz label:has(input:checked) { border-color: #60884b; background: #e8f0e0; }
.gg-page .gg-quiz input[type="radio"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; accent-color: #285738; }
.gg-page [data-gg-feedback] { margin: 16px 0 0; font-size: 15px; line-height: 1.7; }
.gg-page [data-gg-feedback]:empty { margin: 0; }
.gg-page .gg-correct { color: #235d2b; }
.gg-page .gg-incorrect { color: #8a4027; }
.gg-page :is(.ug-sources, .ug-contact-box) { margin-top: 30px; padding-top: 17px; border-top: 1px solid var(--gg-border); font-size: 14px; }
.gg-page .ug-sources h2 { font: 700 16px/1.4 system-ui, sans-serif; margin-top: 0; }
.gg-page .ug-sources a { overflow-wrap: anywhere; }
.gg-page .ug-lesson-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 22px; padding-block: 17px; margin-top: 24px; border-top: 1px solid var(--gg-border); font-size: 14px; }
.gg-page .ug-lesson-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.gg-page .ug-footer { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; padding: 20px 32px 24px; border-top: 1px solid var(--gg-border); font-size: 13px; line-height: 1.65; }
.gg-page .ug-footer .ug-brand { font-size: 23px; }
.gg-page .ug-footer p { color: var(--gg-muted); margin: 8px 0 0; max-width: 540px; }
.gg-page .ug-footer nav { display: flex; flex-flow: row wrap; gap: 0 18px; align-items: center; max-width: 500px; }
.gg-page .ug-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* Compact only UttaraPedia's identified primary navigation. */
body[data-up-navigation] #primary-nav > a,
body[data-up-navigation] #primary-nav .up-mega > summary { font-size: 14px; min-height: 44px; }
@media (min-width: 1100px) {
  body[data-up-navigation] .up-mast #primary-nav,
  body[data-up-navigation] .up-mast #primary-nav.open { gap: 14px; }
}
@media (max-width: 900px) {
  .gg-page .ug-mast { display: block; }
  .gg-page .ug-nav { justify-content: flex-start; max-width: none; margin-top: 11px; }
  .gg-page .ug-hero { gap: 27px; }
  .gg-page :is(.gg-country-grid, .gg-language-grid, .gg-article-grid, .ug-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .gg-page .ug-hero { grid-template-columns: 1fr; padding-block: 28px 24px; }
  .gg-page .ug-hero .gg-figure { max-width: 620px; }
  .gg-page .gg-phrase-grid { grid-template-columns: 1fr; }
  .gg-page :is(.ug-article-head, .ug-course-head) { padding-top: 23px; }
}
@media (max-width: 540px) {
  body.gg-page { font-size: 16px; }
  .gg-page .ug-mast { padding: 18px 16px 12px; }
  .gg-page .ug-main { padding: 0 16px 25px; }
  .gg-page .ug-brand { font-size: 28px; }
  .gg-page .ug-nav { gap: 0 15px; font-size: 12px; }
  .gg-page .ug-hero h1 { font-size: clamp(2rem, 8vw, 2.65rem); }
  .gg-page :is(.gg-country-grid, .gg-language-grid, .gg-article-grid, .gg-lesson-list, .ug-grid) { grid-template-columns: 1fr; gap: 16px; }
  .gg-page :is(.gg-toc, .gg-country-note, .gg-consult, .ug-note, .ug-learning-promo, .gg-quiz) { padding: 19px 17px; margin-block: 22px; }
  .gg-page .gg-phrase { padding: 19px 17px; }
  .gg-page :is(.gg-article-body, .ug-prose) { font-size: 17px; line-height: 1.82; }
  .gg-page .gg-quiz label { padding: 10px; }
  .gg-page .ug-footer { padding: 18px 16px 21px; gap: 13px; }
  .gg-page .ug-footer nav { gap: 0 16px; }
  .gg-page .ug-footer p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gg-page *, .gg-page *::before, .gg-page *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
