/* TribeListings design system. One file for every page: tokens, base, layout, components, then page-specific blocks.
   Every class a page renders is defined here (see src/*.js). Add new classes here, not inline. */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f8f5ef;            /* page background, warm off-white to match the gold accents */
  --surface: #ffffff;       /* cards, panels, forms */
  --surface-2: #ecece8;     /* table heads, quiet panels */
  --ink: #111827;           /* headings and strong text */
  --text: #1f2937;          /* body text */
  --muted: #5b6472;         /* secondary text, meets 4.5:1 on --bg */
  --line: #e2e2dc;          /* borders and rules */
  --violet: #1f2937;
  --pink: #b7791f;          /* accent, focus, hover */
  --link: #8a5a0c;          /* link text, darker for contrast on white */
  --coral: #d9462b;         /* alerts and error text */
  --sun: #f5a524;           /* focus ring, stars */
  --ok: #1f7a4d;
  --grad: linear-gradient(120deg, #111827, #4b5563 55%, #b7791f);
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
  --shadow: 0 10px 30px -18px rgba(17, 24, 39, .28);
  --wrap: 1120px;
  --measure: 66ch;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, Arial, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; margin-bottom: 14px; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 800; margin-bottom: 12px; }
h3 { font-size: 1.1rem; font-weight: 700; }
.sec-ico { display: inline-block; flex: none; width: 1.1em; height: 1.1em; padding: .24em; box-sizing: border-box; border-radius: .38em; background: linear-gradient(135deg, #f3edff, #ffe9f1); color: var(--violet); vertical-align: -.16em; margin-right: .42em; }
p { margin: 0 0 16px; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--pink); }
img, svg { max-width: 100%; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wordmark { font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.wordmark .site-logo { display: block; height: 38px; width: auto; max-width: none; }
@media (max-width: 480px) { .wordmark .site-logo { height: 32px; } }
.link { color: var(--link); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.book-link { color: var(--link); font-weight: 700; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  background: var(--grad); color: #fff; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: normal; text-align: center;
  box-shadow: 0 8px 22px -12px rgba(183, 121, 31, .7); transition: transform .15s, box-shadow .15s;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(183, 121, 31, .8); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { color: var(--ink); border-color: var(--pink); }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn.danger { background: var(--surface); color: #b42318; border-color: rgba(180, 35, 24, .4); box-shadow: none; }
.btn.danger:hover { background: #fdf0ee; color: #b42318; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.inline-actions .btn { font-size: 13px; padding: 8px 14px; min-height: 36px; }
.admin-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 22px; }
.admin-actions a { color: var(--muted); }
.row-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-width: 0; max-width: 100%; }
.row-form input[type="email"] { width: auto; min-width: 0; flex: 1 1 180px; }
.row-form select { width: auto; flex: 1 1 160px; }
.row-form .btn { white-space: normal; }

/* ---------- 4. Header and navigation ---------- */
header.wrap { padding-top: 0; }
nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu-links { display: flex; align-items: center; gap: 28px; }
.menu a.link { color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.menu a.link:hover, .menu a.link.on { color: var(--ink); }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .menu { gap: 0; }
  .menu-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 50; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow);
  }
  nav.open .menu-links { display: flex; }
  .menu-links a.link { padding: 14px 16px; border-radius: 10px; font-size: 16px; color: var(--ink); }
  .menu-links a.link:hover { background: var(--bg); }
}
header.wrap .menu { flex-wrap: wrap; justify-content: flex-end; }

/* ---------- 5. Page shell ---------- */
main.article { max-width: 840px; padding: 28px 24px 56px; }
main.article.article-wide { max-width: var(--wrap); }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 18px; overflow-wrap: anywhere; }
.crumbs a { color: var(--muted); }
.more { margin: 28px 0 0; }
.more a { font-weight: 700; color: var(--link); text-decoration: none; }
.more a:hover { text-decoration: underline; }
main > section, .article > section { padding: 48px 0 0; margin-top: 48px; border-top: 1px solid var(--line); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 40em; margin: 0 0 28px; }
.answer { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--pink); border-radius: 14px; padding: 20px 24px; margin: 0 0 32px; box-shadow: var(--shadow-sm); }
.answer b { color: var(--ink); }
.answer a:not(.btn) { color: var(--link); }
.answer .actions { margin: 16px 0 0; }
.answer p:last-child { margin-bottom: 0; }

/* ---------- 6. Footer ---------- */
footer.site-foot { margin-top: 64px; background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 0; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.foot-brand p { margin: 12px 0 0; max-width: 300px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-h { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.foot-col a, .foot-base a { color: var(--muted); text-decoration: none; width: fit-content; }
.foot-col a:hover, .foot-base a:hover { color: var(--pink); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 28px; font-size: 13px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- 7. Home page ---------- */
/* Honeycomb motif: an irregular comb behind the top of the home page only.
   Body is transparent so the layer below it shows; it fades out lower down. */
body.home { position: relative; background: none; }
body.home::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: -1; pointer-events: none;
  background: url("/honeycomb.svg") center top / 100% auto repeat-y; opacity: .7;
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0,0,0,.55) 35%, rgba(0,0,0,.2) 70%, transparent 100%); mask-image: linear-gradient(#000 0%, rgba(0,0,0,.55) 35%, rgba(0,0,0,.2) 70%, transparent 100%);
}
/* Directory: a faint night-sky constellation behind the top of the page */
body.directory { position: relative; background: none; }
body.directory::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: -1; pointer-events: none;
  background: url("/constellation.svg") center top / 100% auto repeat-y; opacity: .7;
  -webkit-mask-image: linear-gradient(#000 0%, #000 50%, rgba(0,0,0,.6) 75%, rgba(0,0,0,.2) 90%, transparent 100%); mask-image: linear-gradient(#000 0%, #000 50%, rgba(0,0,0,.6) 75%, rgba(0,0,0,.2) 90%, transparent 100%);
}

/* Wave: a slow, small drift of the comb, triggered by background-motion.js */
@keyframes comb-wave {
  0% { transform: translateY(0) skewX(0deg); }
  50% { transform: translateY(-6px) skewX(0.6deg); }
  100% { transform: translateY(0) skewX(0deg); }
}
body.home.wave::before { animation: comb-wave 2.6s ease-in-out 1; }

/* Twinkle: the constellation dims and brightens once, triggered by background-motion.js */
@keyframes constellation-twinkle {
  0% { opacity: .7; }
  50% { opacity: .35; }
  100% { opacity: .7; }
}
body.directory.twinkle::before { animation: constellation-twinkle 3s ease-in-out 1; }
/* Bright stars sit in their own layer and shift colour during the twinkle */
body.directory::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: -1; pointer-events: none;
  background: url("/constellation-stars.svg") center top / 100% auto repeat-y; opacity: .8;
  -webkit-mask-image: linear-gradient(#000 0%, #000 50%, rgba(0,0,0,.6) 75%, rgba(0,0,0,.2) 90%, transparent 100%); mask-image: linear-gradient(#000 0%, #000 50%, rgba(0,0,0,.6) 75%, rgba(0,0,0,.2) 90%, transparent 100%);
}
@keyframes star-shift {
  0% { opacity: .8; filter: hue-rotate(0deg) saturate(1); }
  50% { opacity: 1; filter: hue-rotate(110deg) saturate(1.8); }
  100% { opacity: .8; filter: hue-rotate(0deg) saturate(1); }
}
body.directory.twinkle::after { animation: star-shift 3s ease-in-out 1; }

@media (prefers-reduced-motion: reduce) {
  body.home.wave::before, body.directory.twinkle::before, body.directory.twinkle::after { animation: none; }
}
/* Hero: copy on the left, a live featured-tribes panel on the right */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px 0 40px; margin: 0; border: 0; }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.4rem); line-height: 1.08; max-width: 13em; }
.hero .lead { margin-bottom: 28px; }
.hero-search { display: flex; gap: 10px; margin: 0 0 14px; max-width: 34em; }
.hero-search input { flex: 1 1 auto; min-height: 52px; border-radius: 999px; padding: 12px 20px; }
.hero-search .btn { flex: none; min-height: 52px; padding: 12px 26px; }
@media (max-width: 480px) { .hero-search { flex-direction: column; } .hero-search .btn { width: 100%; } }
.hero-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.hero-panel h2 { font-size: 1.1rem; margin-bottom: 14px; }
.feat-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.feat-list li { margin: 0; }
.feat { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--text); text-decoration: none; transition: border-color .15s; }
.feat:hover { border-color: var(--pink); color: var(--text); }
.feat .net-mark { width: 44px; height: 44px; font-size: 15px; }
.feat-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feat-name { font-weight: 800; color: var(--ink); line-height: 1.3; }
.feat-name .badge { margin-left: 6px; vertical-align: middle; }
.feat-text { font-size: 14px; color: var(--muted); line-height: 1.45; }
.feat-empty { color: var(--muted); font-size: 15px; padding: 8px 0; }
.hero-panel .more { margin: 0; font-size: 15px; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.stats > div { padding: 20px 24px; border-right: 1px solid var(--line); }
.stats.stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats > div:last-child { border-right: 0; }
.stats dt { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stats dd { margin: 4px 0 0; font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1.1; }

/* Shared section rhythm on the home page */
.steps-section, .types-section, .trust-section { margin-top: 64px; padding: 0; border: 0; }
.steps-section h2, .types-section h2, .trust-section h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.sub { color: var(--muted); font-size: 17px; margin: -4px 0 28px; max-width: 40em; }

/* How it works: numbered steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.steps li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.steps h3 { margin: 14px 0 8px; font-size: 1.1rem; color: var(--ink); }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; }

/* Browse by type: tiles with counts */
.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.type-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; min-height: 104px; justify-content: space-between; }
.type-card:hover { border-color: var(--pink); transform: translateY(-2px); color: var(--ink); }
.type-n { font-size: 1.6rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.type-name { font-weight: 700; font-size: 15px; }

/* Trust: three promises, each backed by how the site works */
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trust-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.trust-card h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--ink); }
.trust-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Owner call to action */
.owner-cta { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 64px; padding: 36px; border-radius: var(--radius-lg); background: linear-gradient(120deg, #fff4f8, #f3edff); border: 1px solid var(--line); }
.owner-cta h2 { font-size: 1.5rem; margin-bottom: 6px; }
.owner-cta p { margin: 0; color: var(--muted); max-width: 36em; }
.owner-cta .actions { margin: 0; }

/* FAQ sits under the owner call to action */
.owner-cta + h2 { margin-top: 64px; }

/* Tools band (every public page) */
.tools-band { margin-top: 64px; padding: 48px 0; background: var(--surface); border-top: 1px solid var(--line); }
.tools-band > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 28px 48px; align-items: start; }
.tools-band h2 { font-size: 1.4rem; margin: 0 0 8px; }
.tools-band .muted { margin: 0; font-size: 14px; grid-column: 1 / -1; }
.tools-band > .wrap > h2 + .tool-cards { grid-column: 2; }
.tool-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.tool-card {
  display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 24px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.tool-name { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--ink); }
.tool-blurb { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.tool-card .btn { align-self: flex-start; }
@media (max-width: 760px) {
  .tools-band > .wrap { grid-template-columns: 1fr; }
  .tools-band > .wrap > h2 + .tool-cards { grid-column: 1; }
}

/* Spacing between bare headings that follow a block (home FAQ, tribe page follow-up) */
.dir-cards { margin-bottom: 56px; }
.net-related + h2 { margin-top: 56px; }
.facts h2, .net-facts h2 { font-size: 1.2rem; margin-bottom: 10px; }

/* ---------- 8. Badges and tags ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px; line-height: 1.2; white-space: nowrap; text-decoration: none;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.badge.verified { background: var(--grad); color: #fff; border-color: transparent; }
.badge.claim { background: var(--surface); color: var(--link); border: 1px dashed rgba(184, 40, 95, .55); position: relative; z-index: 1; }
.badge.claim:hover { background: #fdf0f5; border-style: solid; color: var(--link); }
.badge.fav { background: #fff7e0; color: #7a4a00; border-color: #f3d27a; }
.badge.partner { background: #fbf3e2; color: #6b4608; border-color: #e9d3a0; }
.badge.draft { background: var(--surface-2); color: var(--muted); border: 1px dashed #b9b0c8; }
.badge.li { background: #e8f1fb; color: #0a5aa6; border-color: #b7d3ef; }
.tier-badge, .category, .verified, .partner { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tier-badge { color: var(--ink); }
.verified { color: var(--ok); background: #e6f5ec; }
.partner { color: #6b4608; background: #fbf3e2; }
.notice { border-left: 4px solid #b7791f; padding: 12px 16px; background: #fff8e6; color: #5c3d00; border-radius: 12px; margin: 0 0 16px; }
.notice.ok { border-color: var(--ok); background: #e8f7ef; color: #14532d; }
.admin-note { background: #f1ecff; border: 1px solid #cdbfff; border-radius: 12px; padding: 12px 16px; color: var(--text) !important; margin: 0 0 20px; }
.admin-note.error { background: #fdf0ee; border-color: #f1b8ad; }
.tag-group { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.tag-pick { display: inline-flex; }
.num-r { text-align: right; }

/* ---------- 9. Tribe directory (/networks/) ---------- */
.net-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 8px; }
.net-filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; position: sticky; top: 16px; box-shadow: var(--shadow-sm); }
.net-filters summary { font-weight: 800; color: var(--ink); font-size: 16px; cursor: pointer; list-style: none; }
.net-filters summary::-webkit-details-marker { display: none; }
.net-filters fieldset { border: 0; border-top: 1px solid var(--line); margin: 14px 0 0; padding: 12px 0 0; background: none; }
.net-filters legend { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 0; float: left; width: 100%; margin-bottom: 6px; }
.net-filters label { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--text); font-size: 15px; font-weight: 500; cursor: pointer; clear: both; }
.net-filters input[type="checkbox"], .net-filters input[type="radio"] { accent-color: var(--pink); width: 16px; height: 16px; margin: 0; min-height: 0; }
.net-filters .net-n { margin-left: auto; color: var(--muted); font-size: 13px; }
.net-filters .link-btn { margin-top: 14px; font-size: 14px; }
.net-active { color: var(--pink); font-weight: 800; }
.net-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.net-search { flex: 1 1 260px; margin: 0; }
.net-search input { width: 100%; border-radius: 999px; padding: 11px 18px; }
.net-sort { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.net-sort select { border-radius: 999px; padding: 10px 14px; min-height: 44px; width: auto; }
.net-count { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.net-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.net-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.net-card:hover { border-color: var(--pink); transform: translateY(-2px); box-shadow: var(--shadow); }
.net-card[data-favorite="1"] { border-color: #f3d27a; }
.net-card[hidden] { display: none; }
.net-card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.net-card h2 { font-size: 1.12rem; margin: 0; }
.net-card h2 a { color: var(--ink); text-decoration: none; }
.net-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.net-head { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; min-width: 0; }
.net-head h2 { flex: 1 1 auto; min-width: 0; }
.net-head .fav-icon { margin-left: auto; }
.net-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; }
.net-more { color: var(--link); font-weight: 700; font-size: 14px; white-space: nowrap; }
.net-empty { background: var(--surface); border: 1px dashed #cdbfb0; border-radius: var(--radius-lg); padding: 24px; text-align: center; color: var(--muted); }
.net-status { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 20px; }
.net-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.net-suggest { margin: -12px 0 24px; font-size: 15px; }
.suggest-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fbf3e2; border: 1px solid #e9d3a0; color: var(--ink); font-weight: 700; text-decoration: none; box-shadow: var(--shadow-sm); }
.suggest-pill:hover { border-color: var(--sun); color: var(--ink); }
.suggest-arrow { display: inline-block; color: var(--link); animation: suggest-bounce 1.6s ease-in-out infinite; }
@keyframes suggest-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .suggest-arrow { animation: none; } }
.net-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0 0; }
.net-tags li { margin: 0; font-size: 12px; font-weight: 700; color: var(--text); background: #fbf3e2; border: 1px solid #e9d3a0; border-radius: 999px; padding: 3px 10px; }
.net-browse { margin-top: 56px; }
.net-browse .net-tags { margin-top: 12px; }
.net-browse .net-tags li { font-size: 14px; padding: 6px 14px; background: var(--surface); border-color: var(--line); }
.net-browse .net-tags a { color: var(--ink); text-decoration: none; font-weight: 700; }
.net-browse .net-tags a:hover { color: var(--pink); }
.net-browse .net-n { margin-left: 6px; color: var(--muted); font-size: 13px; }
.net-recommend { max-width: 760px; margin: 56px 0 0; padding-top: 40px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.net-recommend p { color: var(--muted); }
.net-pick { border: 0; padding: 0; background: none; }
.net-pick legend { font-weight: 700; color: var(--ink); font-size: 15px; margin-bottom: 6px; padding: 0; }
.net-pick .opt { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 6px; }
.net-results { min-width: 0; }
.net-checked { font-size: 13px; color: var(--muted); font-style: italic; margin: -4px 0 20px; }
.net-disclaimer { font-size: 13px; color: var(--muted); margin: 32px 0 0; }
.net-title { display: flex; align-items: center; gap: 16px; margin: 0 0 10px; flex-wrap: wrap; }
.net-title h1 { margin: 0; flex: 1 1 auto; min-width: 0; }
.net-title .fav-icon { width: 36px; height: 36px; }
.net-title .fav-icon svg { width: 20px; height: 20px; }
.net-summary { font-size: 1.15rem; color: var(--ink); max-width: 40em; margin: 0 0 16px; }
.net-related ul { padding-left: 20px; }
.net-related li { margin-bottom: 10px; color: var(--muted); }
.net-related a { font-weight: 700; }
.net-related { margin-top: 48px; }
.net-facts { margin: 24px 0 28px; }
.cta-box {
  margin: 56px 0 0; padding: 40px 28px; text-align: center; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff4f8, #f6f0ff); border: 1px solid var(--line);
}
.cta-box h2 { font-size: 1.5rem; }
.cta-box p { max-width: 36em; margin: 0 auto 20px; color: var(--muted); }
.cta-box .actions { justify-content: center; margin: 0; }
@media (max-width: 900px) {
  .net-layout { grid-template-columns: 1fr; gap: 16px; }
  .net-filters { position: static; padding: 14px 18px; }
  .net-filters summary::after { content: "+"; float: right; color: var(--pink); font-size: 20px; line-height: 1; }
  .net-filters[open] summary::after { content: "\2212"; }
}
@media (min-width: 901px) { .net-filters summary { pointer-events: none; } }
@media (max-width: 640px) { .net-grid { grid-template-columns: 1fr; } }

/* Tribe page: facts, claim box and chapters */
.net-title + .net-status { margin-top: 0; }
.facts, .net-facts { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 20px 24px; }
.facts dl, .net-facts dl, .member-facts, .tool-facts-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 20px; margin: 0; }
.facts dt, .net-facts dt, .member-facts dt, .tool-facts-list dt { color: var(--ink); font-weight: 700; font-size: 15px; }
.facts dd, .net-facts dd, .member-facts dd, .tool-facts-list dd { margin: 0; color: var(--muted); font-size: 15px; }
.claim-box { border-left-color: var(--pink); }
.claim-box .btn { margin-top: 6px; }
.chapters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; margin: 0 0 40px; }
.article > .chapters { padding-top: 22px; border-top: 1px solid var(--line); }
.chapters h2 { font-size: 1.25rem; margin-bottom: 8px; }
.chapters ul { margin: 0; padding-left: 20px; }
.article > section.chapters { margin-top: 48px; padding: 22px 24px; }
.tribe-photos { margin-top: 48px; }
.tribe-photos .photo-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.tribe-photos figure { margin: 0; min-width: 0; }
.tribe-photos img { width: 100%; height: auto; border-radius: 12px; display: block; border: 1px solid var(--line); }
.tribe-photos figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.photo { border-radius: 12px; }
.photo-grid { display: grid; gap: 12px; }

/* Logos, initials and Our Favorite star */
.logo { width: 48px; height: 48px; flex: none; object-fit: contain; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); padding: 4px; }
.net-mark { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.net-mark.logo { background: var(--surface); object-fit: contain; padding: 6px; border: 1px solid var(--line); }
.net-mark.lg { width: 72px; height: 72px; border-radius: 20px; font-size: 26px; }
.net-mark.photo { border-radius: 50%; object-fit: cover; padding: 0; background: var(--surface); }
.fav-icon {
  position: relative; flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #fff7e0; border: 1px solid #f3d27a; cursor: default; outline: none;
}
.fav-icon svg, .fav-inline svg { fill: #f5a524; display: block; }
.fav-icon::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); right: 0; white-space: nowrap;
  background: #111827; color: #fff; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 8px;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .12s, transform .12s; z-index: 5;
}
.fav-icon:hover::after, .fav-icon:focus::after { opacity: 1; transform: none; }
.fav-icon:focus-visible { box-shadow: 0 0 0 3px rgba(245, 165, 36, .4); }
.fav-inline { display: inline-flex; vertical-align: -2px; }
.fav-inline svg { width: 14px; height: 14px; }
.li-icon { background: #e8f1fb; border-color: #9cc2ea; }
.li-icon::after { background: #0a66c2; color: #fff; }
.li-icon svg { fill: none; width: 22px; height: 22px; }
.li-inline { display: inline-flex; vertical-align: -5px; flex: none; }
.li-inline svg { width: 20px; height: 20px; }
.li-note { display: flex; gap: 8px; align-items: center; margin: 6px 0 20px; }
@media (prefers-reduced-motion: reduce) { .fav-icon::after { transition: none; } }

/* Info icon next to options (infoTip() in src/util.js) */
.info-tip {
  position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%;
  border: 1px solid var(--muted); color: var(--muted); font: italic 700 12px/1 Georgia, serif; cursor: help; vertical-align: middle; text-transform: none;
}
.info-tip:hover, .info-tip:focus { border-color: var(--pink); color: var(--pink); outline: none; }
.info-tip:focus-visible { box-shadow: 0 0 0 3px rgba(183, 121, 31, .3); }
.info-tip::after {
  content: attr(data-tip); position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(4px);
  width: max-content; max-width: min(300px, 80vw); white-space: normal; text-align: left; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 400 14px/1.45 "Plus Jakarta Sans", system-ui, sans-serif;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.info-tip:hover::after, .info-tip:focus::after { opacity: 1; transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) { .info-tip::after { transition: none; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); margin: 0 0 40px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pink); font-size: 24px; line-height: 1; font-weight: 500; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: var(--measure); }

/* ---------- 10. Forms ---------- */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  width: 100%; min-width: 0; min-height: 48px; padding: 11px 14px; background: var(--surface); color: var(--ink);
  border: 1.5px solid #d9cdbf; border-radius: 12px; font: 500 16px/1.4 "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
select { appearance: auto; }
input::placeholder, textarea::placeholder { color: #8a8198; opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(183, 121, 31, .16); }
label { color: var(--ink); font-weight: 700; font-size: 15px; }
label.check { font-weight: 500; }
fieldset { min-width: 0; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 18px 14px; margin: 0; background: var(--surface); }
legend { max-width: 100%; font-weight: 800; color: var(--ink); font-size: 15px; padding: 0 6px; }
.contact-form, .member-form, .plan-form, .tool-filter-form, .admin-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
}
.contact-form { margin: 8px 0 24px; max-width: 720px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; }
.member-form { display: grid; gap: 16px; max-width: 600px; }
.member-form fieldset { display: grid; gap: 12px; }
.member-form label { display: grid; gap: 6px; }
.member-form label.check { display: flex; gap: 10px; align-items: center; }
.member-form textarea { min-height: 110px; }
.member-form input:not([type="radio"]):not([type="checkbox"]), .member-form select, .member-form textarea { width: 100%; }
.field { margin: 0 0 18px; }
.field label { display: block; margin-bottom: 6px; }
.field label .opt { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 6px; }
.field .hint { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.field .err, .field-error { display: block; color: var(--coral); font-size: 14px; margin-top: 6px; }
.field .err:empty { display: none; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--coral); }
.field.check label { font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.field.check input { accent-color: var(--pink); width: 18px; height: 18px; margin: 3px 0 0; flex: none; }
.field.check a { color: var(--link); }
.field.from-li input, .field.from-li select, .field.from-li textarea { border-color: var(--pink); background: #fff7fa; }
.field.other { margin: 12px 0 0; }
.field select.empty { color: var(--muted); }
.field option { color: var(--ink); }
.field.bad .err { color: var(--coral); }
.field.bad .err:empty { display: none; }
.field[hidden] { display: none; }
.form-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.form-note a { color: var(--link); }
.form-status { margin: 16px 0 0; }
.form-status:empty { display: none; }
.form-status.error { color: var(--coral); }
.form-done { text-align: center; padding: 20px 0; outline: none; }
.batch-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.err, .error { color: var(--coral); }
.ok { color: var(--ok); }
.warn { color: #7a4a00; }
.join-form { max-width: 640px; }
.signout { margin: 28px 0 0; }
.spot { display: inline-flex; flex-direction: column; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 40px; margin: 6px 0 18px; }
.spot .spot-num { font-size: 56px; font-weight: 800; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spot .lbl { color: var(--muted); font-weight: 700; margin-top: 6px; }
.join-status .eyebrow { display: table; margin: 0 auto 16px; }
.join-status + .answer { margin-top: 28px; }
.li-import { background: var(--surface); border: 1px dashed #d9a6c0; border-radius: var(--radius-lg); padding: 22px 24px; margin: 8px 0 24px; max-width: 640px; }
.li-import h2 { font-size: 1.2rem; margin: 0 0 8px; }
.li-import h2 .opt { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 6px; }
.li-import ol { margin: 0 0 16px; padding-left: 20px; }
.li-import li { font-size: 15px; }
.li-pick { cursor: pointer; }
.coach-id { min-width: 0; }
.coach-headline { font-size: 14px; color: var(--muted); margin: 2px 0 0; line-height: 1.35; }
.coach-sub { font-size: 16px; color: var(--muted); margin: -6px 0 12px; }
.coach-badges { display: flex; gap: 6px; align-items: center; margin-left: auto; flex: none; }
.coach-badges .fav-icon { margin-left: 0; }

/* ---------- 11. Plans and pricing ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin: 8px 0 32px; }
.plan-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); min-width: 0; }
.plan-card h2 { font-size: 1.3rem; margin: 0 0 4px; }
.plan-card p { color: var(--muted); }
.plan-card .plan-price { font-size: 2rem; font-weight: 800; color: var(--ink); margin: 6px 0 14px; line-height: 1.1; }
.plan-card ul { list-style: none; padding: 16px 0 0; margin: auto 0 0; border-top: 1px solid var(--line); }
.plan-card li { position: relative; padding: 8px 0 8px 26px; margin: 0; color: var(--text); font-size: 15px; }
.plan-card li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
.plan-card:last-child { border-color: #d9c8ff; box-shadow: var(--shadow); }

/* ---------- 12. Tables and admin ---------- */
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin: 14px 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin-table th, .admin-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text); }
.admin-table th { background: var(--surface-2); color: var(--muted); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table a { color: var(--link); }
.admin-table td.msg { white-space: pre-wrap; color: var(--muted); font-size: 14px; max-width: 420px; }
.admin-table td.num-r { text-align: right; }
.diff { white-space: pre-wrap; font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.admin h2 { font-size: 1.3rem; margin: 40px 0 10px; }
.admin .muted { color: var(--muted); }
.admin .actions { margin: 0 0 16px; }
.admin-form h2 { margin: 0 0 12px; }
.admin-form h2:not(:first-child) { margin-top: 28px; }
.admin-form .check { display: block; margin: 0 0 18px; color: var(--text); font-size: 16px; font-weight: 500; }
.admin-form .field textarea { line-height: 1.5; }
.admin-ref { margin: 0 0 24px; }
.admin-ref p { margin: 0 0 8px; font-size: 15px; }
.admin-delete { margin-top: 40px; padding-top: 8px; border-top: 1px solid var(--line); }
.admin-delete h2 { margin-top: 28px; }
.usage-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 18px 0 8px; }
.usage-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.usage-tile span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.usage-tile b { font-size: 26px; font-weight: 800; color: var(--ink); }
.usage-tile small { color: var(--muted); font-size: 13px; }
.usage-tabs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 6px; font-size: 15px; }
.usage-tabs a { color: var(--muted); text-decoration: none; font-weight: 700; }
.usage-tabs a:hover { color: var(--pink); }
.usage-tabs b { color: var(--ink); border-bottom: 2px solid var(--pink); }
.usage-low { color: var(--coral); font-weight: 800; }
.topbar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.danger { color: #b42318; }
.draft { color: var(--muted); }

/* ---------- 13. Tools directory and tool pages ---------- */
.tool-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.tool-layout > aside { min-width: 0; }
.tool-filter-form { display: grid; gap: 14px; position: sticky; top: 16px; padding: 20px; }
.tool-filter-form label { display: grid; gap: 4px; font-size: 14px; }
.tool-filter-form label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.tool-filter-form input[type="search"], .tool-filter-form select { width: 100%; min-width: 0; min-height: 44px; }
.tool-filter-form p { margin: 4px 0 0; }
.tool-filter-form .btn { margin-right: 8px; }
.tool-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.tool-filters a { padding: 7px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-size: 14px; font-weight: 700; }
.tool-filters a:hover { border-color: var(--pink); color: var(--ink); }
.tool-filters a[aria-current="page"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.tool-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.tool-list .tool-card { background: var(--surface); padding: 22px; }
.tool-list .tool-card:hover { border-color: var(--pink); }
.tool-card.tier-premium { border-color: #c9b8ff; box-shadow: var(--shadow); }
.tool-card h2 { font-size: 1.15rem; margin: 6px 0 4px; }
.tool-card h2 a { color: var(--ink); text-decoration: none; }
.tool-card h2 a:hover { color: var(--violet); }
.tool-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.affiliate { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.tool-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; max-width: 100%; background: var(--surface); border: 1px solid var(--line); padding: 4px; }
.tool-detail { max-width: var(--measure); }
.tool-facts { color: var(--muted); }
.tool-facts-list { margin: 18px 0; }
.tool-faq { margin-top: 40px; max-width: var(--measure); }
.tool-faq h3 { font-size: 1.05rem; margin-top: 16px; }
.tool-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }
.tool-links a { font-weight: 700; }
@media (max-width: 860px) {
  .tool-layout { grid-template-columns: minmax(0, 1fr); }
  .tool-filter-form { position: static; }
}

/* ---------- 14. Members, owners and one-pagers ---------- */
.member-section { margin-top: 36px; }
.member-section > h2, .owner-tribe > h2 { margin-top: 0; }
.member-profile h1, .onepager h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.member-facts { margin: 16px 0; gap: 0; }
.member-facts > div { display: contents; }
.member-facts dt, .member-facts dd { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.member-skills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.member-skills li { margin: 0; padding: 5px 12px; border-radius: 999px; background: #fbf3e2; color: var(--ink); font-weight: 700; font-size: 14px; }
.member-links { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 12px 0 0; }
.member-video { max-width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.owner-tribe { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin: 22px 0; }
.onepager { max-width: var(--measure); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.onepager .cta { background: #fff4f8; border-radius: 14px; padding: 16px 20px; }
.onepager video { max-width: 100%; height: auto; }
.persona { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; margin: 0 0 18px; }
.persona dl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 16px; margin: 12px 0 0; }
.persona dt { font-weight: 800; color: var(--ink); font-size: 15px; }
.persona dd { margin: 0; color: var(--muted); font-size: 15px; }
.article .persona p { font-size: 16px; }
.notice .btn { margin-top: 4px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); min-width: 0; }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }
.category { background: #fbf3e2; color: #6b4608; }
.card .net-tags { margin-top: 10px; }
.article .net-card { padding: 20px; }

/* ---------- 15. Small helpers ---------- */
.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--link); background: #fdf0f5; border: 1px solid #f5c9dc; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.li-note { display: flex; gap: 8px; align-items: center; }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.opt { font-weight: 500; color: var(--muted); font-size: 13px; }
.check { display: flex; gap: 8px; align-items: center; }
.hint { font-size: 13px; color: var(--muted); }
.msg { color: var(--muted); }
.onepager, .tool-detail, .tribe-photos { min-width: 0; }

/* ---------- 16. Phone and small tablet ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 28px 0 24px; }
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stats > div { padding: 14px 12px; }
  .stats dd { font-size: 1.5rem; }
  .owner-cta { padding: 24px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  main.article { padding: 20px 16px 44px; }
  .hero { padding-top: 24px; }
  .contact-form, .member-form, .plan-form, .tool-filter-form, .admin-form { padding: 18px; border-radius: 16px; }
  .contact-form .row { grid-template-columns: 1fr; gap: 0; }
  .row-form input[type="email"], .row-form select { flex-basis: 100%; }
  .btn { white-space: normal; }
  .actions .btn { width: 100%; }
  .net-title h1 { font-size: 1.9rem; }
  .facts dl, .net-facts dl, .member-facts, .tool-facts-list { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .facts dd, .net-facts dd { margin-bottom: 10px; }
  .persona dl { grid-template-columns: 1fr; }
  .persona dd { margin-bottom: 8px; }
  .tools-band { padding: 36px 0; }
  .tool-card, .card, .net-card { padding: 18px; }
  .owner-tribe, .onepager { padding: 16px; }
  fieldset { padding: 14px 14px 10px; border-radius: 14px; }
  .plan-card { padding: 22px; }
  .cta-box { padding: 28px 18px; }
}
@media (max-width: 420px) {
  .menu-links a.link { font-size: 15px; }
}
@media print {
  .no-print, .topbar, header.wrap, footer, nav, .tools-band { display: none !important; }
  body { background: #fff; color: #000; }
  .onepager { max-width: none; box-shadow: none; }
}

/* Campfire: a stone ring on the ground at the top of each tribe page, with embers rising from it */
body.campfire { position: relative; background: none; }
body.campfire::before, body.campfire::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: -1; pointer-events: none;
  background-position: center top; background-size: 100% auto; background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(#000 0%, #000 80%, rgba(0,0,0,.7) 100%); mask-image: linear-gradient(#000 0%, #000 80%, rgba(0,0,0,.7) 100%);
}
body.campfire::before { background-image: url("/campfire-stones.svg"); opacity: .9; }
body.campfire::after { background-image: url("/campfire-embers.svg"); opacity: 1; }
@keyframes ember-flicker {
  0% { opacity: .8; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
  100% { opacity: .8; transform: translateY(0); }
}
body.campfire.flicker::after { animation: ember-flicker 3s ease-in-out 1; }
@media (prefers-reduced-motion: reduce) { body.campfire.flicker::after { animation: none; } }

/* Tools: gold sparks rise from random spots in the page margins, then fade out */
body.tools { position: relative; background: none; }
.spark-patch { position: absolute; width: 200px; height: 160px; z-index: -1; pointer-events: none; }
.spark {
  position: absolute; bottom: 0; width: 3px; height: 3px; border-radius: 50%;
  background: #d69e2e; box-shadow: 0 0 6px 2px rgba(214, 158, 46, .55);
  opacity: 0; animation: spark-rise 3.2s ease-out infinite;
}
.spark.streak { width: 2px; height: 8px; border-radius: 2px; box-shadow: 0 0 5px 1px rgba(183, 121, 31, .5); }
@keyframes spark-rise {
  0% { opacity: 0; transform: translate(0, 0) scale(1); }
  12% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--dx), -150px) scale(.3); }
}
@media (prefers-reduced-motion: reduce) {
  .spark { animation: none; opacity: .5; bottom: auto; top: 60px; }
}

/* Contact: the doves fly over a plain background. The body class keeps the doves positioned */
body.dawn { position: relative; background: none; }

/* Contact: three doves fly across the top. Each one has its own height, size and speed */
.doves { position: absolute; left: 0; right: 0; top: 0; bottom: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.dove { position: absolute; left: 0; top: var(--y); animation: var(--anim, dove-fly) var(--t) linear infinite; animation-delay: var(--delay); }
.dove.d1 { --y: 64px; --t: 30s; --delay: -4s; }
.dove.d2 { --y: 150px; --t: 38s; --delay: -20s; --anim: dove-fly-rtl; }
.dove.d3 { --y: 28px; --t: 34s; --delay: -11s; --anim: dove-fly-diag; }
.dove.d2 .dove-bird { width: 22px; height: 14px; }
.dove.d3 .dove-bird { width: 30px; height: 19px; }
.dove-bird { display: block; width: 28px; height: 18px; opacity: .28; overflow: visible; animation: dove-bob 2.4s ease-in-out infinite; }
.dove-bird path, .dove-bird circle { fill: var(--surface); stroke: var(--link); stroke-width: 1.6; stroke-linejoin: round; }
.dove-beak { fill: var(--sun) !important; }
.dove-eye { fill: var(--ink) !important; stroke: none !important; }
.dove-wing { transform-box: view-box; transform-origin: 30px 20px; animation: dove-flap .8s ease-in-out infinite alternate; }
@keyframes dove-fly { from { transform: translateX(-90px); } to { transform: translateX(calc(100vw + 90px)); } }
@keyframes dove-fly-rtl { from { transform: translateX(calc(100vw + 90px)) scaleX(-1); } to { transform: translateX(-90px) scaleX(-1); } }
@keyframes dove-fly-diag { from { transform: translate(-90px, 24px); } to { transform: translate(calc(100vw + 90px), -24px); } }
@keyframes dove-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes dove-flap { from { transform: rotate(12deg); } to { transform: rotate(-18deg); } }
@media (prefers-reduced-motion: reduce) { .doves { display: none; } }

/* Pricing: two small flocks of migrating birds fly in a V across the top, behind the content */
.flock-field { position: absolute; left: 0; right: 0; top: 0; bottom: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.flock { position: absolute; left: 0; top: var(--y); width: 150px; animation: var(--anim, flock-fly) var(--t) linear infinite; animation-delay: var(--delay); }
.flock svg { display: block; width: 100%; height: auto; overflow: visible; }
.flock.f1 { --y: 70px; --t: 46s; --delay: -10s; width: 150px; }
.flock.f2 { --y: 160px; --t: 58s; --delay: -30s; --anim: flock-fly-rtl; width: 96px; opacity: .6; }
.flock path { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .42; transform-box: fill-box; transform-origin: center; animation: flock-flap .9s ease-in-out infinite alternate; }
.flock path:nth-child(2n) { animation-delay: -.25s; }
.flock path:nth-child(3n) { animation-delay: -.5s; }
.flock path:nth-child(4n) { animation-delay: -.7s; }
@keyframes flock-fly { from { transform: translateX(-180px); } to { transform: translateX(calc(100vw + 180px)); } }
@keyframes flock-fly-rtl { from { transform: translateX(calc(100vw + 180px)) scaleX(-1); } to { transform: translateX(-180px) scaleX(-1); } }
@keyframes flock-flap { from { transform: scaleY(1); } to { transform: scaleY(.45); } }
@media (prefers-reduced-motion: reduce) { .flock-field { display: none; } }

/* Pricing: the bird flocks fly over a plain background. The body class keeps them positioned */
body.pricing { position: relative; background: none; overflow-x: hidden; overflow-x: clip; }

/* Alerts: a dandelion seed head in the lower left, with loose seeds drifting up and across the page */
body.seeds { position: relative; background: none; }
.seeds-art { position: absolute; left: 0; right: 0; top: 0; height: 900px; z-index: -1; pointer-events: none; opacity: .28; overflow: hidden; }
.seeds-art svg { width: 100%; height: 100%; display: block; }
.seeds-art .seed { animation: seed-drift 10s ease-in-out infinite alternate; }
@keyframes seed-drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(40px, -26px) rotate(14deg); }
}
@media (prefers-reduced-motion: reduce) { .seeds-art .seed { animation: none; } }

/* Members: roots rise from the bottom edge behind the page. Each root draws itself in on load, then the whole mass breathes slowly */
body.roots { position: relative; background: none; }
.roots-art {
  position: fixed; left: 0; right: 0; bottom: 0; height: 520px; z-index: -1; pointer-events: none; overflow: hidden;
  opacity: .5; animation: roots-breathe 9s ease-in-out 3s infinite;
  -webkit-mask-image: linear-gradient(transparent 0%, #000 35%, #000 100%); mask-image: linear-gradient(transparent 0%, #000 35%, #000 100%);
}
.roots-art svg { width: 100%; height: 100%; display: block; }
.roots-art .root { stroke-dasharray: 1; stroke-dashoffset: 1; animation: root-draw 2.2s ease-out forwards; }
@keyframes root-draw { to { stroke-dashoffset: 0; } }
@keyframes roots-breathe {
  0%, 100% { opacity: .5; }
  50% { opacity: .32; }
}
@media (prefers-reduced-motion: reduce) {
  .roots-art { animation: none; }
  .roots-art .root { animation: none; stroke-dashoffset: 0; }
}
@media print { .roots-art { display: none; } }

/* Tool detail pages: a header with the logo, the description beside an "At a glance" card, and related tools below */
.tool-hero { margin: 0 0 32px; }
.tool-hero-head { display: flex; gap: 20px; align-items: center; margin-bottom: 8px; }
.tool-hero-head .tool-logo { width: 72px; height: 72px; flex: none; border-radius: 18px; padding: 6px; }
.tool-hero h1 { margin: 8px 0 0; }
.tool-hero .lead { max-width: 44em; margin: 10px 0 0; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.tool-layout .tool-detail h2 { font-size: 1.3rem; }
.tool-layout .tool-detail h3 { font-size: 1rem; margin: 22px 0 0; }
.tool-aside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); position: sticky; top: 16px; }
.tool-aside h2 { font-size: 1.1rem; margin-bottom: 14px; }
.tool-aside .tool-facts-list { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
.tool-aside .tool-facts-list > div { padding: 10px 0; border-top: 1px solid var(--line); }
.tool-aside .tool-facts-list > div:first-child { border-top: 0; padding-top: 0; }
.tool-aside .tool-facts-list dt { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tool-aside .tool-facts-list dd { color: var(--ink); font-weight: 600; margin-top: 2px; }
.tool-aside .btn { display: flex; justify-content: center; width: 100%; margin-top: 20px; }
.tool-aside .affiliate { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.tool-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 10px 0 0; }
.tool-chips li { margin: 0; font-size: 13px; font-weight: 700; color: var(--text); background: #fbf3e2; border: 1px solid #e9d3a0; border-radius: 999px; padding: 4px 12px; }
.tool-related { margin-top: 56px; }
.tool-related h2 { margin-bottom: 18px; }
@media (max-width: 860px) {
  .tool-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tool-aside { position: static; }
  .tool-hero-head .tool-logo { width: 56px; height: 56px; }
}

/* Owner content on tool pages: screenshots, video, social links and FAQs. The editor reuses the member form styles. */
.tool-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin-top: 10px; }
.tool-shots figure { margin: 0; }
.tool-shots img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.tool-shots figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.tool-video { display: block; width: 100%; max-width: 640px; border-radius: 12px; border: 1px solid var(--line); background: #000; margin-top: 10px; }
.social-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 10px 0 0; }
.social-links li { margin: 0; }
.social-links a { display: inline-block; font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.social-links a:hover { border-color: var(--pink); color: var(--link); }
.tool-aside h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 20px 0 0; }
.owner-faqs { margin-top: 48px; max-width: var(--measure); }
.owner-faqs details { border-top: 1px solid var(--line); padding: 14px 0; }
.owner-faqs summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.owner-faqs details p { margin: 10px 0 0; color: var(--muted); }
.owner-list { list-style: none; padding: 0; }
.owner-list li { padding: 12px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.locked { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; }
