/* =========================================
   Basis
========================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f6f8;
  color: #111827;
}

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

/* =========================================
   Layout-Container
========================================= */

.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   Header & Institution-Bar
========================================= */

.header {
  background: #1f2937;
  color: #f9fafb;
}

/* neuer innerer Flex-Container */
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #374151;
}

/* linker Block: Logo + Titel */
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-brand h1 {
  margin: 0;
  font-size: 20px;
}

.header-brand-subtitle {
  margin: 2px 0 0;
  font-size: 13px;
  color: #d1d5db;
}

/* rechter Block: Navigation + Loginbereich */
.header-right {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* <span id="saved-count" class="badge" hidden style="background:#fbbf24;color:#111827;border-radius:999px;padding:0 6px; font-size:11px;">0</span> */
.saved-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 999px;
  background: #f97316;
  color: #ffffff;
  font-size: 11px;
  padding: 0 5px;
}

.saved-count-badge.hidden {
  display: none;
}

/* Navigation */
.main-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 13px;
}

.main-nav-links a {
  color: #e5e7eb;
  text-decoration: none;
  margin-left: 12px;
}

.main-nav-links a:first-child {
  margin-left: 0;
}

.main-nav-links a:hover {
  text-decoration: underline;
}

.main-nav-subline {
  font-size: 11px;
  color: #9ca3af;
}

/* Merkliste */
.saved-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#saved-link {
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  border-radius: 999px;
  background: #111827;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
}

/* Login-Box */
#login-box {
  text-align: right;
  font-size: 12px;
}

#login-status {
  font-size: 12px;
  color: #d1d5db;
  margin-bottom: 4px;
}

#auth-actions button {
  border: none;
  background: none;
  color: #2563eb;
  cursor: pointer;
  padding: 0;
  font-size: 12px;
}

#auth-actions button + span {
  margin: 0 4px;
}

/* Institution-Bar unter dem Header */
.institution-bar {
  padding: 8px 20px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
  color: #374151;
  background: #f9fafb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.institution-pill {
  background: #2563eb;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #ffffff;
}

/* =========================================
   Main / Hero / Sektionen (Home)
========================================= */

main {
  max-width: 1100px;
  margin: 24px auto 40px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero-Bereich auf der Startseite */
.hero {
  margin-bottom: 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 24px;
}

.hero-heading {
  margin: 0 0 8px;
  font-size: 24px;
}

.hero-text {
  margin: 0 0 6px;
  line-height: 1.5;
  color: #374151;
  font-size: 14px;
}

.hero-text-small {
  margin: 0;
  line-height: 1.5;
  color: #4b5563;
  font-size: 13px;
}

/* Hero-Suche */
.hero-search-form {
  width: 100%;
}

.hero-search-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: bold;
  color: #111827;
}

.hero-search-row {
  display: flex;
  gap: 8px;
}

