/* ==========================================
   PSGVPM Parent Website — Components
   Shared, page-independent. Page compositions live in pages.css.
   ========================================== */

/* ------------------------------------------
   Icons (inline SVG sprite, stroke-based)
   ------------------------------------------ */

.icon {
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------
   Buttons and links
   ------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.button--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.button--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-md);
}

.button--accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #1c1305;
}

.button--accent:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent-soft);
  color: #1c1305;
  box-shadow: var(--shadow-md);
}

.button--outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.button--outline:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.section--dark .button--outline,
.on-dark .button--outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-text-inverse);
}

.section--dark .button--outline:hover,
.on-dark .button--outline:hover {
  border-color: var(--color-text-inverse);
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text-inverse);
}

.button:focus-visible {
  outline-offset: 3px;
}

.button--sm {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font-size: var(--font-size-small);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-block-end: 0.1em;
}

.link-arrow .icon {
  transition: transform var(--transition-fast);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

.link-arrow--ext:hover .icon {
  transform: translate(2px, -2px);
}

/* ------------------------------------------
   Thread rule (gold line · diamond · line)
   ------------------------------------------ */

.thread {
  position: relative;
  display: block;
  width: min(100%, 9rem);
  height: 9px;
  color: var(--color-accent);
  background:
    linear-gradient(currentColor, currentColor) left center / calc(50% - 10px) 1px no-repeat,
    linear-gradient(currentColor, currentColor) right center / calc(50% - 10px) 1px no-repeat;
}

.thread::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}

.thread--center {
  margin-inline: auto;
}

/* ------------------------------------------
   Photographs — one restrained frame language
   Square-cornered rectangles in a small set of proportions (3:2 documentary,
   4:3 institutions, 4:5 portraits, 12:5 banners), a hairline edge so pale
   skies do not dissolve into the page, no offset outlines or decorative
   borders. Proportions and focal points come from the pre-cropped image files
   (the image build step); object-position is a second safeguard.
   ------------------------------------------ */

.photo {
  margin: 0;
}

.photo__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-photo);
  background: var(--color-bg-khadi-deep);
  aspect-ratio: var(--photo-ratio, 3 / 2);
}

.photo__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--color-photo-edge);
  pointer-events: none;
}

.photo__frame picture {
  height: 100%;
}

.photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
}

/* A frame whose art-directed <picture> serves a 4:3 crop on phones and the uncropped 12:5 photograph from 40rem up: the
   frame follows the served image, so it never reserves empty space beneath a landscape photograph. */
.photo__frame--art {
  --photo-ratio: 4 / 3;
}

@media (min-width: 40rem) {
  .photo__frame--art {
    --photo-ratio: 12 / 5;
  }
}

/* Paired book covers: whole covers at their natural proportions, side by side from 36rem, stacked below */
.book-pair {
  display: grid;
  gap: var(--space-lg);
  justify-content: center;
  margin-block: var(--space-lg);
}

.book-pair .book {
  max-width: 17rem;
  margin: 0;
}

.book img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-photo);
  box-shadow: 0 0 0 1px var(--color-photo-edge), var(--shadow-card);
}

@media (min-width: 36rem) {
  .book-pair {
    grid-template-columns: repeat(2, minmax(0, 17rem));
    align-items: start;
    gap: var(--space-xl);
  }
}

.photo--portrait {
  --photo-ratio: 4 / 5;
}

.photo figcaption,
.book figcaption {
  margin-block-start: 0.65rem;
  padding-inline-start: 0.7rem;
  border-inline-start: 2px solid var(--color-accent);
  color: var(--color-text-muted);
  font-size: var(--font-size-caption);
  line-height: 1.5;
}

/* ------------------------------------------
   Skip link
   ------------------------------------------ */

