:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --blue: #1b5fa8;
  --blue-light: #e8f0f9;
  --saffron: #e8741a;
  --green: #2a7f62;
  --ink: #1d2733;
  --muted: #5b6776;
  --line: #d9e0e8;
  --paper: #ffffff;
  --wash: #eaf0f7;
  /* a touch deeper so white cards stand out on alternate sections */
  --alert-bg: #fff4d6;
  --radius: 6px;
  --max: 1200px;
  --nav-h: 53px;
  /* height of the sticky main menu; the sticky sub-bar sits right under it */
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
  top: 0;
  text-decoration: none;
}

/* ---------- Alert strip ---------- */
.alert-strip {
  background: var(--alert-bg);
  border-bottom: 1px solid #ecd9a0;
  font-size: .92rem;
}

.alert-strip .wrap {
  padding-top: 8px;
  padding-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.alert-strip p {
  margin: 0;
}

.alert-strip strong {
  color: #7a4b00;
}

/* ---------- Identity bar ---------- */
.identity {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.identity .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

.brand img.emblem {
  height: 54px;
  width: auto;
}

.brand img.vedas {
  height: 48px;
  width: auto;
}

.brand-text {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.brand-text strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.25;
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.3;
  max-width: 36ch;
}

.partners {
  display: flex;
  align-items: center;
  gap: 18px;
}

.partners img {
  height: 52px;
  width: auto;
}

/* ---------- Navigation ---------- */
/* The header wrapper must not be the sticky container: if it is, the menu scrolls away with it
   and the sticky sub-bar below is left floating with a gap above it. display:contents makes
   the menu stick relative to the whole page instead. */
.header {
  display: contents;
}

.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--nav-h);
}

.nav-toggle {
  display: none;
}

.nav-burger {
  display: none;
  cursor: pointer;
  color: #fff;
  padding: 12px 0;
  font-weight: 600;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.nav-list>li {
  position: relative;
}

.nav-list>li>a,
.nav-list>li>.nav-label {
  display: block;
  color: #fff;
  padding: 14px 12px;
  font-weight: 600;
  font-size: .95rem;
  cursor: default;
  white-space: nowrap;
}

.nav-list>li>a {
  cursor: pointer;
}

.nav-list>li>a:hover,
.nav-list>li:hover>.nav-label,
.nav-list>li:focus-within>.nav-label {
  background: var(--navy-2);
  text-decoration: none;
}

.nav-label::after {
  content: "";
  display: inline-block;
  margin-left: 8px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 120;
  background: #fff;
  border-top: 3px solid var(--saffron);
  box-shadow: 0 12px 28px rgba(11, 37, 69, .22);
  min-width: 280px;
  padding: 10px 0;
}

.menu a {
  display: block;
  padding: 8px 20px;
  color: var(--ink);
  font-size: .93rem;
}

.menu a:hover {
  background: var(--blue-light);
  color: var(--navy);
  text-decoration: none;
}

.has-menu:hover>.menu,
.has-menu:focus-within>.menu {
  display: block;
}

.menu.mega {
  display: none;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 0 8px;
  min-width: 780px;
  padding: 16px 12px;
}

.has-menu:hover>.menu.mega,
.has-menu:focus-within>.menu.mega {
  display: grid;
}

.menu .menu-head {
  padding: 6px 20px;
  font-weight: 700;
  color: var(--navy);
  font-size: .85rem;
}

.menu.align-right {
  left: auto;
  right: 0;
}

.nav-search {
  display: flex;
}

.nav-search input {
  border: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 7px 12px;
  width: 150px;
  font: inherit;
  font-size: .9rem;
}

.nav-search button {
  border: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--saffron);
  color: #fff;
  padding: 7px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 4px solid var(--saffron);
  background:
    /* keeps the text side dark and readable */
    linear-gradient(90deg, rgba(4, 16, 34, .85) 0%, rgba(4, 16, 34, .35) 55%, transparent 100%),
    /* stars: two sizes, tiled */
    radial-gradient(1px 1px at 25px 40px, rgba(255, 255, 255, .85), transparent),
    radial-gradient(1px 1px at 110px 120px, rgba(255, 255, 255, .55), transparent),
    radial-gradient(1.5px 1.5px at 190px 30px, rgba(255, 255, 255, .80), transparent),
    radial-gradient(1px 1px at 270px 160px, rgba(255, 255, 255, .50), transparent),
    radial-gradient(2px 2px at 330px 90px, rgba(190, 220, 255, .70), transparent),
    /* nebula glows */
    radial-gradient(900px 420px at 88% 10%, rgba(27, 95, 168, .55), transparent 70%),
    radial-gradient(600px 300px at 10% 110%, rgba(42, 127, 98, .30), transparent 70%),
    linear-gradient(160deg, #04122a 0%, var(--navy) 55%, #0f3566 100%);
  background-size: auto, 347px 211px, 347px 211px, 347px 211px, 347px 211px, 347px 211px, auto, auto, auto;
}

/* Earth limb, bottom right: thin bright rim, layered atmosphere, faint saffron sunrise glint */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 1300px;
  height: 1300px;
  border-radius: 50%;
  right: -250px;
  bottom: -1020px;
  background:
    radial-gradient(1.5px 1.5px at 60px 40px, rgba(255, 214, 130, .55), transparent),
    radial-gradient(1.5px 1.5px at 150px 85px, rgba(255, 214, 130, .40), transparent),
    radial-gradient(1px 1px at 210px 30px, rgba(255, 214, 130, .50), transparent),
    radial-gradient(ellipse 22% 7% at 30% 0%, rgba(255, 170, 90, .30), transparent 80%),
    radial-gradient(circle at 50% 0%, rgba(70, 150, 235, .55) 0%, #0e3466 15%, #071f3f 40%, #050f22 72%);
  background-size: 260px 120px, 260px 120px, 260px 120px, auto, auto;
  background-repeat: repeat-x, repeat-x, repeat-x, no-repeat, no-repeat;
  box-shadow:
    inset 0 2px 1px rgba(205, 232, 255, .85),
    inset 0 16px 34px -12px rgba(80, 160, 240, .55),
    0 -2px 5px rgba(150, 205, 255, .65),
    0 -20px 60px 4px rgba(70, 150, 235, .32),
    0 -70px 160px 10px rgba(40, 110, 200, .18);
}

/* faint latitude / longitude graticule on the surface, fading out away from the limb */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 1300px;
  height: 1300px;
  border-radius: 50%;
  right: -250px;
  bottom: -1020px;
  background:
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(140, 195, 255, .10) 0 .22deg, transparent .22deg 4.5deg),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 62px, rgba(140, 195, 255, .10) 62px 63px);
  -webkit-mask-image: radial-gradient(ellipse 58% 20% at 50% 0%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 58% 20% at 50% 0%, #000 0%, transparent 100%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  padding-bottom: 60px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.8vw, 3.3rem);
  letter-spacing: -.015em;
  max-width: 18ch;
  margin-bottom: .4em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

/* small label above the title (decorative) */
.hero h1::before {

  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffc58f;
  background: rgba(232, 116, 26, .14);
  border: 1px solid rgba(232, 116, 26, .45);
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
  text-shadow: none;
}

.hero p.lede {
  font-size: 1.14rem;
  line-height: 1.65;
  max-width: 56ch;
  color: #d5e2f2;
  margin-bottom: 1.8em;
}

.hero-search {
  display: flex;
  max-width: 580px;
  margin-bottom: 44px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .40);
  border-radius: 10px;
}

.hero-search input {
  flex: 1;
  border: 0;
  padding: 15px 18px;
  font: inherit;
  border-radius: 10px 0 0 10px;
}

.hero-search button {
  border: 0;
  background: var(--saffron);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0 28px;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
  transition: background .2s;
}

.hero-search button:hover {
  background: #c85f0d;
}

