/* ================================================================
   CamikaLabs Publication Landing — /p/:slug
   Light gallery theme + immersive hero + dramatic CTA.
   For external visitors arriving from social shares.
   ================================================================ */

:root {
  --pub-bg: #faf9f7;
  --pub-surface: #ffffff;
  --pub-text: #1a1a1a;
  --pub-text-secondary: #5a5a6a;
  --pub-muted: #9a9aaa;
  --pub-border: #e8e6e2;
  --pub-red: #e63946;
  --pub-red-light: #ff6b6b;
  --pub-red-glow: rgba(230, 57, 70, 0.35);
  --pub-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; overflow-x: hidden; }

body {
  font-family: var(--pub-font);
  background: var(--pub-bg);
  color: var(--pub-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  /* Warm gradient wash — subtle color fills the white space without competing with artwork */
  background: linear-gradient(160deg, #faf9f7 0%, #f5eeed 25%, #faf9f7 50%, #eef0f5 80%, #faf9f7 100%);
}

a { color: var(--pub-red); text-decoration: none; }
a:hover { color: #c4303c; }

/* ── Animated top accent line — brand signature ── */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 999;
  background: linear-gradient(90deg, var(--pub-red), var(--pub-red-light), var(--pub-red), var(--pub-red-light), var(--pub-red));
  background-size: 300% 100%;
  animation: pub-accent-slide 6s linear infinite;
}
@keyframes pub-accent-slide {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ── Header ── */
.pub-header {
  position: sticky;
  top: 3px;
  z-index: 50;
  height: 56px;
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pub-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  flex-shrink: 0;
}
.pub-logo { font-size: 18px; font-weight: 700; color: var(--pub-text); letter-spacing: 0.5px; }
.pub-logo:hover { color: var(--pub-red); }
.pub-cta {
  padding: 8px 20px;
  background: var(--pub-red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 0;
  transition: background 0.15s, box-shadow 0.15s;
}
.pub-cta:hover { background: #c4303c; color: #fff; box-shadow: 0 2px 12px var(--pub-red-glow); }

/* ── Main ── */
/* Main is centered — artwork "hangs" on gallery wall.
   CTA breaks out to full-width via JS (rendered outside pub-main). */
.pub-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 32px 0;
  width: 100%;
  flex: 1;
  position: relative;
}
/* Red accent vertical line — left margin, like a notebook spine */
.pub-main::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--pub-red), rgba(230,57,70,0.15) 40%, rgba(230,57,70,0.15) 60%, var(--pub-red));
  opacity: 0.6;
}

.pub-loading { padding: 120px 32px; text-align: center; color: var(--pub-muted); font-size: 14px; max-width: 1200px; margin: 0 auto; }
.pub-error { padding: 120px 32px; text-align: center; color: var(--pub-text-secondary); max-width: 1200px; margin: 0 auto; }

/* Phone-style publication viewer */
body.pub-phone-loaded {
  --pub-bg: #08090d;
  --pub-surface: #13161d;
  --pub-text: #f4f5f7;
  --pub-text-secondary: #b8beca;
  --pub-muted: #7f8694;
  --pub-border: #272c36;
  background: radial-gradient(circle at 50% 0%, rgba(230,57,70,0.16), transparent 34%), #08090d;
}
body.pub-phone-loaded .pub-header {
  background: rgba(8, 9, 13, 0.86);
  border-bottom-color: #20242c;
}
body.pub-phone-loaded .pub-logo { color: #f4f5f7; }
body.pub-phone-loaded .pub-main {
  max-width: none;
  display: flex;
  justify-content: center;
  padding: 28px 16px 34px;
}
body.pub-phone-loaded .pub-main::before { display: none; }
body.pub-phone-loaded #pub-container {
  width: min(430px, 100%);
}
.pub-phone-article {
  width: 100%;
  max-height: calc(100vh - 168px);
  overflow: auto;
  background: #11141b;
  border: 1px solid #2a303b;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.46), 0 0 0 1px rgba(255,255,255,0.03) inset;
  scrollbar-width: thin;
  scrollbar-color: #343a46 transparent;
}
.pub-phone-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17,20,27,0.92);
  backdrop-filter: blur(12px);
}
.pub-phone-bar span {
  width: 54px;
  height: 4px;
  background: #3a414e;
  border-radius: 999px;
}
.pub-phone-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 14px 8px;
}
.pub-phone-head .pub-author-avatar,
.pub-phone-head .pub-author-letter {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pub-phone-head .pub-author-avatar {
  object-fit: cover;
  border: 1px solid #3a414e;
}
.pub-phone-head .pub-author-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pub-red);
  color: #fff;
  font-weight: 800;
}
.pub-phone-author {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pub-phone-title {
  padding: 0 14px 12px;
}
.pub-phone-title h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--pub-text);
  letter-spacing: 0;
}
.pub-phone-title .pub-description {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--pub-text-secondary);
}
.pub-phone-waterfall {
  column-count: 2;
  column-gap: 10px;
  padding: 0 10px 12px;
}
.pub-phone-waterfall--single {
  column-count: 1;
}
.pub-phone-media {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  break-inside: avoid;
  background: #0a0c11;
  border: 1px solid #242a34;
  border-radius: 6px;
  overflow: hidden;
}
.pub-phone-media img,
.pub-phone-media video {
  display: block;
  width: 100%;
  height: auto;
  background: #090b0f;
}
.pub-phone-media img { cursor: zoom-in; }
.pub-phone-media--video,
.pub-phone-media--composite {
  column-span: all;
}
body.pub-phone-loaded .pub-composite-frame {
  min-height: 520px;
  background: #0a0c11;
}
body.pub-phone-loaded .pub-text-body {
  max-width: none;
  padding: 14px;
  color: var(--pub-text-secondary);
  font-size: 14px;
  line-height: 1.75;
}
body.pub-phone-loaded .pub-prompt-block {
  margin: 4px 10px 14px;
  max-width: none;
  padding: 14px;
  background: #171b23;
  border: 1px solid #2a303b;
  border-left: 3px solid var(--pub-red);
}
body.pub-phone-loaded .pub-action-bar {
  width: 100%;
  margin: 12px 0 0;
  padding: 12px;
  background: #11141b;
  border: 1px solid #2a303b;
  border-radius: 8px;
  gap: 10px;
}
body.pub-phone-loaded .pub-action-left {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
body.pub-phone-loaded .pub-action-btn,
body.pub-phone-loaded .pub-action-like {
  min-height: 38px;
  padding: 8px 10px;
  background: #171b23;
  border-color: #2a303b;
  color: var(--pub-text-secondary);
}
body.pub-phone-loaded .pub-action-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.pub-phone-loaded .pub-cta-card {
  margin: 12px 0 0;
  border: 1px solid #2a303b;
  border-radius: 8px;
}
body.pub-phone-loaded .pub-cta-card::before,
body.pub-phone-loaded .pub-cta-card::after {
  display: none;
}
body.pub-phone-loaded .pub-cta-inner {
  padding: 26px 18px;
}
body.pub-phone-loaded .pub-cta-card h3 {
  font-size: 21px;
}
body.pub-phone-loaded .pub-footer {
  background: #08090d;
  border-top-color: #20242c;
}

/* ================================================================
   Hero — immersive full-bleed image with gradient overlay
   ================================================================ */
.pub-article {}
.pub-composite-wrap {
  width: 100%;
  overflow: hidden;
  background: transparent;
}
.pub-composite-frame {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
  background: transparent;
}

/* ── Hero wrapper — clean, no invisible decorations ── */
.pub-hero-wrap { position: relative; }

.pub-hero {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: #0a0a0f;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.1);
}
.pub-hero-img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 300px;
  max-height: 75vh;
  object-fit: cover;
  background: #e8e6e2;
  transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.pub-loaded .pub-hero-img { transform: scale(1.03); }
.pub-hero-video { width: 100%; display: block; background: #000; }

/* Subtle bottom gradient only — just enough to separate img from below */
.pub-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.15) 0%, transparent 30%);
  pointer-events: none;
}

