:root {
  --fg: #1F1F1F;
  --muted: #7A7A7A;

  --bg: #FCFBFA;     /* cleaner, near-neutral */
  --card: #FFFFFF;

  --accent: #4F6B5F;        /* softer, desaturated green */
  --accent-soft: #EEF3F1;

  --border: #BC4227;        /* your color (used SPARINGLY) */
  --border-soft: #EEE3E0;   /* almost neutral */
  --border-strong: #9A3A25; /* toned-down version */

  --warn: #A8652A;
  --warn-soft: #F5E8DA;

  --radius: 10px;
  --maxw: 760px;
}


* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
       "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--card);
  padding: 14px 0;
  margin-bottom: 32px;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-title {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: #8C2F23;
  text-transform: uppercase;
}

/* remove underline on hover (and keep color consistent) */
.site-title:hover {
  text-decoration: none;
  color: #8C2F23;
}
/* Top-level menu */
.site-nav .menu {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  text-transform: uppercase;
}
.site-nav .menu > li { position: relative; }
.site-nav a,
.site-nav .dropdown-trigger {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-block;
}
.site-nav a:hover,
.site-nav .menu > li:focus-within > a,
.site-nav .menu > li:focus-within > .dropdown-trigger {
  color: var(--accent);
}
.site-nav .caret {
  font-size: 0.7em;
  margin-left: 2px;
  opacity: 0.7;
}

/* Dropdown — auto-generated from any subfolder.
   The previous bug was a 6px gap between the trigger and the dropdown:
   moving the mouse across that gap dropped :hover on the parent <li> and
   closed the menu before you could click anything. The fix:
     1. Extend the parent <li>'s OWN box downward (padding-bottom) so the
        hover area covers the visual gap. This is the reliable fix —
        pseudo-elements aren't guaranteed to participate in hover testing
        across all browsers.
     2. Pull the dropdown back up the same amount with margin-top, so the
        visual position is unchanged.
   Result: the trigger and the dropdown share an 8px overlap zone that's
   always inside :hover. The menu stays open the whole way down. */
.site-nav .has-dropdown {
  padding-bottom: 8px;
}
.site-nav .dropdown {
  list-style: none;
  margin: -8px 0 0;
  padding: 10px 0;
  position: absolute;
  top: 100%;
  left: -10px;
  min-width: 200px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  z-index: 100;
  display: none;
}
.site-nav .has-dropdown:hover > .dropdown,
.site-nav .has-dropdown:focus-within > .dropdown {
  display: block;
}
.site-nav .dropdown li { margin: 0; }
.site-nav .dropdown a {
  display: block;
  padding: 7px 14px;
  color: var(--fg);
  font-size: 0.92rem;
}
.site-nav .dropdown a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Content */
.content { padding-bottom: 60px; }
.page-title { font-size: 2rem; margin: 0 0 18px; }
h2 { margin-top: 1.8em; }
.content p, .content ul, .content ol { font-size: 1.02rem; }

/* Two-column layout when a page opts in to a TOC via `toc: true`.
   The TOC sits in the left margin; the article keeps its source order
   so screen readers still hit content first. */
.content.with-toc {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.content.with-toc .content-main {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}
.content.with-toc .toc {
  grid-column: 1;
  grid-row: 1;
}

.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  font-size: 0.92rem;
  border-right: 1px solid var(--border);
  padding: 4px 16px 4px 0;
}
.toc .toc-title {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc ul ul { padding-left: 14px; margin-top: 4px; }
.toc li { margin: 4px 0; line-height: 1.35; }
.toc a {
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .content.with-toc {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .toc {
    position: static;
    border-right: none;
    border-top: 1px solid var(--border);
    padding: 16px 0 0;
    margin-top: 8px;
  }
}

/* Trash pickup widgets */
.trash-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: -6px 0 24px;
}

.trash-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 14px 0;
}
.trash-card.next-up {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.trash-card.soon {
  border-color: var(--warn);
  background: var(--warn-soft);
}
.trash-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.trash-card .date {
  font-weight: 700;
  font-size: 1.15rem;
}
.trash-card .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

table.trash-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 22px;
}
table.trash-table th, table.trash-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
table.trash-table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  padding: 18px 0 30px;
  background: var(--card);
}
