@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --page-bg: #ffffff;
  --surface: #ffffff;
  --text: #111111;
  --muted: #4b4b4b;
  --line: #d9d9d9;
  --soft-line: #efefef;
  --header-a: #12a26b;
  --header-b: #97ea73;
  --pill: #ffffff;
  --accent-green: #26bf6b;
  --accent-red: #ff575f;
  --chip-blue: #3aa9ff;
  --chip-red: #ff6161;
  --card-red: #ff5b63;
  --card-orange: #e77b00;
  --card-yellow: #ffe070;
  --card-blue: #2311bd;
  --card-purple: #6e24eb;
  --card-green: #2ac06f;
  --content: min(1640px, calc(100vw - 72px));
  --sidebar-w: 230px;
  --card-w: 278px;
  --card-h: 388px;
  --card-big-w: 598px;
  --card-radius: 6px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--page-bg);
}

[hidden] {
  display: none !important;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.main-shell {
  flex: 1;
}

.container {
  width: var(--content);
  max-width: 100%;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(90deg, var(--header-a), var(--header-b));
}

.site-header__inner {
  width: 100%;
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  position: relative;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: start;
}

.brand-mark img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

.brand-divider {
  width: 3px;
  height: 70px;
  background: rgba(0, 0, 0, 0.35);
}

.brand-uni {
  height: 70px;
}

.brand-copy {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  position: static;
  justify-self: center;
}

.nav-link {
  padding: 11px 28px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.nav-link.is-active {
  background: #ffffff;
  color: #111111;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 0;
  justify-self: end;
  position: relative;
}

/* .header-search replaced by .header-search-wrap */

.header-manage {
  padding: 12px 22px;
  border-radius: 999px;
  background: #ffffff;
  border: 0;
  color: #111111;
  font-size: 20px;
  font-weight: 700;
}

.stack-md {
  display: grid;
  gap: 14px;
}

.header-avatar {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--accent-red);
  display: grid;
  place-items: center;
}

.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-dropdown {
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  width: 28px;
  height: 56px;
  padding: 0;
  display: grid;
  place-items: center;
  align-self: center;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 24px;
  min-width: 220px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.14);
  border: 1px solid #e8e8e8;
  overflow: hidden;
  z-index: 60;
}

.profile-menu__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border: 0;
  background: #ffffff;
  color: #111111;
  font-size: 16px;
  font-weight: 600;
}

.profile-menu__item + .profile-menu__item {
  border-top: 1px solid #eeeeee;
}

.profile-menu__item--danger {
  color: #b53030;
}

#userBadge {
  display: none;
}

.site-footer {
  padding: 32px 0 36px;
}

.site-footer__inner {
  width: var(--content);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #666666;
  font-size: 14px;
}

.site-footer__brand {
  font-weight: 800;
  color: #111111;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-lite {
  width: var(--content);
  margin: 30px auto 0;
}

.topbar-lite__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 40px;
  background: linear-gradient(90deg, var(--header-a), var(--header-b));
  padding: 18px 22px;
}

.topbar-lite .brand-mark img {
  height: 52px;
}

.topbar-lite .brand-copy {
  display: none;
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 16px 26px;
  font-size: 18px;
  font-weight: 700;
}

.btn-small {
  padding: 14px 22px;
}

.btn-primary {
  background: #121a26;
  color: #ffffff;
}

.btn-secondary {
  background: #f1f1ed;
  color: #162021;
}

.btn-ghost {
  background: var(--accent-green);
  color: #ffffff;
}