/* "Made with AI" badge — floats inside image top-right */
.pub-hero-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 14px;
  background: rgba(230, 57, 70, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 0;
  backdrop-filter: blur(4px);
  z-index: 2;
  pointer-events: auto;
}

/* Title + author overlay — hidden in new layout, title is below image now */
.pub-hero-title { display: none; }
.pub-hero-author { display: none; }

/* ── Title section below hero — editorial placement ── */
.pub-title-section {
  padding: 28px 0 8px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.pub-title-section .pub-title-left {
  flex: 1;
}
.pub-title-section h1 {
  font-size: 34px;
  font-weight: 800;
  color: var(--pub-text);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.pub-title-section .pub-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pub-muted);
  font-size: 13px;
  margin-top: 8px;
}
.pub-title-section .pub-meta-row .pub-author-letter {
  width: 28px; height: 28px; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pub-red); color: #fff; border-radius: 0; flex-shrink: 0;
}
.pub-title-section .pub-meta-row .pub-author-avatar {
  width: 28px; height: 28px; border-radius: 0; object-fit: cover;
  border: 1px solid var(--pub-border); flex-shrink: 0;
}
.pub-meta-dot { opacity: 0.4; }

/* ── Description ── */
.pub-desc-section {
  padding: 0 0 24px;
  max-width: 700px;
}
.pub-description {
  font-size: 17px;
  color: var(--pub-text-secondary);
  line-height: 1.75;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ── Gallery — remaining images ── */
.pub-gallery { padding: 0; }
.pub-gallery-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--pub-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.pub-gallery-divider::before,
.pub-gallery-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--pub-red), transparent);
}
.pub-gallery-divider::after {
  background: linear-gradient(90deg, transparent, var(--pub-red));
}
.pub-gallery-grid { display: grid; gap: 6px; }
.pub-gallery-grid.cols-1 { grid-template-columns: 1fr; }
.pub-gallery-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.pub-gallery-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.pub-gallery-grid img {
  width: 100%; height: auto; display: block;
  min-height: 120px;
  cursor: zoom-in; background: #f0eeea;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s;
}
.pub-gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

