/* =============================================================================
   GARDEN theme system — Geist bones (1px borders, 6px radius, 4px spacing
   scale, no animations, no transitions, no shadows, no gradients).
   Texture lives only on the page background; every component sits on a solid
   surface so nothing impedes reading.

   THEME PLUGIN
   ─ Structural tokens (spacing, radius, type, z-index, layout) are
     theme-independent and live in :root below.
   ─ Color tokens live in [data-theme] blocks. "garden" is also declared on
     :root, so no attribute is needed for the default look.
   ─ Switch themes with <html data-theme="iris"> or <html data-theme="paper">.
   ─ Add a theme: copy any [data-theme] block, rename, change values. Every
     color in the stylesheet resolves through these tokens — nothing else
     needs editing.
============================================================================= */
/* ------------------------------------------------- structural tokens */
:root {
  /* layout */
  --app-mwidth: 1340px;
  --topbar-h: 52px;
  /* --topbar-h: 61px; */
  --hero-thumb: 50%;
  --post-height: 280px;
  --list-post-height: 300px;
  --post-height-short: 200px;
  --rail-w: 64px;
  --rail-thumb: 50px;
  --card-thumb: 56px;
  /* 4px spacing scale (half-steps kept for the existing 6/10px rhythm) */
  --sp-1: 4px;
  --sp-1-5: 6px;
  --sp-2: 8px;
  --sp-2-5: 10px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  /* radii */
  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius: 0;
  /* --radius: 6px; */
  /* control heights */
  --ctl-h-sm: 26px;
  --ctl-h: 32px;
  --input-h: 30px;
  /* type scale */
  --fs-2xs: 10px;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-md: 13px;
  --fs-base: 14px;
  --fs-lg: 15px;
  --fs-xl: 16px;
  --fs-title: 24px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, "Liberation Mono", monospace;
  /* z-index scale */
  --z-sticky: 90;
  --z-topbar: 100;
  --z-modal: 150;
  --z-lightbox: 200;
}

/* ------------------------------------------------- theme: garden (default)
   PulseChain night garden — deep greens, teal brand, soft violet links. */
