/**
 * READ public pages — professional UI (librarians, gallery, shared sections)
 */
:root {
  --read-navy: #163763;
  --read-navy-deep: #0f2847;
  --read-maroon: #800000;
  --read-surface: #f6f8fc;
  --read-surface-elevated: #ffffff;
  --read-text: #1e293b;
  --read-text-muted: #64748b;
  --read-border: rgba(22, 55, 99, 0.1);
  --read-radius-lg: 20px;
  --read-radius-md: 14px;
  --read-radius-sm: 10px;
  --read-shadow-sm: 0 2px 8px rgba(15, 40, 71, 0.06);
  --read-shadow-md: 0 12px 40px rgba(15, 40, 71, 0.1);
  --read-shadow-hover: 0 20px 48px rgba(15, 40, 71, 0.14);
  --read-font: 'Poppins', 'Open Sans', system-ui, sans-serif;
}

/* —— Page shell —— */
.read-public-main--sub {
  background: var(--read-surface);
}

.read-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.read-section__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
}

/* —— Hero / page header —— */
.read-page-hero {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.read-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1rem;
  font-family: var(--read-font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--read-navy);
  background: rgba(22, 55, 99, 0.08);
  border: 1px solid var(--read-border);
  border-radius: 999px;
}

.read-eyebrow i {
  font-size: 0.85rem;
  color: var(--read-maroon);
}

.read-page-hero__title,
.read-section--librarians .section-title,
.read-section--gallery .section-title {
  font-family: var(--read-font) !important;
  font-weight: 700 !important;
  font-size: clamp(1.85rem, 4vw, 2.65rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  color: var(--read-navy) !important;
  margin: 0 0 0.75rem !important;
}

.read-page-hero__lead,
.read-section--gallery .lrc-gallery-lead {
  font-family: var(--read-font);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--read-text-muted);
  margin: 0 auto;
  max-width: 36rem;
}

/* —— Info panel (institutional copy) —— */
.read-info-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 52rem;
  margin: 0 auto 1.75rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--read-surface-elevated);
  border-radius: var(--read-radius-lg);
  border: 1px solid var(--read-border);
  box-shadow: var(--read-shadow-sm);
  position: relative;
  overflow: hidden;
}

.read-info-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--read-navy) 0%, var(--read-navy) 70%, var(--read-maroon) 100%);
}

.read-info-panel__content p {
  margin: 0 0 1rem;
  font-family: var(--read-font);
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--read-text-muted);
}

.read-info-panel__content p:last-child {
  margin-bottom: 0;
}

.read-info-panel__content strong {
  color: var(--read-text);
  font-weight: 600;
}

.read-info-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--read-border);
}

.read-info-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: var(--read-font);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--read-text-muted);
}

.read-info-feature i {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(22, 55, 99, 0.08);
  color: var(--read-navy);
  font-size: 0.95rem;
}

/* —— CTA bar —— */
.read-cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin: 0 auto 2.5rem;
  padding: 1rem 1.25rem;
  max-width: 52rem;
  background: linear-gradient(135deg, var(--read-navy-deep) 0%, var(--read-navy) 88%);
  border-radius: var(--read-radius-md);
  box-shadow: var(--read-shadow-md);
}

.read-cta-bar__text {
  flex: 1 1 200px;
  margin: 0;
  font-family: var(--read-font);
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--read-font);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.read-btn--primary {
  background: #ffffff;
  color: var(--read-navy) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.read-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  color: var(--read-navy-deep) !important;
}

.read-btn--ghost {
  background: transparent;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.45);
}

.read-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
}

/* ============================================================
   Home sections — About / ROSA polish
============================================================ */
.read-home-about {
  background: var(--read-surface);
}

.read-home-feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.read-home-feature {
  grid-column: span 12;
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.25rem;
  background: var(--read-surface-elevated);
  border: 1px solid var(--read-border);
  border-radius: var(--read-radius-md);
  box-shadow: var(--read-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.read-home-feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--read-shadow-hover);
}

