body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}
:root {
  --bg: #f8fbf7;
  --bg-strong: #edf5ee;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #101311;
  --muted: #5f7166;
  --line: rgba(31, 95, 58, 0.12);
  --accent: #5bcc4a;
  --accent-deep: #4ea83f;
  --accent-soft: rgba(91, 204, 74, 0.1);
  --green: #5bcc4a;
  --shadow: 0 20px 60px rgba(18, 53, 29, 0.1);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 999px;
  --content-width: 1300px;
  --hero-progress: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(29, 143, 82, 0.11), transparent 23%),
    radial-gradient(circle at top right, rgba(18, 116, 64, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f3f8f3 58%, #eef5ee 100%);
}

body :is(
  p,
  span,
  label,
  strong,
  h1,
  h2,
  h3,
  a,
  .dropdown-value,
  .filter-label,
  .results-summary,
  .book-description,
  .file-type,
  .badge,
  .tag,
  .book-title,
  .brand,
  .brand-mc,
  .brand-case,
  .eyebrow,
  .panel-label
) {
  transition: text-shadow 180ms ease, color 180ms ease;
}

body :is(
  p,
  span,
  label,
  strong,
  h1,
  h2,
  h3,
  a,
  .dropdown-value,
  .filter-label,
  .results-summary,
  .book-description,
  .file-type,
  .badge,
  .tag,
  .book-title,
  .brand,
  .brand-mc,
  .brand-case,
  .eyebrow,
  .panel-label
):hover,
body :is(
  p,
  span,
  label,
  strong,
  h1,
  h2,
  h3,
  a,
  .dropdown-value,
  .filter-label,
  .results-summary,
  .book-description,
  .file-type,
  .badge,
  .tag,
  .book-title,
  .brand,
  .brand-mc,
  .brand-case,
  .eyebrow,
  .panel-label
):focus-visible {
  text-shadow: 0 0 14px rgba(124, 242, 177, 0.16);
}

.button:hover,
.button:focus-visible,
.chip:hover,
.chip:focus-visible,
.year-button:hover,
.year-button:focus-visible,
.dropdown-trigger:hover,
.dropdown-trigger:focus-visible,
.dropdown-option:hover,
.dropdown-option:focus-visible {
  text-shadow: none;
}

.result-card:hover .book-title,
.result-card:hover .book-description,
.result-card:hover .badge,
.result-card:hover .file-type,
.result-card:hover .tag,
.detail-panel:hover h3,
.detail-panel:hover p,
.detail-panel:hover .tag,
.detail-panel:hover .file-type {
  text-shadow: 0 0 16px rgba(124, 242, 177, 0.2);
}

.year-button:hover {
  text-shadow: none;
}

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

.page-shell {
  min-height: 100vh;
}

.hero,
main {
  width: min(calc(100% - 8px), var(--content-width));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 18px 10px 18px;
  position: sticky;
  top: 12px;
  z-index: 50;
  margin-top: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.brand,
h1,
h2,
h3 {
}

.brand {
  display: inline-flex;
  align-items: center;
  height: 28px;
}

.brand-logo {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
}

.brand-mc {
  color: #111111;
}

.brand-case {
  color: var(--green);
}

.topbar-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  align-items: center;
}

.topbar-links a {
  position: relative;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: normal;
  color: var(--muted);
  transition: color 180ms ease, text-shadow 180ms ease;
}

.topbar-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.topbar-links a:hover,
.topbar-links a:focus-visible,
.topbar-links a.active {
  color: var(--accent-deep);
  text-shadow: 0 0 18px rgba(124, 242, 177, 0.34);
}

.topbar-links a:hover::after,
.topbar-links a:focus-visible::after,
.topbar-links a.active::after {
  transform: scaleX(1);
}

.topbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--line);
  transform: translateY(4px);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(430px, 0.98fr);
  gap: 2px;
  padding: 38px 0 10px;
  min-height: calc(100vh - 150px);
  align-items: center;
}

.hero-content-split {
  justify-items: stretch;
}

.eyebrow,
.feature-kicker,
.panel-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.hero-copy-split {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding-right: 0;
}

h1 {
  font-weight: 900;
  -webkit-text-stroke: 4px var(--text-dark);
  margin: 14px 0 14px;
  font-size: clamp(2.9rem, 7.6vw, 6.2rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  max-width: none;
  transform: translateY(calc(var(--hero-progress) * -26px)) scale(calc(1 - (var(--hero-progress) * 0.03)));
  opacity: calc(1 - (var(--hero-progress) * 0.18));
}

.hero-text {
  max-width: none;
  padding-right: 20px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
  transform: translateY(calc(var(--hero-progress) * -14px));
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 28px 0 26px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  transition:
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124, 242, 177, 0.34) 0%, rgba(124, 242, 177, 0.12) 42%, rgba(124, 242, 177, 0) 72%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.2);
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 0 0 1px rgba(29, 143, 82, 0.14), 0 10px 24px rgba(29, 143, 82, 0.12);
}

.button:hover::after,
.button:focus-visible::after {
  animation: bubbleRippleSoft 900ms ease-out forwards;
}

.button-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.button-small {
  padding: 10px 16px;
  background: var(--accent);
  color: white;
  font-size: 0.92rem;
}

.hero-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-stats article {
  min-width: 132px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.hero-stats strong {
  display: block;
  font-size: 1.65rem;
}

.hero-stats span,
.book-description,
.results-summary,
.how-copy p,
.how-steps p,
.feature-card p,
.file-type {
  color: var(--muted);
}

.glass-card {
  backdrop-filter: blur(18px);
  background: var(--surface);
  border: 1px solid rgba(31, 95, 58, 0.08);
  box-shadow: var(--shadow);
}

.hero-panel {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-bubbles {
  margin-top: 10px;
}

.hero-logo-stage {
  width: min(100%, 540px);
  padding: 0;
  overflow: visible;
}

.bubble-stage {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.logo-collage {
  position: relative;
  width: min(100%, 540px);
  height: 500px;
  margin: 0 auto;
  transform:
    translateY(calc(var(--hero-progress) * -34px))
    scale(calc(1 - (var(--hero-progress) * 0.1)));
  transform-origin: center top;
  transition: transform 80ms linear, opacity 80ms linear;
  opacity: calc(1 - (var(--hero-progress) * 0.32));
}

.logo-tile {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  perspective: 900px;
  transform-style: preserve-3d;
  transition: transform 220ms ease, filter 220ms ease;
  transform-origin: center;
  will-change: transform;
}

.logo-tile::before,
.logo-tile::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.25);
}

.logo-tile::before {
  width: 28px;
  height: 28px;
  background: radial-gradient(circle, rgba(29, 143, 82, 0.22) 0%, rgba(29, 143, 82, 0.08) 45%, rgba(29, 143, 82, 0) 72%);
}

.logo-tile::after {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, rgba(29, 143, 82, 0.28) 0%, rgba(29, 143, 82, 0) 70%);
}

.logo-tile:hover {
  transform: translateY(-5px) scale(1.03);
  filter: drop-shadow(0 16px 22px rgba(16, 19, 17, 0.12));
  z-index: 5;
}

.logo-tile:hover::before {
  animation: bubbleRipple 900ms ease-out forwards;
}

.logo-tile:hover::after {
  animation: bubbleRipple 1100ms ease-out 80ms forwards;
}

.logo-tile:nth-child(1) {
  width: 150px;
  height: 54px;
  top: 18px;
  left: 34px;
}

.logo-tile:nth-child(2) {
  width: 150px;
  height: 54px;
  top: 18px;
  left: 194px;
}