:root,
[data-theme="garden"] {
  color-scheme: dark;
  --page-bg: #000;
  --bg: #04100a;
  --bg-2: #071a10;
  --bg-3: #0b2417;
  --border: #17402a;
  --border-strong: #26663f;
  --text: #e9f5ec;
  --text-2: #93cf9f;
  --text-3: #5f9e6d;
  --accent: #96a8ff;
  --on-accent: #1b1436;
  --brand: #00e5a8;
  --brand-hover: #00c491;
  --brand-dark: #007a58;
  --on-brand: #02140c;
  --danger: #f43b52;
  --type-profile: #ffae00;
  --type-mood: #3ddc5a;
  --overlay: rgba(0, 0, 0, 0.8);
  --lightbox-bg: rgba(0, 0, 0, 0.92);
  --scroll-thumb: #3a3d42;
  --scroll-thumb-hover: #40464f;
  --scroll-thumb-active: #747981;
  --scroll-track: #b1b4b4;
  --scroll-track-hover: #9b9ea1;
  --scroll-track-active: #cbd5e1;
  /* halftone grain: tiled SVG dots, tinted per theme */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23134422' fill-opacity='0.55'/%3E%3Ccircle cx='6' cy='6' r='1' fill='%23134422' fill-opacity='0.35'/%3E%3C/svg%3E");
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23a1a1a1' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}

/* ------------------------------------------------- theme: iris
   Midnight indigo — periwinkle takes over the brand role, mint links. */
[data-theme="iris"] {
  color-scheme: dark;
  --page-bg: #010208;
  --bg: #070812;
  --bg-2: #0b0d1d;
  --bg-3: #121530;
  --border: #1e2350;
  --border-strong: #333c86;
  --text: #ecedfb;
  --text-2: #a9b0e8;
  --text-3: #6f77b8;
  --accent: #7ee2a8;
  --on-accent: #04170c;
  --brand: #8fa0ff;
  --brand-hover: #7688f0;
  --on-brand: #10142e;
  --danger: #f4526a;
  --type-profile: #ffc247;
  --type-mood: #58e07e;
  --overlay: rgba(2, 3, 12, 0.82);
  --lightbox-bg: rgba(2, 3, 12, 0.93);
  --scroll-thumb: #383e5e;
  --scroll-thumb-hover: #434a70;
  --scroll-thumb-active: #6a72a3;
  --scroll-track: #aab0c9;
  --scroll-track-hover: #969db8;
  --scroll-track-active: #c9d0e8;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Ccircle cx='2' cy='2' r='1' fill='%231c2566' fill-opacity='0.55'/%3E%3Ccircle cx='6' cy='6' r='1' fill='%231c2566' fill-opacity='0.35'/%3E%3C/svg%3E");
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23a1a1a1' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}

/* ------------------------------------------------- theme: paper
   Vintage botanical print — cream stock, ink greens, letterpress red. */
[data-theme="paper"] {
  color-scheme: light;
  --page-bg: #d9d2bd;
  --bg: #efe9d8;
  --bg-2: #f7f2e4;
  --bg-3: #e5ddc6;
  --border: #d0c5a4;
  --border-strong: #a99b72;
  --text: #23301f;
  --text-2: #4e6547;
  --text-3: #7c8f74;
  --accent: #4353c4;
  --on-accent: #f2f1fc;
  --brand: #c31f36;
  --brand-hover: #a41226;
  --on-brand: #fdf7ee;
  --danger: var(--brand);
  --type-profile: #b57900;
  --type-mood: #1f8d3c;
  --overlay: rgba(43, 38, 22, 0.6);
  --lightbox-bg: rgba(32, 28, 15, 0.9);
  --scroll-thumb: #8a8168;
  --scroll-thumb-hover: #6f684f;
  --scroll-thumb-active: #57503a;
  --scroll-track: #ddd5bd;
  --scroll-track-hover: #d2c9ad;
  --scroll-track-active: #e8e1cc;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23a2946f' fill-opacity='0.5'/%3E%3Ccircle cx='6' cy='6' r='1' fill='%23a2946f' fill-opacity='0.3'/%3E%3C/svg%3E");
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23554e3e' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------- reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* modern browsers; "2px" is invalid for scrollbar-width, so: thin */
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) transparent;
}

/* legacy WebKit scrollbars */
*::-webkit-scrollbar {
  width: 2px;
  height: 4px;
}

*::-webkit-scrollbar-track {
  background-color: var(--scroll-track);
  border-radius: var(--radius-xs);
}

*::-webkit-scrollbar-track:hover {
  background-color: var(--scroll-track-hover);
}

*::-webkit-scrollbar-track:active {
  background-color: var(--scroll-track-active);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb);
  border-radius: var(--radius-xs);
  min-height: 40px;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--scroll-thumb-hover);
}

*::-webkit-scrollbar-thumb:active {
  background-color: var(--scroll-thumb-active);
}

*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* stable gutter so the scrollbar appearing/disappearing never shifts layout */
html {
  background: var(--bg);
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--page-bg);
  background-image: var(--grain);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: var(--brand);
  color: var(--on-brand);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ topbar */
.topbar {
  position: sticky;
  height: var(--topbar-h);
  top: 0;
  z-index: var(--z-topbar);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-lg);
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
  opacity: .8;
}

.site-nav {
  display: flex;
  gap: var(--sp-1);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 var(--sp-2-5);
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: var(--fs-md);
  font-weight: 500;
}

.nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-link.active {
  color: var(--text);
  background: var(--border);
}

.controls {
  display: flex;
  gap: 2px;
  border: 1px solid var(--border);
  /* border-radius: var(--radius); */
  background-color: var(--bg-3);
  /* gap: var(--sp-2); */
  flex-wrap: wrap;
  box-shadow: 0 8px 8px -4px rgba(0, 0, 0, 0.5);

  position: relative;


}

/* the search and tag/sort selects live below the prompt of the day on the
   home page; hide them while they're still parked in the topbar */
.topbar .controls,
.topbar .search {
  display: none;
}

.home-controls:empty {
  display: none;
}