.read-home-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--read-navy-deep) 0%, var(--read-navy) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 22px rgba(15, 40, 71, 0.18);
}

.read-home-feature__title {
  margin: 0 0 0.35rem;
  font-family: var(--read-font);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--read-navy);
}

.read-home-feature__text {
  margin: 0;
  font-family: var(--read-font);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--read-text-muted);
}

@media (min-width: 768px) {
  .read-home-feature {
    grid-column: span 6;
  }
}

/* ROSA */
.read-eyebrow--inverse {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.read-eyebrow--inverse i {
  color: rgba(255, 255, 255, 0.92);
}

.read-home-rosa {
  background: linear-gradient(135deg, var(--read-navy-deep) 0%, var(--read-navy) 78%, #1a3d6b 100%);
  color: #fff;
}

.read-home-rosa__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}

.read-home-rosa__title {
  margin: 0.75rem 0 0.5rem;
  font-family: var(--read-font);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  color: #fff;
}

.read-home-rosa__lead {
  margin: 0 0 0.75rem;
  font-family: var(--read-font);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
}

.read-home-rosa__text {
  margin: 0 0 1.25rem;
  font-family: var(--read-font);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.read-home-rosa__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.read-home-rosa__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.read-home-rosa__feature strong {
  display: block;
  font-family: var(--read-font);
  font-weight: 700;
}

.read-home-rosa__feature span {
  display: block;
  font-family: var(--read-font);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.86);
  margin-top: 0.15rem;
}

.read-home-rosa__feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

.read-home-rosa__card {
  border-radius: var(--read-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
  padding: 2rem 1.75rem;
  text-align: center;
}

.read-home-rosa__avatar {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 4px solid rgba(255, 255, 255, 0.22);
}

.read-home-rosa__avatar i {
  font-size: 56px;
}

.read-home-rosa__card-title {
  margin: 0 0 0.25rem;
  font-family: var(--read-font);
  font-weight: 800;
  color: #fff;
}

.read-home-rosa__card-sub {
  margin: 0 0 1.25rem;
  font-family: var(--read-font);
  color: rgba(255, 255, 255, 0.88);
}

.read-home-rosa__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--read-font);
  font-weight: 600;
}

@media (min-width: 992px) {
  .read-home-rosa__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2rem;
  }
}

/* —— Librarians section —— */
.read-section--librarians,
#librarian-team.read-section--librarians {
  background: linear-gradient(180deg, var(--read-surface) 0%, #eef2f8 100%) !important;
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 5vw, 4.5rem) !important;
}

.read-section--librarians .librarian-team-chart {
  gap: 2rem;
}

.read-tier-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-family: var(--read-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--read-maroon);
}

.read-tier-label::before,
.read-tier-label::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(128, 0, 0, 0.35));
}

.read-tier-label::after {
  background: linear-gradient(90deg, rgba(128, 0, 0, 0.35), transparent);
}

.librarian-team-lead-wrap {
  gap: 1.25rem !important;
  margin-bottom: 0.5rem !important;
}

.librarian-team-lead-wrap .librarian-team-card {
  max-width: 300px !important;
  border-top-color: var(--read-maroon) !important;
}

.librarian-team-connector {
  height: 20px !important;
  background: linear-gradient(180deg, rgba(22, 55, 99, 0.25), transparent) !important;
  width: 1px !important;
}

.librarian-team-connector-bar {
  height: 1px !important;
  background: linear-gradient(90deg, transparent, rgba(22, 55, 99, 0.2), transparent) !important;
  margin-bottom: 1.5rem !important;
}

.librarian-team-campus {
  margin-top: 2.5rem !important;
  padding-top: 2rem;
  border-top: 1px solid var(--read-border);
}

.librarian-team-campus:first-of-type {
  margin-top: 1rem !important;
  padding-top: 0;
  border-top: none;
}

