:root {
  --academic-blue: #1a2b3c;
  --parchment: #fdfaf5;
  --accent-gold: #c5a059;
  --sidebar-sand: #e8e2d6;
  --text-main: #333333;
  --header-overlay: rgba(26, 43, 60, 0.75);
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--parchment);
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, serif;
  color: var(--text-main);
  overflow-x: hidden;
}

body[dir="rtl"] {
  text-align: right;
}
.records-directory-meta a{
    color:#173f78;
    font-weight:700;
    text-decoration:none;
}

.records-directory-meta a:hover{
    color:#c9a14a;
}

/* HEADER */

.main-header {
  background:
    linear-gradient(var(--header-overlay), var(--header-overlay)),
    url("/static/abstract-vision.jpg");
  background-size: cover;
  background-position: center;
  padding: 40px 60px;
  border-bottom: 4px solid var(--accent-gold);
}

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

.artistic-title {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 2.8rem;
  color: var(--accent-gold);
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.artistic-subtitle {
  color: #ffffff;
  font-style: italic;
  font-size: 1.1rem;
  margin-top: 8px;
  opacity: 0.95;
  display: block;
}

body[dir="rtl"] .artistic-title,
body[dir="rtl"] .sidebar-title {
  font-family: "Reem Kufi", sans-serif;
  font-style: normal;
}

.language-picker {
  display: flex;
  gap: 15px;
  align-items: center;
  white-space: nowrap;
}

.language-picker a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
}

.language-picker a:hover,
.language-picker a.active {
  color: var(--accent-gold);
}

.separator {
  color: var(--accent-gold);
}

/* LAYOUT */

.dashboard-container {
  display: flex;
  min-height: calc(100vh - 132px);
}

.sidebar-left,
.sidebar-right {
  width: 280px;
  min-width: 280px;
  background-color: var(--sidebar-sand);
  padding: 20px;
  overflow-y: auto;
  flex-shrink: 0;
}

.content-middle {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  padding: 60px 40px;
  overflow-y: auto;
}

.content-middle article,
.article-body {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
}

.content-middle article {
  margin-bottom: 50px;
}

.content-middle h2 {
  color: var(--academic-blue);
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  margin: 0 0 15px;
}

.article-body {
  text-align: justify;
}

.article-body img,
.article-body table {
  max-width: 100%;
  height: auto;
}

/* PROFILE */

.profile-img {
  width: 110px;
  height: 110px;
  border-radius: 70%;
  border: 3px solid var(--accent-gold);
  object-fit: cover;
  display: block;
  margin: 0 auto 30px;
}

/* PILLAR DROPDOWN */

.pillar-nodes,
.pillar-nodes li,
.sub-pillar-list,
.sub-pillar-list li {
  list-style: none !important;
}

.pillar-nodes {
  padding: 0 !important;
  margin: 20px 0 0 !important;
}

.pillar-item {
  margin-bottom: 16px;
}

.pillar-toggle {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  color: var(--academic-blue);
  font-family: Georgia, serif;
  font-size: 1.16rem;
  font-weight: bold;
  line-height: 1.15;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
  text-align: left;
}

.pillar-toggle:focus,
.pillar-toggle:active {
  outline: none;
  border: none;
  box-shadow: none;
}

.pillar-toggle:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 4px;
}

body[dir="rtl"] .pillar-toggle {
  text-align: right;
}

.pillar-arrow {
  color: var(--accent-gold);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.sub-pillar-list {
  display: none !important;
  padding-left: 22px !important;
  margin: 6px 0 12px !important;
}

body[dir="rtl"] .sub-pillar-list {
  padding-left: 0 !important;
  padding-right: 22px !important;
}

.sub-pillar-list a {
  display: block;
  color: #5d4037;
  text-decoration: none;
  font-size: 1.05rem;
  padding: 4px 0;
}

.sub-pillar-list a:hover {
  color: var(--accent-gold);
}

.pillar-item.open .sub-pillar-list {
  display: block !important;
}

.pillar-item.open .pillar-arrow {
  transform: rotate(180deg);
}

/* RIGHT SIDEBAR */

.sidebar-title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--academic-blue);
  margin: 0 0 20px;
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 5px;
}

.media-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.media-links li {
  margin-bottom: 15px;
}

.media-links li a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
}

.media-links li a:hover {
  color: var(--accent-gold);
  padding-left: 8px;
}

body[dir="rtl"] .media-links li a:hover {
  padding-left: 0;
  padding-right: 8px;
}

/* LOGIN */

.login-container {
  width: 100%;
  max-width: 400px;
  margin: 80px auto;
  text-align: center;
}

.login-title {
  color: var(--academic-blue);
  font-size: 2rem;
}

.login-subtitle {
  font-style: italic;
  margin-bottom: 30px;
}

.login-form {
  text-align: left;
}

body[dir="rtl"] .login-form {
  text-align: right;
}

.login-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--academic-blue);
  font-weight: bold;
}

.login-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--accent-gold);
  font: inherit;
}

.btn-gold {
  width: 100%;
  padding: 12px;
  cursor: pointer;
  border: 0;
  background: var(--accent-gold);
  color: #ffffff;
  font-weight: bold;
  font: inherit;
}

.btn-gold:hover {
  filter: brightness(0.95);
}

/* FLASH */

.flash-message {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
}

.flash-error {
  background: #ffe3e3;
  color: #8a1f1f;
}

.flash-success {
  background: #e3ffe8;
  color: #1f7a33;
}

/* RESPONSIVE */

@media (max-width: 1200px) {
  .dashboard-container {
    display: block;
    min-height: auto;
  }

  .sidebar-right {
    display: none;
  }

  .sidebar-left {
    position: fixed;
    left: -260px;
    top: 0;
    width: 280px;
    height: 100vh;
    z-index: 9999;
    background-color: var(--sidebar-sand);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease-in-out;
  }

  .sidebar-left:hover {
    left: 0;
  }

  body[dir="rtl"] .sidebar-left {
    left: auto;
    right: -260px;
    transition: right 0.3s ease-in-out;
  }

  body[dir="rtl"] .sidebar-left:hover {
    right: 0;
  }

  .content-middle {
    width: 100%;
    padding: 40px 20px;
  }

  .content-middle article,
  .article-body {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .main-header {
    padding: 24px 20px;
  }

  .header-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  body[dir="rtl"] .header-banner {
    align-items: flex-end;
  }

  .artistic-title {
    font-size: 2rem;
  }

  .content-middle {
    padding: 30px 16px;
  }

  .content-middle h2 {
    font-size: 1.6rem;
  }
}

/* Final override: reduce pillar font by 20% */
.sidebar-left .pillar-toggle {
  font-size: 1.16rem !important;
}

.sidebar-left .pillar-toggle span:first-child {
  font-size: inherit !important;
}

/* Removed accidental embedded _sidebar.html template block from CSS. */
.message {
  margin: 16px 0;
  padding: 12px 14px;
  background: #f4efe4;
  border-left: 4px solid var(--accent-gold);
  color: var(--academic-blue);
  font-weight: bold;
}

.media-manager-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-gold);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(26, 43, 60, 0.72);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 520px;
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  border-top: 5px solid var(--accent-gold);
  position: relative;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.modal-box h2 {
  margin-top: 0;
  color: var(--academic-blue);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
  color: var(--academic-blue);
}

.modal-upload-form label {
  display: block;
  margin-bottom: 14px;
  color: var(--academic-blue);
  font-weight: bold;
}

.modal-upload-form select,
.modal-upload-form input {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--accent-gold);
  font: inherit;
}

.single-page {
  min-height: calc(100vh - 160px);
  padding: 60px 20px;
  background: var(--parchment);
}

.form-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 30px;
  background: #ffffff;
  border-top: 4px solid var(--accent-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.form-card label {
  display: block;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--academic-blue);
}

.form-card input {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid var(--accent-gold);
}

.form-card button {
  width: 100%;
  padding: 12px;
  background: var(--accent-gold);
  color: white;
  border: 0;
  cursor: pointer;
  font-weight: bold;
}

/* --- GALLERY SPECIFIC LAYOUTS --- */
.gallery-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--sidebar-sand);
  padding-bottom: 15px;
}

.tab-btn {
  background: none;
  border: none;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #666;
  cursor: pointer;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--academic-blue);
  font-weight: bold;
  border-bottom: 3px solid var(--accent-gold);
}

/* Responsive Masonry/Flex Grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.media-card {
  background: #fff;
  border: 1px solid var(--sidebar-sand);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.media-wrapper {
  width: 100%;
  height: 220px;
  background: #fdfcf7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-wrapper img,
.media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Document presentation styles */
.document-placeholder {
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.file-icon {
  font-size: 3rem;
}

.file-name {
  font-size: 0.9rem;
  color: #555;
  word-break: break-all;
}

.download-btn,
.back-home-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--academic-blue);
  color: white !important;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-top: 5px;
}

.back-home-btn {
  background-color: transparent;
  color: var(--academic-blue) !important;
  border: 1px solid var(--academic-blue);
}

.back-home-btn:hover {
  background-color: var(--academic-blue);
  color: white !important;
}

.media-info {
  padding: 15px;
  border-top: 1px solid var(--sidebar-sand);
  background: #faf9f5;
  text-align: center;
}

.file-label {
  margin: 0;
  font-size: 0.95rem;
  color: var(--academic-blue);
  font-weight: 500;
}

.empty-gallery {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px;
  color: #888;
  font-style: italic;
}

/* Read-Only Interactive Image Handling */
.media-wrapper a img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.media-wrapper a:hover img {
  transform: scale(1.04);
  filter: brightness(0.9);
}

.media-wrapper a {
  position: relative;
}