.hero-search-input {
  flex: 1;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.hero-search-button {
  padding: 8px 14px;
  border-radius: 4px;
  border: none;
  background: #b91c1c;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.hero-search-hint {
  margin-top: 4px;
  font-size: 11px;
  color: #6b7280;
}

/* Sektionstitel im Main */
.section {
  margin-bottom: 32px;
}

.section-header {
  margin-bottom: 8px;
}

.section-title {
  margin: 0 0 4px;
  font-size: 18px;
}

.section-subtitle {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

/* =========================================
   Grid & Karten
========================================= */

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

/* allgemeine Card */
.card {
  background: white;
  padding: 16px 18px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100%;
  overflow: hidden;
}

/* Bereich für den Text, füllt den verfügbaren Platz */
.card-body {
  flex: 1 1 auto;
  overflow: hidden;
}

/* Fußzeile mit Button etc. bleibt unten sichtbar */
.card-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
}

/* Titel / Metadaten / Abstract optisch begrenzen */
.card-title {
  font-weight: 600;
  margin: 0 0 4px 0;
  word-wrap: break-word;
}

.card-meta {
  font-size: 13px;
  color: #4b5563;
  margin: 0 0 6px 0;
  word-wrap: break-word;
}

/* Abstract begrenzen */
.card-abstract {
  font-size: 14px;
  color: #374151;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card-title a {
  color: #111827;
  text-decoration: none;
}

.card-title a:hover {
  text-decoration: underline;
}

/* Buy-Buttons */
.buy {
  display: inline-block;
  margin-top: 10px;
  background: #2563eb;
  color: white;
  padding: 6px 10px;
  text-decoration: none;
  border-radius: 5px;
}

/* =========================================
   Works-Ansicht / Detail
========================================= */

.work-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.work-card-cover {
  flex: 0 0 120px;
}

.work-card-cover img {
  width: 120px;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  object-fit: cover;
}

.work-card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.work-card-content {
  flex: 1 1 auto;
}

.work-result-header {
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.work-result-title {
  margin: 4px 0;
}

.work-result-title a {
  color: #111827;
  text-decoration: none;
  cursor: pointer;
}

.work-result-title a:hover {
  text-decoration: underline;
}

.work-result-meta {
  margin: 0 0 6px;
  font-size: 13px;
  color: #4b5563;
}

.work-result-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.work-result-actions {
  margin-left: auto;
}

.work-result-access {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.work-link {
  font-size: 12px;
  color: #2563eb;
  text-decoration: none;
  cursor: pointer;
}

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

.work-link-ghost {
  border: none;
  background: transparent;
  font-size: 12px;
  color: #2563eb;
  cursor: pointer;
  padding: 0;
}

/* Badges */

.badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  white-space: nowrap;
}

.badge-type {
  background: #6b7280;
}

.badge-chapter {
  background: #eab308;
}

.badge-open-access {
  background: #15803d;
}

.badge-restricted {
  background: #b91c1c;
}

/* Detail-Seiten */

.detail-wrapper {
  max-width: 900px;
  margin: 40px auto;
  font-family: sans-serif;
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-header h1 {
  margin: 0;
}

.detail-title-group {
  flex: 1 1 auto;
  min-width: 0;
}

.publication-subtitle {
  color: #4b5563;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  margin: 6px 0 0;
  max-width: 72ch;
}

@media (max-width: 600px) {
  .detail-header {
    align-items: flex-start;
  }

  .publication-subtitle {
    font-size: 15px;
    line-height: 1.4;
  }
}

/* Textblöcke innerhalb der Detailseite */
.detail-section {
  margin: 12px 0;
}

.detail-section h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
}

.detail-section p {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #374151;
}

/* Themen / Schlagworte als Pill-Badges */
.topic-pill,
.keyword-pill {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.4;
}

.topic-pill {
  border: none;
  background: #e5e7eb;
  color: #374151;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
  margin-right: 4px;
}
.topic-pill:hover {
	background: #d1d5db;
}

.keyword-pill {
  background: #f3f4f6;
  color: #4b5563;
}

/* Kapitel-Karten */

.chapter-card {
  padding: 15px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.chapter-card--open {
  background: #f8fff8;
}

.chapter-card--restricted {
  background: #fff5f5;
}

.chapter-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chapter-card-title {
  margin: 0;
}

.chapter-link {
  color: #111827;
  text-decoration: none;
}

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

/* Access-Status */

.access-status {
  margin: 15px 0;
}

.access-status--granted {
  color: #16a34a;
  font-weight: bold;
}

.access-status--restricted {
  color: #dc2626;
  font-weight: bold;
}

/* =========================================
   Status / alte Klassen
========================================= */

.status {
  margin-top: 10px;
  font-weight: bold;
}

.locked {
  color: #b91c1c;
}

.open {
  color: #15803d;
}

/* =========================================
   Buttons
========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: #1f2937;
}

.btn-secondary {
  background: #2563eb;
  color: #ffffff;
}

.btn-secondary:hover {
  background: #1d4ed8;
}

.btn-muted {
  background: #444444;
  color: #ffffff;
}

.btn-muted:hover {
  background: #374151;
}

/* Save-Button */

.save-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  font-size: 12px;
}

.save-btn .save-icon {
  font-size: 18px;
  line-height: 1;
}

.save-btn .save-text {
  font-size: 12px;
}

/* Autoren-Popup */

.author-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.author-popup {
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
}

.author-popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}

.author-popup-content {
  font-size: 14px;
  color: #111827;
}

.author-popup-content h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.author-popup-content p {
  margin: 4px 0;
}

.author-popup-content ul {
  padding-left: 18px;
  margin: 4px 0;
}

.author-name {
  cursor: pointer;
}

.author-mail-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0 0 0 4px;
  color: #2563eb;
  font-size: 14px;
}

/* Utility */
.hidden {
  display: none;
}

/* Filter-Leiste */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters select,
.filters input[type="number"] {
  padding: 4px 6px;
  font-size: 13px;
}

/* Offcanvas-Filterpanel */

.filters-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 90%;
  height: 100%;
  background: #f9fafb;
  box-shadow: -2px 0 10px rgba(0,0,0,0.15);
  transition: right 0.25s ease;
  z-index: 1000;
}

.filters-panel--open {
  right: 0;
}

.filters-panel-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.filters-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.filters-panel-header h2 {
  margin: 0;
  font-size: 16px;
}