.hero-shell {
  background: linear-gradient(180deg, #85e59d 0%, #8be89f 100%);
}

.hero {
  width: var(--content);
  margin: 0 auto;
}

.hero--landing {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 24px;
}

.hero-copy {
  padding: 140px 10px 80px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(72px, 8vw, 122px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 780px;
  margin: 32px 0 0;
  color: #274137;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 42px;
}

.hero-field {
  flex: 1;
  min-height: 66px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  background: #ffffff;
  border-radius: 18px;
}

.hero-field input {
  width: 100%;
  border: 0;
  outline: none;
  color: #737373;
  font-size: 18px;
  font-weight: 700;
}

.hero-note {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 700;
  color: #365340;
}

.signup-layout {
  width: min(1160px, calc(100vw - 72px));
  margin: 0 auto;
  padding: 72px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: start;
}

.signup-copy h1 {
  margin: 0;
  font-size: clamp(52px, 5vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.signup-copy p {
  margin: 24px 0 0;
  font-size: 20px;
  line-height: 1.5;
  color: #355245;
  max-width: 520px;
}

.signup-form {
  display: grid;
  gap: 18px;
}

.signup-form label {
  display: grid;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #23362d;
}

.signup-form input,
.signup-form select {
  min-height: 58px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid #d7ded9;
  background: #ffffff;
  color: #111111;
}

.signup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.signup-interest-block {
  display: grid;
  gap: 12px;
}

.signup-interest-block h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.interest-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.interest-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid #d9e2db;
  background: #f8fbf8;
  font-size: 15px;
  font-weight: 600;
}

.interest-option input {
  accent-color: var(--accent-green);
}

.device-stack {
  position: relative;
  padding-top: 72px;
}

.device-rail {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 34px;
  border-radius: 0 0 32px 32px;
  background: linear-gradient(90deg, #151515, #2b2b2b);
}

.device-card {
  margin-top: 40px;
  width: 100%;
  min-height: 610px;
  border-radius: 36px;
  background: #f8f8f8;
  position: relative;
  overflow: hidden;
}

.device-phone {
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  min-height: 620px;
  border-radius: 42px;
  background: linear-gradient(180deg, #ffffff 0%, #efefef 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  padding: 28px 24px;
}

.device-phone h3 {
  margin: 0 0 28px;
  font-size: 34px;
  font-weight: 800;
}

.device-list {
  display: grid;
  gap: 18px;
}

.device-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: center;
  padding: 10px 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.device-row__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, #5d8f79, #0f5c3b 65%, #084129);
}

.device-row__text {
  display: grid;
  gap: 8px;
}

.device-row__text strong,
.device-row__text span {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: #ececec;
}

.device-row__text strong {
  width: 82%;
}

.device-orb {
  position: absolute;
  left: 30px;
  bottom: 34px;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #ffffff, #8e8e8e 72%, #6c6c6c);
}

.device-poster {
  width: 100%;
  height: 300px;
  margin-top: 28px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 34%, rgba(232, 226, 127, 0.46), transparent 20%),
    radial-gradient(circle at 66% 68%, rgba(255, 109, 196, 0.68), transparent 18%),
    radial-gradient(circle at 88% 38%, rgba(102, 187, 255, 0.72), transparent 14%),
    linear-gradient(135deg, #6a7052, #35352d);
}

.page-intro {
  display: none;
}

.mock-page {
  padding: 54px 0 40px;
}

.mock-page__back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
}

.mock-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.page-title {
  margin: 0;
  font-size: 58px;
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.directory-title {
  margin: 0 0 18px;
  font-size: 29px;
  font-weight: 800;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 30px 0 22px;
  flex-wrap: wrap;
}

.filter-row__title {
  font-size: 32px;
  font-weight: 800;
}

.chip-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.chip {
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 6px 16px;
  background: #ffffff;
  font-size: 18px;
  font-weight: 500;
}

.chip--sport {
  color: var(--chip-blue);
}

.chip--food {
  color: var(--chip-red);
}

.chip--free,
.chip--neutral {
  color: #111111;
  border-color: transparent;
}

.hero-banner {
  position: relative;
  min-height: 444px;
  margin-top: 0;
  background: url("/static/Screenshot%202025-12-16%20at%2022.42.23.png") center/cover no-repeat;
  overflow: hidden;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.04));
}

.hero-banner__card,
.hero-banner__note,
.hero-banner__cta {
  position: relative;
  z-index: 1;
}

.hero-banner__card {
  position: absolute;
  bottom: 110px;
  left: 82px;
  width: 564px;
  min-height: 144px;
  border-radius: 34px;
  padding: 18px 26px;
  color: #ffffff;
  background: rgba(30, 30, 30, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-banner__card h2 {
  margin: 0 0 16px;
  font-size: 26px;
  text-decoration: underline;
  font-weight: 500;
}

.hero-banner__meta {
  display: grid;
  gap: 10px;
  font-size: 22px;
}

.hero-banner__meta span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-banner__note {
  position: absolute;
  top: 50px;
  left: 640px;
  max-width: 220px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.4;
}

.hero-banner__cta {
  position: absolute;
  left: 82px;
  bottom: 52px;
}

.section {
  padding: 0;
  min-width: 0;
  max-width: 100%;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 18px;
}

.section-head h2,
.section-head p {
  margin: 0;
}

.section-head h2 {
  font-size: 32px;
  font-weight: 800;
}

.section-head p {
  display: none;
}

/* ── Carousel wrap with scroll arrows ── */
.carousel-wrap {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.carousel,
.card-grid {
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 4px 16px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  width: 100%;
  max-width: 100%;
}

.carousel::-webkit-scrollbar,
.card-grid::-webkit-scrollbar {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 130px;
  border: none;
  background: rgba(20, 20, 20, 0.7);
  color: #fff;
  font-size: 28px;
  font-weight: 400;
  cursor: pointer;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  border-radius: 4px;
}

.carousel-arrow:hover {
  background: rgba(20, 20, 20, 0.9);
}

.carousel-arrow--right {
  right: 0;
  border-radius: 4px 0 0 4px;
}

.carousel-arrow--left {
  left: 0;
  border-radius: 0 4px 4px 0;
}

.carousel-arrow[hidden] {
  display: none;
}

/* metric-strip: grid layout defined in overrides section */

.event-card {
  position: relative;
  flex: 0 0 auto;
  width: var(--card-w);
  min-width: var(--card-w);
  height: var(--card-h);
  min-height: auto;
  padding: 14px;
  border: 0;
  border-radius: var(--card-radius);
  box-shadow: none;
  color: #ffffff;
  background: transparent;
  overflow: hidden;
  text-decoration: none;
  transition:
    width 260ms ease,
    min-width 260ms ease,
    flex-basis 260ms ease,
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
  scroll-snap-align: start;
}

.event-card:nth-child(5n + 1) .event-card__media {
  background: var(--card-red);
}

.event-card:nth-child(5n + 2) .event-card__media {
  background: var(--card-orange);
}

.event-card:nth-child(5n + 3) .event-card__media {
  background: var(--card-yellow);
  color: #ffffff;
}

.event-card:nth-child(5n + 4) .event-card__media {
  background: var(--card-blue);
}

.event-card:nth-child(5n + 5) .event-card__media {
  background: var(--card-purple);
}

.event-card__media {
  position: absolute;
  inset: 0;
  min-height: auto;
  border-radius: var(--card-radius);
  padding: 14px 16px 16px;
  display: block;
  background: var(--card-red);
}

.event-card__org {
  display: inline-block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  max-width: calc(var(--card-w) - 36px);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  white-space: pre-line;
  overflow: hidden;
  word-break: break-word;
}

.event-card__org--medium {
  font-size: 17px;
  line-height: 1.3;
}

.event-card__org--small {
  font-size: 15px;
  line-height: 1.25;
}

.event-card__body {
  position: absolute;
  inset: 0;
  padding: 14px 18px 16px;
  z-index: 2;
}

/* ── Ranked / Top 10 numbered cards ── */
.ranked-card {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  scroll-snap-align: start;
}

.ranked-card .rank-number {
  display: flex;
  align-items: flex-end;
  font-size: 260px;
  font-weight: 900;
  line-height: 0.7;
  color: transparent;
  -webkit-text-stroke: 4px var(--header-a);
  paint-order: stroke fill;
  z-index: 1;
  pointer-events: none;
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: normal;
  margin-right: -30px;
  transition: opacity 250ms ease;
  user-select: none;
}

.ranked-card .event-card {
  position: relative;
  z-index: 2;
}

.ranked-card:hover .rank-number {
  opacity: 1;
}

.event-card__hover {
  position: absolute;
  top: 14px;
  right: 18px;
  bottom: 18px;
  width: calc(100% - var(--card-w) - 38px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.event-card__description {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.4;
  overflow: hidden;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.event-meta {
  position: absolute;
  left: 18px;
  width: min(calc(100% - 36px), calc(var(--card-w) - 36px));
  bottom: 18px;
  display: grid;
  gap: 6px;
  color: #ffffff;
  line-height: 1.15;
  min-width: 0;
}

.event-meta span {
  min-width: 0;
  overflow: hidden;
  word-break: break-word;
}

.event-meta__title {
  font-size: 27px;
  font-weight: 500;
  text-decoration: underline;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.event-meta__title--medium {
  font-size: 24px;
}

.event-meta__title--small {
  font-size: 20px;
  line-height: 1.12;
}

.event-meta__title--tiny {
  font-size: 17px;
  line-height: 1.1;
}

.event-meta__time {
  font-size: 25px;
  font-weight: 400;
}

.event-meta__price {
  font-size: 21px;
  font-weight: 400;
  opacity: 0.96;
}

.event-actions,
.chip-row:empty {
  display: none;
}

.sponsored-card {
  width: var(--card-w);
  min-width: var(--card-w);
}

.sponsored-card .event-card__media {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.05)),
    linear-gradient(135deg, #7b3200, #dd8b2f 52%, #5e1828);
}

.sponsored-card__brand {
  display: inline-block;
  padding: 10px 12px;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.sponsored-card__button {
  position: absolute;
  left: 14px;
  bottom: 14px;
  border: 0;
  border-radius: 8px;
  background: #1fbe67;
  color: #ffffff;
  padding: 8px 14px;
  font-size: 18px;
  font-weight: 800;
}

.sponsored-card__caption {
  position: absolute;
  left: 14px;
  bottom: -34px;
  color: #111111;
  font-size: 18px;
  font-weight: 700;
}

.event-card__hover::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0;
  bottom: 0;
  width: 2px;
  border-left: 4px dashed rgba(255, 255, 255, 0.75);
}

@media (hover: hover) and (pointer: fine) {
  .carousel:hover .event-card,
  .card-grid:hover .event-card {
    filter: saturate(0.85);
  }

  .event-card:hover {
    width: calc(var(--card-w) * 2);
    min-width: calc(var(--card-w) * 2);
    z-index: 4;
    filter: none;
    transition: flex-basis 0.3s ease, width 0.3s ease, min-width 0.3s ease;
  }

  .event-card:hover .event-card__hover {
  opacity: 1;
}

}

.hero--login {
  align-items: center;
}

.hero-cta--stack {
  display: grid;
  gap: 14px;
}

.hero-banner__copy {
  display: none;
}

.signup-layout--compact,
.signup-layout--prefs {
  width: min(1320px, calc(100vw - 72px));
}

.account-type-switch {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.account-type-card {
  text-align: left;
}

.account-type-card strong {
  display: block;
  margin-bottom: 6px;
}

.preferences-block {
  display: grid;
  gap: 14px;
}

.preferences-block__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.preferences-block__head h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.preferences-block__head span {
  font-size: 14px;
  color: #51635a;
}

.interest-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.search-field {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 0 16px 0 10px;
  border-radius: 999px;
  border: 1px solid #d7ded9;
  background: #ffffff;
}

.search-field input {
  border: 0;
  outline: none;
  background: transparent;
  min-width: 0;
}

.search-field__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(18, 162, 107, 0.12);
  color: #1f7a52;
  font-size: 24px;
}

.filter-toolbar__stack {
  display: grid;
  gap: 14px;
  min-width: min(680px, 100%);
}

.detail-page {
  width: min(1660px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 48px 0 36px;
  display: grid;
  gap: 28px;
  overflow: clip;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.86fr) minmax(240px, 280px);
  gap: clamp(20px, 2.4vw, 40px);
  align-items: start;
}

.detail-hero {
  display: grid;
  gap: 16px;
}

.detail-subtitle {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
}

.detail-image {
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18)),
    url("/static/Screenshot%202025-12-16%20at%2022.42.23.png") center/cover no-repeat;
  min-height: 360px;
  aspect-ratio: 1.35;
}

.detail-image--society {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18)),
    url("/static/Tree%20House%20(800%20x%20200%20px).png") center/cover no-repeat;
}

.detail-meta {
  display: grid;
  gap: 18px;
  min-height: 360px;
  padding: 20px 0 20px 28px;
  border-left: 4px solid #d8d8d8;
  border-right: 4px solid #d8d8d8;
}

.detail-meta__item {
  font-size: clamp(18px, 1.9vw, 26px);
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-wrap: anywhere;
}

.detail-meta__item em {
  font-style: normal;
  color: #555555;
}

.detail-meta__item--muted {
  color: #555555;
  font-size: 18px;
}

.detail-cta {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  padding-top: 100px;
}

.detail-cta h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
}

.detail-cta .btn,
.detail-cta .share-link {
  width: 100%;
  max-width: 280px;
}

.detail-side-ad {
  margin-top: 120px;
  width: 100%;
  max-width: 280px;
}

.detail-copy {
  display: grid;
  gap: 14px;
}

.detail-copy h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
}

.detail-copy p {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.45;
}

.detail-stack {
  display: grid;
  gap: 18px;
}

.preferences-layout,
.auth-shell {
  width: min(1320px, calc(100vw - 72px));
  margin: 0 auto;
}

.auth-copy,
.signup-copy {
  display: grid;
  align-content: start;
}

.signup-form,
.preferences-form {
  display: grid;
  gap: 18px;
}

.signup-form label {
  display: grid;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #23362d;
}

.signup-form input,
.signup-form select,
.signup-form textarea,
.preferences-form input,
.preferences-form select,
.preferences-form textarea {
  min-height: 58px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid #d7ded9;
  background: #ffffff;
  color: #111111;
}

.signup-form textarea,
.preferences-form textarea {
  padding-top: 14px;
  min-height: 120px;
  resize: vertical;
}

.preferences-form {
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dde5df;
  box-shadow: 0 24px 60px rgba(18, 26, 38, 0.07);
}

.signup-layout--prefs .signup-copy {
  padding-top: 8px;
}

.profile-editor {
  display: grid;
  gap: 24px;
}

.hero-note {
  max-width: 520px;
}

.detail-field--readonly {
  align-items: center;
}

.empty-state {
  background: #ffffff;
}

@media (max-width: 1100px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-meta {
    border-left: 0;
    border-right: 0;
    min-height: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .detail-cta {
    padding-top: 0;
  }

  .signup-layout--compact,
  .signup-layout--prefs,
  .preferences-layout,
  .auth-shell,
  .detail-page {
    width: min(100vw - 36px, 1320px);
  }
}

@media (max-width: 760px) {
  .interest-tile-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-side-ad {
    margin-top: 36px;
  }

  .hero-banner__copy {
    left: 24px;
    width: calc(100% - 48px);
    bottom: 78px;
  }

  .hero-copy {
    padding-top: 64px;
  }

  .hero-copy h1 {
    font-size: 60px;
  }

  .account-type-switch {
    gap: 12px;
  }
}
.society-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

/* society-card styles consolidated below in overrides section */

.badge {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 18px;
  font-weight: 500;
}

.badge--success,
.badge--warm {
  background: transparent;
}

.mock-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr) minmax(220px, 0.5fr);
  gap: 36px;
  align-items: start;
  margin-top: 46px;
}

.mock-art {
  display: grid;
  gap: 20px;
}

.mock-art__image {
  width: 100%;
  min-height: 320px;
  height: clamp(320px, 38vw, 540px);
  background: url("/static/Screenshot%202025-12-16%20at%2022.42.23.png") center/cover no-repeat;
  border-radius: 18px;
}

.mock-detail {
  min-height: 320px;
  border-left: 4px solid #d5d5d5;
  border-right: 4px solid #d5d5d5;
  padding: 36px 34px;
  overflow-wrap: anywhere;
}

.mock-cta {
  padding-top: 120px;
  text-align: center;
  min-width: 0;
}

.mock-cta h3 {
  margin: 0 0 22px;
  font-size: 28px;
  font-weight: 800;
}

.mock-cta a,
.mock-cta button {
  width: 100%;
  max-width: 282px;
  display: inline-flex;
  justify-content: center;
}

.mock-cta .share-link {
  display: block;
  margin-top: 24px;
  font-size: 20px;
  text-decoration: underline;
}

.mock-body-copy {
  margin-top: 34px;
}

.mock-body-copy h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
}

