
:root{
  --bg:#f4f7f6;
  --card:#ffffff;
  --text:#222a28;
  --muted:#63706c;
  --line:#d7e0dc;
  --accent:#176f64;
  --accent-dark:#10574f;
  --soft:#eaf4f0;
  --soft2:#f6f2e9;
  --soft3:#eef0f8;
  --shadow:0 6px 22px rgba(28,49,43,.06);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:var(--bg);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);line-height:1.55}
a{color:#145f57}
a:hover{text-decoration-thickness:2px}
img{max-width:100%;height:auto}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.skip-link{position:absolute;left:-9999px;top:.5rem;background:#fff;padding:.7rem 1rem;z-index:100}
.skip-link:focus{left:.5rem}
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.header-top{max-width:1120px;margin:auto;padding:.78rem 1rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.brand{font-weight:850;letter-spacing:.02em;text-decoration:none;color:#1f2926;font-size:1.06rem}
.brand .dot{color:var(--accent)}
.header-actions{display:flex;align-items:center;gap:.8rem}
.header-actions>a{font-size:.92rem}
.nav-wrap{border-top:1px solid #edf1ef}
.primary-nav{max-width:1120px;margin:auto;padding:.55rem 1rem;display:flex;gap:.45rem;flex-wrap:wrap}
.primary-nav a{padding:.42rem .72rem;border-radius:999px;text-decoration:none;background:#f2f5f4;color:#33413d;font-size:.94rem}
.primary-nav a:nth-child(3n+1){background:#eaf4f0}
.primary-nav a:nth-child(3n+2){background:#f6f2e9}
.primary-nav a:nth-child(3n){background:#eef0f8}
.primary-nav a[aria-current="page"]{outline:2px solid var(--accent);outline-offset:1px}
.css-menu{display:none;position:relative}
.css-menu summary{list-style:none;cursor:pointer;font-weight:700;padding:.45rem .7rem;border:1px solid var(--line);border-radius:9px}
.css-menu summary::-webkit-details-marker{display:none}
.css-menu-panel{position:absolute;right:0;top:2.8rem;width:min(86vw,290px);background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:14px;padding:.8rem}
.css-menu-panel nav{display:grid;gap:.25rem}
.css-menu-panel nav a,.css-menu-panel .sub a{display:block;padding:.55rem .65rem;text-decoration:none;border-radius:8px}
.css-menu-panel nav a:hover,.css-menu-panel .sub a:hover{background:var(--soft)}
.css-menu-panel .sub{border-top:1px solid var(--line);margin-top:.6rem;padding-top:.6rem}
.page{max-width:1120px;margin:0 auto;padding:1.25rem 1rem 3rem}
.section,.hero,.search-results,.search-further{
  background:var(--card);border:1px solid var(--line);border-radius:16px;
  padding:clamp(1rem,2.3vw,1.65rem);margin:0 0 1rem;box-shadow:var(--shadow)
}
.hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr);gap:1rem;align-items:stretch}
h1{font-size:clamp(2rem,5vw,3.6rem);line-height:1.02;letter-spacing:-.035em;margin:.4rem 0 .75rem}
h2{font-size:clamp(1.35rem,3vw,1.9rem);line-height:1.15;margin:.25rem 0 .7rem}
h3{margin:.2rem 0 .45rem}
p{margin:.45rem 0 .8rem}
.lede{font-size:1.08rem;color:#45534f;max-width:760px}
.kicker{text-transform:uppercase;letter-spacing:.08em;font-size:.78rem;font-weight:800;color:var(--accent)}
.small,.muted{font-size:.91rem;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.8rem}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.card{border:1px solid var(--line);border-radius:14px;padding:1rem;background:#fff}
.card:nth-child(3n+1){border-top:5px solid #cce6dd}
.card:nth-child(3n+2){border-top:5px solid #eee1bc}
.card:nth-child(3n){border-top:5px solid #d8dcef}
.badge{display:inline-block;padding:.2rem .5rem;border-radius:999px;background:var(--soft);font-size:.76rem;font-weight:800}
.go,.button,.search-action,.source-action{
  display:inline-block;padding:.62rem .85rem;border-radius:9px;background:var(--accent);color:#fff;
  text-decoration:none;border:0;font-weight:750
}
.go:hover,.button:hover,.search-action:hover,.source-action:hover{background:var(--accent-dark);color:#fff}
.search-shell{max-width:820px}
.search-main-row{display:flex;gap:.55rem;align-items:stretch}
.search-main-row input{flex:1 1 auto;min-width:0;padding:.78rem .9rem;border:1px solid #b9c8c2;border-radius:10px;background:#fff}
.search-main-row button{padding:.72rem 1rem;border:0;border-radius:10px;background:var(--accent);color:#fff;font-weight:800}
.search-ai-row{display:flex;gap:.7rem 1rem;align-items:center;flex-wrap:wrap;margin-top:.65rem;font-size:.94rem}
.search-ai-row select{padding:.42rem .55rem;border:1px solid #bdc9c4;border-radius:8px;background:#fff}
.search-actions,.quick-links,.personal-actions{display:flex;gap:.5rem;flex-wrap:wrap}
.search-actions a,.quick-links a{padding:.5rem .72rem;border:1px solid var(--line);border-radius:9px;background:#fff;text-decoration:none}
.search-actions a.primary{background:var(--soft);font-weight:800}
.compact-results{display:grid;gap:.55rem}
.result-row,.result-card{border:1px solid var(--line);border-radius:11px;padding:.72rem .85rem;background:#fff}
.result-row>a{display:block;text-decoration:none}
.result-detail{display:block;color:var(--muted);font-size:.9rem;margin-top:.25rem}
.result-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.45rem}
.result-actions a{font-size:.88rem}
.copy-note{padding:.7rem .85rem;border-radius:9px;background:var(--soft);margin-top:.7rem}
.offscreen-copy-buffer{position:fixed!important;left:-10000px!important;top:0!important;width:2px!important;height:2px!important;opacity:.01!important}
.handoff-preview{width:100%;min-height:13rem;margin-top:.6rem}
.stream-banner{border:1px solid #d9dfcc;background:#faf9f1;border-radius:12px;padding:.72rem .9rem;display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}
.stream-banner a{text-decoration:none;font-weight:700}
.stream-at-bottom{margin-top:1rem}
.topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem .7rem}
.topic{display:flex;align-items:center;gap:.45rem;padding:.52rem .62rem;border:1px solid var(--line);border-radius:9px;background:#fff}
.topic input{width:1rem;height:1rem}
.keyword-row{margin-top:.75rem}
.keyword-row input{width:min(100%,620px);padding:.7rem .85rem;border:1px solid #bdc9c4;border-radius:9px}
.source-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-top:.9rem}
.source-card{border:1px solid var(--line);border-radius:13px;padding:1rem;background:#fff}
.jobs-live-note{padding:.65rem .8rem;border-radius:9px;background:#fff8e8}
.job-search-destinations{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.6rem}
.job-destination{border:1px solid var(--line);border-radius:11px;padding:.8rem;background:#fff;text-decoration:none}
.job-destination span{display:block;color:var(--muted);font-size:.9rem;margin-top:.2rem}
.directory-browse-option{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--line)}
.class-grid{display:flex;gap:.45rem;flex-wrap:wrap}
.class-chip{border:1px solid #b9c8c2;border-radius:999px;background:#f5faf8;padding:.48rem .72rem}
.class-chip:hover{background:#e6f2ed}

/* Canonical Roundabout visual-navigation component.
   Defined in /code.md and available to pages that deliberately use it. */
.roundabout-rail{
  position:sticky;
  top:118px;
  z-index:12;
  width:360px;
  max-width:100%;
}
.roundabout-nav{
  position:relative;
  width:100%;
  aspect-ratio:1/1;
  filter:drop-shadow(0 12px 22px rgba(20,35,50,.12));
}
.roundabout-nav img{
  display:block;
  width:100%;
  height:auto;
  border-radius:18px;
  background:#fff;
}
.roundabout-nav .hotspot{
  position:absolute;
  display:block;
  border-radius:16px;
  text-indent:-9999px;
  overflow:hidden;
}
.roundabout-nav .hotspot:hover,
.roundabout-nav .hotspot:focus{
  outline:3px solid rgba(13,107,92,.45);
  background:rgba(255,255,255,.12);
}
.roundabout-nav .hot-home{left:31%;top:30%;width:38%;height:36%;border-radius:50%}
.roundabout-nav .hot-a2z{left:39%;top:0%;width:23%;height:20%}
.roundabout-nav .hot-whats-on{left:3%;top:8%;width:34%;height:22%}
.roundabout-nav .hot-news{left:65%;top:7%;width:32%;height:22%}
.roundabout-nav .hot-food{left:0%;top:31%;width:29%;height:21%}
.roundabout-nav .hot-meet{left:72%;top:31%;width:28%;height:21%}
.roundabout-nav .hot-jobs{left:1%;top:54%;width:30%;height:21%}
.roundabout-nav .hot-resources{left:72%;top:55%;width:28%;height:21%}
.roundabout-nav .hot-health{left:25%;top:72%;width:27%;height:23%}
.roundabout-nav .hot-ai4u{left:52%;top:72%;width:28%;height:23%}
.roundabout-caption{
  text-align:center;
  color:var(--muted);
  font-size:.82rem;
  margin-top:.35rem;
}
@media(max-width:900px){
  .roundabout-rail{
    position:relative;
    top:auto;
    width:min(520px,100%);
    margin:0 auto;
  }
}

.site-footer{border-top:1px solid var(--line);background:#fff}
.footer-inner{max-width:1120px;margin:auto;padding:1rem;display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.footer-links{display:flex;gap:.8rem;flex-wrap:wrap}
.notice{padding:.75rem .9rem;border-left:4px solid var(--accent);background:var(--soft);border-radius:8px}
.warning{padding:.75rem .9rem;border-left:4px solid #a56a22;background:#fff8eb;border-radius:8px}
hr{border:0;border-top:1px solid var(--line);margin:1.2rem 0}
pre{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:800px){
  .primary-nav{display:none}
  .css-menu{display:block}
  .header-actions>a{display:none}
  .hero{grid-template-columns:1fr}
  .grid.two,.grid.three,.source-row{grid-template-columns:1fr}
  .topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .site-header{position:static}
}
@media(max-width:520px){
  .page{padding:.75rem .7rem 2rem}
  .section,.hero,.search-results,.search-further{border-radius:12px;padding:.9rem}
  .search-main-row{flex-direction:column}
  .search-main-row button{width:100%}
  .topic-grid{grid-template-columns:1fr}
  h1{font-size:2.2rem}
}


/* Canonical News source cards */
.news-source-row .source-card{
  display:flex;
  flex-direction:column;
  min-height:225px;
}
.news-source-row .source-card > p{
  min-height:4.7em;
}
.source-card-actions{
  margin-top:auto;
  display:flex;
  gap:.55rem;
  flex-wrap:wrap;
  align-items:center;
}
.source-card-actions .source-action{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.source-card-ai select{
  min-height:46px;
  max-width:100%;
  padding:.65rem .72rem;
  border:1px solid #bdc9c4;
  border-radius:9px;
  background:#fff;
}
.news-status{
  min-height:1.4em;
  margin-top:.65rem;
}
.local-news-links .quick-links{
  margin-top:.45rem;
}

/* Contact page */
.contact-home-link{
  color:inherit;
  text-decoration:underline;
  text-decoration-thickness:.08em;
  text-underline-offset:.12em;
}
.contact-panel,
.fun-corner{
  max-width:760px;
  margin:1.5rem 0;
  padding:1rem 1.1rem;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
}
.contact-form{
  display:block;
  max-width:680px;
}
.contact-field{
  display:block;
  width:100%;
  margin:0 0 1rem;
}
.contact-field label{
  display:block;
  font-weight:800;
  margin:0 0 .35rem;
}
.contact-field input,
.contact-field textarea{
  display:block;
  width:100%;
  box-sizing:border-box;
  border:1px solid #b9c7ce;
  border-radius:10px;
  padding:.7rem .8rem;
  font:inherit;
  background:#fff;
}
.contact-field textarea{
  resize:vertical;
  min-height:10rem;
}
.contact-actions{
  display:flex;
  gap:.8rem;
  flex-wrap:wrap;
  align-items:center;
  margin-top:.2rem;
}
.contact-direct-link{
  display:inline-block;
  font-weight:700;
}
.fun-spider{
  position:fixed;
  left:0;
  top:0;
  z-index:9999;
  width:85px;
  height:81px;
  pointer-events:none;
  image-rendering:auto;
  filter:drop-shadow(0 4px 4px rgba(0,0,0,.14));
}
.fun-bug{
  width:48px;
  height:48px;
}
.legacy-note{
  margin-top:.8rem;
}
.site-footer strong a{
  color:inherit;
  text-decoration:underline;
  text-underline-offset:.12em;
}


/* Contact form: deliberately vertical and wide. */
.contact-panel{
  width:min(100%,760px);
}
.contact-panel .contact-form{
  display:block;
  width:100%;
  max-width:700px;
}
.contact-panel .contact-field{
  display:block;
  width:100%;
  margin:0 0 1rem;
}
.contact-panel .contact-field label{
  display:block;
  width:100%;
  font-weight:800;
}
.contact-panel .contact-field input,
.contact-panel .contact-field textarea{
  display:block;
  width:100%;
  max-width:700px;
  box-sizing:border-box;
  margin-top:.35rem;
  border:1px solid #b9c7ce;
  border-radius:10px;
  padding:.72rem .82rem;
  font:inherit;
  background:#fff;
}
.contact-panel .contact-field textarea{
  min-height:145px;
  height:auto;
  resize:vertical;
}
.contact-panel .contact-actions{
  display:flex;
  align-items:center;
  gap:.65rem;
  flex-wrap:wrap;
  margin-top:.2rem;
}
.contact-panel .contact-or{
  color:var(--muted);
}
.contact-panel .contact-direct-link{
  font-weight:700;
}


/* Procrastination five-step strip */
.procrastination-steps{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:.65rem;
}
.procrastination-steps .step-card{
  padding:.7rem;
  min-width:0;
}
.procrastination-steps .step-card h3{
  margin:0 0 .6rem;
  padding:.48rem .55rem;
  border-radius:8px;
  line-height:1.2;
}
.procrastination-steps .step-card:nth-child(1) h3{background:#dff3eb}
.procrastination-steps .step-card:nth-child(2) h3{background:#fff1c9}
.procrastination-steps .step-card:nth-child(3) h3{background:#e7e9fb}
.procrastination-steps .step-card:nth-child(4) h3{background:#f7e1ec}
.procrastination-steps .step-card:nth-child(5) h3{background:#deeff8}
.procrastination-commands{
  margin:.7rem 0 1rem;
  padding-left:1.3rem;
}
.procrastination-commands li{
  margin:.22rem 0;
}
.aletheia-app-launcher{
  display:flex;
  gap:.65rem;
  align-items:center;
  flex-wrap:wrap;
  margin-top:.8rem;
}
.aletheia-app-launcher select{
  min-height:44px;
  padding:.6rem .72rem;
  border:1px solid #bdc9c4;
  border-radius:9px;
  background:#fff;
}
.manual-handoff{
  margin-top:.8rem;
}

/* Resource pages */
.resource-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.8rem;
}
.resource-links{
  margin:.55rem 0;
  padding-left:1.2rem;
}
.resource-links li{
  margin:.35rem 0;
}
.resource-book-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.7rem;
}
.resource-book{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:.9rem;
}
.resource-book h3{
  margin:.05rem 0 .4rem;
}

@media(max-width:1000px){
  .procrastination-steps{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .procrastination-steps{grid-template-columns:1fr}
  .resource-grid,.resource-book-list{grid-template-columns:1fr}
}

/* Direct Aletheia app launcher */

.aletheia-app-launcher{
  display:flex;
  align-items:center;
  gap:.65rem;
  flex-wrap:wrap;
}
.aletheia-provider-label{
  margin-left:.25rem;
  font-size:.92rem;
  color:var(--muted);
  font-weight:700;
}
.aletheia-app-launcher select{
  min-height:44px;
  padding:.6rem .72rem;
  border:1px solid #bdc9c4;
  border-radius:9px;
  background:#fff;
}
.copy-fallback{
  margin-top:.8rem;
}
.copy-fallback[hidden]{
  display:none;
}


/* Meet / Synantisi */
.meet-research-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:.65rem;
}
.meet-research-grid .card{
  min-width:0;
}
.synantisi-intro{
  border-top:5px solid #cce6dd;
}
.download-actions{
  display:flex;
  gap:.65rem;
  align-items:center;
  flex-wrap:wrap;
}
.download-actions > a:not(.go){
  display:inline-block;
  padding:.55rem .7rem;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  text-decoration:none;
}
@media(max-width:1000px){
  .meet-research-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .meet-research-grid{grid-template-columns:1fr}
}


/* Synantisi room explanation */
.synantisi-flow{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.65rem;
  margin:1rem 0;
}
.synantisi-flow > div{
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:.8rem;
}
.synantisi-flow strong,
.synantisi-flow span{
  display:block;
}
.synantisi-flow span{
  margin-top:.35rem;
  color:var(--muted);
}
@media(max-width:900px){
  .synantisi-flow{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .synantisi-flow{grid-template-columns:1fr}
}


/* Swindon-Synantisi mock lobby */
.syn-lobby-hero{border-top:5px solid #cce6dd}
.syn-door-grid{
  display:grid;
  grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr);
  gap:1rem;
}
.syn-check{
  display:block;
  margin:0 0 .7rem;
}
.syn-doorman select{
  display:block;
  margin-top:.3rem;
  min-height:42px;
  padding:.55rem .7rem;
  border:1px solid #bdc9c4;
  border-radius:9px;
  background:#fff;
}
.syn-interest-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.4rem;
  margin-top:.5rem;
}
.syn-interest-grid label{
  display:flex;
  align-items:center;
  gap:.4rem;
  border:1px solid var(--line);
  border-radius:9px;
  padding:.48rem .55rem;
  background:#fff;
}
.syn-door-actions,.syn-dance-actions,.syn-match-actions{
  display:flex;
  gap:.6rem;
  align-items:center;
  flex-wrap:wrap;
  margin-top:.8rem;
}
.syn-secondary,.syn-room-enter{
  border:1px solid #b9c8c2;
  border-radius:9px;
  padding:.58rem .72rem;
  background:#fff;
  color:var(--text);
  font-weight:700;
}
.syn-room-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.8rem;
}
.syn-room-card{
  border:1px solid var(--line);
  border-radius:14px;
  padding:1rem;
  background:#fff;
}
.syn-room-card:nth-child(1){border-top:5px solid #cce6dd}
.syn-room-card:nth-child(2){border-top:5px solid #eee1bc}
.syn-room-card:nth-child(3){border-top:5px solid #d8dcef}
.syn-room-card:nth-child(4){border-top:5px solid #f3d9e5}
.syn-room-head{
  display:flex;
  justify-content:space-between;
  gap:.6rem;
  align-items:center;
}
.syn-demo-count{font-size:.82rem;color:var(--muted)}
.syn-room-toolbar{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:start;
}
.syn-dance-panel{
  margin:.8rem 0;
  padding:.85rem;
  background:var(--soft2);
  border-radius:12px;
}
.syn-dance-actions a,.syn-dance-actions button{
  display:inline-block;
  padding:.55rem .7rem;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  text-decoration:none;
}
.syn-match-stage{
  display:grid;
  grid-template-columns:minmax(230px,.7fr) minmax(0,1.3fr);
  gap:1rem;
  margin-top:1rem;
}
.syn-match-result{
  border:1px dashed #b9c8c2;
  border-radius:12px;
  padding:1rem;
  min-height:170px;
  background:#fafcfb;
}
.syn-match-card h3{margin-top:.55rem}
.syn-dancer-card{text-align:center}
.syn-dancer-emoji{
  font-size:5rem;
  line-height:1;
  margin:.25rem 0 .7rem;
}
@media(max-width:820px){
  .syn-door-grid,.syn-match-stage{grid-template-columns:1fr}
  .syn-room-grid{grid-template-columns:1fr}
  .syn-interest-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
  .syn-interest-grid{grid-template-columns:1fr}
}


/* Synantisi scripted AI lobby host */
.syn-ai-host{
  margin:1rem 0;
  padding:1rem;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
}
.syn-ai-host-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
}
.syn-ai-host-head h3{
  margin:.35rem 0 0;
}
.syn-ai-chat{
  max-height:220px;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fafcfb;
  padding:.7rem;
  margin:.8rem 0;
}
.syn-ai-line{
  margin:.4rem 0;
  padding:.5rem .6rem;
  border-radius:8px;
}
.syn-ai-bot{background:#edf6f2}
.syn-ai-user{background:#f1f3fa}
.syn-ai-input-row{
  display:flex;
  gap:.55rem;
}
.syn-ai-input-row input{
  flex:1 1 auto;
  min-width:0;
  border:1px solid #bdc9c4;
  border-radius:9px;
  padding:.65rem .75rem;
  font:inherit;
}
