/* საჯარო ვებგვერდები (src/public-web.js): სერვერისგან მზა HTML, სკრიპტების გარეშე. სტილი მხოლოდ ამ ფაილშია (CSP inline სტილს არ იძლევა) */
:root {
  color-scheme: dark light;
  --bg: #1c2125;
  --card: #262c31;
  --text: #eef1f3;
  --muted: #a3aeb6;
  --line: #3a444c;
  --accent: #f2b84b;
  --on-accent: #1c1608;
  --link: #8ec1ff;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f5f6;
    --card: #ffffff;
    --text: #1d2327;
    --muted: #5d6870;
    --line: #dde2e6;
    --accent: #c98400;
    --on-accent: #ffffff;
    --link: #0b5cad;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', 'Noto Sans Georgian', Roboto, sans-serif; }
a { color: var(--link); }
img { max-width: 100%; }
h1 { font-size: 26px; margin: 0 0 4px; line-height: 1.25; }
h2 { font-size: 19px; margin: 28px 0 12px; }

.pub-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 760px; margin: 0 auto; padding: 12px 16px; }
.pub-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; }
.pub-brand img { border-radius: 8px; }
.pub-nav { display: flex; align-items: center; gap: 14px; }
.pub-nav a:not(.pub-btn) { color: var(--text); text-decoration: none; }
.pub-btn { display: inline-block; padding: 8px 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.pub-link { display: inline-block; margin-left: 8px; }
.pub-wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 8px; }

.pub-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; overflow: hidden; }
.pub-center { text-align: center; padding: 32px 16px; }
.pub-cover { display: block; width: calc(100% + 32px); max-width: none; height: 200px; object-fit: cover; margin: -16px -16px 14px; }
.pub-head { display: flex; align-items: center; gap: 16px; }
.pub-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); }
.pub-avatar.sm { width: 40px; height: 40px; }
.pub-initials { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 34px; color: var(--on-accent); background: var(--accent); }
.pub-avatar.sm.pub-initials { font-size: 16px; }
.pub-muted { color: var(--muted); font-size: 14px; margin: 2px 0; }
.pub-muted a { color: var(--muted); }
.pub-text p { margin: 8px 0; overflow-wrap: anywhere; }
.pub-note { color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; }

.pub-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 14px 0; }
.pub-facts dt { color: var(--muted); }
.pub-facts dd { margin: 0; }

.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pub-tile { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; color: var(--text); text-decoration: none; }
.pub-tile img, .pub-tile-empty { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--line); display: flex; align-items: center; justify-content: center; font-size: 34px; }
.pub-list { margin: 0; padding-left: 20px; }

.pub-post { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin: 0 0 14px; }
.pub-post-head { display: flex; align-items: center; gap: 10px; }
.pub-name { color: var(--text); font-weight: 700; text-decoration: none; }
.pub-img { display: block; width: 100%; max-height: 640px; object-fit: contain; border-radius: 12px; margin: 10px 0; background: var(--bg); }
.pub-gallery { display: grid; gap: 10px; margin-top: 14px; }
.pub-video { position: relative; }
.pub-clip { display: block; width: 100%; max-height: 640px; border-radius: 12px; margin: 10px 0; background: #000; }
.pub-play { position: absolute; left: 12px; bottom: 22px; background: rgba(0, 0, 0, 0.7); color: #fff; border-radius: 8px; padding: 4px 10px; font-size: 14px; }

.pub-cta { margin: 28px 0 0; background: var(--card); border: 1px solid var(--accent); border-radius: 16px; padding: 18px; text-align: center; }
.pub-cta h2 { margin: 0 0 6px; }
.pub-cta p { margin: 0 0 12px; color: var(--muted); }

.pub-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; padding: 24px 16px 40px; font-size: 14px; }
.pub-footer a { color: var(--muted); }

@media (max-width: 560px) {
  .pub-head { align-items: flex-start; }
  .pub-avatar { width: 72px; height: 72px; }
  .pub-cover { height: 140px; }
}
