/* ============================================================
   Astra Origins — Space Industry (new design) · page-only styles
   Shell (header, mid menu, panes, dock, profile, section banner,
   responsive) lives in cosmos.css.
   ============================================================ */

/* ── Container ─────────────────────────────────────────── */
.si-hub { position: relative; }

/* ── Toolbar (tabs + filter) ──────────────────────────── */
.si-toolbar {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px;
  margin-bottom: 14px;
}
.si-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.si-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 7px;
  background: transparent; color: var(--ink-2);
  font-size: 12px; font-weight: 700;
  border: none; cursor: pointer;
}
.si-tab:hover:not(.is-disabled) { background: var(--surface-2); color: var(--ink); }
.si-tab.is-on { background: var(--ink); color: white; }
.si-tab.is-on .ct { color: oklch(0.75 0.005 240); }
.si-tab.is-disabled { opacity: 0.45; cursor: not-allowed; }
.si-tab .ct {
  font-size: 9px; color: var(--ink-3); letter-spacing: 0.04em;
}

.si-filter {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding-top: 8px; border-top: 1px solid var(--line);
}
.si-search {
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 200px;
  padding: 7px 12px; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-3);
}
.si-search input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  font-size: 12px; color: var(--ink);
}
.si-search input::placeholder { color: var(--ink-3); }

.si-year-wrap {
  position: relative;
  display: inline-flex; align-items: center;
}
.si-year-wrap .bi-chevron-down {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%); pointer-events: none;
  font-size: 10px; color: var(--ink-3);
}
.si-year-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding: 7px 28px 7px 12px; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 10px; font-weight: 800; color: var(--ink-2);
  letter-spacing: 0.1em; cursor: pointer;
  font-family: inherit;
}
.si-year-select:hover { background: var(--surface-3); color: var(--ink); }
.si-year-select:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.si-sort-wrap { position: relative; display: inline-flex; }
.si-sort-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 7px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 10px; font-weight: 800; color: var(--ink-2);
  letter-spacing: 0.1em; cursor: pointer;
}
.si-sort-btn:hover { background: var(--surface-3); color: var(--ink); }

.si-sort-menu {
  position: absolute; top: calc(100% + 4px); right: 0;
  min-width: 140px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 7px; padding: 4px;
  box-shadow: 0 6px 18px oklch(0 0 0 / 0.08);
  z-index: 30;
}
.si-sort-menu button {
  display: block; width: 100%; text-align: left;
  padding: 7px 10px; border-radius: 5px;
  font-size: 11px; font-weight: 700; color: var(--ink-2);
  background: transparent; border: none; cursor: pointer;
  letter-spacing: 0.04em;
}
.si-sort-menu button:hover { background: var(--surface-2); color: var(--ink); }
.si-sort-menu button.is-on { background: var(--accent-soft); color: var(--accent); }

/* ── Organisation grid ────────────────────────────────── */
.si-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.si-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.si-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px oklch(0 0 0 / 0.1);
}

/* Cover banner */
.si-cover {
  position: relative;
  height: 80px; overflow: hidden;
  background: linear-gradient(135deg, oklch(0.15 0.05 270), oklch(0.08 0.02 250));
}
.si-cover-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 30%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 30% 65%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 25%, white 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 55%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 30%, white 50%, transparent 51%);
  opacity: 0.7;
}
.si-cover-glow {
  position: absolute; inset: 0;
  mix-blend-mode: screen;
}

/* Round avatar — anchored over the cover */
.si-avatar {
  position: absolute;
  top: 44px; left: 18px;
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
  font-size: 22px; font-weight: 800; letter-spacing: 0.02em;
  border: 3px solid var(--surface);
  box-shadow: 0 4px 14px oklch(0 0 0 / 0.18);
  z-index: 2;
  overflow: hidden;
  text-decoration: none;
}
.si-avatar:hover { color: white; }
.si-avatar-img { background: var(--surface-2); }
.si-avatar-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.si-body {
  padding: 30px 18px 16px;
}

.si-name {
  display: flex; align-items: center; gap: 6px;
  font-size: 17px; font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em; line-height: 1.2;
  margin-bottom: 10px;
}
.si-name-link { text-decoration: none; color: inherit; }
.si-name-link:hover .si-name { color: var(--accent); }

.si-verified { font-size: 14px; color: var(--accent); }
.si-verified-gold { color: oklch(0.75 0.15 75); }
.si-verified-blue { color: oklch(0.6 0.15 250); }

.si-meta {
  list-style: none; padding: 0; margin: 0 0 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.si-meta li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; color: var(--ink-3); letter-spacing: 0.08em;
}
.si-meta li .bi { font-size: 11px; color: var(--ink-2); }