.hero-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hero-link {
  display: block;
  color: #fff;
  padding: 20px 22px 18px;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .22);
  border-top: 3px solid var(--saffron);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  transition: transform .2s, background .2s, box-shadow .2s;
}

.hero-link:nth-child(2) {
  border-top-color: #5aa9ff;
}

.hero-link:nth-child(3) {
  border-top-color: #4ec39a;
}

.hero-link:hover {
  transform: translateY(-4px);
  background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .08));
  box-shadow: 0 16px 34px rgba(0, 0, 0, .38);
  text-decoration: none;
}

.hero-link strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.hero-link strong::after {
  content: "\2192";
  display: inline-block;
  margin-left: 8px;
  transition: transform .2s;
}

.hero-link:hover strong::after {
  transform: translateX(5px);
}

.hero-link span {
  font-size: .93rem;
  color: #d5e2f2;
}

@media (max-width: 900px) {
  .hero::before {
    width: 900px;
    height: 900px;
    right: -300px;
    bottom: -700px;
  }

  .hero::after {
    width: 900px;
    height: 900px;
    right: -300px;
    bottom: -700px;
  }

  .hero h1::before {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-link,
  .hero-link strong::after {
    transition: none;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 56px 0;
}

.section.alt {
  background: var(--wash);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 1.85rem;
  margin: 0;
}

.section-intro {
  color: var(--muted);
  max-width: 70ch;
  margin: 6px 0 0;
}

.more-link {
  font-weight: 600;
}

/* ---------- Topic grid ---------- */
.topics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topic a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 12px;
  color: var(--navy);
  font-weight: 600;
  height: 100%;
}

.topic a:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 16px rgba(11, 37, 69, .12);
  text-decoration: none;
}

.topic .ico {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-light);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  line-height: 1;
}

/* ---------- Article cards ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card .thumb {
  aspect-ratio: 16 / 9;
  background: var(--blue-light);
  overflow: hidden;
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.tag {
  background: var(--navy);
  color: #fff;
  padding: 2px 10px;
  border-radius: 99px;
  font-weight: 600;
  font-size: .78rem;
}

.tag.award {
  background: var(--saffron);
}

.tag.data {
  background: var(--green);
}

.tag.webinar {
  background: var(--blue);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: .45em;
}

.card h3 a {
  color: var(--navy);
}

.card p {
  color: #3b4756;
  font-size: .96rem;
}

.card .go {
  margin-top: auto;
  font-weight: 600;
  font-size: .93rem;
}

.card.lead {
  grid-column: span 3;
  flex-direction: row;
}

.card.lead .thumb {
  flex: 0 0 52%;
  aspect-ratio: auto;
  min-height: 320px;
}

.card.lead .body {
  padding: 32px 36px;
  justify-content: center;
}

.card.lead h3 {
  font-size: 1.7rem;
}

.card.lead p {
  font-size: 1.04rem;
}

.card.lead .go {
  margin-top: 8px;
}

/* ---------- Featured applications ---------- */
.apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.app a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--navy);
  height: 100%;
}

.app a:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 16px rgba(11, 37, 69, .12);
  text-decoration: none;
}

.app .thumb {
  aspect-ratio: 4 / 3;
  background: var(--blue-light);
}

.app .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app span {
  display: block;
  padding: 12px 14px 14px;
  font-weight: 600;
  font-size: .96rem;
  line-height: 1.35;
}

/* ---------- Tools (software) ---------- */
.tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tool {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tool .thumb {
  aspect-ratio: 16 / 9;
  background: var(--blue-light);
}

.tool .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool .body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tool h3 {
  font-size: 1.12rem;
}

.tool p {
  font-size: .95rem;
  color: #3b4756;
}

.tool .links {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  font-size: .93rem;
}

.size {
  color: var(--muted);
  font-weight: 400;
  font-size: .85rem;
}

/* ---------- Numbers ---------- */
.numbers {
  background: var(--navy);
  color: #fff;
}

.numbers h2 {
  color: #fff;
}

.numbers .section-intro {
  color: #c5d3e4;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.stat {
  border-left: 3px solid var(--saffron);
  padding-left: 16px;
}

.stat b {
  display: block;
  font-size: 2.2rem;
  line-height: 1.1;
  color: #fff;
}

.stat span {
  color: #c5d3e4;
  font-size: .95rem;
}

/* ---------- Announcements ---------- */
.new {
  /* color: #b3410a; */
  font-weight: 700;
  font-size: .85rem;
}

.older {
  text-align: center;
  margin-top: 36px;
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
}

.btn:hover {
  background: var(--navy-2);
  text-decoration: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0a1f3a;
  color: #c9d6e6;
}

.site-footer a {
  color: #e5edf7;
}

.site-footer .cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 48px 24px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.site-footer h2 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: .8em;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 6px;
  font-size: .93rem;
}

.site-footer address {
  font-style: normal;
  font-size: .93rem;
}

.social {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}

.social img {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: #fff;
}

.gov-logos {
  background: linear-gradient(180deg, #0b2545 0%, #061a36 100%);
  border-top: 1px solid #3b3b5c;
}

.gov-logos .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 34px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.gov-logos img {
  height: 44px;
  width: auto;
}

.legal {
  padding: 20px 24px 28px;
  max-width: var(--max);
  margin: 0 auto;
  font-size: .85rem;
  color: #9fb1c8;
}

.legal p {
  margin-bottom: .4em;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--saffron);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

.to-top:hover {
  text-decoration: none;
  background: #c85f0d;
}

/* hidden until the page is scrolled (the script adds .to-top-ready; without JS the button simply stays visible) */
.to-top.to-top-ready {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}

.to-top.to-top-ready.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity .25s ease, transform .25s ease, visibility 0s;
}

