/* Sponge Briefing Viewer: styled after Bootswatch Lux (bootswatch.com/lux). */

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("/assets/nunito-sans.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1a1a1a;
  --body-color: #55595c;
  --muted: #767676;
  --paper: #fff;
  --surface: #f8f9fa;
  --line: #e0e1e2;
  --accent: #1f9bcf;
  --radius: 0.375rem;
  --radius-pill: 50rem;
  --shadow-sm: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  color: var(--body-color);
  background: var(--paper);
}

a { color: var(--ink); }

.layout {
  display: grid;
  grid-template-columns: 17rem 1fr;
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  padding: 1.25rem;
  background: var(--surface);
}

.sidebar-toggle {
  display: block;
  width: 100%;
  padding: 0.5rem 0.9rem;
  margin-bottom: 1rem;
  font: inherit;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: box-shadow 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.sidebar-toggle:hover {
  border-color: var(--ink);
}

.sidebar-toggle:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 0.25rem rgba(26, 26, 26, 0.25);
}

.sidebar-lists.collapsed {
  display: none;
}

.group { margin-bottom: 1.5rem; }

.group-title {
  margin: 0 0 0.5rem;
  padding: 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.group-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.report-link {
  display: block;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.15rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.report-link:hover {
  background: rgba(26, 26, 26, 0.06);
}

.report-link.active {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}

.main {
  padding: 2.5rem 3rem;
  max-width: 54rem;
}

.empty-note {
  color: var(--muted);
  font-style: italic;
}

/* Article */
.article {
  font-size: 1.05rem;
  line-height: 1.7;
}

.article h1, .article h2, .article h3, .article h4, .article h5, .article h6 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  margin: 1.75rem 0 0.75rem;
}

.article h1 { font-size: 1.9rem; border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; }
.article h2 { font-size: 1.5rem; }
.article h3 { font-size: 1.25rem; }

.article p { margin: 0 0 1rem; }

.article a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); }
.article a:hover { text-decoration-color: currentColor; }

.article blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 0.25rem solid var(--line);
  color: var(--muted);
}

.article ul, .article ol {
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  overflow: hidden;
}

.article th, .article td {
  border: 1px solid var(--line);
  padding: 0.5rem 0.85rem;
  text-align: left;
}

.article th {
  background: var(--surface);
  font-weight: 700;
  color: var(--ink);
}

.article tbody tr:nth-child(odd) {
  background: rgba(0, 0, 0, 0.015);
}

.article code {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
  color: #e83e8c;
  background: var(--surface);
  padding: 0.15em 0.4em;
  border-radius: var(--radius);
}

.article pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
}

.article pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.article img { max-width: 100%; border-radius: var(--radius); }

.article hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}