/* search/filters + list tools stick below the topbar while scrolling */
.home-sticky {
  position: sticky;
  top: var(--topbar-h);
  z-index: var(--z-sticky);
  /* backdrop-filter: blur(4px) saturate(180%); */
  /* -webkit-backdrop-filter: blur(4px) saturate(180%); */
  margin: 0 calc(-1 * var(--sp-6)) var(--sp-3);
  padding: 0 var(--sp-6);
}

.home-sticky .list-tools {
  margin-bottom: 0;
}

.list-sentinel {
  height: 1px;
}

/* the post filters don't apply outside the posts views */
body.assets-page .search,
body.assets-page .controls {
  display: none;
}

.social {
  display: flex;
  gap: var(--sp-1-5);
  margin-left: auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ctl-h);
  height: var(--ctl-h);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-2);
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  text-decoration: none;
}

.input {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid transparent;
  /* border: 1px solid var(--border); */
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  /* border-radius: var(--radius); */
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  height: var(--input-h);
  padding: 0 var(--sp-2-5);
}

.input:hover {
  border-color: var(--border-strong);
}

.input::placeholder {
  color: var(--text-3);
}

.search {
  flex: 1 1 200px;
  min-width: 140px;
  /* max-width: 220px; */
}

.select {
  appearance: none;
  padding-right: 26px;
  background-image: var(--select-arrow);
  background-repeat: no-repeat;
  background-position: right var(--sp-2) center;
}

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1-5);
  padding: var(--sp-2);
  height: var(--ctl-h-sm);
  /* height: var(--ctl-h); */
  /* padding: 0 var(--sp-3); */
  background: var(--bg-3);
  color: var(--text);
  /* border: 1px solid var(--bg-3); */
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--border-strong);
  text-decoration: none;
}

.btn-sm {
  height: var(--ctl-h-sm);
  padding: 0 var(--sp-2);
  font-size: var(--fs-sm);
}

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
}

/* -------------------------------------------------------------------- main */
/* min-height keeps the footer from jumping while a view renders */
#app {
  padding: var(--sp-6);
  max-width: var(--app-mwidth);
  margin: 0 auto;
  min-height: 60vh;
}

.status {
  color: var(--text-2);
  padding: 48px 0;
  text-align: center;
}

/* ---------------------------------------------------------- support / donate
   Plain flow content above the prompt of the day — deliberately not sticky. */
.donate {
  position: static;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-2-5) var(--sp-3);
  margin-bottom: var(--sp-3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
}

/* same periwinkle sign as the prompt-of-day label */
.donate-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--accent);
  padding: 1px var(--sp-2);
  border-radius: var(--radius-xs);
}

/* the whole address row is the copy target; full width so the copied-state
   icon swap cannot collapse the layout */
.donate-addr {
  width: 100%;
  min-height: var(--ctl-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding: var(--sp-1-5) var(--sp-2);
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  max-width:400px;
}

.donate-addr:hover {
  border-color: var(--border-strong);
}

.donate-addr-text {
  min-width: 0;
  word-break: break-all;
  user-select: all;
}

.donate-addr-icon {
  display: flex;
  flex: 0 0 auto;
  color: var(--text-2);
}

.donate-link {
  font-size: var(--fs-sm);
  word-break: break-all;
}

/* ---------------------------------------------------- inspiration reminder */
.inspire-tip {
  font-size: var(--fs-sm);
  color: var(--text-2);
  margin-bottom: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-left: 3px solid var(--accent);
  background: var(--bg-2);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  line-height: 1.4;
}

.inspire-tip a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inspire-tip a:hover {
  color: var(--text);
}

/* ------------------------------------------------------- prompt of the day */
.potd {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-2-5) var(--sp-3);
  margin-bottom: var(--sp-3);
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  justify-content: space-between;
}

.potd > div {
  min-width: 0;
}

/* styled after the periwinkle "GARDEN" sign */
.potd-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--accent);
  padding: 1px var(--sp-2);
  border-radius: var(--radius-xs);
  margin-bottom: var(--sp-2);
}

.potd-text {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text);
  word-break: break-word;
  max-height: 58px;
  /* ~3 lines; long prompts scroll, Copy stays visible */
  overflow-y: auto;
}

