/* ============================================================
   Gift Trade Direct — site stylesheet
   Editorial / industry-resource aesthetic.
   Type-led, generous whitespace, restrained color use.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors (sampled from logo) */
  --green: #6B9B37;
  --green-dark: #547A2A;
  --green-light: #EFF5E2;
  --orange: #E8512C;
  --orange-dark: #C03F1D;

  /* Surface */
  --bg: #FAF8F2;
  --surface: #FFFFFF;
  --border: #E8E2D5;
  --border-strong: #C9C2B2;

  /* Text */
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-mute: #7A7A7A;

  /* Type scale */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing */
  --max-width: 880px;
  --max-width-narrow: 640px;
  --gutter: clamp(1.25rem, 4vw, 2rem);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

/* ---------- Skip link (accessibility) ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1rem;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Layout containers ---------- */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.92);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.85rem;
  letter-spacing: -0.01em;
}
.site-logo img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}
.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.site-logo .logo-name {
  font-style: italic;
  font-weight: 500;
}
.site-logo .logo-domain {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Primary nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--green-dark); }
.site-nav a.active { color: var(--ink); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
}

/* Mobile menu button */
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink);
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 0.85rem var(--gutter);
    border-bottom: 1px solid var(--border);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a.active::after { display: none; }
  .site-nav a.active { background: var(--green-light); }
  .menu-btn { display: inline-block; }
}

/* ---------- Main content ---------- */
main {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  min-height: 60vh;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.6em;
  line-height: 1.15;
}
h1 {
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.022em;
}
h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin-top: 2.5em;
}
h3 {
  font-size: 1.25rem;
  margin-top: 2em;
  font-weight: 600;
}
h4 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
  margin-top: 1.5em;
}

p { margin: 0 0 1.1em; max-width: 65ch; }
.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
}

a {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s var(--ease);
}
a:hover { color: var(--orange); }

strong { font-weight: 600; }
em { font-style: italic; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Eyebrow / section labels */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "•";
  color: var(--green);
  margin-right: 0.6em;
  font-size: 1.3em;
  vertical-align: -0.06em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.1s var(--ease);
  font-family: var(--font-body);
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn.btn-secondary:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn.btn-orange { background: var(--orange); }
.btn.btn-orange:hover { background: var(--orange-dark); }

.btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(2rem, 5vw, 4rem);
}
.hero h1 {
  max-width: 18ch;
  margin-bottom: 0.4em;
}
.hero .lead {
  max-width: 42ch;
  margin-bottom: 0;
}

/* ---------- Three-up cards (home features) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.6rem 1.4rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
  text-decoration: none;
  color: inherit;
  display: block;
}
.feature-card:hover {
  border-color: var(--green);
  color: inherit;
  transform: translateY(-2px);
}
.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}
.feature-card .arrow {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- Trade show calendar entries ---------- */
.show-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}
.show-entry {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
}
@media (max-width: 720px) {
  .show-entry {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
.show-dates {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--green-dark);
  line-height: 1.3;
}
.show-dates .secondary {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-mute);
  font-weight: 400;
  font-family: var(--font-body);
  margin-top: 0.2em;
}
.show-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 0.3em;
}
.show-meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 0.4em;
}
.show-note {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.82rem;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.5em;
  font-weight: 500;
}
.show-link {
  font-size: 0.9rem;
  font-weight: 600;
}

.show-list-completed {
  background: var(--green-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 2rem 0;
}
.show-list-completed strong { color: var(--ink); }

/* ---------- Glossary ---------- */
.glossary {
  margin: 2rem 0;
}
.glossary dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-top: 1.5rem;
}
.glossary dt:first-child { margin-top: 0; }
.glossary dd {
  margin: 0.3rem 0 0;
  color: var(--ink);
  max-width: 65ch;
}

/* ---------- Brand profile pages ---------- */

/* Brands index — two-column layout */
.brands-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 3rem;
  margin: 1rem 0 3rem;
  align-items: start;
}
@media (max-width: 820px) {
  .brands-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.archive-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  position: sticky;
  top: 90px;
}
.archive-list h3 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.archive-list ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: archive;
}
.archive-list li {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.archive-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.archive-list a {
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.archive-list a:hover { color: var(--green-dark); }
.archive-list a.current {
  color: var(--green-dark);
}
.archive-date {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.2rem;
}
.archive-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.25;
}
.archive-blurb {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-top: 0.2rem;
  line-height: 1.4;
}

@media (max-width: 820px) {
  .archive-list {
    position: static;
    top: auto;
  }
}

.profile-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 3rem;
}
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 1rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.profile-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
}
.profile-link {
  display: block;
  padding: 1.5rem 1.75rem;
  text-decoration: none;
  color: inherit;
}
.profile-link:hover { color: inherit; }
.profile-meta {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.4rem;
}
.profile-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.profile-blurb {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0 0 0.85rem;
  max-width: 60ch;
}
.profile-arrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.04em;
}