.skip-link {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: var(--z-skip-link);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-250%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ------------------------------------------
   Header system — one compact, sticky, single-row header
   Brand (seal + official English and Marathi names) on the left, navigation
   on the right. From 75rem the navigation sits inline; below that the same
   row carries a menu button. One DOM, no separate masthead or utility bar:
   the full identity is always visible and costs about 4.5rem of height.
   ------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-bottom: 3px solid var(--color-accent);
  transition: box-shadow var(--transition-base);
}

.site-header.is-stuck {
  box-shadow: 0 8px 24px rgba(8, 27, 53, 0.28);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem var(--space-sm);
  min-height: var(--header-height);
  padding-block: 0.45rem;
}

.brand {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--color-text-inverse);
  text-decoration: none;
}

.brand:hover {
  color: var(--color-text-inverse);
}

.brand__seal {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.15rem;
}

/* Shared PSGVPM motto: first line of the identity, centred over it, clearly smaller than the Mandal's name */
.brand__motto {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-family-marathi);
  font-size: 0.7rem;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 39.99rem) {
  /* keep the extra identity line from making the small-screen header noticeably taller */
  .site-header__inner {
    padding-block: 0.3rem;
  }

  .brand__text {
    gap: 0.04rem;
  }

  .brand__motto {
    font-size: 0.68rem;
    line-height: 1.12;
  }
}

@media (max-width: 22.5rem) {
  .brand__motto {
    white-space: normal;
  }
}

.brand__name {
  font-family: var(--font-family-heading);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.15;
}

.brand__mr {
  color: var(--color-accent-soft);
  font-family: var(--font-family-marathi);
  font-size: 0.78rem;
  line-height: 1.3;
  white-space: nowrap;      /* one stable line, so the web-font swap cannot change the sticky header's height */
}

@media (max-width: 22.5rem) {
  .brand__mr {
    white-space: normal;    /* very narrow phones: wrap rather than overflow */
  }
}

.nav-toggle {
  display: none;
  flex: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-inverse);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle__icon {
  position: relative;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  transition: background-color var(--transition-fast);
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition-base);
}

.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.navbar__menu {
  flex-basis: 100%;
}