@media (prefers-reduced-motion: reduce) {

  .to-top.to-top-ready,
  .to-top.to-top-ready.is-visible {
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .topics {
    grid-template-columns: repeat(3, 1fr);
  }

  .apps {
    grid-template-columns: repeat(3, 1fr);
  }

  .menu.mega {
    min-width: 640px;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {

  /* .identity .wrap { flex-wrap: wrap; } */
  .brand-text span {
    display: none;
  }

  .news-grid,
  .tools {
    grid-template-columns: repeat(2, 1fr);
  }

  .card.lead {
    grid-column: span 2;
    flex-direction: column;
  }

  .card.lead .thumb {
    flex: none;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .hero-links {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer .cols {
    grid-template-columns: 1fr 1fr;
  }

  .nav-burger {
    display: block;
  }

  .site-nav .wrap {
    flex-wrap: wrap;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
  }

  .nav-toggle:checked~.nav-list {
    display: flex;
  }

  .nav-search {
    width: 100%;
    padding-bottom: 12px;
  }

  .nav-search input {
    flex: 1;
    width: auto;
  }

  .nav-list>li>a,
  .nav-list>li>.nav-label {
    padding: 12px 0;
  }

  .menu,
  .menu.mega {
    position: static;
    display: block;
    box-shadow: none;
    border-top: 0;
    min-width: 0;
    padding: 0 0 8px 14px;
    background: transparent;
  }

  .menu.mega {
    display: block;
  }

  .has-menu:hover>.menu.mega,
  .has-menu:focus-within>.menu.mega {
    display: block;
  }

  .menu a {
    color: #dbe6f3;
    padding: 6px 0;
  }

  .menu a:hover {
    background: transparent;
    color: #fff;
  }

  .menu .menu-head {
    color: #fff;
    padding: 8px 0 2px;
  }

  .nav-label::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .topics {
    grid-template-columns: repeat(2, 1fr);
  }

  .apps {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid,
  .tools {
    grid-template-columns: 1fr;
  }

  .card.lead {
    grid-column: span 1;
  }

  .partners {
    display: flex;
    flex-direction: column;
  }

  .site-footer .cols {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .hero .wrap {
    padding-top: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}



/* nav: current page */
.nav-list>li>a.is-active {
  background: var(--navy-2);
  box-shadow: inset 0 -3px 0 var(--saffron);
}

/* ==========================================================
   Inner pages (Downloads)
   ========================================================== */
.page-head {
  position: relative;
  overflow: hidden;
  color: #fff;
  /* starfield + soft blue glow + deep-space gradient */
  background:
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, .80), transparent),
    radial-gradient(1px 1px at 95px 85px, rgba(255, 255, 255, .55), transparent),
    radial-gradient(1.5px 1.5px at 165px 22px, rgba(255, 255, 255, .70), transparent),
    radial-gradient(1px 1px at 235px 112px, rgba(255, 255, 255, .50), transparent),
    radial-gradient(700px 320px at 92% 130%, rgba(27, 95, 168, .55), transparent 70%),
    linear-gradient(135deg, #061a33 0%, var(--navy) 55%, var(--navy-2) 100%);
  background-size: 263px 141px, 263px 141px, 263px 141px, 263px 141px, auto, auto;
  border-bottom: 4px solid var(--saffron);
}

/* orbit rings on the right + a small "satellite" dot */
.page-head::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, .025), 0 0 0 61px rgba(255, 255, 255, .09),
    0 0 0 130px rgba(255, 255, 255, .015), 0 0 0 131px rgba(255, 255, 255, .06);
  pointer-events: none;
}

.page-head::after {
  content: "";
  position: absolute;
  top: 95px;
  left: calc(100% - 405px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 4px rgba(232, 116, 26, .25), 0 0 18px 4px rgba(232, 116, 26, .55);
  pointer-events: none;
}

.page-head .wrap {
  position: relative;
  z-index: 1;
  padding-top: 26px;
  padding-bottom: 42px;
}

.crumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .88rem;
  margin: 0 0 22px;
  padding: 5px 14px;
  width: fit-content;
  list-style: none;
  color: #c5d3e4;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 99px;
}

.crumbs li+li::before {
  content: "/";
  margin-right: 8px;
  color: #7f95b3;
}

.crumbs a {
  color: #fff;
}

.page-head h1 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 2.8rem);
  letter-spacing: -.01em;
  margin-bottom: .35em;
}

.page-head h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--saffron);
  margin-top: 14px;
}

.page-head p {
  color: #cfdcee;
  max-width: 62ch;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
}

@media (max-width: 600px) {

  .page-head::before,
  .page-head::after {
    display: none;
  }
}

.jump {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: calc(var(--nav-h) - 1px);
  z-index: 50;
}

.jump .wrap {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.jump a {
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--navy);
  font-weight: 600;
  font-size: .92rem;
}

.jump a:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  text-decoration: none;
}

.jump .count {
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}

.dl-section {
  padding: 44px 0 8px;
  scroll-margin-top: 120px;
}

.dl-section .section-head {
  margin-bottom: 20px;
}

.dl-section h2 {
  font-size: 1.6rem;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.dl-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 6px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  scroll-margin-top: 120px;
}

.dl-card:target {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(232, 116, 26, .25);
}

.dl-card.is-new {
  border-left: 4px solid var(--saffron);
}

.file-badge {
  width: 64px;
  height: 76px;
  border-radius: 6px;
  background: var(--blue-light);
  border: 1px solid #c6d8ee;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--navy);
  font-weight: 800;
  font-size: .95rem;
  position: relative;
}

.file-badge::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 16px;
  height: 16px;
  background: linear-gradient(225deg, #fff 50%, #c6d8ee 50%);
  border-bottom-left-radius: 4px;
}

.file-badge.apk {
  background: #e6f4ee;
  border-color: #bfe0d1;
  color: #1f6a52;
}

.file-badge.apk::before {
  background: linear-gradient(225deg, #fff 50%, #bfe0d1 50%);
}

.file-badge small {
  font-weight: 600;
  font-size: .7rem;
  opacity: .8;
}

.dl-body h3 {
  font-size: 1.12rem;
  margin: 0 0 .35em;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.dl-desc {
  color: #3b4756;
  font-size: .94rem;
  margin-bottom: 10px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.chip {
  background: var(--wash);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 99px;
  padding: 1px 10px;
  font-size: .82rem;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
}

.btn-dl:hover {
  background: var(--navy-2);
  text-decoration: none;
}

.btn-dl::before {
  content: "\2193";
  font-weight: 800;
}

.btn-dl.login {
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 7px 16px;
}

.btn-dl.login::before {
  content: "\1F512";
  font-size: .85rem;
}

.btn-dl.login:hover {
  background: var(--blue-light);
}

.link-quiet {
  font-size: .92rem;
  font-weight: 600;
}

.tag.version {
  background: var(--blue);
}

.dl-note {
  background: var(--blue-light);
  border: 1px solid #c6d8ee;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 36px 0 56px;
  font-size: .94rem;
  color: #23415f;
}

.dl-note strong {
  color: var(--navy);
}

@media (max-width: 900px) {
  .dl-grid {
    grid-template-columns: 1fr;
  }

  .jump {
    position: static;
  }
}

@media (max-width: 480px) {
  .dl-card {
    grid-template-columns: 1fr;
  }

  .file-badge {
    width: 56px;
    height: 64px;
  }
}


/* ==========================================================
   Home icon in the main menu (shown on inner pages)
   ========================================================== */
.nav-list>li>a.nav-home {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px;
}

.nav-home svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-home .home-text {
  display: none;
}

.nav-list>li>a.nav-home:hover {
  background: var(--navy-2);
}

/* ==========================================================
   Article filter ("New on VEDAS")
   ========================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
}

.filter-bar[hidden] {
  display: none;
}

.filter-label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--muted);
  margin-right: 4px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 16px;
}

.filter-chip:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}

.filter-chip .count {
  font-weight: 400;
  color: var(--muted);
  font-size: .82rem;
}

.filter-chip[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.filter-chip[aria-pressed="true"] .count {
  color: #c5d3e4;
}

.card[hidden] {
  display: none;
}

.filter-empty {
  text-align: center;
  color: var(--muted);
  padding: 32px 0;
}

.tag.event {
  background: #6d3fa3;
}

@media (max-width: 900px) {
  .nav-home .home-text {
    display: inline;
  }

  .nav-list>li>a.nav-home {
    padding: 12px 0;
  }
}


/* ==========================================================
   v3: unified navy look for the home page
   ========================================================== */
.section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--saffron);
  margin-top: 12px;
}

/* nav: current page (works for links and for the About Us group label) */
.nav-list>li>a.is-active,
.nav-list>li>.nav-label.is-active {
  background: var(--navy-2);
  box-shadow: inset 0 -3px 0 var(--saffron);
}

/* ---------- Announcements: flows out of the hero ---------- */
.announce-band {
  position: relative;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  /* background: linear-gradient(180deg, #0f3566 0%, var(--navy-2) 100%); */
  background: radial-gradient(1px 1px at 25px 40px, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1.5px 1.5px at 190px 30px, rgba(255, 255, 255, .6), transparent),
    radial-gradient(1px 1px at 270px 160px, rgba(255, 255, 255, .4), transparent),
    radial-gradient(900px 380px at 90% 0%, rgba(27, 95, 168, .45), transparent 70%),
    radial-gradient(600px 300px at 5% 100%, rgba(42, 127, 98, .22), transparent 70%),
    linear-gradient(170deg, #04122a 0%, var(--navy) 55%, #0f3566 100%);
}

.announce-band .wrap {
  padding-top: 26px;
  padding-bottom: 28px;
}

.announce-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.announce-ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(232, 116, 26, .18);
  color: #ffb277;
  box-shadow: inset 0 0 0 1px rgba(232, 116, 26, .45);
}

.announce-ico svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.announce-band h2 {
  margin: 0;
  color: #fff;
  font-size: 1.3rem;
}

.announce-band h2::after {
  display: none;
}

.announce-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.announce-item {
  position: relative;
  display: flex;
  /* flex-direction: column; */
  align-items: flex-start;
  gap: 8px;
  padding: 16px 16px 14px;
  /* background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-top: 3px solid #5aa9ff;
  border-radius: 10px; */
  transition: transform .2s, background .2s;
}

.announce-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .12);
}

