* { box-sizing: border-box; }

:root {
  color-scheme: light;
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
  color: #112d3b;
  background: #eff4f3;
  --ink: #112d3b;
  --muted: #4b656c;
  --green: #075e49;
  --line: #d6e4df;
  --gold: #dfbe78;
}

body { margin: 0; }
main { padding-bottom: 3rem; }
[hidden] { display: none !important; }

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 86% 80%, #126958, transparent 58%),
    linear-gradient(112deg, #081f36, #103d47);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 25px, #e1f4e409 25px 26px),
    repeating-linear-gradient(-45deg, transparent 0 25px, #e1f4e409 25px 26px);
  mask-image: linear-gradient(90deg, transparent 20%, #000);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 71rem;
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 5vw, 3.6rem);
  margin: auto;
  padding: clamp(2.6rem, 7vw, 5.5rem) 2rem clamp(4.5rem, 9vw, 7rem);
}

.hero img {
  width: clamp(5rem, 15vw, 9rem);
  border-radius: 50%;
  outline: 1px solid #dfbe78b0;
  outline-offset: 8px;
}

.hero p {
  margin: 0;
  color: #f0cf88;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2 { font-family: Georgia, "Times New Roman", serif; }
h1 {
  font-size: clamp(2.3rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.035em;
  margin: .6rem 0 .75rem;
  text-wrap: balance;
}
.hero span { display: block; font-size: 1.15rem; color: #d5e9e4; }
.college-details { margin-top: 1.15rem; padding-top: .95rem; border-top: 1px solid #dfbe7866; }
.college-details p { color: #d5e9e4; font-size: .95rem; font-weight: 400; letter-spacing: normal; text-transform: none; }
.college-details p + p { margin-top: .25rem; }
.college-details .college-programme { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .85rem; color: #fff; font-weight: 650; margin-bottom: .45rem; }
.college-details .college-founded { display: inline; color: #f0cf88; font-size: .9rem; white-space: nowrap; }

.card {
  position: relative;
  width: min(64rem, calc(100% - 3rem));
  margin: 1.35rem auto 0;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: 0 15px 40px #0c313810;
}

.lookup { margin-top: -2.45rem; }
.section-head { margin-bottom: 1.4rem; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; margin: 0 0 .45rem; }
.section-head p { color: var(--muted); margin: 0; }
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

label { display: block; font-weight: 650; }
input, select {
  width: 100%;
  min-height: 3.2rem;
  margin-top: .4rem;
  padding: .65rem .85rem;
  background: #f6faf8;
  color: inherit;
  border: 1px solid #aec7bd;
  border-radius: .55rem;
  font: inherit;
}
select {
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23075e49' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right .9rem center;
  background-repeat: no-repeat;
}
select:disabled { opacity: .58; }
#search-area { margin-top: 1.15rem; }
#status { color: var(--muted); margin-bottom: 0; }
#matches { padding: 0; margin: 0; list-style: none; }
#matches li {
  margin-top: .75rem;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: .65rem;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.button, button {
  display: inline-block;
  min-height: 2.75rem;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 650;
  border: 0;
  border-radius: .5rem;
  padding: .55rem 1rem;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, button:hover { background: #064838; }
:focus-visible { outline: 3px solid #1978a5; outline-offset: 3px; }

.result { border-top: 4px solid #bd9450; }
.sheet-head { text-align: center; padding: 1.4rem 1rem; background: #103c39; color: white; border-radius: .65rem; }
.sheet-head img { width: 4rem; border-radius: 50%; border: 1px solid var(--gold); }
.sheet-head strong { display: block; font: 500 clamp(1.25rem, 3.6vw, 2rem)/1.2 Georgia, serif; margin: .45rem 0; }
.sheet-head h2 { margin: .45rem 0 0; color: #f0cf88; font: 650 .9rem/1.45 "Segoe UI", system-ui, sans-serif; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 650; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .65rem; border-bottom: 1px solid var(--line); }
thead { background: #e6f2ed; }
td:last-child, th:last-child { text-align: right; }
tr.summary { font-weight: 650; background: #f8fbfa; }
.sheet-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.35rem; }
.verification { color: var(--muted); display: flex; align-items: center; gap: .7rem; font-size: .9rem; }
.verification strong { display: block; color: var(--ink); font-size: 1rem; }
.verification-tick { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 50%; background: #e6f2ed; color: var(--green); font-size: 1.3rem; font-weight: 700; }

@media (max-width: 38rem) {
  .hero-content { flex-direction: column; align-items: flex-start; padding-inline: 1.5rem; }
  .hero img { width: 4.5rem; outline-offset: 4px; }
  .desktop-break { display: none; }
  .card { width: calc(100% - 1.4rem); }
  .filters { grid-template-columns: 1fr; }
}