.logo-tile:nth-child(3) {
  width: 150px;
  height: 54px;
  top: 18px;
  left: 354px;
}

.logo-tile:nth-child(4) {
  width: 150px;
  height: 54px;
  top: 106px;
  left: 74px;
}

.logo-tile:nth-child(5) {
  width: 150px;
  height: 54px;
  top: 106px;
  left: 234px;
}

.logo-tile:nth-child(6) {
  width: 150px;
  height: 54px;
  top: 106px;
  left: 394px;
}

.logo-tile:nth-child(7) {
  width: 150px;
  height: 54px;
  top: 194px;
  left: 34px;
}

.logo-tile:nth-child(8) {
  width: 150px;
  height: 54px;
  top: 194px;
  left: 194px;
}

.logo-tile:nth-child(9) {
  width: 150px;
  height: 54px;
  top: 194px;
  left: 354px;
}

.logo-tile:nth-child(10) {
  width: 150px;
  height: 54px;
  top: 282px;
  left: 74px;
}

.logo-tile:nth-child(11) {
  width: 150px;
  height: 54px;
  top: 282px;
  left: 234px;
}

.logo-tile:nth-child(12) {
  width: 150px;
  height: 54px;
  top: 282px;
  left: 394px;
}

.logo-tile:nth-child(13) {
  width: 150px;
  height: 54px;
  top: 370px;
  left: 114px;
}

.logo-tile:nth-child(14) {
  width: 150px;
  height: 54px;
  top: 370px;
  left: 274px;
}

.logo-tile:nth-child(15) {
  width: 150px;
  height: 54px;
  top: 370px;
  left: 434px;
}

.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.02) contrast(1.02);
  animation: floatBubble 6.5s ease-in-out infinite;
  transition: filter 220ms ease;
}

.logo-tile:hover img {
  filter: saturate(1.08) contrast(1.04);
}

.logo-tile:nth-child(1) img { animation-delay: 0s; }
.logo-tile:nth-child(2) img { animation-delay: -1.1s; }
.logo-tile:nth-child(3) img { animation-delay: -2.2s; }
.logo-tile:nth-child(4) img { animation-delay: -3.2s; }
.logo-tile:nth-child(5) img { animation-delay: -1.8s; }
.logo-tile:nth-child(6) img { animation-delay: -0.7s; }
.logo-tile:nth-child(7) img { animation-delay: -2.9s; }
.logo-tile:nth-child(8) img { animation-delay: -4.1s; }
.logo-tile:nth-child(9) img { animation-delay: -1.4s; }
.logo-tile:nth-child(10) img { animation-delay: -3.8s; }
.logo-tile:nth-child(11) img { animation-delay: -2.1s; }
.logo-tile:nth-child(12) img { animation-delay: -1.7s; }
.logo-tile:nth-child(13) img { animation-delay: -0.9s; }

@keyframes floatBubble {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-9px);
  }
}

@keyframes bubbleRipple {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25);
  }

  20% {
    opacity: 0.75;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(7.4);
  }
}

@keyframes bubbleRippleSoft {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }

  18% {
    opacity: 0.55;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(5.6);
  }
}

.control-strip {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  align-items: end;
  position: relative;
  z-index: 40;
  overflow: visible;
}

.search-wrap input,
textarea,
.contact-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 16px;
  padding: 15px 16px;
  font: inherit;
}

.search-wrap input {
  min-height: 76px;
  padding: 16px 22px;
  border: 1px solid rgba(16, 19, 17, 0.12);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 245, 0.95));
  box-shadow: 0 6px 18px rgba(16, 19, 17, 0.06), inset 0 -2px 0 rgba(16, 19, 17, 0.03);
  font-size: 1.02rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.search-wrap input:hover,
.search-wrap input:focus-visible {
  border-color: rgba(29, 143, 82, 0.24);
  box-shadow: 0 12px 28px rgba(16, 19, 17, 0.08), inset 0 -2px 0 rgba(29, 143, 82, 0.06), 0 0 22px rgba(124, 242, 177, 0.14);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  overflow: visible;
}

.filter-label {
  display: inline-block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.custom-dropdown {
  position: relative;
  z-index: 45;
}

.custom-dropdown.open {
  z-index: 60;
}

.dropdown-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(16, 19, 17, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 245, 0.95));
  border-radius: 26px;
  box-shadow: 0 6px 18px rgba(16, 19, 17, 0.06), inset 0 -2px 0 rgba(16, 19, 17, 0.03);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.dropdown-trigger:hover,
.dropdown-trigger:focus-visible,
.custom-dropdown.open .dropdown-trigger {
  border-color: rgba(29, 143, 82, 0.24);
  box-shadow: 0 12px 28px rgba(16, 19, 17, 0.08), inset 0 -2px 0 rgba(29, 143, 82, 0.06), 0 0 20px rgba(124, 242, 177, 0.12);
}

.dropdown-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(29, 143, 82, 0.08);
  color: #647065;
}

.dropdown-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropdown-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dropdown-copy strong {
  font-size: 1.05rem;
  letter-spacing: -0.04em;
}

.dropdown-value {
  color: var(--muted);
  font-size: 0.98rem;
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-chevron {
  width: 14px;
  height: 14px;
  border-right: 2px solid #6b726d;
  border-bottom: 2px solid #6b726d;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.custom-dropdown.open .dropdown-chevron {
  transform: rotate(-135deg) translateY(-1px);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(16, 19, 17, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 42px rgba(16, 19, 17, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 25;
}

.custom-dropdown.open .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-dropdown[data-target="collegeFilter"] .dropdown-panel {
  max-height: 308px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(29, 143, 82, 0.45) rgba(29, 143, 82, 0.08);
}

.custom-dropdown[data-target="collegeFilter"] .dropdown-panel::-webkit-scrollbar {
  width: 8px;
}

.custom-dropdown[data-target="collegeFilter"] .dropdown-panel::-webkit-scrollbar-track {
  background: rgba(29, 143, 82, 0.08);
  border-radius: 999px;
}

.custom-dropdown[data-target="collegeFilter"] .dropdown-panel::-webkit-scrollbar-thumb {
  background: rgba(29, 143, 82, 0.45);
  border-radius: 999px;
}

.dropdown-option {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: #66706b;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.dropdown-option::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(102, 112, 107, 0.35);
}

.dropdown-option:hover,
.dropdown-option:focus-visible {
  background: rgba(29, 143, 82, 0.08);
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px rgba(124, 242, 177, 0.16), 0 0 18px rgba(124, 242, 177, 0.12);
}

.dropdown-option.active {
  background: rgba(255, 118, 63, 0.11);
  color: #f06b2d;
}

.dropdown-option.active::before {
  background: #f06b2d;
}

.native-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  inset: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 26px 0 12px;
}

.feature-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.feature-card.accent {
  background: linear-gradient(135deg, rgba(29, 143, 82, 0.05), rgba(29, 143, 82, 0.13));
}

.feature-card h2 {
  margin: 10px 0 10px;
  font-size: 1.65rem;
  letter-spacing: -0.05em;
}

.library-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 20px 0 8px;
}

.library-meta h2,
.how-copy h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.06em;
}

.chip-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 18px;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font: inherit;
  color: var(--text);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.chip.active,
.chip:hover,
.chip:focus-visible {
  background: var(--accent-soft);
  border-color: rgba(29, 143, 82, 0.24);
  box-shadow: 0 0 0 1px rgba(29, 143, 82, 0.08), 0 8px 18px rgba(124, 242, 177, 0.18);
  color: var(--accent-deep);
}

.repository-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.results-grid {
  display: grid;
  gap: 14px;
  padding-bottom: 28px;
}

