/* Anvaya University: base. Phone first; wide.css adds the larger screens.
   The credit map's category fills live in parts.css and are used only where courses appear. */

:root {
  --paper: #ffffff;
  --ink: #14171f;
  --ink-2: #464b57; /* secondary text: 8.9:1 on white */
  --rule: #d5d7dc;
  --rule-ink: #14171f;
  --tint: #f5f4f0;
  --go: #1d43c2; /* cobalt, actions only: 7.4:1 with white */
  --go-dark: #142f8c;
  --open: #17643a; /* "Applications open": 6.9:1 on white */
  --soon: #8a4b00;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Host Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --odia: "Noto Serif Oriya", "Kalinga", serif;
  --gutter: 18px;
  --max: 1680px;
  --head-h: 60px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--serif);
  font-optical-sizing: auto;
  overflow-x: hidden;
}

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

a {
  color: var(--go);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--go-dark);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--go);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.2rem, 8.5vw, 4.4rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
}
h3,
.h3 {
  font-size: 1.25rem;
  font-weight: 600;
}
p {
  margin: 0 0 1em;
}

[id] {
  scroll-margin-top: calc(var(--head-h) + 16px);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.num {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums lining-nums;
}

.small {
  font: 400 0.9rem/1.5 var(--sans);
  color: var(--ink-2);
}

.kicker {
  font: 600 0.8rem/1.3 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 0.9em;
}
.kicker a {
  color: inherit;
}

.lede {
  font-size: clamp(1.15rem, 3.6vw, 1.4rem);
  line-height: 1.45;
  max-width: 44em;
}
.lede-small {
  font-size: 1.1rem;
}
.measure {
  max-width: 46em;
}

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

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  font: 600 1rem var(--sans);
}
.skip:focus {
  top: 8px;
}

/* ---- Buttons --------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 2px solid var(--go);
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  text-align: center;
  border-radius: 0;
}
.btn-go {
  background: var(--go);
  color: #fff;
}
.btn-go:hover {
  background: var(--go-dark);
  border-color: var(--go-dark);
  color: #fff;
}
.btn-line {
  background: var(--paper);
  color: var(--go);
}
.btn-line:hover {
  background: #eef1fb;
}
.btn-small {
  min-height: 40px;
  padding: 6px 14px;
  font-size: 0.95rem;
}

/* ---- Header: sticky at every width (Adnan's rule) ---------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-ink);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--head-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.logo:hover {
  color: var(--ink);
}
.mark {
  flex: none;
  color: var(--ink);
}
.mark-top {
  fill: var(--go);
}
.logo-words {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo-name {
  font: 600 1.15rem/1.05 var(--serif);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.logo-local {
  font: 500 0.8rem/1.3 var(--odia);
  color: var(--ink-2);
}

.nav-wide {
  display: none;
}
.hide-small {
  display: none;
}

.nav-small {
  position: static;
}
.nav-small summary {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-ink);
}
.nav-small summary::-webkit-details-marker {
  display: none;
}
.burger,
.burger::before,
.burger::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger::before {
  top: -6px;
}
.burger::after {
  top: 6px;
}
.nav-small[open] .burger {
  background: transparent;
}
.nav-small[open] .burger::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-small[open] .burger::after {
  top: 0;
  transform: rotate(-45deg);
}
.nav-small nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-ink);
  padding: 8px var(--gutter) 16px;
  max-height: calc(100vh - var(--head-h));
  overflow-y: auto;
}
.nav-small ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-small li a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font: 500 1.1rem var(--sans);
  color: var(--ink);
  text-decoration: none;
}
.nav-small a[aria-current="page"] {
  color: var(--go);
}
.nav-small-more a {
  font-size: 1rem !important;
  color: var(--ink-2) !important;
}

/* ---- Footer ------------------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--rule-ink);
  margin-top: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.footer-help {
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.footer-help p {
  margin: 0;
}
.footer-grid {
  display: grid;
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.footer-promise {
  font: 400 1.1rem/1.4 var(--serif);
  margin-top: 12px;
}
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 20px;
}
.footer-links li {
  padding: 5px 0;
  break-inside: avoid;
}
.footer-facts {
  margin: 0;
}
.footer-facts div {
  margin-bottom: 10px;
}
.footer-facts dt {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.footer-facts dd {
  margin: 0;
}
.footer-base {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  padding-bottom: 24px;
  color: var(--ink-2);
  font-size: 0.85rem;
}
.footer-base p {
  margin: 0 0 4px;
}

/* ---- Tables ------------------------------------------------------------------------------ */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 2px solid var(--rule-ink);
}
table {
  border-collapse: collapse;
  width: 100%;
  font: 400 0.95rem/1.4 var(--sans);
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--rule);
}
thead th {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  white-space: nowrap;
}
tbody th {
  font-weight: 600;
}
.r {
  text-align: right;
}
tfoot th,
tfoot td {
  border-bottom: 2px solid var(--rule-ink);
}