.navbar__list,
.navbar__sub {
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar__list a {
  display: block;
  color: var(--color-text-inverse);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.navbar__list a:hover {
  color: var(--color-accent-soft);
}

.navbar__list [aria-current="page"] {
  color: var(--color-accent-soft);
}

.navbar__sub-toggle {
  display: none;
}

/* Below 75rem: brand + menu button; the menu opens under the row */
@media (max-width: 74.99rem) {
  .js .navbar__menu {
    display: none;
  }

  .js .navbar__menu.is-open {
    display: block;
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .navbar__list {
    padding-block: var(--space-xs) var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .navbar__list a {
    padding: 0.8rem 0.25rem;
  }

  .navbar__list [aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--color-accent);
    padding-inline-start: 0.85rem;
  }

  .navbar__sub {
    margin-block-end: var(--space-2xs);
    padding-inline-start: 1rem;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.2);
  }

  .navbar__sub a {
    font-weight: 500;
    font-size: 0.92rem;
  }

  .navbar__extra {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 39.99rem) {
  .nav-toggle span:not(.nav-toggle__icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .nav-toggle {
    width: 2.75rem;
    justify-content: center;
    padding: 0;
  }
}

@media (min-width: 40rem) and (max-width: 74.99rem) {
  .brand__motto {
    font-size: 0.74rem;
  }

  .brand__name {
    font-size: 1.15rem;
  }

  .brand__mr {
    font-size: 0.88rem;
  }

  .brand__seal {
    width: 48px;
    height: 48px;
  }
}

/* Desktop: navigation inline, single row */
@media (min-width: 75rem) {
  .site-header__inner {
    flex-wrap: nowrap;
    padding-block: 0.4rem;
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand__seal {
    width: 50px;
    height: 50px;
  }

  .brand__motto {
    font-size: 0.76rem;
  }

  .brand__name {
    font-size: 1.22rem;
  }

  .brand__mr {
    font-size: 0.9rem;
  }

  .nav-toggle {
    display: none !important;
  }

  .navbar__menu {
    flex: 0 1 auto;
  }

  .navbar__list {
    display: flex;
    align-items: stretch;
    gap: 0.1rem;
  }

  .navbar__list > li {
    position: relative;
    display: flex;
    align-items: center;
  }

  .navbar__list > li > a {
    position: relative;
    padding: 1.3rem 0.7rem;
    font-size: 0.86rem;
    letter-spacing: 0.015em;
  }

  .navbar__list > li > a::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.8rem;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
  }

  .navbar__list > li > a:hover::after,
  .navbar__list > li > a[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .navbar__list > li.navbar__extra {
    display: none;
  }

  .navbar__sub-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;           /* WCAG 2.2 target size: at least 24 CSS px stay clear of the link it sits beside */
    height: 2.5rem;
    margin-inline-start: -0.35rem;
    border: 0;
    background: transparent;
    color: var(--color-text-inverse);
    cursor: pointer;
  }

  .navbar__sub-toggle .icon {
    width: 0.9rem;
    height: 0.9rem;
    transition: transform var(--transition-fast);
  }

  .navbar__sub-toggle[aria-expanded="true"] .icon {
    transform: rotate(180deg);
  }

  .navbar__sub {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: var(--z-menu);
    display: none;
    min-width: 17rem;
    padding: 0.5rem;
    border-top: 3px solid var(--color-accent);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
  }

  .navbar__sub.is-open,
  html:not(.js) .has-sub:focus-within > .navbar__sub {
    display: block;
  }

  @media (hover: hover) {
    .has-sub:hover > .navbar__sub {
      display: block;
    }
  }

  .navbar__list .navbar__sub a {
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.92rem;
  }

  .navbar__list .navbar__sub a:hover {
    background: var(--color-bg-khadi);
    color: var(--color-primary);
  }

  .navbar__list .navbar__sub [aria-current="page"] {
    color: var(--color-accent-deep);
    background: var(--color-bg-khadi);
  }

  .navbar__sub :focus-visible {
    outline-color: var(--color-focus);
  }
}

/* ------------------------------------------
   Institute doors (ecosystem discovery)
   ------------------------------------------ */

.doors {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .doors {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 62rem) {
  .doors {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

.door {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-card), box-shadow var(--transition-card), border-color var(--transition-card);
}

.door::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms ease;
}

.door__media {
  overflow: hidden;
  position: relative;
  background: var(--color-bg-khadi-deep);
  aspect-ratio: 4 / 3;
}

.door__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  transition: transform 700ms ease;
}

.door__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(8, 27, 53, 0.28));
  pointer-events: none;
}

.door:hover,
.door:focus-within {
  transform: translateY(var(--lift));
  border-color: rgba(200, 149, 47, 0.55);
  box-shadow: var(--shadow-card-hover);
}

.door:hover::before,
.door:focus-within::before {
  transform: scaleX(1);
}

.door:hover .door__media img,
.door:focus-within .door__media img {
  transform: scale(1.04);
}

.door__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.25rem 1.3rem;
}

.door__tag {
  color: var(--color-accent-deep);
  font-size: var(--font-size-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.door__title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.25;
}

.door__title a {
  color: var(--color-primary);
  text-decoration: none;
}

.door__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.door__title a:focus-visible {
  outline: none;
}

/* The card clips its overflow, so the focus ring is drawn inside the card edge, over a white band */
.door__title a:focus-visible::after {
  outline: var(--focus-outline-width) solid var(--color-focus);
  outline-offset: calc(var(--focus-outline-width) * -1);
  box-shadow: inset 0 0 0 calc(var(--focus-outline-width) * 2) #fff;
  border-radius: var(--radius-md);
}

.door__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}

.door__host {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-block-start: auto;
  padding-block-start: 0.5rem;
  color: var(--color-primary);
  font-size: var(--font-size-small);
  font-weight: 700;
}

.door__host .icon {
  transition: transform var(--transition-fast);
}

.door:hover .door__host,
.door:focus-within .door__host {
  color: var(--color-accent-deep);
}

.door:hover .door__host .icon,
.door:focus-within .door__host .icon {
  transform: translate(2px, -2px);
}

/* ------------------------------------------
   People
   ------------------------------------------ */

.people {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.person {
  width: 12.5rem;
  padding: 0.7rem 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.person__photo {
  position: relative;
  overflow: hidden;
  margin-block-end: var(--space-sm);
  border-radius: var(--radius-photo);
  background: var(--color-bg-khadi-deep);
  aspect-ratio: 4 / 5;
  box-shadow: inset 0 0 0 1px var(--color-photo-edge);
}

.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 22%);
}

/* No photograph available: a monogram, never an invented likeness */
.person__photo--monogram {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(200, 149, 47, 0.16), transparent 62%),
    var(--color-bg-khadi);
}