.filters-close-btn {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

/* Filterliste vertikal */

.filters-list {
  flex: 1 1 auto;
  overflow-y: auto;
}

.filter-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.filter-group label {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 4px;
}

.filter-group select,
.filter-group input[type="number"] {
  padding: 4px 6px;
  font-size: 13px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  background: #ffffff;
}

.filter-group-inline {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.filter-group-inline input[type="number"] {
  flex: 1;
  padding: 4px 6px;
  font-size: 13px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  background: #ffffff;
}

#active-filters {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.active-filter-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5e7eb;
  font-size: 12px;
  color: #374151;
}

.active-filter-badge button {
  border: none;
  background: transparent;
  margin-left: 4px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  color: #6b7280;
}

.active-filter-badge button:hover {
  color: #111827;
}

/* =========================================
   Responsive Breakpoints
========================================= */

/* bis 768px: Mobile Layout */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-brand {
    align-items: flex-start;
  }

  .header-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .main-nav {
    align-items: flex-start;
  }

  .saved-wrapper {
    align-items: flex-start;
  }

  #login-box {
    text-align: left;
  }

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

  .hero-search-row {
    flex-direction: column;
  }

  .hero-search-button {
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  main {
    padding: 0 16px;
    margin: 16px auto 24px;
  }

  .detail-wrapper {
    margin: 24px auto;
    padding: 0 16px;
  }

  .work-card {
    flex-direction: column;
  }

  .work-card-cover {
    flex: 0 0 auto;
  }
}

/* größere Screens: optional mehr Luft ab 1024px */
@media (min-width: 1024px) {
  .header-inner {
    padding: 16px 20px;
  }

  main {
    margin-top: 32px;
  }
}

/* collections-accessibility-baseline-v1 */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

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

[aria-busy="true"] {
  cursor: progress;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* portal-experience-hardening-v1 */
.series-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 30px 0 18px;
  border-bottom: 1px solid #d1d5db;
}

.series-tab {
  border: 1px solid transparent;
  border-bottom: 3px solid transparent;
  border-radius: 7px 7px 0 0;
  background: #f3f4f6;
  color: #374151;
  padding: 10px 14px;
  cursor: pointer;
}

.series-tab:hover,
.series-tab:focus-visible {
  background: #e5e7eb;
  color: #111827;
}

.series-tab.is-active,
.series-tab[aria-selected="true"] {
  background: #8f1118;
  border-color: #8f1118;
  color: #fff;
  font-weight: 700;
}

.series-public-layout,
.portal-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  gap: 28px;
  align-items: start;
}

.series-description {
  max-width: 850px;
  line-height: 1.7;
  white-space: pre-line;
}

.series-public-sidebar,
.portal-context-rail {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 18px;
}

.portal-side-card,
.citation-card,
.series-contributor-card {
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(17, 24, 39, .05);
}

.portal-side-card h2,
.citation-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.series-metadata {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  margin: 0;
}

.series-metadata dt,
.series-metadata dd {
  min-width: 0;
  padding: 9px 0;
  border-bottom: 1px solid #eef0f3;
}

.series-metadata dt {
  padding-right: 12px;
  overflow-wrap: anywhere;
}

.series-metadata dd {
  max-width: 150px;
  text-align: right;
  overflow-wrap: anywhere;
}

.series-metadata dt:last-of-type,
.series-metadata dd:last-of-type {
  border-bottom: 0;
}

.series-publication-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.series-publication-list .card {
  width: 100%;
  min-width: 0;
}

.series-contributor-card {
  margin-bottom: 12px;
}

.series-contributor-card h3 {
  margin: 0 0 4px;
}

.series-admin-row {
  display: block;
  width: 100%;
  padding: 11px 12px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
}

.series-admin-row:hover,
.series-admin-row:focus-visible {
  background: #fef2f2;
}

.series-admin-row[aria-current="true"] {
  background: #fee2e2;
  box-shadow: inset 4px 0 #8f1118;
}

.series-contributor-row {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(150px, 1.2fr) auto auto auto;
  gap: 9px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.series-contributor-row select {
  min-width: 0;
  padding: 7px;
}

.license-badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-weight: 650;
}

.citation-card select {
  width: 100%;
  margin: 8px 0;
  padding: 7px;
}

.citation-output {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 10px;
  background: #f9fafb;
  border-radius: 6px;
  font-size: 13px;
}

.portal-access-card .access-options-section,
.portal-access-card .access-actions-section,
.portal-access-card .license-section {
  margin: 0;
  padding: 0;
}

.portal-license-card .license-section {
  margin: 0;
  padding: 0;
}

