/* Zasqua - ABC/Neogranadina Style */

/* ==================== */
/* CSS Variables        */
/* ==================== */

:root {
  /* Core colors - from ABC theme */
  --bg-color: #ffffff;
  --bg-gray: #f2f2f2;
  --text-color: #757575;
  --text-dark: #000000;
  --text-muted: #858585;

  /* Accent colors */
  --accent-primary: rgba(41,98,255,0.8);    /* Teal - buttons, primary actions */
  --accent-hover: #f18e00;      /* Orange - hover state */
  --accent-link: #F2784B;       /* Orange - link hover */
  --accent-overlay: rgba(41,98,255,0.8);  /* Blue overlay on hover */

  /* Footer */
  --footer-bg: #003660;
  --footer-text: #ffffff;

  /* Typography */
  --font-body: 'Lato', sans-serif;
  --font-heading: 'Lato', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-logo: 'IM Fell DW Pica', serif;

  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 70px;
}

/* ==================== */
/* Reset & Base         */
/* ==================== */

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

html {
  font-size: 16px;
  line-height: 1.6;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-color);
  background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 0;
  line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

a {
  color: var(--text-dark);
  text-decoration: none;
}

a:hover {
  color: var(--accent-link);
  text-decoration: underline;
}

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

/* ==================== */
/* Layout               */
/* ==================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
}

.page-content {
  min-height: calc(100vh - var(--header-height) - 260px);
}

/* ==================== */
/* Header - ABC Style   */
/* ==================== */

.site-header {
  background-color: var(--bg-color);
  border-bottom: 1px solid #dedede;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo img {
  max-height: 2.25rem;
  width: auto;
}

.site-logo-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 0.9;
}

.site-logo-text strong {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
}

.site-logo:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.site-nav a {
  font-family: var(--font-heading);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dark);
  padding: var(--spacing-sm) 0;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text-muted);
  text-decoration: none;
}

/* Search in header */
.header-search {
  display: flex;
  border: 1px solid #dedede;
  border-radius: 50px;
  overflow: hidden;
  background: var(--bg-color);
}

.header-search input {
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  width: 200px;
  outline: none;
  border-radius: 50px 0 0 50px;
}

.header-search button {
  background: transparent;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--text-dark);
  border-radius: 0 50px 50px 0;
  display: flex;
  align-items: center;
}

.header-search button .material-symbols-outlined {
  font-size: 20px;
}

/* Hamburger toggle - hidden on desktop */
.hamburger-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-dark);
  line-height: 1;
}

.hamburger-toggle .material-symbols-outlined {
  font-size: 28px;
}

@media (max-width: 768px) {
  .hamburger-toggle {
    display: flex;
    align-items: center;
  }

  .site-header .container {
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-height);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding-top: 0.75rem;
    border-top: 1px solid #dedede;
    margin-top: 0.75rem;
  }

  .site-nav.nav-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
  }

  .site-nav .header-search {
    margin-top: 0.5rem;
    width: 100%;
  }

  .site-nav .header-search input {
    width: 100%;
    flex: 1;
  }
}

/* ==================== */
/* Hero - Parallax      */
/* ==================== */

.hero {
  position: relative;
  background-image: url('/img/hero.jpg');
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .hero {
    background-attachment: scroll;
  }
}

.hero-content {
  color: #fff;
  padding: var(--spacing-xxl);
  text-align: center;
  max-width: 600px;
  margin: 0 40px;
}

.hero-logo {
  max-height: 200px;
  width: auto;
  filter: invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  margin-bottom: 0;
}

.hero h1 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 0 30px rgba(0,0,0,0.4);
}