.person__photo--monogram span {
  color: var(--color-accent-mid);
  font-family: var(--font-family-heading);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.person__name {
  margin: 0 0 0.2rem;
  font-family: var(--font-family-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-primary);
}

.person__role {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  line-height: 1.4;
}

.person--founder {
  border-top: 3px solid var(--color-accent);
}

.person__badge {
  display: inline-block;
  margin-block-end: 0.35rem;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-pill);
  color: var(--color-accent-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 39.99rem) {
  .people {
    flex-direction: column;
    align-items: stretch;
  }

  .person {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    align-items: center;
    gap: var(--space-sm);
    width: auto;
    padding: 0.6rem;
    text-align: left;
  }

  .person__photo {
    margin: 0;
  }
}

/* ------------------------------------------
   Prose, pull quotes, feature list, notice
   ------------------------------------------ */

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin-block: var(--space-lg) var(--space-sm);
}

.prose h2:first-child,
.prose > :first-child {
  margin-block-start: 0;
}

.prose h3 {
  margin-block: var(--space-md) var(--space-xs);
}

.prose p,
.prose li {
  font-size: 1.0625rem;
}

.prose a {
  font-weight: 600;
}

.pull {
  position: relative;
  margin-block: var(--space-lg);
  padding-inline-start: var(--space-md);
  border-inline-start: 3px solid var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-family-heading);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
  font-weight: 600;
  line-height: 1.35;
}

.pull cite {
  display: block;
  margin-block-start: var(--space-xs);
  color: var(--color-text-muted);
  font-family: var(--font-family-base);
  font-size: var(--font-size-small);
  font-style: normal;
  font-weight: 600;
}

.feature-list {
  display: grid;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-block-start: 0.6em;
  background: var(--color-accent);
  transform: rotate(45deg);
}

.notice {
  padding: var(--space-sm) var(--space-md);
  border: 1px dashed var(--color-accent);
  border-radius: var(--radius-sm);
  background: rgba(200, 149, 47, 0.08);
  color: var(--color-text);
  font-size: var(--font-size-small);
}

.notice strong {
  color: var(--color-accent-deep);
}

.section--dark .notice {
  color: var(--color-text-on-dark);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(240, 197, 101, 0.5);
}

.section--dark .notice strong {
  color: var(--color-accent-soft);
}

/* ------------------------------------------
   Cards for contact / information
   ------------------------------------------ */