/* -------------------------------------------------------------- post cards */
.count {
  /* color: var(--on-accent); */
  color: var(--text-2);
  font-size: var(--fs-xs);
  /* background-color: var(--brand-hover); */
  /* background-color: var(--bg-2); */
  /* border-radius: var(--radius); */
  /* padding: var(--sp-1); */
  padding: var(--sp-1) var(--sp-2);
  /* margin-bottom: var(--sp-3); */
}

.list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  background: var(--bg-3);
  /* margin-left: auto; */
}

.list-tools .count {
  margin-bottom: 0;
}

.list-actions {
  display: flex;
  padding: var(--sp-1-5) var(--sp-2);
  gap: var(--sp-2);
  /* background-color: var(--bg-3) */
}

.layout-toggle {
  display: flex;
}

.layout-toggle .btn {
  border-radius: 0;
}

.layout-toggle .btn:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.layout-toggle .btn:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-left: -1px;
}

.layout-toggle .btn.active {
  background: var(--border);
  color: var(--text);
  border-color: var(--border-strong);
  z-index: 1;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* grid layout: full-width thumbnail on top, title + tags only */
.post-list.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.post-card-grid {
  flex-direction: column;
}

.post-card-grid .post-hero {
  flex: none;
  width: 100%;
  height: var(--post-height);
  min-height: 0;
  border-right: none;
  /* border-bottom: 1px solid var(--border); */
}

.post-card-grid .post-hero.empty {
  height: 64px;
}

.post-card-grid .post-meta {
  padding: var(--sp-1) var(--sp-2);
}

.post-card-grid .post-tags {
  margin-top: var(--sp-2);
}

.post-card {
  display: flex;
  background: var(--bg-2);
  border: 1px solid transparent;
  box-shadow: 1px 5px 8px rgba(0, 0, 0, 0.8); 
  /* border: 1px solid var(--border); */
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

/* per-source surface tint */
.post-card[data-source="GPT"] .post-meta {
  background-color: var(--bg);
}

.post-card[data-source="MJ"] .post-meta {
  background-color: var(--bg-2);
}

.post-card:hover {
  /* border-color: var(--border-strong); */
  /* filter: contrast(1.15); */
  border-color: var(--bg-3)
}

/* single hero thumbnail filling the left portion of the card */
.post-hero {
  flex: 0 0 var(--hero-thumb);
  position: relative;
  min-height: var(--post-height);
  /* background: var(--bg-3); */
  /* border-right: 1px solid var(--border); */
}

.post-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* mult final sets: 2-column grid filling the hero area */
.post-hero-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 2px;
}

.post-hero-grid img {
  position: static;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.post-hero.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* merged: was declared twice (layout + flex column) */
.post-meta {
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
}

.post-title {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text);
  overflow-wrap: break-word;
}

/* prompt preview on list cards: dark scrollable box, pinned copy button */
.prompt-preview {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: var(--sp-2);
}

.prompt-preview-text {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 168px;
  overflow-y: auto;
  /* right gap clears the pinned toggle + copy buttons */
  padding: var(--sp-2) 76px var(--sp-2) var(--sp-2-5);
}

/* collapsed: a single ellipsized line until toggled open */
.prompt-preview.collapsed .prompt-preview-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: none;
}

.prompt-actions {
  position: absolute;
  top: var(--sp-1-5);
  right: var(--sp-1-5);
  display: flex;
  gap: var(--sp-1);
}

/* resource thumbnails on the card: small squares, no per-image actions;
   clicking opens the full image in the lightbox */
.card-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1-5);
  height: 100%;
  /* align-items: bottom; */
  /* justify-content: baseline; */
  /* margin-top: auto; */
  /* margin-top: var(--sp-2-5); */
}

.card-thumb {
  width: var(--card-thumb);
  height: var(--card-thumb);
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  cursor: zoom-in;
}

.card-thumb:hover {
  border-color: var(--border-strong);
}

/* tags + date pinned to the card's bottom edge */
.post-bottom {
  margin-top: auto;
  padding-top: var(--sp-3);
}

.post-bottom .post-tags {
  margin-top: 0;
}

/* taller list cards (grid/masonry keep --post-height) */
.post-card:not(.post-card-grid) .post-hero {
  min-height: var(--list-post-height);
}

/* posts without a prompt preview (no gpt/mj/gem prefix) keep their height */
.post-card-short:not(.post-card-grid) .post-hero {
  min-height: var(--post-height-short);
}