.mock-body-copy p {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.45;
}

.mock-body-copy .chip-row {
  margin-top: 20px;
}

.account-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 34px;
  padding: 36px 0 48px;
}

.side-panel {
  position: sticky;
  top: 120px;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  gap: 28px;
}

.profile-block {
  display: none;
}

.sidebar-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}

.side-nav {
  gap: 12px;
}

.side-nav button {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  padding: 8px 0;
  color: #555555;
  font-size: 23px;
  font-weight: 700;
}

.side-nav button.is-active {
  color: #111111;
  background: transparent;
}

.dashboard-grid {
  gap: 26px;
}

.account-panel {
  display: grid;
  gap: 26px;
  overflow: hidden;
}

.account-helper {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #222222;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.membership-card {
  min-height: 270px;
  padding: 18px 18px 20px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--card-orange);
  display: grid;
  align-content: space-between;
}

.membership-card:nth-child(3n + 1) {
  background: var(--card-orange);
}

.membership-card:nth-child(3n + 2) {
  background: var(--card-red);
}

.membership-card:nth-child(3n + 3) {
  background: var(--card-green);
}

.membership-card__logo {
  white-space: pre-line;
  font-size: 18px;
  line-height: 1.3;
}

.membership-card__name {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
}

.membership-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 10px 16px;
  border-radius: 999px;
  background: #21c06a;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.details-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.details-avatar {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1.1;
  border-radius: 10px;
  background: var(--accent-red);
  position: relative;
  overflow: hidden;
}

