@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

/* ==========================================================================
   BAYAN COMMUNITY V3
   Functional patch:
   - Arabic / English toggle
   - title + body + image upload + preview
   - draft / restore / clear / edit / delete
   - clickable left rail
   - like confirmation with checkmark
   ========================================================================== */

:root {
  --bc-font: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bc-green-900: #103f38;
  --bc-green-800: #14544b;
  --bc-green-700: #1c6e5f;
  --bc-green-600: #178c71;
  --bc-green-500: #26ad88;
  --bc-soft-1: #f4faf7;
  --bc-soft-2: #eaf5f0;
  --bc-soft-3: #dfeee7;
  --bc-line: rgba(16, 77, 67, .10);
  --bc-text: #163e39;
  --bc-subtle: #627d77;
  --bc-shadow: 0 18px 42px rgba(0,0,0,.12);
}

body.bc-community-open {
  overflow: hidden;
}

#bayan-community-boat-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 18;
  font-family: var(--bc-font);
  --bc-boat-left: 11.4%;
  --bc-boat-top: 44.5%;
  --bc-boat-width: min(13vw, 180px);
  --bc-dock-left: 13.2%;
  --bc-dock-top: 61%;
}

#bayan-community-boat {
  position: absolute;
  left: var(--bc-boat-left);
  top: var(--bc-boat-top);
  width: var(--bc-boat-width);
  aspect-ratio: 1.42 / 1;
  transform: translate(-50%, -50%) scale(.93);
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  opacity: .82;
  filter: saturate(.88) brightness(.96);
  transition: transform .22s ease, opacity .22s ease, filter .22s ease;
}

#bayan-community-boat:hover,
#bayan-community-boat:focus-visible {
  transform: translate(-50%, -50%) scale(.96) translateY(-2px);
  opacity: .98;
  filter: saturate(1) brightness(1);
}

#bayan-community-boat:focus-visible {
  outline: 2px solid rgba(228,255,246,.95);
  outline-offset: 3px;
}

.bc-boat-glow {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 15%;
  height: 22%;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(114,244,208,.28), rgba(114,244,208,0) 72%);
  filter: blur(8px);
}

.bc-boat-wake {
  position: absolute;
  left: 8%;
  right: 10%;
  bottom: 10%;
  height: 16%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(116,244,208,0), rgba(116,244,208,.30), rgba(116,244,208,0));
  box-shadow:
    0 0 0 1px rgba(178,255,233,.10) inset,
    0 0 18px rgba(120,255,223,.12);
  animation: bcWakePulse 4s ease-in-out infinite;
}

@keyframes bcWakePulse {
  0%,100% { transform: scaleX(.96); opacity: .70; }
  50% { transform: scaleX(1.04); opacity: .96; }
}

.bc-boat-hull {
  position: absolute;
  left: 12%;
  bottom: 18%;
  width: 60%;
  height: 14%;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #0d504a 0%, #143840 100%);
  clip-path: polygon(2% 22%, 90% 8%, 100% 44%, 90% 100%, 10% 100%, 0 58%);
  box-shadow:
    0 2px 0 rgba(255,255,255,.12) inset,
    0 -2px 0 rgba(0,0,0,.18) inset;
}

.bc-boat-mast {
  position: absolute;
  left: 42%;
  bottom: 24%;
  width: 2%;
  height: 42%;
  border-radius: 999px;
  background: linear-gradient(180deg, #f5fff7 0%, #c6ece0 100%);
}

.bc-boat-sail {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0c4b43;
  text-align: center;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

.bc-boat-sail-main {
  left: 44%;
  bottom: 28%;
  width: 34%;
  height: 42%;
  padding: 8px 7px 6px;
  background: linear-gradient(180deg, rgba(248,255,251,.88) 0%, rgba(221,243,235,.82) 100%);
  clip-path: polygon(0 0, 100% 13%, 90% 100%, 0 100%);
}

.bc-boat-sail-mini {
  left: 30%;
  bottom: 36%;
  width: 13%;
  height: 19%;
  padding: 6px 4px;
  background: linear-gradient(180deg, rgba(248,255,251,.74) 0%, rgba(221,243,235,.70) 100%);
  clip-path: polygon(0 8%, 100% 0, 86% 100%, 0 100%);
}

.bc-boat-brand {
  display: block;
  font-size: clamp(11px, .82vw, 14px);
  font-weight: 900;
  line-height: 1.05;
}

.bc-boat-brand-en {
  display: block;
  margin-top: 2px;
  font-size: clamp(7px, .46vw, 8px);
  font-weight: 800;
  letter-spacing: .08em;
  opacity: .92;
}

.bc-boat-tag {
  font-size: clamp(6px, .42vw, 7px);
  font-weight: 800;
  line-height: 1.15;
  color: #156459;
}

.bc-boat-dot {
  position: absolute;
  left: 74%;
  bottom: 31%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fffbe7 0%, #ffde7a 56%, #d3a947 100%);
  box-shadow: 0 0 10px rgba(255,217,103,.5);
}

.bc-boat-tooltip {
  position: absolute;
  left: 64%;
  top: -10px;
  min-width: 180px;
  transform: translate(-12px, -10px);
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(10,24,26,.86);
  color: #effcf6;
  text-align: right;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}

.bc-boat-tooltip strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 2px;
}

.bc-boat-tooltip span {
  display: block;
  font-size: 10px;
  letter-spacing: .06em;
  opacity: .78;
}

#bayan-community-boat:hover .bc-boat-tooltip,
#bayan-community-boat:focus-visible .bc-boat-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -16px);
}