.hero h1 .site-name {
  display: block;
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 4rem;
  padding-top: 0;
  padding-bottom: var(--spacing-sm);
  text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 0 40px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* Hero search form */
.hero .search-form {
  display: flex;
  width: 300px;
  max-width: 100%;
  background: rgba(255,255,255,0.95);
  margin: 0 auto;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero .search-input {
  flex: 1;
  border: none;
  padding: 14px 8px 14px 20px;
  font-size: 16px;
  outline: none;
  background: transparent;
  border-radius: 50px 0 0 50px;
}

.hero .search-button {
  background: transparent;
  border: none;
  padding: 14px 16px 14px 8px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .search-button:hover {
  color: var(--text-dark);
}

.hero .search-button .material-symbols-outlined {
  font-size: 24px;
}

/* ==================== */
/* Home Sections        */
/* ==================== */

.section {
  padding: var(--spacing-xxl) 0;
}

.section-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 400;
  margin-bottom: var(--spacing-xl);
}

.section-intro {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto var(--spacing-md);
  color: var(--text-dark);
}

.section-intro strong {
  font-weight: 500;
}

.intro-section {
  padding-bottom: var(--spacing-md);
}

/* Repository Grid - Full-width Masonry Style */
.repo-section {
  padding: var(--spacing-xxl) 15px;
}

.repo-section .section-title {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.repo-grid {
  column-count: 3;
  column-gap: 15px;
  padding: 0;
}

.repo-item {
  position: relative;
  margin-bottom: 15px;
  break-inside: avoid;
}

@media (max-width: 1024px) {
  .repo-grid {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .repo-grid {
    column-count: 1;
  }
}

.repo-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.repo-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.repo-link:hover .repo-image {
  transform: scale(1.05);
}

/* Caption overlay at bottom (visible by default) */
.repo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  transition: opacity 0.2s ease-in-out;
}

.repo-caption-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.repo-caption-category {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Hover overlay (hidden by default) */
.repo-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--accent-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
}

.repo-link:hover .repo-caption {
  opacity: 0;
}

.repo-link:hover .repo-overlay {
  opacity: 1;
  visibility: visible;
}

.repo-link:hover {
  text-decoration: none;
}

.repo-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: left;
  padding: 20px;
}

.repo-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.repo-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin-top: 8px;
}

/* ==================== */
/* Footer - ABC Style   */
/* ==================== */

.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 50px 0;
  margin-top: 50px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-size: 14px;
  line-height: 1.6;
  max-width: 400px;
}

.footer-left a {
  color: var(--footer-text);
  font-weight: 600;
}

.footer-left a:hover {
  color: var(--accent-link);
}

.footer-copyright {
  margin-top: var(--spacing-md);
  font-size: 13px;
  opacity: 0.8;
}

.footer-right {
  text-align: right;
}

.footer-seal {
  max-width: 120px;
  height: auto;
  opacity: 0.6;
  filter: invert(1);
}

@media (max-width: 768px) {
  .site-footer .container {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-xl);
  }

  .footer-right {
    text-align: center;
  }
}

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

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

/* ==================== */
/* Breadcrumb           */
/* ==================== */

.breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  padding: var(--spacing-md) 0;
  background: var(--bg-gray);
}

.breadcrumb .container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-link);
}

.breadcrumb-separator {
  margin: 0 4px;
}

/* ==================== */
/* Cards                */
/* ==================== */

.card {
  background-color: var(--bg-color);
  border: 0;
  box-shadow: 0 2px 14px 0 rgba(0,0,0,.1);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 2px 14px 0 rgba(0,0,0,.2);
}

/* ==================== */
/* Detail Page          */
/* ==================== */

.detail-header {
  padding: var(--spacing-xl) 0;
  background: var(--bg-gray);
}

.detail-title {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-sm);
}

.detail-meta {
  color: var(--text-muted);
  font-size: 14px;
}

.detail-content {
  padding: var(--spacing-xl) 0;
}

.detail-section {
  margin-bottom: var(--spacing-xl);
}

.detail-section h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid #dedede;
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.detail-field {
  margin-bottom: var(--spacing-md);
}

.detail-label {
  font-weight: 600;
  color: var(--text-dark);
  display: block;
  margin-bottom: 4px;
}

.detail-value {
  color: var(--text-color);
}

ul.detail-list {
  margin: 0;
  padding-left: 1.2em;
}

/* ==================== */
/* Repository Header    */
/* ==================== */

.repo-header {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
}

.repo-header-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
}

.repo-header-overlay .container {
  padding-bottom: var(--spacing-xl);
}