.info-card {
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.info-card h3 {
  margin-block-end: var(--space-xs);
  font-size: 1.15rem;
}

.info-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.info-list > div {
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.info-list > div:last-child {
  border-bottom: 0;
}

.info-list dt {
  color: var(--color-accent-deep);
  font-size: var(--font-size-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-list dd {
  margin: 0.2rem 0 0;
}

/* ------------------------------------------
   Forms
   ------------------------------------------ */

.form-group {
  display: grid;
  gap: var(--space-2xs);
}

.form-label {
  font-weight: 700;
  font-size: var(--font-size-small);
}

.form-label .required {
  color: var(--color-accent-deep);
}

.form-control {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #857c66;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus-visible {
  border-color: var(--color-focus);
}

textarea.form-control {
  min-height: 8rem;
  resize: vertical;
}

.form-note {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}

/* ------------------------------------------
   Footer — compact: tight vertical rhythm, two-up link groups on small screens
   ------------------------------------------ */

.site-footer {
  background: var(--color-primary-dark);
  color: var(--color-text-on-dark);
  padding-block: var(--space-lg) var(--space-sm);
  border-top: 3px solid var(--color-accent);
  font-size: var(--font-size-small);
}

.site-footer h2 {
  margin-block-end: 0.35rem;
  color: var(--color-accent-soft);
  font-family: var(--font-family-base);
  font-size: var(--font-size-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-grid {
  display: grid;
  gap: var(--space-md) var(--space-md);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-brand-col {
  grid-column: 1 / -1;
}

/* Small screens: pair the two long lists first, then the two short groups */
.footer-col--mandal { order: 1; }
.footer-col--colleges { order: 2; }
.footer-col--story { order: 3; }
.footer-col--contact { order: 4; }

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-col {
    order: 0;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (min-width: 75rem) {
  .footer-grid {
    grid-template-columns: 1.7fr 1fr 1fr 1.25fr 1.35fr;
    gap: var(--space-md);
  }

  .footer-brand-col {
    grid-column: auto;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-block-end: 0.6rem;
}

.footer-brand img {
  width: 48px;
  height: 48px;
}

.footer-brand__name {
  margin: 0;
  color: var(--color-text-inverse);
  font-family: var(--font-family-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}

.footer-brand__mr {
  margin: 0.15rem 0 0;
  color: var(--color-accent-soft);
  font-size: 0.85rem;
}

.site-footer p {
  margin-block-end: 0;
  line-height: 1.5;
}

.site-footer__links {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a,
.site-footer address a {
  display: inline-block;
  padding-block: 0.22rem;
  color: var(--color-text-on-dark);
  text-decoration: none;
}

.site-footer__links a:hover,
.site-footer address a:hover {
  color: var(--color-accent-soft);
  text-decoration: underline;
}

.site-footer address {
  font-style: normal;
  line-height: 1.5;
  overflow-wrap: anywhere;   /* the e-mail address must not push the page wider on very narrow phones */
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem var(--space-sm);
  margin-block-start: var(--space-md);
  padding-block-start: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--font-size-caption);
}

.signature {
  color: rgba(255, 255, 255, 0.7);
}

.signature a {
  color: inherit;
}

.footer-bottom__link {
  display: inline-block;
  margin-inline-start: 0.5rem;
  padding-block: 0.22rem;
  color: var(--color-text-on-dark);
}

.footer-bottom__link:hover {
  color: var(--color-accent-soft);
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-end: 3px;
  border-radius: 50%;
  vertical-align: middle;
}

.dot--saffron { background: #ff9933; }
.dot--white { background: #ffffff; border: 1px solid rgba(0, 0, 0, 0.18); }
.dot--green { background: #138808; }

/* ------------------------------------------
   Photo hero — institutional photograph behind the headline
   The photograph sits on the right and fades into deep navy under the copy
   (a left-to-right overlay anchored to the photograph's own edge, so the text
   always sits on a near-opaque ground and nothing is stretched past its native
   size on wide screens). Below 62rem the photograph is a band above the copy.
   ------------------------------------------ */

.photo-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 3px solid var(--color-accent);
  background: var(--color-primary-dark);
  color: var(--color-text-on-dark);
}

.photo-hero h1 {
  max-width: 20ch;
  color: var(--color-text-inverse);
}

.photo-hero .eyebrow {
  color: var(--color-accent-soft);
}

.photo-hero .lead {
  max-width: 36rem;
  margin-block-start: var(--space-sm);
  color: var(--color-text-on-dark);
}

.photo-hero a:not(.button) {
  color: var(--color-accent-soft);
}

.photo-hero a:not(.button):hover {
  color: var(--color-text-inverse);
}

.photo-hero :focus-visible {
  outline-color: var(--color-focus-on-dark);
}

.photo-hero__media {
  position: relative;
  overflow: hidden;
  height: clamp(11rem, 42vw, 18rem);
  margin: 0;
}

.photo-hero__media picture,
.photo-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.photo-hero__media img {
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  animation: hero-settle 1400ms ease-out both;
}

.photo-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 27, 53, 0) 30%, var(--color-primary-dark) 100%);
}

.photo-hero__copy {
  padding-block: var(--space-sm) var(--space-lg);
}

.photo-hero .button-row {
  margin-block-start: var(--space-md);
}

@keyframes hero-settle {
  from { transform: scale(1.05); }
  to { transform: none; }
}

@media (min-width: 62rem) {
  .photo-hero {
    display: flex;
    align-items: center;
    min-height: var(--hero-min, 29rem);
  }

  .photo-hero--page {
    --hero-min: 21rem;
  }

  .photo-hero__media {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -1;
    width: min(66%, 1100px);
    height: auto;
    /* feather the photograph's left edge into the navy ground so no seam can show */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14%);
  }

  .photo-hero__media::after {
    background:
      linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-primary-dark) 4%, rgba(8, 27, 53, 0.9) 22%, rgba(8, 27, 53, 0.42) 56%, rgba(8, 27, 53, 0) 100%),
      linear-gradient(0deg, rgba(8, 27, 53, 0.4), rgba(8, 27, 53, 0) 30%);
  }

  .photo-hero__copy {
    max-width: 36rem;
    padding-block: var(--space-xl);
  }
}

/* Portrait variant: engraved plate on deep navy (Annasaheb, Sane Guruji) */
.photo-hero--portrait {
  background:
    radial-gradient(36rem 24rem at 82% 40%, rgba(200, 149, 47, 0.2), transparent 66%),
    linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
}

.photo-hero__grid {
  display: grid;
  align-items: center;
  gap: var(--space-lg);
  padding-block: var(--space-lg);
}

@media (min-width: 62rem) {
  .photo-hero--portrait {
    min-height: 0;
  }

  .photo-hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: var(--space-xl);
    padding-block: var(--space-xl);
  }
}

.plate {
  width: min(100%, 25rem);
  margin: 0;
  padding: 0.7rem;
  border: 1px solid rgba(240, 197, 101, 0.6);
  border-radius: var(--radius-sm);
  background: var(--color-bg-khadi);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 62rem) {
  .plate {
    justify-self: end;
  }
}

.plate img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* Narrow screens: the plate leads (its height is fixed by its aspect ratio), so the headline's web-font swap
   cannot push it and cause a layout shift */
@media (max-width: 61.99rem) {
  .photo-hero--portrait .plate {
    order: -1;
    justify-self: center;
    width: min(100%, 19rem);
  }
}

.plate figcaption {
  padding: 0.65rem 0.35rem 0.1rem;
  color: var(--color-text-muted);
  font-size: var(--font-size-caption);
  line-height: 1.45;
}

/* ------------------------------------------
   Portfolio roster — institutions presented on this site (no link, no invented detail)
   ------------------------------------------ */

.roster {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .roster { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 62rem) {
  .roster { grid-template-columns: repeat(3, 1fr); }
}

.roster__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.15rem 1.25rem 1.15rem 1.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.roster__mark {
  position: absolute;
  inset: 1.1rem auto 1.1rem 0;
  width: 3px;
  background: var(--color-accent);
}

.roster__name {
  color: var(--color-primary);
  font-family: var(--font-family-heading);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.roster__name[lang="mr"] {
  font-family: var(--font-family-marathi);
  font-weight: 400;
  font-size: 1.1rem;
}

.roster__gloss,
.roster__kind {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}

.roster__kind {
  margin-block-start: 0.35rem;
  color: var(--color-accent-deep);
  font-size: var(--font-size-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ------------------------------------------
   Governing Council lists
   ------------------------------------------ */

.council {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .council { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 62rem) {
  .council { grid-template-columns: repeat(3, 1fr); }
}

.council li {
  display: flex;
  flex-direction: column;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--color-border);
}

.council__name {
  color: var(--color-primary);
  font-family: var(--font-family-heading);
  font-weight: 600;
  line-height: 1.3;
}

.council__role {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}

/* ------------------------------------------
   Leadership messages
   ------------------------------------------ */

.messages {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 62rem) {
  .messages { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
}

.message {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.message__mark {
  display: block;
  height: 2.6rem;
  margin-block-end: var(--space-2xs);
  color: var(--color-accent-mid);
  font-family: var(--font-family-heading);
  font-size: 4.5rem;
  line-height: 0.9;
}

.message__body p {
  font-size: 1.0625rem;
}

.message__by {
  margin-block-start: auto;
  padding-block-start: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.message__name {
  display: block;
  margin-block-start: var(--space-sm);
  color: var(--color-primary);
  font-family: var(--font-family-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.message__role {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}

/* ------------------------------------------
   Ideals — engraved portrait plates (Annasaheb page)
   ------------------------------------------ */

.ideals {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .ideals { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 75rem) {
  .ideals { grid-template-columns: repeat(4, 1fr); }
}

.ideal {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.ideal__plate {
  background: var(--color-bg-khadi);
  border-bottom: 1px solid var(--color-border);
}

.ideal__plate img {
  width: 100%;
  height: auto;
}

.ideal__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.15rem 1.25rem;
}

.ideal__kicker {
  color: var(--color-accent-deep);
  font-size: var(--font-size-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ideal__name {
  margin: 0;
  font-size: 1.25rem;
}

@media (min-width: 75rem) {
  .ideal__name {
    min-height: 2.6em;       /* four-up: reserve two lines so every card's text starts on the same line */
  }
}

.ideal__years {
  display: block;
  min-height: 1.5em;       /* keeps the text of all four cards on one line even when a lifespan is omitted */
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}

.ideal__text {
  margin: 0.2rem 0 0;
  color: var(--color-text);
  font-size: var(--font-size-small);
}

/* ------------------------------------------
   Link cards (public information, hubs)
   One interactive-card behaviour site-wide: lift + shadow, accent bar, arrow nudge.
   ------------------------------------------ */

.link-grid {
  display: grid;
  gap: var(--space-sm) var(--space-md);
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .link-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 62rem) {
  .link-grid--6 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 75rem) {
  .link-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.link-card {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.05rem 1.2rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  color: var(--color-text);
  text-decoration: none;
  transition: transform var(--transition-card), box-shadow var(--transition-card), border-color var(--transition-card);
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(var(--lift));
  border-color: rgba(200, 149, 47, 0.55);
  box-shadow: var(--shadow-card-hover);
  color: var(--color-text);
}

.link-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  color: var(--color-primary);
  font-family: var(--font-family-heading);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
}

.link-card__title .icon {
  color: var(--color-accent-deep);
  transition: transform var(--transition-fast);
}

.link-card:hover .link-card__title .icon,
.link-card:focus-visible .link-card__title .icon {
  transform: translate(2px, -2px);
}

.link-card__text {
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
}

@media (prefers-reduced-motion: reduce) {
  .link-card:hover,
  .link-card:focus-visible {
    transform: none;
  }

  .link-card:hover .link-card__title .icon,
  .link-card:focus-visible .link-card__title .icon {
    transform: none;
  }
}