/* list mode: main column + sticky mini-thumbnail rail */
.list-wrap {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.list-wrap > .post-list,
.list-wrap > .masonry,
.list-wrap > .prompt-rows {
  flex: 1 1 auto;
  min-width: 0;
}

.post-rail {
  position: sticky;
  top: calc(var(--topbar-h) + 110px);
  flex: 0 0 var(--rail-w);
  max-height: 62vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  scrollbar-width: none;
  /* hidden until hover */
}

.post-rail::-webkit-scrollbar {
  display: none;
}

.post-rail:hover {
  scrollbar-width: auto;
}

.post-rail:hover::-webkit-scrollbar {
  display: block;
}

.rail-thumb {
  width: var(--rail-thumb);
  height: var(--rail-thumb);
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--bg);
  cursor: pointer;
}

.rail-thumb:hover {
  border-color: var(--border-strong);
}

.rail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* rail jumps land below the sticky topbar + home controls */
.post-card,
.masonry-item,
.prompt-row {
  scroll-margin-top: calc(var(--topbar-h) + 118px);
}

/* prompts mode: compact title + copyable prompt rows */
.prompt-rows {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1-5);
}

.prompt-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-2) var(--sp-2-5);
  cursor: pointer;
}

.prompt-row:hover {
  border-color: var(--border-strong);
}

.prompt-row-title {
  flex: 0 0 220px;
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prompt-row-text {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prompt-row .btn-icon {
  flex: 0 0 auto;
}

.prompt-actions .btn {
  background: var(--bg-2);
}

/* small resource-count badge on card thumbnails */
.hero-badge {
  position: absolute;
  bottom: var(--sp-1-5);
  right: var(--sp-1-5);
  z-index: 1;
  background: var(--bg);
  color: var(--text-2);
  font-size: var(--fs-2xs);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.7;
  padding: 0 var(--sp-1-5);
  border-radius: var(--radius-xs);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.hero-badge svg {
  display: block;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1-5);
  margin-top: var(--sp-2-5);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: var(--ctl-h-sm);
  padding: 0 var(--sp-2);
  border: 1px solid var(--border);
  border-radius: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-2);
  background-color: var(--bg-2);
  cursor: pointer;
}

.tag:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.tag.active {
  color: var(--on-brand);
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 600;
}

.post-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
}

.post-foot .post-date {
  margin-top: 0;
}

.post-date {
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-family: var(--font-mono);
  margin-top: var(--sp-2);
}

.author-link {
  color: var(--accent);
  font-size: var(--fs-sm);
}

.post-author {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1-5);
  margin-left: var(--sp-1);
}

.author-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* -------------------------------------------------------------- post view */
.post-view {
  max-width: 900px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1-5);
  color: var(--text-2);
  font-size: var(--fs-md);
  margin-bottom: var(--sp-4);
}

.back-link:hover {
  color: var(--text);
  text-decoration: none;
}

/* merged: was declared twice */
.post-topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

.post-topnav .back-link {
  margin-bottom: 0;
}

.post-cycle {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.post-cycle-count {
  color: var(--text-3);
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.post-cycle .btn[disabled] {
  opacity: 0.4;
  cursor: default;
}

.post-view .post-title {
  font-size: var(--fs-title);
  line-height: 1.3;
}

.post-view .post-tags {
  margin: var(--sp-3) 0 var(--sp-1);
}

.post-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--post-height), 1fr));
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
}

.post-image-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1-5);
  position: relative;
}

/* Result section: single fin keeps the hero treatment; a mult set wraps */
.result-label {
  margin-top: var(--sp-4);
  margin-left: var(--sp-2);
  position: relative;
  z-index: 100;
  background: var(--brand);
  color: var(--text);
  border: 1px solid var(--brand);
}

.result-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  /* margin-top: var(--sp-2); */
  margin-top: calc(-1 * (var(--ctl-h)));
}

.result-row .post-image-item.fin-hero {
  margin: 0;
}

/* ordered-resource badge (res-a, res-b, …) */
.res-badge {
  position: absolute;
  top: var(--sp-1-5);
  left: var(--sp-1-5);
  z-index: 1;
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.6;
  padding: 0 7px;
  border-radius: var(--radius-xs);
}