.result-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) 1.4fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 500ms ease forwards;
}

.card-topline,
.tag-row,
.card-footer,
.year-button-row,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-topline {
  flex-direction: column;
  align-items: start;
}

.list-grid .result-card:hover {
  border-color: rgba(29, 143, 82, 0.22);
}

.badge,
.tag {
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 0.8rem;
}

.badge {
  background: rgba(29, 143, 82, 0.1);
  color: var(--accent);
}

.tag {
  background: rgba(51, 92, 75, 0.1);
  color: var(--green);
}

.book-title {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -0.05em;
}

.book-description {
  margin: 0;
  line-height: 1.65;
}

.year-button-row {
  justify-content: end;
}

.year-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--accent);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.year-button:hover,
.year-button:focus-visible,
.year-button.active {
  background: var(--accent);
  color: white;
  border-color: rgba(29, 143, 82, 0.5);
  box-shadow: 0 10px 20px rgba(124, 242, 177, 0.22), 0 0 0 1px rgba(124, 242, 177, 0.16);
}

.year-button.disabled {
  background: rgba(245, 248, 245, 0.9);
  color: #9eb1a4;
  border-style: dashed;
  cursor: not-allowed;
  transform: none;
}

.detail-panel {
  position: sticky;
  top: 104px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.detail-panel h3 {
  margin: 8px 0 10px;
  font-size: 1.55rem;
  letter-spacing: -0.05em;
}

.detail-actions {
  align-items: center;
  gap: 18px;
  margin-top: 6px;
}

#detailMeta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  line-height: 1.35;
}

#detailDownload {
  min-width: 198px;
}

.detail-download.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.viewer-shell {
  min-height: 100vh;
}

.viewer-main {
  display: grid;
  gap: 18px;
}

.viewer-hero {
  min-height: auto;
}

.viewer-header,
.viewer-toolbar {
  padding: 24px 28px;
  border-radius: var(--radius-xl);
}

.viewer-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.viewer-header h1 {
  font-weight: 900;
  -webkit-text-stroke: 4px var(--text-dark);
  margin: 8px 0 10px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: -0.06em;
}

.viewer-disclaimer {
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 19, 17, 0.08);
  color: var(--muted);
}

.viewer-disclaimer p {
  margin: 8px 0 0;
  line-height: 1.7;
}

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

.viewer-tool-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
}

.viewer-tool {
  border: 1px solid rgba(16, 19, 17, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 245, 0.95));
  color: var(--accent);
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  cursor: pointer;
  transition: box-shadow 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.viewer-tool:hover,
.viewer-tool:focus-visible,
.viewer-tool.active {
  border-color: rgba(29, 143, 82, 0.32);
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 20px rgba(124, 242, 177, 0.22);
  outline: none;
}

.viewer-range {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.viewer-range input {
  width: 120px;
}

.viewer-zoom-label {
  min-width: 54px;
  text-align: center;
  color: var(--muted);
}

.viewer-frame {
  position: relative;
  min-height: 60vh;
}

.viewer-message {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(192, 77, 43, 0.18);
  background: rgba(255, 244, 240, 0.96);
  color: #9b3f23;
}

.viewer-message.is-hidden {
  display: none;
}

.pdf-pages {
  display: grid;
  gap: 22px;
}

.pdf-page {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding-top: 34px;
}

.pdf-page-label {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.pdf-render-canvas {
  display: block;
  max-width: min(100%, 980px);
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid rgba(16, 19, 17, 0.08);
  box-shadow: 0 18px 40px rgba(16, 19, 17, 0.08);
  background: white;
}

.annotation-layer {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border: none;
  border-radius: 24px;
  touch-action: none;
  cursor: default;
  box-shadow: none;
  background: transparent;
  pointer-events: none;
  z-index: 2;
}

.annotation-layer.is-drawing {
  cursor: crosshair;
  pointer-events: auto;
}

.pdf-modal.is-fullscreen #pdfCanvasShell,
.pdf-modal.is-fullscreen #pdfCanvas {
  max-width: none !important;
  flex: 0 0 auto;
}


.empty-state {
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px dashed rgba(31, 95, 58, 0.18);
  text-align: center;
  color: var(--muted);
  grid-column: 1 / -1;
}

.closing-mark {
  padding: 32px 0 24px;
  text-align: center;
}

.closing-mark p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.closing-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.closing-brand-logo {
  display: block;
  height: clamp(34px, 3vw, 46px);
  width: auto;
  object-fit: contain;
}

.contact-hero {
  min-height: auto;
}

.contact-intro {
  padding: 72px 0 32px;
}

.contact-intro h1 {
  font-weight: 900;
  -webkit-text-stroke: 4px var(--text-dark);
  max-width: none;
  text-transform: none;
  letter-spacing: -0.06em;
}

.contact-section {
  display: flex;
  justify-content: center;
  padding: 12px 0 20px;
}

.contact-form {
  width: min(100%, 760px);
  padding: 28px;
  border-radius: var(--radius-xl);
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(16, 19, 17, 0.12);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 245, 0.95));
  box-shadow: 0 6px 18px rgba(16, 19, 17, 0.06), inset 0 -2px 0 rgba(16, 19, 17, 0.03);
  padding: 16px 22px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
  min-height: 170px;
}

.contact-form input:hover,
.contact-form input:focus-visible,
.contact-form textarea:hover,
.contact-form textarea:focus-visible {
  border-color: rgba(29, 143, 82, 0.24);
  box-shadow: 0 12px 28px rgba(16, 19, 17, 0.08), inset 0 -2px 0 rgba(29, 143, 82, 0.06), 0 0 22px rgba(124, 242, 177, 0.14);
  outline: none;
}

.submit-button {
  justify-self: start;
  background: #25a153;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 14px 28px;
  box-shadow: 0 4px 12px rgba(37, 161, 83, 0.2);
  transition: all 180ms ease;
  font-family: inherit;
}

