/* ============================================================
   The Other Side Forum — shared styling
   Counterplane Awakening · moderated practice board
   Dark ritual-community palette inherited from the main site.
   ============================================================ */

:root {
  --void:        #050407;
  --indigo:      #0b0b18;
  --aubergine:   #151020;
  --plum:        #24162d;
  --plum-soft:   #2d1c38;
  --umber:       #8a5d3b;
  --gold:        #d6ad72;
  --gold-bright: #ecca8f;
  --bone:        #efe6d4;
  --text:        #cabfae;
  --muted:       #94886f;
  --dim:         #6a614f;
  --faint:       #443d33;
  --violet:      #8e78c8;
  --cyan:        #6daeb5;
  --sage:        #8f9a7a;
  --rose:        #d29a8c;

  --line:        rgba(214, 173, 114, 0.16);
  --line-soft:   rgba(150, 138, 116, 0.11);
  --line-strong: rgba(214, 173, 114, 0.38);
  --violet-line: rgba(142, 120, 200, 0.22);

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Spectral", Georgia, "Times New Roman", serif;
  --label: "Inter", system-ui, -apple-system, sans-serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  background:
    radial-gradient(1100px 680px at 82% -8%, rgba(142,120,200,0.09), transparent 60%),
    radial-gradient(880px 540px at 10% 4%, rgba(214,173,114,0.05), transparent 58%),
    linear-gradient(180deg, #050407 0%, #08070f 46%, #050407 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(214,173,114,0.26); color: var(--bone); }

.wrap { width: min(var(--maxw), calc(100% - 48px)); margin: 0 auto; position: relative; z-index: 1; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 300; color: var(--bone); letter-spacing: 0.005em; }

.label {
  font-family: var(--label);
  font-size: 10px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 16px; display: inline-flex; align-items: center; gap: 12px;
}
.label::before { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: 0.55; }
.label.violet { color: var(--violet); }
.label.violet::before { background: var(--violet); opacity: 0.6; }
.label.cyan { color: var(--cyan); }
.label.cyan::before { background: var(--cyan); opacity: 0.6; }
.label.rose { color: var(--rose); }
.label.rose::before { background: var(--rose); opacity: 0.6; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(180deg, rgba(5,4,7,0.95), rgba(5,4,7,0.55));
  backdrop-filter: blur(14px) saturate(115%);
  border-bottom: 1px solid var(--line-soft);
}
.masthead-inner {
  width: min(var(--maxw), calc(100% - 48px)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand .mark { width: 32px; height: 32px; flex: none; }
.brand .word { display: flex; flex-direction: column; line-height: 1; }
.brand .name { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--bone); letter-spacing: 0.06em; text-transform: uppercase; }
.brand .sub { font-family: var(--label); font-size: 8.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--dim); margin-top: 6px; }
.mast-links { display: flex; align-items: center; gap: 2px; font-family: var(--label); font-size: 12.5px; }
.mast-links a { color: var(--muted); padding: 7px 12px; border-radius: 4px; transition: color .25s; }
.mast-links a:hover { color: var(--bone); }
.mast-links a.here { color: var(--gold); }
.mast-links a.ext { color: var(--cyan); font-style: italic; font-family: var(--body); }

/* ---------- Breadcrumb ---------- */
.crumb {
  font-family: var(--label); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dim); padding: 26px 0 0; display: flex; flex-wrap: wrap; gap: 9px; align-items: center;
}
.crumb a { color: var(--muted); transition: color .2s; }
.crumb a:hover { color: var(--gold); }
.crumb .sep { color: var(--faint); }
.crumb .cur { color: var(--text); }

/* ---------- Page head ---------- */
.page-head { padding: 34px 0 30px; border-bottom: 1px solid var(--line-soft); margin-bottom: 34px; }
.page-head h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.05; margin: 0 0 16px; }
.page-head .lede { color: var(--muted); font-size: 17px; font-style: italic; margin: 0; max-width: 720px; }
.page-head .meta-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; font-family: var(--label); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.page-head .meta-row strong { color: var(--gold); font-weight: 500; }

