/* ===== quartz.css – full Quartz styles, minus navigation/footer/link conflicts ===== */
/* This file should be loaded after styles.css in log.html */

/* --- Begin original Quartz CSS (conflicts removed) --- */

/* Header (Quartz's header) – removed to avoid conflict with your site-nav */
/* body and html top-level resets – keep only box-sizing and margin reset, but remove background/color to let styles.css control them */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  text-size-adjust: none;
  width: 100vw;
  overflow-x: hidden;
}
@media (max-width:800px) {
  html {
    scroll-padding-top: 4rem;
  }
}
body {
  box-sizing: border-box;
  margin: 0;
  /* background, font-family, color – removed; let styles.css handle these */
}
/* .site-nav, .nav-container, .nav-brand, .nav-links, .site-footer, etc. – removed (they are in styles.css) */

/* --- Layout and page structure (keep everything) --- */
.page {
  max-width: 1500px;
  margin: 0 auto;
}
.page article > h1 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #2e7ea0;
  padding-left: 1rem;
}
/* Force main heading to match attestation page */
.page article > h1:first-of-type,
.page .article-title,
.page header h1,
.center > h1:first-of-type,
article > h1:first-of-type {
  font-size: 2.4rem !important;
  margin-bottom: 1.5rem !important;
  border-left: 4px solid #2e7ea0 !important;
  padding-left: 1rem !important;
  margin-top: 0 !important;
}
.page article li:has(> input[type=checkbox]) {
  padding-left: 0;
  list-style-type: none;
}
.page article li:has(> input[type=checkbox]:checked) {
  text-decoration: line-through;
  text-decoration-color: var(--gray);
  color: var(--gray);
}
.page article li > * {
  margin-top: 0;
  margin-bottom: 0;
}
.page article p > strong {
  color: var(--dark);
}
.page > #quartz-body {
  display: grid;
  grid-template: "grid-sidebar-left grid-header grid-sidebar-right"
                 "grid-sidebar-left grid-center grid-sidebar-right"
                 "grid-sidebar-left grid-footer grid-sidebar-right" / 320px auto 320px;
  gap: 5px;
}
@media (min-width:800px) and (max-width:1200px) {
  .page > #quartz-body {
    grid-template: "grid-sidebar-left grid-header"
                   "grid-sidebar-left grid-center"
                   "grid-sidebar-left grid-sidebar-right"
                   "grid-sidebar-left grid-footer" / 320px auto;
    gap: 5px;
  }
}
@media (max-width:800px) {
  .page > #quartz-body {
    grid-template: "grid-sidebar-left"
                   "grid-header"
                   "grid-center"
                   "grid-sidebar-right"
                   "grid-footer" / auto;
    gap: 5px;
  }
}
@media not (min-width:1200px) {
  .page > #quartz-body {
    padding: 0 1rem;
  }
}
@media (max-width:800px) {
  .page > #quartz-body {
    margin: 0 auto;
  }
}
.page > #quartz-body .sidebar {
  box-sizing: border-box;
  gap: 1.2rem;
  height: 100vh;
  padding: 6rem 2rem 2rem;
  display: flex;
  position: sticky;
  top: 0;
}
.page > #quartz-body .sidebar.left {
  z-index: 1;
  flex-direction: column;
  grid-area: grid-sidebar-left;
}
@media (max-width:800px) {
  .page > #quartz-body .sidebar.left {
    position: initial;
    height: unset;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 2rem 0 0;
    display: flex;
  }
}
.page > #quartz-body .sidebar.right {
  flex-direction: column;
  grid-area: grid-sidebar-right;
  margin-right: 0;
}
@media (max-width:800px) {
  .page > #quartz-body .sidebar.right {
    margin-left: inherit;
    margin-right: inherit;
  }
}
@media not (min-width:1200px) {
  .page > #quartz-body .sidebar.right {
    position: initial;
    height: unset;
    flex-direction: row;
    width: 100%;
    padding: 0;
  }
  .page > #quartz-body .sidebar.right > * {
    flex: 1;
    max-height: 24rem;
  }
  .page > #quartz-body .sidebar.right > .toc {
    display: none;
  }
}
.page > #quartz-body .page-header,
.page > #quartz-body .page-footer {
  margin-top: 1rem;
}
.page > #quartz-body .page-header {
  grid-area: grid-header;
  margin: 6rem 0 0;
}
@media (max-width:800px) {
  .page > #quartz-body .page-header {
    margin-top: 0;
    padding: 0;
  }
}
.page > #quartz-body .center > article {
  grid-area: grid-center;
}
.page > #quartz-body footer {
  grid-area: grid-footer;
}
.page > #quartz-body .center,
.page > #quartz-body footer {
  min-width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width:800px) and (max-width:1200px) {
  .page > #quartz-body .center,
  .page > #quartz-body footer {
    margin-right: 0;
  }
}
@media (max-width:800px) {
  .page > #quartz-body .center,
  .page > #quartz-body footer {
    margin-left: 0;
    margin-right: 0;
  }
}
.page > #quartz-body footer {
  margin-left: 0;
}