.repo-header-title {
  color: #fff;
  font-size: 2.5rem;
  margin: 0 0 var(--spacing-sm);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.repo-header-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 0 var(--spacing-md);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.repo-header-stats {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ==================== */
/* Description List     */
/* ==================== */

.description-list {
  border: 1px solid #dedede;
  border-radius: 4px;
  overflow: hidden;
}

.description-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid #f0f0f0;
  color: var(--text-dark);
  transition: background-color 0.15s ease;
}

.description-item:last-child {
  border-bottom: none;
}

.description-item:hover {
  background-color: var(--bg-gray);
  text-decoration: none;
}

.description-item-content {
  flex: 1;
}

.description-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text-dark);
}

.description-item-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  gap: var(--spacing-md);
}

.description-item-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-left: var(--spacing-md);
}

/* ==================== */
/* Search Results       */
/* ==================== */

.search-header {
  background: var(--bg-gray);
  padding: var(--spacing-lg) 0;
}

.search-form-large {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 50px;
  overflow: hidden;
}

.search-form-large input {
  flex: 1;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  outline: none;
  border-radius: 50px 0 0 50px;
}

.search-form-large button {
  background: transparent;
  border: none;
  border-left: 1px solid #dedede;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-radius: 0 50px 50px 0;
}

.search-empty-query {
  padding: 3rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.search-landing-logo {
  width: 120px;
  height: auto;
  margin-bottom: 1.5rem;
  opacity: 0.35;
  filter: grayscale(100%);
}

.search-landing-hints {
  max-width: 420px;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.search-landing-hints p {
  margin: 0 0 0.75rem;
}

.search-landing-hints em {
  font-style: normal;
  font-weight: 700;
  color: var(--text-color);
}

.results-info {
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid #dedede;
  margin-bottom: var(--spacing-lg);
}

.result-item {
  padding: var(--spacing-md);
  border-bottom: 1px solid #f0f0f0;
}

.result-item:hover {
  background: var(--bg-gray);
}

.result-title {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.result-title a {
  color: var(--text-dark);
}

.result-title a:hover {
  color: var(--accent-link);
}

.result-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.result-snippet {
  font-size: 14px;
  color: var(--text-color);
  margin-top: 8px;
}

.result-snippet em,
.result-snippet mark,
.result-title mark {
  background: #fff3cd;
  font-style: normal;
  padding: 0 2px;
}

/* ==================== */
/* Search Page          */
/* ==================== */

/* Layout */
.search-layout {
  display: flex;
  gap: 2rem;
  padding: var(--spacing-xl) 0;
}

.search-results {
  flex: 1;
  min-width: 0;
}

.search-sidebar {
  width: 260px;
  flex-shrink: 0;
}

/* Results info bar */
.search-results-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  border-bottom: none;
  margin-bottom: var(--spacing-md);
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sort-label {
  margin-right: 0.25rem;
}

.sort-btn {
  background: none;
  border: none;
  padding: 2px 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.sort-btn:hover {
  color: var(--text-dark);
}

.sort-btn.active {
  color: var(--text-dark);
  font-weight: 600;
}

.sort-arrow {
  font-size: 0.75rem;
  margin-left: 1px;
}

.sort-divider {
  color: #ccc;
  margin: 0 2px;
}

/* Result card additions */
.result-path {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.result-repo {
  font-size: 13px;
  color: var(--text-muted);
}

/* Refine search (results column) */
.refine-search {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 50px;
  overflow: visible;
  background: #f8f8f8;
  margin-bottom: var(--spacing-md);
  position: relative;
}

.refine-search input {
  flex: 1;
  border: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  background: transparent;
  outline: none;
  min-width: 0;
}

.refine-add-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
}

.refine-add-btn:hover {
  color: var(--text-dark);
}

.refine-search:focus-within {
  border-color: #2c3e50;
  background: #fff;
}

/* Operator selector */
.refine-op {
  position: relative;
  flex-shrink: 0;
}

.refine-op-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 0.5rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  font-weight: 600;
  white-space: nowrap;
}

.refine-op-caret {
  font-size: 0.65rem;
  margin-left: 2px;
  color: var(--text-muted);
}

.refine-op-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0.5rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 10;
  min-width: 60px;
  overflow: hidden;
}

.refine-op-option {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-body);
  cursor: pointer;
  text-align: left;
}

.refine-op-option:hover {
  background: #f0f0f0;
}

.refine-divider {
  width: 1px;
  height: 1.2rem;
  background: #ddd;
  flex-shrink: 0;
}

/* Sidebar */

.search-sidebar-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
}