.si-about {
  font-size: 12px; line-height: 1.55; color: var(--ink-2);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.si-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.si-tag {
  font-size: 8px; font-weight: 800; color: var(--accent);
  padding: 3px 7px; border-radius: 3px;
  background: var(--accent-soft);
  letter-spacing: 0.14em;
}
.si-open {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800; color: var(--ink);
  letter-spacing: 0.1em;
  padding: 4px 8px; border-radius: 5px;
  text-decoration: none;
}
.si-open:hover { background: var(--accent-soft); color: var(--accent); }

/* ── Skeleton ─────────────────────────────────────────── */
@keyframes si-skel-shimmer {
  0%   { background-position: -300px 0; }
  100% { background-position: 300px 0; }
}
.si-skel-block,
.si-skel-line {
  background:
    linear-gradient(90deg,
      var(--surface-2) 0%,
      var(--surface-3) 50%,
      var(--surface-2) 100%);
  background-size: 600px 100%;
  animation: si-skel-shimmer 1.4s linear infinite;
  border-radius: 6px;
}
.si-skel-card { pointer-events: none; }
.si-skel-card .si-cover { background: var(--surface-2); }
.si-skel-card .si-avatar {
  background: var(--surface-3);
  color: transparent; border-color: var(--surface);
  font-size: 0;
}
.si-skel-line { height: 10px; }

/* ── Empty state ──────────────────────────────────────── */
.si-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 40px 20px;
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--ink-3);
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em;
}
.si-empty .bi { font-size: 32px; color: var(--ink-3); }

/* ── Infinite-scroll loader (shared with feed) ───────── */
.ih-loader {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 22px 16px;
  color: var(--ink-3);
  letter-spacing: 0.16em; font-weight: 700;
  font-size: 10px;
  margin-top: 12px;
}
.ih-loader.is-done { color: var(--ink-2); }
.ih-loader.is-done .ih-loader-spinner { display: none; }
.ih-loader-spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ih-spin 0.8s linear infinite;
}
@keyframes ih-spin { to { transform: rotate(360deg); } }
.ih-sentinel { width: 100%; height: 1px; }

/* ════════════════════════════════════════════════════════
   ORGANISATION PROFILE PAGE (.org-*)
   Mirrors newdesign_reference/css/space-industry-organisation.css
   with image-action dropdowns + viewer modal + toast added.
   ════════════════════════════════════════════════════════ */

.org-page { position: relative; }

.org-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; color: var(--ink-2);
  letter-spacing: 0.1em;
  padding: 4px 8px; border-radius: 6px;
  margin-bottom: 12px;
  text-decoration: none;
  cursor: pointer;
}
.org-back:hover { background: var(--surface-2); color: var(--ink); }

/* ── Hero (cover + round avatar + meta) ──────────────── */
.org-hero {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  /* No overflow:hidden so the avatar/profile image dropdown menu
     can extend below the hero without being clipped. Children
     that need clipping (cover image, cover stars/glow) clip
     themselves locally via .org-cover { overflow: hidden }. */
  margin-bottom: 14px;
}
.org-cover {
  --org-cover-hue: 250;
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, oklch(0.15 0.05 270), oklch(0.08 0.02 250));
  background-size: cover; background-position: center;
  overflow: hidden;
  /* Match the hero's top corners so the cover stays rounded
     even though .org-hero no longer clips. */
  border-radius: 11px 11px 0 0;
}
.org-cover.has-image {
  background-size: cover;
  background-position: center;
}
.org-cover-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 30%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 30% 65%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 25%, white 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 55%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 30%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 45% 80%, white 50%, transparent 51%);
  opacity: 0.7;
  pointer-events: none;
}
.org-cover.has-image .org-cover-stars,
.org-cover.has-image .org-cover-glow { opacity: 0; }
.org-cover-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, oklch(0.55 0.18 var(--org-cover-hue) / 0.5), transparent 60%),
    radial-gradient(ellipse at 20% 70%, oklch(0.55 0.22 calc(var(--org-cover-hue) + 40) / 0.4), transparent 55%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.org-hero-body {
  position: relative;
  padding: 0 22px 22px;
  display: flex; gap: 18px; align-items: flex-start;
}

/* Avatar (overlaps cover) */
.org-avatar-wrap { position: relative; flex-shrink: 0; margin-top: -55px; }
.org-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
  font-size: 32px; font-weight: 800; letter-spacing: 0.02em;
  border: 4px solid var(--surface);
  box-shadow: 0 6px 18px oklch(0 0 0 / 0.2);
  overflow: hidden;
  background: var(--surface-2);
}
.org-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.org-hero-main { flex: 1; min-width: 0; padding-top: 16px; }
.org-name-row {
  display: flex; align-items: center; gap: 14px;
  justify-content: space-between; flex-wrap: wrap;
  margin-bottom: 10px;
}
.org-name {
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.01em; line-height: 1.2;
  margin: 0;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink);
}
.org-verified {
  color: oklch(0.65 0.18 250);
  font-size: 18px;
  display: inline-flex; align-items: center;
}
.org-verified-gold { color: oklch(0.75 0.15 75); }
.org-verified-blue { color: oklch(0.6 0.15 250); }

.org-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.org-follow, .org-msg, .org-share {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 7px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  border: none; cursor: pointer;
}
.org-follow { background: var(--accent); color: white; }
.org-follow:hover { background: oklch(from var(--accent) calc(l - 0.05) c h); color: white; }
.org-follow.is-following { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.org-msg {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
}
.org-msg:hover { background: var(--surface-2); color: var(--ink); }
.org-share {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
  padding: 8px 10px;
}
.org-share:hover { background: var(--surface-2); color: var(--ink); }

.org-meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 14px;
}
.org-meta li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; color: var(--ink-3); letter-spacing: 0.08em;
}
.org-meta li .bi { font-size: 12px; color: var(--ink-2); }