.announce-item:has(.new) {
  /* border-top-color: var(--saffron); */
}

.announce-item a.main {
  color: #fff;
  font-weight: 600;
  line-height: 1.4;
}

.announce-item a.main:hover {
  color: #ffd2ad;
  text-decoration: none;
}

.announce-item .meta-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  font-size: .84rem;
  color: #b9c9de;
}

.announce-item a.sub {
  color: #9fcbff;
  font-weight: 500;
}

.announce-item a.sub:hover {
  color: #fff;
}

.new {

  color: #E00000 !important;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 99px;
}

/* ---------- Article + software cards: same soft-shadow language as inner pages ---------- */
.card,
.tool {
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(11, 37, 69, .08);
  transition: transform .2s, box-shadow .2s;
}

.card:hover,
.tool:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(11, 37, 69, .14);
}

/* ---------- Featured applications: dark band that continues the header ---------- */
.apps-band {
  position: relative;
  color: #fff;
  scroll-margin-top: var(--nav-h);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1px 1px at 25px 40px, rgba(255, 255, 255, .7), transparent),
    radial-gradient(1.5px 1.5px at 190px 30px, rgba(255, 255, 255, .6), transparent),
    radial-gradient(1px 1px at 270px 160px, rgba(255, 255, 255, .4), transparent),
    radial-gradient(900px 380px at 90% 0%, rgba(27, 95, 168, .45), transparent 70%),
    radial-gradient(600px 300px at 5% 100%, rgba(42, 127, 98, .22), transparent 70%),
    linear-gradient(170deg, #04122a 0%, var(--navy) 55%, #0f3566 100%);
  background-size: 347px 211px, 347px 211px, 347px 211px, auto, auto, auto;
  border-top: 4px solid var(--saffron);
}

.apps-band h2 {
  color: #fff;
}

.apps-band .section-intro {
  color: #c5d3e4;
}

.apps-band .apps {
  gap: 18px;
}

.apps-band .app a {
  display: flex;
  flex-direction: column;
  color: #fff;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.apps-band .app a:hover {
  transform: translateY(-4px);
  border-color: var(--saffron);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .4);
}

.apps-band .app .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0b2545;
}

.apps-band .app .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 18, 42, .55));
}

.apps-band .app .thumb img {
  transition: transform .35s;
}

.apps-band .app a:hover .thumb img {
  transform: scale(1.05);
}

.apps-band .app .app-name {
  padding: 14px 16px 4px;
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.35;
  color: #fff;
}

.apps-band .app .app-go {
  margin-top: auto;
  padding: 0 16px 14px;
  font-size: .84rem;
  font-weight: 600;
  color: #ffb277;
}

.apps-band .app .app-go b {
  display: inline-block;
  transition: transform .2s;
}

.apps-band .app a:hover .app-go b {
  transform: translate(3px, -3px);
}

@media (max-width: 1100px) {
  .announce-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .announce-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {

  .announce-item,
  .card,
  .tool,
  .apps-band .app a,
  .apps-band .app .thumb img,
  .apps-band .app .app-go b {
    transition: none;
  }
}


/* ==========================================================
   v4: utility bar, whole-card links, richer menus, one colour rhythm
   Rhythm down the home page:
   dark (hero + announcements)  ->  tint (news)  ->  dark (applications)  ->  tint (software)  ->  white (numbers)  ->  dark (footer)
   Every dark band shares the same navy gradient and a saffron rule; every light band uses white cards with the same soft shadow.
   ========================================================== */

/* ---------- Utility bar (skip link, text size, theme, language) ---------- */
.util-bar {
  position: relative;
  background: #061a36;
  color: #dbe6f3;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.util-bar::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #e8741a 0 33.34%, #fff 33.34% 66.67%, #2a7f62 66.67% 100%);
}

.util-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.util-skip {
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.util-skip:hover {
  color: #ffb277;
}

.util-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.util-group {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 9px;
}

.util-btn {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: #fff;
  line-height: 1;
  font-weight: 700;
  min-width: 34px;
  height: 30px;
  padding: 0 9px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  transition: background .15s, color .15s, box-shadow .15s;
}

.util-btn:hover {
  background: rgba(255, 255, 255, .17);
}

.util-btn[aria-pressed="true"] {
  background: rgba(232, 116, 26, .28);
  box-shadow: inset 0 0 0 1px var(--saffron);
}

.util-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.text-btn {
  font-size: 1rem;
}

.text-btn[data-font="dec"] {
  font-size: .82rem;
}

.text-btn[data-font="inc"] {
  font-size: 1.18rem;
}

.text-btn sup {
  font-size: .62em;
  margin-left: 1px;
  font-weight: 800;
}

/* theme buttons mirror the old icons: white tile with dark A, black tile with yellow A */
.theme-btn {
  min-width: 36px;
}

.theme-btn span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: .86rem;
  font-weight: 800;
}

.theme-light span {
  background: #fff;
  color: var(--navy);
}

.theme-dark span {
  background: #000;
  color: #ffe600;
  box-shadow: inset 0 0 0 1px #ffe600;
}

.lang-group {
  padding-left: 8px;
}

.lang-ico {
  width: 18px;
  height: 18px;
  margin-right: 4px;
  fill: none;
  stroke: #ffb277;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lang-btn {
  min-width: 40px;
  font-size: .88rem;
}

.lang-btn[aria-pressed="true"] {
  background: var(--saffron);
  color: #fff;
  box-shadow: none;
}

/* ---------- Main menu: richer dropdowns, every row is a full-width click target ---------- */
.menu {
  border-radius: 0 0 10px 10px;
}

.menu:not(.mega) a {
  position: relative;
  transition: background .15s, padding-left .15s;
}

.menu:not(.mega) a:hover {
  box-shadow: inset 4px 0 0 var(--saffron);
  padding-left: 24px;
}

@media (min-width: 901px) {
  .menu.mega {
    gap: 4px 10px;
    padding: 18px;
    min-width: 840px;
    border-radius: 0 0 12px 12px;
  }

  .menu.mega a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 500;
    line-height: 1.35;
    transition: background .15s, border-color .15s, color .15s;
  }

  .menu.mega a::after {
    content: "\2197";
    flex: 0 0 auto;
    opacity: 0;
    color: var(--saffron);
    font-weight: 700;
    transition: opacity .15s, transform .15s;
  }

  .menu.mega a:hover,
  .menu.mega a:focus-visible {
    background: var(--blue-light);
    border-color: #c6d8ee;
    color: var(--navy);
  }

  .menu.mega a:hover::after,
  .menu.mega a:focus-visible::after {
    opacity: 1;
    transform: translate(2px, -2px);
  }
}

/* ---------- Announcements: the whole card is the link ---------- */
.announce-item {
  position: relative;
  padding-bottom: 40px;
  cursor: pointer;
}

.announce-item a.main::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
}

/* stretched link */
.announce-item .meta-line {
  position: relative;
  z-index: 2;
}

/* keeps the help-manual link separately clickable */
.announce-item:focus-within {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
}

.go-arrow {
  position: absolute;
  right: 14px;
  /* bottom: 12px; */
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .12);
  color: #ffb277;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, background .2s, color .2s, transform .2s;
}

.announce-item:hover .go-arrow,
.announce-item:focus-within .go-arrow {
  opacity: 1;
  pointer-events: auto;

  background: var(--saffron);
  color: #fff;
  transform: translate(2px, -2px);
}
/* ---------- Article cards: whole card is the link too ---------- */
.card {
  position: relative;
}