/* Facet groups */
.facet-group {
  margin-bottom: var(--spacing-md);
}

.facet-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: var(--spacing-sm) 0;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
}

.facet-group-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #555;
}

.facet-group-indicator {
  color: #999;
  font-size: 1.1rem;
  font-weight: 400;
}

.facet-group-content {
  padding-top: var(--spacing-sm);
}

.facet-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 3px 0;
  font-size: 0.9rem;
  color: #555;
  cursor: pointer;
}

.facet-option:hover {
  color: var(--text-dark);
}

.facet-option input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #2c3e50;
  flex-shrink: 0;
}

.facet-label-text {
  flex: 1;
  min-width: 0;
}

.facet-count {
  color: #999;
  white-space: nowrap;
}

/* Date tree (century → decade → year) */
.date-tree {
  list-style: none;
  padding: 0;
  margin: 0;
}

.date-tree li {
  margin: 0;
}

.date-tree-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
  font-size: 0.92rem;
  color: #333;
}

.date-tree-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.date-tree-toggle:hover {
  color: #333;
}

.date-tree-spacer {
  width: 18px;
  flex-shrink: 0;
}

.date-tree-checkbox {
  margin: 0;
  flex-shrink: 0;
}

.date-tree-label {
  flex: 1;
}

.date-tree-count {
  color: #888;
  font-size: 0.85rem;
}

.date-tree-children {
  list-style: none;
  padding-left: 22px;
  margin: 0;
}

.date-tree-children.collapsed {
  display: none;
}

/* Decade level */
.date-tree-children .date-tree-row {
  font-size: 0.88rem;
}

/* Year level */
.date-tree-children .date-tree-children .date-tree-row {
  font-size: 0.85rem;
  color: #555;
}

/* Active filter pills */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: #2c3e50;
  color: #fff;
  border-radius: 50px;
  font-size: 0.75rem;
}

.filter-pill-remove {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.8;
}

.filter-pill-remove:hover {
  opacity: 1;
}

.clear-filters-btn {
  background: #e8e8e8;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-family: var(--font-body);
  color: #333;
  cursor: pointer;
}

.clear-filters-btn:hover {
  background: #d8d8d8;
}

/* Pagination */
.search-pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: var(--spacing-xl) 0;
}

.pagination-link {
  padding: 8px 12px;
  border: 1px solid #dedede;
  border-radius: 50px;
  font-size: 14px;
  color: var(--text-dark);
  text-decoration: none;
  cursor: pointer;
}

.pagination-link:hover {
  background: var(--bg-gray);
  text-decoration: none;
}

.pagination-link.active {
  background: #2c3e50;
  color: #fff;
  border-color: #2c3e50;
}

.pagination-link.disabled {
  color: var(--text-muted);
  cursor: default;
}

.pagination-link.disabled:hover {
  background: transparent;
}

.pagination-ellipsis {
  padding: 8px 4px;
  color: var(--text-muted);
}