/* ── Image action dropdowns ──────────────────────────── */
.org-image-actions { position: relative; }

.org-cover-actions {
  position: absolute; top: 14px; right: 14px;
  /* Must beat .org-tabs (sticky, z-index:5) so the open menu
     paints above the tabs row when they overlap. */
  z-index: 20;
}
.org-cover-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 8px;
  background: oklch(0.18 0.012 250 / 0.72);
  color: white;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  border: 1px solid oklch(0.4 0.05 250 / 0.5);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.org-cover-trigger:hover { background: oklch(0.25 0.05 250 / 0.85); color: white; }
.org-cover-trigger .bi { font-size: 13px; }
.org-cover-trigger.is-uploading { opacity: 0.6; cursor: wait; }
.org-image-chev { font-size: 9px !important; opacity: 0.85; }

.org-avatar-actions {
  position: absolute;
  right: -2px; bottom: -2px;
  /* Must beat .org-tabs (sticky, z-index:5) so the profile
     image menu paints above the tabs row when it opens. */
  z-index: 20;
}
.org-avatar-trigger {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink);
  color: white;
  border: 3px solid var(--surface);
  cursor: pointer;
  box-shadow: 0 4px 12px oklch(0 0 0 / 0.18);
}
.org-avatar-trigger:hover { background: var(--accent); color: white; }
.org-avatar-trigger .bi { font-size: 13px; }
.org-avatar-trigger.is-uploading { opacity: 0.6; cursor: wait; }

.org-image-menu {
  position: absolute;
  top: calc(100% + 6px); right: 0;
  min-width: 200px;
  list-style: none; padding: 4px; margin: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px oklch(0 0 0 / 0.12);
  z-index: 30;
}
.org-image-menu-profile {
  right: auto; left: 0;
  min-width: 220px;
}
.org-image-menu li { list-style: none; }
.org-image-menu button {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  padding: 8px 10px; border-radius: 6px;
  background: transparent; border: none; cursor: pointer;
  font-size: 12px; font-weight: 600;
  color: var(--ink-2);
  text-align: left;
}
.org-image-menu button:hover { background: var(--surface-2); color: var(--ink); }
.org-image-menu button .bi { font-size: 13px; color: var(--ink-3); }
.org-image-menu button:hover .bi { color: var(--accent); }

/* ── Tabs ────────────────────────────────────────────── */
.org-tabs {
  display: flex; flex-wrap: wrap; gap: 2px;
  padding: 4px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 14px;
}
.org-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 7px;
  background: transparent; color: var(--ink-2);
  font-size: 12px; font-weight: 700;
  border: none; cursor: pointer;
}
.org-tab:hover { background: var(--surface-2); color: var(--ink); }
.org-tab.is-on { background: var(--ink); color: white; }

/* ── 2-column layout ─────────────────────────────────── */
.org-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 14px;
}
.org-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.org-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* Section cards */
.org-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  scroll-margin-top: 56px;
}
.org-section-h {
  font-size: 14px; font-weight: 800;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 10px;
}
.org-text {
  font-size: 13px; line-height: 1.6; color: var(--ink-2);
  margin: 0 0 8px;
}
.org-text:last-child { margin-bottom: 0; }
.org-text-muted { color: var(--ink-3); font-style: italic; }