/* --- Table of Contents (TOC) --- */
.toc {
  background: 0 0;
  border-left: 1px solid #c2dfd8;
  padding-left: 1.5rem;
  position: sticky;
  top: 2rem;
}
.toc h3 {
  color: #427b88;
  margin-bottom: 1rem;
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
}
.toc ul {
  padding-left: 0;
  list-style: none;
}
.toc li {
  margin-bottom: .5rem;
}
.toc a {
  color: #5c9c8f;
  border-bottom: none;
  font-size: .85rem;
  text-decoration: none;
}
.toc a:hover {
  color: #1e554a;
  text-decoration: none;
}

/* --- Headings and content typography --- */
h1, h2, h3, h4, h5, h6, thead {
  font-family: var(--headerFont);
  color: var(--dark);
  font-weight: revert;
  margin-bottom: 0;
}
article > h1 > a[role=anchor],
article > h2 > a[role=anchor],
article > h3 > a[role=anchor],
article > h4 > a[role=anchor],
article > h5 > a[role=anchor],
article > h6 > a[role=anchor],
article > thead > a[role=anchor] {
  color: var(--dark);
  background-color: transparent;
}
h1[id] > a[href^="#"],
h2[id] > a[href^="#"],
h3[id] > a[href^="#"],
h4[id] > a[href^="#"],
h5[id] > a[href^="#"],
h6[id] > a[href^="#"] {
  opacity: 0;
  font-family: var(--codeFont);
  user-select: none;
  margin: 0 .5rem;
  transition: opacity .2s;
  transform: translateY(-.1rem);
}
h1[id]:hover > a,
h2[id]:hover > a,
h3[id]:hover > a,
h4[id]:hover > a,
h5[id]:hover > a,
h6[id]:hover > a {
  opacity: 1;
}
h1:not([id]) > a[role=anchor],
h2:not([id]) > a[role=anchor],
h3:not([id]) > a[role=anchor],
h4:not([id]) > a[role=anchor],
h5:not([id]) > a[role=anchor],
h6:not([id]) > a[role=anchor] {
  display: none;
}
h1 {
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}
h2 {
  margin-top: 1.9rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
h3 {
  margin-top: 1.62rem;
  margin-bottom: 1rem;
  font-size: 1.12rem;
}
h4, h5, h6 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.article-title {
  margin: 2rem 0 0;
}

/* --- Code blocks and syntax highlighting --- */
figure[data-rehype-pretty-code-figure] {
  margin: 0;
  line-height: 1.6rem;
  position: relative;
}
figure[data-rehype-pretty-code-figure] > [data-rehype-pretty-code-title] {
  font-family: var(--codeFont);
  border: 1px solid var(--lightgray);
  width: fit-content;
  color: var(--darkgray);
  border-radius: 5px;
  margin-bottom: -.5rem;
  padding: .1rem .5rem;
  font-size: .9rem;
}
figure[data-rehype-pretty-code-figure] > pre {
  padding: 0;
}
pre {
  font-family: var(--codeFont);
  border: 1px solid var(--lightgray);
  border-radius: 5px;
  padding: 0 .5rem;
  position: relative;
  overflow-x: auto;
}
pre:has(> code.mermaid) {
  border: none;
}
pre > code {
  counter-reset: line;
  background: 0 0;
  padding: .5rem 0;
  font-size: .85rem;
  display: grid;
  overflow-x: auto;
}
pre > code [data-highlighted-chars] {
  background-color: var(--highlight);
  border-radius: 5px;
}
pre > code > [data-line] {
  box-sizing: border-box;
  border-left: 3px solid transparent;
  padding: 0 .25rem;
}
pre > code > [data-line][data-highlighted-line] {
  background-color: var(--highlight);
  border-left: 3px solid var(--secondary);
}
pre > code > [data-line]::before {
  content: counter(line);
  counter-increment: line;
  text-align: right;
  color: #738a9499;
  width: 1rem;
  margin-right: 1rem;
  display: inline-block;
}
pre > code[data-line-numbers-max-digits="2"] > [data-line]::before {
  width: 2rem;
}
pre > code[data-line-numbers-max-digits="3"] > [data-line]::before {
  width: 3rem;
}
code {
  color: var(--dark);
  font-size: .9em;
  font-family: var(--codeFont);
  background: var(--lightgray);
  border-radius: 5px;
  padding: .1rem .2rem;
}

/* --- Callouts (Obsidian) --- */
.callout {
  border: 1px solid var(--border);
  background-color: var(--bg);
  box-sizing: border-box;
  border-radius: 5px;
  padding: 0 1rem;
  overflow-y: hidden;
}
.callout > .callout-content {
  transition: grid-template-rows .1s cubic-bezier(.02,.01,.47,1);
  display: grid;
  overflow: hidden;
}
.callout[data-callout] {
  --color: #448aff;
  --border: #448aff44;
  --bg: #448aff10;
  --callout-icon: var(--callout-icon-note);
}
/* ... (callout type definitions omitted for brevity; they are long but harmless) ... */
.callout-title {
  color: var(--color);
  --icon-size: 18px;
  align-items: flex-start;
  gap: 5px;
  padding: 1rem 0;
  display: flex;
}
.callout-title .callout-icon,
.callout-title .fold-callout-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  flex: 0 0 var(--icon-size);
  background-size: var(--icon-size) var(--icon-size);
  background-position: 50%;
  background-color: var(--color);
  mask-image: var(--callout-icon);
  mask-size: var(--icon-size) var(--icon-size);
  padding: .2rem 0;
  mask-position: 50%;
  mask-repeat: no-repeat;
}
.callout-title .callout-title-inner {
  font-weight: 600;
}

