/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", "Roboto Fallback";
  line-height: 1.5;
  color: #111827;
  background-color: #ffffff;
}

/* ===== COLOR VARIABLES ===== */
:root {
  --primary: #a62c00;
  --primary-dark: #841309;
  --primary-light: #fff1e6;
  --neutral-900: #171717;
  --neutral-800: #262626;
  --neutral-700: #404040;
  --neutral-600: #525252;
  --neutral-500: #737373;
  --neutral-400: #a3a3a3;
  --neutral-300: #d4d4d4;
  --neutral-200: #e5e5e5;
  --neutral-100: #f5f5f5;
  --neutral-50: #fafafa;
  --muted: #f3f4f6;
  --muted-foreground: lab(36.2% 0 0.00000596046);
  --border: #e5e7eb;
  --background: #ffffff;
  --foreground: #111827;
  --amber-50: #fffbeb;
  --amber-200: #fde68a;
  --amber-800: #92400e;
  --primary-10: rgba(166, 44, 0, 0.1);
}

/* ===== UTILITY CLASSES ===== */
.bg-neutral-900 {
  background-color: var(--neutral-900);
}
.bg-muted {
  background-color: var(--muted);
}
.bg-muted\/50 {
  background-color: rgba(243, 244, 246, 0.5);
}
.bg-background {
  background-color: var(--background);
}
.bg-primary\/5 {
  background-color: rgba(166, 44, 0, 0.05);
}
.bg-primary\/10 {
  background-color: rgba(166, 44, 0, 0.1);
}
.bg-amber-50 {
  background-color: var(--amber-50);
}
.bg-white {
  background-color: #ffffff;
}

.text-white {
  color: #ffffff;
}
.text-neutral-300 {
  color: var(--neutral-300);
}
.text-neutral-900 {
  color: var(--neutral-900);
}
.text-muted-foreground {
  color: var(--muted-foreground);
}
.text-primary {
  color: var(--primary);
}
.text-amber-600 {
  color: #d97706;
}
.text-amber-800 {
  color: var(--amber-800);
}
.text-xs {
  font-size: 0.75rem;
}
.text-sm {
  font-size: 0.875rem;
}
.text-base {
  font-size: 1rem;
}
.text-lg {
  font-size: 1.125rem;
}
.text-3xl {
  font-size: 36px;
}
.text-4xl {
  font-size: 2.25rem;
}

.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.font-mono {
  font-family: monospace;
}

.border {
  border: 1px solid;
}
.border-border {
  border-color: var(--border);
}
.border-primary\/20 {
  border-color: rgba(166, 44, 0, 0.2);
}
.border-primary\/50 {
  border-color: rgba(166, 44, 0, 0.5);
}
.border-amber-200 {
  border-color: var(--amber-200);
}
.border-t {
  border-top: 1px solid lab(86.08% -0.0000298023 0);
}
.border-t-border {
  border-top-color: var(--border);
}