.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card .go {
  position: relative;
  z-index: 2;
}

.card:hover h3 a {
  text-decoration: underline;
}

/* ---------- Numbers: light band with the same white cards as the rest of the site ---------- */
.numbers {
  background: #fff;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.numbers h2 {
  color: var(--navy);
}

.numbers .section-intro {
  color: var(--muted);
}

.stats {
  gap: 20px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--saffron);
  border-radius: 10px;
  padding: 22px 22px 20px;
  box-shadow: 0 6px 18px rgba(11, 37, 69, .08);
}

.stat:nth-child(2) {
  border-top-color: #1b5fa8;
}

.stat:nth-child(3) {
  border-top-color: #2a7f62;
}

.stat:nth-child(4) {
  border-top-color: #0f766e;
}

.stat b {
  color: var(--navy);
  font-size: 2.4rem;
}

.stat span {
  color: var(--muted);
}

/* ---------- Footer: same saffron rule as the dark bands above it ---------- */
.site-footer {
  border-top: 4px solid var(--saffron);
  background: linear-gradient(180deg, #0b2545 0%, #061a36 100%);
}

/* ---------- Software cards: link rows get a clear hover ---------- */
.tool .links a {
  padding: 4px 0;
}

.tool .links a:hover {
  color: var(--saffron);
  text-decoration: none;
}

@media (max-width: 900px) {
  .util-inner {
    justify-content: center;
  }

  .util-controls {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .util-skip {
    font-size: .8rem;
  }

  .util-btn {
    min-width: 30px;
    padding: 0 6px;
  }

  .lang-ico {
    display: none;
  }

  .lang-group {
    padding-left: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .util-btn,
  .go-arrow,
  .menu.mega a,
  .menu.mega a::after,
  .menu:not(.mega) a {
    transition: none;
  }
}


/* ==========================================================
   v5: one dark header block that flows into the hero
   (idea: NASA Earthdata - black bar, chevron menus, search icon, glowing data-ring on the right)
   ========================================================== */
:root {
  --space: #04122a;
}

.util-bar {
  background: #020b1a;
}

/* ---------- Identity row: dark, logos sit on white chips ---------- */
.identity {
  background: var(--space);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.identity .wrap {
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 6px 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

.brand img.emblem {
  height: 48px;
}

.brand img.vedas {
  height: 44px;
}

.brand-text {
  border-left: 1px solid rgba(255, 255, 255, .22);
}

.brand-text strong {
  color: #fff;
  font-size: 1.12rem;
  letter-spacing: .005em;
}

.brand-text span {
  color: #b9c9de;
}

.partners {
  gap: 12px;
}

/* The SAC / ISRO logos are JPEGs with a solid white background. On the dark header the white is removed
   without editing the files: invert + hue-rotate flips the lightness but keeps the original hues,
   then "screen" blending makes the (now black) background vanish into the header. */
.partners img {
  height: 48px;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
  filter: invert(1) hue-rotate(180deg);
  mix-blend-mode: screen;
}

/* ---------- Main menu: same dark as the hero, saffron bar for hover / current page ---------- */
.site-nav {
  background: var(--space);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}

.nav-list>li>a,
.nav-list>li>.nav-label {
  position: relative;
  padding: 16px 14px;
  font-size: .96rem;
  letter-spacing: .005em;
  transition: background .15s, color .15s;
}

.nav-list>li>a::before,
.nav-list>li>.nav-label::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.nav-list>li>a:hover,
.nav-list>li:hover>.nav-label,
.nav-list>li:focus-within>.nav-label {
  background: rgba(255, 255, 255, .07);
}

.nav-list>li>a:hover::before,
.nav-list>li:hover>.nav-label::before,
.nav-list>li:focus-within>.nav-label::before,
.nav-list>li>a.is-active::before,
.nav-list>li>.nav-label.is-active::before {
  transform: scaleX(1);
}

.nav-list>li>a.is-active,
.nav-list>li>.nav-label.is-active {
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
}

.nav-label::after {
  width: 6px;
  height: 6px;
  margin-left: 9px;
  transition: transform .2s;
}

.has-menu:hover>.nav-label::after,
.has-menu:focus-within>.nav-label::after {
  transform: translateY(-1px) rotate(225deg);
}

.nav-list>li>a.nav-home:hover {
  background: rgba(255, 255, 255, .07);
}

.menu {
  border-top-color: var(--saffron);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .35);
}

/* ---------- Search: a plain field + button, always visible (no hover, no animation) ---------- */
.nav-search {
  display: flex;
  align-items: stretch;
  margin-left: auto;
  flex: 0 0 auto;
}

.nav-search input {
  width: 230px;
  height: 38px;
  padding: 0 14px;
  font: inherit;
  font-size: .92rem;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .35);
  /* border-right: 0; */
  border-radius: 20px;
}

.nav-search input::placeholder {
  color: #aebfd6;
}

.nav-search .search-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 38px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: var(--saffron);
  color: #fff;
  border-radius: 0 8px 8px 0;
}

.nav-search .search-toggle:hover {
  background: #c85f0d;
}

.nav-search .search-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Hero: seamless with the header, data-ring graphic on the right ---------- */
.hero {
  border-top: 0;
}

.orbit-spin {
  transform-origin: 200px 200px;
  animation: orbit-spin 140s linear infinite;
}

@keyframes orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
}

@media (prefers-reduced-motion: reduce) {
  .orbit-spin {
    animation: none;
  }

  .nav-list>li>a::before,
  .nav-list>li>.nav-label::before {
    transition: none;
  }
}

/* ---------- Phones / tablets ---------- */
@media (max-width: 900px) {
  .brand-logos {
    padding: 5px 10px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
  }

  .brand img.emblem {
    height: 40px;
  }

  .brand img.vedas {
    height: 36px;
  }

  .site-nav .wrap {
    padding-top: 4px;
  }

  .nav-list>li>a::before,
  .nav-list>li>.nav-label::before {
    display: none;
  }

  .nav-list>li>a.is-active,
  .nav-list>li>.nav-label.is-active {
    box-shadow: inset 3px 0 0 var(--saffron);
    padding-left: 10px;
  }

  .nav-search {
    width: 100%;
    margin: 0 0 12px;
  }

  .nav-search input {
    flex: 1;
    width: auto;
    min-width: 0;
  }
}

/* ==========================================================
   Mobile menu (up to 900px): clean white panel, one row per item,
   sub-menus collapsed and opened one at a time by tapping (see site-ui.js)
   ========================================================== */
@media (max-width: 900px) {

  /* menu button: three lines that turn into a cross when open */
  .nav-burger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 1rem;
    user-select: none;
  }

  .nav-burger::before {
    content: "";
    width: 22px;
    height: 16px;
    flex: 0 0 auto;
    background:
      linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
      linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  }

  .nav-toggle:checked+.nav-burger::before {
    background:
      linear-gradient(currentColor, currentColor) 50% 50% / 100% 2px no-repeat;
    transform: rotate(45deg);
    box-shadow: none;
  }

  .nav-toggle:checked+.nav-burger::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 2px;
    background: currentColor;
    transform: rotate(-45deg);
  }

  .nav-burger {
    position: relative;
  }

  .nav-toggle:checked+.nav-burger::after {
    left: 0;
    top: 50%;
    margin-top: -1px;
  }

  .nav-toggle:focus-visible+.nav-burger {
    outline: 3px solid var(--saffron);
    outline-offset: 2px;
  }

  /* the panel */
  .site-nav .nav-list {
    background: #fff;
    border-radius: 12px;
    padding: 6px 0;
    margin: 4px 0 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
    overflow: hidden;
  }

  .site-nav .nav-list>li {
    border-bottom: 0;
  }

  .site-nav .nav-list>li>a,
  .site-nav .nav-list>li>.nav-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: normal;
    color: var(--ink);
    background: transparent;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .01em;
    padding: 14px 24px;
    cursor: pointer;
    min-height: 48px;
  }

  .site-nav .nav-list>li>a:hover,
  .site-nav .nav-list>li:hover>.nav-label,
  .site-nav .nav-list>li:focus-within>.nav-label,
  .site-nav .nav-list>li>a.nav-home:hover {
    background: var(--blue-light);
    color: var(--navy);
  }

  .site-nav .nav-list>li>a.is-active,
  .site-nav .nav-list>li>.nav-label.is-active {
    background: var(--blue-light);
    box-shadow: inset 4px 0 0 var(--saffron);
    padding-left: 24px;
    color: var(--navy);
  }

  .site-nav .nav-list>li>a.nav-home {
    padding: 14px 24px;
    justify-content: flex-start;
    gap: 12px;
  }

  /* caret on rows that have a sub-menu */
  .site-nav .nav-label::after {
    display: block;
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin: 0 4px 0 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
    transition: transform .2s;
  }

  .site-nav .has-menu:hover>.nav-label::after,
  .site-nav .has-menu:focus-within>.nav-label::after {
    transform: translateY(-3px) rotate(45deg);
  }

  .site-nav .has-menu.open>.nav-label::after {
    transform: translateY(2px) rotate(225deg);
  }

  /* sub-menus: closed by default, even while a row is hovered/focused */
  .site-nav .nav-list>li.has-menu>.menu,
  .site-nav .nav-list>li.has-menu:hover>.menu,
  .site-nav .nav-list>li.has-menu:focus-within>.menu,
  .site-nav .nav-list>li.has-menu>.menu.mega,
  .site-nav .nav-list>li.has-menu:hover>.menu.mega,
  .site-nav .nav-list>li.has-menu:focus-within>.menu.mega {
    display: none;
  }

  .site-nav .nav-list>li.has-menu.open>.menu,
  .site-nav .nav-list>li.has-menu.open>.menu.mega {
    display: block;
    position: static;
    min-width: 0;
    padding: 4px 0 10px;
    margin: 0;
    background: #f3f7fc;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav .menu a,
  .site-nav .menu.mega a {
    display: block;
    color: var(--ink);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.35;
    padding: 11px 24px 11px 40px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    white-space: normal;
  }

  .site-nav .menu a::after,
  .site-nav .menu.mega a::after {
    display: none;
  }

  .site-nav .menu a:hover,
  .site-nav .menu:not(.mega) a:hover,
  .site-nav .menu.mega a:hover {
    background: #e3edf8;
    color: var(--navy);
    padding-left: 40px;
    box-shadow: inset 4px 0 0 var(--saffron);
  }


}