/* Resources: inset panel, clearly subordinate to the Result */
.resources-panel {
  margin-top: var(--sp-5);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3);
}

.resources-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.resources-head .ref-label {
  margin-bottom: 0;
}

.post-images-resources {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin: 0;
}

.resources-panel .ref-section {
  margin: var(--sp-4) 0 0;
}

/* fixed-width download/copy pair, left-aligned under the image */
.img-actions {
  display: flex;
  margin-top: calc((-1 * var(--ctl-h)));
  /* margin-top: calc((-1 * var(--input-h)) - var(--sp-2)); */
  /* margin-bottom: auto; */
  /* margin-bottom: var(--sp-3); */
  /* padding: 4px;
   */
  padding: var(--sp-1);
  gap: var(--sp-1);
  margin-left: auto;

  /* justify-content: space-between; */
}

.img-actions .btn {
  flex: 0 0 auto;
}

/* icon-only buttons: square, glyph centered */
.btn-icon {
  padding: 0;
  width: var(--ctl-h);
}

.btn-icon.btn-sm {
  width: 28px;
}

.btn-icon svg {
  display: block;
}

.post-image-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid transparent;
  /* border: 1px solid var(--border); */
  border-radius: var(--radius);
  cursor: zoom-in;
  background: var(--bg-3);
}

.post-image-item img:hover {
  border-color: var(--border-strong);
}

.post-image-item.fin img:hover {
  border-color: var(--brand-hover);
}

/* the fin final on its own row, shown uncropped, capped at 550px tall */
.post-image-item.fin-hero {
  width: min(700px, 50vw);
  margin: var(--sp-5) 0 0;
}

.post-image-item.fin-hero img {
  /* the inline aspect-ratio (from build-time dims) reserves the box before
     load; the figure's inline width keeps the height <= 550px */
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: contain;
  box-shadow: 1px 5px 8px rgba(0, 0, 0, 0.8); 

}

.post-image-item .ref-label {
  align-self: flex-start;
  margin-bottom: 0;
}

/* fallback width for mult results when build-time dims are unavailable */
.post-image-item.fin-hero.result-multi {
  width: min(360px, 44vw);
}

/* midjourney reference-image sections */
.ref-section {
  margin: var(--sp-1) 0 var(--sp-4);
}

.ref-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  /* color: var(--text-2); */
  border: 1px solid var(--brand);
  /* border: 1px solid var(--border-strong); */
  padding: 1px var(--sp-2);
  border-radius: var(--radius-xs);
  /* margin-bottom: var(--sp-2); */
}

.post-images-refs {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin: 0;
}

.post-content {
  margin-top: var(--sp-5);
}

/* prompt directly under the fin image, with breathing room after it */
.post-content-prompt {
  margin-top: var(--sp-4);
  padding-bottom: var(--sp-4);
}

.post-content p {
  margin: 0 0 var(--sp-3);
  color: var(--text);
}

.post-content h1,
.post-content h2,
.post-content h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin: var(--sp-5) 0 var(--sp-2);
}

.post-content ul,
.post-content ol {
  margin: 0 0 var(--sp-3) var(--sp-5);
  color: var(--text);
}

.post-content li {
  margin-bottom: var(--sp-1);
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1px 5px;
}

.codeblock {
  position: relative;
  margin: 0 0 var(--sp-3);
}

.codeblock pre {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-3);
  padding-right: 64px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

.codeblock .copy-btn {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
}

/* ----------------------------------------------------------- style catalog */
.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-3);
}

.style-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.style-card:hover {
  border-color: var(--border-strong);
}

.style-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

.style-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.style-media.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.style-card-meta {
  padding: var(--sp-3) var(--sp-4);
}

.style-card-top {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-1-5);
}

.style-type {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 var(--sp-2);
  border-radius: var(--radius-xs);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-brand);
}

.style-type-sref {
  background: var(--accent);
}

.style-type-profile {
  background: var(--type-profile);
}

.style-type-mood {
  background: var(--type-mood);
}

.style-type-style {
  background: var(--text-3);
}

