/* Barlow, bundled locally (SIL Open Font License 1.1, see fonts/OFL.txt).
   Four weights, latin + latin-ext subsets. No external requests:
   the site renders identically offline, over file://, or from a mirror. */
@font-face {
  /* latin */
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  /* latin-ext */
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  /* latin */
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/barlow-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  /* latin-ext */
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/barlow-500-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  /* latin */
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  /* latin-ext */
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-600-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  /* latin */
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  /* latin-ext */
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-700-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Distributed Preparedness
   Visual language: near-black Barlow type on white, red accent (#c1272d),
   teal (#45818e) as a second accent used sparingly, warm hairlines.
   Matches the Quarto site design. No logo, no hexagon.
   ========================================================================== */

:root {
  --background: #ffffff;
  --surface: #ffffff;
  --band: #f4f3f0;          /* tinted band */
  --band-strong: #eae8e3;
  --text: #16181c;          /* near-black ink */
  --muted: #5f646b;         /* secondary text */
  --line: #d0ceca;          /* warm hairline */
  --accent: #c1272d;        /* red */
  --accent-deep: #9c1f24;
  --accent-2: #45818e;      /* teal, second accent */
  --accent-2-deep: #36666f;
  --radius: 4px;
  --bar: 0.34em;

  color-scheme: light;
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 100%;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

p {
  margin-bottom: 1.4rem;
}

a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

button, input, select {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 0.2rem solid var(--text);
  outline-offset: 0.2rem;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  background: var(--text);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(100% - 3rem, 70rem);
  margin-inline: auto;
}

.measure {
  max-width: 68ch;
}

/* Highlights: red text, as on the Quarto site */
.mark,
.hl {
  color: var(--accent);
  font-weight: 600;
  background: none;
}

/* Second accent: teal, use sparingly */
.hl-teal,
.mark--teal {
  color: var(--accent-2);
  font-weight: 600;
  background: none;
}

/* ---- No logo: hide the hexagon mark entirely ---------------------------- */
.hex,
.hex__ring,
.hex-mark {
  display: none !important;
}

/* ---- Header & navigation ------------------------------------------------ */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.masthead {
  display: flex;
  min-height: 5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
}

.wordmark:hover,
.wordmark:hover .wordmark__text {
  background: transparent;
  color: var(--text);
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.primary-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: transparent;
  box-shadow: none;
  color: var(--text);
}

/* Dropdown Menu for Categories */
.dropdown-container {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  min-width: 200px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  display: none;
  z-index: 10;
  list-style: none;
  margin: 0;
}

.dropdown-container:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 0.5rem 1rem;
}

.dropdown-menu li:hover {
  background: var(--band);
}

.dropdown-menu a {
  display: block;
  color: var(--text);
  text-decoration: none;
  text-transform: none;
  font-weight: 500;
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.hero h1,
.hero__intro {
  margin-left: auto;
  margin-right: auto;
}

/* small uppercase label above a heading, in red */
.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1, h2, h3, h4 {
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  max-width: 20ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.3rem, 5vw, 3.1rem);
  line-height: 1.08;
  text-transform: uppercase;
}

/* Section headings: short red rule above */
h2 {
  position: relative;
  margin-bottom: 1.6rem;
  padding-top: 1.2rem;
  font-size: clamp(1.6rem, 3vw, 1.9rem);
  line-height: 1.2;
}

h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--accent);
}

/* a heading directly under an eyebrow gets no rule of its own */
.eyebrow + h2 {
  padding-top: 0;
}

.eyebrow + h2::before {
  display: none;
}

.hero h2::before {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.15rem;
}

.hero__intro {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  color: var(--muted);
  font-style: normal;
}

code {
  background-color: rgba(193, 39, 45, 0.07);
  color: var(--accent-deep);
}

/* ---- Catalog Layout: Sidebar + Results ---------------------------------- */
.catalog-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}