/* Fallback layout for text/no-image content (no hero) */
.pub-author-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px; max-width: 700px;
}
.pub-author-avatar { width: 40px; height: 40px; border-radius: 0; object-fit: cover; border: 1px solid var(--pub-border); }
.pub-author-letter {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pub-red); color: #fff; font-size: 16px; font-weight: 700; border-radius: 0;
}
.pub-author-info { display: flex; flex-direction: column; }
.pub-author-name { font-size: 13px; font-weight: 500; color: var(--pub-text-secondary); }
.pub-date { font-size: 12px; color: var(--pub-muted); margin-top: 1px; }
.pub-content-area { margin-bottom: 32px; max-width: 700px; }
.pub-title {
  font-size: 36px; font-weight: 800; color: var(--pub-text);
  line-height: 1.2; margin-bottom: 12px; letter-spacing: -0.5px;
}
.pub-text-body {
  padding: 28px 0; font-size: 16px; line-height: 1.85;
  color: var(--pub-text); white-space: pre-wrap; word-wrap: break-word; max-width: 700px;
}

/* ── Prompt block ── */
.pub-prompt-block {
  margin: 28px 0 0; padding: 20px 24px; max-width: 700px;
  background: #f4f3f0; border-left: 3px solid var(--pub-red);
}
.pub-prompt-label {
  display: block; font-size: 10px; font-weight: 700; color: var(--pub-red);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px;
}
.pub-prompt-text {
  font-size: 13px; color: var(--pub-text-secondary); line-height: 1.7;
  white-space: pre-wrap; word-wrap: break-word;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* ── Action bar — share + like for visitors ── */
.pub-action-bar {
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--pub-border);
}
.pub-action-left {
  display: flex;
  gap: 8px;
}
/* Share buttons — branded colors per platform */
.pub-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  background: var(--pub-surface);
  border: 1px solid var(--pub-border);
  color: var(--pub-text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition: all .2s;
}
.pub-action-btn svg { flex-shrink: 0; }
/* X/Twitter — dark */
.pub-action-btn.pub-share-x:hover { background: #0f1419; border-color: #0f1419; color: #fff; }
.pub-action-btn.pub-share-x:hover svg { fill: #fff; }
/* Facebook — blue */
.pub-action-btn.pub-share-fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.pub-action-btn.pub-share-fb:hover svg { fill: #fff; }
/* Copy — red brand */
.pub-action-btn.pub-share-copy:hover { background: var(--pub-red); border-color: var(--pub-red); color: #fff; }
.pub-action-btn.pub-share-copy:hover svg { stroke: #fff; }

/* Like button — prominent, with heart animation */
.pub-action-like {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--pub-surface);
  border: 2px solid var(--pub-border);
  color: var(--pub-text-secondary);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  transition: all .2s;
}
.pub-action-like svg { flex-shrink: 0; transition: transform .2s; }
.pub-action-like:hover {
  border-color: var(--pub-red);
  color: var(--pub-red);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(230,57,70,0.15);
}
.pub-action-like:hover svg { transform: scale(1.15); }
.pub-action-like.liked {
  color: #fff;
  background: var(--pub-red);
  border-color: var(--pub-red);
  box-shadow: 0 4px 16px rgba(230,57,70,0.3);
}
.pub-action-like.liked svg {
  fill: #fff;
  stroke: #fff;
}
/* Heart pop animation on like */
@keyframes pub-heart-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.4); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.pub-action-like.just-liked svg {
  animation: pub-heart-pop 0.5s ease;
}

/* ================================================================
   CTA — dramatic dark gradient with glow + stripes
   ================================================================ */
.pub-cta-card {
  margin-top: 48px;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1020 40%, #2a0a15 70%, #0a0a0f 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  /* Break out of 1100px pub-main to go full viewport width */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
/* Diagonal stripes */
.pub-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(230,57,70,0.06) 40px, rgba(230,57,70,0.06) 41px);
  pointer-events: none;
}
/* Red glow accent */
.pub-cta-card::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(230,57,70,0.2) 0%, transparent 70%);
  top: -150px; right: -100px;
  pointer-events: none;
}
.pub-cta-inner {
  position: relative;
  text-align: center;
  padding: 64px 28px;
  max-width: 900px;
  margin: 0 auto;
}
.pub-cta-tagline {
  font-size: 13px; font-weight: 600;
  color: var(--pub-red-light);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px;
}
.pub-cta-card h3 {
  font-size: 30px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.3px;
}
.pub-cta-card p {
  font-size: 15px; color: #8a8a9a; margin-bottom: 32px;
}
.pub-cta-btn {
  display: inline-block;
  padding: 16px 44px;
  background: var(--pub-red);
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  border-radius: 0;
  letter-spacing: 0.3px;
  transition: background 0.15s, box-shadow 0.3s, transform 0.15s;
  position: relative;
  animation: pub-btn-pulse 2.5s ease-in-out infinite;
}
.pub-cta-btn:hover {
  background: #c4303c;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 24px var(--pub-red-glow);
  animation: none;
}
@keyframes pub-btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--pub-red-glow); }
  50% { box-shadow: 0 0 24px 8px var(--pub-red-glow); }
}