/* ---------- Motto strip ---------- */
.motto-strip {
  text-align: center; padding: 30px 24px; margin: 0 0 34px;
  border: 1px solid var(--line-soft);
  background: radial-gradient(600px 200px at 50% 0%, rgba(214,173,114,0.08), transparent 70%), rgba(21,16,32,0.34);
}
.motto-strip .m { font-family: var(--display); font-style: italic; font-size: clamp(22px, 3.4vw, 32px); color: var(--bone); margin: 0 0 8px; }
.motto-strip .s { font-family: var(--label); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); margin: 0; }

/* ---------- Badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-family: var(--label); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-soft); padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.badge.pin { color: var(--gold); border-color: rgba(214,173,114,0.34); }
.badge.mod { color: var(--sage); border-color: rgba(143,154,122,0.34); }
.badge.warn { color: var(--rose); border-color: rgba(176,106,106,0.42); }
.badge.lock { color: var(--rose); border-color: rgba(176,106,106,0.42); }
.badge.violet { color: var(--violet); border-color: var(--violet-line); }
.badge.cyan { color: var(--cyan); border-color: rgba(109,174,181,0.34); }

/* ---------- Board stats ---------- */
.board-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 34px; }
.stat-tile { padding: 20px; border: 1px solid var(--line-soft); background: rgba(5,4,7,0.28); }
.stat-tile .num { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--gold-bright); }
.stat-tile .txt { font-family: var(--label); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-top: 8px; }

