/* ============================================
   Law Library Section - Base Styles
   ============================================ */

/* Import Open Sans font if not already loaded by theme */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap");

.law-library-section {
  width: 100%;
  padding: 1.5rem 1.75rem;
  max-width: 1920px;
}

.law-library-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 992px) {
  .law-library-inner {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Right-hand main column (search + cards) */
.law-library-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 auto;
}

/* ============================================
   Top Toolbar
   ============================================ */

.law-library-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.law-toolbar-left {
  flex: 1 1 auto;
}

.law-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
}

.law-toolbar-search {
  max-width: 100%;
}

/* Search input inside toolbar */
.law-search-control {
  position: relative;
  width: 100%;
}

.law-search-input {
  width: 100%;
  border-radius: 12px !important;
  border: 1px solid #d0d5dd !important;
  padding: 2rem 1.5rem !important;
  font-size: 0.95rem !important;
  background-color: #ffffff !important;
  color: #1f2937 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
}

.law-search-input::placeholder {
  color: #94a3b8;
}

.law-search-input:focus {
  outline: none;
  border-color: #9fdba9;
  box-shadow: 0 0 0 3px rgba(159, 219, 169, 0.3);
}

.law-search-icon {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%236f8794' stroke-width='2'/%3E%3Cpath d='M16.5 16.5L22 22' stroke='%236f8794' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px;
  pointer-events: none;
  opacity: 0.9;
}

/* Hide native clear (X) icon so it doesn't clash with custom search icon */
.law-search-input::-ms-clear,
.law-search-input::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.law-search-input::-webkit-search-decoration,
.law-search-input::-webkit-search-cancel-button,
.law-search-input::-webkit-search-results-button,
.law-search-input::-webkit-search-results-decoration {
  display: none;
}

.law-toolbar-select-wrap {
  position: relative;
}

.law-toolbar-select {
  min-width: 160px;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  padding: 0.65rem 2.5rem 0.65rem 1rem;
  font-size: 0.9rem;
  background-color: #ffffff;
  background-image: linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0.35)
    ),
    url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238596A4' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-blend-mode: soft-light, normal;
  background-position: left 0 top 0, calc(100% - 1.2rem) center;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, 12px 8px;
  appearance: none;
  color: #1f2937;
  font-weight: 600;
}

.law-toolbar-select:focus {
  outline: none;
  border-color: #9fdba9;
  box-shadow: 0 0 0 3px rgba(159, 219, 169, 0.3);
}

@media (max-width: 992px) {
  .law-library-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .law-toolbar-right {
    justify-content: flex-start;
  }
}

/* ============================================
   Meta Row (count)
   ============================================ */

.law-library-meta {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

.law-library-count {
  display: inline-flex;
  gap: 0.2rem;
  align-items: baseline;
}

/* ============================================
   Filter Container (Sidebar)
   ============================================ */

.law-library-filter {
  background: #fcfcfd9c;
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 1rem;
  width: 100%;
  border: 1px solid #a2e9a2;
  box-sizing: border-box;
}

/* Sidebar header */
.law-filter-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.1rem;
}

.law-filter-header-icon {
  width: 30px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4H17M5 9H15M8 14H12' stroke='%238596A4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px;
}

.law-filter-header-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.1;
}

@media (min-width: 992px) {
  .law-library-filter {
    flex: 0 0 320px;
    max-width: 320px;
  }
}

/* ============================================
   Filter Layout - Sidebar
   ============================================ */

.law-filter-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 1024px) {
  .law-filter-row {
    gap: 0.875rem !important;
  }
}

@media (max-width: 768px) {
  .law-filter-row {
    gap: 0.75rem !important;
  }
}

/* ============================================
   Filter Groups & Options (Sidebar style)
   ============================================ */

.law-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 500;
  position: relative;
  margin-bottom: 1rem;
}

.law-filter-group:last-of-type {
  margin-bottom: 1.25rem;
}

/* ============================================
   Filter Labels
   ============================================ */

.law-filter-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475467;
  font-weight: 600;
  line-height: 1.2;
}

.law-taxonomy-panel {
  width: 100%;
  max-height: 320px;
  padding: 1rem;
  overflow-y: auto;
}

.law-filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.law-filter-option {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.95rem;
  color: #1f2937;
  line-height: 1.5;
}

.law-filter-option label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
  width: 100%;
  margin: 0;
}

.law-filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  border-radius: 4px;
  border: 1px solid #d0d5dd;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
  margin-top: 2px; /* Slight top margin to align with first line of text */
}

.law-filter-option span {
  flex: 1;
  line-height: 1.5;
  padding-top: 1px; /* Slight padding to align with checkbox */
}

.law-filter-divider {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 0.75rem 0 1rem;
}

