/* Gashan Reports library — compact book shelf */
.entry-content .shell,
.shell {
  --rp-ink: #16333a;
  --rp-muted: #64748b;
  --rp-line: #e4ebea;
  --rp-paper: #fffdf8;
  --rp-shelf: #efeae0;
  --rp-accent: #c9821f;
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  min-height: 70vh !important;
  max-width: 1180px !important;
  width: min(1180px, calc(100% - 48px)) !important;
  margin: 8px auto 28px !important;
  border-radius: 24px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: #f4f6f5 !important;
  box-shadow: 0 18px 48px rgba(16, 36, 41, 0.08) !important;
}

.entry-content .shell .sidebar,
.shell .sidebar {
  background: linear-gradient(180deg, #1a3d42 0%, #102429 100%) !important;
  padding: 28px 16px !important;
  position: sticky !important;
  top: 0 !important;
  height: auto !important;
  min-height: 100% !important;
  overflow-y: auto !important;
}

.entry-content .shell .sidebar-label,
.shell .sidebar-label {
  color: rgba(255, 255, 255, 0.42) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  padding: 0 10px 12px !important;
}

.entry-content .shell .detail,
.shell .detail {
  padding: 28px 28px 36px !important;
  background: linear-gradient(165deg, #f7f8f7 0%, #f3efe6 100%) !important;
}

.entry-content .shell .panel-header,
.shell .panel-header {
  margin-bottom: 20px !important;
}

.entry-content .shell .panel-header h2,
.shell .panel-header h2 {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: var(--rp-ink) !important;
  -webkit-text-fill-color: var(--rp-ink) !important;
  text-align: left !important;
}

.entry-content .shell .panel-header p,
.shell .panel-header p {
  margin-top: 6px !important;
  color: var(--rp-muted) !important;
  font-size: 14px !important;
  max-width: 56ch !important;
}

.entry-content .shell .ar-grid,
.entry-content .shell .added-reports,
.shell .ar-grid,
.shell .added-reports,
.shell .grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.entry-content .shell .ar-card,
.shell .ar-card {
  background: var(--rp-paper) !important;
  border: 1px solid var(--rp-line) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  box-shadow: 0 2px 8px rgba(16, 36, 41, 0.05) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.entry-content .shell .ar-card:hover,
.shell .ar-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 28px -14px rgba(16, 36, 41, 0.28) !important;
}

/* Shorter book face */
.entry-content .shell .ar-cover,
.shell .ar-cover,
.entry-content .shell .cover-face {
  display: block !important;
  aspect-ratio: auto !important;
  height: 132px !important;
  max-height: 132px !important;
  min-height: 132px !important;
  padding: 8px 10px !important;
  overflow: hidden !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 40%),
    var(--rp-shelf) !important;
  border-bottom: 1px solid rgba(22, 51, 58, 0.06) !important;
}

.entry-content .shell .ar-cover img,
.shell .ar-cover img,
.entry-content .shell .cover-face img {
  width: 100% !important;
  height: 100% !important;
  max-height: 116px !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  margin: 0 auto !important;
  filter: drop-shadow(0 6px 12px rgba(16, 36, 41, 0.16)) !important;
}

.entry-content .shell .ar-body,
.shell .ar-body {
  padding: 12px 12px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  flex: 1 !important;
}

.entry-content .shell .ar-body h3,
.shell .ar-body h3,
.entry-content .shell .ar-card h3 {
  font-size: 13.5px !important;
  line-height: 1.35 !important;
  color: var(--rp-ink) !important;
  -webkit-text-fill-color: var(--rp-ink) !important;
  font-weight: 750 !important;
  text-align: left !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.7em !important;
}

.entry-content .shell .ar-meta,
.shell .ar-meta {
  margin: 0 !important;
  color: var(--rp-muted) !important;
  font-size: 11px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0 !important;
  align-items: center !important;
}

.entry-content .shell .ar-meta span,
.shell .ar-meta span {
  display: inline-flex !important;
  align-items: center !important;
}

.entry-content .shell .ar-meta span + span::before,
.shell .ar-meta span + span::before {
  content: "·" !important;
  margin: 0 6px !important;
  opacity: 0.55 !important;
}

.entry-content .shell .ar-actions,
.shell .ar-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  margin-top: auto !important;
}

.entry-content .shell .ar-read,
.entry-content .shell .ar-down,
.shell .ar-read,
.shell .ar-down {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 1 !important;
  min-height: 34px !important;
  border-radius: 999px !important;
  padding: 6px 10px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.entry-content .shell .ar-read,
.shell .ar-read {
  background: linear-gradient(135deg, #16333a 0%, #c9821f 140%) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 0 !important;
}
.entry-content .shell .ar-read *,
.shell .ar-read * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.entry-content .shell .ar-down,
.shell .ar-down {
  color: var(--rp-ink) !important;
  -webkit-text-fill-color: var(--rp-ink) !important;
  border: 1px solid #d5dee0 !important;
  background: #fff !important;
}

.entry-content .shell .ar-grid .ar-card:nth-child(n+5),
.shell .ar-grid .ar-card:nth-child(n+5) {
  display: none !important;
}

.entry-content .shell .ar-grid.is-expanded .ar-card,
.shell .ar-grid.is-expanded .ar-card {
  display: flex !important;
}

.entry-content .shell .ar-more,
.shell .ar-more {
  display: flex !important;
  justify-content: center !important;
  margin-top: 22px !important;
}

.entry-content .shell .ar-see-more,
.shell .ar-see-more {
  appearance: none !important;
  background: transparent !important;
  color: var(--rp-accent) !important;
  border: 1px solid rgba(201, 130, 31, 0.85) !important;
  border-radius: 999px !important;
  padding: 10px 24px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

@media (max-width: 1100px) {
  .entry-content .shell .ar-grid,
  .entry-content .shell .added-reports,
  .shell .ar-grid,
  .shell .added-reports,
  .shell .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .entry-content .shell .ar-grid .ar-card:nth-child(n+4),
  .shell .ar-grid .ar-card:nth-child(n+4) {
    display: none !important;
  }
  .entry-content .shell .ar-grid.is-expanded .ar-card,
  .shell .ar-grid.is-expanded .ar-card {
    display: flex !important;
  }
}

@media (max-width: 860px) {
  .entry-content .shell,
  .shell {
    grid-template-columns: 1fr !important;
    width: calc(100% - 20px) !important;
    border-radius: 18px !important;
  }
  .entry-content .shell .sidebar,
  .shell .sidebar {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 16px 14px 10px !important;
    overflow: visible !important;
  }
  .entry-content .shell .sidebar nav,
  .shell .sidebar nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .entry-content .shell .sidebar button,
  .shell .sidebar button {
    width: 100% !important;
    white-space: normal !important;
    justify-content: flex-start !important;
    text-align: left !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
  }
  .entry-content .shell .detail,
  .shell .detail {
    padding: 18px 16px 28px !important;
  }
  .entry-content .shell .ar-grid,
  .entry-content .shell .added-reports,
  .shell .ar-grid,
  .shell .added-reports,
  .shell .grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .entry-content .shell .ar-cover,
  .shell .ar-cover {
    height: 132px !important;
    max-height: 132px !important;
    min-height: 132px !important;
  }
  .entry-content .shell .ar-cover img,
  .shell .ar-cover img {
    max-height: 112px !important;
  }
}
