*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--color-cream);
  color: var(--color-text);
  font-family: var(--font-ui);
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
}

.foundation {
  width: min(100% - 2rem, 42rem);
  margin: clamp(3rem, 12vh, 8rem) auto;
  padding: clamp(1.5rem, 6vw, 3.5rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}

.foundation h1 {
  margin: 0;
  color: var(--color-maroon);
  font: 700 clamp(1.8rem, 7vw, 3rem) / 1.15 var(--font-display);
  overflow-wrap: anywhere;
}

.foundation__eyebrow {
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.foundation__notice {
  margin-block: 2rem;
  padding: 1rem;
  border-left: 4px solid var(--color-gold);
  background: var(--color-cream);
}

.foundation nav {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.75rem;
}

.foundation nav a {
  color: var(--color-maroon);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.site-header {
  position: relative;
  z-index: 5;
  background: linear-gradient(115deg, var(--color-maroon), var(--color-maroon-dark));
  color: white;
}

.site-header__inner,
.site-header__search,
.desktop-nav {
  width: min(100% - 2rem, 82rem);
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem 0.35rem;
}

.site-brand {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
  color: inherit;
  text-decoration: none;
}

.site-brand__title {
  overflow: hidden;
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-brand__subtitle {
  overflow: hidden;
  color: rgb(255 255 255 / 72%);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
}

.social-link {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 36%);
  border-radius: 50%;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.language-switch {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.1rem;
  padding: 0.2rem;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: var(--radius-pill);
}

.language-switch a {
  display: grid;
  min-width: 40px;
  min-height: 44px;
  place-items: center;
  padding-inline: 0.45rem;
  border-radius: var(--radius-pill);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.language-switch a[lang="kn"] {
  font-family: var(--font-kannada);
}

.language-switch a.is-active {
  background: white;
  color: var(--color-maroon);
}

.site-header__search {
  padding-block: 0.4rem 0.8rem;
}

.search-form {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  overflow: visible;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 12%);
}

.search-form input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.65rem 0.9rem 0.65rem 1rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
}

.search-form input::placeholder {
  color: rgb(255 255 255 / 72%);
}

.search-form button {
  flex: 0 0 44px;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
}

.search-suggestions {
  position: absolute;
  z-index: 15;
  inset: calc(100% + 0.35rem) 0 auto;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: white;
  box-shadow: var(--shadow-card);
  color: var(--color-text);
}

.search-suggestions[hidden] {
  display: none;
}

.search-suggestions a,
.search-suggestions span {
  min-height: 44px;
  padding: 0.7rem 1rem;
  color: inherit;
  text-decoration: none;
}

.search-suggestions a + a {
  border-top: 1px solid var(--color-border);
}

.search-suggestions a:hover {
  background: var(--color-cream);
}

.desktop-nav {
  display: none;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding-bottom: 0.65rem;
}

.desktop-nav a {
  min-height: 40px;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-pill);
  color: rgb(255 255 255 / 84%);
  font-size: 0.85rem;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  background: rgb(255 255 255 / 15%);
  color: white;
}

.page-shell {
  width: min(100% - 1.25rem, 82rem);
  min-height: 70vh;
  margin-inline: auto;
  padding-block: 1.25rem calc(6.75rem + var(--safe-bottom));
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 6vw, 3.25rem);
  border-radius: 1.75rem;
  background: linear-gradient(120deg, var(--color-maroon), #441012);
  box-shadow: var(--shadow-card);
  color: white;
}

.home-hero::after {
  position: absolute;
  top: -3rem;
  right: -2rem;
  width: 12rem;
  height: 12rem;
  border: 1px solid rgb(242 201 76 / 45%);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 2rem rgb(242 201 76 / 7%), 0 0 0 4rem rgb(242 201 76 / 5%);
  pointer-events: none;
}

.home-hero h1,
.page-heading h1,
.detail-heading h1 {
  margin: 0;
  overflow-wrap: anywhere;
}

.home-hero h1 {
  max-width: 18ch;
  font-size: clamp(1.7rem, 7vw, 3.25rem);
  line-height: 1.12;
}

.home-hero > p:not(.section-kicker) {
  max-width: 52ch;
  color: rgb(255 255 255 / 82%);
}

.section-kicker {
  margin: 0 0 0.45rem;
  color: #a17321;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-hero .section-kicker {
  color: var(--color-gold);
}

.home-section {
  margin-top: 2rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.section-heading h2,
.page-heading h1,
.content-card h2,
.empty-state h2,
.empty-state h3 {
  margin: 0;
  color: var(--color-maroon);
}

.section-heading h2 {
  font-size: clamp(1.2rem, 4.5vw, 1.65rem);
}

.text-link {
  flex: 0 0 auto;
  color: var(--color-maroon);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.guide-list {
  display: grid;
  gap: 0.8rem;
}

.guide-tile {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100px;
  align-items: center;
  gap: 0.85rem;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 1.25rem;
  background: linear-gradient(105deg, color-mix(in srgb, var(--tile-accent) 94%, #180f0d), color-mix(in srgb, var(--tile-accent) 64%, #281b15));
  box-shadow: var(--shadow-card);
  color: white;
  text-decoration: none;
}

.guide-tile::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 50%, rgb(0 0 0 / 16%));
  content: "";
  pointer-events: none;
}

.guide-tile__icon {
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 1rem;
  background: rgb(255 255 255 / 12%);
  font-size: 1.6rem;
}

.guide-tile__copy {
  z-index: 1;
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.guide-tile__copy strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.guide-tile__copy small {
  color: rgb(255 255 255 / 74%);
  font-size: 0.76rem;
}

.guide-tile__badge {
  z-index: 1;
  margin-left: auto;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-gold);
  color: var(--color-ink);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.page-heading {
  margin: 0.5rem 0 1.5rem;
}

.page-heading h1,
.detail-heading h1 {
  font: 700 clamp(1.7rem, 7vw, 2.6rem) / 1.15 var(--font-display);
}

.page-heading > p:last-child,
.detail-heading > p:last-child {
  margin: 0.5rem 0 0;
  color: var(--color-muted);
}

.entity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.entity-grid > [hidden] {
  display: none;
}

.entity-grid > [data-filter-card] {
  display: flex;
  min-width: 0;
}

.entity-card {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(100 67 40 / 7%);
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
  animation: rise-in 340ms both;
}

.entity-card__image-link {
  position: relative;
  display: block;
  flex: 0 0 180px;
  min-height: 180px;
  overflow: hidden;
  color: white;
  text-decoration: none;
}

.entity-card__image,
.image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 180px;
  place-items: center;
  background: linear-gradient(140deg, #7a1113, #b27643 60%, #e8c882);
  object-fit: cover;
}

.image-placeholder {
  position: relative;
  color: rgb(255 255 255 / 87%);
}

.image-placeholder::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(25 13 12 / 68%), transparent 70%);
  content: "";
}

.image-placeholder span {
  z-index: 1;
  font: 700 3.5rem / 1 var(--font-display);
  text-shadow: 0 2px 12px rgb(0 0 0 / 20%);
}

.image-placeholder--hero {
  min-height: clamp(230px, 55vw, 470px);
  border-radius: var(--radius-card);
}

.entity-card__title {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(0deg, rgb(20 14 12 / 82%), transparent);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.3;
}

.status-badge {
  position: absolute;
  z-index: 3;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.38rem 0.62rem;
  border-radius: var(--radius-pill);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
}

.status-badge--open {
  background: var(--color-open);
}

.status-badge--closed {
  background: var(--color-closed);
}

.status-badge--unknown {
  background: #5b5147;
}

.entity-card__body {
  display: grid;
  flex: 1;
  gap: 0.65rem;
  padding: 0.9rem;
}

.entity-card__tag {
  width: fit-content;
  margin: 0;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--color-cream);
  color: var(--color-maroon);
  font-size: 0.72rem;
  font-weight: 750;
}

.entity-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  margin-top: auto;
}

.entity-card__actions .button {
  width: 100%;
  min-width: 0;
  padding-inline: 0.45rem;
  font-size: 0.78rem;
}

.entity-card__description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.84rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.timing-pill {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border: 1px dashed #e3d5c0;
  border-radius: var(--radius-pill);
  background: var(--color-cream);
  font-size: 0.72rem;
}

.rating-line,
.public-rating {
  margin: 0;
  color: #946509;
  font-size: 0.8rem;
  font-weight: 700;
}

.rating-line span,
.public-rating span {
  color: var(--color-muted);
  font-weight: 400;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform 140ms ease, filter 140ms ease;
}

.button:active {
  transform: scale(0.98);
}

.button--dark {
  width: 100%;
  background: var(--color-ink);
  color: white;
}

.button--maroon {
  background: var(--color-maroon);
  color: white;
}

.button--light {
  position: relative;
  z-index: 1;
  background: white;
  color: var(--color-maroon);
}

.button--map {
  background: var(--color-map);
  color: white;
}

.button--outline {
  border-color: var(--color-border);
  background: white;
  color: var(--color-maroon);
}

.button--full {
  width: 100%;
  margin-top: 0.6rem;
}

.button:focus-visible,
.text-link:focus-visible,
.desktop-nav a:focus-visible,
.bottom-nav a:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid #eadfce;
  border-radius: var(--radius-pill);
  background: #fff8ed;
  color: var(--color-text);
  font-size: 0.78rem;
  cursor: pointer;
}