/* ---------- New on VEDAS: tidy equal-height cards, long summaries scroll inside the card ---------- */
.news-grid {
  align-items: stretch;
  gap: 28px;
}

.card {
  min-width: 0;
}

.card .body {
  min-width: 0;
  padding: 16px 18px 18px;
}

.card h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: .55em;
  overflow-wrap: anywhere;
}

.card .desc {
  position: relative;
  z-index: 2;
  /* sits above the whole-card link so it can be scrolled */
  max-height: 9.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 0 14px;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: #9fb3c8 transparent;
}

.card .desc p {
  font-size: .92rem;
  line-height: 1.55;
  margin: 0 0 .6em;
}

.card .desc p:last-child {
  margin-bottom: 0;
}

.card .desc::-webkit-scrollbar {
  width: 6px;
}

.card .desc::-webkit-scrollbar-thumb {
  background: #9fb3c8;
  border-radius: 6px;
}

.card .desc:focus-visible {
  outline: 2px solid #1b5fa8;
  outline-offset: 2px;
  border-radius: 4px;
}

.card .go {
  font-size: .9rem;
  line-height: 1.4;
}

.card .go~.go {
  margin-top: 6px;
}

.card.lead .thumb {
  flex: 0 0 40%;
  min-height: 280px;
}

.card.lead .body {
  padding: 26px 32px;
}

.card.lead h3 {
  font-size: 1.4rem;
  line-height: 1.3;
}

.card.lead .desc {
  max-height: 11rem;
}

.card.lead .desc p {
  font-size: .98rem;
}

.card.lead .go {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .card.lead {
    flex-direction: column;
  }

  .card.lead .thumb {
    flex: none;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .card.lead .body {
    padding: 20px;
  }

  .card.lead h3 {
    font-size: 1.25rem;
  }
}

/* ---------- Language switch confirmation popup ---------- */
.lang-confirm {
  position: absolute;
  z-index: 10000;
  width: 340px;
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  padding: 12px 12px 14px;
  background: #fff;
  color: #555;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  font-size: .85rem;
  line-height: 1.45;
  text-align: left;
}
/* ---------- Download cards: language of the help manual ---------- */
.link-help { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.help-lang {
  display: inline-block; padding: 1px 10px; border-radius: 99px; line-height: 1.5;
  background: var(--blue-light); border: 1px solid #c6d8ee; color: var(--navy); font-size: .78rem; font-weight: 700;
}
.lang-confirm p {
  margin: 0 0 12px;
  color: inherit;
  font-size: inherit;
}

.lang-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.lang-confirm button {
  min-width: 52px;
  padding: 7px 12px;
  border: 0;
  border-radius: 3px;
  font: inherit;
  font-size: .95rem;
  color: #fff;
  cursor: pointer;
}

.lang-confirm-yes {
  background: #1b5fa8;
}

.lang-confirm-yes:hover {
  background: #0b4c90;
}

.lang-confirm-no {
  background: #6c757d;
}

.lang-confirm-no:hover {
  background: #565e64;
}

.lang-confirm button:focus-visible {
  outline: 2px solid #1b5fa8;
  outline-offset: 2px;
}

/* External-link notice popup: same look as the language popup, a little wider for one-line text */
.ext-confirm {
  width: 460px;
}

/* ---------- Keyboard access: every logo / image is its own Tab stop ---------- */
/* Header: emblem, VEDAS logo, SAC and ISRO each sit in their own link. */
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
}

.brand-logo,
.partners a {
  display: flex;
  align-items: center;
  border-radius: 6px;
}

.brand-text {
  display: block;
  color: inherit;
}

.brand-text:hover {
  text-decoration: none;
}

/* Card / tool / older-article images that carry their own link */
.thumb-link {
  display: block;
  height: 100%;
}

.oa-thumb .thumb-link {
  height: auto;
}

.brand-text {
  border-radius: 4px;
}

/* ==========================================================
   Theme pages (vegetation, urban, energy, hydrology, state portals): showcase cards
   (two-up grid, numbered badge, accent bar, call-to-action pill)
   ========================================================== */
.theme-head {
  justify-content: center;
  text-align: center;
  margin-bottom: 34px;
}

.theme-head h2::after {
  margin-left: auto;
  margin-right: auto;
}

.theme-head .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.theme-apps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  max-width: 960px;
  margin: 0 auto;
  counter-reset: themeapp;
}

.theme-apps .app {
  counter-increment: themeapp;
}

/* an odd last card sits centred under the pair above it */
.theme-apps .app:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 15px);
}

.theme-apps .app a {
  position: relative;
  border-radius: 16px;
}

/* saffron-to-green accent rule across the top of every card */
.theme-apps .app a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 3;
  background: linear-gradient(90deg, var(--saffron), #ffd08a 50%, #4ec39a);
}

.apps-band .theme-apps .app a:hover {
  border-color: rgba(232, 116, 26, .9);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .48), 0 0 34px rgba(232, 116, 26, .22);
}

.theme-apps .app .thumb {
  aspect-ratio: 16 / 9;
}

/* 01 / 02 / 03 / 04 badge on the picture (decorative) */
.theme-apps .app .thumb::before {
  content: counter(themeapp, decimal-leading-zero);
  content: counter(themeapp, decimal-leading-zero) / "";
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  min-width: 40px;
  padding: 4px 12px;
  text-align: center;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  background: rgba(4, 18, 42, .72);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 99px;
  backdrop-filter: blur(4px);
}

