@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/app/assets/manrope-latin-ext-wght-normal-Ch3YOpNY.woff2") format("woff2-variations");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB;
}
@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/app/assets/manrope-latin-wght-normal-DHIcAJRg.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Space Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/app/assets/space-grotesk-latin-ext-wght-normal-D9tNdqV9.woff2") format("woff2-variations");
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB;
}
@font-face {
  font-family: "Space Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/app/assets/space-grotesk-latin-wght-normal-BhU9QXUp.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #6f706f;
  --paper: #f7f8fa;
  --line: #dfe3e8;
  --red: #d4313b;
  --green: #237952;
  font-family:
    "Manrope Variable",
    Manrope,
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.public-shell {
  width: min(1180px, 90vw);
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  z-index: 100;
  left: 1rem;
  top: 1rem;
  transform: translateY(-150%);
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.7rem;
  box-shadow: 0 8px 24px #0002;
}
.skip-link:focus {
  transform: none;
}
.public-header {
  position: sticky;
  z-index: 60;
  top: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  backdrop-filter: blur(18px);
}
.public-header > div {
  width: min(1200px, calc(100vw - 32px));
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.public-brand img {
  width: 172px;
  height: auto;
  object-fit: contain;
}
.public-desktop-nav,
.public-footer nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 700;
}
.public-desktop-nav {
  margin-left: auto;
}
.public-desktop-nav a {
  position: relative;
  color: #4d525a;
  font-size: 0.84rem;
  line-height: 1;
  transition: color 0.18s ease;
}
.public-desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--red);
  transition: transform 0.2s ease;
}
.public-desktop-nav a:hover {
  color: var(--red);
}
.public-desktop-nav a:hover::after,
.public-desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}
.public-header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.public-credit-pill,
.public-signin {
  min-height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  border: 1px solid #171717;
  border-radius: 10px;
  background: #171717;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
}
.public-credit-pill svg {
  width: 16px;
  height: 16px;
}
.public-credit-pill {
  height: 38px;
  min-height: 38px;
}
.public-signin {
  min-width: 96px;
}
.public-account {
  position: relative;
}
.public-account summary {
  min-height: 40px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #202226;
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.public-account summary::-webkit-details-marker,
.public-mobile-menu summary::-webkit-details-marker {
  display: none;
}
.public-account > div {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: 230px;
  padding: 0.55rem;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 55px #1c243014;
}
.public-account > div a,
.public-account > div button {
  min-height: 43px;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #30343a;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.public-account > div a:hover,
.public-account > div button:hover {
  background: #f3f5f7;
  color: var(--red);
}
.public-account form {
  margin: 0;
}
.public-account form button {
  width: 100%;
}
.public-mobile-menu {
  display: none;
}
.public-footer nav button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.public-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 26px #d4313b28;
}
.public-button--small {
  min-height: 42px;
  padding: 0.55rem 1rem;
}
.public-hero {
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(2.5rem, 5vw, 4.5rem);
}
.article-ad-sidebar { display: none; }
.article-reading-column { min-width: 0; }
@media (min-width: 1100px) {
  .blog-ads-allowed .article-ad-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 36px; align-items: start; }
  .blog-ads-allowed .article-ad-sidebar { display: block; align-self: stretch; }
  .article-ad-sticky { position: sticky; top: 100px; width: 300px; }
  .article-ad-sticky > small { display: block; margin-bottom: 10px; color: #737780; font-size: 12px; text-align: center; }
  #blog-ad-desktop { width: 300px; min-height: 250px; }
}
.public-hero h1,
.project-page h1,
.blog-article h1 {
  max-width: 1050px;
  margin: 0.45rem 0 1rem;
  font-family: "Space Grotesk Variable", "Space Grotesk", Manrope, system-ui, sans-serif;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}
.public-hero > h1,
.blog-article > header > h1 {
  max-width: min(100%, 1140px);
  font-size: clamp(2rem, 1.75rem + 2vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.public-hero > p,
.project-page > header > p,
.article-deck {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}
.public-kicker {
  display: block;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.public-section {
  padding: 1rem 0 7rem;
}
.public-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.public-section__head h2 {
  margin: 0.2rem 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.04em;
}
.public-section__head small {
  color: var(--muted);
}
.public-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.public-card,
.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 12px 38px #332a1f0a;
}
.public-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #eceae5;
}
.public-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.public-card:hover .public-card__image img {
  transform: scale(1.025);
}
.public-card > div {
  padding: 1.25rem;
}
.public-card h2,
.article-card h2 {
  margin: 0.28rem 0 0.55rem;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.public-card p,
.article-card p {
  margin: 0.35rem 0 1rem;
  color: var(--muted);
}
.public-card small,
.article-card small {
  color: #8d8d8a;
}
.public-empty {
  grid-column: 1/-1;
  padding: 4rem;
  border: 1px dashed #cbc7be;
  border-radius: 1.5rem;
  background: #fff;
  text-align: center;
}
.public-empty strong {
  display: block;
  font-size: 1.7rem;
}
.public-empty p {
  max-width: 590px;
  margin: 0.5rem auto 1.5rem;
  color: var(--muted);
}
.public-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.public-pagination a,
.public-pagination span {
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.project-page,
.blog-article {
  padding: 2.2rem 0 7rem;
}
.project-page > header,
.blog-article > header {
  margin-bottom: 2.4rem;
}
.project-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}
.project-result:has(> div:only-child) {
  grid-template-columns: 1fr;
}
.project-result > div {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 1.4rem;
  background: #e9e7e2;
}
.project-result span {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #171717d9;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.project-result img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.project-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 1rem 0 3rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--line);
}
.project-facts > div {
  padding: 1.15rem;
  background: #fff;
}
.project-facts span {
  display: block;
  color: var(--muted);
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.project-facts strong {
  display: block;
  margin-top: 0.18rem;
}
.project-caption,
.answer-block {
  max-width: 850px;
  margin: 3rem auto;
}
.project-caption h2,
.answer-block h2,
.article-content h2,
.article-faq h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.answer-block {
  padding: 2rem;
  border: 1px solid #edb7ba;
  border-radius: 1.4rem;
  background: linear-gradient(135deg, #fff, #fff3f3);
}
.answer-block p {
  color: var(--muted);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.article-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.article-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin: -1.5rem -1.5rem 1.25rem;
  background: #eceae5;
}
.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.article-card:hover .article-card-media img {
  transform: scale(1.025);
}
.article-card > a:last-child {
  color: var(--red);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  min-height: 44px;
  border-top: 1px solid #e4e6ea;
  text-decoration: none;
  font-size: 15px;
}
.article-byline {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.direct-answer {
  max-width: 900px;
  margin: 0 0 2rem;
  padding: 1.5rem 1.6rem;
  border-left: 4px solid var(--red);
  background: #fff;
  font-size: 1.12rem;
  font-weight: 650;
}
.article-featured {
  overflow: hidden;
  margin: 0 0 2rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: #eceae5;
}
.article-featured img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.article-featured figcaption {
  padding: 0.8rem 1rem;
  color: var(--muted);
  background: #fff;
  font-size: 0.88rem;
}
.article-toc {
  max-width: 780px;
  margin: 2rem 0;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}
.article-toc ol {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
}
.article-toc a {
  text-decoration: underline;
  text-decoration-color: #d7d3ca;
  text-underline-offset: 3px;
}
.article-content,
.article-faq {
  max-width: 800px;
}
.article-content h2 {
  margin: 3rem 0 1rem;
}
.article-content h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.45rem;
}
.article-content p,
.article-content li {
  color: #3f403f;
}
.article-content a {
  color: #b51f2a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content strong {
  color: #25282d;
  font-weight: 800;
}
.article-content code {
  padding: 0.12rem 0.35rem;
  border-radius: 0.35rem;
  background: #eef1f4;
  font-size: 0.9em;
}
.article-table-wrap {
  max-width: min(100%, 1040px);
  margin: 1.5rem 0 2.25rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 34px #2530440a;
}
.article-table-wrap table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.45;
}
.article-table-wrap th,
.article-table-wrap td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e8ebef;
  text-align: left;
  vertical-align: top;
}
.article-table-wrap th {
  background: #eef1f4;
  color: #272b31;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.article-table-wrap tbody tr:nth-child(even) {
  background: #fafbfc;
}
.article-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}
.article-inline-image {
  max-width: 1040px;
  margin: 2rem 0 2.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 16px 42px #2530440d;
}
.article-inline-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-inline-image figcaption {
  padding: 0.8rem 1rem;
  color: var(--muted);
  font-size: 0.84rem;
}
.article-content li + li {
  margin-top: 0.45rem;
}
.article-faq {
  margin-top: 3.5rem;
}
.article-faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.article-faq summary {
  cursor: pointer;
  font-weight: 800;
}
.article-faq p {
  color: var(--muted);
}
.public-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}
.public-footer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.6rem 0;
}
.public-footer p {
  margin: 0.15rem 0;
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid #ef8f95;
  outline-offset: 3px;
}
@media (min-width: 580px) {
  .public-header > div {
    width: min(1200px, calc(100vw - 48px));
  }
}
@media (max-width: 839px) {
  .public-header > div {
    min-height: 72px;
  }
  .public-brand img {
    width: 142px;
  }
  .public-desktop-nav,
  .public-account,
  .public-signin {
    display: none;
  }
  .public-mobile-menu {
    display: block;
  }
  .public-mobile-menu > summary {
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    list-style: none;
  }
  .public-mobile-menu > summary span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: #202226;
  }
  .public-mobile-menu nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    width: min(310px, calc(100vw - 2rem));
    padding: 0.55rem;
    display: grid;
    gap: 0.15rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 55px #1c24301c;
  }
  .public-mobile-menu nav > a,
  .public-mobile-menu nav button,
  .public-mobile-user {
    min-height: 44px;
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #30343a;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: left;
  }
  .public-mobile-user {
    min-height: 38px;
    margin-top: 0.25rem;
    border-top: 1px solid var(--line);
    border-radius: 0;
    color: #888d95;
    font-size: 0.7rem;
  }
  .public-mobile-menu form,
  .public-mobile-menu form button {
    width: 100%;
    margin: 0;
  }
  .public-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .public-footer > div {
    align-items: flex-start;
    flex-direction: column;
  }
  .public-footer nav {
    flex-wrap: wrap;
  }
}
@media (max-width: 620px) {
  .public-shell {
    width: min(100% - 2rem, 1180px);
  }
  .public-header > div {
    width: min(100% - 1.25rem, 1420px);
    gap: 0.6rem;
  }
  .public-credit-pill {
    min-height: 40px;
    padding-inline: 0.72rem;
    font-size: 0.72rem;
  }
  .article-table-wrap {
    width: calc(100vw - 2rem);
    margin-block: 1.25rem 2rem;
  }
  .public-hero {
    padding: 3rem 0 2rem;
  }
  .public-hero h1,
  .project-page h1,
  .blog-article h1 {
    font-size: clamp(2.35rem, 13vw, 3.7rem);
  }
  .public-grid,
  .article-grid,
  .project-result {
    grid-template-columns: 1fr;
  }
  .public-section__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
  .public-empty {
    padding: 2.5rem 1.3rem;
  }
  .project-result > div,
  .project-result img {
    min-height: 260px;
  }
  .project-facts {
    grid-template-columns: 1fr 1fr;
  }
  .public-pagination {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }
  .public-footer nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Public community directory: compact, image-first gallery. */
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.community-directory { min-height: 70vh; padding-bottom: 5rem; background: #f5f6f8; }
.community-directory-head { padding: 2.4rem 0 1.45rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.community-directory-head h1 { margin: 0; font-family: "Space Grotesk Variable", "Space Grotesk", Manrope, system-ui, sans-serif; font-size: clamp(2.3rem, 4vw, 3.65rem); line-height: 1; letter-spacing: -.055em; }
.community-directory-head p { margin: .55rem 0 0; color: #74777f; font-size: .92rem; }
.community-directory-feed > header { min-height: 2.35rem; margin-bottom: .65rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.community-directory-feed > header strong { font-size: .9rem; }
.community-directory-feed > header small { color: #898c93; }
.community-directory-grid { columns: 3 19rem; column-gap: .75rem; }
.community-directory-card { margin: 0 0 .75rem; break-inside: avoid; overflow: hidden; border-radius: .9rem; background: #e2e4e8; transform: translateZ(0); transition: box-shadow .2s ease; }
.community-directory-card:hover { box-shadow: 0 16px 38px rgba(25,31,42,.13); }
.community-directory-card > a { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.community-directory-card > a::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(to top, rgba(12,15,20,.32), transparent); pointer-events: none; }
.community-directory-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.community-directory-card:hover img { transform: scale(1.02); }
.community-directory-author { position: absolute; z-index: 2; left: .65rem; bottom: .65rem; max-width: 75%; overflow: hidden; padding: .38rem .72rem; border: 1px solid rgba(255,255,255,.74); border-radius: 999px; background: rgba(255,255,255,.94); color: #202329; font-size: .72rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(12px); }
.community-directory-open { position: absolute; z-index: 2; top: .65rem; right: .65rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.76); border-radius: .62rem; background: rgba(255,255,255,.91); font-size: 1.15rem; opacity: 0; transform: translateY(-3px); transition: opacity .18s ease, transform .18s ease; backdrop-filter: blur(10px); }
.community-directory-card:hover .community-directory-open, .community-directory-card:focus-within .community-directory-open { opacity: 1; transform: none; }
.community-directory .public-empty, .community-directory .public-pagination { column-span: all; }

@media (max-width: 900px) {
  .community-directory-head { padding-top: 1.7rem; }
  .community-directory-grid { columns: 2 15rem; }
  .community-directory-open { opacity: 1; transform: none; }
}

@media (max-width: 620px) {
  .community-directory-head { padding: 1.5rem 0 1rem; align-items: flex-start; }
  .community-directory-head h1 { font-size: 2.2rem; }
  .community-directory-head p { max-width: 12rem; margin-top: .3rem; font-size: .78rem; line-height: 1.4; }
  .community-directory-head .public-button { min-height: 2.5rem; padding: .45rem .75rem; font-size: .72rem; white-space: nowrap; }
  .community-directory-grid { columns: 1; }
  .community-directory-card { margin-bottom: .55rem; border-radius: .75rem; }
}

/* Public community lightbox keeps the crawlable gallery interactive. */
.public-lightbox { position: fixed; z-index: 1900; inset: 0; display: grid; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; background: radial-gradient(circle at 50% 44%,#171b21 0,#0b0e12 48%,#080a0d 100%); color: #f5f6f8; }
.public-lightbox > header { min-height: 68px; padding: 12px 20px 7px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.public-lightbox > header > strong { font-size: 1rem; }
.public-lightbox-actions { display: flex; align-items: center; gap: 7px; }
.public-lightbox-actions > button, .public-lightbox-actions > a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #29303b; border-radius: 50%; background: #11151b; color: #d6dae1; font: inherit; text-decoration: none; cursor: pointer; }
.public-lightbox-actions .public-lightbox-close { width: 48px; height: 48px; font-size: 1.8rem; }
.public-lightbox-toggle { padding: 4px; display: flex; gap: 2px; border: 1px solid #29303b; border-radius: 999px; background: #11151b; }
.public-lightbox-toggle button { min-width: 68px; height: 34px; border: 0; border-radius: 999px; background: transparent; color: #9da3ae; font: inherit; font-size: .75rem; font-weight: 800; cursor: pointer; }
.public-lightbox-toggle button.is-active { background: #3a414d; color: white; }
.public-lightbox-stage { min-width: 0; min-height: 0; padding: 8px 100px 18px; display: grid; place-items: center; }
.public-lightbox-stage img { max-width: min(78vw,1180px); max-height: calc(100svh - 184px); width: auto; height: auto; object-fit: contain; box-shadow: 0 22px 70px rgba(0,0,0,.32); }
.public-lightbox-stage.is-wheel img { max-width: min(62vw,720px); max-height: calc(100svh - 220px); padding: 18px; border-radius: 14px; background: white; }
.public-lightbox-nav { position: absolute; top: 50%; width: 52px; height: 52px; border: 1px solid #29303b; border-radius: 50%; background: #10141a; color: #dce0e6; font-size: 1.5rem; cursor: pointer; transform: translateY(-50%); }
.public-lightbox-nav.is-previous { left: 20px; }
.public-lightbox-nav.is-next { right: 20px; }
.public-lightbox > footer { min-height: 94px; padding: 8px 28px 17px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.public-lightbox-author { min-width: 0; display: grid; gap: 3px; }
.public-lightbox-author span { color: #969daa; font-size: .72rem; }
.public-lightbox-thumbnails { display: flex; gap: 8px; }
.public-lightbox-thumbnails button { position: relative; width: 70px; height: 70px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 11px; background: #1a1f27; cursor: pointer; }
.public-lightbox-thumbnails button.is-active { border-color: #fff; box-shadow: 0 0 0 2px var(--red); }
.public-lightbox-thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.public-lightbox-thumbnails button:last-child img { padding: 5px; object-fit: contain; background: white; }
.public-lightbox-thumbnails span { position: absolute; inset: auto 4px 4px; padding: 2px 5px; border-radius: 4px; background: rgba(5,7,10,.76); color: white; font-size: .56rem; font-weight: 800; }
@media (max-width: 640px) {
  .public-lightbox > header { min-height: 58px; padding: 7px 8px 4px; }
  .public-lightbox > header > strong { display: none; }
  .public-lightbox-actions { width: 100%; }
  .public-lightbox-toggle { margin-right: auto; }
  .public-lightbox-actions > button, .public-lightbox-actions > a { width: 37px; height: 37px; }
  .public-lightbox-actions .public-lightbox-close { width: 40px; height: 40px; }
  .public-lightbox-toggle button { min-width: 51px; height: 29px; }
  .public-lightbox-stage { padding: 4px 11px 9px; }
  .public-lightbox-stage img { max-width: 100%; max-height: calc(100svh - 170px); }
  .public-lightbox-stage.is-wheel img { max-width: 90vw; }
  .public-lightbox-nav { top: auto; bottom: 91px; width: 38px; height: 38px; }
  .public-lightbox-nav.is-previous { left: 10px; }
  .public-lightbox-nav.is-next { right: 10px; }
  .public-lightbox > footer { min-height: 86px; padding: 7px 10px 10px; justify-content: center; }
  .public-lightbox-author { display: none; }
  .public-lightbox-thumbnails button { width: 58px; height: 58px; }
}