.filter-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bd8b37;
}

.filter-chip.is-active {
  border-color: var(--color-maroon);
  background: var(--color-maroon);
  color: white;
}

.filter-chip.is-active .filter-chip__dot {
  background: var(--color-gold);
}

.empty-state,
.content-card {
  padding: clamp(1rem, 4vw, 1.5rem);
  border: 1px solid rgb(100 67 40 / 7%);
  border-radius: var(--radius-card);
  background: var(--color-card);
  box-shadow: var(--shadow-card);
}

.empty-state {
  display: grid;
  min-height: 190px;
  align-content: center;
  justify-items: center;
  gap: 0.6rem;
  text-align: center;
}

.empty-state p {
  max-width: 42ch;
  margin: 0;
  color: var(--color-muted);
}

.empty-state__icon {
  color: var(--color-gold);
  font-size: 2rem;
}

.breadcrumb {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--color-muted);
  font-size: 0.75rem;
}

.breadcrumb a {
  color: var(--color-maroon);
  text-decoration: none;
}

.breadcrumb span[aria-current] {
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-heading {
  margin-bottom: 1.1rem;
}

.detail-heading h1 {
  color: var(--color-maroon);
}

.detail-layout {
  display: grid;
  gap: 1rem;
}

.detail-layout__main {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 1rem;
}

.detail-hero {
  position: relative;
  min-width: 0;
}

.detail-hero .status-badge {
  top: 1rem;
  left: 1rem;
}

.content-card h2 {
  font: 700 1.25rem / 1.3 var(--font-display);
}

.location-card .button {
  justify-self: start;
  margin-top: 0.55rem;
}

.content-card p {
  line-height: 1.65;
}

.editorial-card > p:last-child,
.section-copy {
  color: var(--color-text);
  line-height: 1.75;
}

.entity-section,
.feedback-card {
  scroll-margin-top: 1rem;
}

.detail-list {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.detail-list li::marker {
  color: var(--color-maroon);
}

.amenity-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.amenity-card {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgb(100 67 40 / 10%);
  border-radius: 1rem;
  background: #fffaf2;
}

.amenity-card__thumbnail {
  display: grid;
  width: 4.25rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 0.8rem;
  background: linear-gradient(145deg, #f4dfbc, #f0c97e);
  font-size: 1.8rem;
}

.amenity-card__copy {
  min-width: 0;
}

.amenity-card__copy h3,
.amenity-card__copy p {
  margin: 0;
}

.amenity-card__copy h3 {
  color: var(--color-ink);
  font-size: 0.95rem;
}

.amenity-card__copy p {
  margin-top: 0.2rem;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.timing-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-left: 4px solid var(--color-maroon);
}

.timing-card p:last-child {
  margin-bottom: 0;
}

.status-text--open {
  color: var(--color-open);
  font-weight: 700;
}

.status-text--closed {
  color: var(--color-closed);
  font-weight: 700;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin-top: 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: 0.8rem;
}

.detail-table {
  width: 100%;
  min-width: 260px;
  border-collapse: collapse;
  text-align: left;
}

.detail-table th,
.detail-table td {
  padding: 0.75rem;
  border-bottom: 1px dashed var(--color-border);
  vertical-align: top;
}

.detail-table tr:last-child > * {
  border-bottom: 0;
}

.detail-table th {
  background: var(--color-cream);
}

.map-frame {
  display: block;
  width: 100%;
  height: 260px;
  margin-block: 1rem;
  border: 0;
  border-radius: 1rem;
  background: #e8dfd2;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.related-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.related-list a {
  color: var(--color-maroon);
  font-weight: 650;
  text-decoration: none;
}

.campus-connections {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}

.campus-connection {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: var(--color-card);
  color: var(--color-text);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.campus-connection:hover,
.campus-connection:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.campus-connection:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

.campus-connection__thumbnail {
  position: relative;
  display: flex;
  min-height: 7.5rem;
  overflow: hidden;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0.85rem;
  background:
    radial-gradient(ellipse at 88% 8%, rgb(255 255 255 / 24%) 0 18%, transparent 19%),
    linear-gradient(135deg, #7a1113, #a94d3d);
  color: white;
}

.campus-connection__thumbnail::after {
  position: absolute;
  right: -1.2rem;
  bottom: -3.6rem;
  width: 9rem;
  height: 9rem;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  content: "";
}

.campus-connection__thumbnail--hostels {
  background: linear-gradient(135deg, #a6542d, #d08c52);
}

.campus-connection__thumbnail--sports {
  background: linear-gradient(135deg, #286444, #66a46e);
}

.campus-connection__thumbnail--cultural {
  background: linear-gradient(135deg, #69417d, #a278b4);
}

.campus-connection__thumbnail--clubs {
  background: linear-gradient(135deg, #285f7b, #5798ad);
}

.campus-connection__thumbnail--amenities {
  background: linear-gradient(135deg, #896522, #c09a47);
}

.campus-connection__thumbnail--placement {
  background: linear-gradient(135deg, #38547b, #708bb3);
}

.campus-connection__symbol,
.campus-connection__label {
  position: relative;
  z-index: 1;
}

.campus-connection__symbol {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
  font-size: 1.25rem;
  font-weight: 800;
}

.campus-connection__label {
  max-width: 65%;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 999px;
  background: rgb(0 0 0 / 12%);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.campus-connection__content {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
}

.campus-connection__content strong {
  color: var(--color-maroon);
  line-height: 1.35;
}

.campus-connection__summary {
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.campus-connection__link {
  color: var(--color-maroon);
  font-size: 0.82rem;
  font-weight: 750;
}



.aside-status {
  line-height: 1.6;
}

.feedback-form,
.feedback-form label,
.search-filters label {
  display: grid;
  gap: 0.4rem;
}

.feedback-form {
  gap: 1rem;
  margin-top: 1rem;
}

.form-grid,
.search-filters {
  display: grid;
  gap: 0.85rem;
}

.form-grid__wide {
  grid-column: 1 / -1;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea,
.search-filters input,
.search-filters select {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d8cbbb;
  border-radius: 0.7rem;
  background: white;
  color: var(--color-text);
  font: inherit;
}

.feedback-form textarea {
  min-height: 120px;
  resize: vertical;
}

.feedback-form input:focus-visible,
.feedback-form select:focus-visible,
.feedback-form textarea:focus-visible,
.search-filters input:focus-visible,
.search-filters select:focus-visible {
  outline: 3px solid rgb(242 201 76 / 70%);
  border-color: var(--color-maroon);
}

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.form-note,
.muted-copy {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.8rem;
}

.notice {
  padding: 0.75rem;
  border-radius: 0.75rem;
}

.notice--success {
  background: #e6f4e9;
  color: #175d30;
}

.notice--error {
  background: #fff0ee;
  color: #8b2424;
}

.menu-card h2 {
  margin-bottom: 0.4rem;
}

.menu-sample-note {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid var(--color-gold);
  border-radius: 0.4rem;
  background: #fff5df;
  color: var(--color-ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.week-menu {
  margin-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.week-menu > summary {
  min-height: 44px;
  padding-block: 0.85rem;
  color: var(--color-maroon);
  font-weight: 700;
  cursor: pointer;
}

.week-menu__days {
  display: grid;
  gap: 0.8rem;
}

.week-menu__days h3 {
  margin-bottom: 0;
}

.result-count {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.site-footer {
  display: none;
  padding: 1rem;
  color: var(--color-muted);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  right: max(0.5rem, var(--safe-right));
  bottom: max(0.45rem, var(--safe-bottom));
  left: max(0.5rem, var(--safe-left));
  display: flex;
  max-width: 38rem;
  min-height: 70px;
  align-items: center;
  justify-content: space-around;
  gap: 0.1rem;
  margin-inline: auto;
  padding: 0.35rem;
  border: 1px solid #a17c2e;
  border-radius: 1.5rem;
  background: var(--color-ink);
  box-shadow: 0 0.5rem 1.6rem rgb(0 0 0 / 22%);
  color: white;
}

.bottom-nav__item {
  display: grid;
  min-width: 44px;
  min-height: 54px;
  flex: 1 1 0;
  align-content: center;
  justify-items: center;
  gap: 0.13rem;
  padding: 0.22rem 0.12rem;
  border-radius: 1rem;
  color: rgb(255 255 255 / 72%);
  font-size: clamp(0.55rem, 2vw, 0.67rem);
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.bottom-nav__item span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav__icon {
  display: grid;
  width: 34px;
  height: 30px;
  place-items: center;
  border-radius: 0.65rem;
  font-size: 1.2rem;
}

.bottom-nav__item.is-active {
  color: var(--color-gold);
  font-weight: 750;
}

.bottom-nav__item.is-active .bottom-nav__icon {
  background: var(--color-gold);
  box-shadow: 0 0 18px rgb(242 201 76 / 38%);
  color: var(--color-ink);
  transform: translateY(-3px);
}

.bottom-nav__more {
  position: relative;
  flex: 1 1 0;
}

.bottom-nav__more summary {
  list-style: none;
}

.bottom-nav__more summary::-webkit-details-marker {
  display: none;
}

.more-sheet {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.7rem);
  display: grid;
  min-width: 180px;
  padding: 0.45rem;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  background: white;
  box-shadow: var(--shadow-card);
}

.more-sheet a {
  min-height: 44px;
  padding: 0.7rem;
  border-radius: 0.65rem;
  color: var(--color-text);
  text-decoration: none;
}

.more-sheet a:hover {
  background: var(--color-cream);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

button,
a {
  font: inherit;
  touch-action: manipulation;
}

button {
  color: inherit;
}

img,
video {
  max-width: 100%;
}

[lang="kn"],
.locale-kn {
  font-family: var(--font-kannada);
}

.gallery {
  --gallery-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
  border-radius: var(--gallery-radius);
  background: #e8dfd2;
}

.gallery__viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.gallery__track {
  display: flex;
  transition: transform 260ms ease;
  will-change: transform;
}

.gallery__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.gallery__slide img,
.gallery__slide video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery__slide .video-frame,
.video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #1c1410;
}

.video-frame-wrap {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  background: #1c1410;
}

.video-frame-wrap .video-frame {
  height: 100%;
}

.gallery__controls {
  position: absolute;
  inset: 50% 0 auto;
  display: flex;
  justify-content: space-between;
  padding-inline: 0.75rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.gallery__button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 50%;
  background: rgb(28 20 16 / 72%);
  color: white;
  cursor: pointer;
  pointer-events: auto;
}

.gallery__thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem;
  scrollbar-width: thin;
}

.gallery__thumbnail {
  flex: 0 0 64px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  background: transparent;
  cursor: pointer;
}

.gallery__thumbnail[aria-current="true"] {
  border-  color: var(--color-maroon);
}

#section-rules .detail-list,
#section-notes .detail-list {
  padding-left: 0;
  list-style: none;
}

#section-rules .detail-list li,
#section-notes .detail-list li {
  position: relative;
  padding: 0.7rem 0.8rem 0.7rem 2.2rem;
  border-left: 3px solid var(--color-maroon);
  border-radius: 0 0.7rem 0.7rem 0;
  background: #fffaf2;
}

#section-rules .detail-list li::before,
#section-notes .detail-list li::before {
  position: absolute;
  left: 0.7rem;
  color: var(--color-open);
  content: "✓";
  font-weight: 800;
}

.contact-list {
  overflow-wrap: anywhere;
}

.gallery__thumbnail img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery__thumbnail span {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  background: var(--color-ink);
  color: white;
}

.gallery__thumbnail:focus-visible,
.gallery__button:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 360px) {
  .page-shell {
    width: min(100% - 2rem, 82rem);
  }

  .entity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .page-shell {
    padding-top: 1.75rem;
  }

  .home-hero {
    min-height: 270px;
    align-content: center;
  }

  .guide-tile {
    min-height: 120px;
    padding-inline: 1.35rem;
  }

  .entity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .campus-connections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .amenity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid,
  .search-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-filters > button {
    align-self: end;
    justify-self: start;
  }

  .week-menu__days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .site-header__inner,
  .site-header__search,
  .desktop-nav {
    width: min(100% - 3rem, 82rem);
  }

  .site-header__inner {
    min-height: 84px;
    padding-block: 1rem 0.4rem;
  }

  .site-header__search {
    position: absolute;
    top: 1.25rem;
    right: max(calc((100vw - 82rem) / 2), 1.5rem);
    width: min(22rem, 30vw);
    margin: 0;
  }

  .site-header__actions {
    margin-left: auto;
    padding-right: min(24rem, 32vw);
  }

  .desktop-nav {
    display: flex;
  }

  .page-shell {
    min-height: 74vh;
    padding-bottom: 2rem;
  }

  .entity-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .entity-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    display: block;
  }

  .bottom-nav {
    display: none;
  }

  .search-filters {
    grid-template-columns: minmax(200px, 1fr) minmax(180px, 0.6fr) minmax(220px, 0.8fr) auto;
    align-items: end;
  }
}

@media (max-width: 359px) {
  .entity-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header__inner,
  .site-header__search {
    width: calc(100% - 1rem);
  }

  .site-brand__subtitle {
    max-width: 48vw;
    font-size: 0.58rem;
  }

  .guide-tile {
    gap: 0.5rem;
    padding: 0.7rem;
  }

  .guide-tile__icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .guide-tile__badge {
    max-width: 5.5rem;
    overflow: hidden;
    font-size: 0.6rem;
    text-overflow: ellipsis;
  }

  .bottom-nav {
    right: 0.35rem;
    left: 0.35rem;
    min-height: 64px;
  }

  .bottom-nav__item {
    font-size: 0.52rem;
  }
}