.apps-band .theme-apps .app .app-name {
  padding: 20px 24px 14px;
  font-size: 1.22rem;
  line-height: 1.3;
}

.apps-band .theme-apps .app .app-go {
  align-self: flex-start;
  margin: auto 24px 24px;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: .9rem;
  color: #ffd2ad;
  background: rgba(232, 116, 26, .16);
  border: 1px solid rgba(232, 116, 26, .6);
  transition: background .2s, border-color .2s, color .2s;
}

.apps-band .theme-apps .app a:hover .app-go {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}

@media (max-width: 700px) {
  .theme-apps {
    grid-template-columns: minmax(0, 1fr);
    max-width: 460px;
    gap: 22px;
  }

  .theme-apps .app:last-child:nth-child(odd) {
    width: auto;
  }

  .apps-band .theme-apps .app .app-name {
    font-size: 1.12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apps-band .theme-apps .app .app-go {
    transition: none;
  }
}

/* ---------- Keyboard access: every content block / image / icon is a Tab stop (see focusable-content.js) ---------- */
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 4px;
}

/* keep a focused block clear of the sticky menu bars when the browser scrolls it into view */
[tabindex="0"] {
  scroll-margin-top: 140px;
  scroll-margin-bottom: 40px;
}

svg[tabindex="0"]:focus-visible,
.announce-ico:focus-visible {
  border-radius: 50%;
}

/* An announcement card is one whole container: the ring is drawn around the card, not around the link text */
@supports selector(:has(*)) {
  .announce-item:focus-within {
    outline: none;
  }

  .announce-item:has(:focus-visible) {
    outline: 3px solid var(--saffron);
    outline-offset: 2px;
  }

  .announce-item a.main:focus-visible {
    outline: none;
  }
}

/* ---------- Website last-updated badge (footer) ---------- */
.site-updated-bar {
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.site-updated-bar .wrap {
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-updated {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  padding: 7px 20px 7px 8px;
  border-radius: 99px;
  color: #e5edf7;
  background: linear-gradient(90deg, rgba(232, 116, 26, .22), rgba(232, 116, 26, .06));
  border: 1px solid rgba(232, 116, 26, .6);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.su-ico {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  background: var(--saffron);
  color: #fff;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.su-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #ffb277;
}

.su-date {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  padding: 3px 12px;
  border-radius: 99px;
  font-variant-numeric: tabular-nums;
}

.su-time {
  font-size: .92rem;
  font-weight: 600;
  color: #9fcbff;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .site-updated {
    border-radius: 16px;
    padding-right: 14px;
  }
}

/* ---------- Header logos: never squeezed, SAC / ISRO stay visible on phones ---------- */
/* The generic  img { max-width: 100% }  lets a flex container shrink a logo's width while its height stays fixed,
   which is what made the emblem and the VEDAS logo look stretched and blurry on narrow screens. */
.brand-logos,
.brand-logo,
.partners,
.partners a {
  flex: 0 0 auto;
}

.brand img.emblem,
.brand img.vedas,
.partners img {
  max-width: none;
  width: auto;
  flex: none;
  object-fit: contain;
}

@media (max-width: 640px) {

  /* row 1: emblem + VEDAS logo on the left, SAC + ISRO on the right;  row 2: the full name */
  .identity .wrap {
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
  }

  .brand {
    display: contents;
  }

  .brand-logos {
    grid-column: 1;
    grid-row: 1;
  }

  .partners {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    gap: 10px;
  }

  /* was display:none */
  .partners img {
    height: 36px;
  }

  .brand-text {
    grid-column: 1 / -1;
    grid-row: 2;
    border-left: 0;
    padding-left: 0;
    min-width: 0;
  }

  .brand-text strong {
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  .brand-logos {
    gap: 8px;
    padding: 4px 8px;
  }

  .brand img.emblem {
    height: 36px;
  }

  .brand img.vedas {
    height: 32px;
  }

  .partners {
    gap: 6px;
  }

  .partners img {
    height: 30px;
  }
}
/* Technology-led home hero. The three links keep their reading order on small screens. */
.portal-hero .wrap { text-align: center; }
.portal-hero h1 { max-width: 27ch; margin-inline: auto; }
.portal-hero p.lede { max-width: 64ch; margin-inline: auto; }
.portal-hero .hero-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portal-hero .hero-link { min-width: 0; overflow-wrap: anywhere; }
.portal-hero .hero-link .portal-link-note { display: block; margin-top: .5em; font-size: .86em; }
.portal-menu-note { display: block; font-size: .86em; }
@media (max-width: 720px) {
  .portal-hero .hero-links { grid-template-columns: minmax(0, 1fr); }
}

/* Cap intrinsic image width so long fallback text cannot widen the header. */
.identity .brand img.emblem { max-width: 54px; }
.identity .brand img.vedas, .identity .partners img { max-width: 86px; }
@media (max-width: 380px) {
  .identity .brand img.emblem { max-width: 38px; }
  .identity .brand img.vedas, .identity .partners img { max-width: 50px; }
}

/* Visible submit control for the page, app and atlas search. */
.nav-search input[type="hidden"] { display: none; }
.nav-search input[type="search"] { border-radius: 20px 0 0 20px; }
.nav-search .search-toggle {
  align-self: stretch;
  height: auto;
  min-height: 38px;
  flex: 0 0 44px;
  border-radius: 0 20px 20px 0;
  background: #1b5fa8;
  color: #fff;
}
.nav-search .search-toggle:hover { background: #0b4c90; }
html[data-theme="grey"] .nav-search .search-toggle { background: #333030; color: #ffff00; border: 1px solid #ffff00; }

.about-card p a { text-decoration: underline; text-underline-offset: .15em; }


/* ==========================================================
   Dec 2026 update
   1. Header title leads the page; the home hero heading is always smaller than it
   2. Applications menu: grouped columns, no "(opens in a new tab)" text on screen
   3. Applications carousel
   4. Featured announcement (newsletter)
   ========================================================== */

/* ---------- 1. Header title and hero heading ---------- */
:root {
  --brand-title-size: clamp(1.3rem, 2.05vw, 1.75rem);
}

@media (max-width: 900px) {
  :root { --brand-title-size: 1.2rem; }

  .portal-hero p.lede { font-size: .98rem; }
}

@media (max-width: 380px) {
  :root { --brand-title-size: 1.02rem; }
}

.brand-text strong {
  font-size: var(--brand-title-size);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: .01em;
  color: #fff;
  text-wrap: balance;
}

html[lang="hi"] .brand-text strong {
  line-height: 1.38;
  letter-spacing: 0;
}

.brand-text span {
  margin-top: 4px;
  text-wrap: balance;
}

@media (min-width: 901px) {
  .brand-text {
    border-left: 3px solid var(--saffron);
    padding-left: 18px;
  }

  .brand-text span {
    max-width: 62ch;
  }
}

/* hero heading: 10% smaller than the header title at every screen size and text zoom */
.portal-hero h1 {
  font-size: calc(var(--brand-title-size) * .9);
  font-weight: 700;
  letter-spacing: -.005em;
  max-width: 44ch;
}

.portal-hero .wrap {
  padding-top: 56px;
  padding-bottom: 52px;
}

/* ---------- 2. Applications menu ---------- */
@media (min-width: 901px) {
  .menu.mega.menu-grouped {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 26px;
    min-width: 880px;
    max-width: calc(100vw - 24px);
    padding: 22px 24px 0;
    overflow: hidden;
  }

  .menu-grouped .menu-col {
    min-width: 0;
  }

  .menu-grouped .menu-group + .menu-group {
    margin-top: 18px;
  }

  .menu.mega .menu-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--muted);
  }

  .menu.mega .menu-head::before {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--g, var(--saffron));
  }

  .menu-platforms { --g: #1b5fa8; }
  .menu-land { --g: #2a7f62; }
  .menu-water { --g: #0e8fa8; }
  .menu-energy { --g: #e8741a; }
  .menu-air { --g: #6a55c8; }

  .menu-grouped .menu-group a {
    padding: 8px 12px;
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.3;
    border-radius: 8px;
  }

  .menu-grouped .menu-group a::after {
    content: "\2197";
    opacity: 0;
    color: var(--g, var(--saffron));
  }

  .menu-grouped .menu-group a:not([target])::after {
    content: "\203A";
    font-size: 1.15rem;
    line-height: 1;
  }

  .menu-grouped .menu-group a:hover,
  .menu-grouped .menu-group a:focus-visible {
    background: color-mix(in srgb, var(--g, var(--blue)) 11%, #fff);
    border-color: transparent;
    color: var(--navy);
  }

  .menu-grouped .menu-group a.is-active {
    background: color-mix(in srgb, var(--g, var(--blue)) 14%, #fff);
    color: var(--navy);
    font-weight: 700;
  }

  .menu-grouped .menu-group a.is-active::after {
    opacity: 1;
  }

  .menu.mega a.menu-foot {
    grid-column: 1 / -1;
    margin: 18px -24px 0;
    padding: 13px 24px;
    border: 0;
    border-radius: 0;
    background: var(--navy);
    color: #fff;
    font-size: .92rem;
    font-weight: 600;
  }

  .menu.mega a.menu-foot::after {
    content: "\2192";
    opacity: 1;
    color: #ffb277;
  }

  .menu.mega a.menu-foot:hover,
  .menu.mega a.menu-foot:focus-visible {
    background: var(--navy-2);
    color: #fff;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .menu.mega.menu-grouped {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 600px;
  }
}

@media (max-width: 900px) {
  .site-nav .menu.mega .menu-head {
    display: block;
    padding: 12px 24px 2px 40px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--muted);
  }

  .site-nav .menu.mega a.menu-foot {
    margin-top: 6px;
    font-weight: 700;
    color: var(--navy);
    box-shadow: inset 4px 0 0 var(--saffron);
  }
}

/* ---------- 3. Applications carousel ---------- */
.app-carousel {
  position: relative;
  margin-top: 4px;
}

.ac-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 12px 2px 30px;
  margin: 0 -2px;
}

.ac-track::-webkit-scrollbar {
  display: none;
}

.ac-slide {
  flex: 0 0 calc((100% - 60px) / 4);
  min-width: 0;
  display: flex;
  scroll-snap-align: start;
}

.ac-card {
  --tint: #5aa9ff;
  display: flex;
  flex-direction: column;
  width: 100%;
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}

.ac-card:hover,
.ac-card:focus-visible {
  color: #fff;
  text-decoration: none;
  transform: translateY(-5px);
  border-color: var(--saffron);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .42);
}

.cat-platform { --tint: #5aa9ff; }
.cat-land { --tint: #4fd1a1; }
.cat-energy { --tint: #ffb277; }
.cat-water { --tint: #4fd0e6; }
.cat-air { --tint: #b7a7ff; }

.ac-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b2545;
}

.ac-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.ac-card:hover .ac-media img {
  transform: scale(1.06);
}

.ac-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 18, 42, 0) 45%, rgba(4, 18, 42, .72));
}

.ac-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 80% 10%, color-mix(in srgb, var(--tint) 38%, transparent), transparent 62%),
    repeating-linear-gradient(0deg, rgba(140, 195, 255, .10) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(140, 195, 255, .10) 0 1px, transparent 1px 34px),
    linear-gradient(160deg, #0f3566, #061a33);
}

.ac-art svg {
  width: 28%;
  max-width: 92px;
  fill: none;
  stroke: var(--tint);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--tint) 55%, transparent));
}

.ac-tag {
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: 99px;
  background: rgba(4, 18, 42, .72);
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.ac-tag i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tint);
}

.ac-body {
  display: flex;
  /* flex: 1; */
  flex-direction: column;
  /* gap: 14px; */
  padding: 16px 18px 18px;
}

.ac-name {
  display: block;
  min-height: 2.6em;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.ac-go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: .9rem;
  font-weight: 600;
  color: #ffb277;
}

.ac-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 178, 119, .55);
  font-size: 1rem;
  line-height: 1;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.ac-card:hover .ac-arrow,
.ac-card:focus-visible .ac-arrow {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
  transform: translate(2px, -2px);
}

.ac-foot {
  display: flex;
  align-items: center;
  gap: 22px;
}

.ac-progress {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, .16);
}