/* ---------- Notice / mod cards ---------- */
.notice {
  padding: 18px 20px; border: 1px solid var(--line-soft); margin-bottom: 24px;
  background: rgba(21,16,32,0.4); font-size: 15px; line-height: 1.6; color: var(--text);
}
.notice .h { font-family: var(--label); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.notice p { margin: 0; }
.notice.warn { border-color: rgba(176,106,106,0.36); background: rgba(62,31,37,0.26); }
.notice.warn .h { color: var(--rose); }
.notice.violet { border-color: var(--violet-line); background: rgba(36,22,45,0.34); }
.notice.violet .h { color: var(--violet); }
.notice.cyan { border-color: rgba(109,174,181,0.28); }
.notice.cyan .h { color: var(--cyan); }

/* ---------- Category board (index) ---------- */
.section-title { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 6px; }
.section-note { font-family: var(--label); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin: 0 0 20px; }

.cat-board { display: grid; grid-template-columns: 1px; gap: 0; border: 1px solid var(--line-soft); margin-bottom: 44px; grid-template-columns: 1fr; }
.cat-item {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 18px; align-items: center;
  padding: 20px 22px; border-bottom: 1px solid var(--line-soft); background: rgba(5,4,7,0.24);
  transition: background .3s;
}
.cat-item:last-child { border-bottom: 0; }
.cat-item:hover { background: rgba(36,22,45,0.34); }
.cat-glyph { width: 46px; height: 46px; }
.cat-body h3 { margin: 0 0 5px; font-size: 21px; }
.cat-body h3 a:hover { color: var(--gold-bright); }
.cat-body p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.cat-body .last { margin-top: 7px; font-family: var(--label); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.cat-count { text-align: right; font-family: var(--label); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.cat-count strong { display: block; font-family: var(--display); font-size: 24px; color: var(--gold); font-weight: 300; letter-spacing: 0; }

/* ---------- Thread list (index + category) ---------- */
.thread-list { border: 1px solid var(--line-soft); margin-bottom: 30px; }
.thread-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 96px 92px 168px; gap: 16px; align-items: center;
  padding: 16px 18px; border-bottom: 1px solid var(--line-soft); background: rgba(5,4,7,0.24);
  transition: background .25s;
}
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { background: rgba(36,22,45,0.34); }
.thread-title { min-width: 0; }
.thread-title .badges { margin-bottom: 8px; }
.thread-title h4 { margin: 0 0 6px; color: var(--bone); font-family: var(--body); font-size: 16px; font-weight: 300; line-height: 1.28; }
.thread-title h4 a { transition: color .2s; }
.thread-title h4 a:hover { color: var(--gold-bright); }
.thread-title p { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.4; }
.thread-metric { font-family: var(--label); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.thread-metric strong { display: block; color: var(--text); font-family: var(--display); font-size: 21px; letter-spacing: 0; text-transform: none; font-weight: 300; }
.thread-last { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.thread-last strong { color: var(--text); font-weight: 400; }

/* ---------- Avatars (CSS initials) ---------- */
.avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--label); font-size: 14px; font-weight: 500; letter-spacing: .02em;
  color: var(--bone); border: 1px solid var(--line-soft);
  background: linear-gradient(150deg, rgba(45,28,56,0.9), rgba(11,11,24,0.7));
  text-transform: uppercase;
}
.avatar.sm { width: 34px; height: 34px; font-size: 11px; }
.avatar.lg { width: 54px; height: 54px; font-size: 17px; }
.avatar.mod { border-color: rgba(214,173,114,0.5); box-shadow: 0 0 0 2px rgba(214,173,114,0.12); color: var(--gold-bright); }
.avatar.a-gold { background: linear-gradient(150deg, rgba(138,93,59,0.55), rgba(21,16,32,0.85)); }
.avatar.a-violet { background: linear-gradient(150deg, rgba(76,60,120,0.6), rgba(11,11,24,0.85)); }
.avatar.a-sage { background: linear-gradient(150deg, rgba(76,90,64,0.55), rgba(11,11,24,0.85)); }
.avatar.a-cyan { background: linear-gradient(150deg, rgba(52,96,101,0.5), rgba(11,11,24,0.85)); }
.avatar.a-plum { background: linear-gradient(150deg, rgba(70,40,80,0.6), rgba(11,11,24,0.85)); }

/* ---------- Thread page: posts ---------- */
.thread-doc { max-width: 840px; }
.post {
  display: grid; grid-template-columns: 74px 1fr; gap: 20px;
  padding: 26px 0; border-top: 1px solid var(--line-soft);
}
.post:first-of-type { border-top: 0; }
.post.op { padding-top: 30px; }
.post-side { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.post-side .who { font-family: var(--label); font-size: 11px; color: var(--text); line-height: 1.3; }
.post-side .role { font-family: var(--label); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.post-side .role.mod { color: var(--gold); }
.post-main { min-width: 0; }
.post-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.post-head .name { font-family: var(--display); font-size: 21px; color: var(--bone); }
.post-head .stamp { font-family: var(--label); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.post-head .num { font-family: var(--label); font-size: 10px; color: var(--faint); margin-left: auto; }
.post-body { font-size: 16px; line-height: 1.72; color: var(--text); }
.post-body p { margin: 0 0 15px; }
.post-body p:last-child { margin-bottom: 0; }
.post-body strong { color: var(--bone); font-weight: 400; }
.post-body em { color: var(--gold); font-style: italic; }
.post-body ul { margin: 0 0 15px; padding-left: 20px; }
.post-body li { margin-bottom: 6px; }
.post-body a { color: var(--cyan); border-bottom: 1px solid rgba(109,174,181,0.3); }
.post-body a:hover { color: #9ed0d6; }

.op .post-body { font-size: 16.5px; }
.op .post-main { border-left: 1px solid transparent; }

/* quote block inside posts */
.quote {
  margin: 0 0 15px; padding: 12px 16px; border-left: 2px solid var(--line);
  background: rgba(21,16,32,0.4); font-size: 14.5px; color: var(--muted); font-style: italic;
}
.quote .qwho { display: block; font-family: var(--label); font-style: normal; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }

/* moderator intervention post */
.post.modpost .post-main {
  border: 1px solid rgba(214,173,114,0.28); background: rgba(21,16,32,0.34);
  padding: 18px 20px; border-radius: 3px;
}
.post.modpost .post-head .name { color: var(--gold-bright); }
.post-mod-tag { font-family: var(--label); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }

.post-edit { margin-top: 12px; font-family: var(--label); font-size: 10px; letter-spacing: .06em; color: var(--faint); font-style: italic; }

/* collapsed archive marker */
.archive-note {
  margin: 8px 0; padding: 16px 20px; text-align: center;
  border: 1px dashed var(--line-soft); background: rgba(5,4,7,0.28);
  font-family: var(--label); font-size: 11px; letter-spacing: .06em; color: var(--dim); font-style: normal;
}
.archive-note strong { color: var(--muted); font-weight: 500; }

/* locked banner */
.locked-banner {
  display: flex; align-items: center; gap: 14px; padding: 18px 22px; margin: 24px 0;
  border: 1px solid rgba(176,106,106,0.4); background: rgba(62,31,37,0.24);
}
.locked-banner .ic { color: var(--rose); font-size: 18px; }
.locked-banner p { margin: 0; font-size: 14.5px; color: var(--text); }
.locked-banner strong { color: var(--rose); font-weight: 400; }

/* pinned banner */
.pinned-banner {
  display: flex; align-items: center; gap: 14px; padding: 16px 22px; margin: 0 0 24px;
  border: 1px solid rgba(214,173,114,0.3); background: rgba(36,27,20,0.28);
}
.pinned-banner p { margin: 0; font-size: 14px; color: var(--text); }
.pinned-banner strong { color: var(--gold); font-weight: 400; }

/* ---------- Disclaimer / footer nav ---------- */
.thread-disclaimer {
  margin: 30px 0 0; padding: 18px 20px; border: 1px solid var(--line-soft);
  background: rgba(5,4,7,0.3); font-size: 13.5px; color: var(--dim); font-style: italic; line-height: 1.6;
}
.thread-nav {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 30px 0 0; padding-top: 26px; border-top: 1px solid var(--line-soft);
}
.thread-nav a {
  font-family: var(--label); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); transition: color .2s; max-width: 44%;
}
.thread-nav a:hover { color: var(--gold); }
.thread-nav a .dir { display: block; font-size: 9px; color: var(--faint); margin-bottom: 4px; }
.thread-nav a.mid { color: var(--gold); }

/* ---------- Reply box (static) ---------- */
.reply-static {
  margin: 30px 0 0; padding: 22px; border: 1px solid var(--line-soft); background: rgba(5,4,7,0.24);
  display: flex; gap: 16px; align-items: center;
}
.reply-static .txt { flex: 1; font-size: 14px; color: var(--dim); font-style: italic; }
.reply-static .btn-static {
  font-family: var(--label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  padding: 11px 20px; border: 1px solid var(--line-soft); color: var(--muted); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--label); font-size: 11.5px; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 13px 22px; border-radius: 1px; border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; gap: 10px; transition: all .28s ease; cursor: pointer; color: var(--bone);
}
.btn .arw { transition: transform .28s ease; color: var(--gold); }
.btn:hover { border-color: var(--gold); background: rgba(214,173,114,0.05); }
.btn:hover .arw { transform: translateX(4px); }
.btn.solid { background: linear-gradient(180deg, rgba(214,173,114,0.14), rgba(214,173,114,0.04)); color: var(--gold-bright); }
.btn.ghost { border-color: var(--line-soft); color: var(--muted); }
.btn.ghost:hover { color: var(--bone); border-color: var(--violet-line); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Guidelines list ---------- */
.guidelines { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.guidelines li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.guidelines li::before { content: "—"; position: absolute; left: 0; color: var(--gold); opacity: .7; }

/* ---------- Two-column layout for category pages ---------- */
.split { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.rail > * + * { margin-top: 22px; }
.rail-card { padding: 22px; border: 1px solid var(--line-soft); background: rgba(5,4,7,0.28); }
.rail-card h4 { margin: 0 0 12px; font-size: 18px; }
.rail-card p { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.rail-card .mod-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--label); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); padding: 7px 0; border-bottom: 1px solid var(--line-soft); width: 100%; }
.rail-card .mod-chip:last-child { border-bottom: 0; }

/* ---------- Footer ---------- */
.forum-footer { padding: 56px 0 44px; border-top: 1px solid var(--line-soft); margin-top: 56px; }
.forum-footer .frow { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: baseline; }
.forum-footer p { margin: 0; font-size: 12.5px; color: var(--dim); }
.forum-footer .small { font-size: 11.5px; max-width: 560px; line-height: 1.6; }
.forum-footer a { color: var(--muted); }
.forum-footer a:hover { color: var(--bone); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .board-stats { grid-template-columns: 1fr 1fr; }
  .mast-links { display: none; }
  .mast-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 24px 18px; background: rgba(5,4,7,0.98); border-bottom: 1px solid var(--line-soft); }
  .mast-links.open a { width: 100%; padding: 10px 0; }
  .mast-toggle { display: inline-flex; background: none; border: 1px solid var(--line-soft); color: var(--bone); border-radius: 3px; padding: 8px 11px; cursor: pointer; font-family: var(--label); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
}
@media (min-width: 861px) { .mast-toggle { display: none; } }
@media (max-width: 620px) {
  body { font-size: 16px; }
  .thread-row { grid-template-columns: 1fr; gap: 8px; }
  .thread-metric { display: inline-block; margin-right: 16px; }
  .thread-metric strong { display: inline; margin-right: 5px; }
  .cat-item { grid-template-columns: 1fr; }
  .cat-glyph { display: none; }
  .cat-count { text-align: left; }
  .cat-count strong { display: inline; margin-right: 6px; }
  .post { grid-template-columns: 1fr; gap: 12px; }
  .post-side { flex-direction: row; align-items: center; gap: 12px; text-align: left; }
  .board-stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}


/* ---------- Visual archive / forum attachments ---------- */
.forum-visual-strip {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; margin: 0 0 34px;
}
.forum-visual {
  border: 1px solid var(--line-soft); background: rgba(5,4,7,0.32); overflow: hidden;
}
.forum-visual .thumb, .attachment-frame {
  position: relative; min-height: 150px; overflow: hidden; border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(360px 220px at 42% 30%, rgba(214,173,114,0.13), transparent 68%),
    radial-gradient(300px 220px at 60% 70%, rgba(142,120,200,0.15), transparent 70%),
    linear-gradient(145deg, rgba(21,16,32,0.94), rgba(5,4,7,0.86));
}
.forum-visual .thumb::before, .attachment-frame::before {
  content: attr(data-file); position:absolute; left:12px; top:10px;
  font-family: var(--label); font-size:8.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--dim); z-index:2;
}
.forum-visual .thumb::after, .attachment-frame::after {
  content:""; position:absolute; inset:18px; border:1px solid rgba(239,230,212,0.08);
  background-image:
    linear-gradient(rgba(239,230,212,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,230,212,0.035) 1px, transparent 1px);
  background-size: 26px 26px;
}
.thumb.circle::after, .attachment-frame.circle::after { border-radius:50%; inset:38px; box-shadow:0 0 0 1px rgba(142,120,200,0.18), inset 0 0 44px rgba(142,120,200,0.08); }
.thumb.hands::after, .attachment-frame.hands::after { inset:42px 34px; border-radius:999px; transform:rotate(-7deg); box-shadow:0 25px 0 rgba(214,173,114,0.055), 0 -25px 0 rgba(142,120,200,0.06); }
.thumb.document::after, .attachment-frame.document::after { inset:28px 54px; transform:rotate(-2deg); background:linear-gradient(180deg, rgba(239,230,212,0.1), rgba(239,230,212,0.025)); }
.thumb.hallway::after, .attachment-frame.hallway::after { inset:22px 58px; transform:perspective(220px) rotateX(12deg); border-color:rgba(142,120,200,0.2); }
.thumb.table::after, .attachment-frame.table::after { inset:52px 18px 28px; transform:rotate(1deg); border-color:rgba(214,173,114,0.18); }
.thumb.signal::after, .attachment-frame.signal::after { inset:34px; border-color:rgba(176,106,106,0.24); background-image:linear-gradient(90deg, transparent, rgba(176,106,106,0.13), transparent); }
.visual-caption { padding: 14px 15px 16px; }
.visual-caption .file, .attachment-meta { margin:0 0 7px; font-family:var(--label); font-size:8.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--dim); }
.visual-caption h4 { margin:0 0 7px; font-size:20px; line-height:1.12; }
.visual-caption p { margin:0; color:var(--muted); font-size:13.5px; line-height:1.45; }
.post-attachment { margin: 18px 0; max-width: 620px; border: 1px solid var(--line-soft); background: rgba(5,4,7,0.28); }
.post-attachment .attachment-frame { min-height: 260px; }
.post-attachment .attachment-caption { padding: 13px 15px 15px; color: var(--muted); font-size: 13.5px; line-height:1.5; }
.post-attachment .attachment-caption p { margin:0; }
.post-attachment .attachment-caption .casual { color: var(--text); font-style: italic; }
.visual-placeholder-note { border:1px dashed rgba(214,173,114,0.25); padding:14px 16px; color:var(--dim); font-size:13px; font-style:italic; margin:18px 0; }

@media (max-width: 820px) { .forum-visual-strip { grid-template-columns: 1fr; } }