/* Optional: Subtle indicator icon showing the image can be expanded */
.media-wrapper a:hover::after {
  content: "🔍";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- AUDIOVISUAL PLAYBACK ARCHITECTURE --- */
.video-container {
  display: flex;
  flex-direction: column;
  background: #000;
  /* Crisp frame border for media alignment */
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.video-container video {
  width: 100%;
  height: 200px;
  background-color: #000;
}

.playback-controls-panel {
  background: #faf9f5;
  padding: 10px;
  border-top: 1px solid var(--sidebar-sand);
  display: flex;
  justify-content: center;
}

.control-btn {
  background-color: #fff;
  border: 1px solid var(--academic-blue);
  color: var(--academic-blue);
  padding: 6px 14px;
  font-family: 'Georgia', serif;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.control-btn:hover {
  background-color: var(--academic-blue);
  color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.personal-link a {
  display: inline-block;
}

.personal-link a:hover .profile-img {
  transform: scale(1.04);
  transition: transform 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.comment-entry {
  padding: 18px 0;
  border-bottom: 1px solid #ddd;
}

.comment-entry h4 {
  margin-bottom: 8px;
  color: var(--academic-blue);
}

.comment-entry p {
  line-height: 1.7;
}

.discussion-card {
  max-width: 900px;
}

body[dir="rtl"] .discussion-card,
body[dir="rtl"] .reader-feedback-form {
  text-align: right;
}

.reader-feedback-form textarea {
  width: 100%;
  min-height: 240px;
  padding: 14px;
  font-size: 1rem;
  line-height: 1.7;
  resize: vertical;
}

.article-meta {
  margin: 18px 0 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid #d9c9a5;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.article-author-photo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.article-author-name {
  margin: 0;
  font-weight: bold;
  color: var(--academic-blue);
}

.article-date {
  margin: 4px 0 0;
  color: #777;
  font-size: 0.92rem;
}

body[dir="rtl"] .article-author {
  flex-direction: row-reverse;
  text-align: right;
}

.search-page {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 24px;
}

.search-card {
  background: #fff;
  padding: 34px;
  border-top: 5px solid var(--accent-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  margin-bottom: 40px;
}

.archive-search-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 14px;
}

.archive-search-form input,
.archive-search-form select,
.archive-search-form button {
  padding: 12px;
  border: 1px solid var(--accent-gold);
  font-family: Georgia, serif;
}

.archive-search-form button {
  background: var(--academic-blue);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.search-result-card {
  background: #fff;
  padding: 24px;
  border-left: 4px solid var(--accent-gold);
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

.result-type {
  color: var(--accent-gold);
  font-weight: bold;
  text-transform: uppercase;
  font-size: .85rem;
}

.search-result-card h3 a {
  color: var(--academic-blue);
  text-decoration: none;
}

.result-summary {
  line-height: 1.7;
}

.result-meta {
  color: #777;
  font-size: .95rem;
}

.archive-detail-card {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-top: 5px solid var(--accent-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.archive-summary {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #555;
  border-left: 4px solid var(--accent-gold);
  padding-left: 16px;
}

.attached-files {
  list-style: none;
  padding: 0;
}

.attached-files li {
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
}

.attached-files a {
  color: var(--academic-blue);
  font-weight: bold;
}

@media (max-width: 800px) {
  .archive-search-form {
    grid-template-columns: 1fr;
  }
}

.archive-explorer {
  max-width: 1250px;
  margin: 60px auto;
  padding: 0 24px;
}

.archive-hero {
  background: #ffffff;
  padding: 36px;
  border-top: 5px solid var(--accent-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  margin-bottom: 30px;
}

.archive-hero h1 {
  color: var(--academic-blue);
  margin-top: 0;
  font-size: 3.0rem;
}

.archive-hero p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.archive-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
}

.archive-filters {
  background: #ffffff;
  padding: 24px;
  border: 1px solid #e2d9c2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
  align-self: start;
  position: sticky;
  top: 20px;
}

.archive-filters label {
  display: block;
  margin-bottom: 18px;
  color: var(--academic-blue);
  font-weight: bold;
}

.archive-filters input,
.archive-filters select {
  width: 100%;
  margin-top: 7px;
  padding: 11px;
  border: 1px solid var(--accent-gold);
  font-family: Georgia, serif;
}

.archive-filters button {
  width: 100%;
  padding: 12px;
  background: var(--academic-blue);
  color: #fff;
  border: 0;
  font-weight: bold;
  cursor: pointer;
}

.clear-filters {
  display: block;
  text-align: center;
  margin-top: 14px;
  color: var(--accent-gold);
  font-weight: bold;
  text-decoration: none;
}

.archive-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  color: var(--academic-blue);
}

.archive-record-card {
  background: #ffffff;
  padding: 26px;
  margin-bottom: 20px;
  border-left: 5px solid var(--accent-gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

body[dir="rtl"] .archive-record-card {
  border-left: none;
  border-right: 5px solid var(--accent-gold);
}

.record-badge {
  display: inline-block;
  background: #f4efe4;
  color: var(--accent-gold);
  padding: 5px 10px;
  font-weight: bold;
  font-size: .85rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.archive-record-card h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
}

.archive-record-card h3 a {
  color: var(--academic-blue);
  text-decoration: none;
}

.record-summary {
  line-height: 1.7;
  color: #444;
}

.record-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #777;
  margin-top: 14px;
  font-size: .95rem;
}

.archive-empty {
  background: #ffffff;
  padding: 40px;
  text-align: center;
  color: #777;
  border: 1px dashed #d9c9a5;
}

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

  .archive-filters {
    position: static;
  }
}

.archive-item-page {
  max-width: 1400px;
  margin: 40px auto;
  display:block;
  gap: 40px;
}

.archive-paper {
  background: #fff;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

.paper-title {
  color: #0d3768;
  font-size: 3rem;
  line-height: 1.4;
}

.paper-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.paper-author-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
}

.paper-summary {
  background: #f9f7f0;
  padding: 20px;
  margin-bottom: 30px;
}

.paper-content {
  font-size: 1.1rem;
  line-height: 2;
}

.paper-downloads {
  margin-top: 50px;
}

.download-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 10px;
}

.download-button {
  background: #c9a24f;
  color: #fff;
  padding: 8px 20px;
  text-decoration: none;
}

.related-records {
  background: #fff;
  padding: 25px;
  height: fit-content;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

.record-tags {
  margin: 35px 0;
  padding: 24px;
  background: #f9f7f0;
  border-left: 4px solid var(--accent-gold);
}

body[dir="rtl"] .record-tags {
  border-left: none;
  border-right: 4px solid var(--accent-gold);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill {
  display: inline-block;
  padding: 8px 14px;
  background: var(--academic-blue);
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: bold;
}

.tag-pill:hover {
  background: var(--accent-gold);
}

.related-research {
  margin-top: 60px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.related-card {
  padding: 20px;
  background: #f8f8f8;
  border-left: 4px solid var(--accent-gold);
}

.related-card h3 {
  margin-bottom: 12px;
}

.related-card a {
  text-decoration: none;
  color: var(--academic-blue);
}

.related-card a:hover {
  color: var(--accent-gold);
}

.archive-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.download-list {
  list-style: none;
  padding: 0;
}

.download-list li {
  margin-bottom: 12px;
}

.download-link {
  color: var(--academic-blue);
  font-weight: 600;
  text-decoration: none;
}

.download-link:hover {
  color: var(--accent-gold);
}

.author-profile-link {
  color: var(--academic-blue);
  font-weight: bold;
  text-decoration: none;
}

.author-profile-link:hover {
  color: var(--accent-gold);
}

.author-hero {
  text-align: center;
}

.browse-page {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
}

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

.browse-card {
  background: #fff;
  padding: 26px;
  border-top: 4px solid var(--accent-gold);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.browse-card h2 {
  color: var(--academic-blue);
  margin-top: 0;
}

.browse-card a {
  display: block;
  padding: 8px 0;
  color: var(--academic-blue);
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.browse-card a:hover {
  color: var(--accent-gold);
}

.admin-records-page {
  max-width: 1200px;
  margin: 50px auto;
  background: #fff;
  padding: 35px;
  border-top: 5px solid var(--accent-gold);
}

.admin-records-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 25px;
}

.admin-records-table th,
.admin-records-table td {
  border-bottom: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.admin-records-table th {
  color: var(--academic-blue);
}

.danger-button {
  background: #b91c1c;
  color: white;
  border: 0;
  padding: 8px 14px;
  cursor: pointer;
}

.record-open-link {
  display: inline-block;
  margin-top: 18px;
  color: #ffffff;
  background: #163d73;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.record-open-link:hover {
  background: #0f2d55;
}

.read-more-wrapper {
  display: block;
  clear: both;
  margin-top: 28px;
}

.content-type-badge {
  display: inline-block;
  background: #d4b06a;
  color: #173454;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.article-body {
  line-height: 1.7;
}

/* Author Page V2 - Egyptian Visions */

.author-page-v2 {
  max-width: 1180px;
  margin: 46px auto 70px;
  padding: 0 26px;
}

.author-portrait-panel {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.10);
  min-height: 340px;
}

.author-portrait-left {
  background: #e9e2d3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  border-right: 1px solid #d7c59b;
}

html[dir="rtl"] .author-portrait-left {
  border-right: none;
  border-left: 1px solid #d7c59b;
}

.author-portrait-img {
  width: 210px !important;
  height: 210px !important;
  max-width: 210px !important;
  max-height: 210px !important;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #c5a059;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
  display: block;
}

.author-portrait-right {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.author-kicker {
  color: #c5a059;
  font-weight: bold;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.author-portrait-right h1 {
  margin: 0 0 12px;
  color: #092844;
  font-size: 2.8rem;
  line-height: 1.15;
}

.author-role-v2 {
  margin: 0 0 18px;
  color: #7a4b20;
  font-weight: bold;
  font-size: 1.08rem;
}

.author-bio-v2 {
  color: #333;
  line-height: 1.75;
  max-width: 720px;
  margin-bottom: 28px;
}

.author-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 12px;
  max-width: 620px;
}

.author-mini-stat {
  background: #f7f1e5;
  border: 1px solid #d4b06a;
  padding: 14px 12px;
  text-align: center;
}

.author-mini-stat strong {
  display: block;
  color: #092844;
  font-size: 1.65rem;
  line-height: 1;
  margin-bottom: 6px;
}

.author-mini-stat span {
  color: #7a4b20;
  font-size: 0.85rem;
  font-weight: bold;
}

.author-publications-v2 {
  margin-top: 48px;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 2px solid #d4b06a;
  padding-bottom: 12px;
  margin-bottom: 32px;
}

.section-heading-row h2 {
  color: #092844;
  margin: 0;
  font-size: 2rem;
}

.small-archive-link {
  color: #7a4b20;
  text-decoration: none;
  font-weight: bold;
}

.small-archive-link:hover {
  color: #092844;
  text-decoration: underline;
}

.author-publication-group-v2 {
  margin-bottom: 46px;
}

.author-publication-group-v2 h3 {
  color: #092844;
  margin-bottom: 20px;
  font-size: 1.45rem;
}

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

.author-record-card-v2 {
  background: #ffffff;
  border: 1px solid #e3d8bd;
  padding: 26px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.author-record-card-v2:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}

.author-record-card-v2 h4 {
  margin: 10px 0 12px;
  color: #092844;
  font-size: 1.28rem;
  line-height: 1.35;
}

.author-record-card-v2 h4 a {
  color: inherit;
  text-decoration: none;
}

.author-record-card-v2 h4 a:hover {
  color: #7a4b20;
}

.author-record-card-v2 p {
  color: #333;
  line-height: 1.65;
  margin-bottom: 20px;
}

.author-record-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #eadfc6;
  padding-top: 14px;
  color: #6b6258;
  font-size: 0.92rem;
}

.author-record-footer a {
  color: #ffffff;
  background: #163d73;
  padding: 8px 14px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: bold;
}

.author-record-footer a:hover {
  background: #0f2d55;
}

@media(max-width: 900px) {
  .author-portrait-panel {
    grid-template-columns: 1fr;
  }

  .author-portrait-left {
    border-right: none;
    border-left: none;
    border-bottom: 1px solid #d7c59b;
  }

  .author-portrait-right {
    padding: 34px 28px;
    text-align: center;
  }

  .author-stats-row {
    grid-template-columns: repeat(2, 1fr);
    margin: 0 auto;
  }

  .section-heading-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .author-record-grid-v2 {
    grid-template-columns: 1fr;
  }
}

/* Archive Item V2 */

.archive-item-page-v2 {
  max-width: 1120px;
  margin: 46px auto 80px;
  padding: 0 26px;
}

.archive-item-main-card-v2 {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .09);
  padding: 52px;
}

.archive-item-kicker-v2 {
  display: inline-block;
  background: #d4b06a;
  color: #092844;
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 6px 10px;
  margin-bottom: 18px;
}

.archive-item-title-v2 {
  color: #092844;
  font-size: 2.85rem;
  line-height: 1.22;
  margin: 0 0 28px;
}

.archive-item-meta-panel-v2 {
  border-top: 1px solid #dbc793;
  border-bottom: 1px solid #dbc793;
  padding: 22px 0;
  margin-bottom: 34px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.archive-item-author-v2 {
  display: flex;
  align-items: center;
  gap: 16px;
}

.archive-item-author-photo-v2 {
  width: 68px !important;
  height: 68px !important;
  max-width: 68px !important;
  max-height: 68px !important;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #c5a059;
}

.archive-item-author-name-v2 {
  color: #092844;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
}

.archive-item-author-name-v2:hover {
  color: #7a4b20;
}

.archive-item-date-v2 {
  margin: 6px 0 0;
  color: #6b6258;
}

.archive-item-taxonomy-v2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #6b6258;
  font-size: 0.95rem;
}

.archive-item-taxonomy-v2 strong {
  color: #092844;
}

.archive-item-summary-box-v2 {
  background: #f8f3e8;
  border-left: 5px solid #c5a059;
  padding: 24px 28px;
  margin-bottom: 36px;
}

html[dir="rtl"] .archive-item-summary-box-v2 {
  border-left: none;
  border-right: 5px solid #c5a059;
}

.archive-item-summary-box-v2 h2,
.scholarly-metadata-panel-v2 h2,
.attached-files-panel-v2 h2,
.record-tags-v2 h2 {
  color: #092844;
  margin-top: 0;
  font-size: 1.45rem;
}

.archive-item-summary-box-v2 p {
  margin-bottom: 0;
  line-height: 1.75;
}

.scholarly-metadata-panel-v2 {
  border: 1px solid #e1d3ae;
  background: #fffdf8;
  padding: 28px;
  margin-bottom: 38px;
}

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

.metadata-grid-v2 div {
  background: #ffffff;
  border: 1px solid #eadfc6;
  padding: 14px 16px;
}

.metadata-grid-v2 span,
.recommended-citation-v2 span {
  display: block;
  color: #7a4b20;
  font-size: 0.78rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.metadata-grid-v2 strong {
  color: #092844;
  font-weight: bold;
}

.recommended-citation-v2 {
  margin-top: 20px;
  border-top: 1px solid #eadfc6;
  padding-top: 18px;
}

.recommended-citation-v2 p {
  color: #333;
  line-height: 1.65;
  margin-bottom: 0;
}

.archive-item-body-v2 {
  font-size: 1.08rem;
  line-height: 1.9;
  color: #111;
  margin-bottom: 42px;
}

.archive-item-body-v2 p {
  margin-bottom: 1.2em;
}

.record-tags-v2 {
  border-top: 1px solid #eadfc6;
  padding-top: 26px;
  margin-top: 32px;
}

.tag-list-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill-v2 {
  background: #f7f1e5;
  border: 1px solid #d4b06a;
  color: #7a4b20;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 20px;
}

.tag-pill-v2:hover {
  background: #d4b06a;
  color: #092844;
}

.attached-files-panel-v2 {
  border-top: 1px solid #eadfc6;
  margin-top: 34px;
  padding-top: 28px;
}

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

.file-icon-v2 {
  font-size: 1.4rem;
}

.empty-note-v2 {
  color: #6b6258;
  font-style: italic;
}

.related-research-v2,
.research-dialogue-panel-v2 {
  margin-top: 46px;
}

.archive-section-heading-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 2px solid #d4b06a;
  padding-bottom: 12px;
  margin-bottom: 28px;
}

.archive-section-heading-v2 h2 {
  color: #092844;
  margin: 0;
  font-size: 2rem;
}

.small-archive-link-v2 {
  color: #7a4b20;
  text-decoration: none;
  font-weight: bold;
}

.small-archive-link-v2:hover {
  color: #092844;
  text-decoration: underline;
}

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

.related-research-card-v2,
.dialogue-card-v2 {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  padding: 26px;
}

.related-research-card-v2 h3,
.dialogue-card-v2 h3 {
  margin: 12px 0;
  color: #092844;
  font-size: 1.25rem;
  line-height: 1.35;
}

.related-research-card-v2 h3 a,
.dialogue-card-v2 h3 a {
  color: inherit;
  text-decoration: none;
}

.related-research-card-v2 h3 a:hover,
.dialogue-card-v2 h3 a:hover {
  color: #7a4b20;
}

.related-research-card-v2 p,
.dialogue-card-v2 p {
  color: #333;
  line-height: 1.65;
}

.related-card-footer-v2 {
  border-top: 1px solid #eadfc6;
  padding-top: 14px;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  color: #6b6258;
  font-size: 0.9rem;
}

.related-card-footer-v2 a {
  color: #ffffff;
  background: #163d73;
  padding: 8px 14px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: bold;
}

.related-card-footer-v2 a:hover {
  background: #0f2d55;
}

.dialogue-timeline-v2 {
  display: grid;
  gap: 18px;
}

.dialogue-type-v2 {
  color: #c5a059;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
}

@media(max-width: 850px) {
  .archive-item-main-card-v2 {
    padding: 30px;
  }

  .archive-item-title-v2 {
    font-size: 2rem;
  }

  .archive-item-meta-panel-v2 {
    flex-direction: column;
    align-items: flex-start;
  }

  .metadata-grid-v2,
  .attached-file-grid-v2,
  .related-research-grid-v2 {
    grid-template-columns: 1fr;
  }
}

.enhanced-archive-dashboard {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin: 35px 0 45px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #d4b06a;
  border-top: 4px solid #c5a059;
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.stat-card span {
  display: block;
  color: #163d73;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 6px;
}

.stat-card small {
  color: #7a4b20;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.highlight-stat {
  background: #f8f3e8;
  border-top-color: #163d73;
}

@media(max-width: 1000px) {
  .enhanced-archive-dashboard {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width: 650px) {
  .enhanced-archive-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-link {
  display: block;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.stat-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

.stat-link:hover span {
  color: #7a4b20;
}

.citation-box {
  background: #f7f1e5;
  border-left: 5px solid #163d73;
  padding: 22px 26px;
  margin: 32px 0 38px;
}

.citation-box h2 {
  color: #163d73;
  margin-top: 0;
  font-size: 1.35rem;
}

.citation-box p {
  margin-bottom: 0;
  line-height: 1.7;
}

/* Tag Page V2 */

.tag-page-v2 {
  max-width: 1180px;
  margin: 46px auto 75px;
  padding: 0 26px;
}

.tag-hero-panel {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 48px 54px;
  margin-bottom: 30px;
}

.tag-kicker {
  color: #c5a059;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tag-hero-panel h1 {
  color: #092844;
  font-size: 2.8rem;
  margin: 0 0 16px;
  line-height: 1.15;
}

.tag-hero-panel p {
  color: #333;
  line-height: 1.75;
  max-width: 780px;
  margin: 0;
}

.tag-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 46px;
}

.tag-stat-card {
  background: #f8f3e8;
  border: 1px solid #d4b06a;
  border-top: 4px solid #c5a059;
  text-align: center;
  padding: 22px 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.tag-stat-card strong {
  display: block;
  color: #092844;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.tag-stat-card span {
  color: #7a4b20;
  font-weight: bold;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-records-section {
  margin-top: 20px;
}

.tag-record-group {
  margin-bottom: 46px;
}

.tag-record-group h3 {
  color: #092844;
  font-size: 1.45rem;
  border-bottom: 2px solid #d4b06a;
  padding-bottom: 10px;
  margin-bottom: 22px;
}

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

.tag-record-card {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.tag-record-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}

.tag-record-card h4 {
  margin: 10px 0 12px;
  color: #092844;
  font-size: 1.28rem;
  line-height: 1.35;
}

.tag-record-card h4 a {
  color: inherit;
  text-decoration: none;
}

.tag-record-card h4 a:hover {
  color: #7a4b20;
}

.tag-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #6b6258;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.tag-record-meta a {
  color: #7a4b20;
  font-weight: bold;
  text-decoration: none;
}

.tag-record-meta a:hover {
  color: #092844;
  text-decoration: underline;
}

.tag-record-card p {
  color: #333;
  line-height: 1.65;
  margin-bottom: 22px;
}

@media(max-width: 900px) {
  .tag-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .tag-record-grid {
    grid-template-columns: 1fr;
  }

  .tag-hero-panel {
    padding: 34px 28px;
  }

  .tag-hero-panel h1 {
    font-size: 2.1rem;
  }
}

/* Collection Page V2 */

.collection-page-v2 {
  max-width: 1180px;
  margin: 46px auto 75px;
  padding: 0 26px;
}

.collection-hero-panel {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 50px 56px;
  margin-bottom: 30px;
}

.collection-kicker {
  color: #c5a059;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.collection-hero-panel h1 {
  color: #092844;
  font-size: 2.8rem;
  margin: 0 0 16px;
  line-height: 1.15;
}

.collection-hero-panel p {
  color: #333;
  line-height: 1.75;
  max-width: 820px;
  margin: 0;
}

.collection-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 46px;
}

.collection-stat-card {
  background: #f8f3e8;
  border: 1px solid #d4b06a;
  border-top: 4px solid #c5a059;
  text-align: center;
  padding: 22px 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.collection-stat-card strong {
  display: block;
  color: #092844;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.collection-stat-card span {
  color: #7a4b20;
  font-weight: bold;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.collection-records-section {
  margin-top: 20px;
}

.collection-record-group {
  margin-bottom: 46px;
}

.collection-record-group h3 {
  color: #092844;
  font-size: 1.45rem;
  border-bottom: 2px solid #d4b06a;
  padding-bottom: 10px;
  margin-bottom: 22px;
}

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

.collection-record-card {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.collection-record-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}

.collection-record-card h4 {
  margin: 10px 0 12px;
  color: #092844;
  font-size: 1.28rem;
  line-height: 1.35;
}

.collection-record-card h4 a {
  color: inherit;
  text-decoration: none;
}

.collection-record-card h4 a:hover {
  color: #7a4b20;
}

.collection-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #6b6258;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.collection-record-meta a {
  color: #7a4b20;
  font-weight: bold;
  text-decoration: none;
}

.collection-record-meta a:hover {
  color: #092844;
  text-decoration: underline;
}

.collection-record-card p {
  color: #333;
  line-height: 1.65;
  margin-bottom: 22px;
}

@media(max-width: 900px) {
  .collection-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .collection-record-grid {
    grid-template-columns: 1fr;
  }

  .collection-hero-panel {
    padding: 34px 28px;
  }

  .collection-hero-panel h1 {
    font-size: 2.1rem;
  }
}

.knowledge-panel {
  margin-top: 50px;
  background: #f8f3e8;
  border-top: 4px solid #163d73;
  padding: 30px;
}

.knowledge-panel h2 {
  color: #163d73;
  margin-bottom: 20px;
}

.knowledge-box {
  margin-bottom: 18px;
}

.knowledge-box h4 {
  margin-bottom: 6px;
  color: #7a4b20;
}

.knowledge-box a {
  color: #163d73;
  font-weight: bold;
  text-decoration: none;
}

.knowledge-box a:hover {
  text-decoration: underline;
}

.browse-collections {
  margin-bottom: 50px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.collection-card {
  display: block;
  background: #fff;
  border-top: 4px solid #c5a059;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
  transition: all .25s ease;
}

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

.collection-title {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  color: #163d73;
  margin-bottom: 10px;
}

.collection-card p {
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.attached-file-card-v2 {
  background: #f8f3e8;
  border: 1px solid #d4b06a;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.attached-file-download {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #092844;
  text-decoration: none;
  font-weight: bold;
}

.attached-file-download:hover {
  color: #7a4b20;
}

.attached-file-metadata {
  display: inline-block;
  align-self: flex-start;
  background: #163d73;
  color: #ffffff;
  padding: 7px 12px;
  border-radius: 3px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85rem;
}

.attached-file-metadata:hover {
  background: #0f2d55;
}

/* File Metadata Page */

.file-metadata-page {
  max-width: 1180px;
  margin: 46px auto 78px;
  padding: 0 26px;
}

.file-metadata-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 46px 54px;
  margin-bottom: 32px;
}

.file-metadata-kicker {
  color: #c5a059;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.file-metadata-hero h1 {
  color: #092844;
  font-size: 2.65rem;
  margin: 0 0 16px;
  line-height: 1.15;
}

.file-metadata-hero p {
  color: #333;
  line-height: 1.75;
  max-width: 850px;
  margin: 0;
}

.file-metadata-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 28px;
  align-items: start;
}

.file-metadata-main-card {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
  padding: 38px;
}

.file-icon-large {
  font-size: 3rem;
  margin-bottom: 14px;
}

.file-metadata-main-card h2 {
  color: #092844;
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 22px;
}

.file-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.secondary-action-link {
  display: inline-block;
  border: 1px solid #163d73;
  color: #163d73;
  background: #ffffff;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.secondary-action-link:hover {
  background: #f8f3e8;
}

.file-metadata-section {
  border-top: 1px solid #eadfc6;
  padding-top: 26px;
  margin-top: 28px;
}

.file-metadata-section h3 {
  color: #092844;
  font-size: 1.45rem;
  margin: 0 0 20px;
}

.linked-record-box {
  background: #f8f3e8;
  border-left: 5px solid #c5a059;
  padding: 24px;
}

html[dir="rtl"] .linked-record-box {
  border-left: none;
  border-right: 5px solid #c5a059;
}

.linked-record-box h4 {
  color: #092844;
  font-size: 1.3rem;
  margin: 10px 0 12px;
}

.linked-record-box h4 a {
  color: inherit;
  text-decoration: none;
}

.linked-record-box h4 a:hover {
  color: #7a4b20;
}

.linked-record-box p {
  color: #333;
  line-height: 1.65;
}

.file-metadata-side-panel {
  background: #f8f3e8;
  border-top: 4px solid #163d73;
  padding: 26px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.file-metadata-side-panel h3 {
  color: #092844;
  font-size: 1.45rem;
  margin: 0 0 22px;
}

@media(max-width: 900px) {
  .file-metadata-layout {
    grid-template-columns: 1fr;
  }

  .file-metadata-hero,
  .file-metadata-main-card {
    padding: 30px;
  }

  .file-metadata-hero h1,
  .file-metadata-main-card h2 {
    font-size: 2rem;
  }
}

.knowledge-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.knowledge-list li {
  margin-bottom: 8px;
}

.knowledge-list a {
  color: #163d73;
  font-weight: bold;
  text-decoration: none;
}

.knowledge-list a:hover {
  color: #7a4b20;
  text-decoration: underline;
}

/* Gallery V2 - Database-backed media cards */

.gallery-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
  padding: 38px 44px;
  margin-bottom: 28px;
}

.gallery-hero h1 {
  color: #092844;
  font-size: 2.4rem;
  margin: 0 0 12px;
}

.gallery-hero p {
  color: #333;
  line-height: 1.7;
  max-width: 800px;
  margin: 0;
}

.gallery-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.gallery-card-v2 {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  border-top: 4px solid #c5a059;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-preview-v2 {
  background: #f8f3e8;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-preview-v2 img,
.gallery-preview-v2 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.document-placeholder-v2 {
  text-align: center;
  padding: 24px;
  color: #092844;
}

.document-icon-v2 {
  font-size: 3.2rem;
  margin-bottom: 12px;
}

.document-label-v2 {
  font-weight: bold;
  word-break: break-word;
  line-height: 1.35;
}

.gallery-card-body-v2 {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gallery-card-body-v2 h3 {
  color: #092844;
  font-size: 1.12rem;
  line-height: 1.35;
  margin: 10px 0 12px;
  word-break: break-word;
}

.gallery-meta-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b6258;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.gallery-actions-v2 {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: auto;
}

.gallery-actions-v2 a {
  background: #163d73;
  color: white;
  padding: 9px 13px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
  text-align: center;
}

.gallery-actions-v2 a:hover {
  background: #0f2d55;
}

@media(max-width: 700px) {
  .gallery-hero {
    padding: 30px 24px;
  }

  .gallery-hero h1 {
    font-size: 2rem;
  }

  .gallery-grid-v2 {
    grid-template-columns: 1fr;
  }
}

/* Knowledge Map Page */

.knowledge-map-page {
  max-width: 1180px;
  margin: 46px auto 80px;
  padding: 0 26px;
}

.knowledge-map-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 46px 54px;
  margin-bottom: 34px;
}

.knowledge-map-kicker {
  color: #c5a059;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.knowledge-map-hero h1 {
  color: #092844;
  font-size: 2.7rem;
  margin: 0 0 16px;
  line-height: 1.15;
}

.knowledge-map-hero p {
  color: #333;
  line-height: 1.75;
  max-width: 850px;
  margin: 0;
}

.knowledge-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}

.knowledge-map-center {
  position: relative;
  min-height: 560px;
  background: #fffdf8;
  border: 1px solid #e1d3ae;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
  padding: 40px;
  display: grid;
  place-items: center;
}

.map-node {
  background: #ffffff;
  border: 1px solid #d4b06a;
  border-top: 4px solid #c5a059;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
  padding: 20px 22px;
  text-align: center;
  max-width: 280px;
  min-width: 220px;
}

.map-node-record {
  border-top-color: #163d73;
  transform: scale(1.08);
  z-index: 2;
}

.map-node-label {
  display: block;
  color: #7a4b20;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: .5px;
}

.map-node a {
  color: #092844;
  font-weight: bold;
  text-decoration: none;
  line-height: 1.35;
}

.map-node a:hover {
  color: #7a4b20;
  text-decoration: underline;
}

.map-branch {
  position: absolute;
}

.map-branch-author {
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
}

.map-branch-collection {
  left: 38px;
  top: 50%;
  transform: translateY(-50%);
}

.map-branch-pillar {
  right: 38px;
  top: 50%;
  transform: translateY(-50%);
}

.map-line {
  position: absolute;
  background: #c5a059;
  opacity: .7;
}

.map-branch-author .map-line {
  width: 2px;
  height: 95px;
  left: 50%;
  top: 100%;
}

.map-branch-collection .map-line {
  height: 2px;
  width: 120px;
  right: -120px;
  top: 50%;
}

.map-branch-pillar .map-line {
  height: 2px;
  width: 120px;
  left: -120px;
  top: 50%;
}

.knowledge-map-side-panel {
  background: #f8f3e8;
  border-top: 4px solid #163d73;
  padding: 26px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.map-side-section {
  border-bottom: 1px solid #d8c59a;
  padding-bottom: 20px;
  margin-bottom: 22px;
}

.map-side-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.map-side-section h2 {
  color: #092844;
  font-size: 1.25rem;
  margin: 0 0 14px;
}

@media(max-width: 950px) {
  .knowledge-map-layout {
    grid-template-columns: 1fr;
  }

  .knowledge-map-center {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .map-branch {
    position: static;
    transform: none;
  }

  .map-line {
    display: none;
  }
}

/* Network Dashboard */

.network-dashboard-page {
  max-width: 1180px;
  margin: 46px auto 80px;
  padding: 0 26px;
}

.network-dashboard-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 50px 56px;
  margin-bottom: 34px;
}

.network-kicker {
  color: #c5a059;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.network-dashboard-hero h1 {
  color: #092844;
  font-size: 2.85rem;
  line-height: 1.15;
  margin: 0 0 16px;
}

.network-dashboard-hero p {
  color: #333;
  line-height: 1.75;
  max-width: 850px;
  margin: 0;
}

.network-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}

.network-stat-card {
  background: #f8f3e8;
  border: 1px solid #d4b06a;
  border-top: 4px solid #163d73;
  text-align: center;
  padding: 24px 14px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

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

.network-stat-card strong {
  display: block;
  color: #092844;
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 10px;
}

.network-stat-card span {
  color: #7a4b20;
  font-weight: bold;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.network-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 46px;
}

.network-entry-card {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  border-top: 4px solid #c5a059;
  padding: 32px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.network-entry-icon {
  font-size: 2.3rem;
  margin-bottom: 14px;
}

.network-entry-card h2 {
  color: #092844;
  font-size: 1.45rem;
  margin: 0 0 12px;
}

.network-entry-card p {
  color: #333;
  line-height: 1.65;
  margin-bottom: 20px;
}

.network-entry-card a,
.network-map-callout a {
  display: inline-block;
  background: #163d73;
  color: #ffffff;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.network-entry-card a:hover,
.network-map-callout a:hover {
  background: #0f2d55;
}

.network-map-callout {
  background: #f8f3e8;
  border-top: 4px solid #c5a059;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.network-map-callout h2 {
  color: #092844;
  margin: 0 0 10px;
}

.network-map-callout p {
  color: #333;
  line-height: 1.65;
  margin: 0;
  max-width: 760px;
}

@media(max-width: 1000px) {
  .network-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .network-entry-grid {
    grid-template-columns: 1fr;
  }

  .network-map-callout {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media(max-width: 650px) {
  .network-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .network-dashboard-hero {
    padding: 34px 28px;
  }

  .network-dashboard-hero h1 {
    font-size: 2.15rem;
  }
}

/* Author Network Page */

.author-network-page {
  max-width: 1180px;
  margin: 46px auto 80px;
  padding: 0 26px;
}

.author-network-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 50px 56px;
  margin-bottom: 30px;
}

.author-network-kicker {
  color: #c5a059;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.author-network-hero h1 {
  color: #092844;
  font-size: 2.85rem;
  margin: 0 0 16px;
  line-height: 1.15;
}

.author-network-hero p {
  color: #333;
  line-height: 1.75;
  max-width: 860px;
  margin: 0 0 24px;
}

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

.author-network-actions a {
  display: inline-block;
  background: #163d73;
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.author-network-actions a:hover {
  background: #0f2d55;
}

.author-network-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.author-network-stat {
  background: #f8f3e8;
  border: 1px solid #d4b06a;
  border-top: 4px solid #163d73;
  padding: 22px 14px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.author-network-stat strong {
  display: block;
  color: #092844;
  font-size: 2rem;
  margin-bottom: 8px;
  line-height: 1;
}

.author-network-stat span {
  color: #7a4b20;
  font-size: 0.82rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.author-network-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.author-network-main {
  min-width: 0;
}

.author-network-section {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  padding: 30px;
}

.author-network-record-list {
  display: grid;
  gap: 20px;
}

.author-network-record-card {
  background: #fffdf8;
  border: 1px solid #e1d3ae;
  padding: 24px;
}

.author-network-record-card h3 {
  margin: 10px 0 12px;
  color: #092844;
  font-size: 1.25rem;
  line-height: 1.35;
}

.author-network-record-card h3 a {
  color: inherit;
  text-decoration: none;
}

.author-network-record-card h3 a:hover {
  color: #7a4b20;
  text-decoration: underline;
}

.author-network-record-card p {
  color: #333;
  line-height: 1.65;
  margin-bottom: 18px;
}

.author-network-record-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-top: 1px solid #eadfc6;
  padding-top: 14px;
  color: #6b6258;
  font-size: .9rem;
}

.author-network-record-footer div {
  display: flex;
  gap: 8px;
}

.author-network-record-footer a {
  background: #163d73;
  color: white;
  padding: 7px 11px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.author-network-record-footer a:hover {
  background: #0f2d55;
}

.author-network-side {
  background: #f8f3e8;
  border-top: 4px solid #163d73;
  padding: 26px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.author-network-side-section {
  border-bottom: 1px solid #d8c59a;
  padding-bottom: 20px;
  margin-bottom: 22px;
}

.author-network-side-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.author-network-side-section h2 {
  color: #092844;
  font-size: 1.22rem;
  margin: 0 0 14px;
}

@media(max-width: 1000px) {
  .author-network-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .author-network-layout {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 650px) {
  .author-network-hero {
    padding: 34px 28px;
  }

  .author-network-hero h1 {
    font-size: 2.15rem;
  }

  .author-network-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .author-network-record-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Pillar Network Page */

.pillar-network-page {
  max-width: 1180px;
  margin: 46px auto 80px;
  padding: 0 26px;
}

.pillar-network-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 50px 56px;
  margin-bottom: 30px;
}

.pillar-network-kicker {
  color: #c5a059;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pillar-network-hero h1 {
  color: #092844;
  font-size: 2.85rem;
  margin: 0 0 16px;
  line-height: 1.15;
}

.pillar-network-hero p {
  color: #333;
  line-height: 1.75;
  max-width: 860px;
  margin: 0 0 24px;
}

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

.pillar-network-actions a {
  display: inline-block;
  background: #163d73;
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.pillar-network-actions a:hover {
  background: #0f2d55;
}

.pillar-network-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.pillar-network-stat {
  background: #f8f3e8;
  border: 1px solid #d4b06a;
  border-top: 4px solid #163d73;
  padding: 22px 14px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.pillar-network-stat strong {
  display: block;
  color: #092844;
  font-size: 2rem;
  margin-bottom: 8px;
  line-height: 1;
}

.pillar-network-stat span {
  color: #7a4b20;
  font-size: 0.82rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.pillar-network-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.pillar-network-section {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  padding: 30px;
}

.pillar-network-record-list {
  display: grid;
  gap: 20px;
}

.pillar-network-record-card {
  background: #fffdf8;
  border: 1px solid #e1d3ae;
  padding: 24px;
}

.pillar-network-record-card h3 {
  margin: 10px 0 12px;
  color: #092844;
  font-size: 1.25rem;
  line-height: 1.35;
}

.pillar-network-record-card h3 a {
  color: inherit;
  text-decoration: none;
}

.pillar-network-record-card h3 a:hover {
  color: #7a4b20;
  text-decoration: underline;
}

.pillar-network-record-card p {
  color: #333;
  line-height: 1.65;
  margin-bottom: 18px;
}

.pillar-network-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #6b6258;
  font-size: .92rem;
  margin-bottom: 14px;
}

.pillar-network-record-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #eadfc6;
  padding-top: 14px;
}

.pillar-network-record-footer a {
  background: #163d73;
  color: white;
  padding: 7px 11px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.pillar-network-record-footer a:hover {
  background: #0f2d55;
}

.pillar-network-side {
  background: #f8f3e8;
  border-top: 4px solid #163d73;
  padding: 26px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.pillar-network-side-section {
  border-bottom: 1px solid #d8c59a;
  padding-bottom: 20px;
  margin-bottom: 22px;
}

.pillar-network-side-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.pillar-network-side-section h2 {
  color: #092844;
  font-size: 1.22rem;
  margin: 0 0 14px;
}

@media(max-width: 1000px) {
  .pillar-network-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .pillar-network-layout {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 650px) {
  .pillar-network-hero {
    padding: 34px 28px;
  }

  .pillar-network-hero h1 {
    font-size: 2.15rem;
  }

  .pillar-network-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Pillar Landing Page V2 */

.pillar-landing-page {
  max-width: 1180px;
  margin: 46px auto 80px;
  padding: 0 26px;
}

.pillar-landing-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 54px 58px;
  margin-bottom: 30px;
}

.pillar-landing-kicker {
  color: #c5a059;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pillar-landing-hero h1 {
  color: #092844;
  font-size: 3.1rem;
  margin: 0 0 18px;
  line-height: 1.12;
}

.pillar-landing-hero p {
  color: #333;
  line-height: 1.75;
  max-width: 860px;
  margin: 0 0 26px;
  font-size: 1.05rem;
}

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

.pillar-landing-actions a {
  display: inline-block;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.primary-action {
  background: #163d73;
  color: #ffffff;
}

.primary-action:hover {
  background: #0f2d55;
}

.secondary-action {
  border: 1px solid #163d73;
  color: #163d73;
  background: #ffffff;
}

.secondary-action:hover {
  background: #f8f3e8;
}

.pillar-landing-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

.pillar-landing-stat {
  background: #f8f3e8;
  border: 1px solid #d4b06a;
  border-top: 4px solid #163d73;
  text-align: center;
  padding: 22px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.pillar-landing-stat strong {
  display: block;
  color: #092844;
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 9px;
}

.pillar-landing-stat span {
  color: #7a4b20;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: .5px;
}

.pillar-landing-section {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  padding: 32px;
  margin-bottom: 34px;
}

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

.pillar-featured-card {
  background: #fffdf8;
  border: 1px solid #e1d3ae;
  padding: 24px;
}

.pillar-featured-card h3 {
  color: #092844;
  font-size: 1.3rem;
  line-height: 1.35;
  margin: 10px 0 12px;
}

.pillar-featured-card h3 a {
  color: inherit;
  text-decoration: none;
}

.pillar-featured-card h3 a:hover {
  color: #7a4b20;
  text-decoration: underline;
}

.pillar-featured-card p {
  color: #333;
  line-height: 1.65;
  margin-bottom: 16px;
}

.pillar-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #6b6258;
  font-size: .92rem;
  border-top: 1px solid #eadfc6;
  padding-top: 12px;
  margin-bottom: 14px;
}

.pillar-featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pillar-featured-actions a {
  background: #163d73;
  color: #ffffff;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.pillar-featured-actions a:hover {
  background: #0f2d55;
}

.pillar-landing-network-preview {
  background: #f8f3e8;
  border-top: 4px solid #c5a059;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin-bottom: 34px;
}

.pillar-landing-network-preview h2 {
  color: #092844;
  margin: 0 0 10px;
}

.pillar-landing-network-preview p {
  color: #333;
  line-height: 1.65;
  margin: 0;
  max-width: 780px;
}

.pillar-landing-network-preview a {
  background: #163d73;
  color: #ffffff;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
  white-space: nowrap;
}

.pillar-landing-network-preview a:hover {
  background: #0f2d55;
}

.other-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.other-pillar-card {
  display: block;
  background: #f8f3e8;
  border: 1px solid #d4b06a;
  border-top: 4px solid #c5a059;
  padding: 20px;
  color: #092844;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
}

.other-pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
}

@media(max-width: 950px) {
  .pillar-landing-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .pillar-featured-grid {
    grid-template-columns: 1fr;
  }

  .pillar-landing-network-preview {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media(max-width: 650px) {
  .pillar-landing-hero {
    padding: 34px 28px;
  }

  .pillar-landing-hero h1 {
    font-size: 2.25rem;
  }

  .pillar-landing-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Collection Network Page */

.collection-network-page {
  max-width: 1180px;
  margin: 46px auto 80px;
  padding: 0 26px;
}

.collection-network-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 50px 56px;
  margin-bottom: 30px;
}

.collection-network-kicker {
  color: #c5a059;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.collection-network-hero h1 {
  color: #092844;
  font-size: 2.85rem;
  margin: 0 0 16px;
  line-height: 1.15;
}

.collection-network-hero p {
  color: #333;
  line-height: 1.75;
  max-width: 860px;
  margin: 0 0 24px;
}

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

.collection-network-actions a {
  display: inline-block;
  background: #163d73;
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.collection-network-actions a:hover {
  background: #0f2d55;
}

.collection-network-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.collection-network-stat {
  background: #f8f3e8;
  border: 1px solid #d4b06a;
  border-top: 4px solid #163d73;
  padding: 22px 14px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.collection-network-stat strong {
  display: block;
  color: #092844;
  font-size: 2rem;
  margin-bottom: 8px;
  line-height: 1;
}

.collection-network-stat span {
  color: #7a4b20;
  font-size: 0.82rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.collection-network-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.collection-network-main {
  min-width: 0;
}

.collection-network-section {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  padding: 30px;
}

.collection-network-record-list {
  display: grid;
  gap: 20px;
}

.collection-network-record-card {
  background: #fffdf8;
  border: 1px solid #e1d3ae;
  padding: 24px;
}

.collection-network-record-card h3 {
  margin: 10px 0 12px;
  color: #092844;
  font-size: 1.25rem;
  line-height: 1.35;
}

.collection-network-record-card h3 a {
  color: inherit;
  text-decoration: none;
}

.collection-network-record-card h3 a:hover {
  color: #7a4b20;
  text-decoration: underline;
}

.collection-network-record-card p {
  color: #333;
  line-height: 1.65;
  margin-bottom: 18px;
}

.collection-network-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #6b6258;
  font-size: .92rem;
  margin-bottom: 14px;
}

.collection-network-record-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #eadfc6;
  padding-top: 14px;
}

.collection-network-record-footer a {
  background: #163d73;
  color: white;
  padding: 7px 11px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.collection-network-record-footer a:hover {
  background: #0f2d55;
}

.collection-network-side {
  background: #f8f3e8;
  border-top: 4px solid #163d73;
  padding: 26px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.collection-network-side-section {
  border-bottom: 1px solid #d8c59a;
  padding-bottom: 20px;
  margin-bottom: 22px;
}

.collection-network-side-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.collection-network-side-section h2 {
  color: #092844;
  font-size: 1.22rem;
  margin: 0 0 14px;
}

@media(max-width: 1000px) {
  .collection-network-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .collection-network-layout {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 650px) {
  .collection-network-hero {
    padding: 34px 28px;
  }

  .collection-network-hero h1 {
    font-size: 2.15rem;
  }

  .collection-network-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tag Network Page */

.tag-network-page {
  max-width: 1180px;
  margin: 46px auto 80px;
  padding: 0 26px;
}

.tag-network-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 50px 56px;
  margin-bottom: 30px;
}

.tag-network-kicker {
  color: #c5a059;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tag-network-hero h1 {
  color: #092844;
  font-size: 2.85rem;
  margin: 0 0 16px;
  line-height: 1.15;
}

.tag-network-hero p {
  color: #333;
  line-height: 1.75;
  max-width: 860px;
  margin: 0 0 24px;
}

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

.tag-network-actions a {
  display: inline-block;
  background: #163d73;
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.tag-network-actions a:hover {
  background: #0f2d55;
}

.tag-network-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.tag-network-stat {
  background: #f8f3e8;
  border: 1px solid #d4b06a;
  border-top: 4px solid #163d73;
  padding: 22px 14px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.tag-network-stat strong {
  display: block;
  color: #092844;
  font-size: 2rem;
  margin-bottom: 8px;
  line-height: 1;
}

.tag-network-stat span {
  color: #7a4b20;
  font-size: 0.82rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.tag-network-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.tag-network-main {
  min-width: 0;
}

.tag-network-section {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  padding: 30px;
}

.tag-network-record-list {
  display: grid;
  gap: 20px;
}

.tag-network-record-card {
  background: #fffdf8;
  border: 1px solid #e1d3ae;
  padding: 24px;
}

.tag-network-record-card h3 {
  margin: 10px 0 12px;
  color: #092844;
  font-size: 1.25rem;
  line-height: 1.35;
}

.tag-network-record-card h3 a {
  color: inherit;
  text-decoration: none;
}

.tag-network-record-card h3 a:hover {
  color: #7a4b20;
  text-decoration: underline;
}

.tag-network-record-card p {
  color: #333;
  line-height: 1.65;
  margin-bottom: 18px;
}

.tag-network-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #6b6258;
  font-size: .92rem;
  margin-bottom: 14px;
}

.tag-network-record-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #eadfc6;
  padding-top: 14px;
}

.tag-network-record-footer a {
  background: #163d73;
  color: white;
  padding: 7px 11px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.tag-network-record-footer a:hover {
  background: #0f2d55;
}

.tag-network-side {
  background: #f8f3e8;
  border-top: 4px solid #163d73;
  padding: 26px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.tag-network-side-section {
  border-bottom: 1px solid #d8c59a;
  padding-bottom: 20px;
  margin-bottom: 22px;
}

.tag-network-side-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.tag-network-side-section h2 {
  color: #092844;
  font-size: 1.22rem;
  margin: 0 0 14px;
}

@media(max-width: 1050px) {
  .tag-network-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .tag-network-layout {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 650px) {
  .tag-network-hero {
    padding: 34px 28px;
  }

  .tag-network-hero h1 {
    font-size: 2.15rem;
  }

  .tag-network-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.artistic-title a {
  color: inherit;
  text-decoration: none;
}

.header-utility-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  white-space: nowrap;
}

.header-utility-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: .5px;
}

.header-utility-nav a:hover {
  color: var(--accent-gold);
}

.main-nav-bar {
  background: #092844;
  border-bottom: 3px solid var(--accent-gold);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.main-nav-bar a {
  color: #ffffff;
  text-decoration: none;
  padding: 14px 22px;
  font-weight: bold;
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.main-nav-bar a:hover {
  background: var(--accent-gold);
  color: #092844;
}

html[dir="rtl"] .main-nav-bar a {
  border-left: none;
  border-right: 1px solid rgba(255, 255, 255, .12);
}

@media(max-width: 800px) {
  .header-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  html[dir="rtl"] .header-banner {
    align-items: flex-end;
  }

  .header-utility-nav {
    flex-wrap: wrap;
  }

  .main-nav-bar {
    justify-content: flex-start;
  }

  .main-nav-bar a {
    padding: 12px 14px;
    font-size: .92rem;
  }
}

/* Global Knowledge Graph Page */

.network-graph-page {
  max-width: 1180px;
  margin: 46px auto 80px;
  padding: 0 26px;
}

.network-graph-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 54px 58px;
  margin-bottom: 34px;
}

.network-graph-kicker {
  color: #c5a059;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.network-graph-hero h1 {
  color: #092844;
  font-size: 3.05rem;
  margin: 0 0 18px;
  line-height: 1.12;
}

.network-graph-hero p {
  color: #333;
  line-height: 1.75;
  max-width: 880px;
  margin: 0;
  font-size: 1.05rem;
}

.network-graph-visual {
  position: relative;
  min-height: 620px;
  background: #fffdf8;
  border: 1px solid #e1d3ae;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
  margin-bottom: 42px;
  overflow: hidden;
}

.graph-node {
  position: absolute;
  width: 168px;
  min-height: 130px;
  background: #ffffff;
  border: 1px solid #d4b06a;
  border-top: 5px solid #c5a059;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
  text-align: center;
  padding: 18px 14px;
  text-decoration: none;
  color: #092844;
  z-index: 2;
  transition: transform .2s ease, box-shadow .2s ease;
}

.graph-node:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
}

.graph-node-center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-top-color: #163d73;
  width: 210px;
  min-height: 150px;
  padding-top: 24px;
}

.graph-node-center:hover {
  transform: translate(-50%, -50%);
}

.graph-node-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
}

.graph-node strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  color: #092844;
  margin-bottom: 8px;
}

.graph-node-center strong {
  font-size: 1.35rem;
  line-height: 1.25;
}

.graph-node small {
  display: block;
  color: #7a4b20;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: .5px;
}

.graph-node-authors {
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
}

.graph-node-authors:hover {
  transform: translateX(-50%) translateY(-4px);
}

.graph-node-records {
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
}

.graph-node-records:hover {
  transform: translateX(-50%) translateY(-4px);
}

.graph-node-collections {
  left: 70px;
  top: 50%;
  transform: translateY(-50%);
}

.graph-node-collections:hover {
  transform: translateY(-50%) translateY(-4px);
}

.graph-node-pillars {
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
}

.graph-node-pillars:hover {
  transform: translateY(-50%) translateY(-4px);
}

.graph-node-tags {
  left: 165px;
  bottom: 86px;
}

.graph-node-media {
  right: 165px;
  bottom: 86px;
}

.graph-line {
  position: absolute;
  background: #c5a059;
  opacity: .55;
  z-index: 1;
}

.line-authors {
  width: 2px;
  height: 150px;
  left: 50%;
  top: 178px;
}

.line-records {
  width: 2px;
  height: 150px;
  left: 50%;
  bottom: 178px;
}

.line-collections {
  height: 2px;
  width: 250px;
  left: 238px;
  top: 50%;
}

.line-pillars {
  height: 2px;
  width: 250px;
  right: 238px;
  top: 50%;
}

.line-tags {
  width: 2px;
  height: 120px;
  left: 290px;
  top: 365px;
  transform: rotate(-42deg);
}

.line-media {
  width: 2px;
  height: 120px;
  right: 290px;
  top: 365px;
  transform: rotate(42deg);
}

.network-graph-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.network-graph-entry-card {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  border-top: 4px solid #c5a059;
  padding: 28px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.network-graph-entry-card h2 {
  color: #092844;
  font-size: 1.35rem;
  margin: 0 0 12px;
}

.network-graph-entry-card p {
  color: #333;
  line-height: 1.65;
  margin-bottom: 20px;
}

.network-graph-entry-card a {
  display: inline-block;
  background: #163d73;
  color: #ffffff;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.network-graph-entry-card a:hover {
  background: #0f2d55;
}

@media(max-width: 950px) {
  .network-graph-visual {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 24px;
  }

  .graph-node,
  .graph-node-center,
  .graph-node-authors,
  .graph-node-records,
  .graph-node-collections,
  .graph-node-pillars,
  .graph-node-tags,
  .graph-node-media {
    position: static;
    width: auto;
    min-height: 130px;
    transform: none;
  }

  .graph-node:hover,
  .graph-node-authors:hover,
  .graph-node-records:hover,
  .graph-node-collections:hover,
  .graph-node-pillars:hover,
  .graph-node-center:hover {
    transform: translateY(-4px);
  }

  .graph-line {
    display: none;
  }

  .network-graph-entry-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 650px) {
  .network-graph-hero {
    padding: 34px 28px;
  }

  .network-graph-hero h1 {
    font-size: 2.25rem;
  }

  .network-graph-visual {
    grid-template-columns: 1fr;
  }
}

/* Authors Directory Page */

.authors-directory-page {
  max-width: 1180px;
  margin: 46px auto 80px;
  padding: 0 26px;
}

.authors-directory-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 54px 58px;
  margin-bottom: 30px;
}

.authors-directory-kicker {
  color: #c5a059;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.authors-directory-hero h1 {
  color: #092844;
  font-size: 3.05rem;
  margin: 0 0 18px;
  line-height: 1.12;
}

.authors-directory-hero p {
  color: #333;
  line-height: 1.75;
  max-width: 880px;
  margin: 0;
  font-size: 1.05rem;
}

.authors-directory-summary {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 36px;
  align-items: stretch;
}

.authors-directory-stat {
  background: #f8f3e8;
  border: 1px solid #d4b06a;
  border-top: 4px solid #163d73;
  text-align: center;
  padding: 28px 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.authors-directory-stat strong {
  display: block;
  color: #092844;
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 10px;
}

.authors-directory-stat span {
  color: #7a4b20;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: .5px;
}

.authors-directory-intro {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  padding: 28px 32px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
}

.authors-directory-intro h2 {
  color: #092844;
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.authors-directory-intro p {
  color: #333;
  line-height: 1.65;
  margin: 0;
}

.authors-directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 2px solid #d4b06a;
  padding-bottom: 12px;
  margin-bottom: 28px;
}

.authors-directory-toolbar h2 {
  color: #092844;
  margin: 0;
  font-size: 2rem;
}

.authors-directory-toolbar span {
  color: #7a4b20;
  font-weight: bold;
}

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

.author-directory-card {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  border-top: 4px solid #c5a059;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  padding: 24px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  transition: transform .2s ease, box-shadow .2s ease;
}

.author-directory-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}

.author-directory-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f8f3e8;
  border: 3px solid #c5a059;
  color: #092844;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  font-weight: bold;
}

.author-directory-body h3 {
  color: #092844;
  font-size: 1.28rem;
  line-height: 1.35;
  margin: 0 0 10px;
}

.author-directory-body p {
  color: #555;
  margin: 0 0 18px;
  line-height: 1.55;
}

.author-directory-body p strong {
  color: #7a4b20;
}

.author-directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.author-directory-actions a {
  background: #163d73;
  color: #ffffff;
  padding: 8px 13px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.author-directory-actions a:hover {
  background: #0f2d55;
}

@media(max-width: 850px) {
  .authors-directory-summary {
    grid-template-columns: 1fr;
  }

  .authors-directory-grid {
    grid-template-columns: 1fr;
  }

  .authors-directory-hero {
    padding: 34px 28px;
  }

  .authors-directory-hero h1 {
    font-size: 2.25rem;
  }
}

@media(max-width: 550px) {
  .author-directory-card {
    grid-template-columns: 1fr;
  }

  .authors-directory-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Collections Directory */

.collections-directory-page {
  max-width: 1180px;
  margin: 46px auto 80px;
  padding: 0 26px;
}

.collections-directory-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 54px 58px;
  margin-bottom: 30px;
}

.collections-directory-kicker {
  color: #c5a059;
  font-size: .82rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
}

.collections-directory-hero h1 {
  color: #092844;
  font-size: 3rem;
  margin-bottom: 18px;
}

.collections-directory-hero p {
  line-height: 1.75;
  color: #333;
}

.collections-directory-summary {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

.collections-directory-stat {
  background: #f8f3e8;
  border-top: 4px solid #163d73;
  text-align: center;
  padding: 28px;
}

.collections-directory-stat strong {
  display: block;
  font-size: 2.4rem;
  color: #092844;
}

.collections-directory-intro {
  background: #ffffff;
  padding: 28px;
  border: 1px solid #e1d3ae;
}

.collections-directory-toolbar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 2px solid #d4b06a;
  padding-bottom: 12px;
}

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

.collection-directory-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  background: #ffffff;
  border: 1px solid #e1d3ae;
  border-top: 4px solid #c5a059;
  padding: 24px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.collection-directory-icon {
  font-size: 2rem;
  text-align: center;
}

.collection-directory-body h3 {
  color: #092844;
  margin-bottom: 10px;
}

.collection-description {
  color: #555;
  line-height: 1.6;
}

.collection-directory-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.collection-directory-actions a {
  background: #163d73;
  color: white;
  padding: 8px 13px;
  text-decoration: none;
  border-radius: 3px;
  font-weight: bold;
}

.collection-directory-actions a:hover {
  background: #0f2d55;
}

@media(max-width:850px) {

  .collections-directory-summary {
    grid-template-columns: 1fr;
  }

  .collections-directory-grid {
    grid-template-columns: 1fr;
  }
}

/* Pillars Directory Page */

.pillars-directory-page {
  max-width: 1180px;
  margin: 46px auto 80px;
  padding: 0 26px;
}

.pillars-directory-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 54px 58px;
  margin-bottom: 30px;
}

.pillars-directory-kicker {
  color: #c5a059;
  font-size: .82rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
}

.pillars-directory-hero h1 {
  color: #092844;
  font-size: 3rem;
  margin: 0 0 18px;
  line-height: 1.12;
}

.pillars-directory-hero p {
  line-height: 1.75;
  color: #333;
  max-width: 880px;
  margin: 0;
  font-size: 1.05rem;
}

.pillars-directory-summary {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

.pillars-directory-stat {
  background: #f8f3e8;
  border: 1px solid #d4b06a;
  border-top: 4px solid #163d73;
  text-align: center;
  padding: 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.pillars-directory-stat strong {
  display: block;
  font-size: 2.4rem;
  color: #092844;
  line-height: 1;
  margin-bottom: 10px;
}

.pillars-directory-stat span {
  color: #7a4b20;
  font-weight: bold;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .5px;
}

.pillars-directory-intro {
  background: #ffffff;
  padding: 28px;
  border: 1px solid #e1d3ae;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
}

.pillars-directory-intro h2 {
  color: #092844;
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.pillars-directory-intro p {
  color: #333;
  line-height: 1.65;
  margin: 0;
}

.pillars-directory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  border-bottom: 2px solid #d4b06a;
  padding-bottom: 12px;
}

.pillars-directory-toolbar h2 {
  color: #092844;
  margin: 0;
  font-size: 2rem;
}

.pillars-directory-toolbar span {
  color: #7a4b20;
  font-weight: bold;
}

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

.pillar-directory-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  background: #ffffff;
  border: 1px solid #e1d3ae;
  border-top: 4px solid #c5a059;
  padding: 24px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.pillar-directory-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}

.pillar-directory-icon {
  font-size: 2rem;
  text-align: center;
}

.pillar-directory-body h3 {
  color: #092844;
  margin: 0 0 10px;
  line-height: 1.35;
  font-size: 1.28rem;
}

.pillar-directory-body p {
  color: #555;
  margin: 0 0 12px;
  line-height: 1.6;
}

.pillar-directory-body p strong {
  color: #7a4b20;
}

.pillar-description {
  color: #555;
  line-height: 1.6;
}

.pillar-directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pillar-directory-actions a {
  background: #163d73;
  color: white;
  padding: 8px 13px;
  text-decoration: none;
  border-radius: 3px;
  font-weight: bold;
}

.pillar-directory-actions a:hover {
  background: #0f2d55;
}

@media(max-width:850px) {
  .pillars-directory-summary {
    grid-template-columns: 1fr;
  }

  .pillars-directory-grid {
    grid-template-columns: 1fr;
  }

  .pillars-directory-hero {
    padding: 34px 28px;
  }

  .pillars-directory-hero h1 {
    font-size: 2.25rem;
  }
}

@media(max-width:550px) {
  .pillar-directory-card {
    grid-template-columns: 1fr;
  }

  .pillars-directory-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Tags Directory Page */

.tags-directory-page {
  max-width: 1180px;
  margin: 46px auto 80px;
  padding: 0 26px;
}

.tags-directory-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 54px 58px;
  margin-bottom: 30px;
}

.tags-directory-kicker {
  color: #c5a059;
  font-size: .82rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
}

.tags-directory-hero h1 {
  color: #092844;
  font-size: 3rem;
  margin: 0 0 18px;
  line-height: 1.12;
}

.tags-directory-hero p {
  line-height: 1.75;
  color: #333;
  max-width: 880px;
  margin: 0;
  font-size: 1.05rem;
}

.tags-directory-summary {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

.tags-directory-stat {
  background: #f8f3e8;
  border: 1px solid #d4b06a;
  border-top: 4px solid #163d73;
  text-align: center;
  padding: 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.tags-directory-stat strong {
  display: block;
  font-size: 2.4rem;
  color: #092844;
  line-height: 1;
  margin-bottom: 10px;
}

.tags-directory-stat span {
  color: #7a4b20;
  font-weight: bold;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .5px;
}

.tags-directory-intro {
  background: #ffffff;
  padding: 28px;
  border: 1px solid #e1d3ae;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
}

.tags-directory-intro h2 {
  color: #092844;
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.tags-directory-intro p {
  color: #333;
  line-height: 1.65;
  margin: 0;
}

.tags-directory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  border-bottom: 2px solid #d4b06a;
  padding-bottom: 12px;
}

.tags-directory-toolbar h2 {
  color: #092844;
  margin: 0;
  font-size: 2rem;
}

.tags-directory-toolbar span {
  color: #7a4b20;
  font-weight: bold;
}

.tags-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tag-directory-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e1d3ae;
  border-top: 4px solid #c5a059;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.tag-directory-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}

.tag-directory-icon {
  font-size: 1.7rem;
  text-align: center;
}

.tag-directory-body h3 {
  color: #092844;
  margin: 0 0 10px;
  line-height: 1.35;
  font-size: 1.15rem;
}

.tag-directory-body p {
  color: #555;
  margin: 0 0 12px;
  line-height: 1.6;
}

.tag-directory-body p strong {
  color: #7a4b20;
}

.tag-directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-directory-actions a {
  background: #163d73;
  color: white;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 3px;
  font-weight: bold;
  font-size: .9rem;
}

.tag-directory-actions a:hover {
  background: #0f2d55;
}

@media(max-width:1000px) {
  .tags-directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:850px) {
  .tags-directory-summary {
    grid-template-columns: 1fr;
  }

  .tags-directory-hero {
    padding: 34px 28px;
  }

  .tags-directory-hero h1 {
    font-size: 2.25rem;
  }
}

@media(max-width:650px) {
  .tags-directory-grid {
    grid-template-columns: 1fr;
  }

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

  .tags-directory-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Related authors refinement */

.related-author-list li {
  margin-bottom: 12px;
}

.related-author-list .related-score {
  display: block;
  color: #7a4b20;
  font-size: 0.82rem;
  margin-top: 3px;
}

.tag-pill-v2 small {
  display: inline-block;
  margin-left: 6px;
  color: #092844;
  font-size: 0.75rem;
}

html[dir="rtl"] .tag-pill-v2 small {
  margin-left: 0;
  margin-right: 6px;
}

/* Tag Landing Page V2 */

.tag-landing-page {
  max-width: 1180px;
  margin: 46px auto 80px;
  padding: 0 26px;
}

.tag-landing-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 54px 58px;
  margin-bottom: 30px;
}

.tag-landing-kicker {
  color: #c5a059;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tag-landing-hero h1 {
  color: #092844;
  font-size: 3.1rem;
  margin: 0 0 18px;
  line-height: 1.12;
}

.tag-landing-hero p {
  color: #333;
  line-height: 1.75;
  max-width: 860px;
  margin: 0 0 26px;
  font-size: 1.05rem;
}

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

.tag-landing-actions a {
  display: inline-block;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.tag-landing-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

.tag-landing-stat {
  background: #f8f3e8;
  border: 1px solid #d4b06a;
  border-top: 4px solid #163d73;
  text-align: center;
  padding: 22px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.tag-landing-stat strong {
  display: block;
  color: #092844;
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 9px;
}

.tag-landing-stat span {
  color: #7a4b20;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: .5px;
}

.tag-landing-section {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  padding: 32px;
  margin-bottom: 34px;
}

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

.tag-featured-card {
  background: #fffdf8;
  border: 1px solid #e1d3ae;
  padding: 24px;
}

.tag-featured-card h3 {
  color: #092844;
  font-size: 1.3rem;
  line-height: 1.35;
  margin: 10px 0 12px;
}

.tag-featured-card h3 a {
  color: inherit;
  text-decoration: none;
}

.tag-featured-card h3 a:hover {
  color: #7a4b20;
  text-decoration: underline;
}

.tag-featured-card p {
  color: #333;
  line-height: 1.65;
  margin-bottom: 16px;
}

.tag-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #6b6258;
  font-size: .92rem;
  border-top: 1px solid #eadfc6;
  padding-top: 12px;
  margin-bottom: 14px;
}

.tag-featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-featured-actions a {
  background: #163d73;
  color: #ffffff;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.tag-featured-actions a:hover {
  background: #0f2d55;
}

.tag-landing-network-preview {
  background: #f8f3e8;
  border-top: 4px solid #c5a059;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin-bottom: 34px;
}

.tag-landing-network-preview h2 {
  color: #092844;
  margin: 0 0 10px;
}

.tag-landing-network-preview p {
  color: #333;
  line-height: 1.65;
  margin: 0;
  max-width: 780px;
}

.tag-landing-network-preview a {
  background: #163d73;
  color: #ffffff;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
  white-space: nowrap;
}

.tag-landing-network-preview a:hover {
  background: #0f2d55;
}

.tag-pill-v2 small {
  display: inline-block;
  margin-left: 6px;
  color: #092844;
  font-size: 0.75rem;
}

html[dir="rtl"] .tag-pill-v2 small {
  margin-left: 0;
  margin-right: 6px;
}

@media(max-width: 950px) {
  .tag-landing-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .tag-featured-grid {
    grid-template-columns: 1fr;
  }

  .tag-landing-network-preview {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media(max-width: 650px) {
  .tag-landing-hero {
    padding: 34px 28px;
  }

  .tag-landing-hero h1 {
    font-size: 2.25rem;
  }

  .tag-landing-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Knowledge Graph Explorer Page */

.knowledge-graph-page {
  max-width: 1180px;
  margin: 46px auto 80px;
  padding: 0 26px;
}

.knowledge-graph-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 54px 58px;
  margin-bottom: 30px;
}

.knowledge-graph-kicker {
  color: #c5a059;
  font-size: .82rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
}

.knowledge-graph-hero h1 {
  color: #092844;
  font-size: 3.05rem;
  margin: 0 0 18px;
  line-height: 1.12;
}

.knowledge-graph-hero p {
  color: #333;
  line-height: 1.75;
  max-width: 880px;
  margin: 0 0 26px;
  font-size: 1.05rem;
}

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

.knowledge-graph-actions a {
  display: inline-block;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.knowledge-graph-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.knowledge-graph-stat {
  background: #f8f3e8;
  border: 1px solid #d4b06a;
  border-top: 4px solid #163d73;
  text-align: center;
  padding: 22px 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.knowledge-graph-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}

.knowledge-graph-stat strong {
  display: block;
  color: #092844;
  font-size: 2.05rem;
  line-height: 1;
  margin-bottom: 9px;
}

.knowledge-graph-stat span {
  color: #7a4b20;
  font-weight: bold;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .5px;
}

.knowledge-graph-directory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 38px;
}

.knowledge-graph-directory-card {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  border-top: 4px solid #c5a059;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  padding: 26px;
}

.directory-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.knowledge-graph-directory-card h2 {
  color: #092844;
  font-size: 1.3rem;
  margin: 0 0 10px;
}

.knowledge-graph-directory-card p {
  color: #333;
  line-height: 1.6;
  margin: 0 0 18px;
}

.knowledge-graph-directory-card a {
  display: inline-block;
  background: #163d73;
  color: #ffffff;
  padding: 9px 13px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.knowledge-graph-directory-card a:hover {
  background: #0f2d55;
}

.knowledge-graph-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.knowledge-graph-panel {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  padding: 28px;
}

.knowledge-graph-ranked-list,
.knowledge-graph-record-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.knowledge-graph-ranked-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #eadfc6;
  padding: 11px 0;
}

.knowledge-graph-ranked-list li:last-child,
.knowledge-graph-record-list li:last-child {
  border-bottom: none;
}

.knowledge-graph-ranked-list a,
.knowledge-graph-record-list a {
  color: #092844;
  text-decoration: none;
  font-weight: bold;
}

.knowledge-graph-ranked-list a:hover,
.knowledge-graph-record-list a:hover {
  color: #7a4b20;
  text-decoration: underline;
}

.knowledge-graph-ranked-list span {
  color: #7a4b20;
  font-weight: bold;
}

.knowledge-graph-record-list li {
  border-bottom: 1px solid #eadfc6;
  padding: 12px 0;
}

.knowledge-graph-record-list small {
  display: block;
  color: #6b6258;
  margin-top: 5px;
  line-height: 1.4;
}

.empty-note-v2 {
  color: #6b6258;
  line-height: 1.6;
  margin: 0;
}

@media(max-width: 1050px) {
  .knowledge-graph-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .knowledge-graph-directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 800px) {
  .knowledge-graph-panels {
    grid-template-columns: 1fr;
  }

  .knowledge-graph-hero {
    padding: 34px 28px;
  }

  .knowledge-graph-hero h1 {
    font-size: 2.25rem;
  }
}

@media(max-width: 600px) {

  .knowledge-graph-stats,
  .knowledge-graph-directory-grid {
    grid-template-columns: 1fr;
  }
}

/* Network Graph Improvements */

.graph-node-center {
  text-decoration: none;
  cursor: pointer;
}

.graph-node-center:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
}

.graph-node-center strong {
  font-size: 1.22rem;
  line-height: 1.25;
}

.graph-node small {
  letter-spacing: .6px;
}

.network-graph-entry-card a {
  margin-top: 4px;
}

/* Record Knowledge Map V2 */

.record-knowledge-map-page {
  max-width: 1180px;
  margin: 46px auto 80px;
  padding: 0 26px;
}

.record-knowledge-map-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 50px 56px;
  margin-bottom: 30px;
}

.record-knowledge-map-kicker {
  color: #c5a059;
  font-size: .82rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
}

.record-knowledge-map-hero h1 {
  color: #092844;
  font-size: 2.7rem;
  line-height: 1.18;
  margin: 0 0 18px;
}

.record-knowledge-map-hero p {
  color: #333;
  line-height: 1.75;
  max-width: 900px;
  margin: 0 0 24px;
  font-size: 1.05rem;
}

.record-knowledge-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.record-knowledge-map-actions a {
  display: inline-block;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.record-knowledge-map-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.record-knowledge-map-stat {
  background: #f8f3e8;
  border: 1px solid #d4b06a;
  border-top: 4px solid #163d73;
  text-align: center;
  padding: 22px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.record-knowledge-map-stat strong {
  display: block;
  color: #092844;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 9px;
}

.record-knowledge-map-stat span {
  color: #7a4b20;
  font-weight: bold;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .5px;
}

.record-knowledge-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
}

.record-map-visual-panel {
  position: relative;
  min-height: 540px;
  background: #fffdf8;
  border: 1px solid #e1d3ae;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
  overflow: hidden;
}

.record-map-center-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 310px;
  min-height: 150px;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border: 1px solid #d4b06a;
  border-top: 5px solid #163d73;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .10);
  padding: 24px;
  text-align: center;
  z-index: 3;
}

.record-map-node-label,
.record-map-orbit-node span {
  display: block;
  color: #7a4b20;
  font-size: .74rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 10px;
}

.record-map-center-node a {
  color: #092844;
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: bold;
  text-decoration: none;
}

.record-map-center-node a:hover {
  color: #7a4b20;
  text-decoration: underline;
}

.record-map-center-node small {
  display: block;
  color: #6b6258;
  margin-top: 12px;
  line-height: 1.4;
}

.record-map-orbit-node {
  position: absolute;
  width: 185px;
  min-height: 105px;
  background: #ffffff;
  border: 1px solid #d4b06a;
  border-top: 4px solid #c5a059;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .07);
  padding: 18px;
  text-align: center;
  color: #092844;
  text-decoration: none;
  z-index: 2;
}

.record-map-orbit-node strong {
  display: block;
  color: #092844;
  font-size: 1rem;
  line-height: 1.35;
}

.record-map-orbit-node:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .12);
}

.orbit-author {
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-author:hover {
  transform: translateX(-50%) translateY(-3px);
}

.orbit-collection {
  left: 42px;
  top: 50%;
  transform: translateY(-50%);
}

.orbit-collection:hover {
  transform: translateY(-50%) translateY(-3px);
}

.orbit-pillar {
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
}

.orbit-pillar:hover {
  transform: translateY(-50%) translateY(-3px);
}

.orbit-tags {
  left: 130px;
  bottom: 45px;
}

.orbit-files {
  right: 130px;
  bottom: 45px;
}

.record-map-side-panel {
  background: #f8f3e8;
  border-top: 4px solid #163d73;
  padding: 26px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.record-map-side-section {
  border-bottom: 1px solid #d8c59a;
  padding-bottom: 20px;
  margin-bottom: 22px;
}

.record-map-side-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.record-map-side-section h2 {
  color: #092844;
  font-size: 1.22rem;
  margin: 0 0 14px;
}

.record-map-related-records {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  padding: 32px;
}

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

.record-map-related-card {
  background: #fffdf8;
  border: 1px solid #e1d3ae;
  padding: 22px;
}

.record-map-related-card h3 {
  color: #092844;
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 12px 0;
}

.record-map-related-card h3 a {
  color: inherit;
  text-decoration: none;
}

.record-map-related-card h3 a:hover {
  color: #7a4b20;
  text-decoration: underline;
}

.record-map-related-card p {
  color: #333;
  line-height: 1.6;
}

.record-map-mini-link {
  display: inline-block;
  background: #163d73;
  color: #ffffff;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.record-map-mini-link:hover {
  background: #0f2d55;
}

@media(max-width: 1000px) {
  .record-knowledge-map-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .record-knowledge-map-layout {
    grid-template-columns: 1fr;
  }

  .record-map-visual-panel {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }

  .record-map-center-node,
  .record-map-orbit-node,
  .orbit-author,
  .orbit-collection,
  .orbit-pillar,
  .orbit-tags,
  .orbit-files {
    position: static;
    width: auto;
    min-height: auto;
    transform: none;
  }

  .record-map-center-node:hover,
  .record-map-orbit-node:hover,
  .orbit-author:hover,
  .orbit-collection:hover,
  .orbit-pillar:hover {
    transform: translateY(-3px);
  }
}

@media(max-width: 650px) {
  .record-knowledge-map-hero {
    padding: 34px 28px;
  }

  .record-knowledge-map-hero h1 {
    font-size: 2.1rem;
  }

  .record-knowledge-map-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .record-map-related-grid {
    grid-template-columns: 1fr;
  }
}

/* Records Directory Page */

.records-directory-page {
  max-width: 1180px;
  margin: 46px auto 80px;
  padding: 0 26px;
}

.records-directory-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 54px 58px;
  margin-bottom: 30px;
}

.records-directory-kicker {
  color: #c5a059;
  font-size: .82rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
}

.records-directory-hero h1 {
  color: #092844;
  font-size: 3rem;
  margin: 0 0 18px;
  line-height: 1.12;
}

.records-directory-hero p {
  color: #333;
  line-height: 1.75;
  max-width: 880px;
  margin: 0 0 26px;
  font-size: 1.05rem;
}

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

.records-directory-actions a {
  display: inline-block;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.records-directory-summary {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  margin-bottom: 34px;
}

.records-directory-stat {
  background: #f8f3e8;
  border: 1px solid #d4b06a;
  border-top: 4px solid #163d73;
  text-align: center;
  padding: 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.records-directory-stat strong {
  display: block;
  color: #092844;
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 10px;
}

.records-directory-stat span {
  color: #7a4b20;
  font-weight: bold;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .5px;
}

.records-directory-intro {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  padding: 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
}

.records-directory-intro h2 {
  color: #092844;
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.records-directory-intro p {
  color: #333;
  line-height: 1.65;
  margin: 0;
}

.records-directory-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.records-type-card {
  background: #ffffff;
  border: 1px solid #d4b06a;
  border-top: 4px solid #c5a059;
  text-align: center;
  padding: 20px 10px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
}

.records-type-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}

.records-type-card strong {
  display: block;
  color: #092844;
  font-size: 1.85rem;
  margin-bottom: 8px;
  line-height: 1;
}

.records-type-card span {
  color: #7a4b20;
  font-weight: bold;
  text-transform: uppercase;
  font-size: .76rem;
  letter-spacing: .4px;
}

.records-directory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  border-bottom: 2px solid #d4b06a;
  padding-bottom: 12px;
}

.records-directory-toolbar h2 {
  color: #092844;
  margin: 0;
  font-size: 2rem;
}

.records-directory-toolbar span {
  color: #7a4b20;
  font-weight: bold;
}

.records-directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.records-directory-list {
  display: grid;
  gap: 22px;
}

.record-directory-card {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  border-top: 4px solid #c5a059;
  padding: 26px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.record-directory-card h3 {
  color: #092844;
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 12px 0;
}

.record-directory-card h3 a {
  color: inherit;
  text-decoration: none;
}

.record-directory-card h3 a:hover {
  color: #7a4b20;
  text-decoration: underline;
}

.record-directory-card p {
  color: #333;
  line-height: 1.65;
  margin-bottom: 16px;
}

.record-directory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #6b6258;
  font-size: .92rem;
  border-top: 1px solid #eadfc6;
  padding-top: 12px;
  margin-bottom: 14px;
}

.record-directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.record-directory-actions a {
  background: #163d73;
  color: #ffffff;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.record-directory-actions a:hover {
  background: #0f2d55;
}

.records-directory-side {
  background: #f8f3e8;
  border-top: 4px solid #163d73;
  padding: 24px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.records-directory-side-section {
  border-bottom: 1px solid #d8c59a;
  padding-bottom: 20px;
  margin-bottom: 22px;
}

.records-directory-side-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.records-directory-side-section h2 {
  color: #092844;
  font-size: 1.22rem;
  margin: 0 0 14px;
}

@media(max-width: 1100px) {
  .records-directory-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .records-directory-layout {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 850px) {
  .records-directory-summary {
    grid-template-columns: 1fr;
  }

  .records-directory-hero {
    padding: 34px 28px;
  }

  .records-directory-hero h1 {
    font-size: 2.25rem;
  }
}

@media(max-width: 600px) {
  .records-directory-type-grid {
    grid-template-columns: 1fr;
  }

  .records-directory-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Media Directory Page */

.media-directory-page {
  max-width: 1180px;
  margin: 46px auto 80px;
  padding: 0 26px;
}

.media-directory-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 54px 58px;
  margin-bottom: 30px;
}

.media-directory-kicker {
  color: #c5a059;
  font-size: .82rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
}

.media-directory-hero h1 {
  color: #092844;
  font-size: 3rem;
  margin: 0 0 18px;
  line-height: 1.12;
}

.media-directory-hero p {
  color: #333;
  line-height: 1.75;
  max-width: 880px;
  margin: 0 0 26px;
  font-size: 1.05rem;
}

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

.media-directory-actions a {
  display: inline-block;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.media-directory-summary {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  margin-bottom: 34px;
}

.media-directory-stat {
  background: #f8f3e8;
  border: 1px solid #d4b06a;
  border-top: 4px solid #163d73;
  text-align: center;
  padding: 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.media-directory-stat strong {
  display: block;
  color: #092844;
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 10px;
}

.media-directory-stat span {
  color: #7a4b20;
  font-weight: bold;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .5px;
}

.media-directory-intro {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  padding: 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
}

.media-directory-intro h2 {
  color: #092844;
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.media-directory-intro p {
  color: #333;
  line-height: 1.65;
  margin: 0;
}

.media-directory-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.media-category-card {
  background: #ffffff;
  border: 1px solid #d4b06a;
  border-top: 4px solid #c5a059;
  text-align: center;
  padding: 22px 10px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.media-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}

.media-category-card strong {
  display: block;
  color: #092844;
  font-size: 1.95rem;
  margin-bottom: 8px;
  line-height: 1;
}

.media-category-card span {
  color: #7a4b20;
  font-weight: bold;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .4px;
}

.media-directory-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  border-bottom: 2px solid #d4b06a;
  padding-bottom: 12px;
}

.media-directory-toolbar h2 {
  color: #092844;
  margin: 0;
  font-size: 2rem;
}

.media-directory-toolbar span {
  color: #7a4b20;
  font-weight: bold;
}

.media-directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

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

.media-directory-card {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  border-top: 4px solid #c5a059;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  overflow: hidden;
}

.media-directory-preview {
  height: 180px;
  background: #f8f3e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-directory-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-file-icon {
  width: 86px;
  height: 86px;
  border: 2px solid #c5a059;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #092844;
  font-weight: bold;
  background: #ffffff;
}

.media-directory-body {
  padding: 22px;
}

.media-directory-body h3 {
  color: #092844;
  font-size: 1.18rem;
  line-height: 1.35;
  margin: 12px 0;
  word-break: break-word;
}

.media-directory-body h3 a {
  color: inherit;
  text-decoration: none;
}

.media-directory-body h3 a:hover {
  color: #7a4b20;
  text-decoration: underline;
}

.media-directory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #6b6258;
  font-size: .88rem;
  border-top: 1px solid #eadfc6;
  padding-top: 12px;
  margin-bottom: 14px;
}

.media-directory-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-directory-actions-row a {
  background: #163d73;
  color: #ffffff;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.media-directory-actions-row a:hover {
  background: #0f2d55;
}

.media-directory-side {
  background: #f8f3e8;
  border-top: 4px solid #163d73;
  padding: 24px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.media-directory-side-section {
  border-bottom: 1px solid #d8c59a;
  padding-bottom: 20px;
  margin-bottom: 22px;
}

.media-directory-side-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.media-directory-side-section h2 {
  color: #092844;
  font-size: 1.22rem;
  margin: 0 0 14px;
}

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

@media(max-width: 900px) {
  .media-directory-summary {
    grid-template-columns: 1fr;
  }

  .media-directory-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .media-directory-grid {
    grid-template-columns: 1fr;
  }

  .media-directory-hero {
    padding: 34px 28px;
  }

  .media-directory-hero h1 {
    font-size: 2.25rem;
  }
}

@media(max-width: 600px) {
  .media-directory-category-grid {
    grid-template-columns: 1fr;
  }

  .media-directory-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* File Metadata Edit Page */

.file-metadata-edit-page {
  max-width: 1420px;
  margin: 36px auto 70px;
  padding: 0 24px;
}

.file-metadata-edit-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 42px 48px;
  margin-bottom: 28px;
}

.file-metadata-edit-kicker {
  color: #c5a059;
  font-size: .82rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
}

.file-metadata-edit-hero h1 {
  color: #092844;
  font-size: 2.7rem;
  margin: 0 0 16px;
  line-height: 1.12;
}

.file-metadata-edit-hero p {
  color: #333;
  line-height: 1.7;
  max-width: 920px;
  margin: 0;
}

.file-metadata-editor-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: start;
}

.file-editor-preview-panel,
.file-editor-main-panel,
.file-editor-notes-panel {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  border-top: 4px solid #c5a059;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  padding: 24px;
}

.file-editor-preview-panel h2,
.file-editor-main-panel h2,
.file-editor-notes-panel h2 {
  color: #092844;
  font-size: 1.35rem;
  margin: 0 0 18px;
}

.file-editor-preview-box {
  height: 410px;
  background: #f8f3e8;
  border: 1px solid #d8c59a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
}

.file-editor-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.file-editor-icon {
  width: 116px;
  height: 116px;
  border: 3px solid #c5a059;
  background: #ffffff;
  color: #092844;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.file-editor-preview-actions,
.file-editor-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.file-editor-preview-actions a,
.file-editor-inline-actions a {
  background: #163d73;
  color: #ffffff;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.file-editor-preview-actions a:hover,
.file-editor-inline-actions a:hover {
  background: #0f2d55;
}

.file-editor-technical-box {
  background: #f8f3e8;
  border: 1px solid #d8c59a;
  padding: 18px;
}

.file-editor-technical-box h3,
.file-editor-linked-record-box h3,
.file-editor-notes-box h3 {
  color: #092844;
  margin: 0 0 14px;
  font-size: 1.08rem;
}

.file-editor-technical-box dl {
  margin: 0;
}

.file-editor-technical-box dt {
  color: #7a4b20;
  font-weight: bold;
  font-size: .82rem;
  text-transform: uppercase;
  margin-top: 12px;
}

.file-editor-technical-box dt:first-child {
  margin-top: 0;
}

.file-editor-technical-box dd {
  margin: 4px 0 0;
  color: #333;
  word-break: break-word;
}

.file-editor-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.file-editor-field {
  display: block;
}

.file-editor-field-wide {
  grid-column: 1 / -1;
}

.file-editor-field span {
  display: block;
  color: #7a4b20;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.file-editor-field input,
.file-editor-field select,
.file-editor-notes-box textarea {
  width: 100%;
  border: 1px solid #d8c59a;
  background: #fffdf8;
  padding: 11px 12px;
  color: #092844;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}

.file-editor-field input:focus,
.file-editor-field select:focus,
.file-editor-notes-box textarea:focus {
  outline: 2px solid rgba(197, 160, 89, .35);
  border-color: #c5a059;
}

.file-editor-linked-record-box,
.file-editor-notes-box {
  background: #f8f3e8;
  border: 1px solid #d8c59a;
  padding: 20px;
  margin-bottom: 22px;
}

.file-editor-linked-record-box p {
  color: #333;
  line-height: 1.55;
  margin: 0 0 10px;
}

.file-editor-save-row {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #eadfc6;
  padding-top: 20px;
}

.file-editor-save-btn {
  background: #163d73;
  color: #ffffff;
  border: none;
  padding: 11px 18px;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

.file-editor-save-btn:hover {
  background: #0f2d55;
}

.file-editor-cancel-btn {
  background: #f8f3e8;
  color: #092844;
  border: 1px solid #d4b06a;
  padding: 10px 17px;
  font-weight: bold;
  border-radius: 3px;
  text-decoration: none;
}

.file-editor-cancel-btn:hover {
  background: #eadfc6;
}

.file-editor-notes-box textarea {
  min-height: 240px;
  resize: vertical;
  line-height: 1.6;
}

.file-editor-notes-box small {
  display: block;
  color: #6b6258;
  line-height: 1.5;
  margin-top: 10px;
}

@media(max-width: 1200px) {
  .file-metadata-editor-layout {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .file-editor-notes-panel {
    grid-column: 1 / -1;
  }
}

@media(max-width: 850px) {
  .file-metadata-editor-layout {
    grid-template-columns: 1fr;
  }

  .file-editor-field-grid {
    grid-template-columns: 1fr;
  }

  .file-metadata-edit-hero {
    padding: 32px 28px;
  }

  .file-metadata-edit-hero h1 {
    font-size: 2.15rem;
  }

  .file-editor-preview-box {
    height: 320px;
  }
}

/* Metadata editor additions */

.file-editor-field-hint {
  display: block;
  color: #6b6258;
  font-size: 0.82rem;
  line-height: 1.45;
  margin-top: 7px;
}

.file-editor-preview-box img {
  background: #ffffff;
}

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

.file-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.file-action-btn {
  display: inline-block;
  padding: 12px 20px;
  background: #163d73;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  transition: .2s;
}

.file-action-btn:hover {
  background: #0f2d55;
}

.file-cover-large {
  width: 240px;
  margin: 0 auto 25px;
}

.file-cover-large img {
  width: 100%;
  display: block;
  border: 1px solid #d8c59a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

/* File metadata public page refinements */

.file-cover-large {
  width: 240px;
  max-width: 100%;
  margin: 0 auto 25px;
}

.file-cover-large img {
  width: 100%;
  display: block;
  border: 1px solid #d8c59a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
  background: #ffffff;
}

.file-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 34px;
}

.file-action-btn {
  display: inline-block;
  padding: 12px 20px;
  background: #163d73;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  transition: .2s;
}

.file-action-btn:hover {
  background: #0f2d55;
}

/* Record Knowledge Map V2 */

.record-map-v2-page {
  max-width: 1180px;
  margin: 46px auto 80px;
  padding: 0 26px
}

.record-map-v2-hero {
  background: #fff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 50px 56px;
  margin-bottom: 30px
}

.record-map-v2-kicker {
  color: #c5a059;
  font-size: .82rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 12px
}

.record-map-v2-hero h1 {
  color: #092844;
  font-size: 2.65rem;
  line-height: 1.18;
  margin: 0 0 18px
}

.record-map-v2-hero p {
  color: #333;
  line-height: 1.75;
  max-width: 900px;
  margin: 0 0 24px;
  font-size: 1.05rem
}

.record-map-v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

.record-map-v2-actions a {
  display: inline-block;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px
}

.record-map-v2-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 36px
}

.record-map-v2-stat {
  background: #f8f3e8;
  border: 1px solid #d4b06a;
  border-top: 4px solid #163d73;
  text-align: center;
  padding: 22px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06)
}

.record-map-v2-stat strong {
  display: block;
  color: #092844;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 9px
}

.record-map-v2-stat span {
  color: #7a4b20;
  font-weight: bold;
  text-transform: uppercase;
  font-size: .76rem;
  letter-spacing: .5px
}

.record-map-v2-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  margin-bottom: 36px
}

.record-map-v2-canvas {
  position: relative;
  min-height: 560px;
  background: #fffdf8;
  border: 1px solid #e1d3ae;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
  overflow: hidden
}

.record-map-v2-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 330px;
  min-height: 165px;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid #d4b06a;
  border-top: 5px solid #163d73;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .10);
  padding: 24px;
  text-align: center;
  z-index: 3
}

.record-map-v2-center span,
.record-map-v2-entity span {
  display: block;
  color: #7a4b20;
  font-size: .74rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 10px
}

.record-map-v2-center h2 {
  color: #092844;
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0 0 10px
}

.record-map-v2-center h2 a {
  color: inherit;
  text-decoration: none
}

.record-map-v2-center h2 a:hover {
  color: #7a4b20;
  text-decoration: underline
}

.record-map-v2-center small {
  color: #6b6258;
  line-height: 1.4
}

.record-map-v2-entity {
  position: absolute;
  width: 190px;
  min-height: 108px;
  background: #fff;
  border: 1px solid #d4b06a;
  border-top: 4px solid #c5a059;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .07);
  padding: 18px;
  text-align: center;
  color: #092844;
  text-decoration: none;
  z-index: 2
}

.record-map-v2-entity strong {
  display: block;
  color: #092844;
  font-size: 1rem;
  line-height: 1.35
}

.record-map-v2-entity:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .12)
}

.entity-author {
  top: 38px;
  left: 50%;
  transform: translateX(-50%)
}

.entity-author:hover {
  transform: translateX(-50%) translateY(-3px)
}

.entity-collection {
  left: 42px;
  top: 50%;
  transform: translateY(-50%)
}

.entity-collection:hover {
  transform: translateY(-50%) translateY(-3px)
}

.entity-pillar {
  right: 42px;
  top: 50%;
  transform: translateY(-50%)
}

.entity-pillar:hover {
  transform: translateY(-50%) translateY(-3px)
}

.entity-tags {
  left: 130px;
  bottom: 45px
}

.entity-files {
  right: 130px;
  bottom: 45px
}

.record-map-v2-side {
  background: #f8f3e8;
  border-top: 4px solid #163d73;
  padding: 26px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06)
}

.record-map-v2-side-section {
  border-bottom: 1px solid #d8c59a;
  padding-bottom: 20px;
  margin-bottom: 22px
}

.record-map-v2-side-section:last-child {
  border-bottom: none;
  margin-bottom: 0
}

.record-map-v2-side-section h2 {
  color: #092844;
  font-size: 1.22rem;
  margin: 0 0 14px
}

.record-map-v2-related-records,
.record-map-v2-citation {
  background: #fff;
  border: 1px solid #e1d3ae;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  padding: 32px;
  margin-bottom: 34px
}

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

.record-map-v2-related-card {
  background: #fffdf8;
  border: 1px solid #e1d3ae;
  padding: 22px
}

.record-map-v2-related-card h3 {
  color: #092844;
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 12px 0
}

.record-map-v2-related-card h3 a {
  color: inherit;
  text-decoration: none
}

.record-map-v2-related-card h3 a:hover {
  color: #7a4b20;
  text-decoration: underline
}

.record-map-v2-related-card p {
  color: #333;
  line-height: 1.6
}

.record-map-v2-related-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.record-map-v2-related-actions a {
  background: #163d73;
  color: #fff;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px
}

.record-map-v2-related-actions a:hover {
  background: #0f2d55
}

.record-map-v2-citation h2 {
  color: #092844;
  margin: 0 0 14px
}

.record-map-v2-citation p {
  color: #333;
  line-height: 1.7
}

@media(max-width:1000px) {
  .record-map-v2-stats {
    grid-template-columns: repeat(3, 1fr)
  }

  .record-map-v2-layout {
    grid-template-columns: 1fr
  }

  .record-map-v2-canvas {
    min-height: auto;
    display: grid;
    gap: 16px;
    padding: 24px
  }

  .record-map-v2-center,
  .record-map-v2-entity,
  .entity-author,
  .entity-collection,
  .entity-pillar,
  .entity-tags,
  .entity-files {
    position: static;
    width: auto;
    min-height: auto;
    transform: none
  }

  .record-map-v2-center:hover,
  .record-map-v2-entity:hover,
  .entity-author:hover,
  .entity-collection:hover,
  .entity-pillar:hover {
    transform: translateY(-3px)
  }
}

@media(max-width:650px) {
  .record-map-v2-hero {
    padding: 34px 28px
  }

  .record-map-v2-hero h1 {
    font-size: 2.1rem
  }

  .record-map-v2-stats {
    grid-template-columns: repeat(2, 1fr)
  }

  .record-map-v2-related-grid {
    grid-template-columns: 1fr
  }
}


/* =========================================================
   CLEAN RECORD / KNOWLEDGE MAP CSS REPLACEMENT
   Delete the corrupted map CSS blocks that contain:
   ..........
   ''''''''''''''
   '''.record-map-v2-page
   Then paste this full block at the bottom of static/style.css.
   ========================================================= */

/* ---------- Record Knowledge Map V2 ---------- */

.record-map-v2-page {
  max-width: 1180px;
  margin: 46px auto 80px;
  padding: 0 26px;
}

.record-map-v2-hero {
  background: #ffffff;
  border-top: 5px solid #c5a059;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
  padding: 50px 56px;
  margin-bottom: 30px;
}

.record-map-v2-kicker {
  color: #c5a059;
  font-size: .82rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
}

.record-map-v2-hero h1 {
  color: #092844;
  font-size: 2.65rem;
  line-height: 1.18;
  margin: 0 0 18px;
}

.record-map-v2-hero p {
  color: #333;
  line-height: 1.75;
  max-width: 900px;
  margin: 0 0 24px;
  font-size: 1.05rem;
}

.record-map-v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.record-map-v2-actions a {
  display: inline-block;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.record-map-v2-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.record-map-v2-stat {
  background: #f8f3e8;
  border: 1px solid #d4b06a;
  border-top: 4px solid #163d73;
  text-align: center;
  padding: 22px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.record-map-v2-stat strong {
  display: block;
  color: #092844;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 9px;
}

.record-map-v2-stat span {
  color: #7a4b20;
  font-weight: bold;
  text-transform: uppercase;
  font-size: .76rem;
  letter-spacing: .5px;
}

.record-map-v2-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
}

.record-map-v2-canvas {
  position: relative;
  min-height: 560px;
  background: #fffdf8;
  border: 1px solid #e1d3ae;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
  overflow: hidden;
}

.record-map-v2-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 330px;
  min-height: 165px;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border: 1px solid #d4b06a;
  border-top: 5px solid #163d73;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .10);
  padding: 24px;
  text-align: center;
  z-index: 3;
}

.record-map-v2-center span,
.record-map-v2-entity span {
  display: block;
  color: #7a4b20;
  font-size: .74rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 10px;
}

.record-map-v2-center h2 {
  color: #092844;
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0 0 10px;
}

.record-map-v2-center h2 a {
  color: inherit;
  text-decoration: none;
}

.record-map-v2-center h2 a:hover {
  color: #7a4b20;
  text-decoration: underline;
}

.record-map-v2-center small {
  color: #6b6258;
  line-height: 1.4;
}

.record-map-v2-entity {
  position: absolute;
  width: 190px;
  min-height: 108px;
  background: #ffffff;
  border: 1px solid #d4b06a;
  border-top: 4px solid #c5a059;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .07);
  padding: 18px;
  text-align: center;
  color: #092844;
  text-decoration: none;
  z-index: 2;
}

.record-map-v2-entity strong {
  display: block;
  color: #092844;
  font-size: 1rem;
  line-height: 1.35;
}

.record-map-v2-entity:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .12);
}

.entity-author {
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
}

.entity-author:hover {
  transform: translateX(-50%) translateY(-3px);
}

.entity-collection {
  left: 42px;
  top: 50%;
  transform: translateY(-50%);
}

.entity-collection:hover {
  transform: translateY(-50%) translateY(-3px);
}

.entity-pillar {
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
}

.entity-pillar:hover {
  transform: translateY(-50%) translateY(-3px);
}

.entity-tags {
  left: 130px;
  bottom: 45px;
}

.entity-files {
  right: 130px;
  bottom: 45px;
}

.record-map-v2-side {
  background: #f8f3e8;
  border-top: 4px solid #163d73;
  padding: 26px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.record-map-v2-side-section {
  border-bottom: 1px solid #d8c59a;
  padding-bottom: 20px;
  margin-bottom: 22px;
}

.record-map-v2-side-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.record-map-v2-side-section h2 {
  color: #092844;
  font-size: 1.22rem;
  margin: 0 0 14px;
}

.record-map-v2-related-records,
.record-map-v2-citation {
  background: #ffffff;
  border: 1px solid #e1d3ae;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  padding: 32px;
  margin-bottom: 34px;
}

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

.record-map-v2-related-card {
  background: #fffdf8;
  border: 1px solid #e1d3ae;
  padding: 22px;
}

.record-map-v2-related-card h3 {
  color: #092844;
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 12px 0;
}

.record-map-v2-related-card h3 a {
  color: inherit;
  text-decoration: none;
}

.record-map-v2-related-card h3 a:hover {
  color: #7a4b20;
  text-decoration: underline;
}

.record-map-v2-related-card p {
  color: #333;
  line-height: 1.6;
}

.record-map-v2-related-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.record-map-v2-related-actions a {
  background: #163d73;
  color: #ffffff;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.record-map-v2-related-actions a:hover {
  background: #0f2d55;
}

.record-map-v2-citation h2 {
  color: #092844;
  margin: 0 0 14px;
}

.record-map-v2-citation p {
  color: #333;
  line-height: 1.7;
}

/* ---------- Responsive ---------- */

@media(max-width: 1000px) {
  .record-map-v2-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .record-map-v2-layout {
    grid-template-columns: 1fr;
  }

  .record-map-v2-canvas {
    min-height: auto;
    display: grid;
    gap: 16px;
    padding: 24px;
  }

  .record-map-v2-center,
  .record-map-v2-entity,
  .entity-author,
  .entity-collection,
  .entity-pillar,
  .entity-tags,
  .entity-files {
    position: static;
    width: auto;
    min-height: auto;
    transform: none;
  }

  .record-map-v2-center:hover,
  .record-map-v2-entity:hover,
  .entity-author:hover,
  .entity-collection:hover,
  .entity-pillar:hover {
    transform: translateY(-3px);
  }
}

@media(max-width: 650px) {
  .record-map-v2-hero {
    padding: 34px 28px;
  }

  .record-map-v2-hero h1 {
    font-size: 2.1rem;
  }

  .record-map-v2-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .record-map-v2-related-grid {
    grid-template-columns: 1fr;
  }
}

/* Record Knowledge Map V3 */

.record-map-v3-canvas {
  position: relative;
  min-height: 620px;
  background: #fffdf8;
  border: 1px solid #e1d3ae;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
  overflow: hidden;
}

.record-map-v3-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.record-map-v3-lines line {
  stroke: #c5a059;
  stroke-width: 3;
  opacity: .68;
}

.record-map-v3-center,
.record-map-v3-node {
  position: absolute;
  background: #ffffff;
  border: 1px solid #d4b06a;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
  text-align: center;
  z-index: 2;
  color: #092844;
  text-decoration: none;
}

.record-map-v3-center {
  left: 50%;
  top: 50%;
  width: 350px;
  min-height: 165px;
  transform: translate(-50%, -50%);
  border-top: 5px solid #163d73;
  padding: 26px;
  z-index: 3;
}

.record-map-v3-node {
  width: 205px;
  min-height: 108px;
  border-top: 4px solid #c5a059;
  padding: 18px;
}

.record-map-v3-center span,
.record-map-v3-node span {
  display: block;
  color: #7a4b20;
  font-size: .74rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 10px;
}

.record-map-v3-center h2 {
  color: #092844;
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0 0 10px;
}

.record-map-v3-center h2 a {
  color: inherit;
  text-decoration: none;
}

.record-map-v3-center h2 a:hover {
  color: #7a4b20;
  text-decoration: underline;
}

.record-map-v3-center small {
  color: #6b6258;
}

.record-map-v3-node strong {
  display: block;
  color: #092844;
  font-size: 1rem;
  line-height: 1.35;
}

.record-map-v3-node:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .12);
}

.node-author {
  left: 50%;
  top: 38px;
  transform: translateX(-50%);
}

.node-author:hover {
  transform: translateX(-50%) translateY(-3px);
}

.node-collection {
  left: 45px;
  top: 50%;
  transform: translateY(-50%);
}

.node-collection:hover {
  transform: translateY(-50%) translateY(-3px);
}

.node-pillar {
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
}

.node-pillar:hover {
  transform: translateY(-50%) translateY(-3px);
}

.node-tags {
  left: 25%;
  bottom: 48px;
  transform: translateX(-50%);
}

.node-tags:hover {
  transform: translateX(-50%) translateY(-3px);
}

.node-files {
  right: 25%;
  bottom: 48px;
  transform: translateX(50%);
}

.node-files:hover {
  transform: translateX(50%) translateY(-3px);
}

.empty-node {
  opacity: .65;
}

@media(max-width:1000px) {
  .record-map-v3-canvas {
    min-height: auto;
    display: grid;
    gap: 16px;
    padding: 24px;
  }

  .record-map-v3-lines {
    display: none;
  }

  .record-map-v3-center,
  .record-map-v3-node,
  .node-author,
  .node-collection,
  .node-pillar,
  .node-tags,
  .node-files {
    position: static;
    width: auto;
    min-height: auto;
    transform: none;
  }

  .record-map-v3-center:hover,
  .record-map-v3-node:hover,
  .node-author:hover,
  .node-collection:hover,
  .node-pillar:hover,
  .node-tags:hover,
  .node-files:hover {
    transform: translateY(-3px);
  }
}

.record-map-v3-node small {
  display: block;
  color: #6b6258;
  margin-top: 8px;
  font-size: .82rem;
  line-height: 1.35;
}

.record-map-v3-node {
  transition: .25s ease;
}

.record-map-v3-node:hover {
  border-top-color: #163d73;
}

/* AUTHOR PROFILE CARD */

.author-profile-card {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 30px;

  margin: 40px 0;

  padding: 35px;

  background: #fffdf8;
  border: 1px solid #d8c394;
}

.author-profile-main h2 {
  margin: 0 0 10px;
  color: #092844;
}

.author-profile-main p {
  color: #5d5d5d;
  margin: 0;
}

.author-profile-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.author-profile-metrics div {
  text-align: center;

  padding: 20px;

  background: #ffffff;

  border-top: 4px solid #163d73;
  border-left: 1px solid #d8c394;
  border-right: 1px solid #d8c394;
  border-bottom: 1px solid #d8c394;
}

.author-profile-metrics strong {
  display: block;

  font-size: 2rem;

  color: #092844;
}

.author-profile-metrics span {
  color: #8b5c25;

  font-size: .85rem;
  text-transform: uppercase;
}

.author-footprint-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 36px;
  margin: 40px 0;
  padding: 38px 44px;
  background: #fffdf8;
  border: 1px solid #d8c394;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .04);
}

.author-footprint-intro h2 {
  color: #092844;
  font-size: 1.8rem;
  margin: 0 0 12px;
}

.author-footprint-intro p {
  color: #333;
  line-height: 1.65;
  margin: 0;
}

.author-footprint-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 36px;
}

.footprint-block h3 {
  color: #092844;
  font-size: 1.15rem;
  margin: 0 0 10px;
}

.footprint-block p {
  color: #333;
  line-height: 1.6;
  margin: 0;
}

@media(max-width:900px) {
  .author-footprint-card {
    grid-template-columns: 1fr;
  }

  .author-footprint-grid {
    grid-template-columns: 1fr;
  }
}

.author-graph-section {
  margin: 40px 0;
}

.author-graph-canvas {
  position: relative;
  min-height: 560px;
  background: #fffdf8;
  border: 1px solid #d8c394;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .05);
  overflow: hidden;
}

.author-graph-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.author-graph-lines line {
  stroke: #c5a059;
  stroke-width: 3;
  opacity: .65;
}

.author-graph-center,
.author-graph-node {
  position: absolute;
  background: #ffffff;
  border: 1px solid #d4b06a;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
  text-align: center;
  color: #092844;
  text-decoration: none;
}

.author-graph-center {
  left: 50%;
  top: 50%;
  width: 330px;
  min-height: 150px;
  transform: translate(-50%, -50%);
  border-top: 5px solid #163d73;
  padding: 26px;
  z-index: 3;
}

.author-graph-node {
  width: 205px;
  min-height: 108px;
  border-top: 4px solid #c5a059;
  padding: 18px;
  z-index: 2;
}

.author-graph-center span,
.author-graph-node span {
  display: block;
  color: #7a4b20;
  font-size: .74rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 10px;
}

.author-graph-center strong,
.author-graph-node strong {
  display: block;
  color: #092844;
  font-size: 1rem;
  line-height: 1.35;
}

.author-graph-center strong {
  font-size: 1.4rem;
}

.author-graph-center small,
.author-graph-node small {
  display: block;
  color: #6b6258;
  margin-top: 8px;
}

.author-graph-node:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .12);
}

.author-graph-records {
  left: 50%;
  top: 38px;
  transform: translateX(-50%);
}

.author-graph-records:hover {
  transform: translateX(-50%) translateY(-3px);
}

.author-graph-collections {
  left: 45px;
  top: 50%;
  transform: translateY(-50%);
}

.author-graph-collections:hover {
  transform: translateY(-50%) translateY(-3px);
}

.author-graph-pillars {
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
}

.author-graph-pillars:hover {
  transform: translateY(-50%) translateY(-3px);
}

.author-graph-tags {
  left: 25%;
  bottom: 48px;
  transform: translateX(-50%);
}

.author-graph-tags:hover {
  transform: translateX(-50%) translateY(-3px);
}

.author-graph-media {
  right: 25%;
  bottom: 48px;
  transform: translateX(50%);
}

.author-graph-media:hover {
  transform: translateX(50%) translateY(-3px);
}

@media(max-width:900px) {
  .author-graph-canvas {
    min-height: auto;
    display: grid;
    gap: 16px;
    padding: 24px;
  }

  .author-graph-lines {
    display: none;
  }

  .author-graph-center,
  .author-graph-node,
  .author-graph-records,
  .author-graph-collections,
  .author-graph-pillars,
  .author-graph-tags,
  .author-graph-media {
    position: static;
    width: auto;
    min-height: auto;
    transform: none;
  }

  .author-graph-node:hover,
  .author-graph-records:hover,
  .author-graph-collections:hover,
  .author-graph-pillars:hover,
  .author-graph-tags:hover,
  .author-graph-media:hover {
    transform: translateY(-3px);
  }
}

.author-graph-node {
  transition: .25s ease;
}

.author-graph-node:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
}

.graph-strength {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.graph-strength span {
  padding: 6px 12px;
  border: 1px solid #d4b06a;
  border-radius: 20px;
  font-size: .85rem;
  color: #7a4b20;
  background: #fffdf8;
}

.section-intro-text {
  color: #555;
  line-height: 1.6;
  margin: 8px 0 0;
  max-width: 720px;
}

.author-publication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.author-publication-actions a {
  background: #163d73;
  color: #ffffff;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 3px;
}

.author-publication-actions a:hover {
  background: #0f2d55;
}

.collection-profile-card {
  margin: 60px 0;
  padding: 50px;
  background: #f7f6f2;
  border-top: 4px solid #caa24c;
}

.collection-profile-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.collection-profile-grid h2 {
  margin-bottom: 20px;
}

.collection-profile-grid h3 {
  margin-bottom: 10px;
  color: #0f2d4a;
}

.collection-graph-section {
  margin: 60px 0;
}

.collection-graph-canvas {
  position: relative;
  min-height: 620px;
  background: #fffdf8;
  border: 1px solid #d8c394;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .05);
  overflow: hidden;
}

.collection-graph-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.collection-graph-lines line {
  stroke: #c5a059;
  stroke-width: 3;
  opacity: .65;
}

.collection-graph-center,
.collection-graph-node {
  position: absolute;
  background: #ffffff;
  border: 1px solid #d4b06a;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
  text-align: center;
  color: #092844;
  text-decoration: none;
}

.collection-graph-center {
  left: 50%;
  top: 52%;
  width: 350px;
  min-height: 155px;
  transform: translate(-50%, -50%);
  border-top: 5px solid #163d73;
  padding: 26px;
  z-index: 3;
}

.collection-graph-node {
  width: 215px;
  min-height: 108px;
  border-top: 4px solid #c5a059;
  padding: 18px;
  z-index: 2;
  transition: .25s ease;
}

.collection-graph-center span,
.collection-graph-node span {
  display: block;
  color: #7a4b20;
  font-size: .74rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 10px;
}

.collection-graph-center strong,
.collection-graph-node strong {
  display: block;
  color: #092844;
  font-size: 1.05rem;
  line-height: 1.35;
}

.collection-graph-center strong {
  font-size: 1.45rem;
}

.collection-graph-node small {
  display: block;
  color: #6b6258;
  margin-top: 8px;
  font-size: .84rem;
}

.collection-graph-node:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .12);
}

.collection-records {
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
}

.collection-records:hover {
  transform: translateX(-50%) translateY(-3px);
}

.collection-authors {
  left: 45px;
  top: 50%;
  transform: translateY(-50%);
}

.collection-authors:hover {
  transform: translateY(-50%) translateY(-3px);
}

.collection-pillars {
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
}

.collection-pillars:hover {
  transform: translateY(-50%) translateY(-3px);
}

.collection-tags {
  left: 25%;
  bottom: 48px;
  transform: translateX(-50%);
}

.collection-tags:hover {
  transform: translateX(-50%) translateY(-3px);
}

.collection-media {
  right: 25%;
  bottom: 48px;
  transform: translateX(50%);
}

.collection-media:hover {
  transform: translateX(50%) translateY(-3px);
}

@media(max-width:900px) {
  .collection-graph-canvas {
    min-height: auto;
    display: grid;
    gap: 16px;
    padding: 24px;
  }

  .collection-graph-lines {
    display: none;
  }

  .collection-graph-center,
  .collection-graph-node,
  .collection-records,
  .collection-authors,
  .collection-pillars,
  .collection-tags,
  .collection-media {
    position: static;
    width: auto;
    min-height: auto;
    transform: none;
  }
}

.knowledge-graph {
  margin: 60px 0;
}

.graph-wrapper {
  position: relative;
  height: 700px;
}

.graph-node {
  position: absolute;
  background: #f8f6f1;
  border: 1px solid #d3aa58;
  padding: 30px;
  text-align: center;
  min-width: 220px;
}

.graph-top {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.graph-center {
  top: 180px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 380px;
}

.graph-left {
  top: 200px;
  left: 60px;
}

.graph-right {
  top: 200px;
  right: 60px;
}

.graph-bottom-left {
  bottom: 0;
  left: 200px;
}

.graph-bottom-right {
  bottom: 0;
  right: 200px;
}

.graph-strength {
  margin-top: 25px;
}

.graph-strength span {
  display: inline-block;
  margin: 5px;
  padding: 8px 16px;
  border: 1px solid #d3aa58;
  border-radius: 30px;
}

.tag-profile-card {
  margin: 60px 0;
  padding: 50px;
  background: #f7f6f2;
  border-top: 4px solid #caa24c;
}

.tag-profile-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.tag-profile-grid h2 {
  margin-bottom: 20px;
}

.tag-profile-grid h3 {
  margin-bottom: 10px;
  color: #0f2d4a;
}

.graph-bottom-center {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* ================================
   KNOWLEDGE ATLAS
================================ */

.knowledge-atlas-page {
  max-width: 1500px;
  margin: 0 auto;
  padding: 50px 55px 90px;
}

.knowledge-atlas-hero {
  background: #fff;
  border-top: 5px solid #c9a14a;
  padding: 55px 70px;
  margin-bottom: 45px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .05);
}

.knowledge-atlas-kicker {
  color: #c9a14a;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.knowledge-atlas-hero h1 {
  color: #082844;
  font-size: 4.2rem;
  margin: 0 0 25px;
}

.knowledge-atlas-hero p {
  max-width: 1050px;
  font-size: 1.35rem;
  line-height: 1.7;
}

.knowledge-atlas-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.knowledge-atlas-actions a {
  background: #173f78;
  color: #fff;
  padding: 13px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
}

.knowledge-atlas-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.knowledge-atlas-stat {
  min-width: 0;
}

.knowledge-atlas-stat {
  background: #f8f4ea;
  border: 1px solid #d5b46f;
  border-top: 5px solid #173f78;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .04);
}

.knowledge-atlas-stat strong {
  display: block;
  color: #082844;
  font-size: 2.4rem;
}

.knowledge-atlas-stat span {
  color: #7a3f08;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.knowledge-atlas-profile {
  background: #f8f6f1;
  border-top: 5px solid #c9a14a;
  padding: 50px;
  margin-bottom: 60px;
}

.knowledge-atlas-profile-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.knowledge-atlas-profile h2,
.knowledge-atlas-profile h3 {
  color: #082844;
}

@media (max-width:1200px) {
  .knowledge-atlas-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width:700px) {
  .knowledge-atlas-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:480px) {
  .knowledge-atlas-stats {
    grid-template-columns: 1fr;
  }
}

/* ================================
   KNOWLEDGE ATLAS NAVIGATION
================================ */

.knowledge-atlas-navigation {
  margin: 70px 0;
}

.knowledge-atlas-navigation .section-heading-row {
  border-bottom: 2px solid #c9a14a;
  margin-bottom: 35px;
  padding-bottom: 14px;
}

.knowledge-atlas-navigation h2 {
  color: #082844;
  font-size: 2.4rem;
  margin: 0;
}

.knowledge-atlas-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.knowledge-atlas-card {
  display: block;
  background: #fff;
  border: 1px solid #d5b46f;
  border-top: 5px solid #c9a14a;
  padding: 32px 34px;
  text-decoration: none;
  color: #111;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.knowledge-atlas-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .08);
}

.knowledge-atlas-card span {
  display: inline-block;
  color: #c9a14a;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.knowledge-atlas-card h3 {
  color: #082844;
  font-size: 1.7rem;
  margin: 0 0 16px;
}

.knowledge-atlas-card p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width:1000px) {
  .knowledge-atlas-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:640px) {
  .knowledge-atlas-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================
   PLATFORM KNOWLEDGE GRAPH
================================ */

.knowledge-atlas-graph-section {
  margin: 80px 0;
}

.knowledge-atlas-graph-section .section-heading-row {
  border-bottom: 2px solid #c9a14a;
  margin-bottom: 35px;
  padding-bottom: 14px;
}

.knowledge-atlas-graph-section h2 {
  color: #082844;
  font-size: 2.6rem;
  margin: 0;
}

.knowledge-atlas-graph-canvas {
  position: relative;
  min-height: 680px;
  background: #fff;
  border: 1px solid #d5b46f;
  padding: 40px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .04);
}

.knowledge-atlas-graph-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.knowledge-atlas-graph-lines line {
  stroke: #d6bd82;
  stroke-width: 4;
}

.knowledge-atlas-graph-center,
.knowledge-atlas-node {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid #d5b46f;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .06);
  text-align: center;
  text-decoration: none;
  color: #082844;
}

.knowledge-atlas-graph-center {
  width: 380px;
  min-height: 210px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-top: 6px solid #173f78;
  padding: 40px 30px;
}

.knowledge-atlas-graph-center span,
.knowledge-atlas-node span {
  display: block;
  color: #7a3f08;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 12px;
}

.knowledge-atlas-graph-center strong {
  display: block;
  font-size: 2rem;
  line-height: 1.25;
}

.knowledge-atlas-node {
  width: 230px;
  min-height: 125px;
  padding: 28px 20px;
  border-top: 5px solid #c9a14a;
}

.knowledge-atlas-node strong {
  display: block;
  font-size: 2.2rem;
}

.atlas-records {
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
}

.atlas-authors {
  top: 280px;
  left: 70px;
}

.atlas-collections {
  top: 280px;
  right: 70px;
}

.atlas-pillars {
  bottom: 55px;
  left: 190px;
}

.atlas-media {
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);
}

.atlas-tags {
  bottom: 55px;
  right: 190px;
}

.knowledge-atlas-node:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .09);
}

.atlas-records:hover,
.atlas-media:hover {
  transform: translateX(-50%) translateY(-4px);
}

@media (max-width:1100px) {
  .knowledge-atlas-graph-canvas {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .knowledge-atlas-graph-lines {
    display: none;
  }

  .knowledge-atlas-graph-center,
  .knowledge-atlas-node,
  .atlas-records,
  .atlas-authors,
  .atlas-collections,
  .atlas-pillars,
  .atlas-tags,
  .atlas-media {
    position: static;
    transform: none;
    width: auto;
  }
}
.knowledge-atlas-stat-link{
    text-decoration:none;
    color:inherit;
    display:block;
    transition:.25s ease;
}

.knowledge-atlas-stat-link:hover{
    transform:translateY(-4px);
    box-shadow:0 14px 30px rgba(0,0,0,.08);
}
.knowledge-atlas-profile-card{
    display:block;
    text-decoration:none;
    color:inherit;
    transition:.25s ease;
}

.knowledge-atlas-profile-card:hover{
    transform:translateY(-4px);
}

.knowledge-atlas-profile-card:hover h2,
.knowledge-atlas-profile-card:hover h3{
    color:#c9a14a;
}
.atlas-profile-action{
    margin-top:20px;
    font-weight:700;
    color:var(--gold);
}

.knowledge-atlas-profile-card:hover .atlas-profile-action{
    transform:translateX(4px);
}
/* ================================
   RECORDS DIRECTORY
================================ */

.records-directory-page{
    max-width:1500px;
    margin:0 auto;
    padding:50px 55px 90px;
}

.records-directory-hero{
    background:#fff;
    border-top:5px solid #c9a14a;
    padding:55px 70px;
    margin-bottom:45px;
    box-shadow:0 12px 28px rgba(0,0,0,.05);
}

.records-directory-kicker{
    color:#c9a14a;
    font-weight:700;
    letter-spacing:2px;
    text-transform:none;
    margin-bottom:15px;
}

.records-directory-hero h1{
    color:#082844;
    font-size:4rem;
    margin:0 0 25px;
}

.records-directory-hero p{
    max-width:1050px;
    font-size:1.25rem;
    line-height:1.7;
}

.records-directory-actions{
    display:flex;
    gap:15px;
    margin-top:30px;
}

.records-directory-actions a,
.records-directory-card-actions a{
    background:#173f78;
    color:#fff;
    padding:12px 22px;
    border-radius:4px;
    text-decoration:none;
    font-weight:700;
    display:inline-block;
}

.records-directory-stats{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:24px;
    margin-bottom:55px;
}
@media(max-width:1200px){
    .records-directory-stats{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:700px){
    .records-directory-stats{
        grid-template-columns:1fr;
    }
}
.records-directory-stat{
    background:#f8f4ea;
    border:1px solid #d5b46f;
    border-top:5px solid #173f78;
    padding:30px 20px;
    text-align:center;
    box-shadow:0 10px 24px rgba(0,0,0,.04);
}

.records-directory-stat strong{
    display:block;
    color:#082844;
    font-size:2.4rem;
}

.records-directory-stat span{
    color:#7a3f08;
    font-weight:700;
    text-transform:none;
}

.records-directory-profile{
    background:#f8f6f1;
    border-top:5px solid #c9a14a;
    padding:50px;
    margin-bottom:60px;
}

.records-directory-profile-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:40px;
}

.records-directory-section .section-heading-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:2px solid #c9a14a;
    margin-bottom:35px;
    padding-bottom:14px;
}

.records-directory-section h2{
    color:#082844;
    font-size:2.6rem;
    margin:0;
}

.records-directory-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:28px;
}

.records-directory-card{
    background:#fff;
    border:1px solid #d5b46f;
    border-top:5px solid #c9a14a;
    padding:35px;
    box-shadow:0 12px 28px rgba(0,0,0,.05);
}

.records-directory-card-kicker{
    display:inline-block;
    background:#d5b46f;
    color:#082844;
    font-weight:700;
    text-transform:none;
    padding:6px 12px;
    margin-bottom:18px;
}

.records-directory-card h3{
    color:#082844;
    font-size:1.8rem;
    margin:0 0 18px;
}

.records-directory-card h3 a{
    color:#082844;
    text-decoration:none;
}

.records-directory-card p{
    font-size:1.1rem;
    line-height:1.65;
}

.records-directory-meta{
    display:flex;
    flex-wrap:wrap;
    gap:14px 24px;
    border-top:1px solid #e3d5b4;
    margin-top:22px;
    padding-top:18px;
}

.records-directory-card-actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:22px;
}

@media(max-width:900px){
    .records-directory-stats,
    .records-directory-profile-grid{
        grid-template-columns:1fr;
    }

    .records-directory-hero{
        padding:40px 30px;
    }

    .records-directory-hero h1{
        font-size:3rem;
    }
}
.records-directory-stat-link{
    display:block;
    text-decoration:none;
    color:inherit;
    transition:.25s ease;
}

.records-directory-stat-link:hover{
    transform:translateY(-4px);
    box-shadow:0 14px 30px rgba(0,0,0,.08);
}
.records-directory-stats a.records-directory-stat{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:inherit;
    cursor:pointer;
}

.records-directory-stats a.records-directory-stat:hover{
    transform:translateY(-4px);
    box-shadow:0 14px 30px rgba(0,0,0,.08);
}
.records-directory-profile-link{
    display:block;
    text-decoration:none;
    color:inherit;
    cursor:pointer;
    transition:.25s ease;
}

.records-directory-profile-link:hover{
    transform:translateY(-4px);
    box-shadow:0 14px 30px rgba(0,0,0,.08);
}

.records-directory-profile-link:hover h3{
    color:#c9a14a;
}
/* ================================
   RECORD KNOWLEDGE MAP
================================ */

.record-map-actions a,
.record-map-small-link,
.record-map-entity-card a{
    background:#173f78;
    color:#fff;
    padding:12px 22px;
    border-radius:4px;
    text-decoration:none;
    font-weight:700;
    display:inline-block;
    margin-top:14px;
}

.record-map-actions{
    display:flex;
    gap:15px;
    margin-top:28px;
}

.record-map-entities{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
    margin:45px 0;
}

.record-map-entity-card{
    background:#fff;
    border:1px solid #d5b46f;
    border-top:5px solid #173f78;
    padding:32px;
    box-shadow:0 12px 28px rgba(0,0,0,.05);
}

.record-map-entity-card h3{
    color:#082844;
    font-size:1.8rem;
    margin:0 0 18px;
}

.record-map-entity-card p{
    font-size:1.1rem;
    line-height:1.5;
}

.record-map-section-card{
    background:#fff;
    border:1px solid #d5b46f;
    border-top:5px solid #c9a14a;
    padding:38px 42px;
    margin:40px 0;
    box-shadow:0 12px 28px rgba(0,0,0,.05);
}

.record-map-section-card h2{
    color:#082844;
    font-size:2.4rem;
    margin:0 0 24px;
}

.record-map-tag-cloud{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.record-map-tag-chip{
    border:1px solid #d5b46f;
    color:#7a3f08;
    padding:8px 16px;
    border-radius:999px;
    text-decoration:none;
    font-weight:700;
    background:#fbf8ef;
}

.record-map-tag-chip:hover{
    background:#173f78;
    color:#fff;
}

.record-map-media-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:20px;
}

.record-map-media-card{
    border:1px solid #e3d5b4;
    background:#f8f6f1;
    padding:22px;
    border-left:5px solid #c9a14a;
}

.record-map-related-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
    gap:24px;
}

.record-map-related-card{
    background:#fff;
    border:1px solid #d5b46f;
    border-top:5px solid #c9a14a;
    padding:32px;
    box-shadow:0 12px 28px rgba(0,0,0,.05);
}

.record-map-related-card h3{
    color:#082844;
    font-size:1.7rem;
}

.record-map-related-card h3 a{
    color:#082844;
    text-decoration:none;
}

.record-map-related-card h3 a:hover{
    color:#c9a14a;
}

@media(max-width:900px){
    .record-map-entities{
        grid-template-columns:1fr;
    }

    .record-map-actions{
        flex-direction:column;
    }
}
.record-map-entity-card{
    text-decoration:none;
    color:inherit;
}

.record-map-entity-card h3{
    color:#7a3f08;
    text-transform:none;
    letter-spacing:1px;
    font-size:1rem;
}

.record-map-entity-card strong,
.record-map-entity-card .entity-title{
    color:#082844;
    font-size:2rem;
    font-weight:800;
}

.record-map-entity-card span{
    color:#173f78;
    font-weight:700;
}

.record-node-card h2{
    font-size:2.4rem;
}
.entity-title{
    margin:0.4rem 0 1rem;
    font-size:2rem;
    font-weight:800;
    line-height:1.1;
    color:#082844;
    text-transform:none;
    letter-spacing:1px;
}

.record-map-entity-label{
    display:block;
    font-size:1rem;
    font-weight:700;
    color:#7a4d00;
    text-transform:none;
    letter-spacing:1px;
    margin-bottom:0.5rem;
}

.record-map-entity-card strong{
    display:block;
    margin-top:1.25rem;
    color:#082844;
    font-weight:700;
}

.record-map-entity-card{
    text-decoration:none;
    color:inherit;
}
.record-map-core-node{
    background:#fff;
    border:1px solid #d5b46f;
    border-top:5px solid #c9a14a;
    padding:34px 42px;
    box-shadow:0 12px 28px rgba(0,0,0,.05);
}

.record-map-core-node h2{
    color:#082844;
    font-size:2.3rem;
    margin:16px 0 20px;
}

.record-map-core-stats{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
}

.record-map-core-stats span{
    border:1px solid #d5b46f;
    border-radius:999px;
    padding:8px 16px;
    color:#7a3f08;
    font-weight:700;
}
.record-map-media-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:24px;
}

.record-map-media-card{
    background:#f8f6f1;
    border:1px solid #e3d5b4;
    border-left:5px solid #c9a14a;
    padding:26px 28px;
    box-shadow:0 8px 20px rgba(0,0,0,.04);
}

.record-map-media-card h3{
    color:#082844;
    font-size:1.35rem;
    margin:12px 0;
}

.media-type{
    color:#7a3f08;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1px;
}

.record-map-media-card a{
    background:#173f78;
    color:#fff;
    padding:10px 18px;
    border-radius:4px;
    text-decoration:none;
    font-weight:700;
    display:inline-block;
    margin-top:12px;
}
.record-map-entity-card{
    text-decoration:none;
    color:inherit;
    transition:.25s ease;
}

.record-map-entity-card:hover{
    transform:translateY(-5px);
    box-shadow:0 14px 30px rgba(0,0,0,.08);
}
.author-network-entity-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:24px;
    margin-top:24px;
}

.connected-tags{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}
.author-map-section-card{
    background:#fff;
    border:1px solid #d5b46f;
    border-top:5px solid #c9a14a;
    padding:36px 42px;
    margin:28px 32px;
    box-shadow:0 12px 28px rgba(0,0,0,.05);
}

.author-map-section-card h2{
    color:#082844;
    font-size:2.2rem;
    margin:0 0 28px;
    padding-bottom:16px;
    border-bottom:1px solid #c9a14a;
}

.author-network-entity-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:24px;
}

.author-network-layout{
    display:block;
    margin:42px 32px;
}

.author-network-main{
    width:100%;
    max-width:none;
}
.publications-section{
    margin-top:60px;
}
.record-map-media-card,
.record-map-media-card a{
    text-decoration:none;
}

.record-map-media-card h4,
.record-map-media-card strong{
    color:#082844;
}

.record-map-media-card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 24px rgba(0,0,0,.08);
}

.record-map-media-card{
    transition:.25s ease;
}

.record-map-media-card:hover{
    transform:translateY(-4px);
    box-shadow:0 14px 28px rgba(0,0,0,.08);
}
.media-thumb-placeholder{
    display:flex;
    align-items:center;
    justify-content:center;
    color:#7a3f08;
    font-weight:700;
    letter-spacing:.5px;
}
.collection-network-entity-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:24px;
}

.collection-map-section-card{
    background:#fff;
    border:1px solid #d5b46f;
    border-top:5px solid #c9a14a;
    padding:32px 40px;
    margin:36px 0;
}
.media-thumb {
    width: 100%;
    height: 220px;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid #e2d2ac;
    background: #f3efe6;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.media-thumb{
    display:block !important;
    width:100% !important;
    height:220px !important;
    overflow:hidden !important;
    margin-bottom:24px !important;
    border:1px solid #e2d2ac !important;
    background:#f3efe6 !important;
}

.media-thumb img{
    display:block !important;
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
}
.record-meta a {
    color: #002b4f;
    font-weight: 700;
    text-decoration: none;
}

.record-meta a:hover {
    text-decoration: underline;
}
.record-map-entity-card .entity-title a {
    color: #002b4f;
    text-decoration: none;
}

.record-map-entity-card .entity-title a:hover {
    text-decoration: underline;
}
.network-footprint {
    margin: 3rem 0;
}

.network-footprint-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.influence-card {
    background: #f8f6f1;
    border: 1px solid #d8b36a;
    padding: 1.5rem;
    text-align: center;
}

.influence-card h3 {
    margin-bottom: .5rem;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.influence-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #123d73;
}
.graph-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    font-weight: 700;
    color: #002b4f;
}

.legend-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: .35rem;
    vertical-align: middle;
}

.legend-dot.record { background: #0b2c52; }
.legend-dot.author { background: #1e4e8c; }
.legend-dot.collection { background: #a56608; }
.legend-dot.pillar { background: #4b7a2f; }
.legend-dot.tag { background: #7a3e98; }
.legend-dot.media { background: #b56a00; }

#knowledge-graph-container {
    width: 100%;
    height: 850px;
    background: #faf8f2;
    border: 1px solid #d4af37;
    overflow: hidden;
}

#knowledge-graph-svg {
    width: 100%;
    height: 100%;
}
.graph-toolbar {
    display: flex;
    gap: 1rem;
    margin: 1rem 0 1.25rem;
}

#graph-search {
    flex: 1;
    padding: .8rem 1rem;
    border: 1px solid #d4af37;
    font-size: 1rem;
    font-family: inherit;
}

#graph-reset {
    padding: .8rem 1.25rem;
    border: 0;
    background: #153f73;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}#graph-tooltip {
    position: absolute;
    display: none;

    background: white;
    border: 2px solid #d4af37;

    padding: 12px;
    max-width: 260px;

    box-shadow: 0 4px 12px rgba(0,0,0,.15);

    z-index: 9999;

    font-size: .9rem;
    line-height: 1.4;
    pointer-events: none;
}
#author-graph-container {
    width: 100%;
    height: 700px;
    border: 1px solid #d4af37;
    background: #faf8f2;
    overflow: hidden;
}

#author-graph-svg {
    width: 100%;
    height: 100%;
}
.graph-info-panel{
    margin-top:20px;
    padding:20px;
    border:1px solid #d4b26a;
    background:#faf8f2;
}

.graph-info-panel h3{
    margin-bottom:10px;
}
.collection-dashboard{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
    margin:25px 0;
}

.metric-card{
    background:#faf8f2;
    border:1px solid #d4af37;
    text-align:center;
    padding:20px;
}

.metric-card h3{
    font-size:2rem;
    margin:0;
    color:#002b4f;
}
.interactive-graph-section {
    max-width: 1400px;
    margin: 40px auto;
    padding: 24px;
    background: #faf8f2;
    border-top: 4px solid #c99a3b;
}

#tag-graph-container {
    width: 100%;
    min-height: 700px;
}

#tag-graph-svg {
    width: 100%;
    height: 700px;
    display: block;
}

.graph-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 16px;
}

.graph-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.knowledge-graph-container {
    width: 100%;
    height: 800px;
    border: 1px solid #d4b06a;
    margin: 20px 0;
}

#knowledge-graph-svg {
    width: 100%;
    height: 100%;
}

.related-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.intel-chip {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;

    background: #f7efe2;
    border: 1px solid #d4a64f;

    color: #8b5a00;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
}

.related-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.intel-chip {
    display: inline-flex;
    align-items: center;

    padding: 6px 14px;

    border: 1px solid #cfa44c;
    border-radius: 20px;

    background: #fffaf1;

    color: #8a6118;

    font-size: 0.85rem;
    font-weight: 700;

    letter-spacing: 0.02em;
}

.intel-chip {
    text-decoration: none;
    cursor: pointer;
}

.intel-chip:hover {
    background: #d4a64f;
    color: #fff;
}
.record-map-tag-chip {
    text-decoration: none;
    cursor: pointer;
}
.record-map-stat-pill {
    text-decoration: none;
    cursor: pointer;
}
html {
    scroll-behavior: smooth;
}

.record-map-stat-pill {
    cursor: pointer;
    text-decoration: none;
}
.record-map-controls[dir="rtl"]{
    direction: rtl;
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.graph-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 12px 0 18px;
    padding: 10px 14px;
    border: 1px solid #d7a83d;
    background: #fffaf0;
    font-size: 0.95rem;
}
.semantic-layout{
    display:flex;
    gap:24px;
    align-items:flex-start;
}

.graph-container{
    flex:3;
}

.info-pane{
    flex:1;
    min-width:280px;

    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;

    padding:18px;

    position:sticky;
    top:20px;
}
.graph-actions {
    margin: 12px 0;
}
.graph-search-input {
    min-width: 260px;
    padding: 8px 10px;
    border: 1px solid #d7a83d;
}
.graph-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 10px 0 16px;
    font-size: 0.95rem;
}
.graph-layout{
    display:flex;
    height:100vh;
}

.graph-canvas{
    flex:1;
}

.graph-sidebar{
    width:320px;
    overflow:auto;
}
.explorer-stats {
    display: flex;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid #d7a83d;
    background: #fffaf0;
    flex-wrap: wrap;
}

.stat-card {
    min-width: 110px;
    padding: 8px 12px;
    border: 1px solid #d7a83d;
    background: #fff;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6b5b35;
}

.stat-card strong {
    font-size: 1.25rem;
    color: #003b70;
}
.explorer-stats {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(110px, 1fr));
    gap: 10px;
    padding: 10px 14px;
    background: #fffaf0;
    border-top: 1px solid #d7a83d;
    border-bottom: 1px solid #d7a83d;
}

.explorer-stats .stat-card {
    padding: 8px 12px;
    border: 1px solid #d7a83d;
    background: #ffffff;
    text-align: left;
}

.explorer-stats .stat-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #7a632b;
    letter-spacing: 0.04em;
}

.explorer-stats .stat-card strong {
    display: block;
    margin-top: 4px;
    font-size: 1.25rem;
    color: #003b70;
}
.panel-groups {
    margin-top: 16px;
}

.panel-group {
    margin-bottom: 16px;
    border-top: 1px solid #d7a83d;
    padding-top: 10px;
}

.panel-group h4 {
    margin: 0 0 8px;
    color: #003b70;
    font-size: 0.95rem;
}

.panel-group ul {
    margin: 0;
    padding-left: 18px;
}

.panel-group li {
    margin-bottom: 6px;
    line-height: 1.3;
}

.panel-group a {
    color: #003b70;
    text-decoration: none;
}

.panel-group a:hover {
    text-decoration: underline;
}


/* Shared site header: refined line-icon system */
.site-header .header-banner {
  max-width: 1400px;
  margin: 0 auto;
}

.site-header-mark {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  color: var(--accent-gold);
  text-decoration: none;
}

.site-header-mark svg,
.subtitle-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header-mark svg {
  width: 30px;
  height: 30px;
}

.site-header-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.site-header .artistic-title {
  margin: 0;
}

.site-header .artistic-subtitle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: .5rem 0 0;
}

.site-header .subtitle-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--accent-gold);
}

.site-header + .main-nav-bar {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .site-header {
    padding: 28px 22px;
  }

  .site-header .header-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-header-mark {
    width: 44px;
    height: 44px;
  }

  .site-header .header-utility-nav {
    width: 100%;
  }
}

/* File Metadata page: contain and wrap long filenames safely. */
.file-metadata-main-card {
  min-width: 0;
}

.file-metadata-page .metadata-grid-v2 > div {
  min-width: 0;
  overflow: hidden;
}

.file-metadata-page .metadata-grid-v2 strong {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.file-metadata-page .file-metadata-main-card h2 {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