#bayan-community-dock {
  position: fixed;
  left: var(--bc-dock-left);
  top: var(--bc-dock-top);
  transform: translate(-50%, -50%) scale(.96);
  padding: 8px 12px;
  min-width: 112px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(11,39,42,.84) 0%, rgba(8,25,28,.84) 100%);
  color: #e9fff5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .20s ease, transform .20s ease;
  box-shadow: 0 14px 28px rgba(0,0,0,.16);
}

#bayan-community-boat:hover + #bayan-community-dock,
#bayan-community-dock.is-open {
  opacity: .92;
  transform: translate(-50%, -50%) scale(1);
}

#bayan-community-dock strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
}

#bayan-community-dock span {
  display: block;
  font-size: 9px;
  letter-spacing: .06em;
  opacity: .78;
}

/* full screen app */

#bayan-community-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background:
    radial-gradient(circle at 50% 18%, rgba(60,220,170,.10), transparent 30%),
    linear-gradient(180deg, rgba(7,18,20,.38) 0%, rgba(7,18,20,.58) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s ease;
}

#bayan-community-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

#bayan-community-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(.985);
  transition: opacity .26s ease, transform .26s ease;
  font-family: var(--bc-font);
}

#bayan-community-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.bc-app-shell {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 78px minmax(0, 1fr);
  background: linear-gradient(180deg, rgba(240,249,245,.98) 0%, rgba(235,246,241,.98) 100%);
  color: var(--bc-text);
}

.bc-app-header {
  display: grid;
  grid-template-columns: 280px minmax(240px, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--bc-line);
  background: linear-gradient(180deg, rgba(255,255,255,.64) 0%, rgba(255,255,255,.34) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bc-brand-top {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #1b6b5d;
  margin-bottom: 3px;
}

.bc-brand-title {
  font-size: 31px;
  font-weight: 900;
  line-height: 1;
  color: #0f463f;
}

.bc-brand-sub {
  font-size: 12px;
  color: var(--bc-subtle);
  margin-top: 4px;
}

.bc-lang-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(18, 92, 79, .08);
}

.bc-lang-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-width: 82px;
  min-height: 36px;
  border-radius: 11px;
  padding: 0 14px;
  font-family: var(--bc-font);
  font-size: 13px;
  font-weight: 800;
  color: #14544b;
  background: transparent;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.bc-lang-btn:hover {
  transform: translateY(-1px);
}

.bc-lang-btn.is-active {
  background: linear-gradient(180deg, #15986d 0%, #0f7357 100%);
  color: #f5fff9;
}

.bc-header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.bc-header-search input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(18,92,79,.10);
  border-radius: 18px;
  padding: 0 18px;
  background: rgba(255,255,255,.76);
  color: var(--bc-text);
  font-family: var(--bc-font);
  font-size: 15px;
  box-shadow: 0 6px 14px rgba(0,0,0,.04) inset;
}

.bc-header-search input:focus,
.bc-input:focus,
.bc-textarea:focus {
  outline: none;
  border-color: rgba(21,152,109,.32);
  box-shadow: 0 0 0 3px rgba(21,152,109,.08), 0 6px 14px rgba(0,0,0,.04) inset;
}

.bc-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.bc-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  font-family: var(--bc-font);
  font-weight: 800;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

.bc-btn:hover {
  transform: translateY(-1px);
}

.bc-btn-primary {
  min-height: 46px;
  padding: 0 18px;
  background: linear-gradient(180deg, #15986d 0%, #0f7357 100%);
  color: #f5fff9;
  box-shadow: 0 10px 22px rgba(15,115,87,.18);
}

.bc-btn-soft {
  min-height: 44px;
  padding: 0 14px;
  background: rgba(18,92,79,.08);
  color: #134d45;
}

.bc-btn-ghost {
  min-height: 44px;
  padding: 0 14px;
  background: rgba(255,255,255,.74);
  color: #134d45;
  border: 1px solid rgba(18,92,79,.10);
}

.bc-btn-danger {
  min-height: 42px;
  padding: 0 14px;
  background: rgba(167,64,64,.08);
  color: #854848;
  border: 1px solid rgba(167,64,64,.10);
}

.bc-body-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 280px;
  grid-template-areas: "rail main sidebar";
  gap: 18px;
  padding: 18px 18px 20px;
}

.bc-sidebar {
  grid-area: sidebar;
  min-height: 0;
  overflow: auto;
}

.bc-main {
  grid-area: main;
  min-height: 0;
  overflow: auto;
  padding: 0 2px;
}

.bc-rail {
  grid-area: rail;
  min-height: 0;
  overflow: auto;
}

.bc-card-shell,
.bc-post {
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(16,77,67,.08);
  border-radius: 26px;
  box-shadow: 0 14px 36px rgba(0,0,0,.06);
  padding: 16px;
}

.bc-profile-role,
.bc-side-title,
.bc-section-nav-title,
.bc-feed-title {
  font-size: 13px;
  font-weight: 900;
  color: #1b6b5d;
  margin-bottom: 10px;
}

.bc-profile-name {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 6px;
  color: #0f463f;
}

.bc-profile-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.bc-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(18,92,79,.08);
  color: #14544b;
  font-size: 12px;
  font-weight: 800;
}