.details-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-avatar__edit {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 70px;
  height: 70px;
  border: 0;
  border-radius: 50%;
  background: #59c86f;
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
  cursor: pointer;
}

.details-fields {
  display: grid;
  gap: 22px;
}

.detail-field {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
}

.detail-field__label {
  font-size: 24px;
  font-weight: 500;
}

.detail-field__value {
  font-size: 24px;
  color: #222222;
}

.detail-field__input {
  min-height: 56px;
  padding: 0 16px;
  border: 2px solid #d4d4d4;
  border-radius: 16px;
  font-size: 20px;
}

.security-box,
.notif-box {
  border: 3px solid #313131;
  border-radius: 32px;
  padding: 18px 24px;
  font-size: 22px;
}

.notif-box {
  display: grid;
  gap: 16px;
}

.notif-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.notif-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #313131;
}

.side-nav__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.side-nav__icon {
  width: 34px;
  display: inline-flex;
  justify-content: center;
}

.account-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.account-header h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 800;
}

.account-header p {
  margin: 10px 0 0;
  font-size: 22px;
  color: #444444;
}

.dashboard-tabs {
  display: inline-flex;
  gap: 0;
  border: 3px solid #313131;
  border-radius: 999px;
  overflow: hidden;
}

.dashboard-tab {
  padding: 10px 22px;
  border: 0;
  background: transparent;
  font-size: 24px;
}

