/* cooperatives.org.uk — shared stylesheet */
:root {
  --green: #1b6b4a;
  --green-dark: #134d36;
  --green-light: #e8f3ee;
  --ink: #1d2421;
  --ink-soft: #4a554f;
  --line: #dde5e1;
  --bg: #ffffff;
  --bg-soft: #f6f9f7;
  --amber: #c97a1a;
  --max: 1080px;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.25; color: var(--ink); font-weight: 700; }
h1 { font-size: 2.2rem; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: 1.55rem; margin: 2em 0 .6em; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; }
p { margin: 0 0 1.1em; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(6px);
  background: rgba(255,255,255,.92);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--green);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1rem;
}
.brand .tld { color: var(--ink-soft); font-weight: 600; }
nav.main a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .96rem;
  margin-left: 22px;
}
nav.main a:hover { color: var(--green); text-decoration: none; }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  nav.main { display: none; }
  nav.main.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px;
  }
  nav.main.open a { margin: 8px 0; }
  .nav-toggle {
    display: block; background: none; border: 0; cursor: pointer;
    font-size: 1.5rem; color: var(--ink); padding: 4px 8px;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(170deg, var(--green-light) 0%, #fff 70%);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: 2.6rem; max-width: 16ch; }
.hero .lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 56ch; margin-bottom: 1.6em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 600px) {
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 2rem; }
  h1 { font-size: 1.8rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--green);
  transition: background .15s;
}
.btn:hover { background: var(--green-dark); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--green); }
.btn.ghost:hover { background: var(--green-light); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  transition: box-shadow .15s, transform .15s, border-color .15s;
  display: block;
  color: var(--ink);
}
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--green); text-decoration: none; }
.card .eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--green); font-weight: 700; }
.card h3 { margin: .35em 0 .3em; }
.card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* ---------- Sections ---------- */
section { padding: 48px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 28px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Article ---------- */
article { padding: 40px 0 56px; }
article h2 { border-top: 1px solid var(--line); padding-top: 1.2em; }
article ul, article ol { margin: 0 0 1.2em; padding-left: 1.4em; }
article li { margin-bottom: .5em; }
.meta { color: var(--ink-soft); font-size: .9rem; margin-bottom: 1.5em; }
.callout {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 1.5em 0;
}
.callout.warn { background: #fdf3e7; border-left-color: var(--amber); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; margin: 1.5em 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); font-weight: 700; }
tbody tr:hover { background: var(--bg-soft); }

/* ---------- Directory ---------- */
.dir-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0; }
.chip {
  border: 1px solid var(--line); background: #fff;
  padding: 7px 16px; border-radius: 20px; cursor: pointer;
  font-size: .9rem; font-weight: 600; color: var(--ink-soft);
}
.chip.active, .chip:hover { background: var(--green); color: #fff; border-color: var(--green); }
.listing {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 14px; background: #fff;
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
}
.listing h3 { margin: 0 0 .2em; font-size: 1.1rem; }
.listing .tags { margin-top: 8px; }
.tag {
  display: inline-block; background: var(--green-light); color: var(--green-dark);
  font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 12px; margin: 2px 4px 2px 0;
}
.badge-featured {
  background: var(--amber); color: #fff; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 4px;
}

/* ---------- Ad slot (placeholder) ---------- */
.ad-slot {
  border: 1px dashed var(--line); border-radius: 8px;
  background: var(--bg-soft); color: #9aa7a0;
  text-align: center; padding: 22px; margin: 2em 0;
  font-size: .85rem; letter-spacing: .03em;
}

/* ---------- Disclaimer banner ---------- */
.disclaimer {
  background: #fdf3e7; border-bottom: 1px solid #f0dcc0;
  font-size: .85rem; color: #7a5a23; text-align: center; padding: 8px 20px;
}
.disclaimer a { color: #7a5a23; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #c3cdc8;
  padding: 48px 0 32px; margin-top: 64px; font-size: .92rem;
}
.site-footer a { color: #e8f0ec; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand .logo { width: 32px; height: 32px; border-radius: 7px; background: var(--green); display: grid; place-items: center; color: #fff; font-weight: 800; }
.footer-bottom { border-top: 1px solid #2c3530; margin-top: 32px; padding-top: 20px; color: #8a958f; font-size: .82rem; }

/* ---------- Misc ---------- */
.lead-list { list-style: none; padding: 0; }
.lead-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.lead-list li::before { content: "→"; color: var(--green); font-weight: 700; }
.pill { display:inline-block; background:var(--green-light); color:var(--green-dark); font-size:.78rem; font-weight:700; padding:4px 12px; border-radius:20px; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.mt0 { margin-top: 0; }