/* Filter Panel (Left Sidebar) */
.filter-panel {
  position: sticky;
  top: 2rem;
  height: fit-content;
}

.filter-panel > details {
  margin-bottom: 1rem;
}

.filter-panel > summary {
  cursor: pointer;
  font-weight: 700;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent);
}

.filter-groups {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.filter-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-options {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.filter-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.6rem;
}

.filter-option input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  accent-color: var(--accent);
}

.filter-option label {
  font-size: 0.95rem;
  line-height: 1.45;
  cursor: pointer;
}

/* Catalog Controls (Search Bar) */
.catalog-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--band);
  margin-bottom: 2rem;
}

.catalog-controls .control {
  flex: 1 1 16rem;
}

.control {
  display: grid;
  gap: 0.5rem;
}

.control label {
  font-size: 0.9rem;
  font-weight: 600;
}

.control input {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.control input:hover,
.control input:focus {
  border-color: var(--text);
}

.clear-filters {
  flex: 0 0 auto;
  min-height: 3rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  background: var(--surface);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.clear-filters:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Results Section ---------------------------------------------------- */
.section {
  padding-block: 0;
}

.section + .section {
  padding-top: 3.5rem;
}

.results-header {
  display: flex;
  min-height: 2.5rem;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.results-header h2 {
  margin-bottom: 0;
}

.results-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.results-note {
  margin: -0.5rem 0 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.filter-count {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Tool Card as Accordion --------------------------------------------- */
.tools-list {
  display: block;
}

.tool-card {
  border-bottom: 1px solid var(--line);
}

.tool-card summary {
  display: grid;
  grid-template-columns: 1.25rem minmax(12rem, 0.8fr) minmax(18rem, 1.2fr);
  gap: 1rem;
  padding: 1.2rem 0;
  cursor: pointer;
  list-style: none;
}

.tool-card summary::-webkit-details-marker {
  display: none;
}

.tool-card summary::before {
  color: var(--accent);
  content: "+";
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.tool-card[open] > summary::before {
  content: "−";
}

.tool-card .tool-identity {
  display: block;
  min-width: 0;
}

.tool-card .tool-name,
.tool-card .tool-producer {
  display: block;
}

.tool-card .tool-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.tool-card .tool-producer {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.tool-card .tool-purpose {
  max-width: 60ch;
  color: var(--muted);
}

.tool-card .tool-body {
  padding: 0 2rem 2.25rem 3.5rem;
}

.tool-card .tool-facts {
  display: grid;
  grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr);
  max-width: 58rem;
  margin: 0;
  border-top: 1px solid var(--line);
}

.tool-card .tool-term {
  margin: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.tool-card .tool-definition {
  margin: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--background);
  border-top: 1px solid var(--line);
  box-shadow: none;
  margin-top: 4rem;
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 1fr);
  gap: 3rem;
  padding-block: 1.6rem;
  font-size: 0.87rem;
  color: var(--muted);
}

.footer-layout p {
  max-width: 68ch;
  margin-bottom: 0.65rem;
}

.footer-layout p:last-child {
  margin-bottom: 0;
}

.footer-note {
  color: var(--muted);
}

.footer-note a {
  color: var(--muted);
  text-decoration-color: var(--accent);
}

.footer-note a:hover {
  color: var(--accent);
}

/* ---- Homepage: photo band ----------------------------------------------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.photo-card {
  margin: 0;
}

.photo-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.photo-card figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---- Homepage: catalog cards (open cards, as on the Quarto site) -------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2.6rem 1.25rem;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem 1.5rem;
  border: none;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
  color: inherit;
}

.catalog-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.catalog-card:hover h3 {
  color: var(--accent);
}

.catalog-card__count {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.catalog-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.6;
}

/* ---- Pilots page: hardware lists ---------------------------------------- */
.hw-list {
  margin: 0 0 0.25rem;
  padding-left: 1.25rem;
}

.hw-list .hw-item {
  margin-bottom: 0.45rem;
}

.hw-list .hw-qty,
.hw-list .hw-details {
  color: var(--muted);
}

/* ---- Library cards ------------------------------------------------------ */
.tool-card summary.pub-summary {
  grid-template-columns: 1.25rem minmax(0, 1fr);
}

.pub-summary-body {
  display: grid;
  gap: 0.25rem;
}

.pub-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.pub-authors {
  color: var(--muted);
  font-size: 0.9rem;
}

.pub-year {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.pub-type {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---- Guides page: recipes with numbered steps --------------------------- */
.guide-subhead {
  margin: 1.5rem 0 0.5rem;
  font-weight: 700;
}

.guide-prereqs {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.35rem;
}

.guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
  display: grid;
  gap: 1.25rem;
}

.guide-steps > li {
  position: relative;
  padding-left: 2.75rem;
  counter-increment: guide-step;
}

.guide-steps > li::before {
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  display: flex;
  width: 1.9rem;
  height: 1.9rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--band);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.guide-step-title {
  display: block;
  margin-bottom: 0.35rem;
}

.guide-step-detail {
  display: block;
  max-width: 62ch;
  line-height: 1.6;
  color: var(--text);
}

.guide-notes {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--band);
  border-radius: var(--radius);
  max-width: 60ch;
}

.guide-links {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  margin: 1.25rem 0 0;
  padding: 0;
}

.guide-code {
  margin: 0.75rem 0 0;
  padding: 1rem 1.25rem;
  background: var(--band);
  border-radius: var(--radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-x: auto;
  max-width: 46rem;
}

.guide-code code {
  font-family: inherit;
}

/* keep line breaks and lists inside guide text */
.guide-step-detail,
.guide-notes,
.tool-card .tool-purpose {
  white-space: pre-line;
}

/* ---- Learn page: open learning module ---------------------------------- */
.learn-layout {
  padding-top: 3rem;
}

.learn-toc__head {
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent);
  font-weight: 700;
}

.learn-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.15rem;
}

.learn-toc a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  line-height: 1.35;
  text-decoration: none;
  color: var(--text);
}

.learn-toc a:hover {
  color: var(--accent);
}

.learn-toc__label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.learn-content {
  min-width: 0;
  max-width: 46rem;
}

.learn-unit {
  scroll-margin-top: 1.5rem;
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.learn-unit:last-child {
  border-bottom: none;
}

.learn-unit h3 {
  margin: 2.2rem 0 0.8rem;
  font-size: 1.3rem;
  scroll-margin-top: 1.5rem;
}

.learn-unit h4 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.05rem;
}

.learn-unit ul,
.learn-unit ol {
  margin: 0 0 1.4rem;
  padding-left: 1.3rem;
}

.learn-unit li {
  margin-bottom: 0.35rem;
}

.learn-unit pre {
  margin: 0 0 1.4rem;
  padding: 1rem 1.25rem;
  background: var(--band);
  border-radius: var(--radius);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-x: auto;
}

.learn-unit pre code {
  background: none;
  color: var(--text);
}

.table-wrap {
  margin: 0 0 1.6rem;
  overflow-x: auto;
}

.learn-unit table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.learn-unit th {
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 2px solid var(--text);
  text-align: left;
  font-weight: 700;
  vertical-align: bottom;
}

.learn-unit td {
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.learn-unit blockquote {
  margin: 0 0 1.4rem;
}

/* ---- Responsive Design -------------------------------------------------- */
@media (max-width: 768px) {
  .masthead {
    flex-direction: column;
    gap: 1rem;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .dropdown-menu {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-left: 1rem;
  }

  .dropdown-container:hover .dropdown-menu {
    display: block;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .learn-toc {
    position: static;
  }

  .filter-panel > summary {
    display: none;
  }

  .tool-card summary {
    grid-template-columns: 1.25rem 1fr;
  }
}

@media (max-width: 40rem) {
  .clear-filters {
    width: 100%;
  }
}