.dashboard-tab.is-active {
  font-weight: 800;
}

.surface-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.timeline-card,
.list-card,
.sidebar-card,
.metric-card {
  border: 3px solid #313131;
  border-radius: 18px;
  box-shadow: none;
  background: #ffffff;
}

.info-card,
.timeline-card,
.list-card,
.sidebar-card,
.metric-card {
  padding: 18px 20px;
}

.info-card h3,
.timeline-card h3,
.list-card h3,
.sidebar-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
}

.info-card p,
.timeline-card p,
.list-card p,
.sidebar-card p,
.detail-row,
.detail-row strong {
  font-size: 20px;
  color: #222222;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metric-card strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
}

.metric-card span {
  display: block;
  margin-top: 10px;
  font-size: 18px;
}

.table-card {
  overflow: hidden;
  padding: 0;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.8fr 0.8fr;
  gap: 18px;
  padding: 16px 20px;
}

.table-head {
  background: #f5f5f5;
  font-size: 16px;
  font-weight: 700;
}

.table-row {
  border-top: 1px solid #e6e6e6;
  font-size: 18px;
}

.empty-state {
  padding: 34px;
  border: 3px dashed #d1d1d1;
  border-radius: 16px;
  font-size: 20px;
  color: #565656;
}

.directory-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.directory-search input {
  width: min(420px, 100%);
  min-height: 52px;
  padding: 0 16px;
  border: 2px solid #d9e1db;
  border-radius: 999px;
  font-size: 18px;
}

.preferences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.preference-tile {
  min-height: 180px;
  border: 0;
  border-radius: 22px;
  padding: 18px;
  color: #ffffff;
  text-align: left;
  background: var(--card-red);
  cursor: pointer;
  transition: transform 180ms ease, outline-color 180ms ease;
}

.preference-tile:nth-child(5n + 2) { background: var(--card-orange); }
.preference-tile:nth-child(5n + 3) { background: var(--card-yellow); }
.preference-tile:nth-child(5n + 4) { background: var(--card-blue); }
.preference-tile:nth-child(5n + 5) { background: var(--card-purple); }

.preference-tile.is-selected {
  outline: 4px solid #111111;
  transform: translateY(-4px);
}

.preference-tile strong {
  display: block;
  margin-top: auto;
  font-size: 24px;
  text-decoration: underline;
}

.preference-tile span {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.35;
}

@media (max-width: 1300px) {
  .mock-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mock-detail {
    border-right: 0;
    border-left: 0;
  }
}