.librarian-team-campus__label {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: var(--read-navy) !important;
  margin-bottom: 1.5rem !important;
}

.librarian-team-campus__label::after {
  width: 40px !important;
  height: 2px !important;
  background: var(--read-maroon) !important;
  border-radius: 2px;
}

.librarian-team-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 1.35rem !important;
}

/* —— Librarian cards (redesign) —— */
.librarian-team-card {
  background: var(--read-surface-elevated) !important;
  border-radius: var(--read-radius-md) !important;
  border: 1px solid var(--read-border) !important;
  border-top: none !important;
  box-shadow: var(--read-shadow-sm) !important;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease !important;
}

.librarian-team-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--read-shadow-hover) !important;
}

.librarian-team-card__media {
  aspect-ratio: 1 / 1 !important;
  background: linear-gradient(160deg, #e8eef6 0%, #f1f5f9 100%) !important;
  position: relative;
}

.librarian-team-card__media::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(15, 40, 71, 0.35), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.librarian-team-card:hover .librarian-team-card__media::after {
  opacity: 1;
}

.librarian-team-card__zoom img {
  object-position: center center !important;
}

.librarian-team-card__body {
  padding: 1.15rem 1.2rem 1.35rem !important;
  gap: 0.5rem;
}

.librarian-team-card__title {
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  color: var(--read-navy) !important;
  margin-bottom: 0.2rem !important;
  line-height: 1.3 !important;
}

.librarian-team-card__name {
  font-size: 0.86rem !important;
  color: var(--read-text-muted) !important;
  margin: 0 0 0.65rem !important;
  font-weight: 500;
}

.librarian-team-card__spec {
  display: block !important;
  margin: 0.35rem 0 0 !important;
  padding: 0.65rem 0 0 !important;
  border-top: 1px solid var(--read-border);
  font-family: var(--read-font);
  font-size: 0.84rem;
  line-height: 1.55;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 400 !important;
  color: var(--read-text-muted) !important;
}

.librarian-team-card__spec-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--read-maroon);
  margin-bottom: 0.25rem;
}

.librarian-team-card__spec-value {
  display: block;
  color: var(--read-text);
  font-weight: 500;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.librarian-team-card__desc {
  font-size: 0.88rem !important;
  margin-top: 0.5rem !important;
  padding-top: 0.65rem !important;
  border-top: 1px dashed var(--read-border);
}

/* —— Gallery section —— */
.read-section--gallery,
#gallery.read-section--gallery {
  background: var(--read-surface-elevated) !important;
  padding: clamp(2.5rem, 5vw, 4rem) 0 !important;
}

.read-section--gallery .read-section__inner {
  max-width: 1200px;
}

.lrc-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 1rem !important;
}

.lrc-gallery-figure {
  border-radius: var(--read-radius-sm);
  overflow: hidden;
  background: var(--read-surface);
  border: 1px solid var(--read-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lrc-gallery-figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--read-shadow-md);
}

.lrc-gallery-grid--captioned .lrc-gallery-item {
  border-radius: 0;
  aspect-ratio: 4 / 3;
  box-shadow: none;
}

.lrc-gallery-caption {
  font-size: 0.8rem !important;
  font-weight: 500;
  color: var(--read-text-muted) !important;
  padding: 0.65rem 0.75rem 0.75rem !important;
  text-align: left !important;
  background: var(--read-surface-elevated);
}

/* —— Empty states —— */
.read-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 28rem;
  margin: 0 auto;
}

.read-empty-state i {
  font-size: 2.5rem;
  color: var(--read-navy);
  opacity: 0.35;
  margin-bottom: 1rem;
}

.read-empty-state p {
  font-family: var(--read-font);
  color: var(--read-text-muted);
  margin: 0;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .read-info-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .read-cta-bar {
    flex-direction: column;
    text-align: center;
  }

  .read-cta-bar__text {
    flex: none;
  }

  .read-btn {
    width: 100%;
    max-width: 280px;
  }
}