.submit-button:hover {
  background: #1e8744;
  box-shadow: 0 6px 16px rgba(37, 161, 83, 0.3);
  transform: translateY(-1px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero-content,
  .control-strip,
  .feature-grid,
  .repository-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy-split {
    align-items: center;
    text-align: center;
    padding-right: 0;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-panel {
    justify-content: center;
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .year-button-row {
    justify-content: start;
  }

  .library-meta {
    align-items: start;
    flex-direction: column;
  }

  .detail-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero,
  main {
    width: min(calc(100% - 8px), var(--content-width));
  }

  .topbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    margin-top: 8px;
    gap: 6px;
  }

  .topbar-links {
    gap: 10px;
  }

  .topbar-links a {
    font-size: 0.85rem;
    padding: 4px 0;
  }

  .brand-logo {
    height: 20px;
  }

  .topbar-links a.nav-signup-btn {
    padding: 5px 12px !important;
    font-size: 0.8rem !important;
  }

  .topbar-links a.nav-login-btn {
    font-size: 0.8rem !important;
  }

  .hero-actions,
  .hero-stats,
  .filters {
    grid-template-columns: 1fr;
  }

  .filters {
    display: grid;
  }

  .dropdown-trigger {
    padding: 14px 16px;
    border-radius: 22px;
  }

  .search-wrap input {
    min-height: 70px;
    border-radius: 22px;
    padding: 14px 18px;
  }

  .contact-form input,
  .contact-form textarea {
    border-radius: 22px;
    padding: 14px 18px;
  }

  .dropdown-panel {
    border-radius: 24px;
  }

  .logo-collage {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)) !important;
    gap: 12px !important;
    height: auto !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .logo-collage .logo-tile {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: 60px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .logo-collage .logo-tile img {
    max-height: 30px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .gateway-card-new {
    text-align: left !important;
  }
  .gc-ui-row {
    flex-direction: column !important;
    gap: 12px !important;
  }
}

@media (max-width: 768px) {
  h1 {
    -webkit-text-stroke: 1.5px var(--text-dark) !important;
  }
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding-top: 8px;
}

.admin-panel,
.admin-side {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.admin-panel-head h2,
.admin-side h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  letter-spacing: -0.05em;
}

.admin-form {
  margin-top: 18px;
}

.contact-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 16px;
  padding: 15px 16px;
  font: inherit;
}

.admin-form select {
  appearance: none;
  min-height: 76px;
  border: 1px solid rgba(16, 19, 17, 0.12);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 245, 0.95)),
    linear-gradient(45deg, transparent 50%, rgba(13, 145, 76, 0.9) 50%),
    linear-gradient(135deg, rgba(13, 145, 76, 0.9) 50%, transparent 50%);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 245, 0.95)),
    linear-gradient(45deg, transparent 50%, rgba(13, 145, 76, 0.9) 50%),
    linear-gradient(135deg, rgba(13, 145, 76, 0.9) 50%, transparent 50%);
  background-position:
    0 0,
    calc(100% - 24px) calc(50% - 4px),
    calc(100% - 16px) calc(50% - 4px);
  background-size: 100% 100%, 8px 8px, 8px 8px;
  background-repeat: no-repeat;
  box-shadow: 0 6px 18px rgba(16, 19, 17, 0.06), inset 0 -2px 0 rgba(16, 19, 17, 0.03);
  padding: 16px 52px 16px 22px;
  transition: box-shadow 180ms ease, border-color 180ms ease, color 180ms ease;
}

.admin-form select:hover,
.admin-form select:focus-visible {
  border-color: rgba(29, 143, 82, 0.24);
  box-shadow: 0 12px 28px rgba(16, 19, 17, 0.08), inset 0 -2px 0 rgba(29, 143, 82, 0.06), 0 0 22px rgba(124, 242, 177, 0.14);
  outline: none;
}

.admin-form select option:disabled {
  color: rgba(92, 111, 101, 0.72);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-conditional-field.is-hidden,
.is-hidden {
  display: none;
}

.admin-status {
  margin: 16px 2px 0;
  color: var(--muted);
}

.admin-status[data-tone="success"] {
  color: var(--accent-deep);
}

.admin-status[data-tone="error"] {
  color: #c04d2b;
}

.admin-status[data-tone="warning"] {
  color: #9b7b23;
}

.admin-config,
.admin-result {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 19, 17, 0.08);
}

.admin-result.is-hidden {
  display: none;
}

.admin-config code,
.admin-result a {
  word-break: break-word;
}

.admin-intro h1 {
  font-weight: 900;
  -webkit-text-stroke: 4px var(--text-dark);
  max-width: 12ch;
}

.admin-library {
  margin-top: 18px;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.admin-library-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.admin-library-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.05em;
}

.admin-library-meta {
  margin: 0;
  color: var(--muted);
}

.admin-published-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.admin-entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(16, 19, 17, 0.08);
}

.admin-entry-kicker {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.admin-entry-copy h3 {
  margin: 10px 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.admin-entry-copy p {
  margin: 0;
  color: var(--muted);
}

.admin-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
}

.admin-entry-meta a {
  color: var(--accent-deep);
}

.admin-edit-button {
  min-width: 120px;
  align-self: center;
}

.admin-empty-state {
  margin: 0;
  color: var(--muted);
}

.hidden { display: none !important; }

.landing-main {
  width: min(calc(100% - 8px), var(--content-width));
  margin: 0 auto;
  padding: 10px 0 90px;
}

 .offerings-section {
  padding: 56px 0 32px;
}

.offerings-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  margin-bottom: 56px;
}

.offerings-header h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
  white-space: nowrap;
}

.brand-split-case .brand-split-accent {
  color: var(--primary);
}

.brand-split-mc {
  color: #101311;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gateway-card {
  position: relative;
  min-height: 410px;
  padding: 22px 26px 18px;
  border-radius: 38px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s cubic-bezier(.16,1,.3,1);
}

.gateway-card:hover,
.gateway-card:focus-within {
  transform: translateY(-10px);
  box-shadow: 0 22px 54px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.05);
}

.gateway-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gateway-card-books::before {
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(245,241,255,0.75));
}

.gateway-card-filter::before {
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,245,241,0.7));
}

.gateway-card-buddy::before {
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(255,249,236,0.72));
}

.gateway-copy,
.gateway-visual {
  position: relative;
  z-index: 1;
}

.gateway-kicker {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(64, 68, 73, 0.82);
}

.gateway-brand {
  margin: 0 0 6px;
  font-size: 2.7rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.gateway-brand-books .gateway-brand-accent {
  color: #7b5df0;
}

.gateway-brand-filter .gateway-brand-accent {
  color: #ff5f47;
}

.gateway-brand-buddy .gateway-brand-accent {
  color: #e8a000;
}

.gateway-copy h4 {
  margin: 0 0 12px;
  max-width: 10.6ch;
  font-size: 2.34rem;
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 900;
  color: #101311;
}

.gateway-copy p:last-child {
  margin: 0;
  max-width: 30ch;
  font-size: 0.98rem;
  line-height: 1.38;
  color: rgba(92, 96, 104, 0.9);
}

.gateway-visual {
  min-height: 190px;
}

.gateway-books-visual {
  width: 248px;
  height: 198px;
  margin: 0 auto;
}

/* .gateway-books-glow {
  position: absolute;
  bottom: 0;
  left: 18px;
  width: 176px;
  height: 68px;
  background: rgba(196, 180, 255, 0.3);
  filter: blur(48px);
} */

.gateway-books-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.gateway-doc {
  position: absolute;
  background: #fff;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 15px 40px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
}

.gateway-doc-back {
  top: 0;
  left: 74px;
  width: 150px;
  height: 174px;
  padding: 16px 15px;
  transform: rotate(10deg);
}

.gateway-doc-mid {
  top: 32px;
  left: 30px;
  width: 152px;
  height: 178px;
  padding: 16px 15px;
  transform: rotate(7deg);
}

.gateway-doc-front {
  top: 64px;
  left: 0;
  width: 176px;
  height: 210px;
  padding: 18px;
  transform: rotate(-8deg);
}

.gateway-doc-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #000000;
}

.gateway-doc-pill {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef0ff;
  color: #000000;
  font-size: 0.68rem;
  font-weight: 700;
}

.gateway-doc-pill-primary {
  margin-top: 0;
  background: #80DA53;
}