/* State displays */
.search-loading {
  text-align: center;
  padding: var(--spacing-xxl) 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Loading overlay — sits on top of results, keeps sidebar visible */
.search-results.results-loading {
  position: relative;
  pointer-events: none;
}
.search-results.results-loading > *:not(.search-loading-overlay) {
  opacity: 0.3;
  transition: opacity 0.15s ease;
}
.search-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

/* Spinner */
.search-spinner {
  width: 84px;
  height: 84px;
  border: 5px solid #e0dcd4;
  border-top-color: #2c3e50;
  border-radius: 50%;
  animation: spinner-rotate 0.7s linear infinite;
}

/* First-load centered spinner */
.search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

@keyframes spinner-rotate {
  to { transform: rotate(360deg); }
}

/* Browse prompt — shown instead of results for large filter-only queries */
.search-browse-prompt {
  padding: 3rem 0 2rem;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}

.browse-prompt-count {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin: 0 0 0.25rem;
}

.browse-prompt-count strong {
  font-weight: 700;
}

.browse-prompt-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.browse-prompt-btn {
  background: #e8e8e8;
  border: none;
  border-radius: 50px;
  padding: 0.45rem 1.25rem;
  font-size: 0.8rem;
  font-family: var(--font-body);
  color: #333;
  cursor: pointer;
  margin-top: 0.75rem;
}

.browse-prompt-btn:hover {
  background: #d8d8d8;
}

.browse-prompt-warning {
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 6px;
}

.search-prompt {
  padding: var(--spacing-xxl) 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-no-results {
  text-align: center;
  padding: var(--spacing-xxl) 0;
  color: var(--text-muted);
}

.search-no-results p {
  margin: 0 0 var(--spacing-sm);
}

.no-results-suggestion {
  font-size: 0.9rem;
}

.search-error {
  text-align: center;
  padding: var(--spacing-xxl) 0;
  color: var(--text-muted);
}

.search-error p {
  margin: 0 0 var(--spacing-sm);
}

/* Mobile filter toggle */
.mobile-filter-toggle {
  display: none;
  border-radius: 50px;
  background: #e8e8e8;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: #333;
  cursor: pointer;
  margin-bottom: var(--spacing-md);
}

.toggle-chevron {
  font-size: 0.7rem;
  margin-left: 0.25rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

.toggle-open .toggle-chevron {
  transform: rotate(180deg);
}

/* Filter panel header/footer — hidden by default, shown in mobile open state */
.filter-panel-header,
.filter-panel-bottom-close {
  display: none;
}

/* Responsive: < 768px */
@media (max-width: 768px) {
  .search-layout {
    flex-direction: column;
  }

  .search-sidebar {
    width: 100%;
    display: none;
    order: -1;
  }

  .search-sidebar.sidebar-open {
    display: block;
    background: #e8e8e8;
    border-radius: 24px;
    padding: 0 1.25rem 1.25rem;
  }

  .search-sidebar.sidebar-open .search-sidebar-heading {
    display: none;
  }

  .search-sidebar.sidebar-open .filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0 0.75rem;
  }

  .filter-panel-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
  }

  .filter-panel-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--text-dark);
    line-height: 1;
  }

  .filter-panel-close .material-symbols-outlined {
    font-size: 24px;
  }

  .search-sidebar.sidebar-open .filter-panel-bottom-close {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0 0.25rem;
  }

  .filter-panel-bottom-close button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .filter-panel-bottom-close .material-symbols-outlined {
    font-size: 18px;
  }

  /* Hide Filtros button when panel is open */
  .mobile-filter-toggle.toggle-open {
    display: none;
  }

  .mobile-filter-toggle {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 0.875rem 1rem;
  }

  /* Larger refine search for touch */
  .refine-search {
    min-height: 48px;
  }

  .refine-search input {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }

  .refine-op-btn {
    font-size: 0.95rem;
    padding: 0.75rem 0.75rem;
    min-width: 44px;
    min-height: 44px;
  }

  .refine-add-btn {
    font-size: 1.4rem;
    padding: 0.75rem 1rem;
    min-width: 44px;
    min-height: 44px;
  }

  .refine-divider {
    height: 1.6rem;
  }

  .search-results-info {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
}

/* ==================== */
/* Placeholder Image    */
/* ==================== */

.placeholder-img {
  background-color: #fff;
  border: 2px solid #ededed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.placeholder-img img {
  width: 65%;
  height: auto;
  opacity: 0.3;
}