/* Stats */
.org-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 12px;
}
.org-stat {
  padding: 10px 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 7px; text-align: center;
}
.org-stat-n { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.org-stat-l { font-size: 8px; color: var(--ink-3); letter-spacing: 0.1em; margin-top: 2px; font-weight: 700; }

/* Products / Divisions */
.org-products { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.org-products li {
  display: grid; grid-template-columns: 44px 1fr;
  gap: 12px; align-items: flex-start;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.org-products li:last-child { padding-bottom: 0; border-bottom: none; }
.org-prod-pip {
  width: 44px; height: 44px; border-radius: 9px;
  display: grid; place-items: center;
  color: white; font-size: 18px;
}
.org-prod-name { font-size: 14px; font-weight: 800; letter-spacing: -0.005em; color: var(--ink); }
.org-prod-meta { font-size: 9px; color: var(--ink-3); margin-top: 3px; letter-spacing: 0.12em; font-weight: 700; }
.org-prod-desc { font-size: 12px; color: var(--ink-2); margin: 6px 0 0; line-height: 1.55; }

/* Divisions sub-rows */
.org-divisions li { padding-bottom: 14px; }
.org-div-subs {
  list-style: none; padding: 0; margin: 10px 0 0;
  display: flex; flex-direction: column; gap: 4px;
}
.org-div-subs li {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 12px; align-items: baseline;
  padding: 4px 0; border-bottom: none;
}
.org-div-sub-h {
  font-size: 9px; color: var(--ink-3);
  letter-spacing: 0.14em; font-weight: 800;
}
.org-div-sub-v { font-size: 11px; color: var(--ink-2); line-height: 1.5; }

/* Media / updates */
.org-updates { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.org-updates li {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 14px; align-items: flex-start;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.org-updates li:last-child { padding-bottom: 0; border-bottom: none; }
.org-up-thumb {
  width: 110px; aspect-ratio: 4/3;
  border-radius: 7px;
  position: relative; overflow: hidden;
}
.org-up-thumb::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 30%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 60%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 40%, white 50%, transparent 51%),
    radial-gradient(2px 2px at 85% 75%, white 50%, transparent 51%);
  opacity: 0.7;
}
.org-up-tag { font-size: 9px; color: var(--accent); letter-spacing: 0.12em; font-weight: 800; }
.org-up-title { font-size: 13px; font-weight: 800; margin: 4px 0 4px; line-height: 1.3; color: var(--ink); }
.org-up-desc { font-size: 11px; color: var(--ink-2); margin: 0; line-height: 1.5; }

/* ── Sidebar cards ───────────────────────────────────── */
.org-side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.org-side-h {
  font-size: 9px; color: var(--ink-3);
  letter-spacing: 0.16em; font-weight: 800;
  margin-bottom: 10px;
}

.org-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.org-contact li {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--ink-2);
}
.org-contact li .bi { font-size: 12px; color: var(--ink-3); width: 16px; }
.org-contact a { color: var(--accent); text-decoration: none; }
.org-contact a:hover { text-decoration: underline; }

.org-social { display: flex; flex-wrap: wrap; gap: 6px; }
.org-social a {
  width: 32px; height: 32px; border-radius: 7px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}
.org-social a:hover { background: var(--accent); color: white; border-color: var(--accent); }

.org-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.org-tag {
  font-size: 9px; font-weight: 800; color: var(--accent);
  padding: 3px 8px; border-radius: 4px;
  background: var(--accent-soft);
  letter-spacing: 0.1em;
}

.org-people { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.org-people li {
  display: grid; grid-template-columns: 32px 1fr;
  gap: 10px; align-items: center;
}
.org-people-av {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  color: white; font-size: 10px; font-weight: 800;
}
.org-people-name { font-size: 12px; font-weight: 700; color: var(--ink); }
.org-people-role { font-size: 9px; color: var(--ink-3); margin-top: 2px; letter-spacing: 0.12em; }

/* Featured card */
.org-featured-thumb {
  position: relative; height: 110px; border-radius: 8px;
  background: linear-gradient(135deg, oklch(0.15 0.05 270), oklch(0.08 0.02 250));
  overflow: hidden; margin-bottom: 10px;
}
.org-featured-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 28%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 60%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 60% 25%, white 50%, transparent 51%),
    radial-gradient(2px 2px at 80% 55%, white 50%, transparent 51%);
  opacity: 0.75;
}
.org-featured-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, oklch(from var(--accent) calc(l + 0.05) c h / 0.45), transparent 60%),
    radial-gradient(ellipse at 20% 70%, oklch(0.55 0.22 290 / 0.35), transparent 55%);
  mix-blend-mode: screen;
}
.org-featured-tag {
  position: absolute; top: 8px; left: 10px;
  font-size: 8px; color: white;
  background: oklch(0 0 0 / 0.55); padding: 3px 7px; border-radius: 3px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.14em; font-weight: 800;
}
.org-featured-title {
  font-size: 13px; font-weight: 800;
  letter-spacing: -0.005em; margin-bottom: 3px;
  color: var(--ink);
}
.org-featured-sub {
  font-size: 9px; color: var(--ink-3);
  letter-spacing: 0.12em; margin-bottom: 6px;
}
.org-featured-desc {
  font-size: 11px; color: var(--ink-2);
  line-height: 1.5; margin: 0 0 10px;
}
.org-featured-cta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800; color: var(--accent);
  letter-spacing: 0.1em; text-decoration: none;
}
.org-featured-cta:hover { text-decoration: underline; }

/* Breadcrumb link in right-bar */
.t-cr-link {
  font-size: 10px; font-weight: 700;
  color: var(--ink-2); letter-spacing: 0.1em;
  text-decoration: none;
}
.t-cr-link:hover { color: var(--accent); }

/* ── Image viewer modal ──────────────────────────────── */
.org-img-viewer {
  position: fixed; inset: 0;
  z-index: 1080;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.org-img-viewer[hidden] { display: none; }
.org-img-viewer-backdrop {
  position: absolute; inset: 0;
  background: oklch(0.06 0.02 250 / 0.78);
  backdrop-filter: blur(6px);
}
.org-img-viewer-dialog {
  position: relative;
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px oklch(0 0 0 / 0.4);
}
.org-img-viewer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.org-img-viewer-title {
  margin: 0;
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em;
  color: var(--ink);
}
.org-img-viewer-close {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2);
  cursor: pointer;
}
.org-img-viewer-close:hover { background: var(--accent-soft); color: var(--accent); }
.org-img-viewer-stage {
  flex: 1;
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse at 30% 70%, oklch(0.16 0.05 280 / 0.55), transparent 60%),
    radial-gradient(ellipse at 80% 20%, oklch(0.18 0.06 305 / 0.5), transparent 60%),
    oklch(0.04 0.01 250);
  min-height: 280px;
  padding: 16px;
}
.org-img-viewer-stage img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.org-img-viewer-placeholder {
  color: oklch(0.85 0.005 240);
  font-size: 11px; letter-spacing: 0.18em; font-weight: 800;
  opacity: 0.7;
}