.code-chip {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 1px var(--sp-2);
  cursor: copy;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-chip:hover {
  border-color: var(--text-3);
}

.active-filter {
  background: var(--border-strong);
  border-color: var(--border-strong);
}

.style-used {
  margin-top: var(--sp-5);
}

.style-used-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1-5);
  margin-top: var(--sp-2);
}

/* ------------------------------------------------------------ assets page */
.assets-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  background-color: var(--bg-3);
  padding-right: var(--sp-2);
}

.assets-head .count {
  /* margin-bottom: 0;
   */
  display:none;
}

.masonry {
  columns: 120px;
  gap:1px;
}

/* assets grid: wider tiles than the front-page post masonry */
.masonry:not(.post-masonry) {
  columns: 170px;
}

.masonry-item {
  break-inside: avoid;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}

.masonry-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.masonry-item img:hover {
  border-color: var(--border-strong);
}

/* front-page masonry: tags overlaid on the image, natural aspect ratios */
.post-masonry-item {
  position: relative;
  cursor: pointer;
}

.post-masonry-item img {
  cursor: pointer;
}

.masonry-tags {
  position: absolute;
  top: var(--sp-1);
  left: var(--sp-1);
  right: var(--sp-1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  z-index: 1;
}

.masonry-tags .tag {
  opacity: 0;
}

/* keyboard users can find the otherwise-invisible tags */
.masonry-tags:hover .tag,
.masonry-tags .tag:focus-visible {
  opacity: 1;
}

.post-masonry-text {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 14px var(--sp-4);
  cursor: pointer;
}

.post-masonry-text:hover {
  border-color: var(--border-strong);
}

.post-masonry-text .post-title {
  font-size: var(--fs-base);
}

.post-masonry-text .masonry-tags {
  position: static;
  margin-top: var(--sp-2);
}

.masonry-item.fin img {
  border: 1px solid transparent;
}

.masonry-item.fin img:hover {
  border-color: var(--brand);
}

.post-zip {
  margin-top: var(--sp-3);
}

/* ------------------------------------------------------------ content tree */
.tree-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2);
}

.tree-modal[hidden] {
  display: none;
}

.tree-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: min(720px, 100%);
  height: 90vh;
  display: flex;
  overflow: hidden;
  flex-direction: column;
}

.tree-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-1) var(--sp-2);
  border-bottom: 1px solid var(--border);
}

.tree-heading {
  font-weight: 600;
  font-size: var(--fs-lg);
}

.tree-body {
  overflow: auto;
  padding: var(--sp-4);
  /* min-width: 540px; */
  width: 100%;
}

.tree-graph {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.tree-group {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* collapsed groups show just their tag chip */
.tree-group.collapsed .tree-posts {
  display: none;
}

.tree-count {
  margin-left: var(--sp-1);
  color: var(--text-3);
  font-size: var(--fs-xs);
}

.tree-chevron {
  margin-left: auto;
  display: inline-flex;
  color: var(--text-3);
}

/* merged: was declared twice */
.tree-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 160px;
  height: 26px;
  padding: 0 var(--sp-2);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: var(--fs-sm);
  font-family: var(--font-sans);
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.tree-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  flex: 0 0 auto;
}

.tree-posts {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1-5);
  min-width: 0;
}

.tree-post {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 2px var(--sp-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-md);
}

.tree-post:hover {
  border-color: var(--border-strong);
  text-decoration: none;
}

/* ---------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: var(--lightbox-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.lightbox-counter {
  color: var(--text-2);
  font-size: var(--fs-md);
}

.lightbox-actions {
  display: flex;
  gap: var(--sp-2);
}

.lightbox-img {
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--fs-xl);
  cursor: pointer;
}

.lightbox-nav:hover {
  border-color: var(--border-strong);
}

.lightbox-nav.prev {
  left: var(--sp-3);
}

.lightbox-nav.next {
  right: var(--sp-3);
}

.lightbox-nav[disabled] {
  opacity: 0.3;
  cursor: default;
}

/* ------------------------------------------------------------------- links */
.links-section {
  margin-top: var(--sp-5);
}

.link-row {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-1) 0;
  border-bottom: 1px solid var(--border);
}

.link-row:last-child {
  border-bottom: none;
}

.link-row a {
  white-space: nowrap;
}

.link-desc {
  color: var(--text-2);
  font-size: var(--fs-md);
}

