@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oxanium:wght@400;500;600;700&family=Rajdhani:wght@400;500;600;700&display=swap");

:root {
  --bg: #100d0e;
  --bg-deep: #080607;
  --panel: #171213;
  --panel-2: #211819;
  --paper: #f5f1e8;
  --paper-ink: #17110f;
  --paper-muted: #5d5550;
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: rgba(35, 20, 20, 0.18);
  --red: #ff1f2d;
  --red-2: #ff5252;
  --red-soft: rgba(255, 31, 45, 0.12);
  --gold: #c8a860;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.64);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 31, 45, 0.12), transparent 320px),
    linear-gradient(135deg, #171011 0%, #090708 58%, #140b0d 100%);
  color: var(--white);
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  font-size: 16px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.app-shell {
  position: relative;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(9, 7, 8, 0.96);
  border-bottom: 1px solid rgba(255, 31, 45, 0.28);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.bloodline-word {
  font-family: "Bebas Neue", "Rajdhani", sans-serif;
  font-size: 31px;
  color: var(--red);
  text-transform: uppercase;
}

.department-word {
  margin-top: 3px;
  color: var(--white);
  font-family: "Oxanium", "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.top-actions a,
.top-actions span {
  color: var(--muted);
  font-family: "Oxanium", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  padding: 10px 12px;
  border: 1px solid transparent;
  transition: 0.15s ease;
}

.top-actions span {
  color: rgba(255, 255, 255, 0.84);
  border-color: rgba(200, 168, 96, 0.28);
  background: rgba(200, 168, 96, 0.08);
}

.top-actions a:hover,
.top-actions a:focus-visible {
  color: var(--white);
  border-color: rgba(255, 31, 45, 0.42);
  background: rgba(255, 31, 45, 0.08);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 310px);
  min-height: clamp(360px, 46vh, 520px);
  padding: clamp(32px, 7vw, 92px) clamp(18px, 4vw, 56px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 6, 7, 0.95), rgba(8, 6, 7, 0.72) 54%, rgba(8, 6, 7, 0.34)),
    url("assets/justice-banner.svg") center/cover no-repeat;
  transform: scale(1.01);
}

.hero-content,
.hero-seal {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 840px;
  align-self: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--red-2);
  font-family: "Oxanium", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Bebas Neue", "Rajdhani", sans-serif;
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.9;
  font-weight: 400;
  text-transform: uppercase;
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.35;
}

.hero-seal {
  align-self: center;
  justify-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 30px 46px rgba(0, 0, 0, 0.48));
}

.hero-seal img {
  width: min(285px, 34vw);
  display: block;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
  gap: 0;
  min-height: 760px;
  border-bottom: 1px solid var(--line);
}

.law-sidebar {
  position: sticky;
  top: 72px;
  align-self: start;
  height: calc(100vh - 72px);
  padding: 26px;
  overflow: auto;
  background: rgba(12, 9, 10, 0.92);
  border-right: 1px solid rgba(255, 31, 45, 0.18);
}

.law-sidebar::-webkit-scrollbar,
.document-scroll::-webkit-scrollbar,
.law-body::-webkit-scrollbar {
  width: 4px;
}

.law-sidebar::-webkit-scrollbar-thumb,
.document-scroll::-webkit-scrollbar-thumb,
.law-body::-webkit-scrollbar-thumb {
  background: rgba(255, 31, 45, 0.42);
}

.sidebar-head h2 {
  margin: 0;
  font-family: "Bebas Neue", "Rajdhani", sans-serif;
  font-size: 38px;
  font-weight: 400;
  text-transform: uppercase;
}

.search-box {
  display: grid;
  gap: 8px;
  margin: 24px 0 16px;
}

.search-box span {
  color: var(--muted);
  font-family: "Oxanium", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  padding: 0 14px;
  outline: none;
  transition: 0.15s ease;
}