.bc-section-nav {
  display: grid;
  gap: 8px;
}

.bc-nav-btn,
.bc-rail-action {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 18px;
  text-align: right;
  background: rgba(18,92,79,.06);
  color: #144f46;
  font-family: var(--bc-font);
  font-size: 15px;
  font-weight: 800;
  transition: transform .14s ease, background .14s ease, color .14s ease;
}

.bc-nav-btn:hover,
.bc-rail-action:hover {
  transform: translateY(-1px);
}

.bc-nav-btn.is-active,
.bc-rail-action.is-active {
  background: linear-gradient(180deg, rgba(21,152,109,.18) 0%, rgba(21,152,109,.10) 100%);
  color: #0d5749;
  box-shadow: 0 0 0 1px rgba(13,87,73,.06) inset;
}

.bc-nav-sub,
.bc-rail-action span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 700;
  color: #66827b;
}

.bc-policy-list,
.bc-rail-grid {
  display: grid;
  gap: 12px;
}

.bc-policy-item,
.bc-rail-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(18,92,79,.05);
}

.bc-policy-item strong,
.bc-rail-card-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #134d45;
}

.bc-policy-item p,
.bc-rail-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #55716b;
}

.bc-composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.bc-composer-title {
  font-size: 25px;
  font-weight: 900;
  color: #0f463f;
}

.bc-composer-sub {
  font-size: 13px;
  color: var(--bc-subtle);
  margin-top: 4px;
}

.bc-composer-kind {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(21,152,109,.12);
  color: #0c6d52;
  font-size: 12px;
  font-weight: 900;
}

.bc-status-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.bc-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(18,92,79,.08);
  color: #14544b;
  font-size: 12px;
  font-weight: 800;
}

.bc-composer-grid {
  display: grid;
  gap: 12px;
}

.bc-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #18574d;
}

.bc-input,
.bc-textarea {
  width: 100%;
  border: 1px solid rgba(18,92,79,.10);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255,255,255,.92);
  color: var(--bc-text);
  font-family: var(--bc-font);
}

.bc-input {
  min-height: 52px;
  font-size: 16px;
  font-weight: 700;
}

.bc-textarea {
  min-height: 140px;
  resize: vertical;
  font-size: 16px;
  line-height: 1.8;
}

.bc-kind-row,
.bc-feed-filters,
.bc-upload-row,
.bc-composer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.bc-chip-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(18,92,79,.08);
  color: #165147;
  font-family: var(--bc-font);
  font-size: 13px;
  font-weight: 800;
  transition: transform .14s ease, background .14s ease;
}

.bc-chip-btn:hover {
  transform: translateY(-1px);
}

.bc-chip-btn.is-active {
  background: rgba(21,152,109,.18);
  color: #0d644d;
}

.bc-hidden-file {
  display: none;
}