.rounded {
  border-radius: 0.25rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-full {
  border-radius: 9999px;
}

/* ===== LAYOUT ===== */
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-4 {
  padding: 1rem;
}
.pt-3 {
  padding-top: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-8 {
  margin-top: 2rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-8 {
  gap: 2rem;
}
.space-y-6 > * + * {
  margin-top: 1.5rem;
}
.space-y-4 > * + * {
  margin-top: 1rem;
}
.space-y-2 > * + * {
  margin-top: 0.5rem;
}
.space-y-1 > * + * {
  margin-top: 0.25rem;
}

/* ===== FLEX/GRID ===== */
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.grid {
  display: grid;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-1 {
  flex: 1;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .lg\:col-span-3 {
    grid-column: span 3;
  }
}

/* ===== POSITIONING ===== */
.sticky {
  position: sticky;
}
.top-24 {
  top: 6rem;
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* ===== COMPONENTS ===== */
.max-w-3xl {
  max-width: 48rem;
}
.w-10 {
  width: 2.5rem;
}
.h-10 {
  height: 2.5rem;
}
.w-12 {
  width: 3rem;
}
.h-12 {
  height: 3rem;
}
.w-6 {
  width: 1.5rem;
}
.h-6 {
  height: 1.5rem;
}
.w-4 {
  width: 1rem;
}
.h-4 {
  height: 1rem;
}
.w-full {
  width: 100%;
}
.h-\[250px\] {
  height: 250px;
}
.min-w-0 {
  min-width: 0;
}
.object-cover {
  object-fit: cover;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== INTERACTIVE ===== */
.cursor-pointer {
  cursor: pointer;
}
.transition-all {
  transition: all 0.2s ease;
}
.transition-colors {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.transition-transform {
  transition: transform 0.2s ease;
}
.hover\:scale-\[1\.02\]:hover {
  transform: scale(1.02);
}
.hover\:border-primary\/50:hover {
  border-color: rgba(166, 44, 0, 0.5);
}
.hover\:shadow-sm:hover {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.hover\:bg-muted:hover {
  background-color: var(--muted);
}
.hover\:underline:hover {
  text-decoration: underline;
}

/* ===== LINKS ===== */
a {
  text-decoration: none;
  color: inherit;
}

/* ===== OVERFLOW ===== */
.overflow-hidden {
  overflow: hidden;
}

/* ===== ASIDE SIDEBAR ===== */
aside .sticky {
  position: sticky;
  top: 6rem;
}

aside ul li a {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease;
}

aside ul li a:hover {
  background-color: var(--muted);
}

aside ul li a span:first-child {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

aside ul li a span:last-child {
  font-size: 0.75rem;
  color: lab(2.75381 0 0);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

/* ===== ADVERTISEMENT ===== */
.ad-placeholder {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  height: 250px;
}

.ad-placeholder:hover {
  transform: scale(1.02);
}

.ad-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== LEGAL NOTICE CARDS ===== */
article {
  background-color: #ffffff;
  border: none;
  transition: all 0.2s ease;
}

article:hover {
  border-color: rgba(166, 44, 0, 0.5);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.icon-circle {
  width: 3rem;
  height: 3rem;
  background-color: rgba(166, 44, 0, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-circle svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  background-color: rgba(166, 44, 0, 0.1);
  border-radius: 0.25rem;
  text-transform: capitalize;
}

.case-number {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-family: monospace;
}

.meta-icon {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.meta-icon svg {
  width: 1rem;
  height: 1rem;
}

.expires {
  color: #d97706;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 0.5rem;
}

.page-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background-color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.page-btn:hover {
  background-color: var(--muted);
}

.page-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ===== DISCLAIMER ===== */
.disclaimer {
  margin-top: 2rem;
  padding: 1rem;
  background-color: var(--amber-50);
  border: 1px solid var(--amber-200);
  border-radius: 0.5rem;
}

.disclaimer p {
  font-size: 0.875rem;
  color: var(--amber-800);
}

.disclaimer strong {
  font-weight: 600;
}

/* ===== SELECT DROPDOWN ===== */
select {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background-color: #ffffff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .grid-cols-1 {
    grid-template-columns: 1fr;
  }

  .text-3xl {
    font-size: 1.5rem;
  }

  .text-4xl {
    font-size: 1.875rem;
  }
}

/* Layout header sorts nicely */
.legal-notices-sort form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

/* Optional: compact form items */
.legal-notices-sort .form-item {
  margin: 0;
}

.public_legal_notice h2 {
  display: none;
}

.notice_type {
  font-size: 16px;
}

.form-item-sort-order {
  display: none;
}

.form-item-sort-by label {
  font-size: 0;
}

.side_section_head {
  display: flex;
  align-items: center;
  margin-top: -20px;
}

.public_legal_details header {
  margin-bottom: 31px;
  font-size: 14px;
  color: lab(36.2 0 0.00000596046);
}

.public_legal_details .views-row {
  border: 1px solid lab(86.08% -0.0000298023 0);
  padding: 1.5rem !important;
  border-radius: 0.5rem;
  margin-bottom: 16px !important;
}

.public_legal_details .views-row:hover {
  border: 1px solid
    color-mix(in oklab, lab(31.1644% 49.8615 41.7994) 50%, transparent);
}

.public_legal_details .views-row article {
  margin-bottom: 0px !important;
}

.public_legal_details .views-row article p,
.public_legal_details .views-row article p:first-of-type {
  border-bottom: none;
  padding-bottom: 0px;
}

.public_legal_details .views-row article p {
  margin-bottom: 8px !important;
  font-size: 14px !important;
}

.public_legal_details .views-row article .border-border {
  border-bottom: none;
  padding-bottom: 0px;
  margin-top: 1px solid lab(86.08% -0.0000298023 0) !important;
  font-size: 12px;
}

.public_legal_details .views-row article .border-border p,
.public_legal_details .views-row article .border-border p span {
  font-weight: 400;
  font-size: 12px;
  margin-bottom: 0px;
}

.public_box {
  font-size: 16px !important;
}

.right_side_section {
  position: relative;
}

.side_section_head {
  position: absolute;
  right: -8px;
}

.case-number {
  font-family: "Roboto", "Roboto Fallback";
}

.case-number::before {
  content: "Case #:";
  font-family: "Roboto Mono", "Roboto Mono Fallback";
}