.ac-thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  border-radius: 4px;
  background: var(--saffron);
  transition: left .15s linear;
}

.ac-controls {
  display: flex;
  gap: 10px;
}

.ac-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}

.ac-btn:hover {
  background: var(--saffron);
  border-color: var(--saffron);
}

.ac-btn:active {
  transform: scale(.94);
}

.ac-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.ac-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ac-toggle .i-play {
  display: none;
  fill: currentColor;
}

.ac-toggle.is-paused .i-play {
  display: block;
}

.ac-toggle.is-paused .i-pause {
  display: none;
}

@media (max-width: 1000px) {
  .ac-slide {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (max-width: 640px) {
  .ac-track {
    gap: 14px;
  }

  .ac-slide {
    flex-basis: 84%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ac-track {
    scroll-behavior: auto;
  }

  .ac-card,
  .ac-media img,
  .ac-arrow,
  .ac-btn,
  .ac-thumb {
    transition: none;
  }

  .ac-card:hover,
  .ac-card:focus-visible,
  .ac-card:hover .ac-media img {
    transform: none;
  }
}

/* ---------- 4. Featured announcement (newsletter) ---------- */
.announce-item.is-featured {
  grid-column: span 2;
  padding: 20px 76px 40px 22px;
  /* background: linear-gradient(135deg, rgba(232, 116, 26, .24), rgba(255, 255, 255, .07) 60%); */
  /* border-color: rgba(232, 116, 26, .6);
  border-top-color: var(--saffron); */
}

.announce-item.is-featured a.main {
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.3;
}

.announce-doc {
  position: absolute;
  top: 18px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 52px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #ffd2ad;
}

.announce-doc svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1100px) {
  .announce-item.is-featured {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .announce-item.is-featured {
    grid-column: span 1;
    padding-right: 70px;
  }
}


/* ==========================================================
   Announcements: plain text list
   One row per announcement: [(New)] then the title. A second line (for example the PDF details)
   sits under the title, in line with it, never under the (New) tag.
   ========================================================== */
.announce-list {
  gap: 4px 28px;
  margin: 0 -12px;               /* the text lines up with the heading; the hover tint still has room */
  align-items: start;
}

.announce-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.announce-item .new {
  flex: 0 0 auto;
  padding: 0;
  font-size: .78rem;
  letter-spacing: .05em;
  white-space: nowrap;
}

.announce-item .announce-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.announce-item a.main {
  font-size: 1rem;
  line-height: 1.4;
}

.announce-item .announce-meta {
  position: relative;
  z-index: 2;
  font-size: .86rem;
  line-height: 1.4;
  color: #E00000;
}

@media (max-width: 1100px) {
  .announce-list { gap: 4px 20px; }
}

@media (max-width: 600px) {
  .announce-list { gap: 2px; }
}


/* ==========================================================
   Featured software: same card as "New on VEDAS"
   Long descriptions scroll inside the card (the .desc box is shared with the article cards),
   so the three cards stay the same height and the download links sit together at the bottom.
   ========================================================== */
.tools {
  align-items: stretch;
  gap: 28px;
}

.card.tool .thumb img {
  object-position: top center;   /* software screenshots: keep the top of the window */
}

.card.tool .desc p + p {
  margin-top: .6em;
}