/* ==================== */
/* Utilities            */
/* ==================== */

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.bg-gray { background-color: var(--bg-gray); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* ==================== */
/* Miller Columns Tree  */
/* ==================== */

.miller-columns {
  border: 1px solid #dedede;
  background: #fff;
  margin: var(--spacing-lg) 0;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
}

.miller-columns-wrapper {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.miller-column {
  flex: 0 0 280px;
  min-width: 280px;
  max-width: 350px;
  border-right: 1px solid #dedede;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 600px;
}

.miller-column:last-child {
  border-right: none;
}

.miller-column-header {
  padding: 10px 15px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg-gray);
  border-bottom: 1px solid #dedede;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.miller-column-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.miller-item {
  display: block;
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.15s ease;
}

.miller-item-main {
  display: flex;
  align-items: center;
}

.miller-item:hover {
  background: #f8f8f8;
}

.miller-item.selected {
  background: var(--accent-primary);
  color: #fff;
}

/* Lighter blue for ancestor selections (items selected in previous columns) */
.miller-item.selected-ancestor {
  background: rgba(41, 98, 255, 0.5);
  color: #fff;
}

.miller-item.selected .miller-item-count {
  color: rgba(255,255,255,0.8);
}

.miller-item.selected .miller-item-arrow {
  color: #fff;
}

.miller-item.loading {
  opacity: 0.7;
}

.miller-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.miller-item-title {
  font-size: 14px;
  /* Allow 2-line wrap with ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.miller-item-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
  margin-top: 2px;
}

.miller-item.selected .miller-item-subtitle {
  color: rgba(255,255,255,0.7);
}

.miller-item-count {
  font-size: 12px;
  color: var(--text-muted);
}

.miller-item-arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: #ccc;
  margin-left: 10px;
}

/* Expandable metadata row */
.miller-item-metadata {
  display: none;
  padding: 0 0 5px;
  margin-top: 0;
  font-size: 13px;
}

.miller-item.selected .miller-item-metadata.expanded {
  display: block;
}

.miller-item-metadata p {
  margin: 0 0 6px;
  line-height: 1.4;
}

.miller-item-metadata .metadata-refcode {
  color: var(--text-muted);
  font-size: 11px;
  font-family: monospace;
  margin-bottom: 0;
}

.miller-item-metadata .metadata-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 6px 0;
}

.miller-item.selected .miller-item-metadata .metadata-divider {
  border-top-color: rgba(255,255,255,0.3);
}

.miller-item-metadata .metadata-count {
  color: var(--text-muted);
  font-size: 12px;
}

.miller-item-metadata .metadata-date {
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
}

.miller-item-metadata .metadata-scope {
  color: var(--text-color);
}

.miller-item-metadata .metadata-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--accent-primary);
}

.miller-item-metadata .metadata-link:hover {
  color: var(--accent-link);
}


.miller-item.selected .miller-item-metadata .metadata-scope,
.miller-item.selected .miller-item-metadata .metadata-count,
.miller-item.selected .miller-item-metadata .metadata-refcode,
.miller-item.selected .miller-item-metadata .metadata-date {
  color: rgba(255,255,255,0.85);
}

.miller-item.selected .miller-item-metadata .metadata-link {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .miller-column {
    flex: 0 0 220px;
    min-width: 220px;
  }
}

/* Tree header with search link */
.tree-header {
  display: flex;
  justify-content: flex-end;
  padding: var(--spacing-sm) 0;
  margin-bottom: var(--spacing-sm);
}

.search-collection-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8e8e8;
  color: #333;
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  text-decoration: none;
}

.search-collection-link:hover {
  background: #d8d8d8;
  color: #333;
  text-decoration: none;
}

.search-collection-link .material-symbols-outlined {
  font-size: 18px;
}

/* Column header with filter */
.miller-column-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.column-filter {
  display: none;
  width: 100%;
  margin-top: 6px;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 12px;
  outline: none;
}

.column-filter:focus {
  border-color: var(--accent-primary);
}

/* Show filter only in the last column */
.miller-column:last-child .column-filter {
  display: block;
}

/* ==================== */
/* Description Page     */
/* ==================== */

.desc-layout {
  display: flex;
  gap: 2rem;
}

.desc-metadata {
  flex: 1;
  min-width: 0;
  max-width: 728px;
}

.desc-aside {
  width: 440px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .desc-layout {
    flex-direction: column;
  }

  .desc-metadata {
    max-width: none;
  }

  .desc-aside {
    width: 100%;
  }
}