/* ── Toast (upload feedback) ─────────────────────────── */
.org-toast {
  position: fixed;
  left: 50%; bottom: 80px;
  transform: translateX(-50%);
  z-index: 1090;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em;
  background: var(--ink); color: white;
  box-shadow: 0 12px 32px oklch(0 0 0 / 0.2);
  pointer-events: none;
}
.org-toast.is-error { background: oklch(0.45 0.18 25); }
.org-toast.is-success { background: oklch(0.5 0.16 145); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .org-grid { grid-template-columns: 1fr; }
  .org-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .org-hero-body { padding: 0 14px 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .org-avatar-wrap { margin-top: -44px; }
  .org-avatar { width: 88px; height: 88px; font-size: 26px; }
  .org-name { font-size: 22px; }
  .org-actions { width: 100%; }
  .org-tab { padding: 6px 10px; font-size: 11px; }
  .org-section { padding: 14px; }
  .org-updates li { grid-template-columns: 1fr; }
  .org-up-thumb { width: 100%; aspect-ratio: 16/9; }
  .org-div-subs li { grid-template-columns: 1fr; gap: 2px; }
}

/* ── Tabs: disabled + panes ──────────────────────────── */
.org-tab[disabled],
.org-tab.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.org-tabpane { display: none; }
.org-tabpane.is-on { display: block; }

/* ── About: header + sections ────────────────────────── */
.org-about-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.org-about-title { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
.org-about-sub { font-size: 9px; color: var(--ink-3); letter-spacing: 0.14em; font-weight: 800; margin: 4px 0 0; }
.org-edit-open {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 8px 14px; border-radius: 7px;
  background: var(--accent); color: white; border: none;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; cursor: pointer;
}
.org-edit-open:hover { filter: brightness(1.08); }
.org-section-h i { font-size: 13px; color: var(--accent); }

.org-about-meta {
  list-style: none; padding: 10px 0 0; margin: 10px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 16px;
}
.org-about-meta li { display: flex; align-items: center; gap: 6px; }
.org-about-meta li .bi { font-size: 12px; color: var(--ink-3); }
.org-about-meta span { font-size: 9px; color: var(--ink-2); letter-spacing: 0.1em; font-weight: 700; }

.org-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.org-list li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; align-items: baseline; }
.org-list li span:last-child { font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.org-list-pip { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 6px; }

.org-about-empty {
  text-align: center; padding: 40px 20px;
  background: var(--surface); border: 1px dashed var(--line); border-radius: 10px;
}
.org-about-empty .bi { font-size: 28px; color: var(--ink-3); }
.org-about-empty h3 { font-size: 15px; font-weight: 800; color: var(--ink); margin: 10px 0 6px; }
.org-about-empty p { font-size: 12px; color: var(--ink-3); margin: 0; }

/* ── Owner edit modal ────────────────────────────────── */
.org-edit-modal {
  position: fixed; inset: 0; z-index: 1085;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.org-edit-modal[hidden] { display: none; }
.org-edit-backdrop {
  position: absolute; inset: 0;
  background: oklch(0.06 0.02 250 / 0.78); backdrop-filter: blur(6px);
}
.org-edit-dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 64px oklch(0 0 0 / 0.4);
}
.org-edit-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.org-edit-title { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); }
.org-edit-sub { margin: 4px 0 0; font-size: 9px; color: var(--ink-3); letter-spacing: 0.14em; font-weight: 800; }
.org-edit-x {
  width: 30px; height: 30px; border-radius: 7px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); cursor: pointer;
}
.org-edit-x:hover { background: var(--accent-soft); color: var(--accent); }

.org-edit-body {
  display: grid; grid-template-columns: 220px 1fr;
  min-height: 0; flex: 1; overflow: hidden;
}
.org-edit-nav {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px; overflow-y: auto;
  border-right: 1px solid var(--line); background: var(--surface);
}
.org-edit-navlink {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 7px;
  background: transparent; border: none; cursor: pointer;
  color: var(--ink-2); font-size: 12px; font-weight: 700; text-align: left;
}
.org-edit-navlink i { font-size: 14px; color: var(--ink-3); width: 16px; flex: none; }
.org-edit-navlink:hover { background: var(--surface-2); color: var(--ink); }
.org-edit-navlink.is-on { background: var(--accent-soft); color: var(--accent); }
.org-edit-navlink.is-on i { color: var(--accent); }

.org-edit-panes { padding: 18px; overflow-y: auto; }
.org-edit-pane { display: none; }
.org-edit-pane.is-on { display: block; }
.org-edit-pane h4 { font-size: 15px; font-weight: 800; color: var(--ink); margin: 0 0 4px; }
.org-edit-desc { font-size: 12px; color: var(--ink-3); margin: 0 0 14px; line-height: 1.5; }

.org-field { margin-bottom: 12px; }
.org-field label { display: block; font-size: 11px; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; }
.org-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.org-input {
  width: 100%;
  padding: 9px 12px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink); font-size: 13px; font-family: inherit;
}
.org-input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
textarea.org-input { resize: vertical; min-height: 120px; line-height: 1.55; }

