@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.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 {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.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;
}

:root {
  --paper: #f3efe4;
  --ink: #12211a;
  --muted: #3d4f46;
  --line: #d9d1c3;
  --card: #fffcf5;
  --teal: #0a5748;
  --leaf: #0a5748;
  --leaf-bright: #1aa37a;
  --chip: #e7f4ee;
  --warn: #8a2f1a;
  --ok: #1c6b43;
  --shadow: 0 18px 40px rgba(20, 36, 28, 0.08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", "Noto Naskh Arabic", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f3efe4;
  color: #12211a;
  font: 18px/1.55 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: #083f34; }
h1, h2, h3, .logo-text {
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.4rem, 2vw, 1.85rem); }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 32px)); }
.skip {
  position: absolute; left: -999px; top: 8px;
}
.skip:focus { left: 8px; background: #fff; padding: 8px 12px; z-index: 20; }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(243, 239, 228, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 68px;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo-mark { color: var(--teal); font-size: 1.3rem; }
.logo-text { font-size: 1.25rem; }
.nav { display: flex; gap: 18px; margin-inline-start: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--teal); }
.top-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  margin-inline-start: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
}
.drawer {
  display: flex; flex-direction: column; gap: 12px;
  padding: 8px 16px 18px;
  border-top: 1px solid var(--line);
}
.drawer[hidden] { display: none !important; }
.drawer a { color: var(--ink); font-weight: 600; text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; text-decoration: none; border: 0; cursor: pointer;
  font: 700 1.125rem/1.1 var(--sans);
  border-radius: 999px; padding: 12px 18px;
}
a.btn.btn-solid,
button.btn.btn-solid {
  background: #0a5748;
  color: #ffffff;
}
a.btn.btn-solid:hover,
button.btn.btn-solid:hover,
a.btn.btn-solid:focus,
button.btn.btn-solid:focus {
  background: #084338;
  color: #ffffff;
}
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; width: 100%; max-width: 360px; }
.hero {
  padding: 28px 0 4px;
  background:
    radial-gradient(1000px 280px at 10% -10%, rgba(25, 163, 122, 0.18), transparent 60%),
    linear-gradient(#e8f3ec, var(--paper));
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .78rem; font-weight: 700; color: var(--teal); margin: 0 0 10px;
}
.lede { font-size: 1.08rem; color: var(--muted); max-width: none; }
.search-hero {
  display: flex; gap: 8px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line);
  padding: 8px; border-radius: 999px; width: 100%; max-width: 640px;
  box-shadow: var(--shadow);
}
.search-hero input {
  flex: 1; border: 0; background: transparent; font: inherit; padding: 8px 14px; outline: none;
  color: #12211a;
}
.search-hero input::placeholder {
  color: #3d4f46;
  opacity: 1;
}
.section { padding: 22px 0; }
.section > h2 { margin: 0 0 14px; }
.ad-slot {
  width: 100%;
  max-width: 100%;
  margin: 16px 0 0;
  overflow-x: auto;
  text-align: center;
}
.ad-slot iframe,
.ad-slot img,
.ad-slot ins,
.ad-slot video {
  max-width: 100%;
}
.hero-inner > .ad-slot { max-width: 640px; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-bottom: 18px;
}
.section-head p { color: var(--muted); margin: 0; }
.cat-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}
.cat-grid a {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; text-decoration: none; color: var(--ink); min-height: 110px;
}
.cat-grid a:hover { border-color: var(--leaf); }
.cat-icon { font-size: 1.3rem; }
.cat-grid span { color: var(--muted); font-size: .9rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, 200px);
  justify-content: start;
  gap: 16px;
}
.card {
  width: 200px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-media,
.listing-cover {
  width: 168px; height: 168px; border-radius: 18px; overflow: hidden;
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.card-media { margin: 16px auto 0; text-decoration: none; }
.listing-cover { margin: 0 0 20px; }
.card-media img,
.listing-cover img { width: 168px; height: 168px; object-fit: cover; display: block; }
.card-initials { font-family: var(--serif); font-size: 2rem; }
.card-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.card-title {
  margin: 0; font-size: 1rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--teal); }
.card-facts, .card-meta, .muted, .tiny { color: var(--muted); }
.card-facts {
  margin: 0; font-size: .8rem; display: flex; flex-wrap: wrap; gap: 4px 10px;
}
.card-actions {
  display: flex; align-items: center; gap: 8px; margin: auto 0 0;
}
.btn-card {
  padding: 8px 12px; font-size: .82rem; flex: 1; max-width: none;
}
.card-joins { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chip {
  background: var(--chip); color: var(--teal); text-decoration: none;
  border-radius: 999px; padding: 3px 9px; font-size: .78rem; font-weight: 700;
}
.chip-channel { background: #e7eef8; color: #1d4e89; }
.chip-community { background: #f8eadc; color: #8a4b16; }
.chip-pin { background: #14241c; color: #ffffff; }
.band { background: #e4eee7; padding: 48px 0; }
.split { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: start; }
.steps { padding-left: 1.1rem; }
.steps li { margin-bottom: 12px; }
.note {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px;
}
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-tease {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px;
}
.post-tease h2, .post-tease h3 { margin: .2rem 0 .6rem; font-size: 1.25rem; }
.post-tease a { color: var(--ink); text-decoration: none; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 16px; margin-bottom: 8px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.page-head { padding: 36px 0 8px; }
.page-doc { padding: 36px 0 8px; }
.listing-actions { margin: 18px 0 8px; }
.listing-main { max-width: 70rem; width: 100%; margin-inline: auto; }
.page-doc h1,
.listing-main h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  letter-spacing: -0.018em;
  line-height: 1.28;
  overflow-wrap: anywhere;
  margin: 0 0 .7rem;
}
.listing-kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin: 0 0 12px; color: var(--muted); font-size: .92rem; font-weight: 500;
}
.listing-kicker a { color: var(--muted); text-decoration: none; }
.listing-kicker a:hover { color: var(--teal); text-decoration: underline; }
.listing-body { padding-bottom: 40px; }
.listing-body .chips { margin-top: 18px; }
.listing-report { margin: 36px 0 0; }
.prose { overflow-wrap: anywhere; }
.prose > *:first-child { margin-top: 0; }
.prose :where(p, li) { color: #24352c; }
.prose h2 { margin-top: 1.6em; }
.form, .filters { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label, .filters label { display: grid; gap: 6px; font-weight: 650; font-size: .95rem; }
input, select, textarea {
  font: inherit; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff;
}
.hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
.errors { background: #fdece8; color: var(--warn); border-radius: 12px; padding: 12px 18px; }
.ok { color: var(--ok); font-weight: 650; }
.empty {
  text-align: center; padding: 40px 16px;
  background: var(--card); border: 1px dashed var(--line); border-radius: 20px;
}
.filters {
  grid-template-columns: 1fr 1fr 1fr auto;
  background: var(--card); padding: 14px; border: 1px solid var(--line);
  border-radius: 18px; margin-bottom: 22px; align-items: end;
}
.pager ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 16px 0 0; justify-content: center; align-items: center; }
.pager a, .pager-dir {
  display: grid; place-items: center; min-width: 40px; height: 40px;
  border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  padding: 0 14px; font-weight: 700; font-size: .95rem; background: var(--card);
}
.pager .pager-dir { min-width: 7.5rem; }
.pager .is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .is-off {
  opacity: 1;
  color: #3d4f46;
  background: #e6e0d2;
  border-color: #b7ae9c;
  cursor: default;
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--line); }
.foot { border-top: 1px solid var(--line); padding: 14px 0; margin-top: 16px; }
.foot-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 24px;
  flex-wrap: wrap; min-height: 40px;
}
.foot .copy { padding: 0; margin: 0; font-size: .92rem; color: var(--muted); }
.foot .copy a { color: var(--ink); text-decoration: none; font-weight: 700; font-family: var(--serif); }
.foot .copy a:hover { color: var(--teal); }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.foot-links a {
  color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600;
  padding: 4px 0; border-radius: 0;
}
.foot-links a + a { border-inline-start: 1px solid var(--line); margin-inline-start: 8px; padding-inline-start: 8px; }
.foot-links a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
[dir="rtl"] body { letter-spacing: 0; }
@media (max-width: 980px) {
  .post-grid, .split { grid-template-columns: 1fr 1fr; }
  .nav, .top-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { padding-top: 32px; }
  .search-hero { flex-direction: column; border-radius: 18px; }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
  .card { width: auto; }
  .card-media {
    width: calc(100% - 16px);
    max-width: 168px;
    height: auto;
    aspect-ratio: 1;
  }
  .card-media img { width: 100%; height: 100%; }
  .post-grid, .split, .form-row, .filters, .cat-grid {
    grid-template-columns: 1fr;
  }
  .btn-lg, .join { max-width: none; }
  .foot-bar { gap: 6px 12px; }
  .foot-links a + a { margin-inline-start: 6px; padding-inline-start: 6px; }
}