.gateway-doc-icon {
  width: 38px;
  height: 50px;
  border-radius: 18px;
  background: linear-gradient(135deg, #cce9bd, #cce9bd);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gateway-doc-icon span {
  width: 18px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(180deg, #80DA53, #80DA53);
}

.gateway-doc-main {
  font-size: 0.82rem;
  line-height: 1.18;
  font-weight: 800;
  color: #000000;
  margin-bottom: 10px;
}

.gateway-books-orbit {
  position: absolute;
  right: 0;
  top: 90px;
  width: 88px;
  height: 88px;
}

.gateway-books-orbit path {
  stroke: #80DA53;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
}

.gateway-books-star {
  position: absolute;
  left: 16px;
  top: 64px;
  font-size: 1.7rem;
  color: #80DA53;
}

.gateway-filter-visual {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gateway-search {
  min-height: 58px;
  padding: 0 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(240, 223, 214, 0.9);
  box-shadow: 0 15px 40px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  display: grid;
  grid-template-columns: 18px 1fr 38px;
  align-items: center;
  gap: 10px;
}

.gateway-search-icon,
.gateway-search-text {
  color: rgba(145,145,145,0.95);
  font-size: 0.8rem;
  font-weight: 500;
}

.gateway-search-menu {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #faf7f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f2226;
  font-size: 0.92rem;
}

.gateway-filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.gateway-filter-chip {
  padding: 8px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(224, 224, 224, 1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  color: #17181d;
  font-size: 0.78rem;
  font-weight: 500;
}

.gateway-filter-chip-primary {
  color: #fff;
  border: none;
  background: linear-gradient(135deg, #80DA53, #80DA53);
  box-shadow: 0 12px 22px rgba(86, 255, 71, 0.2);
  font-weight: 700;
}

.gateway-filter-chip-icon {
  width: 38px;
  padding: 8px 0;
  text-align: center;
}

.gateway-filter-results {
  margin-top: 4px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(247, 227, 219, 1);
  box-shadow: 0 15px 40px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.gateway-results-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gateway-results-badge {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: #ffe7cc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.gateway-results-copy span {
  display: block;
  font-size: 0.72rem;
  color: #7d8289;
}

.gateway-results-copy strong {
  display: block;
  font-size: 2.15rem;
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: #101311;
}

.gateway-results-wave {
  width: 92px;
  height: 30px;
}

.gateway-results-wave path,
.gateway-results-wave circle {
stroke: #80DA53;
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
}

.gateway-buddy-visual {
  position: relative;
  height: 236px;
}

.gateway-buddy-center {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
}

/* .gateway-buddy-glow {
  position: absolute;
  inset: -26px;
  border-radius: 50%;
  background: rgba(255, 225, 158, 0.45);
  filter: blur(32px);
} */
/* 
.gateway-buddy-pulse {
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(244, 218, 156, 0.7);
  border-radius: 50%;
} */
.gateway-books-glow,
.gateway-buddy-glow,
.gateway-buddy-pulse {
  background: radial-gradient(
    circle,
    rgba(29, 143, 82, 0.08) 0%,
    rgba(29, 143, 82, 0.03) 45%,
    transparent 75%
  );

  filter: blur(18px);
}

.gateway-buddy-star {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8a000;
  font-size: 1.3rem;
}

.gateway-buddy-ring {
  position: absolute;
  left: 50%;
  top: 60%;
  width: 186px;
  height: 186px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(207, 204, 198, 0.9);
}

.gateway-chat {
  position: absolute;
  background: #fff;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  display: flex;
  gap: 10px;
  width: 182px;
}

.gateway-chat img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.gateway-chat p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
  font-weight: 700;
  color: #1f2024;
}

.gateway-chat span {
  display: block;
  margin-top: 8px;
  font-size: 0.64rem;
  color: #a0a3aa;
}

.gateway-chat-left-top {
  left: 2px;
  top: 2px;
}

.gateway-chat-right {
  right: -2px;
  top: 70px;
  width: 194px;
  background: #eefbef;
  align-items: flex-start;
}

.gateway-chat-right div {
  flex: 1;
}

.gateway-chat-left-bottom {
  left: 4px;
  bottom: 0;
}
@media (max-width: 900px) {
  .gateway-grid {
    grid-template-columns: 1fr;
  }

  .offerings-header h2 {
    white-space: normal;
    max-width: 12ch;
  }

  .gateway-card {
    min-height: 430px;
    padding: 24px;
  }

  .gateway-card:hover,
  .gateway-card:focus-within {
    transform: none;
  }

  .gateway-copy h4 {
    max-width: 11.2ch;
    font-size: 2.3rem;
  }

  .gateway-books-visual {
    width: 100%;
  }
}

.contributors-section,
.section {
  margin-top: 44px;
}

body {
  overflow-x: hidden;
}

.contributors-heading {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
  margin: 0 auto 40px;
}

.contributors-heading h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(3.1rem, 5.4vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.contributors-marquee {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 12px 0;
  background: transparent;
}
.contributors-marquee::before,
.contributors-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 20px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.contributors-marquee::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(247,250,247,1),
    rgba(247,250,247,0)
  );
}

.contributors-marquee::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(247,250,247,1),
    rgba(247,250,247,0)
  );
}
.gateway-brand-accent-green {
  color: #80DA53;
}
.contributors-track {
  display: flex;
  align-items: center;
  gap: 1px;
  width: max-content;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.contributors-track.animating {
  animation: contributor-marquee 90s linear infinite;
}

.contributor-card {
  flex: 0 0 auto;
  width: 230px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contributor-card:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 16px 28px rgba(16, 19, 17, 0.12));
}

.contributor-logo {
  width: 230px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contributor-logo img {
  width: 185px;
  height: 72px;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: grayscale(1) opacity(0.62);
  transition: filter 220ms ease, transform 220ms ease;
}


.contributor-card:hover .contributor-logo img {
  filter: grayscale(0) opacity(1);
  transform: translateY(-2px);
}

.contributor-reveal {
  display: none;
}

@keyframes contributor-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.builders-intro {
  display: grid;
  gap: 26px;
  justify-items: start;
  text-align: left;
  margin: 0 0 34px;
}

.builders-ghost {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(3.8rem, 5.2vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
  color: rgba(16, 19, 17, 0.035);
  text-wrap: pretty;
}

.builders-subcopy {
  margin: 0;
  max-width: 50ch;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.18;
  color: rgba(64, 68, 73, 0.95);
}

.builders-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.builder-card {
  padding: 28px 28px 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(124, 242, 177, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(16, 19, 17, 0.06);
}

.builder-role {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(64, 68, 73, 0.74);
}

.builder-card h3 {
  margin: 0 0 12px;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.builder-card p:last-child {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(92, 96, 104, 0.92);
}

.site-footer {
  margin-top: 40px;
  padding: 0;
  background: #090909;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 40px 40px 0 0;
  overflow: hidden;
}

.site-footer-main {
  display: grid;
  grid-template-columns: minmax(460px, 2.4fr) repeat(3, minmax(170px, 1fr));
  gap: 28px;
  align-items: start;
  padding: 70px 82px 52px;
}

.site-footer-brand p,
.footer-column a,
.footer-heading {
}

.footer-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.footer-wordmark-mc {
  color: #ffffff;
}

.footer-wordmark-case {
  color: #5cf07a;
}

.site-footer-brand p {
  margin: 0;
  max-width: 31ch;
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.46);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 18px;
}

.footer-heading {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #57ef7d;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.54);
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1.35;
}

.footer-column a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 82px 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copyright,
.footer-made {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.34);
}

.footer-made {
  text-align: left;
  white-space: nowrap;
  margin-left: auto;
  flex: 0 0 auto;
}

@keyframes contributor-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .contributors-section,
  .builders-section,
  .site-footer {
    margin-top: 100px;
  }

  .builders-grid,
  .site-footer-main {
    grid-template-columns: 1fr;
  }

  .contributors-heading h2 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 10vw, 4.4rem);
  }

  .contributor-card {
    width: 176px;
    min-height: 112px;
  }

  .contributor-logo {
    width: 124px;
    height: 70px;
  }

  .builders-ghost {
    max-width: 12ch;
    font-size: clamp(2.8rem, 12vw, 4.8rem);
  }

  .builders-subcopy {
    font-size: 1.18rem;
  }

  .site-footer-main {
    padding: 50px 28px 36px;
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 28px 34px;
  }

  .contributors-marquee::before,
  .contributors-marquee::after {
    width: 40px;
  }
}

/* New Offerings UI */
.gateway-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.gateway-card-new {
  background: white;
  border-radius: 20px;
  padding: 30px;
  border: 1px solid #eaeaea;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gateway-card-new:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
.gc-header {
  margin-bottom: 24px;
}
.gc-brand {
  height: 26px;
  width: auto;
  margin-bottom: 16px;
  object-fit: contain;
}
.gc-header p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}
.gc-ui {
  flex-grow: 1;
  background: #fdfdfd;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gc-explore {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green);
  text-align: center;
  padding-top: 10px;
}
.gc-explore:hover {
  text-decoration: underline;
}

/* UI Elements */
.gc-ui-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}
.gc-ui-row {
  display: flex;
  gap: 16px;
  height: 100%;
}
.gc-ui-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gc-ui-list {
  list-style: none;
  padding: 0; margin: 0;
  font-size: 0.8rem;
  color: #444;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gc-ui-link {
  font-size: 0.7rem;
  color: var(--green);
  font-weight: 600;
  margin-top: auto;
}
.gc-ui-box {
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 12px;
}
.gc-ui-pills {
  display: flex;
  gap: 6px;
  font-size: 0.7rem;
  margin-bottom: 10px;
}
.gc-ui-pills span {
  padding: 4px 8px;
  background: #f5f5f5;
  color: #666;
  border-radius: 4px;
}
.gc-ui-pills span.active {
  background: var(--green);
  color: white;
}
.gc-ui-doc {
  font-size: 0.75rem;
}
.gc-ui-doc strong {
  display: block; color: #222;
}
.gc-ui-doc p {
  color: #777; margin: 2px 0 8px; font-size: 0.7rem;
}
.doc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.doc-tag {
  background: #f0f4ff;
  color: #4a6ee0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
}
.doc-footer svg {
  color: #666;
}