.org-repeater { display: flex; flex-direction: column; gap: 8px; }
.org-repeater-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.org-repeater-people { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) auto; }
.org-repeater-remove {
  width: 34px; height: 34px; flex: none; border-radius: 7px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-3); cursor: pointer;
}
.org-repeater-remove:hover { background: oklch(0.45 0.18 25 / 0.14); color: oklch(0.55 0.2 25); border-color: oklch(0.55 0.2 25 / 0.4); }
.org-repeater-add {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  padding: 7px 12px; border-radius: 7px;
  background: var(--surface-2); border: 1px dashed var(--line);
  color: var(--ink-2); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; cursor: pointer;
}
.org-repeater-add:hover { color: var(--accent); border-color: var(--accent); }

.org-edit-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.org-edit-save {
  padding: 9px 18px; border-radius: 8px;
  background: var(--accent); color: white; border: none;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; cursor: pointer;
}
.org-edit-save:hover { filter: brightness(1.08); }
.org-edit-save.is-loading { opacity: 0.6; cursor: progress; }

/* Structured division/center repeater card */
.org-repeater-division {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.org-division-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.org-division-no { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; color: var(--ink-3); }
.org-repeater-division .org-field:last-child,
.org-repeater-division .org-field-row:last-child { margin-bottom: 0; }
.org-repeater-division .org-field-row { margin-bottom: 12px; }

@media (max-width: 768px) {
  .org-edit-body { grid-template-columns: 1fr; }
  .org-edit-nav {
    flex-direction: row; flex-wrap: nowrap; overflow-x: auto;
    border-right: none; border-bottom: 1px solid var(--line);
  }
  .org-edit-navlink span { display: none; }
  .org-field-row { grid-template-columns: 1fr; }
  .org-repeater-people { grid-template-columns: 1fr auto; }
}

/* ── Media tab ───────────────────────────────────────── */
.org-media-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.org-media-initial-loader {
  height: 240px; border-radius: 10px;
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 200% 100%;
  animation: orgMediaShimmer 1.4s infinite;
  border: 1px solid var(--line);
}
@keyframes orgMediaShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.org-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.org-media-card {
  position: relative;
  border-radius: 12px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.org-media-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 16px 34px oklch(0 0 0 / 0.28);
}
.org-media-open {
  display: block; width: 100%; padding: 0; border: none;
  background: transparent; cursor: pointer; text-align: left;
}
.org-media-visual {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--surface-2);
}
.org-media-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.45s ease;
}
.org-media-card:hover .org-media-img { transform: scale(1.06); }
.org-media-shade {
  position: absolute; inset: auto 0 0; height: 60%;
  background: linear-gradient(180deg, transparent, oklch(0.05 0.02 250 / 0.82));
  pointer-events: none;
}
.org-media-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: oklch(0.05 0.02 250 / 0.55); backdrop-filter: blur(4px);
  color: white; font-size: 22px; border: 1px solid oklch(1 0 0 / 0.4);
}
.org-media-chip {
  position: absolute; top: 8px; left: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 5px;
  background: oklch(0.05 0.02 250 / 0.62); backdrop-filter: blur(4px);
  color: white; font-size: 8px; font-weight: 800; letter-spacing: 0.1em;
}
.org-media-chip .bi { font-size: 10px; }
.org-media-cap {
  position: absolute; inset: auto 10px 10px; z-index: 1;
  display: flex; flex-direction: column; gap: 3px;
}
.org-media-cap-title {
  font-size: 12px; font-weight: 800; color: white; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.org-media-cap-date { font-size: 8px; color: oklch(1 0 0 / 0.8); letter-spacing: 0.1em; font-weight: 700; }
.org-media-cap-date .bi { font-size: 9px; }

.org-media-actions { position: absolute; top: 8px; right: 8px; z-index: 2; }
.org-media-actions-btn {
  width: 30px; height: 30px; border-radius: 7px;
  display: grid; place-items: center;
  background: oklch(0.05 0.02 250 / 0.6); backdrop-filter: blur(4px);
  color: white; border: none; cursor: pointer;
}
.org-media-actions-btn:hover { background: oklch(0.05 0.02 250 / 0.82); }
.org-media-menu {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 10;
  min-width: 150px; list-style: none; margin: 0; padding: 4px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 12px 28px oklch(0 0 0 / 0.32);
}
.org-media-menu[hidden] { display: none; }
.org-media-menu button {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 7px 9px; border: none; border-radius: 6px;
  background: transparent; color: var(--ink-2); cursor: pointer;
  font-size: 12px; font-weight: 600; text-align: left;
}
.org-media-menu button:hover { background: var(--surface-2); color: var(--ink); }
.org-media-menu button.is-danger:hover { background: oklch(0.45 0.18 25 / 0.14); color: oklch(0.6 0.2 25); }
.org-media-menu .bi { font-size: 13px; }

.org-media-loadstate { margin-top: 14px; }
.org-media-loadstate.is-done { display: none; }
.org-media-loader { display: none; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.org-media-loader.is-active { display: grid; }
.org-media-observer { width: 100%; height: 1px; }
.org-media-skeleton { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.org-media-skeleton-visual {
  aspect-ratio: 4 / 3;
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 200% 100%; animation: orgMediaShimmer 1.4s infinite;
}

/* ── Media editor modal ──────────────────────────────── */
.org-media-dialog { width: min(860px, 100%); }
.org-media-editor-body { padding: 18px; overflow-y: auto; flex: 1; min-height: 0; }
.org-media-editor-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; }
.org-media-editor-fields { display: flex; flex-direction: column; }
.org-media-editor-upload { display: flex; flex-direction: column; }

.org-media-dropzone {
  width: 100%; padding: 22px 16px; border-radius: 10px;
  border: 1px dashed var(--line); background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; cursor: pointer; color: var(--ink-2);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.org-media-dropzone:hover, .org-media-dropzone.is-dragover { border-color: var(--accent); background: var(--accent-soft); }
.org-media-dropzone-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent); color: white; font-size: 20px;
}
.org-media-dropzone-title { font-size: 13px; font-weight: 800; color: var(--ink); }
.org-media-dropzone-copy { font-size: 11px; color: var(--ink-3); line-height: 1.4; }
.org-media-filemeta { margin-top: 10px; font-size: 9px; color: var(--ink-3); letter-spacing: 0.08em; font-weight: 700; word-break: break-word; }

.org-media-preview {
  position: relative; margin-top: 10px; flex: 1; min-height: 180px;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: oklch(0.04 0.01 250);
  display: grid; place-items: center;
}
.org-media-preview-clear {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 28px; height: 28px; border-radius: 7px;
  display: grid; place-items: center;
  background: oklch(0.05 0.02 250 / 0.6); color: white; border: none; cursor: pointer;
}
.org-media-preview-clear:disabled { opacity: 0; pointer-events: none; }
.org-media-preview-empty { text-align: center; color: var(--ink-3); padding: 20px; }
.org-media-preview-empty .bi { font-size: 26px; }
.org-media-preview-empty p { font-size: 11px; margin: 8px 0 0; }
.org-media-preview-img, .org-media-preview-video { width: 100%; max-height: 320px; object-fit: contain; display: block; }
.org-media-preview-img[hidden], .org-media-preview-video[hidden] { display: none; }

.org-media-editor-actions { padding: 0; gap: 8px; }
.org-media-cancel {
  padding: 9px 16px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; cursor: pointer;
}
.org-media-cancel:hover { color: var(--ink); }

/* ── Media gallery lightbox ──────────────────────────── */
.org-gallery-dialog { width: min(960px, 100%); }
.org-gallery-body { padding: 16px 18px 18px; overflow-y: auto; flex: 1; min-height: 0; }
.org-gallery-shell { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.org-gallery-arrow {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink); font-size: 18px; cursor: pointer;
}
.org-gallery-arrow:hover:not(:disabled) { background: var(--accent); color: white; border-color: var(--accent); }
.org-gallery-arrow:disabled { opacity: 0.35; cursor: not-allowed; }
.org-gallery-stage {
  min-height: 380px; max-height: 60vh; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse at 30% 70%, oklch(0.16 0.05 280 / 0.5), transparent 60%),
    oklch(0.04 0.01 250);
}
.org-gallery-stage img, .org-gallery-stage video {
  width: 100%; max-height: 60vh; object-fit: contain; display: block; background: oklch(0.02 0 0);
}
.org-gallery-placeholder { color: oklch(1 0 0 / 0.4); font-size: 40px; }
.org-gallery-meta { margin-top: 14px; }
.org-gallery-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.org-gallery-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 9px; font-weight: 800; letter-spacing: 0.1em;
}
.org-gallery-chip .bi { font-size: 11px; }
.org-gallery-title { font-size: 16px; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.org-gallery-desc { font-size: 13px; line-height: 1.6; color: var(--ink-2); margin: 0; white-space: pre-line; }

@media (max-width: 768px) {
  .org-media-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .org-media-editor-grid { grid-template-columns: 1fr; }
  .org-gallery-shell { grid-template-columns: 1fr; }
  .org-gallery-arrow { display: none; }
  .org-gallery-stage { min-height: 260px; }
}

/* ── Job posting tab ─────────────────────────────────── */
.org-jobs-list {
  display: flex; flex-direction: column; gap: 12px;
  width: 70%; margin: 0;   /* 70% wide, left-aligned */
}
/* Career cards reuse the feed `.f-post` design (feed.css, loaded globally).
   Tighten them to sit cleanly inside the profile pane. */
.org-jobs-list .f-post { margin: 0; }
.org-jobs-loader { display: none; flex-direction: column; gap: 12px; width: 70%; margin: 12px 0 0; }
.org-jobs-loader.is-active { display: flex; }

.org-jobs-skeleton {
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); padding: 14px;
}
.org-jobs-skeleton-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.org-jobs-skeleton-av { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.org-jobs-skeleton-lines { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.org-jobs-skeleton-lines span { height: 9px; border-radius: 999px; display: block; }
.org-jobs-skeleton-lines span:first-child { width: 40%; }
.org-jobs-skeleton-lines span:last-child { width: 24%; }
.org-jobs-skeleton-body { height: 11px; border-radius: 999px; margin-bottom: 8px; }
.org-jobs-skeleton-body.short { width: 60%; }
.org-jobs-skeleton-av,
.org-jobs-skeleton-lines span,
.org-jobs-skeleton-body {
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 200% 100%; animation: orgMediaShimmer 1.4s infinite;
}

@media (max-width: 900px) {
  .org-jobs-list, .org-jobs-loader { width: 100%; }
}

/* ── Links tab ───────────────────────────────────────── */
.org-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.org-link-card {
  display: flex; flex-direction: column;
  padding: 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.org-link-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 16px 34px oklch(0 0 0 / 0.22);
}
.org-link-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.org-link-icon {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 20px;
}
.org-link-actions-btn { background: var(--surface-2); color: var(--ink-3); }
.org-link-actions-btn:hover { background: var(--accent-soft); color: var(--accent); }
.org-link-body { flex: 1; min-width: 0; margin-bottom: 14px; }
.org-link-name {
  font-size: 14px; font-weight: 800; color: var(--ink); margin: 0 0 6px;
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.org-link-url {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--ink-3); letter-spacing: 0.04em; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.org-link-url .bi { font-size: 12px; flex: none; }
.org-link-open {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.org-link-open:hover { background: var(--accent); color: white; border-color: var(--accent); }

.org-links-loader { display: none; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.org-links-loader.is-active { display: grid; }
.org-link-skeleton {
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 16px;
}
.org-link-skeleton-icon { width: 42px; height: 42px; border-radius: 11px; margin-bottom: 12px; }
.org-link-skeleton-line { height: 11px; border-radius: 999px; margin-bottom: 8px; }
.org-link-skeleton-line.short { width: 55%; }
.org-link-skeleton-btn { height: 32px; border-radius: 8px; margin-top: 8px; }
.org-link-skeleton-icon,
.org-link-skeleton-line,
.org-link-skeleton-btn {
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 200% 100%; animation: orgMediaShimmer 1.4s infinite;
}

/* Link editor modal (reuses media editor base) */
.org-link-dialog { width: min(520px, 100%); }
.org-link-editor-body { padding: 18px; overflow-y: auto; flex: 1; min-height: 0; }
.org-link-editor-actions { padding: 0; gap: 8px; }
.org-field-hint { font-size: 11px; color: var(--ink-3); margin: 6px 0 0; }

@media (max-width: 768px) {
  .org-links-grid, .org-links-loader { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════
   END ORGANISATION PROFILE
   ════════════════════════════════════════════════════════ */

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .si-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .si-toolbar { padding: 8px; }
  .si-tab { padding: 6px 10px; font-size: 11px; }
  .si-search { min-width: 100%; }
  .si-year-select { width: 100%; }
  .si-sort-btn { width: 100%; justify-content: center; }
  .si-avatar { width: 60px; height: 60px; font-size: 18px; top: 48px; left: 14px; }
  .si-body { padding: 24px 14px 14px; }
  .si-name { font-size: 15px; }
}

/* ============================================================
   Organisation profile · ARTICLES TAB
   Cards reuse Information Space Hub styles (.ih-*, loaded
   globally); this block styles the header, sub-tabs & filters.
   ============================================================ */
.org-articles-head { margin-bottom: 14px; }
.org-articles-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.16em;
  color: var(--accent);
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.org-articles-head h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin: 10px 0 4px; }
.org-articles-head p { font-size: 13px; color: var(--ink-2); margin: 0; }

.org-articles-subtabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.org-articles-subtab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 9px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 12px; font-weight: 700;
}
.org-articles-subtab:hover { background: var(--surface-3); color: var(--ink); }
.org-articles-subtab.is-on { background: var(--ink); color: white; border-color: var(--ink); }
.org-articles-ct {
  font-size: 9px; font-weight: 800; letter-spacing: 0.04em;
  padding: 2px 7px; border-radius: 999px;
  background: var(--surface); color: var(--ink-3);
}
.org-articles-subtab.is-on .org-articles-ct { background: oklch(1 0 0 / 0.18); color: white; }

.org-articles-pane { display: none; }
.org-articles-pane.is-on { display: block; }

.org-articles-filter {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px; margin-bottom: 14px;
}
.org-articles-field { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 150px; }
.org-articles-field label { font-size: 9px; font-weight: 800; letter-spacing: 0.12em; color: var(--ink-3); }
.org-articles-field select {
  padding: 8px 10px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink); font-size: 12px; font-weight: 600; outline: none;
}
.org-articles-field select:focus { border-color: var(--accent-line); }
.org-articles-field select:disabled { opacity: 0.55; cursor: not-allowed; }
.org-articles-filter-actions { display: flex; gap: 6px; }
.org-articles-filter-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 8px; cursor: pointer;
  background: var(--accent); color: white; border: none;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
}
.org-articles-reset-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 12px;
}
.org-articles-reset-btn:hover { background: var(--surface-3); color: var(--ink); }

.org-articles-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 40px 16px; color: var(--ink-3);
  font-size: 11px; letter-spacing: 0.14em; font-weight: 700; text-align: center;
}
.org-articles-empty .bi { font-size: 28px; }

@media (max-width: 768px) {
  .org-articles-field { min-width: 100%; }
  .org-articles-filter-actions { width: 100%; }
  .org-articles-filter-btn { flex: 1; justify-content: center; }
}
