/* HALIA Phase C network pages (community board, projects, people, opportunities, events, resources, search, about, guide).
   Page layer (wins over legacy page CSS); tokens only. */
@layer pages {
  /* ---------- shared bits ---------- */
  .community .btn-icon-plain, .btn-icon-plain {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
  }
  @media (hover: hover) { .community .btn-icon-plain:hover { background: var(--surface-hover); color: var(--text-primary); } }
  .community .btn-icon-plain[aria-pressed="true"] { color: var(--accent); }
  .community .btn-icon-plain[aria-pressed="true"] .icon { fill: currentColor; }
  .community .section-head h2 { margin: 0; font: var(--text-section); }
  .community .side-empty { margin: var(--space-3) 0 0; font: var(--text-body-sm); color: var(--text-muted); }
  .community .follow-button { min-height: 34px; padding: 0 var(--space-4); border: 1px solid var(--surface-mint-strong); border-radius: var(--radius-md); background: var(--surface-mint); color: var(--accent); font: var(--text-label); font-size: 13px; }
  .community .follow-button[aria-pressed="true"] { border-color: var(--border-subtle); background: var(--surface); color: var(--text-secondary); }
  .keyword-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 var(--space-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); background: var(--surface); color: var(--text-secondary); font: var(--text-body-sm); text-decoration: none; white-space: nowrap; }
  .keyword-chip[aria-current="page"] { border-color: var(--accent); color: var(--accent); background: var(--accent-subtle); }
  .row-menu, .community .row-menu { position: relative; margin: 0; padding: 0; border: 0; }
  .row-menu > summary { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-pill); color: var(--text-secondary); cursor: pointer; list-style: none; }
  .row-menu > summary::-webkit-details-marker { display: none; }
  .row-menu > summary:hover { background: var(--surface-hover); }
  .row-menu-panel { position: absolute; z-index: var(--z-dropdown); right: 0; top: calc(100% + 4px); display: grid; min-width: 150px; padding: var(--space-1); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-raised); box-shadow: var(--shadow-float); }
  .community .row-menu-panel > a, .community .row-menu-panel > button { display: block; width: 100%; min-height: 38px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-primary); font: var(--text-body-sm); text-align: left; line-height: 38px; text-decoration: none; }
  .community .row-menu-panel > a:hover, .community .row-menu-panel > button:hover { background: var(--surface-hover); }

  /* Side cards (community sidebar, people, events) */
  .side-card { min-width: 0; padding: var(--space-5); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-card); }
  .side-me { background: var(--surface-mint); border-color: transparent; }
  .side-me-head { display: flex; align-items: center; gap: var(--space-4); color: inherit; text-decoration: none; }
  .side-me-head > span { display: grid; gap: 2px; min-width: 0; }
  .side-me-head strong { font: var(--text-h2); color: var(--text-primary); overflow-wrap: anywhere; }
  .side-me-head > span > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--text-body-sm); color: var(--text-secondary); }
  .side-me-head > span .icon { vertical-align: -3px; color: var(--accent); }
  .side-me-head > .icon { margin-left: auto; color: var(--accent); }
  .side-me-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: var(--space-4) 0 0; padding: var(--space-4) 0; border-radius: var(--radius-lg); background: var(--surface); }
  .side-me-stats > div { display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; }
  .side-me-stats > div + div { border-left: 1px solid var(--border-subtle); }
  .side-me-stats dt { font: var(--text-body-sm); color: var(--text-secondary); white-space: nowrap; }
  .side-me-stats dd { margin: 0; font: 700 24px/1.2 var(--font-sans); }
  .side-me-stats dd a { color: var(--accent); text-decoration: none; }
  .side-guest { display: grid; justify-items: start; gap: var(--space-2); }
  .community .side-guest h2 { margin: 0; font: var(--text-h3); }
  .side-guest p { margin: 0; font: var(--text-body-sm); color: var(--text-secondary); }
  .side-tag-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-flow: column; grid-template-rows: repeat(5, auto); gap: 0 var(--space-3); margin: var(--space-3) 0 0; padding: 0; list-style: none; }
  .side-tag-list a { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; border-bottom: 1px solid var(--border-subtle); color: inherit; text-decoration: none; }
  .side-rank { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: var(--radius-pill); background: var(--surface-mint); color: var(--accent); font: 700 13px/1 var(--font-sans); }
  .side-tag-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--text-label); font-size: 13px; color: var(--text-primary); }
  .side-tag-count { font: var(--text-caption); color: var(--text-muted); font-variant-numeric: tabular-nums; }
  @media (hover: hover) { .side-tag-list a:hover .side-tag-name { color: var(--accent); } }
  .side-people-list { margin: var(--space-2) 0 0; padding: 0; list-style: none; }
  .side-people-list li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; }
  .side-people-list li + li { border-top: 1px solid var(--border-subtle); }
  .side-person { display: flex; align-items: center; gap: var(--space-3); flex: 1; min-width: 0; color: inherit; text-decoration: none; }
  .side-person > span { display: grid; min-width: 0; }
  .side-person strong { font: var(--text-label); font-size: 15px; color: var(--text-primary); }
  .side-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--text-body-sm); color: var(--text-muted); }
  .side-notice-body { display: grid; gap: var(--space-1); margin-top: var(--space-3); color: inherit; text-decoration: none; }
  .side-notice-body strong { font: var(--text-card-title); color: var(--text-primary); }
  .side-notice-body p { margin: 0; font: var(--text-body-sm); color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .side-notice-body time { justify-self: end; font: var(--text-caption); color: var(--text-muted); }
  .side-guide-body { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-2); }
  .side-guide-body p { flex: 1; margin: 0; font: var(--text-body-sm); color: var(--text-secondary); }
  .side-guide-body img { flex: none; width: 88px; height: 88px; }
  .community .side-guide-link { margin-top: var(--space-2); border: 0; background: var(--surface-mint); color: var(--accent); }
  .side-cta { position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); min-height: 210px; overflow: hidden; padding: var(--space-5); border-radius: var(--radius-xl); color: var(--on-media); }
  .side-cta > img { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--art-filter); }
  .side-cta > div { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-4); }
  .community .side-cta h2 { margin: 0; font: 700 18px/1.5 var(--font-sans); color: var(--on-media); }
  .community .side-cta-button { align-self: flex-start; min-height: 44px; border: 0; border-radius: var(--radius-lg); background: var(--media-button); color: var(--on-media-button); font-weight: 700; }
  .side-cta > p { margin: 0; font: 500 13px/1.6 var(--font-sans); color: var(--on-media-muted); text-align: right; }

  /* ---------- community board (REF5 desktop / REF6 mobile) ---------- */
  :root[data-route="board"] .community.container { padding-top: var(--space-2); }
  .board-page { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-width); gap: var(--space-6); align-items: start; }
  .board-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); min-width: 0; }
  .board-side { display: grid; gap: var(--space-4); padding: var(--space-4); border-radius: var(--radius-2xl); background: var(--bg-secondary); }
  .board-hero { position: relative; isolation: isolate; min-height: 300px; overflow: hidden; border-radius: var(--radius-2xl); background: linear-gradient(120deg, var(--hero-sky), var(--hero-sky-end)); }
  .board-hero-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; filter: var(--art-filter); }
  .board-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--hero-text-veil); }
  .board-hero-copy { display: grid; justify-items: start; gap: var(--space-3); max-width: 560px; padding: var(--space-10) var(--space-12); }
  .community .board-hero h1 { margin: 0; font: 800 52px/1.15 var(--font-sans); letter-spacing: -.03em; color: var(--text-primary); }
  .board-hero-sub { margin: 0; font: 700 22px/1.4 var(--font-sans); color: var(--text-primary); }
  .board-hero-lead { margin: 0; font: var(--text-body); color: var(--text-secondary); }
  .community .board-hero .btn-lg { min-height: var(--control-xl); margin-top: var(--space-2); padding: 0 var(--space-8); border-radius: var(--radius-lg); font-size: 17px; gap: var(--space-3); }
  .board-tabs { position: static; display: flex; flex-direction: row; gap: var(--space-3); padding: var(--space-3); overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-card); scrollbar-width: none; font: inherit; }
  .board-tabs::-webkit-scrollbar { display: none; }
  .board-tabs .toggle-chip { flex: none; gap: var(--space-4); min-height: 48px; padding: 0 var(--space-6); font-size: 16px; }
  .board-filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-card); }
  .board-search { position: relative; flex: 1 1 220px; min-width: 0; }
  .board-search > .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
  .community .board-filter input[type="search"] { width: 100%; height: 48px; padding: 0 var(--space-4) 0 46px; border: 1px solid transparent; border-radius: var(--radius-pill); background: var(--bg-secondary); font-size: 16px; }
  .community .board-filter select { flex: none; width: auto; min-width: 112px; height: 48px; padding: 0 36px 0 var(--space-4); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background-color: var(--surface); font: var(--text-label); }
  .board-view { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); }
  .community .board-view .btn-icon-plain { width: 40px; height: 40px; border-radius: var(--radius-md); }
  .community .board-view .btn-icon-plain[aria-pressed="true"] { background: var(--accent-subtle); }
  .community .board-view .btn-icon-plain[aria-pressed="true"] .icon { fill: none; }
  .board-keywords { display: none; }
  .board-active { margin: 0; font: var(--text-body-sm); color: var(--text-secondary); }
  .board-active a { margin-left: var(--space-2); color: var(--accent); font-weight: 600; }

  .board-pinned { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 34%); gap: var(--space-4); padding: var(--space-4); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-card); }
  .board-pinned-body { display: flex; gap: var(--space-4); min-width: 0; padding: var(--space-2); color: inherit; text-decoration: none; }
  .board-pinned-flags { display: flex; align-items: flex-start; gap: var(--space-3); flex: none; color: var(--tone-blue-fg); }
  .board-pinned-flags .chip { min-height: 30px; padding: 0 var(--space-3); }
  .board-pinned-text { display: grid; gap: var(--space-2); min-width: 0; }
  .board-pinned-text > strong { font: 700 19px/1.4 var(--font-sans); color: var(--text-primary); }
  .board-pinned-excerpt { font: var(--text-body-sm); color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .board-pinned-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); font: var(--text-body-sm); color: var(--text-muted); }
  .board-pinned-meta strong { color: var(--text-primary); font-weight: 600; }
  .board-pinned-banner { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; min-height: 120px; overflow: hidden; padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); color: var(--text-primary); text-decoration: none; font: 600 17px/1.5 var(--font-sans); }
  .board-pinned-banner img { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--art-filter); }
  .board-pinned-banner .icon { color: var(--text-primary); }

  .board-list { display: grid; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-card); }
  .board-list > .empty-state { padding: var(--space-12) var(--space-6); }
  .board-row { display: grid; grid-template-columns: 156px minmax(0, 1fr) auto; grid-template-areas: "flags body stats"; gap: var(--space-2) var(--space-5); align-items: start; padding: var(--space-5) var(--space-6); }
  .board-row.has-thumb { grid-template-columns: 156px minmax(0, 1fr) 150px auto; grid-template-areas: "flags body thumb stats"; }
  .board-row + .board-row { border-top: 1px solid var(--border-subtle); }
  .board-row-flags { grid-area: flags; display: flex; flex-wrap: wrap; align-content: flex-start; gap: var(--space-2); padding-top: 2px; }
  .board-row-flags .chip { min-height: 30px; padding: 0 10px; font-size: 13px; }
  .board-row-body { grid-area: body; display: grid; gap: var(--space-2); min-width: 0; }
  .board-row-title { color: inherit; text-decoration: none; }
  .community .board-row h3 { margin: 0; font: 700 18px/1.45 var(--font-sans); color: var(--text-primary); overflow-wrap: anywhere; }
  @media (hover: hover) { .board-row-title:hover h3 { color: var(--accent); } }
  .board-row-excerpt { margin: 0; font: var(--text-body-sm); color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .board-row-author { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); font: var(--text-body-sm); color: var(--text-muted); }
  .board-row-author > a { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text-primary); text-decoration: none; }
  .board-row-author > time::before { content: "·"; margin-right: var(--space-3); }
  .board-row-thumb { grid-area: thumb; display: block; width: 150px; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-muted); aspect-ratio: 4 / 3; }
  .board-row-img { width: 100%; height: 100%; object-fit: cover; }
  .board-row-stats { grid-area: stats; display: flex; align-items: center; justify-content: flex-end; gap: var(--space-3); align-self: end; white-space: nowrap; }
  .board-row.is-locked { opacity: .8; }
  .board-row.is-locked h3 { color: var(--text-muted); }

  /* Card view */
  .board-list[data-view="grid"] { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-4); padding: var(--space-4); }
  .board-list[data-view="grid"] .board-row, .board-list[data-view="grid"] .board-row.has-thumb { grid-template-columns: minmax(0, 1fr); grid-template-areas: "thumb" "flags" "body" "stats"; padding: var(--space-4); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); }
  .board-list[data-view="grid"] .board-row + .board-row { border-top: 1px solid var(--border-subtle); }
  .board-list[data-view="grid"] .board-row-stats { justify-content: flex-start; gap: var(--space-3); }
  .board-list[data-view="grid"] .board-row-stats .row-menu { margin-left: auto; }
  .board-list[data-view="grid"] .board-row h3 { font-size: 16px; }
  .board-fab { display: none; }

  /* Post detail + editor: HALIA card look */
  .community .post-detail { padding: var(--space-8); border-radius: var(--radius-2xl); box-shadow: var(--shadow-card); }
  .community .post-save[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }

  @media (max-width: 1279px) {
    .board-page { grid-template-columns: minmax(0, 1fr); }
    .board-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .board-side .side-me { grid-column: 1 / -1; }
  }
  @media (max-width: 1023px) {
    .board-row, .board-row.has-thumb { grid-template-columns: minmax(0, 1fr) 132px; grid-template-areas: "flags thumb" "body thumb" "stats stats"; }
    .board-row-thumb { width: 100%; }
    .board-row:not(.has-thumb) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "flags" "body" "stats"; }
    .board-row-flags { flex-wrap: nowrap; }
  }

  /* Phone (REF6): compact hero, scrolling pills, keyword chips, compact feed and a floating write button. */
  @media (max-width: 767px) {
    .board-page { display: block; }
    .board-main { gap: var(--space-3); }
    .board-hero { min-height: 0; border-radius: var(--radius-xl); }
    .board-hero-art { left: 38%; width: 62%; opacity: .5; object-position: 70% center; }
    .board-hero-copy { gap: var(--space-2); padding: var(--space-6) var(--space-5); }
    .community .board-hero h1 { font-size: 30px; }
    .board-hero-sub { font-size: 16px; }
    .board-hero-lead, .community .board-hero .btn-lg { display: none; }
    .board-tabs { margin-inline: calc(-1 * var(--page-gutter)); padding: 0 var(--page-gutter); border: 0; border-radius: 0; background: transparent; box-shadow: none; gap: var(--space-2); }
    .board-tabs .toggle-chip { min-height: 40px; padding: 0 var(--space-4); font-size: 14px; gap: var(--space-2); }
    .board-filter { padding: 0; border: 0; background: transparent; box-shadow: none; gap: var(--space-2); }
    .board-search { flex-basis: 100%; }
    .community .board-filter select { flex: 1 1 0; min-width: 0; height: 42px; padding: 0 22px 0 10px; background-position: right 6px center; font-size: 13px; }
    .board-view { display: none; }
    .board-keywords { display: flex; gap: var(--space-2); margin-inline: calc(-1 * var(--page-gutter)); padding: 0 var(--page-gutter); overflow-x: auto; scrollbar-width: none; }
    .board-keywords::-webkit-scrollbar { display: none; }
    .board-pinned { grid-template-columns: 1fr; padding: var(--space-3); }
    .board-pinned-body { padding: 0; gap: var(--space-3); }
    .board-pinned-flags .icon { display: none; }
    .board-pinned-text > strong { font-size: 15px; }
    .board-pinned-excerpt, .board-pinned-meta span:last-child { display: none; }
    .board-pinned-banner { min-height: 84px; font-size: 15px; }
    .board-row, .board-row.has-thumb { grid-template-columns: minmax(0, 1fr) 88px; grid-template-areas: "flags thumb" "body thumb" "stats stats"; gap: var(--space-2) var(--space-3); padding: var(--space-4); }
    .community .board-row h3 { font-size: 16px; }
    .board-row-excerpt { display: none; }
    .board-row-aff { display: none; }
    .board-row-stats { justify-content: flex-start; gap: var(--space-3); }
    .board-row-stats .btn-icon-plain { margin-left: auto; }
    .board-list[data-view="grid"] { grid-template-columns: 1fr; padding: 0; gap: 0; }
    .board-list[data-view="grid"] .board-row { border: 0; border-radius: 0; }
    .board-side { display: none; }
    .board-fab { position: fixed; z-index: var(--z-header); right: var(--space-4); bottom: calc(80px + env(safe-area-inset-bottom)); display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-pill); background: linear-gradient(135deg, var(--accent-strong-start), var(--accent-strong-end)); color: var(--on-accent); box-shadow: var(--shadow-float); }
  }

  /* ---------- network pages: frame ---------- */
  .net-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); min-width: 0; }
  .net-form-page { max-width: 880px; margin-inline: auto; width: 100%; }
  .net-back { display: inline-flex; align-items: center; gap: 4px; justify-self: start; min-height: 36px; color: var(--text-secondary); font: var(--text-label); text-decoration: none; }
  .net-back .icon { transform: rotate(180deg); }
  .community > .net-back { margin-bottom: var(--space-3); }
  .net-band { padding: var(--space-8) var(--space-8) var(--space-6); border-radius: var(--radius-2xl); background: linear-gradient(120deg, var(--hero-sky), var(--hero-sky-end)); }
  .net-kicker { margin: 0 0 var(--space-2); font: var(--text-caption); font-weight: 700; letter-spacing: var(--tracking-overline); color: var(--accent); }
  .net-band-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
  .community .net-band h1 { margin: 0; font: 800 36px/1.2 var(--font-sans); letter-spacing: -.02em; color: var(--text-primary); }
  .net-band p:not(.net-kicker) { max-width: 680px; margin: var(--space-2) 0 0; font: var(--text-body); color: var(--text-secondary); }
  .net-band-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .net-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
  .net-tabs { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; }
  .net-tabs::-webkit-scrollbar { display: none; }
  .net-tabs .toggle-chip { flex: none; }
  .net-search { position: relative; flex: 0 1 360px; min-width: 220px; }
  .net-search > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
  .community .net-search input { width: 100%; height: 44px; padding: 0 var(--space-4) 0 42px; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); background: var(--surface); font-size: 16px; }
  .net-search-lg { flex-basis: 100%; max-width: 720px; }
  .community .net-search-lg input { height: 52px; }
  .net-count { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: 0; font: var(--text-body-sm); color: var(--text-secondary); }
  .net-card { min-width: 0; padding: var(--space-5) var(--space-6); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-card); }
  .net-card > .section-head { margin-bottom: var(--space-3); }
  .net-card-list { padding-block: var(--space-2); }
  .community .net-h2, .community .net-month { margin: 0 0 var(--space-3); font: var(--text-section); }
  .community .net-month { margin: var(--space-3) 0 var(--space-1); color: var(--accent); font-size: 15px; }
  .net-list { margin: 0; padding: 0; list-style: none; }
  .net-list-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; }
  .net-list-row + .net-list-row { border-top: 1px solid var(--border-subtle); }
  .net-list-main { display: grid; }
  .net-list-main small { font: var(--text-body-sm); color: var(--text-muted); }
  .is-highlighted { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-lg); }
  .net-form label { margin-top: var(--space-4); }
  .net-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-4); }

  /* Projects */
  .project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); }
  .project-grid-compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .project-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-card); }
  .project-card-link { display: grid; height: 100%; color: inherit; text-decoration: none; }
  .project-card-cover { display: block; aspect-ratio: 16 / 8; overflow: hidden; background: var(--surface-mint); }
  .project-card-img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .project-card-fallback { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--surface-mint), var(--surface-mint-strong)); }
  .project-card-body { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-4) var(--space-5) var(--space-5); }
  .project-card-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .project-card-body > strong { font: var(--text-card-title); font-size: 17px; color: var(--text-primary); }
  @media (hover: hover) { .project-card-link:hover strong { color: var(--accent); } }
  .project-card-summary { font: var(--text-body-sm); color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .project-card-org { display: flex; align-items: center; gap: var(--space-2); font: var(--text-body-sm); color: var(--text-secondary); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .project-card-org .icon { flex: none; color: var(--accent); }
  .project-card-foot { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: var(--space-1); }
  .community .project-save { position: absolute; top: var(--space-3); right: var(--space-3); background: var(--surface); box-shadow: var(--shadow-card); }
  .project-hero { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); overflow: hidden; margin-bottom: var(--space-4); border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl); background: var(--surface); box-shadow: var(--shadow-card); }
  .project-hero-cover { min-height: 280px; background: var(--surface-mint); }
  .project-hero-cover > img { width: 100%; height: 100%; object-fit: cover; }
  .project-hero-body { display: grid; align-content: start; gap: var(--space-3); padding: var(--space-8); }
  .community .project-hero h1 { margin: 0; font: 800 30px/1.3 var(--font-sans); letter-spacing: -.02em; overflow-wrap: anywhere; }
  .project-hero-summary { margin: 0; font: var(--text-body-lg); color: var(--text-secondary); }
  .project-facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: 0; padding: 0; list-style: none; font: var(--text-body-sm); color: var(--text-secondary); }
  .project-facts li { display: inline-flex; align-items: center; gap: var(--space-2); }
  .project-facts .icon { color: var(--accent); }
  .project-hero-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
  .project-hero-owner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; font: var(--text-body-sm); color: var(--text-muted); }
  .project-hero-owner a { color: var(--text-primary); font-weight: 600; text-decoration: none; }
  .project-hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
  .community .project-hero-actions #save-project[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
  .community .project-about h2, .community #project-events h2 { margin: 0 0 var(--space-3); font: var(--text-section); }
  #project-events .home-list { margin-bottom: var(--space-3); }

  /* People */
  .person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--space-4); }
  .person-card { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-5) var(--space-4); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-card); text-align: center; }
  .person-card-link { display: grid; justify-items: center; gap: 4px; color: inherit; text-decoration: none; }
  .person-card-link strong { margin-top: var(--space-2); font: var(--text-card-title); font-size: 17px; }
  .person-card-link small { font: var(--text-body-sm); color: var(--text-muted); }
  .person-card-headline { font: var(--text-body-sm); color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .person-card-why { padding: 2px var(--space-2); border-radius: var(--radius-sm); background: var(--surface-mint); color: var(--accent); font: var(--text-caption); }
  .person-card-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: var(--space-1); }
  .profile-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-5); padding: var(--space-8); border-radius: var(--radius-2xl); background: var(--surface-mint); }
  .profile-id { display: flex; align-items: center; gap: var(--space-5); min-width: 0; }
  .profile-id .avatar-xl { width: 96px; height: 96px; font-size: 34px; }
  .community .profile-id h1 { display: flex; align-items: center; gap: var(--space-2); margin: 0; font: 800 28px/1.3 var(--font-sans); }
  .profile-aff { margin: var(--space-1) 0 var(--space-2); font: var(--text-body); color: var(--text-secondary); }
  .profile-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .profile-actions { display: flex; align-items: flex-start; gap: var(--space-2); }
  .profile-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: var(--space-4) 0; border-radius: var(--radius-lg); background: var(--surface); }
  .profile-stats > div { display: flex; flex-direction: column-reverse; align-items: center; }
  .profile-stats > div + div { border-left: 1px solid var(--border-subtle); }
  .profile-stats dt { font: var(--text-body-sm); color: var(--text-secondary); }
  .profile-stats dd { margin: 0; font: 700 24px/1.2 var(--font-sans); color: var(--accent); }
  .profile-bio { margin: 0; font: var(--text-body); color: var(--text-secondary); white-space: pre-line; overflow-wrap: anywhere; }
  .board-list-flat { border: 0; box-shadow: none; }
  .board-list-flat .board-row { padding-inline: 0; }

  /* Opportunities, events */
  .opp-row, .event-row { display: flex; align-items: flex-start; gap: var(--space-4); padding: var(--space-4) 0; }
  .opp-row + .opp-row, .event-row + .event-row { border-top: 1px solid var(--border-subtle); }
  .opp-row .icon-tile { width: 52px; height: 52px; background: var(--surface-muted); }
  .opp-body, .event-body { display: grid; gap: var(--space-1); flex: 1; min-width: 0; }
  .opp-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
  .opp-title strong { font: var(--text-card-title); color: var(--text-primary); }
  .opp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); margin: 0; font: var(--text-body-sm); color: var(--text-muted); }
  .opp-meta span { display: inline-flex; align-items: center; gap: 4px; }
  .opp-meta span::before { content: "|"; margin-right: var(--space-2); color: var(--border-default); }
  .opp-meta a { color: var(--accent); }
  .opp-summary { margin: var(--space-1) 0 0; font: var(--text-body-sm); color: var(--text-secondary); }
  .opp-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); flex: none; }
  .event-date { width: 72px; height: 66px; }

  /* Resources */
  .resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--space-4); }
  .resource-card { min-width: 0; overflow: hidden; border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-card); }
  .resource-card-link { display: grid; color: inherit; text-decoration: none; }
  .resource-card-cover { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-muted); }
  .resource-card-cover > img { width: 100%; height: 100%; object-fit: cover; }
  .resource-card-icon { display: grid; place-items: center; color: var(--accent); }
  .resource-card-body { display: grid; gap: var(--space-2); padding: var(--space-4); }
  .resource-card-body strong { font: var(--text-card-title); }
  .resource-card-meta { font: var(--text-body-sm); color: var(--text-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .resource-detail { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: var(--space-6); }
  .resource-detail-cover { display: grid; place-items: center; min-height: 220px; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-muted); }
  .resource-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
  .resource-detail-body { display: grid; align-content: start; gap: var(--space-3); }
  .community .resource-detail h1 { margin: 0; font: 800 26px/1.3 var(--font-sans); }
  .resource-owner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: 0; font: var(--text-body-sm); color: var(--text-muted); }
  .resource-owner a { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text-primary); font-weight: 600; text-decoration: none; }

  /* About / guide */
  .about-hero { min-height: 340px; }
  .community .about-hero h1 { font-size: 44px; }
  .about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
  .about-card { display: grid; gap: var(--space-2); color: inherit; text-decoration: none; }
  .about-card strong { font: var(--text-card-title); font-size: 17px; }
  .about-card > span:last-child { font: var(--text-body-sm); color: var(--text-secondary); }
  @media (hover: hover) { .about-card:hover strong { color: var(--accent); } }
  .about-principles ul { display: grid; gap: var(--space-3); margin: 0 0 var(--space-3); padding-left: var(--space-5); color: var(--text-secondary); }
  .about-principles strong { color: var(--text-primary); }
  .guide-list { display: grid; gap: var(--space-4); margin: 0 0 var(--space-4); padding: 0; list-style: none; }
  .guide-list li { display: flex; gap: var(--space-4); }
  .guide-list strong { font: var(--text-card-title); }
  .guide-list p { margin: var(--space-1) 0 0; font: var(--text-body-sm); color: var(--text-secondary); }
  .community .side-empty a, .community .about-principles a { color: var(--accent); }

  @media (max-width: 1023px) {
    .project-hero, .resource-detail { grid-template-columns: 1fr; }
    .project-hero-cover { min-height: 200px; max-height: 260px; }
    .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 767px) {
    .net-band { padding: var(--space-6) var(--space-5) var(--space-5); border-radius: var(--radius-xl); }
    .community .net-band h1 { font-size: 26px; }
    .net-band p:not(.net-kicker) { font: var(--text-body-sm); }
    .net-band-actions { width: 100%; }
    .net-band-actions .btn { flex: 1; }
    .net-toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
    .net-toolbar > .keyword-chip { align-self: flex-start; }
    .net-tabs { margin-inline: calc(-1 * var(--page-gutter)); padding: 0 var(--page-gutter); }
    .net-search { flex-basis: auto; min-width: 0; }
    .net-card { padding: var(--space-4); }
    .net-form-row { grid-template-columns: 1fr; }
    .project-grid, .resource-grid { grid-template-columns: 1fr; }
    .person-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
    .person-card { padding: var(--space-4) var(--space-3); }
    .person-card .avatar-xl { width: 56px; height: 56px; }
    .profile-head { grid-template-columns: 1fr; padding: var(--space-5); }
    .profile-id { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
    .profile-stats { grid-template-columns: repeat(4, 1fr); }
    .opp-row, .event-row { flex-wrap: wrap; }
    .opp-actions { width: 100%; padding-left: calc(52px + var(--space-4)); }
    .event-row .opp-actions { padding-left: calc(72px + var(--space-4)); }
    .project-hero-body { padding: var(--space-5); }
    .community .project-hero h1 { font-size: 24px; }
    .project-hero-actions .btn { flex: 1 1 auto; }
    .about-grid { grid-template-columns: 1fr; }
    .community .about-hero h1 { font-size: 30px; }
    .about-hero .board-hero-lead { display: block; }
    .community .about-hero .btn-lg { display: inline-flex; }
  }
}