/* Level Badge */
.level-badge {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f2f2f2;
  border: 1px solid #dedede;
  border-radius: 3px;
  padding: 2px 8px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Notice Box (not digitised / external link) */
.desc-notice {
  background: #fafafa;
  border: 1px solid #dedede;
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
}

.desc-notice-icon {
  font-size: 48px;
  color: var(--text-muted);
  display: block;
  margin-bottom: var(--spacing-md);
}

.desc-notice-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
}

.desc-notice-text {
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.6;
  margin: 0 0 var(--spacing-md);
}

.desc-notice-repo {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Reproduction conditions sub-sections */
.repro-subsection {
  margin-bottom: 10px;
}

.repro-subsection:last-child {
  margin-bottom: 0;
}

.repro-subheading {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

/* Reutilizacion section */
.reuse-blurb {
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.6;
  margin: 0 0 var(--spacing-md);
}

.reuse-blurb a {
  color: var(--text-dark);
  text-decoration: underline;
  text-decoration-color: #ccc;
  text-underline-offset: 2px;
}

.reuse-blurb a:hover {
  color: var(--accent-link);
}

.reuse-manifest-label {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.reuse-manifest-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reuse-manifest-url {
  flex: 1;
  font-size: 13px;
  color: var(--text-color);
  background: var(--bg-gray);
  padding: 8px 12px;
  border-radius: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: monospace;
}

.reuse-copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border: 1px solid #dedede;
  border-radius: 50px;
  background: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-color);
  transition: background-color 0.15s ease;
}

.reuse-copy-btn:hover {
  background-color: #f5f5f5;
}

.reuse-copy-btn .material-symbols-outlined {
  font-size: 16px;
}

/* Repository link in metadata */
.detail-field a {
  color: var(--text-dark);
  text-decoration: underline;
  text-decoration-color: #ccc;
  text-underline-offset: 2px;
}

.detail-field a:hover {
  color: var(--accent-link);
}

/* IIIF Viewer */
.desc-viewer {
  height: 540px;
  border-radius: 4px;
  overflow: hidden;
}

/* TIFY header overrides */
.desc-viewer .tify-header {
  background: #fff !important;
  border-bottom: 1px solid #dedede !important;
  box-shadow: none !important;
  padding: 0.35rem 0.5rem !important;
}

.desc-viewer .tify-header-column:first-child {
  min-width: auto;
  overflow: visible;
  flex-shrink: 0;
}

.desc-viewer .tify-header-title { display: none !important; }
.desc-viewer .tify-header-button[title="Toggle double-page"] { display: none !important; }
.desc-viewer .tify-header-button-group.-toggle { display: none !important; }
.desc-viewer .tify-header-popup { display: none !important; }

/* Always show pagination arrows */
.desc-viewer .tify-header-button-group.-pagination {
  display: flex !important;
  gap: 0.25rem !important;
}

/* Fix page-select group double border */
.desc-viewer .tify-header-button-group.-page-select {
  box-shadow: none !important;
  border-radius: 0 !important;
  border: none !important;
  background: none !important;
}

/* Page-select button */
.desc-viewer .tify-page-select-button {
  border-radius: 50px !important;
  border: 1px solid #ddd !important;
  background: #f8f8f8 !important;
  color: #757575 !important;
  font-family: Lato, sans-serif !important;
  font-size: 0.8rem !important;
  height: 36px !important;
  min-height: 36px !important;
  line-height: 36px !important;
  padding: 0 1.8rem 0 0.6rem !important;
  position: relative !important;
  cursor: pointer !important;
}

.desc-viewer .tify-page-select-button::after {
  content: "\25BE";
  position: absolute;
  right: 0.5rem;
  font-size: 0.7rem;
}

/* Navigation arrow buttons */
.desc-viewer .tify-header-button-group.-pagination .tify-header-button {
  border-radius: 50px !important;
  border: 1px solid #ddd !important;
  background: #f8f8f8 !important;
  height: 36px !important;
  min-height: 36px !important;
  width: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.desc-viewer .tify-header-button-group.-pagination .tify-header-button:hover {
  background: #fff !important;
  border-color: #bbb !important;
}

.desc-viewer .tify-header-button-group.-pagination .tify-header-button svg {
  width: 20px !important;
  height: 20px !important;
}

/* Scan background */
.desc-viewer .tify-scan { background: #000 !important; }
.desc-viewer .openseadragon-container { background: #000 !important; }

/* Injected pill buttons */
.viewer-pill {
  border-radius: 50px;
  border: 1px solid #ddd;
  background: #f8f8f8;
  color: #757575;
  font-family: Lato, sans-serif;
  font-size: 0.8rem;
  height: 36px;
  min-height: 36px;
  line-height: 36px;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.viewer-pill:hover {
  background: #fff;
  border-color: #bbb;
}

.viewer-pill .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

/* Aside state: show Expandir, hide expanded-only buttons */
.viewer-left-btns .viewer-pill-expand { display: inline-flex; }
.viewer-left-btns .viewer-pill-contraer { display: none; }
.viewer-left-btns .viewer-pill-fullscreen { display: none; }
.viewer-right-btns { display: none; }

/* Expanded state */
.desc-layout.viewer-expanded {
  flex-direction: column !important;
}

.desc-layout.viewer-expanded .desc-aside {
  width: 100% !important;
  order: -1;
}

.desc-layout.viewer-expanded .desc-viewer {
  height: 75vh;
}

.desc-layout.viewer-expanded .viewer-left-btns .viewer-pill-expand { display: none; }
.desc-layout.viewer-expanded .viewer-left-btns .viewer-pill-contraer { display: inline-flex; }
.desc-layout.viewer-expanded .viewer-left-btns .viewer-pill-fullscreen { display: inline-flex; }
.desc-layout.viewer-expanded .viewer-right-btns { display: flex; }

/* Mobile: skip expanded state, go straight to fullscreen */
@media (max-width: 768px) {
  .viewer-left-btns .viewer-pill-expand { display: none; }
  .viewer-left-btns .viewer-pill-fullscreen { display: inline-flex; }
}

/* Fullscreen state: hide Contraer (does nothing in fullscreen) */
.desc-viewer:fullscreen .viewer-pill-contraer { display: none !important; }
.desc-viewer:-webkit-full-screen .viewer-pill-contraer { display: none !important; }

/* ==================== */
/* Children Tree        */
/* ==================== */

.children-tree-item {
  padding: 0;
}

.children-tree-bordered {
  border-bottom: 1px solid #f0f0f0;
}

.children-tree-row {
  display: flex;
  align-items: flex-start;
  padding: 0.75rem 0;
  gap: 0.5rem;
}

.children-tree-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.children-tree-chevron {
  font-size: 24px;
  transition: transform 0.15s ease;
}

.children-tree-toggle[aria-expanded="true"] .children-tree-chevron {
  transform: rotate(90deg);
}

.children-tree-spacer {
  width: 24px;
  flex-shrink: 0;
}

.children-tree-content {
  flex: 1;
  min-width: 0;
}

.children-tree-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.children-tree-title {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.children-tree-title:hover {
  color: var(--accent-link);
}

.children-tree-title-nested {
  font-size: 0.9rem;
}

.children-tree-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.children-tree-refcode {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Nested children (grandchildren) — hidden by default, shown via JS toggle */
.children-tree-nested {
  display: none;
  padding-left: 2rem;
  border-left: 2px solid #f0f0f0;
  margin-left: 11px;
}

.children-tree-item.expanded > .children-tree-nested {
  display: block;
}

.children-tree-nested-item {
  padding: 0.5rem 0;
}

.children-tree-nested-bordered {
  border-bottom: 1px solid #f5f5f5;
}

/* "Ver los N documentos" link */
.children-tree-more {
  padding: 0.75rem 0;
  padding-left: 2rem;
  border-left: 2px solid #f0f0f0;
  margin-left: 11px;
}

.children-tree-more-nested {
  padding: 0.75rem 0;
}

.children-tree-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-primary);
}

.children-tree-more-link:hover {
  color: var(--accent-link);
}

.children-tree-more-link .material-symbols-outlined {
  font-size: 18px;
}