@media (max-width: 1100px) {
  .hero--landing,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .signup-layout {
    width: min(100vw - 36px, 920px);
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .site-nav {
    position: static;
    transform: none;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
    order: 3;
  }

  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  :root {
    --content: calc(100vw - 28px);
    --card-w: 242px;
    --card-h: 330px;
    --card-big-w: 520px;
  }

  .hero-copy {
    padding: 68px 0 40px;
  }

  .hero-copy h1 {
    font-size: 64px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .signup-grid,
  .interest-stack {
    grid-template-columns: 1fr;
  }

  .mock-page {
    padding-top: 28px;
  }

  .details-layout,
  .detail-field {
    grid-template-columns: 1fr;
  }
}

/* --- MyUniTree overrides for auth, search, and tile UIs --- */
.site-nav {
  width: max-content;
}

/* --- Header inline search (Netflix-style) --- */
.header-search-wrap {
  display: flex;
  align-items: center;
}

.header-search-btn {
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}

.header-search-input {
  display: none;
}

.header-search-close {
  display: none;
}

/* Fixed-position search bar anchored to the icon's screen position */
.header-search-bar-fixed {
  position: fixed;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes searchExpand {
  from { width: 38px; opacity: 0.4; }
  to   { width: min(520px, calc(100vw - 80px)); opacity: 1; }
}

.header-search-bar-fixed .header-search-input {
  display: block;
  width: min(520px, calc(100vw - 80px));
  padding: 0 14px;
  border: 2px solid var(--header-b);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 15px;
  height: 38px;
  border-radius: 20px;
  outline: none;
  animation: searchExpand 0.3s ease-out;
}

@keyframes searchCloseFade {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

.header-search-bar-fixed .header-search-input:focus {
  border-color: #fff;
  background: rgba(255,255,255,0.22);
}

.header-search-bar-fixed .header-search-input::placeholder {
  color: rgba(255,255,255,0.6);
}

.header-search-bar-fixed .header-search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s;
  animation: searchCloseFade 0.25s ease-out 0.15s both;
}

.header-search-bar-fixed .header-search-close:hover {
  background: rgba(255,255,255,0.35);
}

/* Hide nav links when search is open */
.site-nav.search-active .nav-link {
  visibility: hidden;
}

/* --- Full-page search overlay --- */
.search-overlay {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  background: #fff;
  overflow-y: auto;
  padding: 32px;
}

.search-overlay[hidden] {
  display: none;
}

.search-overlay__grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.search-overlay__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 18px;
}

.search-overlay__prompt {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 18px;
}

.search-result-card {
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.search-result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.search-result-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.search-result-card__color {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
}

.search-result-card__body {
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  background: #f7f7f7;
  flex: 1;
}

.search-result-card__kind {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--header-a);
}

.search-result-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.search-result-card__meta {
  font-size: 13px;
  color: #666;
}

.auth-shell {
  width: min(1320px, calc(100vw - 72px));
  margin: 0 auto;
  padding: 72px 0 88px;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
}

.onboarding-shell {
  padding: 64px 0 88px;
  display: grid;
  gap: 36px;
  max-width: 820px;
}

.auth-copy h1,
.onboarding-copy h1 {
  margin: 0;
  font-size: clamp(52px, 6vw, 96px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.auth-copy p,
.onboarding-copy p {
  margin: 22px 0 0;
  font-size: 20px;
  line-height: 1.55;
  color: #355245;
  max-width: 620px;
}

.hero-password-row {
  margin-top: 14px;
  max-width: 520px;
}

/* ── Login form (landing page) ── */
.login-form {
  display: grid;
  gap: 18px;
  margin-top: 36px;
  max-width: 480px;
}

.login-field {
  display: grid;
  gap: 6px;
}

.login-field span {
  font-size: 14px;
  font-weight: 700;
  color: #274137;
}

.login-field input {
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid #d7ded9;
  background: #ffffff;
  color: #111;
  font-size: 17px;
  font-weight: 600;
  outline: none;
}

.login-field input:focus {
  border-color: var(--header-a);
  box-shadow: 0 0 0 3px rgba(18, 162, 107, 0.15);
}

.login-password-row {
  display: grid;
  gap: 10px;
}

.login-link {
  background: none;
  border: none;
  color: var(--header-a);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  justify-self: start;
  padding: 0;
}

.login-link:hover {
  text-decoration: underline;
}

.login-status {
  font-size: 15px;
  font-weight: 600;
  color: #365340;
  min-height: 22px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label,
.preferences-form label {
  display: grid;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #23362d;
}

.auth-form input,
.auth-form select,
.auth-form textarea,
.preferences-form input,
.preferences-form select,
.preferences-form textarea {
  min-height: 58px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid #d7ded9;
  background: #ffffff;
  color: #111111;
}

.auth-form textarea,
.preferences-form textarea {
  padding-top: 14px;
  min-height: 120px;
  resize: vertical;
}

.role-chooser {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.role-card {
  width: 100%;
  padding: 18px 20px;
  border-radius: 22px;
  border: 2px solid #dcdcdc;
  background: rgba(255, 255, 255, 0.84);
  text-align: left;
  display: grid;
  gap: 8px;
}

.role-card strong {
  font-size: 20px;
}

.role-card span {
  font-size: 15px;
  color: #45594f;
}

.role-card.is-active {
  border-color: #111111;
  background: #ffffff;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
}

.signup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.signup-role-fields {
  padding: 18px;
  border-radius: 24px;
  border: 2px solid #d9d9d9;
  background: #ffffff;
  display: grid;
  gap: 16px;
}

.signup-role-fields h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.signup-role-fields p {
  margin: 0;
  font-size: 16px;
  color: #51635a;
}

.preferences-form {
  display: grid;
  gap: 20px;
}

.preferences-section {
  display: grid;
  gap: 14px;
}

.preferences-section h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}

.interest-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.interest-tile {
  position: relative;
}

.interest-tile input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.interest-tile__chrome {
  min-height: 112px;
  border-radius: 22px;
  padding: 16px;
  border: 2px solid #111111;
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, #ff6f6f, #ff9d56);
  display: grid;
  align-content: space-between;
  gap: 12px;
  color: #ffffff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.interest-tile:nth-child(4n + 2) .interest-tile__chrome {
  background: linear-gradient(135deg, #ffb74d, #ff7d45);
}

.interest-tile:nth-child(4n + 3) .interest-tile__chrome {
  background: linear-gradient(135deg, #6b60ff, #a85cff);
}

.interest-tile:nth-child(4n + 4) .interest-tile__chrome {
  background: linear-gradient(135deg, #22c06d, #16bfa2);
}

.interest-tile__index {
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.8;
}

.interest-tile__label {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.interest-tile:hover .interest-tile__chrome,
.interest-tile input:checked + .interest-tile__chrome {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
  border-color: #ffffff;
}

.filter-toolbar {
  display: grid;
  gap: 14px;
}

.filter-toolbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-search {
  display: grid;
  gap: 8px;
  min-width: min(460px, 100%);
}

.filter-search input {
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid #d7ded9;
  padding: 0 16px;
}

.filter-bubbles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip--bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: #ffffff;
}

.chip--bubble span {
  font-size: 14px;
}

.chip--selected {
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.filter-menu {
  display: none;
  padding: 18px 20px;
  border: 2px solid #111111;
  border-radius: 22px;
  background: #ffffff;
  margin: 0 0 22px;
}

.filter-menu.is-open {
  display: block;
}

.filter-menu__title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
}

.filter-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.filter-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #111111;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 600;
}

.filter-option input {
  margin: 0;
}

.carousel,
.card-grid {
  scroll-snap-type: x proximity;
}

.carousel > *,
.card-grid > * {
  scroll-snap-align: start;
}

.event-card {
  display: block;
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
}

.event-card__body {
  pointer-events: none;
}

.society-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 10px;
  min-height: 360px;
  padding: 16px;
  border: 0;
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  overflow: hidden;
  background: var(--card-orange);
}

.society-card:nth-child(5n + 1) {
  background: var(--card-red);
}

.society-card:nth-child(5n + 2) {
  background: var(--card-orange);
}

.society-card:nth-child(5n + 3) {
  background: var(--card-yellow);
}

.society-card:nth-child(5n + 4) {
  background: var(--card-blue);
}

.society-card:nth-child(5n + 5) {
  background: var(--card-purple);
}

.society-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.society-card__logo {
  white-space: pre-line;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.society-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 800;
}

.society-card__summary {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  opacity: 0.92;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.society-card__stats {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.society-card__next {
  display: grid;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.society-card__next strong {
  font-size: 15px;
  line-height: 1.25;
}

.society-card__next span,
.society-card__meta {
  font-size: 14px;
  opacity: 0.9;
}

.society-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.society-card__meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.mock-split {
  grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1fr) minmax(240px, 0.46fr);
  width: 100%;
  gap: 42px;
}

.mock-art__image {
  height: clamp(300px, 34vw, 420px);
}

.mock-detail {
  min-height: 0;
  padding: 32px 28px;
}

.mock-cta {
  padding-top: 120px;
}

.mock-body-copy p {
  font-size: clamp(18px, 1.8vw, 25px);
}

.details-layout {
  grid-template-columns: minmax(260px, 280px) minmax(0, 1fr);
}

.detail-field {
  grid-template-columns: 220px minmax(0, 1fr);
}

@media (max-width: 1100px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .signup-grid {
    grid-template-columns: 1fr;
  }

  .search-panel {
    left: 16px;
    right: 16px;
    width: auto;
  }

  .mock-split {
    grid-template-columns: 1fr;
  }

  .mock-cta {
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .auth-shell {
    width: calc(100vw - 28px);
    padding: 48px 0 72px;
  }

  .interest-tile-grid {
    grid-template-columns: 1fr 1fr;
  }

  .filter-toolbar__row {
    align-items: stretch;
  }

  .filter-search {
    min-width: 100%;
  }

  .society-card,
  .event-card {
    min-width: 242px;
  }

  .mock-art__image {
    height: 260px;
  }
}

.site-header__inner {
  position: relative;
}

.site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: 28px;
}

/* old search-panel overrides removed — using inline header search + overlay now */

.filter-toolbar__stack {
  display: grid;
  gap: 12px;
  flex: 1 1 520px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 16px;
  border: 2px solid #dfe6e0;
  border-radius: 18px;
  background: #ffffff;
}

.search-field__icon {
  font-size: 20px;
  color: #6f7d74;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: none;
  font-size: 17px;
  background: transparent;
}

.account-type-grid {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.account-type-card {
  text-align: left;
  border: 2px solid #dbe3dd;
  background: #ffffff;
  border-radius: 24px;
  padding: 18px 20px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.account-type-card strong {
  display: block;
  margin: 8px 0 8px;
  font-size: 22px;
}

.account-type-card p,
.account-type-card .account-type-card__eyebrow {
  margin: 0;
  font-size: 15px;
  color: #486055;
}

.account-type-card.is-active {
  border-color: var(--accent-green);
  box-shadow: 0 12px 24px rgba(18, 26, 38, 0.08);
  transform: translateY(-1px);
}

.preferences-layout {
  align-items: start;
}

.preferences-form {
  gap: 22px;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.interest-tile {
  display: block;
  cursor: pointer;
}

.interest-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.interest-tile__chrome {
  min-height: 96px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 2px solid #d6ddd8;
  background: linear-gradient(180deg, #ffffff 0%, #f6faf5 100%);
}

.interest-tile__index {
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #6f7d74;
}

.interest-tile__label {
  font-size: 18px;
  font-weight: 700;
  color: #132017;
}

.interest-tile input:checked + .interest-tile__chrome {
  border-color: var(--accent-green);
  box-shadow: inset 0 0 0 1px var(--accent-green);
}

.signup-form textarea {
  min-height: 118px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #d7ded9;
  background: #ffffff;
  resize: vertical;
}

.detail-field--editable {
  align-items: start;
}

.detail-field__input {
  width: 100%;
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid #d7ded9;
  background: #ffffff;
  padding: 0 16px;
  font-size: 20px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.profile-actions .hero-note {
  margin: 0;
}

.mock-page {
  width: min(1720px, calc(100vw - 48px));
  max-width: 100vw;
  margin: 0 auto;
  overflow: hidden;
}

.page-title {
  max-width: 12ch;
  font-size: clamp(46px, 4vw, 84px);
  line-height: 0.92;
}

.mock-split {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) minmax(240px, 280px);
  gap: clamp(22px, 2.4vw, 40px);
}

.mock-art__image {
  height: auto;
  aspect-ratio: 1.05;
}

.mock-detail {
  min-width: 0;
  padding: 24px 28px;
}

.mock-detail a {
  word-break: break-word;
}

.mock-cta {
  padding-top: 72px;
}

.mock-cta .btn,
.mock-cta a {
  max-width: 100%;
}

.society-card {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 250px;
  text-decoration: none;
  color: #ffffff;
}

.society-card__summary {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.society-card .stack-md {
  margin-top: auto;
}

.society-card .mini-row strong,
.society-card .mini-row span {
  font-size: 18px;
}

.event-card {
  text-decoration: none;
}

.event-card__hover {
  display: none;
}

.event-card:hover .event-card__hover {
  display: block;
}

@media (max-width: 1100px) {
  .site-nav {
    position: static;
    transform: none;
    justify-content: flex-start;
    width: 100%;
    order: 3;
  }

  .mock-split {
    grid-template-columns: 1fr;
  }

  .profile-grid,
  .interest-grid,
  .account-type-grid {
    grid-template-columns: 1fr;
  }

  .mock-cta {
    padding-top: 24px;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .page-shell,
  .mock-page {
    width: calc(100vw - 20px);
  }

  .search-panel {
    padding-top: 78px;
  }

  .search-panel__shell {
    width: calc(100vw - 16px);
  }

  .hero-copy h1 {
    font-size: 56px;
  }

  .signup-layout {
    padding-top: 36px;
  }

  .mock-page {
    padding-top: 28px;
  }
}

/* Final overrides for the mockup-aligned layouts */
.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.site-nav {
  position: static;
  transform: none;
  justify-self: center;
  width: max-content;
}

.header-actions {
  justify-self: end;
}

.detail-page {
  width: min(1660px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 40px 0 52px;
}

.detail-layout.detail-layout--fit {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.86fr) minmax(220px, 260px);
  gap: clamp(18px, 2vw, 32px);
}

.detail-layout.detail-layout--fit .page-title {
  max-width: 11ch;
  font-size: clamp(38px, 3.3vw, 74px);
}

.detail-layout.detail-layout--fit .detail-image {
  min-height: 300px;
  aspect-ratio: 1.28;
}

.detail-layout.detail-layout--fit .detail-meta {
  min-height: 0;
  padding: 16px 0 16px 24px;
  gap: 14px;
}

.detail-layout.detail-layout--fit .detail-meta__item {
  font-size: clamp(17px, 1.4vw, 22px);
}

.detail-layout.detail-layout--fit .detail-cta {
  padding-top: 72px;
  justify-self: end;
}

.detail-layout.detail-layout--fit .detail-cta h3 {
  font-size: 24px;
}

.detail-layout.detail-layout--fit .detail-cta .btn {
  max-width: 260px;
}

.carousel,
.card-grid {
  overflow-x: auto;
  overflow-y: hidden;
}

.event-card {
  flex: 0 0 var(--card-w);
  width: var(--card-w);
  min-width: var(--card-w);
}

.event-card__hover {
  display: block;
  opacity: 0;
}

.event-card:hover .event-card__hover {
  opacity: 1;
}

.event-card:hover {
  flex-basis: calc(var(--card-w) * 1.9);
  width: calc(var(--card-w) * 1.9);
  min-width: calc(var(--card-w) * 1.9);
  z-index: 4;
  transition: flex-basis 0.3s ease, width 0.3s ease, min-width 0.3s ease;
}

.event-card:hover .event-meta {
  width: calc(var(--card-w) - 36px);
}

.society-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.society-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 14px;
  min-height: 360px;
  padding: 16px;
}

.society-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.society-card__tag {
  align-self: start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 700;
}

.society-card__summary {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.society-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.society-card__meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 700;
}

.society-card__next {
  margin-top: auto;
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.society-card__next strong {
  font-size: 15px;
  line-height: 1.25;
}

.society-card__next span {
  font-size: 13px;
  opacity: 0.88;
}

.signup-role-fields {
  display: grid;
  gap: 8px;
  padding: 18px 0 8px;
}

.signup-role-fields h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.signup-role-fields p {
  margin: 0;
  color: #365340;
  line-height: 1.45;
}

.filter-options {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.filter-option {
  background: #ffffff;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.filter-option input {
  accent-color: var(--accent-green);
}

.filter-option:has(input:checked) {
  background: #111111;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

@media (max-width: 1100px) {
  .site-header__inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-nav {
    justify-self: start;
    width: 100%;
  }

  .header-actions {
    justify-self: start;
  }
}