/* McFilter */
.gc-ui-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.75rem;
  color: #999;
}
.gc-ui-filters {
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-chip {
  background: #f5f5f5;
  border: 1px solid #eaeaea;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: #444;
}
.filter-btn {
  margin-left: auto;
  color: #666;
}
.gc-ui-results-count {
  font-size: 0.7rem;
  color: #888;
  margin-top: 4px;
}
.gc-ui-result {
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.gc-ui-result.faded {
  opacity: 0.4;
}
.result-badge {
  background: #e8faee;
  color: var(--green);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.result-content {
  flex: 1;
}
.result-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.result-top strong {
  font-size: 0.75rem;
  color: #222;
}
.res-tag {
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.res-tag.green { background: #e8faee; color: var(--green); }
.res-tag.purple { background: #f0ecfc; color: #6d4aff; }
.result-content p {
  margin: 0;
  font-size: 0.65rem;
  color: #777;
  line-height: 1.4;
}
.result-save {
  color: #ccc;
  margin-top: 2px;
}

/* McBuddy */
.mt-3 { margin-top: 12px; }
.gc-ui-buddy-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gc-ui-avatars {
  display: flex;
}
.gc-ui-avatars img {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -8px;
}
.gc-ui-avatars img:first-child { margin-left: 0; }
.gc-ui-avatars.small img { width: 20px; height: 20px; margin-left: -6px; }
.buddy-text { font-size: 0.7rem; color: #555; flex: 1; }
.gc-ui-room {
  background: #fcfcfc;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 12px;
}
.room-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.room-avatar { width: 24px; height: 24px; border-radius: 50%; }
.room-info { font-size: 0.75rem; color: #666; flex: 1; }
.room-info strong { color: #222; }
.room-live { color: var(--green); font-size: 0.7rem; font-weight: 600; }
.room-waves {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 20px;
  margin-bottom: 12px;
}
.wave {
  width: 3px;
  background: #a3e4c0;
  border-radius: 2px;
}
.w1 { height: 6px; }
.w2 { height: 10px; }
.w3 { height: 16px; background: var(--green); }
.w4 { height: 14px; }
.room-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.room-actions {
  display: flex;
  gap: 6px;
}
.action-btn {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
  color: #555;
}
.action-btn.red { background: #feebeb; color: #e63946; }

/* Stats Section */
.stats-section {
  margin: 60px auto;
  width: min(calc(100% - 8px), var(--content-width));
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: white;
  border: 1px solid #eaeaea;
  border-radius: 24px;
  padding: 24px 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.stat-box {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}
.stat-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.stat-icon.book { background: #e8faee; color: var(--green); }
.stat-icon.file { background: #f0ecfc; color: #6d4aff; }
.stat-icon.building { background: #eaf4ff; color: #2b7fff; }
.stat-info {
  display: flex;
  flex-direction: column;
}
.stat-info strong {
  font-size: 2.4rem;
  font-weight: 800;
  color: #111;
  line-height: 1.1;
}
.stat-info p {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
  font-weight: 600;
}

@media (max-width: 900px) {
  .gateway-grid-new { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 30px; }
  .stat-box { justify-content: flex-start; }
}

/* AI Analysis UI */
.ai-score-ring {
  position: relative;
  width: 54px;
  height: 54px;
  margin-top: -4px;
}
.circular-chart {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 250px;
}
.circle-bg {
  fill: none;
  stroke: #f0f0f0;
  stroke-width: 3.8;
}
.circle {
  fill: none;
  stroke-width: 3.8;
  stroke-linecap: round;
  animation: progress 1.5s ease-out forwards;
}
.circular-chart.green .circle {
  stroke: var(--green);
}
@keyframes progress {
  0% { stroke-dasharray: 0 100; }
}
.ai-score-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
}
.ai-score-text strong {
  font-size: 1.1rem;
  line-height: 1.1;
  color: #111;
  font-weight: 800;
}
.ai-score-text span {
  font-size: 0.55rem;
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
}
.ai-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ai-pills span {
  background: #e8faee;
  color: var(--green);
  font-size: 0.65rem;
  padding: 5px 10px;
  border-radius: 99px;
  font-weight: 600;
}


/* Testimonials Section */
.testimonials-section {
  padding: 60px 0 40px;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-eyebrow {
  color: #34c759;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 40px;
  text-align: center;
}

.testimonials-grid {
  display: flex;
  gap: 24px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.testimonial-card {
  flex: 1;
  min-width: 300px;
  max-width: 380px;
  background: white;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.testimonial-quote-wrap {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.quote-icon {
  background: #e6f7eb;
  color: #1d8f52;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-family: serif;
  font-weight: bold;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 12px;
}

.quote-text {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
}

.testimonial-author {
  display: flex;
  gap: 16px;
  align-items: center;
}

.author-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111;
  margin: 0;
}

.author-college {
  font-size: 0.85rem;
  color: #718096;
  margin: 0;
}

.testimonials-dots {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  justify-content: center;
}

.testimonials-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e0;
}

.testimonials-dots .dot.active {
  background: #34c759;
  width: 16px;
  border-radius: 8px;
}

.marquee-wrapper {
  display: flex;
  overflow: hidden;
  width: 100vw;
  max-width: 100%;
  position: relative;
}
/* Optional gradient masks on edges */
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fafdfb, transparent);
}
.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fafdfb, transparent);
}

.marquee-track {
  display: flex;
  gap: 24px;
  padding-right: 24px;
  animation: marquee-scroll 90s linear infinite;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.testimonial-card {
  width: 340px;
  flex: 0 0 auto;
}

/* Custom Dropdowns */
.mc-dropdown {
  position: relative;
  min-width: 180px;
  font-family: inherit;
  outline: none;
}

.mc-dropdown-header {
  padding: 0 24px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.mc-dropdown-header:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(29, 143, 82, 0.08);
}

.mc-dropdown.open .mc-dropdown-header {
  border-color: var(--accent);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.mc-dropdown.open .mc-dropdown-header svg {
  transform: rotate(180deg);
}

.mc-dropdown-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 280px;
  overflow-y: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  margin: 0;
  padding: 8px 0;
  list-style: none;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mc-dropdown.open .mc-dropdown-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mc-dropdown-item {
  padding: 10px 24px;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.mc-dropdown-item:hover {
  background: rgba(29, 143, 82, 0.08);
  color: var(--accent);
}

.mc-dropdown-item.active {
  background: var(--accent);
  color: white;
  font-weight: 600;
}

/* --- Notes System UI --- */
.notes-panel {
  position: absolute;
  top: 10%;
  right: 24px;
  width: 320px;
  height: 80%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: -4px 0 24px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notes-panel.is-hidden {
  transform: translateX(calc(100% + 32px));
}

.notes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.notes-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.notes-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}

.notes-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.notes-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.notes-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow-y: auto;
  gap: 12px;
}

.add-note-btn {
  width: 100%;
  padding: 12px;
  background: rgba(29, 143, 82, 0.05);
  border: 1px dashed rgba(29, 143, 82, 0.3);
  color: var(--accent);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.add-note-btn:hover {
  background: rgba(29, 143, 82, 0.1);
  border-style: solid;
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Note Card */
.note-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.note-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.note-card.expanded {
  cursor: default;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border-color: rgba(29, 143, 82, 0.3);
}

.note-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.note-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
}
.note-color-dot.yellow { background: #FFC107; }
.note-color-dot.green { background: #4CAF50; }
.note-color-dot.blue { background: #2196F3; }

.note-title-input {
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  border: none;
  background: transparent;
  outline: none;
  pointer-events: none;
}
.note-card.expanded .note-title-input {
  pointer-events: auto;
  border-bottom: 1px solid var(--line);
}

.note-time {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}

.note-menu-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
}
.note-menu-btn:hover { background: rgba(0,0,0,0.05); color: var(--text); }

.note-content-area {
  display: none;
  width: 100%;
  min-height: 80px;
  border: none;
  resize: vertical;
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  background: #fafafa;
  border-radius: 6px;
  padding: 8px;
  font-family: inherit;
  line-height: 1.5;
}
.note-card.expanded .note-content-area {
  display: block;
}

.note-actions {
  display: none;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.note-card.expanded .note-actions {
  display: flex;
}

.detach-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}
.detach-btn:hover { color: var(--text); }

.page-label {
  font-size: 0.65rem;
  color: var(--muted);
  text-align: right;
  font-weight: 600;
}

/* Floating Detached Note */
.floating-note {
  position: absolute;
  top: 100px;
  left: 100px;
  width: 280px;
  height: 200px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  resize: both;
  overflow: hidden;
  min-width: 200px;
  min-height: 150px;
}

.floating-note-header {
  padding: 10px 12px;
  background: rgba(0,0,0,0.03);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
}
.floating-note-header:active {
  cursor: grabbing;
}

.floating-note-body {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.floating-note .note-content-area {
  display: block;
  flex: 1;
  height: auto;
  resize: none;
  background: transparent;
}

/* --- PDF NOTES UI --- */
.notes-panel {
  position: absolute;
  top: 10%;
  right: 24px;
  width: 320px;
  height: 80%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.06);
}

.notes-panel.is-hidden {
  transform: translateX(calc(100% + 32px));
  display: flex;
}

.notes-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.notes-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.notes-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--surface-strong);
}

.notes-tab {
  flex: 1;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.notes-tab.active {
  color: var(--accent-deep);
  border-bottom: 2px solid var(--accent);
}

.notes-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface-strong);
}

.add-note-btn {
  width: 100%;
  padding: 12px;
  background: var(--surface);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-md);
  color: var(--accent-deep);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.add-note-btn:hover {
  background: var(--accent-soft);
}

.notes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.note-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: box-shadow 0.2s;
  cursor: pointer;
  position: relative;
}

.note-card.expanded {
  cursor: default;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.note-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.note-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.1);
}

.note-color-dot.yellow { background: #F4B400; }
.note-color-dot.green { background: #0E783F; }
.note-color-dot.blue { background: #1A73E8; }

.note-title-input {
  flex: 1;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
}

.note-time {
  font-size: 0.75rem;
  color: var(--muted);
}

.note-menu-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 2px;
  position: relative;
}

.note-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
  z-index: 10;
  overflow: hidden;
  min-width: 120px;
}

.note-menu-dropdown.show {
  display: flex;
  flex-direction: column;
}

.note-menu-dropdown button {
  background: transparent;
  border: none;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  font-size: 0.85rem;
  color: #d93025;
  width: 100%;
}

.note-menu-dropdown button:hover {
  background: rgba(0,0,0,0.04);
}

.note-content-area {
  display: none;
  width: 100%;
  min-height: 80px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  font-size: 0.9rem;
  color: var(--text);
  resize: vertical;
  background: var(--surface-strong);
  outline: none;
}

.note-content-area:focus {
  border-color: var(--accent);
}

.note-card.expanded .note-content-area {
  display: block;
}

.note-actions {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.note-card.expanded .note-actions {
  display: flex;
}

.detach-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.detach-btn:hover {
  background: var(--accent-soft);
}

.page-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  background: var(--surface-strong);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Floating Detached Note */
.floating-note {
  position: fixed;
  z-index: 99999;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  resize: both;
}

.floating-note-header {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
}

.floating-note-header:active {
  cursor: grabbing;
}

.floating-note-body {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.floating-note-body .note-content-area {
  display: block;
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  resize: none;
  padding: 0;
}

.pdf-pages-container[data-tool="textAnnotation"] .pdf-page-annotation-layer {
  pointer-events: auto;
  cursor: text;
}

/* ==========================================================================
   AUTHENTICATION & NAVBAR PLUGINS
   ========================================================================== */

/* Navbar Button Overrides */
.topbar-links a.nav-signup-btn {
  background: var(--green);
  color: white !important;
  padding: 8px 18px !important;
  border-radius: 99px !important;
  font-weight: 600 !important;
  margin-left: 8px;
  box-shadow: 0 4px 12px rgba(91, 204, 74, 0.2);
  transition: background-color 180ms ease, transform 180ms ease, color 180ms ease;
  display: inline-flex;
  align-items: center;
}
.topbar-links a.nav-signup-btn::after {
  display: none !important;
}
.topbar-links a.nav-signup-btn:hover {
  background: var(--accent-deep) !important;
  color: white !important;
  text-shadow: none !important;
  transform: translateY(-1px);
}

.topbar-links a.nav-signout-btn {
  color: #d93025;
  font-weight: 600;
}
.topbar-links a.nav-signout-btn::after {
  background: #d93025 !important;
}
.topbar-links a.nav-signout-btn:hover {
  color: #b8251b !important;
  text-shadow: none !important;
}

/* Auth split-screen layouts */
.auth-body {
  background:
    radial-gradient(circle at top left, rgba(29, 143, 82, 0.11), transparent 23%),
    radial-gradient(circle at top right, rgba(18, 116, 64, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f3f8f3 58%, #eef5ee 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 20px;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

.auth-container {
  width: 100%;
  max-width: 1050px;
  background: white;
  border: 1px solid rgba(31, 95, 58, 0.1);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(18, 53, 29, 0.05);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  min-height: 600px;
}

/* Left feature rail */
.auth-left {
  background: radial-gradient(circle at top left, rgba(29, 143, 82, 0.05), transparent 60%), #fafdfb;
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(31, 95, 58, 0.08);
}

.auth-left .brand-logo {
  height: 32px;
  width: auto;
  margin-bottom: 32px;
  align-self: flex-start;
}

.auth-left h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #101311;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.auth-left .subhead {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 32px 0;
}

.auth-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 0.95rem;
  color: #2f3833;
  font-weight: 500;
}

.auth-features-list li svg {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Right form rail */
.auth-right {
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
}

.auth-form-box {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.auth-form-box h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111;
  margin: 0 0 8px 0;
}

.auth-form-box p.form-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 28px 0;
}

.auth-form-group {
  margin-bottom: 20px;
  position: relative;
}

.auth-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #3f4e45;
  margin-bottom: 8px;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.auth-form-group input[type="text"],
.auth-form-group input[type="email"],
.auth-form-group input[type="tel"],
.auth-form-group input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fdfdfd;
  color: #111;
  outline: none;
  transition: all 180ms ease;
}

.auth-form-group input:focus {
  background: white;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(91, 204, 74, 0.1);
}

.auth-form-group .forgot-password-link {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}

.auth-form-group .forgot-password-link:hover {
  text-decoration: underline;
}

.auth-form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-form-checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--green);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.auth-form-checkbox-row a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}

.auth-form-checkbox-row a:hover {
  text-decoration: underline;
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  background: #25a153;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 180ms ease;
  box-shadow: 0 4px 12px rgba(37, 161, 83, 0.2);
  margin-bottom: 24px;
  font-family: inherit;
}

.auth-submit-btn:hover {
  background: #1e8744;
  box-shadow: 0 6px 16px rgba(37, 161, 83, 0.3);
  transform: translateY(-1px);
}

.auth-switch-prompt {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.auth-switch-prompt a {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
}

.auth-switch-prompt a:hover {
  text-decoration: underline;
}

.auth-error-banner {
  background: #fdf2f2;
  border: 1px solid #fbd5d5;
  color: #c81e1e;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  display: none;
  font-weight: 500;
}

.toggle-password-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.toggle-password-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Responsive Overrides */
@media (max-width: 860px) {
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 440px;
    min-height: auto;
    border-radius: 20px;
  }
  .auth-left {
    display: none;
  }
  .auth-right {
    padding: 40px 24px;
  }
}

/* Skeleton Loaders */
@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: 6px;
  display: inline-block;
}

.skeleton-text {
  height: 12px;
  width: 100%;
}

.skeleton-title {
  height: 18px;
  width: 75%;
}

.skeleton-rect {
  width: 100%;
  height: 100%;
}

.skeleton-circle {
  border-radius: 50%;
}

/* --- Mobile Responsiveness Overrides (Antigravity Fixes) --- */

.resources-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
}

.college-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
}

#featured-scroll-container {
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

#featured-scroll-container::-webkit-scrollbar {
  display: none !important;
}

@media (max-width: 960px) {
  .resources-main-grid,
  .college-main-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

@media (max-width: 960px) or (max-height: 520px) {
  #featuredScrollLeft {
    left: 8px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
  }
  #featuredScrollRight {
    right: 8px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
  }
  
  /* Notes Panel Mobile Layout */
  .notes-panel {
    width: 100% !important;
    height: 50% !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.1) !important;
  }
  .notes-panel.is-hidden {
    display: none !important;
  }
  
  /* PDF Reader Toolbar Wrapping */
  .bottom-viewer-toolbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    align-items: center !important;
    border-radius: 24px !important;
    padding: 8px 16px !important;
    gap: 16px !important;
    max-width: 95vw !important;
    bottom: 12px !important;
    width: auto !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .bottom-viewer-toolbar::-webkit-scrollbar {
    display: none !important;
  }
  .viewer-tool-group {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
    align-items: center !important;
  }
  .pdf-modal.notes-open .bottom-viewer-toolbar {
    display: none !important;
  }
  .pdf-modal.is-fullscreen #toggleSidebarBtn {
    left: auto !important;
    right: 16px !important;
    transform: none !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    bottom: 12px !important;
    width: 36px !important;
    height: 36px !important;
  }
  .pdf-modal.is-fullscreen.show-sidebar #toggleSidebarBtn {
    bottom: 64px !important;
  }
}

/* Mobile Auth Header Navigation */
.auth-mobile-header {
  display: none;
  margin-bottom: 32px;
  text-align: center;
}
.auth-mobile-header .brand {
  display: inline-flex;
  align-items: center;
  height: 36px;
}
.auth-mobile-header .brand-logo {
  height: 100%;
  width: auto;
  object-fit: contain;
}
@media (max-width: 860px) {
  .auth-mobile-header {
    display: block;
  }
}

/* College Page Mobile Header Adjustments */
@media (max-width: 640px) {
  main > section:first-of-type {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 20px !important;
  }
  main > section:first-of-type > div:first-child {
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
  }
  main > section:first-of-type button {
    align-self: center !important;
  }
}

/* College Page Casebook List Mobile Layout */
@media (max-width: 550px) {
  #casebooks-list > div {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
  #casebooks-list > div > div:last-child {
    width: 100% !important;
    justify-content: flex-end !important;
  }
}
/* Narrow mobile viewports input padding optimization */
@media (max-width: 350px) {
  .contact-form input,
  .contact-form textarea,
  .auth-form-group input {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* OAuth Social Login Buttons & Divider styling */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--muted, #5f7166);
  font-size: 0.85rem;
  margin: 20px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--line, #e6f3eb);
}
.auth-divider:not(:empty)::before {
  margin-right: .5em;
}
.auth-divider:not(:empty)::after {
  margin-left: .5em;
}

.social-btn-container {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-bottom: 16px;
}

.google-btn, .linkedin-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e6f3eb);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.google-btn:hover {
  background: rgba(16, 19, 17, 0.04);
  border-color: rgba(16, 19, 17, 0.15);
}

.linkedin-btn:hover {
  background: rgba(0, 119, 181, 0.05);
  border-color: rgba(0, 119, 181, 0.25);
}

.google-btn img, .linkedin-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Profile Avatar in Topbar */
.nav-profile-avatar-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50% !important;
  overflow: hidden;
  border: 2px solid var(--green, #0E783F) !important;
  padding: 0 !important;
  margin: 0 6px;
  vertical-align: middle;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nav-profile-avatar-link::after {
  display: none !important;
}

.nav-profile-avatar-link:hover {
  transform: scale(1.08);
  border-color: var(--mc-green-hover, #0a5d30) !important;
}

.nav-profile-avatar-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-profile-avatar-link svg {
  width: 100%;
  height: 100%;
  padding: 4px;
  background: #e6f3eb;
  color: #0E783F;
  box-sizing: border-box;
}

/* McBooks Library Header & Controls Grid */
.resources-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.resources-title {
  font-size: 2.8rem;
  margin: 0 0 12px 0;
  letter-spacing: -0.04em;
  white-space: normal;
}

.controls-row {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .resources-header {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  
  .resources-title {
    font-size: 2rem;
  }
  
  .controls-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .controls-row > div,
  .controls-row .mc-dropdown {
    width: 100% !important;
  }
}

/* PDF Loader Overlay */
.pdf-loader-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #ffffff !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999 !important;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.pdf-loader-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}
.pdf-loader-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text, #222222);
  max-width: 80%;
  text-align: center;
  line-height: 1.5;
  transition: opacity 0.6s ease;
  min-height: 2.2rem;
  opacity: 0;
}
.pdf-modal.is-fullscreen .pdf-loader-overlay {
  background: #000000 !important;
  color: #ffffff !important;
}
.pdf-modal.is-fullscreen .pdf-loader-text {
  color: #ffffff !important;
}




