/* Centre for Corporate Laws, Governance and Financial Laws, NLU Delhi
   One stylesheet for the whole site. Fonts are self-hosted. */

@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-normal.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --maroon: #5F1D25;
  --maroon-dark: #3F1218;
  --gold: #B08431;
  --text: #22262B;
  --muted: #5A6069;
  --line: #E2E0DB;
  --panel: #F5F4F1;
  --white: #FFFFFF;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --width: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--sans);
  font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-underline-offset: 3px; }
a:hover { color: var(--maroon-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--text); margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: var(--width); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--maroon); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.muted { color: var(--muted); }

/* Top bar */
.topbar { background: var(--maroon-dark); color: #E9DCDD; font-size: .8125rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.2rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }

/* Header */
.header { background: var(--white); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 1rem; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--text); }
.brand img { width: 4.25rem; height: 4.25rem; border-radius: 50%; flex: none; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: clamp(1.1rem, .9rem + .9vw, 1.5rem); line-height: 1.2; color: var(--maroon); display: block; }
.brand__uni { display: block; font-size: .875rem; color: var(--muted); margin-top: .2rem; }
.brand:hover .brand__name { color: var(--maroon-dark); }
@media (max-width: 30rem) { .brand img { width: 3.25rem; height: 3.25rem; } }