.law-taxonomy-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.law-tree-node {
  padding-left: calc(var(--law-depth, 0) * 12px);
}

.law-tree-children {
  margin-left: 1rem;
  padding-left: 0.5rem;
  border-left: 1px solid #e4e7ec;
}

.law-tree-option {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.5;
  cursor: pointer;
  margin: 0;
  width: 100%;
}

.law-tree-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  border-radius: 4px;
  border: 1px solid #d0d5dd;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
  margin-top: 2px; /* Slight top margin to align with first line of text */
  vertical-align: top;
}

.law-tree-option span {
  flex: 1;
  line-height: 1.5;
  padding-top: 1px; /* Slight padding to align with checkbox */
  display: block;
}

/* ============================================
   Filter Actions (Clear Button)
   ============================================ */

.law-filter-actions {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  justify-content: center;
}

@media (max-width: 1024px) {
  .law-filter-actions {
    width: 100% !important;
    flex: 1 1 100% !important;
    align-items: stretch !important;
  }
}

.law-filter-clear {
  width: 100%;
  border: 1px solid #1f8352;
  background: #ffffff;
  color: #000000;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-top: calc(0.85rem * 1.2 + 0.5rem);
}

@media (max-width: 1024px) {
  .law-filter-clear {
    margin-top: 0 !important;
  }
}

.law-filter-clear:hover {
  background: rgba(159, 219, 169, 0.2);
}

.law-filter-clear:focus-visible {
  outline: none;
  border-color: #7cc691;
  box-shadow: 0 0 0 3px rgba(159, 219, 169, 0.35);
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
  .law-library-section {
    padding: 0.75rem !important;
  }

  .law-library-filter {
    padding: 1rem 1.25rem !important;
    border-radius: 12px;
    position: relative;
    top: auto;
  }
}

/* ============================================
   Grid & Cards
   ============================================ */

.law-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  flex: 1 1 auto;
}

@media (max-width: 768px) {
  .law-library-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .law-library-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .law-card {
    padding: 1.25rem;
  }

  .law-card-title {
    font-size: 1.125rem;
  }

  .law-card-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .law-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .law-card-footer-right {
    width: 100%;
  }
}