.portal-access-card .access-options-section > h3,
.portal-license-card .license-section > h3 {
  display: none;
}

.portal-license-card .license-section p {
  margin: 0;
}

.portal-access-card .access-options-section > h3,
.portal-access-card .license-section > h3 {
  font-size: 14px;
  margin: 14px 0 7px;
}

.portal-access-card .access-status {
  margin: 0 0 12px;
}

.portal-access-card .btn,
.citation-card button {
  box-sizing: border-box;
  margin-top: 8px;
  text-align: center;
  width: 100%;
}

.purchase-option-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.purchase-option-card {
  border: 1px solid #dbe3ea;
  border-radius: 9px;
  background: #fff;
  padding: 12px;
}

.purchase-option-card--bundle {
  border-color: #9fc3b5;
  background: #f5fbf8;
}

.purchase-option-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #17202a;
}

.purchase-option-badge {
  border-radius: 999px;
  background: #dcefe7;
  color: #145a42;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
}

.purchase-option-price {
  color: #111827;
  font-size: 23px;
  font-weight: 750;
  line-height: 1.2;
  margin-top: 8px;
}

.purchase-option-card p {
  color: #4b5563;
  font-size: 13px;
  line-height: 1.4;
  margin: 6px 0 0;
}

.purchase-option-card .purchase-option-legal {
  color: #6b7280;
  font-size: 11px;
}

.purchase-option-action,
.access-download-action {
  display: block;
  margin-top: 11px !important;
  width: 100%;
}

.institution-access-note {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  border-top: 1px solid #e5e7eb;
  padding-top: 11px;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.45;
}

.institution-access-note strong {
  color: #1f2937;
  font-size: 13px;
}

.purchase-option-empty {
  color: #6b7280;
  font-size: 13px;
}

.portal-reach-card .usage-band-summary {
  color: #4b5563 !important;
  line-height: 1.5;
  margin: 0 !important;
}

@media (max-width: 800px) {
  .series-public-layout,
  .portal-detail-grid {
    grid-template-columns: 1fr;
  }

  .series-public-sidebar,
  .portal-context-rail {
    position: static;
  }

  .series-contributor-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1050px) {
  .series-public-layout {
    grid-template-columns: minmax(0, 1fr) minmax(225px, 270px);
    gap: 20px;
  }

  .series-metadata {
    grid-template-columns: 1fr;
  }

  .series-metadata dt {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .series-metadata dd {
    max-width: none;
    padding-top: 0;
    text-align: left;
  }
}
.bibliography-section {
  margin-top: 24px;
}

.bibliography-section h3 {
  margin: 0 0 10px;
}

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

.bibliography-entry {
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  padding: 10px 0 12px;
  border-bottom: 1px solid #e5e7eb;
}

.bibliography-entry:first-child {
  padding-top: 2px;
}

.bibliography-entry:last-child {
  border-bottom: 0;
}

.bibliography-entry > span {
  display: block;
  padding-left: 18px;
  text-indent: -18px;
}

.bibliography-entry > a {
  display: inline-block;
  margin-top: 5px;
  width: fit-content;
  font-size: 13px;
  font-weight: 600;
  text-indent: 0;
}

@media (max-width: 800px) {
  .portal-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .portal-detail-grid > .portal-detail-main,
  .portal-detail-grid > .portal-context-rail {
    display: contents;
  }

  .portal-detail-main > * {
    box-sizing: border-box;
    min-width: 0;
    order: 45;
    width: 100%;
  }

  .portal-publication-header {
    order: 10;
  }

  .portal-access-card {
    order: 20;
  }

  .abstract-section {
    order: 30;
  }

  .pdf-preview-section {
    order: 35;
  }

  .contents-section {
    order: 36;
  }

  .topics-section {
    order: 40;
  }

  .keywords-section {
    order: 41;
  }

  .bibliography-section {
    order: 50;
  }

  .portal-series-card {
    order: 60;
  }

  .portal-review-card,
  .reviewed-work-section {
    order: 61;
  }

  .portal-mobile-citation-slot {
    order: 70;
  }

  .portal-license-card {
    order: 80;
  }

  .portal-reach-card {
    order: 90;
  }

  .author-popup-overlay {
    order: 100;
  }

  .portal-context-rail > .portal-side-card,
  .portal-context-rail > .citation-card {
    box-sizing: border-box;
    margin-top: 16px;
    min-width: 0;
    width: 100%;
  }

  .abstract-section[style*="display:flex"] {
    flex-direction: column;
  }

  .abstract-section iframe,
  .pdf-preview-section iframe {
    height: min(70vh, 560px) !important;
  }
}
