/* AI Networking Group — Phase 1 styles. Navy/gold brand. WCAG 2.1 AA. */
:root {
  --navy: #0a1f44;
  --navy-deep: #071433;
  --gold: #d4a017;
  --gold-soft: #f5e6bd;
  --ink: #1a2332;
  --muted: #4a5568;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --line: #dbe2ef;
  --radius: 14px;
  --focus: #1a56db;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.0625rem;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
a { color: var(--navy); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: .8rem; padding-bottom: .8rem; gap: 1rem; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { font-size: 1.25rem; letter-spacing: .02em; }
.brand span { font-size: .8rem; color: var(--gold); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 600; padding: .4rem .1rem; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%); color: #fff; padding: 4rem 0 3.5rem; }
.hero .eyebrow { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; margin: 0 0 .75rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; margin: 0 0 1rem; max-width: 20ch; }
.hero p.lede { font-size: 1.2rem; max-width: 38ch; color: #dbe2ef; margin: 0 0 1.75rem; }
.btn { display: inline-block; font-weight: 700; text-decoration: none; border-radius: 999px; padding: .85rem 1.75rem; border: 2px solid transparent; cursor: pointer; font-size: 1.05rem; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #e5b32a; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-row { display: flex; gap: .9rem; flex-wrap: wrap; }

/* Sections */
section.block { padding: 3.25rem 0; }
section.block.alt { background: var(--bg-soft); }
h2.section-title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); color: var(--navy); margin: 0 0 .5rem; line-height: 1.25; }
.section-sub { color: var(--muted); max-width: 60ch; margin: 0 0 2rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: relative; }
.steps li::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; margin-bottom: .75rem; }
.steps h3 { margin: 0 0 .4rem; color: var(--navy); font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Form */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; max-width: 720px; box-shadow: 0 6px 24px rgba(10,31,68,.07); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; margin-top: .15rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field textarea, .field select {
  width: 100%; padding: .7rem .85rem; font-size: 1rem; border: 2px solid var(--line); border-radius: 8px; font-family: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid var(--focus); outline-offset: 1px; }
.field textarea { min-height: 110px; resize: vertical; }
.req { color: #b00020; font-weight: 700; }
.vis-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: .1rem .55rem; vertical-align: middle; margin-left: .35rem; }
.vis-tag.pub { background: var(--gold-soft); color: var(--navy-deep); border: 1px solid var(--gold); }
.vis-tag.priv { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.form-privacy { font-weight: 600; color: var(--navy); background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 8px; padding: .7rem 1rem; margin: 0 0 1rem; }
.sub-label { display: block; font-weight: 600; color: var(--navy); margin: .8rem 0 .35rem; font-size: .95rem; }
.field input[type="file"] { display: block; width: 100%; font-size: .95rem; color: var(--ink); }
.field input[type="file"]:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-radius: 4px; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-2col { grid-template-columns: 1fr; } }
.form-error { display: block; background: #fdecea; border: 2px solid #b00020; color: #7a0016; border-radius: 8px; padding: .8rem 1rem; font-weight: 600; }
.form-error[hidden] { display: none; }
/* honeypot: invisible to humans, irresistible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: none; background: #e9f7ee; border: 2px solid #2e7d32; border-radius: var(--radius); padding: 1.5rem; }
.form-success.show { display: block; }
.form-success h3 { color: #1b5e20; margin-top: 0; }

/* Directory cards */
.toolbar { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; align-items: end; }
.toolbar .field { margin-bottom: 0; min-width: 220px; }
.privacy-strip { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.privacy-strip p { margin: .3rem 0; }
.privacy-strip strong { color: var(--gold); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; position: relative; }
.card.member { border: 2px solid var(--gold); }
.card-top { display: flex; gap: 1rem; align-items: flex-start; }
.logo-box { width: 64px; height: 64px; min-width: 64px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 800; color: var(--navy); font-size: 1.4rem; }
.logo-box img { width: 100%; height: 100%; object-fit: cover; }
.logo-box.logo-contain { background: #fff; }
.logo-box.logo-contain img { object-fit: contain; }
.card .title { color: var(--muted); font-size: .85rem; margin: 0; }
.card h3 { margin: 0; color: var(--navy); font-size: 1.2rem; line-height: 1.3; }
.card .meta { color: var(--muted); font-size: .92rem; margin: 0; }
.card .desc { margin: 0; font-size: .98rem; }
.card .services { margin: 0; font-size: .92rem; }
.card .services strong { color: var(--navy); }
.card .website { margin: 0; font-size: .92rem; }
.card .website a { color: var(--navy); font-weight: 600; }
.socials { margin: 0; display: flex; gap: .5rem; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line); }
.social-link svg { width: 1.05rem; height: 1.05rem; fill: var(--navy); }
.social-link:hover { background: var(--gold-soft); border-color: var(--gold); }
.site-nav a.nav-cta { background: var(--gold); color: var(--navy-deep); border: 2px solid var(--gold); border-radius: 999px; padding: .35rem 1rem; font-size: .95rem; white-space: nowrap; }
.site-nav a.nav-cta:hover { background: #e5b32a; border-bottom-color: var(--gold); text-decoration: none; }
.card .looking { margin: 0; font-size: .92rem; background: var(--bg-soft); border-radius: 8px; padding: .6rem .8rem; }
.card .looking strong { color: var(--navy); }
.know-them { background: var(--bg-soft); border-radius: 8px; padding: .55rem .8rem; }
.know-them summary { font-weight: 700; color: var(--navy); cursor: pointer; font-size: .92rem; }
.know-them summary:hover { text-decoration: underline; }
.know-them .pull-quote { margin: .6rem 0 .4rem; padding-left: .8rem; border-left: 3px solid var(--gold); font-style: italic; color: var(--navy); }
.know-them .know-fact { margin: .4rem 0 0; font-size: .92rem; }
.know-them .know-fact strong { color: var(--navy); }
.badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.badge { display: inline-block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; padding: .25rem .7rem; }
.badge.member { background: var(--gold); color: var(--navy-deep); }
.badge.facilitator { background: var(--navy); color: #fff; }
.badge.source { background: var(--bg-soft); color: var(--navy); border: 1px solid var(--line); }
.news-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 1.25rem; }
.news-chip { font-size: .88rem; font-weight: 700; padding: .45rem 1rem; border-radius: 999px; border: 2px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; line-height: 1.3; }
.news-chip:hover { background: var(--bg-soft); }
.news-chip.active { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.news-status { color: var(--muted); font-size: .95rem; margin-top: 1rem; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover, .card h3 a:focus-visible { text-decoration: underline; }
.card-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: auto; padding-top: .4rem; }
.btn-small { font-size: .92rem; padding: .55rem 1.1rem; }
.btn-ghost { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn-ghost:hover { background: var(--bg-soft); }
.lock-note { font-size: .82rem; color: var(--muted); }

/* Dialog */
dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; max-width: 520px; width: calc(100% - 2rem); }
dialog::backdrop { background: rgba(7,20,51,.55); }
dialog h3 { margin-top: 0; color: var(--navy); }
.share-row { display: flex; gap: .6rem; margin-bottom: 1rem; align-items: stretch; }
.share-row textarea { flex: 1; font-size: .9rem; padding: .6rem; border: 2px solid var(--line); border-radius: 8px; resize: none; min-height: 84px; font-family: inherit; }
.share-row .btn { white-space: nowrap; }
.dialog-close { margin-top: .5rem; }

/* News / events / misc blocks */
.source-tags { display: flex; gap: .5rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.source-tags li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; font-weight: 600; color: var(--navy); }
.phase-note { background: var(--gold-soft); border-left: 5px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; margin-bottom: 1.75rem; }
/* Facebook Page embeds — Lake Buzz */
.fb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 400px)); gap: 1.5rem; justify-content: center; }
.fb-card { margin: 0; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 400px; width: 100%; justify-self: center; }
.fb-card figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .85rem 1.25rem; background: var(--navy); }
.fb-card figcaption h3 { margin: 0; color: #fff; font-size: 1.1rem; }
.fb-card figcaption a { color: var(--gold); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.fb-card iframe { display: block; width: 100%; height: 500px; border: 0; background: #fff; }
/* Fallback sits behind the iframe: if the FB embed is blocked/blank, visitors see this instead of empty space */
.fb-embed-wrap { position: relative; }
.fb-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; text-align: center; background: var(--bg-soft); }
.fb-fallback p { margin: 0; color: var(--ink-soft); }
.fb-embed-wrap iframe { position: relative; z-index: 1; }
.source-more { margin: .9rem 0 0; color: var(--muted); font-size: .95rem; }
.source-more a { color: var(--navy); font-weight: 700; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.event-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; display: flex; gap: 1.1rem; align-items: baseline; flex-wrap: wrap; }
.event-date { font-weight: 800; color: var(--navy); white-space: nowrap; }
.sample-tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--bg-soft); border: 1px dashed var(--muted); color: var(--muted); border-radius: 6px; padding: .15rem .5rem; }

/* FAQ */
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: .75rem; }
details.faq summary { font-weight: 700; color: var(--navy); cursor: pointer; font-size: 1.05rem; }
details.faq summary:hover { text-decoration: underline; }
details.faq p { margin: .6rem 0 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #dbe2ef; padding: 2.5rem 0; margin-top: 2rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.fine { font-size: .85rem; color: #9fb0cc; margin-top: 1.25rem; width: 100%; }

.cta-band { background: var(--gold); color: var(--navy-deep); border-radius: var(--radius); padding: 2.25rem; text-align: center; margin: 1rem 0 0; }
.cta-band h2 { margin: 0 0 .5rem; font-size: 1.7rem; }
.cta-band p { margin: 0 0 1.25rem; font-weight: 600; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }

@media (max-width: 640px) {
  .hero { padding: 2.75rem 0 2.5rem; }
  section.block { padding: 2.25rem 0; }
  .form-card { padding: 1.4rem; }
  .share-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* FAQ accordion (AEO: visible Q&A backed by FAQPage schema) */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .75rem; overflow: hidden; }
.faq-item h3 { margin: 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; padding: 1rem 1.25rem; background: none; border: 0; font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--navy); text-align: left; cursor: pointer; }
.faq-q:hover { text-decoration: underline; }
.faq-q:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.faq-q::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; font-weight: 400; color: var(--gold); }
.faq-q[aria-expanded="true"]::after { content: "–"; }
.faq-a { padding: 0 1.25rem 1.1rem; color: var(--muted); }
.faq-a p { margin: 0; }
.faq-a p + p { margin-top: .6rem; }