/* --- Tables, blockquotes, checklists, footnotes, images --- */
.table-container {
  overflow-x: auto;
}
.table-container > table {
  border-collapse: collapse;
  margin: 1rem;
  padding: 1.5rem;
}
.table-container > table th,
.table-container > table td {
  min-width: 75px;
}
.table-container > table > * {
  line-height: 2rem;
}
th {
  text-align: left;
  border-bottom: 2px solid var(--gray);
  padding: .4rem .7rem;
}
td {
  padding: .2rem .7rem;
}
tr {
  border-bottom: 1px solid var(--lightgray);
}
tr:last-child {
  border-bottom: none;
}
blockquote {
  border-left: 3px solid var(--secondary);
  margin: 1rem 0;
  padding-left: 1rem;
  transition: border-color .2s;
}
input[type=checkbox] {
  color: var(--secondary);
  border: 1px solid var(--lightgray);
  background-color: var(--light);
  appearance: none;
  border-radius: 3px;
  width: 16px;
  height: 16px;
  margin-inline: -1.4rem .2rem;
  position: relative;
  transform: translateY(2px);
}
input[type=checkbox]:checked {
  border-color: var(--secondary);
  background-color: var(--secondary);
}
input[type=checkbox]:checked:after {
  content: "";
  border: solid var(--light);
  border-width: 0 2px 2px 0;
  width: 4px;
  height: 8px;
  display: block;
  position: absolute;
  top: 1px;
  left: 4px;
  transform: rotate(45deg);
}
.footnotes {
  border-top: 1px solid var(--lightgray);
  margin-top: 2rem;
}
img {
  content-visibility: auto;
  border-radius: 5px;
  max-width: 100%;
  margin: 1rem 0;
}
hr {
  background-color: var(--lightgray);
  border: none;
  width: 100%;
  height: 1px;
  margin: 2rem auto;
}
/* ... other utility classes (spacer, overflow, etc.) ... */