/* Navigation */
.nav { background: var(--maroon); position: relative; z-index: 20; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav__list > li { position: relative; }
.nav__list > li > a { display: block; color: #fff; text-decoration: none; font-weight: 500; font-size: .9375rem;
  padding: .85rem 1.1rem; border-bottom: 3px solid transparent; }
.nav__list > li:first-child > a { padding-left: 0; }
.nav__list > li > a:hover, .nav__list > li:focus-within > a { background: var(--maroon-dark); }
.nav__list > li:first-child > a:hover { background: none; text-decoration: underline; }
.nav__list > li > a[aria-current="page"], .nav__list > li > a.is-section { border-bottom-color: var(--gold); }
.caret { display: inline-block; margin-left: .35rem; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.sub { display: none; position: absolute; left: 0; top: 100%; min-width: 13.5rem; list-style: none; margin: 0; padding: .4rem 0;
  background: var(--white); border-top: 3px solid var(--gold); box-shadow: 0 10px 24px rgb(0 0 0 / .14); }
.nav__list > li:hover .sub, .nav__list > li:focus-within .sub { display: block; }
.sub a { display: block; padding: .55rem 1rem; color: var(--text); text-decoration: none; font-size: .9375rem; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--panel); color: var(--maroon); }

.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; color: #fff; font-weight: 500; padding: .8rem 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::before { content: "☰"; margin-right: .5rem; }
.menu[open] summary::before { content: "✕"; }
.menu ul { list-style: none; margin: 0 0 .75rem; padding: 0; border-top: 1px solid rgb(255 255 255 / .2); }
.menu a { display: block; padding: .6rem 0; color: #fff; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .12); }
.menu a[aria-current="page"] { color: #F3D9A0; }
.menu .menu__sub a { padding-left: 1.25rem; font-size: .9375rem; }
@media (max-width: 54rem) { .nav__list { display: none; } .menu { display: block; } }

/* Home: photograph with the Centre's name */
.hero { position: relative; height: clamp(18rem, 42vw, 32rem); overflow: hidden; background: #2b2b2b; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(35 10 14 / .82) 0%, rgb(35 10 14 / .55) 38%, rgb(35 10 14 / .05) 75%); }
.hero .wrap { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(1.5rem, 4vw, 2.75rem); }
.hero__uni { color: #F0E3E4; font-size: clamp(.875rem, .8rem + .3vw, 1rem); margin: 0 0 .5rem; }
.hero h1 { color: #fff; font-size: clamp(1.75rem, 1rem + 3.2vw, 3.25rem); max-width: 22ch; margin: 0; text-wrap: balance;
  text-shadow: 0 1px 12px rgb(0 0 0 / .3); }

/* Sections */
.section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--panel { background: var(--panel); border-block: 1px solid var(--line); }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section__head h2 { margin: 0; }
.rule { width: 3rem; height: 3px; background: var(--gold); border: 0; margin: 0 0 1.25rem; }
.text { max-width: 44rem; }
.lead { font-size: 1.125rem; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 48rem) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--maroon); padding: 1.5rem 1.6rem; display: flex; flex-direction: column; min-width: 0; }
.card h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.card p { color: var(--muted); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card__list { list-style: none; margin: 0 0 1.25rem; padding: 0; border-top: 1px solid var(--line); }
.card__list li { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.card__list a { color: var(--text); text-decoration: none; font-weight: 500; }
.card__list a:hover { color: var(--maroon); text-decoration: underline; }
.card__list span { display: block; font-size: .8125rem; color: var(--muted); margin-top: .1rem; }

.btn { display: inline-block; background: var(--maroon); color: #fff; text-decoration: none; font-weight: 600; font-size: .9375rem;
  padding: .7rem 1.25rem; border: 1px solid var(--maroon); border-radius: 2px; }
.btn:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #fff; }
.btn--plain { background: transparent; color: var(--maroon); }
.btn--plain:hover { background: var(--maroon); color: #fff; }
.buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }

/* Notices */
.notices { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.notices li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .25rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 36rem) { .notices li { grid-template-columns: 1fr; } }
.notices .tag { font-size: .8125rem; font-weight: 600; color: var(--maroon); padding-top: .15rem; }
.notices h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; margin: 0 0 .2rem; }
.notices h3 a { color: var(--text); text-decoration: none; }
.notices h3 a:hover { color: var(--maroon); text-decoration: underline; }
.notices p { margin: 0; color: var(--muted); font-size: .9375rem; }
.empty { background: var(--panel); border: 1px solid var(--line); padding: 1rem 1.25rem; color: var(--muted); margin: 0; max-width: 44rem; }

/* Inner pages */
.pagehead { background: var(--panel); border-bottom: 1px solid var(--line); padding-block: 1.75rem 2rem; }
.crumbs { font-size: .875rem; color: var(--muted); margin: 0 0 .6rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--maroon); }
.pagehead h1 { margin: 0; }
.pagehead p { margin: .6rem 0 0; color: var(--muted); max-width: 44rem; }
.subtabs { display: flex; gap: .25rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.subtabs a { padding: .7rem 1rem; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9375rem; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.subtabs a:hover { color: var(--maroon); }
.subtabs a[aria-current="page"] { color: var(--maroon); border-bottom-color: var(--maroon); }
.page { padding-block: 2rem clamp(3rem, 6vw, 4.5rem); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 54rem) { .layout { grid-template-columns: 1fr; } }
.text h2 { margin-top: 2rem; }
.text h2:first-child { margin-top: 0; }
.text ul, .text ol { padding-left: 1.25rem; }
.text li { margin-bottom: .35rem; }

.box { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--maroon); padding: 1.25rem 1.4rem; }
.box h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 0 0 .75rem; }
.box dl { margin: 0; }
.box dt { font-size: .8125rem; color: var(--muted); margin-top: .8rem; }
.box dt:first-child { margin-top: 0; }
.box dd { margin: .1rem 0 0; overflow-wrap: anywhere; }
.box address { font-style: normal; }

/* Team */
.people { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 54rem) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .people { grid-template-columns: 1fr; } }
.person { border: 1px solid var(--line); background: var(--white); }
.person img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 20%; }
.person__body { padding: 1rem 1.1rem 1.2rem; border-top: 4px solid var(--maroon); }
.person__name { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin: 0 0 .15rem; }
.person__role { font-weight: 600; color: var(--maroon); margin: 0 0 .25rem; font-size: .9375rem; }
.person__desig { color: var(--muted); font-size: .875rem; margin: 0; line-height: 1.45; }
.members { columns: 3 13rem; column-gap: 2rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.members li { break-inside: avoid; padding: .45rem 0; border-bottom: 1px solid var(--line); }

/* Submissions */
.lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
@media (max-width: 48rem) { .lanes { grid-template-columns: 1fr; } }
.table { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; font-size: .9375rem; }
.table th, .table td { text-align: left; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; width: 45%; }
.table thead th { color: var(--muted); font-weight: 600; font-size: .8125rem; width: auto; }
.steps { padding-left: 1.4rem; }
.steps li { margin-bottom: .6rem; padding-left: .25rem; }
.steps strong { display: block; }
.tablewrap { overflow-x: auto; }

/* Footer */
.footer { background: var(--maroon-dark); color: #E3D3D5; font-size: .9375rem; margin-top: 0; }
.footer a { color: #fff; }
.footer a:hover { color: #F3D9A0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-block: 2.5rem; }
@media (max-width: 48rem) { .footer__grid { grid-template-columns: 1fr; } }
.footer h2 { font-family: var(--sans); color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 .75rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .35rem; }
.footer address { font-style: normal; line-height: 1.6; }
.footer__brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer__brand img { width: 3.5rem; height: 3.5rem; border-radius: 50%; flex: none; }
.footer__base { border-top: 1px solid rgb(255 255 255 / .15); padding-block: 1rem; font-size: .8125rem; }
.footer__base p { margin: 0; }

@media print { .topbar, .nav, .footer, .hero::after { display: none; } }