.law-card {
  background: var(--theme-card-background, #ffffff);
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  display: flex;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.law-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.law-card[hidden] {
  display: none;
}

.law-card-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

/* Title Row: Title (left) + Badge (right) */
.law-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.law-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  flex: 1;
  min-width: 0;
  color: var(--theme-heading-color, #1f2937);
}

.law-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.law-card-title a:hover {
  color: var(--theme-link-hover-color, #005a87);
}

.law-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Subject Area Tags */
.law-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

.law-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Description */
.law-card-excerpt {
  margin: 0;
  color: var(--theme-text-color, #475467);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.law-card-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.law-card-meta .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.06em;
}

.law-card-meta .value {
  font-weight: 600;
}

.law-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
}

.law-card-footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.law-card-footer-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.law-card-meta-line {
  font-size: 0.875rem;
  color: var(--theme-text-color, #475467);
  line-height: 1.5;
}

.law-card-meta-line strong {
  font-weight: 600;
  color: var(--theme-heading-color, #1f2937);
}

/* Attachments Link */
.law-card-attachments-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--theme-link-initial-color, #0073aa);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.law-card-attachments-link:hover {
  color: var(--theme-link-hover-color, #005a87);
  text-decoration: underline;
}

.law-card-attachments-link-disabled {
  color: #9ca3af;
  cursor: default;
  pointer-events: none;
}

.law-card-attachments-link-disabled:hover {
  text-decoration: none;
}

.law-card-attachments-icon {
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3Cpath d='M10 9H8' stroke='currentColor' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M16 13H8' stroke='currentColor' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M16 17H8' stroke='currentColor' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  flex-shrink: 0;
}

.law-card-attachments-text {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .law-card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .law-card-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .law-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .law-card-footer-right {
    width: 100%;
  }
}

/* ============================================
   Empty State
   ============================================ */

.law-library-empty {
  text-align: center;
  width: 100%;
  padding: 1.5rem 0;
  font-weight: 600;
  color: #475467;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* ============================================
   Single Post Template Styles
   ============================================ */

/* Use the same gradient background as standard pages on Law Library singles */
body.single-law-library-post {
  background-image: linear-gradient(
    107deg,
    rgb(218, 238, 255) 2%,
    rgba(158, 255, 158, 0.3) 100%
  );
}

/* Container: mx-auto px-4 py-8 */
.law-library-single-wrapper {
  width: 100%;
}

.law-library-single-container {
  max-width: 1280px; /* container max-width */
  margin: 0 auto;
  padding: 2rem 1rem; /* py-8 px-4 */
}

/* Header Section (Above Cards) */
/* Header Card: Same style as other cards */
.law-library-single-header {
  border-radius: 0.5rem; /* rounded-lg */
  border: 1px solid #e5e7eb;
  background: #ffffff; /* bg-card */
  color: #1f2937; /* text-card-foreground */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
  margin-bottom: 1.5rem;
}

.law-library-single-header-inner {
  padding: 1.5rem; /* p-6 */
  padding-top: 1.5rem; /* pt-6 */
}

/* Back Link - Button Style (Above Card) */
.law-library-back-link {
  margin-bottom: 1rem;
}

.law-library-back-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background-color: #e0f2fe; /* Light blue background */
  color: #0369a1; /* Medium blue text */
  border: 1px solid #0369a1; /* Blue border */
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px; /* Moderate rounding, not pill-shaped */
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.law-library-back-link a:hover {
  background-color: #bae6fd; /* Slightly darker light blue on hover */
  color: #0284c7; /* Slightly darker blue text */
  border-color: #0284c7;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.law-library-back-link a:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Top meta row: designation / subjects on the left, venue on the right */
.law-library-single-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .law-library-single-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Tags/Badges */
.law-library-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.law-library-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

.law-library-tag-designation {
  background: var(--theme-accent-color, #7cc691);
  color: var(--theme-button-text-color, #ffffff);
}

.law-library-tag-subject {
  background: #e5e7eb;
  color: #374151;
}

/* Single-page venue, aligned similar to grid card header */
.law-library-single-venue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--theme-text-color, #4b5563);
}

.law-library-single-venue-text {
  line-height: 1.4;
}

/* Title */
.law-library-single-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  color: var(--theme-heading-color, #1f2937);
}

/* Teaser (in header section, directly under title) */
.law-library-single-header .law-library-single-teaser {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--theme-text-color, #475467);
  margin: 0;
  padding: 0;
}

.law-library-single-teaser p {
  margin: 0 0 0.5rem 0;
}

.law-library-single-teaser p:last-child {
  margin-bottom: 0;
}

/* Grid: grid grid-cols-1 lg:grid-cols-3 gap-6 */
.law-library-single-content-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem; /* gap-6 */
}

@media (min-width: 1024px) {
  .law-library-single-content-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Left Column: lg:col-span-2 space-y-6 */
.law-library-single-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* space-y-6 */
}

@media (min-width: 1024px) {
  .law-library-single-main {
    grid-column: span 2;
  }
}

/* Card: rounded-lg border bg-card text-card-foreground shadow-sm */
.law-library-content-card,
.law-library-attachments-card,
.law-library-details-card {
  border-radius: 0.5rem; /* rounded-lg */
  border: 1px solid #e5e7eb;
  background: #ffffff; /* bg-card */
  color: #1f2937; /* text-card-foreground */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
}

/* Card Inner: p-6 pt-6 */
.law-library-content-card-inner,
.law-library-attachments-card-inner,
.law-library-details-card-inner {
  padding: 1.5rem; /* p-6 */
  padding-top: 1.5rem; /* pt-6 */
}

/* Main Content: prose prose-sm max-w-none */
.law-library-content-card .law-library-single-content {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem; /* prose-sm */
  line-height: 1.75;
  color: var(--theme-text-color, #374151);
  max-width: none; /* max-w-none */
  margin-top: 0;
}

/* Apply Open Sans to all content elements (inherits from parent) */
.law-library-single-content * {
  font-family: inherit;
}

/* Override for code/pre elements to use monospace */
.law-library-single-content code,
.law-library-single-content pre {
  font-family: "Courier New", Courier, monospace;
}

.law-library-single-content h2,
.law-library-single-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--theme-heading-color, #1f2937);
}

.law-library-single-content h2:first-child,
.law-library-single-content h3:first-child {
  margin-top: 0;
}

.law-library-single-content p {
  margin-bottom: 1rem;
}

.law-library-single-content ul,
.law-library-single-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.law-library-single-content li {
  margin-bottom: 0.5rem;
}

.law-library-single-content strong {
  font-weight: 600;
  color: var(--theme-heading-color, #1f2937);
}

/* Attachments Title: text-xl font-serif font-bold mb-4 flex items-center gap-2 */
.law-library-attachments-title {
  font-size: 1.25rem; /* text-xl */

  font-weight: 700; /* font-bold */
  margin: 0 0 1rem 0; /* mb-4 */
  display: flex;
  align-items: center;
  gap: 0.5rem; /* gap-2 */
  color: var(--theme-heading-color, #1f2937);
}

.law-library-attachments-icon {
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3Cpath d='M10 9H8' stroke='currentColor' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M16 13H8' stroke='currentColor' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M16 17H8' stroke='currentColor' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 20px 20px;
  color: var(--theme-accent-color, #7cc691);
}

/* Attachments List: space-y-2 */
.law-library-attachments-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* space-y-2 */
}

/* Attachment Item: flex items-center justify-between p-3 border border-border rounded-lg hover:bg-muted/50 */
.law-library-attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem; /* p-3 */
  border: 1px solid #e5e7eb; /* border-border */
  border-radius: 0.5rem; /* rounded-lg */
  transition: background-color 0.2s ease;
}

.law-library-attachment-item:hover {
  background-color: rgba(0, 0, 0, 0.02); /* hover:bg-muted/50 */
}

.law-library-attachment-content {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* gap-3 */
}

.law-library-attachment-file-icon {
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3Cpath d='M10 9H8' stroke='%2364748b' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M16 13H8' stroke='%2364748b' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M16 17H8' stroke='%2364748b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 20px 20px;
  flex-shrink: 0;
}

.law-library-attachment-label {
  font-size: 0.875rem; /* text-sm */
  font-weight: 500; /* font-medium */
  color: var(--theme-text-color, #1f2937);
}

/* Download Button */
.law-library-attachment-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.875rem; /* text-sm */
  font-weight: 500; /* font-medium */
  padding: 0.5rem 0.75rem; /* h-9 px-3 */
  border-radius: 0.375rem; /* rounded-md */
  gap: 0.5rem; /* gap-2 */
  background: transparent;
  border: none;
  color: var(--theme-link-initial-color, #0073aa);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.law-library-attachment-download-btn:hover {
  background-color: rgba(0, 0, 0, 0.05); /* hover:bg-accent */
  color: var(
    --theme-link-hover-color,
    #005a87
  ); /* hover:text-accent-foreground */
}

.law-library-attachment-download-icon {
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3Cpolyline points='7 10 12 15 17 10' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3Cline x1='12' x2='12' y1='15' y2='3' stroke='currentColor' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  flex-shrink: 0;
}

/* Sidebar */
.law-library-single-sidebar {
  position: relative;
}

/* Law Details Title: text-lg font-serif font-bold mb-4 */
.law-library-details-title {
  font-size: 1.125rem; /* text-lg */
  font-weight: 700; /* font-bold */
  margin: 0 0 1rem 0; /* mb-4 */
  color: var(--theme-heading-color, #1f2937);
}

/* Details List: space-y-4 */
.law-library-details-list {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* space-y-4 */
  margin: 0;
  padding: 0;
}

.law-library-detail-item {
  display: flex;
  flex-direction: column;
  margin: 0;
}

/* Detail Label: text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-1 */
.law-library-detail-label {
  font-size: 0.75rem; /* text-xs */
  font-weight: 600; /* font-semibold */
  color: #64748b; /* text-muted-foreground */
  text-transform: uppercase;
  letter-spacing: 0.05em; /* tracking-wide */
  margin: 0 0 0.25rem 0; /* mb-1 */
}

/* Detail Value: text-sm */
.law-library-detail-value {
  font-size: 0.875rem; /* text-sm */
  color: var(--theme-text-color, #1f2937);
  margin: 0;
  display: flex;
  align-items: flex-start; /* items-start for icon alignment */
  gap: 0.5rem; /* gap-2 */
}

.law-library-detail-value-mono {
  font-family: monospace; /* font-mono */
}

/* List format for multiple values (Applies To, Subject Areas) */
.law-library-detail-value-list {
  display: block;
  flex-direction: column;
}

.law-library-applies-list,
.law-library-subject-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.law-library-applies-list li,
.law-library-subject-list li {
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.5;
}

.law-library-applies-list li::before,
.law-library-subject-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--theme-accent-color, #7cc691);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
}

.law-library-venue-icon {
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3Cpath d='M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3Cpath d='M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3Cpath d='M10 6h4' stroke='currentColor' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M10 10h4' stroke='currentColor' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M10 14h4' stroke='currentColor' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M10 18h4' stroke='currentColor' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  flex-shrink: 0;
  margin-top: 0.125rem; /* mt-0.5 */
  color: var(--theme-accent-color, #7cc691);
}

.law-library-calendar-icon {
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 2v4' stroke='currentColor' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M16 2v4' stroke='currentColor' stroke-width='2' stroke-linecap='round'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2' stroke='currentColor' stroke-width='2' fill='none'/%3E%3Cpath d='M3 10h18' stroke='currentColor' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  flex-shrink: 0;
  color: #64748b; /* text-muted-foreground */
}

/* Divider */
.law-library-detail-divider {
  height: 1px;
  width: 100%;
  background-color: #e5e7eb; /* bg-border */
  margin: 0;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1023px) {
  .law-library-single-content-wrapper {
    grid-template-columns: 1fr;
  }

  .law-library-single-main {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .law-library-single-container {
    padding: 1rem;
  }

  .law-library-single-title {
    font-size: 2rem;
  }
}