.search-box input:focus {
  border-color: rgba(255, 31, 45, 0.62);
  box-shadow: 0 0 0 3px rgba(255, 31, 45, 0.08);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-row button,
.doc-action {
  min-height: 34px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 7px 10px;
  font-family: "Oxanium", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: 0.15s ease;
}

.filter-row button:hover,
.filter-row button.active,
.doc-action:hover {
  border-color: rgba(255, 31, 45, 0.62);
  background: rgba(255, 31, 45, 0.12);
}

.law-list {
  display: grid;
  gap: 10px;
}

.law-item {
  width: 100%;
  min-height: 88px;
  text-align: left;
  color: var(--white);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(255, 31, 45, 0.34);
  border-radius: 8px;
  padding: 13px 14px;
  cursor: pointer;
  transition: 0.15s ease;
}

.law-item:hover,
.law-item.active {
  background: rgba(255, 31, 45, 0.1);
  border-color: rgba(255, 31, 45, 0.46);
}

.law-item strong {
  display: block;
  color: var(--white);
  font-size: 17px;
  line-height: 1.1;
}

.law-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: "Oxanium", sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.document-stage {
  padding: clamp(20px, 4vw, 56px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 260px),
    rgba(255, 255, 255, 0.018);
}

.document-shell {
  display: grid;
  gap: 18px;
}

.doc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background: rgba(10, 8, 9, 0.8);
  border: 1px solid rgba(255, 31, 45, 0.2);
  border-radius: 8px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill,
.issue-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-family: "Oxanium", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.issue-pill {
  color: #ffd7d7;
  border-color: rgba(255, 31, 45, 0.3);
  background: rgba(255, 31, 45, 0.12);
}

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

.document-paper {
  position: relative;
  max-width: 1060px;
  min-height: 760px;
  margin: 0 auto;
  color: var(--paper-ink);
  background:
    linear-gradient(90deg, rgba(255, 31, 45, 0.08), transparent 9px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(245, 241, 232, 0.98));
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.paper-letterhead {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 28px clamp(22px, 5vw, 58px) 22px;
  border-bottom: 4px solid var(--red);
}

.paper-letterhead img {
  width: 74px;
  height: 74px;
}

.paper-letterhead p {
  margin: 0;
  color: var(--paper-muted);
  font-family: "Oxanium", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.paper-letterhead h2 {
  margin: 3px 0 0;
  font-family: "Bebas Neue", "Rajdhani", sans-serif;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 0.92;
  font-weight: 400;
  text-transform: uppercase;
}

.law-body {
  padding: clamp(24px, 5vw, 60px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.72;
}

.law-body h1,
.law-body h2,
.law-body h3 {
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  line-height: 1.12;
}

.law-body h1 {
  margin: 0 0 28px;
  font-size: clamp(32px, 4vw, 52px);
}

.law-body h2 {
  margin: 34px 0 10px;
  font-size: 30px;
}

.law-body h3 {
  margin: 26px 0 8px;
  font-size: 23px;
}

.law-body p {
  margin: 0 0 14px;
}

.law-body ol,
.law-body ul {
  padding-left: 24px;
}

.law-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-family: "Rajdhani", sans-serif;
  font-size: 15px;
  line-height: 1.35;
}

.law-body th,
.law-body td {
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  vertical-align: top;
}

.law-body th {
  color: #fff;
  background: #2a1719;
}

.sheet-block {
  margin: 0 0 34px;
}

.sheet-block h2 {
  border-bottom: 2px solid rgba(255, 31, 45, 0.22);
  padding-bottom: 8px;
}

.empty-state {
  max-width: 620px;
  margin: 80px auto;
  padding: 30px;
  border: 1px solid rgba(255, 31, 45, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 1040px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .law-sidebar {
    position: relative;
    top: 0;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 31, 45, 0.18);
  }

  .law-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 720px) {
  .topbar,
  .hero,
  .doc-toolbar,
  .paper-letterhead {
    grid-template-columns: 1fr;
  }

  .topbar,
  .doc-toolbar {
    align-items: flex-start;
  }

  .topbar {
    position: relative;
  }

  .top-actions {
    width: 100%;
  }

  .hero {
    min-height: 560px;
  }

  .hero-seal {
    justify-self: start;
  }

  .law-list {
    grid-template-columns: 1fr;
  }

  .document-stage {
    padding: 14px;
  }

  .law-body {
    font-size: 15px;
  }

}
