.atlas-community-feed {
  --community-surface: var(--atlas-panel, #fffcf6);
  --community-raised: var(--atlas-raised, #fff);
  --community-ink: var(--atlas-fg, #203b35);
  --community-muted: var(--atlas-muted, #5f7069);
  --community-line: var(--atlas-line, #d7dfd8);
  --community-deep: #194b45;
  --community-deep-2: #103832;
  --community-gold: #f1d79d;
  width: min(100%, 940px);
  margin: 0 auto;
  color: var(--community-ink);
  font: 400 15px/1.55 "Segoe UI", system-ui, sans-serif;
}
.atlas-community-feed *, .atlas-community-feed *::before, .atlas-community-feed *::after { box-sizing: border-box; }
.atlas-community-feed [hidden] { display: none !important; }
.atlas-community-feed :focus-visible { outline: 3px solid #b77b24; outline-offset: 3px; }

.atlas-community-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  min-height: 260px;
  overflow: hidden;
  padding: clamp(24px, 4.5vw, 42px);
  border: 1px solid #2a6258;
  border-radius: 25px;
  color: #fffdf6;
  background:
    radial-gradient(circle at 92% 18%, rgba(241, 215, 157, .18) 0, transparent 30%),
    linear-gradient(125deg, var(--community-deep) 0%, var(--community-deep-2) 100%);
  box-shadow: 0 18px 42px rgba(19, 55, 46, .12);
}
.atlas-community-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -75% 43%;
  height: 245px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  pointer-events: none;
}
.atlas-community-hero-content { position: relative; z-index: 1; max-width: 570px; }
.atlas-community-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: var(--community-gold);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.atlas-community-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(241,215,157,.12); }
.atlas-community-title { margin: 0; font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.16; }
.atlas-community-intro { max-width: 40ch; margin: 13px 0 23px; color: #e0ece6; font-size: 1rem; line-height: 1.65; overflow-wrap: anywhere; }
.atlas-community-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.atlas-community-write {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 21px;
  border-radius: 13px;
  background: var(--community-gold);
  color: #173b34;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(12,35,29,.18);
}
.atlas-community-write:hover { background: #ffebbd; transform: translateY(-1px); }
.atlas-community-write-hint { color: #d7e4de; font-size: .82rem; }
.atlas-community-art { position: relative; min-height: 168px; opacity: .94; pointer-events: none; }
.atlas-community-art::before, .atlas-community-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(241,215,157,.27);
}
.atlas-community-art::before { width: 212px; height: 212px; top: -15px; right: -4px; }
.atlas-community-art::after { width: 142px; height: 142px; top: 20px; right: 31px; }
.atlas-community-art-pin { position: absolute; z-index: 1; top: 34px; right: 96px; width: 40px; height: 40px; border: 9px solid var(--community-gold); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.atlas-community-art-pin::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fdf9e8; }
.atlas-community-art-path { position: absolute; top: 112px; right: 24px; width: 185px; height: 50px; border-bottom: 2px dashed rgba(241,215,157,.7); border-radius: 50%; transform: rotate(-14deg); }

.atlas-community-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 10px 20px;
  align-items: end;
  margin: 18px 0 0;
  padding: 20px 23px 22px;
  border: 1px solid var(--community-line);
  border-radius: 20px;
  background: var(--community-surface);
  box-shadow: 0 7px 22px rgba(20, 54, 42, .04);
}
.atlas-community-region-label { grid-column: 1; margin: 0; font-size: .91rem; font-weight: 800; line-height: 1.3; }
.atlas-community-tabs { grid-column: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.atlas-community-tab {
  min-width: 67px;
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid var(--community-line);
  border-radius: 999px;
  background: var(--community-raised);
  color: var(--community-ink);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.atlas-community-tab:hover { border-color: #73a496; }
.atlas-community-tab[aria-pressed="true"] { border-color: var(--community-deep); background: var(--community-deep); color: #fff; box-shadow: 0 4px 11px rgba(25,75,69,.18); }
.atlas-community-search { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: end; gap: 8px; min-width: 0; }
.atlas-community-search-label { display: grid; flex: 1 1 auto; gap: 7px; min-width: 0; font-size: .86rem; font-weight: 800; }
.atlas-community-search-input { width: 100%; min-width: 0; min-height: 44px; padding: 9px 13px; border: 1px solid var(--community-line); border-radius: 11px; outline: 0; background: var(--community-raised); color: var(--community-ink); font: inherit; font-weight: 400; }
.atlas-community-search-input::placeholder { color: var(--community-muted); opacity: 1; }
.atlas-community-search-input:focus { border-color: #6eab98; box-shadow: 0 0 0 3px rgba(84,151,127,.15); }
.atlas-community-search-button { min-width: 68px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--community-deep); border-radius: 11px; background: var(--community-deep); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.atlas-community-search-button:hover { background: #27665a; }

.atlas-community-results { margin: 27px 0 0; }
.atlas-community-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 2px 13px; }
.atlas-community-results-title { margin: 0; font-size: 1.25rem; font-weight: 850; letter-spacing: -.025em; }
.atlas-community-status { margin: 0; color: var(--community-muted); font-size: .86rem; text-align: right; }
.atlas-community-status-announcement { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.atlas-community-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.atlas-community-card { min-width: 0; margin: 0; }
.atlas-community-card-link {
  display: block;
  min-width: 0;
  padding: 18px 21px 15px;
  border: 1px solid var(--community-line);
  border-radius: 17px;
  background: var(--community-surface);
  color: var(--community-ink);
  text-decoration: none;
  box-shadow: 0 5px 17px rgba(21, 52, 39, .035);
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.atlas-community-card-link:hover { border-color: #85b4a4; box-shadow: 0 11px 28px rgba(19,73,54,.09); transform: translateY(-2px); }
.atlas-community-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; color: var(--community-muted); font-size: .78rem; }
.atlas-community-place, .atlas-community-topic { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.atlas-community-place { background: #e8f2ec; color: #205c49; }
.atlas-community-topic { background: #f4eee0; color: #806131; }
.atlas-community-date { margin-left: auto; white-space: nowrap; }
.atlas-community-card-title { margin: 10px 0 0; color: var(--community-ink); font-size: 1.12rem; font-weight: 800; line-height: 1.42; overflow-wrap: anywhere; }
.atlas-community-preview { display: -webkit-box; overflow: hidden; margin: 6px 0 0; color: var(--community-muted); line-height: 1.55; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.atlas-community-original-note { display: inline-block; margin-top: 8px; color: var(--community-muted); font-size: .73rem; font-weight: 700; }
.atlas-community-card-end { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px 14px; margin-top: 14px; }
.atlas-community-translations { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; color: #8a622d; font-size: .76rem; font-weight: 700; }
.atlas-community-translation-label { margin-right: 2px; }
.atlas-community-locale { min-width: 26px; padding: 1px 5px; border: 1px solid #d5bd8d; border-radius: 5px; font-size: .69rem; line-height: 1.4; text-align: center; }
.atlas-community-read { margin-left: auto; color: #216950; font-size: .83rem; font-weight: 800; white-space: nowrap; }
.atlas-community-more { display: block; min-height: 44px; margin: 18px auto 0; padding: 10px 22px; border: 1px solid var(--community-line); border-radius: 12px; background: var(--community-raised); color: var(--community-ink); font: inherit; font-weight: 800; cursor: pointer; }
.atlas-community-more:hover { border-color: #80ae9d; }

.atlas-community-state { margin-top: 2px; padding: 30px 20px 32px; border: 1px dashed var(--community-line); border-radius: 17px; background: var(--community-surface); text-align: center; }
.atlas-community-state-icon { position: relative; display: block; width: 38px; height: 33px; margin: 0 auto 13px; border: 2px solid #86ab9d; border-radius: 12px; }
.atlas-community-state-icon::after { content: ""; position: absolute; left: 7px; bottom: -8px; width: 12px; height: 9px; border-left: 2px solid #86ab9d; transform: skewY(-35deg); }
.atlas-community-state-title { margin: 0; font-size: 1rem; font-weight: 800; }
.atlas-community-state-body { margin: 6px auto 0; max-width: 44ch; color: var(--community-muted); font-size: .89rem; line-height: 1.5; }
.atlas-community-retry { min-height: 44px; margin-top: 16px; padding: 8px 19px; border: 1px solid var(--community-deep); border-radius: 10px; background: var(--community-deep); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.atlas-community-state-loading .atlas-community-state-icon { animation: community-pulse 1.2s ease-in-out infinite alternate; }
@keyframes community-pulse { from { opacity: .35; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.atlas-community-footer { display: flex; justify-content: flex-end; padding: 16px 3px 0; }
.atlas-community-board { display: inline-flex; align-items: center; min-height: 44px; color: var(--community-ink); font-size: .88rem; font-weight: 800; text-underline-offset: 4px; }

html[data-atlas-mode="dark"] .atlas-community-feed .atlas-community-place { background: #214c3f; color: #c6edd7; }
html[data-atlas-mode="dark"] .atlas-community-feed .atlas-community-topic { background: #514329; color: #f4dfab; }
html[data-atlas-mode="dark"] .atlas-community-feed .atlas-community-translations { color: #e7cb96; }
html[data-atlas-mode="dark"] .atlas-community-feed .atlas-community-read { color: #b1e3cc; }
@media (max-width: 720px) {
  .atlas-community-hero { grid-template-columns: 1fr; min-height: 0; }
  .atlas-community-art { display: none; }
  .atlas-community-controls { grid-template-columns: 1fr; }
  .atlas-community-region-label, .atlas-community-tabs, .atlas-community-search { grid-column: 1; grid-row: auto; }
  .atlas-community-search { margin-top: 6px; }
}
@media (max-width: 420px) {
  .atlas-community-hero { padding: 24px 20px 26px; border-radius: 19px; }
  .atlas-community-title { font-size: 2rem; }
  .atlas-community-hero-actions { align-items: flex-start; flex-direction: column; }
  .atlas-community-controls { padding: 17px; border-radius: 16px; }
  .atlas-community-tab { flex: 1 1 auto; padding-inline: 10px; }
  .atlas-community-search-button { min-width: 60px; padding-inline: 10px; }
  .atlas-community-results-head { display: block; }
  .atlas-community-status { margin-top: 3px; text-align: left; }
  .atlas-community-card-link { padding: 16px; }
  .atlas-community-date { margin-left: 0; }
  .atlas-community-read { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-community-feed *, .atlas-community-feed *::before, .atlas-community-feed *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