.profile-breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-mute);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.profile-breadcrumb a {
  color: var(--ink-mute);
  text-decoration: none;
}
.profile-breadcrumb a:hover { color: var(--green-dark); text-decoration: underline; }

.profile-logo {
  display: block;
  max-width: 140px;
  max-height: 80px;
  width: auto;
  height: auto;
  margin: 0 0 1.25rem;
  /* If a logo file is missing, the alt text shows in a small subtle way.
     Border-box and explicit max sizing keep the layout stable. */
}

.profile-standfirst {
  font-style: italic;
  border-left: 3px solid var(--green);
  padding-left: 1.25rem;
  margin: 0 0 2rem;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0;
  margin: 2rem 0 2.5rem;
}
.quick-facts > div {
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0.75rem;
  align-items: baseline;
}
.quick-facts > div:nth-last-child(-n+2) { border-bottom: none; }
@media (max-width: 600px) {
  .quick-facts { grid-template-columns: 1fr; }
  .quick-facts > div:not(:last-child) { border-bottom: 1px solid var(--border); }
}
.quick-facts dt {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}
.quick-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ---------- Email signup ---------- */
.signup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin: 3rem 0;
}
.signup h2 {
  margin-top: 0;
  font-size: 1.5rem;
}
.signup p {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.signup-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 520px;
}
.signup-form input[type="email"],
.signup-form input[type="text"] {
  grid-column: 1 / -1;
}
.signup-form button {
  grid-column: 1 / -1;
  justify-self: start;
}
@media (max-width: 480px) {
  .signup-form { grid-template-columns: 1fr; }
}
.field {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s var(--ease);
}
.field:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-light);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: #F0EAD8;                              /* warm tan, subtly darker than page bg */
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
  font-size: 0.95rem;                               /* up from 0.9rem */
  color: var(--ink-soft);
}
/* Green accent stripe at the very top of the footer */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
}

/* Cluster wraps brand + nav. At ≥880px they're side-by-side in one row;
   below that the cluster becomes a vertical stack and nav reverts to
   its 2-col grid layout. */
.footer-cluster {
  margin-bottom: 2.5rem;
}

/* Row 1 (mobile only): brand block stacks above nav */
.footer-brand-row {
  margin-bottom: 2.5rem;
}

/* Nav grid — 2 cols on mobile (default), 4 cols on desktop (override below).
   Never 1 col: the 2-col-minimum nav rule holds at every breakpoint. */
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2rem;
}

/* Wide viewports: brand + 4 nav cols, all in single row. */
@media (min-width: 880px) {
  .footer-cluster {
    display: grid;
    grid-template-columns: 1.5fr 4fr;
    column-gap: 2rem;
    align-items: start;
  }
  .footer-brand-row {
    margin-bottom: 0;
  }
  .footer-nav {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.3em;
}
.footer-logo {
  display: block;
  max-width: 180px;
  width: 100%;
  height: auto;
  margin: 0 0 0.85rem;
}
.footer-tag {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 1em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: 0.55em; }
.footer-col a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s var(--ease);
}
.footer-col a:hover {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal {
  border-top: 1px solid var(--border-strong);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.muted { color: var(--ink-mute); }
.small { font-size: 0.88rem; }
.note {
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-style: italic;
  margin-top: 2rem;
}
.divider-dot {
  text-align: center;
  margin: 3rem 0;
  color: var(--green);
  letter-spacing: 0.5em;
  font-size: 1.1rem;
}
.divider-dot::before { content: "• • •"; }

/* ---------- Brands directory page ---------- */

/* "View all profiles" link in the sidebar */
.archive-view-all {
  display: block;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  text-decoration: none;
}
.archive-view-all:hover { color: var(--orange-dark); }

/* Section headings on the directory page */
.directory-section-h {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.directory-section-h:first-of-type {
  margin-top: 2rem;
  padding-top: 0;
  border-top: none;
}
.directory-intro {
  color: var(--ink-soft);
  margin: -0.5rem 0 1.5rem;
}

/* Recently profiled — medium 2x2 grid (4 across at full width) */
.recent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}
@media (min-width: 720px) {
  .recent-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.recent-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.25rem 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.recent-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  color: inherit;
}
.recent-meta {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.4rem;
}
.recent-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.recent-blurb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.45;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 1.5rem;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.filter-btn:hover {
  border-color: var(--green);
  color: var(--green-dark);
}
.filter-btn.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.filter-btn.is-active:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}
.filter-count {
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.65;
}
.filter-btn.is-active .filter-count { opacity: 0.85; }

/* Directory grid — compact cards, auto-fill 3 columns at desktop */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
  margin: 0 0 2rem;
}
.directory-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.directory-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  color: inherit;
}
.directory-card.is-hidden {
  display: none;
}
.directory-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.directory-date {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  flex-shrink: 0;
}
.directory-tag {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.directory-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.22;
  margin: 0 0 0.4rem;
  color: var(--ink);
}
.directory-blurb {
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.45;
}
.filter-empty {
  text-align: center;
  color: var(--ink-mute);
  padding: 2rem 1rem;
  font-style: italic;
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .signup, .menu-btn { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