/* --- Overrides for article spacing (ensure entries have bottom margin and dividers) --- */
article > h2:not(:first-of-type) {
  border-top: 1px solid #c2dfd8;
  margin-top: 2.5rem;
  padding-top: 2rem;
}
article > h2:first-of-type {
  margin-top: 0;
}

/* --- Responsive adjustments for article container --- */
.article-title, article {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}
@media (max-width:700px) {
  .article-title, article {
    padding: 0 1rem;
  }
}
/* --- Additional TOC sidebar styles (restored) --- */
.toc {
  flex-direction: column;
  flex: 0 0.5 auto;
  min-height: 1.4rem;
  display: flex;
  overflow-y: hidden;
}
.toc:has(button.toc-header.collapsed) {
  flex: 0 1.4rem;
}
button.toc-header {
  text-align: left;
  cursor: pointer;
  color: var(--dark);
  background-color: transparent;
  border: none;
  align-items: center;
  padding: 0;
  display: flex;
}
button.toc-header h3 {
  margin: 0;
  font-size: 1rem;
  display: inline-block;
}
button.toc-header .fold {
  opacity: 0.8;
  margin-left: 0.5rem;
  transition: transform 0.3s;
}
button.toc-header.collapsed .fold {
  transform: rotate(-90deg);
}
ul.toc-content.overflow {
  overscroll-behavior: contain;
  max-height: calc(100% - 2rem);
  margin: 0.5rem 0;
  padding: 0;
  list-style: none;
  position: relative;
}
ul.toc-content.overflow > li > a {
  color: var(--dark);
  opacity: 0.55;
  transition: opacity 0.5s, color 0.3s;
}
ul.toc-content.overflow > li > a.in-view {
  opacity: 0.75;
}
ul.toc-content.overflow .depth-0 {
  padding-left: 0;
}
ul.toc-content.overflow .depth-1 {
  padding-left: 1rem;
}
ul.toc-content.overflow .depth-2 {
  padding-left: 2rem;
}
ul.toc-content.overflow .depth-3 {
  padding-left: 3rem;
}
ul.toc-content.overflow .depth-4 {
  padding-left: 4rem;
}
ul.toc-content.overflow .depth-5 {
  padding-left: 5rem;
}
ul.toc-content.overflow .depth-6 {
  padding-left: 6rem;
}
/* --- Root variables (preserved) --- */
:root {
  --light: #f4faf8;
  --lightgray: #c2dfd8;
  --gray: #92b6b5;
  --darkgray: #427b88;
  --dark: #1d5a7a;
  --secondary: #5c9c8f;
  --tertiary: #a8cfc5;
  --highlight: #5c9c8f26;
  --textHighlight: #fff23688;
  --titleFont: "Libre Baskerville", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --headerFont: "Libre Baskerville", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --bodyFont: "Inter", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --codeFont: "IBM Plex Mono", ui-monospace, SFMono-Regular, SF Mono, Menlo, monospace;
}
:root[saved-theme=dark] {
  --light: #1a2a25;
  --lightgray: #2a4a42;
  --gray: #3b6b62;
  --darkgray: #c2dfd8;
  --dark: #e2efe9;
  --secondary: #7bae9f;
  --tertiary: #5c9c8f;
  --highlight: #5c9c8f33;
  --textHighlight: #b3aa0288;
}