/* ── Footer ── */
.pub-footer {
  padding: 20px; text-align: center; font-size: 12px;
  color: var(--pub-muted); border-top: 1px solid var(--pub-border); flex-shrink: 0;
}

/* ── Lightbox ── */
.pub-lightbox {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.92); padding: 40px;
  align-items: center; justify-content: center; cursor: zoom-out;
}
.pub-lightbox.active { display: flex; }
.pub-lightbox img { max-width: 100%; max-height: 100%; display: block; cursor: default; }
.pub-lightbox-close {
  position: absolute; top: 20px; right: 28px; width: 44px; height: 44px;
  background: var(--pub-red); color: #fff; border: none; border-radius: 0;
  font-size: 28px; cursor: pointer; display: flex; align-items: center;
  justify-content: center; line-height: 1;
}
.pub-lightbox-close:hover { background: #c4303c; }

/* ================================================================
   404 — Glitch Art (unchanged from previous iteration)
   ================================================================ */
.pub-main--notfound {
  display: flex; align-items: center; justify-content: center; padding: 0 24px;
}
.pub-notfound {
  width: 100%; max-width: 640px; text-align: center; padding: 0; position: relative;
}
.pub-notfound-badge {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 96px; font-weight: 900; letter-spacing: 8px;
  color: var(--pub-text); position: relative; margin-bottom: 24px;
}
.pub-notfound-badge::before {
  content: '404'; position: absolute; left: -3px; top: 2px;
  color: var(--pub-red); opacity: 0.6;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  animation: pub-glitch-top 3s infinite linear alternate;
}
.pub-notfound-badge::after {
  content: '404'; position: absolute; left: 3px; top: -2px;
  color: #3dc1d3; opacity: 0.5;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  animation: pub-glitch-bottom 2.5s infinite linear alternate;
}
@keyframes pub-glitch-top {
  0%, 90% { transform: translate(0); }
  92% { transform: translate(-4px, 1px); }
  94% { transform: translate(2px, -1px); }
  96% { transform: translate(-1px, 2px); }
  98% { transform: translate(3px, 0); }
  100% { transform: translate(0); }
}
@keyframes pub-glitch-bottom {
  0%, 88% { transform: translate(0); }
  90% { transform: translate(3px, -1px); }
  93% { transform: translate(-2px, 2px); }
  96% { transform: translate(1px, -1px); }
  100% { transform: translate(0); }
}
.pub-notfound-badge-wrap {
  position: relative; display: inline-block; overflow: hidden;
}
.pub-notfound-badge-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  pointer-events: none;
}
.pub-notfound h2 { font-size: 24px; font-weight: 700; color: var(--pub-text); margin-bottom: 14px; line-height: 1.3; }
.pub-notfound p { max-width: 440px; margin: 0 auto 40px; font-size: 16px; color: var(--pub-text-secondary); line-height: 1.75; }
.pub-notfound-actions { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pub-notfound-link { font-size: 13px; color: var(--pub-muted); letter-spacing: 0.3px; transition: color 0.15s; }
.pub-notfound-link:hover { color: var(--pub-red); }
.pub-notfound-deco { position: absolute; pointer-events: none; }
.pub-notfound-deco--1 { top: -40px; left: -60px; width: 120px; height: 120px; border: 2px solid rgba(230,57,70,0.15); transform: rotate(15deg); animation: pub-float 8s ease-in-out infinite; }
.pub-notfound-deco--2 { bottom: -30px; right: -50px; width: 80px; height: 80px; border: 2px solid rgba(61,193,211,0.15); transform: rotate(-20deg); animation: pub-float 6s ease-in-out infinite reverse; }
.pub-notfound-deco--3 { top: 20px; right: -30px; width: 40px; height: 40px; background: rgba(230,57,70,0.06); transform: rotate(45deg); animation: pub-float 10s ease-in-out infinite; }
@keyframes pub-float {
  0%, 100% { transform: rotate(var(--r, 15deg)) translateY(0); }
  50% { transform: rotate(var(--r, 15deg)) translateY(-12px); }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .pub-header { padding: 0 16px; height: 52px; }
  .pub-logo { font-size: 16px; }
  .pub-cta { padding: 6px 14px; font-size: 12px; }
  .pub-hero-badge { top: 10px; right: 10px; font-size: 10px; padding: 4px 10px; }
  .pub-title-section h1 { font-size: 24px; }
  .pub-main { padding: 20px 16px 32px; }
  .pub-gallery-grid.cols-2 { grid-template-columns: 1fr; }
  .pub-gallery-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .pub-title { font-size: 26px; }
  .pub-description { font-size: 15px; }
  .pub-cta-inner { padding: 44px 20px; }
  .pub-cta-card h3 { font-size: 22px; }
  .pub-lightbox { padding: 16px; }
  .pub-lightbox-close { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 22px; }
  .pub-notfound-badge { font-size: 64px; letter-spacing: 4px; }
  .pub-notfound h2 { font-size: 20px; }
  .pub-notfound p { font-size: 14px; margin-bottom: 28px; }
  .pub-notfound-deco { display: none; }
}