.bc-image-preview {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.bc-image-box {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(18,92,79,.10);
  background: rgba(255,255,255,.74);
}

.bc-image-box img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.bc-image-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-top: 1px solid rgba(18,92,79,.08);
  color: #52716a;
  font-size: 12px;
  font-weight: 700;
}

.bc-feed-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 14px;
  flex-wrap: wrap;
}

.bc-feed-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5d7871;
  font-size: 13px;
  font-weight: 700;
  flex-wrap: wrap;
}

.bc-feed-list {
  display: grid;
  gap: 14px;
}

.bc-post-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.bc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(180deg, #d7f0e4 0%, #c4e7d8 100%);
  color: #125146;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.bc-post-author strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: #103f38;
}

.bc-post-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.bc-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(18,92,79,.07);
  color: #1a5a50;
  font-size: 11px;
  font-weight: 800;
}

.bc-meta-chip.is-strong {
  background: rgba(21,152,109,.12);
  color: #0d6a50;
}

.bc-post-time {
  font-size: 12px;
  font-weight: 700;
  color: #69837c;
  white-space: nowrap;
}

.bc-post-title {
  font-size: 25px;
  font-weight: 900;
  color: #0f463f;
  line-height: 1.25;
  margin: 4px 0 10px;
}

.bc-post-text {
  font-size: 16px;
  line-height: 1.9;
  color: #254c46;
  margin: 0 0 12px;
  white-space: pre-wrap;
}

.bc-post-media {
  margin: 0 0 12px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(18,92,79,.05);
  border: 1px solid rgba(18,92,79,.08);
}

.bc-post-media img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.bc-post-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #68837d;
  font-weight: 700;
  margin-bottom: 10px;
}

.bc-post-actions,
.bc-post-own-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
}

.bc-post-actions {
  border-top: 1px solid rgba(16,77,67,.08);
}

.bc-action-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(18,92,79,.07);
  color: #19554b;
  font-family: var(--bc-font);
  font-size: 13px;
  font-weight: 800;
  transition: transform .14s ease, background .14s ease, color .14s ease;
}

.bc-action-btn:hover {
  transform: translateY(-1px);
}

.bc-action-btn.is-active {
  background: rgba(21,152,109,.18);
  color: #0b6c50;
}

.bc-comments {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(16,77,67,.10);
}

.bc-comment-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.bc-comment {
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(18,92,79,.05);
}

.bc-comment strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #124d45;
  margin-bottom: 3px;
}

.bc-comment p {
  margin: 0;
  font-size: 13px;
  color: #44655f;
  line-height: 1.7;
}

.bc-comment-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bc-comment-form input {
  flex: 1 1 260px;
  min-height: 42px;
  border: 1px solid rgba(18,92,79,.10);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255,255,255,.86);
  color: var(--bc-text);
  font-family: var(--bc-font);
  font-size: 14px;
}

.bc-empty {
  padding: 34px 20px;
  text-align: center;
  border-radius: 26px;
  background: rgba(255,255,255,.76);
  border: 1px dashed rgba(16,77,67,.14);
  color: #325b54;
  font-weight: 800;
}

#bc-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 140;
  transform: translateX(-50%) translateY(18px);
  min-width: 240px;
  max-width: calc(100vw - 36px);
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(9,24,24,.94);
  color: #effff6;
  text-align: center;
  font-family: var(--bc-font);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

#bc-toast.is-showing {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1280px) {
  .bc-body-grid {
    grid-template-columns: 280px minmax(0, 1fr) 250px;
  }

  .bc-app-header {
    grid-template-columns: 250px minmax(220px, 1fr) auto;
  }
}

@media (max-width: 1100px) {
  #bayan-community-boat-root {
    --bc-boat-left: 12%;
    --bc-boat-top: 46%;
    --bc-boat-width: min(15vw, 160px);
    --bc-dock-left: 14%;
    --bc-dock-top: 64%;
  }

  .bc-body-grid {
    grid-template-columns: minmax(0,1fr) 270px;
    grid-template-areas:
      "main sidebar"
      "rail rail";
  }

  .bc-app-header {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .bc-header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  #bayan-community-boat-root {
    --bc-boat-left: 13%;
    --bc-boat-top: 50%;
    --bc-boat-width: min(18vw, 138px);
    --bc-dock-left: 15%;
    --bc-dock-top: 70%;
  }

  .bc-app-shell {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .bc-app-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .bc-body-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "main"
      "rail";
    padding: 14px;
  }

  .bc-brand-title { font-size: 24px; }
  .bc-post-title { font-size: 21px; }
  .bc-composer-title { font-size: 21px; }
}
