/* HartmannLitigation.com — plain public-record styles. No third-party assets. */

:root {
  --bg: #f7f6f2;
  --text: #1a1a1a;
  --muted: #555;
  --border: #c8c4bb;
  --link: #0645ad;
  --link-visited: #0b0080;
  --focus: #1a1a1a;
  --max: 40rem;
  --max-wide: 52rem;
  --space: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

a {
  color: var(--link);
}

a:visited {
  color: var(--link-visited);
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.table-scroll:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--text);
  color: var(--bg);
  font-family: ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
}

.skip-link:focus {
  left: var(--space);
  top: var(--space);
}

.site-header,
.site-footer,
.site-main {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

.site-main.wide {
  width: min(100% - 2 * var(--space), var(--max-wide));
}

.site-header {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.75rem;
}

.breadcrumb {
  margin: 0 0 0.5rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: var(--link);
}

.site-title {
  margin: 0 0 0.35rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
}

.site-title a:hover {
  text-decoration: underline;
}

.site-caption {
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.site-nav {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9375rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--text);
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
}

h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
}

h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.35rem;
}

.lede {
  font-size: 1.1rem;
}

.meta {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8125rem;
}

.case-list {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.case-list li {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  background: #fff;
  line-height: 1.4;
}

.case-list a {
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

.case-list a:hover {
  text-decoration: underline;
}

/* Document Viewer */
.doc-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.doc-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  white-space: nowrap;
}

.doc-actions a:hover {
  color: var(--link);
}

.viewer-layout {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.viewer-content {
  min-width: 0;
}

.names-mentioned h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}

.names-mentioned h3:first-of-type {
  margin-top: 0;
}

.parties-mentioned {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.parties-mentioned li {
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.doc-iframe {
  width: 100%;
  height: 75vh;
  min-height: 600px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: var(--bg) !important;
  text-decoration: none;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-download:hover,
.btn-download:focus {
  background: var(--link);
  color: #fff !important;
  text-decoration: none;
}

.endnote {
  margin: 2.25rem 0 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.label {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.notice {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: #fff;
}

.notice p:last-child {
  margin-bottom: 0;
}

.parties {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.parties li {
  margin: 0;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9375rem;
}

.parties .role {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

table {
  width: 100%;
  margin: 0 0 1.25rem;
  border-collapse: collapse;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
}

th,
td {
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.empty {
  color: var(--muted);
  font-style: italic;
}

.table-controls,
.table-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 0.75rem 1rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8125rem;
}

.table-controls { margin-bottom: 0.75rem; }
.table-controls label { display: grid; gap: 0.25rem; }
.table-controls label:first-child { flex: 1 1 14rem; }
.table-controls input { width: 100%; min-width: 0; }
.table-controls input,
.table-controls select,
.table-footer button {
  min-height: 2.5rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.table-footer { margin: 0.75rem 0 1.5rem; align-items: center; }
.table-footer p { margin: 0; color: var(--muted); }
.table-footer nav { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.table-footer button,
.table-sort { cursor: pointer; }
.table-footer button:disabled { opacity: 0.5; cursor: default; }
.table-scroll { overflow-x: auto; }
.table-scroll table { margin-bottom: 0; }
.table-scroll th { white-space: nowrap; }
.table-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}
.table-sort:hover { color: var(--link); }
th[aria-sort="ascending"],
th[aria-sort="descending"] { color: var(--text); }
.table-empty { color: var(--muted); }

.placeholder {
  color: var(--muted);
}

blockquote {
  margin: 1.25rem 0;
  padding: 0.15rem 0 0.15rem 1rem;
  border-left: 3px solid var(--border);
}

blockquote p {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
}

blockquote p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8125rem;
}

.case-blank {
  display: inline-block;
  min-width: 12ch;
  border-bottom: 1px solid var(--text);
  font-family: ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.06em;
}

.site-footer {
  margin-top: 3rem;
  padding: 1.25rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.site-footer p {
  margin: 0 0 0.6rem;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .skip-link,
  .site-nav,
  .table-controls,
  .table-footer,
  .table-empty,
  .sort-indicator {
    display: none;
  }

  .table-scroll { overflow: visible; }
  table[data-table] tbody tr[hidden]:not(.table-empty) { display: table-row; }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href^="http"]::after,
  a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }

  .site-header,
  .site-footer,
  .site-main {
    width: 100%;
    margin: 0;
  }

  .site-header {
    border-bottom: 1px solid #000;
  }

  .site-footer {
    border-top: 1px solid #000;
  }
}