/* ------------------------------------------------------------- back to top */
.back-top {
  position: fixed;
  bottom: var(--sp-5);
  right: var(--sp-5);
  z-index: var(--z-sticky);
  width: var(--input-h);
  height: var(--input-h);
  background: var(--bg-2);
}

.back-top[hidden] {
  display: none;
}

/* ------------------------------------------------------------------ footer */
.footer {
  max-width: var(--app-mwidth);
  /* was 1400px; now matches the app column */
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-6) var(--sp-6);
  text-align: center;
}

.footer-link {
  color: var(--text-3);
  font-size: var(--fs-sm);
}

.footer-link:hover {
  color: var(--text-2);
}

/* --------------------------------------------------------------------- 404 */
.notfound {
  text-align: center;
  padding: 64px 0;
}

.notfound-code {
  font-family: 'Arial Black', Arial, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 64px;
  color: var(--brand);
  line-height: 1;
}

.notfound-text {
  color: var(--text-2);
  margin: var(--sp-3) 0 var(--sp-5);
}

/* ------------------------------------------------------------------ mobile */

@media (max-width: 840px) {
  #app {
    padding: var(--sp-1);
  }

  .topbar-row {
    padding: var(--sp-2-5) var(--sp-4);
    gap: var(--sp-2);
  }

  .search {
    order: 3;
    flex-basis: 100%;
  }

  .controls {
    order: 4;
    flex-basis: 100%;
  }

  .controls .select {
    flex: 1 1 0;
    min-width: 0;
  }

  /* prompts mode: title stacks above the prompt on narrow screens */
  .prompt-row {
    flex-wrap: wrap;
  }

  .prompt-row-title {
    flex-basis: 100%;
  }

  /* no thumbnail rail on small screens */
  .post-rail {
    display: none;
  }

  .home-sticky {
    margin: 0 calc(-1 * var(--sp-4)) var(--sp-3);
    padding: 0 var(--sp-4);
    /* padding: var(--sp-2) var(--sp-4); */
  }

  /* grid stays at least two-up even on small screens; shorter thumbnails
     so half-width cards keep sane proportions */
  .post-list.grid {
    gap: var(--sp-2);
  }

  .post-card-grid .post-hero {
    height: 180px;
  }

  .post-card-grid .post-meta {
    padding: var(--sp-2);
  }

  .post-card-grid .post-meta .post-title {
    font-size: var(--fs-sm);
  }

  .post-card-grid .post-meta .post-tags .tag {
    padding: 0 2px;
    height: 22px;
  }

  .list-tools {
    flex-wrap: wrap;
  }

  .tree-group {
    gap: var(--sp-5);
  }

  .tree-tag {
    flex-basis: 110px;
  }

  .post-meta {
    padding: var(--sp-1-5);
  }

  .post-card {
    flex-direction: column;
  }

  .post-hero {
    flex: none;
    min-height: 0;
    height: var(--post-height-short);
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .post-hero.empty {
    height: 48px;
  }

  .potd {
    flex-direction: column;
  }

  .post-images {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .lightbox-img {
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 140px);
  }

  .lightbox-nav.prev {
    left: var(--sp-2);
    top: auto;
    bottom: var(--sp-3);
    transform: none;
  }

  .lightbox-nav.next {
    right: var(--sp-2);
    top: auto;
    bottom: var(--sp-3);
    transform: none;
  }

  .social {
    display: none;
  }

  .post-view {
    padding: var(--sp-1-5);
  }
}
@media (max-width: 540px) {
.topbar-row {
    padding: var(--sp-2-5) var(--sp-1);
    gap: var(--sp-1);
  }

  .brand {
    font-size: var(--fs-md);
    gap:var(--sp-1);
  }

  .nav-link {
    padding: 0 var(--sp-1);
  }
  .count {
    display:none;
  }

  .home-sticky .home-controls {
    margin-bottom: 0;
  }

  /* keep the 44-char address on one line at phone widths */
  .donate-addr,
  .donate-link {
    font-size: var(--fs-xs);
  }

  .donate-addr {
    padding: var(--sp-1-5);
  }
}

@media (max-width: 400px) {
  .brand {
    display:none;
  }
}