/* Growisto AI Knowledge Base — design tokens from BRAND_GUIDELINES.md */

:root {
  /* Brand */
  --teal: #367588;
  --teal-hover: #2A5A6A;
  --powder: #B8DBD9;
  --flame: #E35D34;
  --flame-hover: #C94D28;
  --ink: #1D1D20;
  --ink-soft: #4A4A52;
  --ink-mute: #7C7C84;
  --paper: #F6F6F4;
  --paper-card: #FFFFFF;
  --paper-line: #E5E5E2;

  /* Status */
  --status-live: #2E8B57;
  --status-wip: #C49000;

  /* Format chip palette */
  --fmt-xlsx: #1E7C3A;
  --fmt-pdf: #C5363A;
  --fmt-html: #1F6FB8;
  --fmt-pptx: #C2580E;
  --fmt-docx: #1F4E8A;
  --fmt-md: #4A4A52;
  --fmt-json: #6B3FA0;
  --fmt-csv: #2E8B57;
  --fmt-png: #7C5BCC;

  /* Spacing + type */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow-card: 0 1px 2px rgba(29, 29, 32, 0.04), 0 4px 16px rgba(29, 29, 32, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout shell ─────────────────────────── */

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr;
}

:root { --topbar-h: 63px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
  position: sticky; top: 0; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.brand img { height: 26px; display: block; }

.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav a:hover { background: var(--paper-line); color: var(--ink); }
.nav a.active {
  background: var(--teal);
  color: #fff;
}
.nav a.active:hover { background: var(--teal-hover); color: #fff; }

main { padding: 56px 24px 80px; max-width: 1440px; width: 100%; margin: 0 auto; }

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 12px;
  text-align: center;
}
.hero h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-align: center;
  color: var(--ink);
}
.hero p {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 24px;
  text-align: center;
}
.hero hr {
  width: 56px;
  border: none;
  border-top: 2px solid var(--teal);
  margin: 0 auto 56px;
}

.section-label {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--ink-mute);
  margin-bottom: 16px;
}

/* ── Department cards (homepage) ───────────── */

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}

.dept-card {
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, border-color 160ms;
  text-decoration: none;
  color: var(--ink);
}
.dept-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--powder);
}
.dept-card .icon-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--powder);
  display: grid; place-items: center;
  color: var(--teal);
}
.dept-card h3 { margin: 0; font-size: 18px; font-weight: 600; }
.dept-card p { margin: 0; font-size: 14px; color: var(--ink-soft); flex: 1; }
.dept-card .count {
  font-size: 12px;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--paper-line);
}
.dept-card .count strong { color: var(--ink); font-weight: 600; }

/* ── Tool cards (dept pages) ──────────────── */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  color: var(--ink-mute);
  background: var(--paper-card);
  border: 1px dashed var(--paper-line);
  border-radius: var(--r-lg);
}
.empty-state svg { color: var(--powder); }
.empty-state h3 { margin: 16px 0 6px; color: var(--ink-soft); font-weight: 600; font-size: 16px; }
.empty-state p { margin: 0; font-size: 14px; }

/*
 * Cards are a 3-column grid (icon · content · actions) so they read as wide
 * rows rather than tall tiles. `.head` uses display: contents to flatten its
 * icon + pill into the parent grid without having to restructure the DOM.
 */
.tool-card {
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  column-gap: 16px;
  row-gap: 8px;
  align-items: start;
  position: relative;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}
.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.tool-card.is-active {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(54, 117, 136, 0.18);
}

.tool-card .head { display: contents; }
.tool-card .icon-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--teal);
  font-size: 18px;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: 2px;
}
.tool-card h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}
.tool-card .pill {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
}
.tool-card .desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  grid-column: 2 / 4;
  grid-row: 2;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(46, 139, 87, 0.12);
  color: var(--status-live);
  flex-shrink: 0;
  white-space: nowrap;
}
.pill::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.pill.wip {
  background: rgba(196, 144, 0, 0.12);
  color: var(--status-wip);
}

.tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
/* In tool cards, tags sit in row 3 col 2 alongside the action button on the right. */
.tool-card .tags {
  margin-top: 0;
  grid-column: 2;
  grid-row: 3;
  align-self: center;
}
.tag {
  font-size: 11px;
  padding: 3px 9px;
  background: var(--powder);
  color: var(--teal-hover);
  border-radius: 4px;
  font-weight: 500;
}

.btn-output {
  margin-top: 8px;
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 120ms;
  width: 100%;
}
.btn-output:hover { background: var(--teal-hover); }
.btn-output svg { width: 14px; height: 14px; }

/* In the wide card layout the button sits in row 3 col 3 — compact, not full-width. */
.tool-card .btn-output {
  margin: 0;
  width: auto;
  white-space: nowrap;
  grid-column: 3;
  grid-row: 3;
  align-self: end;
  justify-self: end;
  padding: 8px 14px;
}

/* Below ~720px viewport the card collapses back to a stacked layout. */
@media (max-width: 720px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card {
    grid-template-columns: 40px 1fr;
    row-gap: 10px;
  }
  .tool-card .icon-circle { grid-row: 1; }
  .tool-card .pill { grid-column: 2; justify-self: end; }
  .tool-card h4 { grid-column: 1 / 3; grid-row: 2; }
  .tool-card .desc { grid-column: 1 / 3; grid-row: 3; }
  .tool-card .tags { grid-column: 1 / 3; grid-row: 4; }
  .tool-card .btn-output {
    grid-column: 1 / 3;
    grid-row: 5;
    width: 100%;
    justify-self: stretch;
  }
}

/* Views — unified tab container that wraps embed and/or gallery views */
.views {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 16px;
  border: 1px solid var(--paper-line);
}
.views-body { display: contents; }
.view-embed { display: flex; flex-direction: column; gap: 14px; }

/* On the full-page output viewer, give the embed frame as much height as the viewport allows */
.views-full .view-embed.embed-full .embed-frame-wrap {
  aspect-ratio: auto;
  height: calc(100vh - 320px);
  min-height: 540px;
  max-height: none;
}
.views-full .view-embed.embed-full .embed-frame-wrap.is-pending {
  height: auto;
  min-height: 0;
}

/* Download button — same shape as Open in new tab, accent-tinted */
.embed-download {
  background: var(--paper-card);
  color: var(--ink-soft);
}
.embed-download:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Live embed (iframe) */
.embed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 16px;
  border: 1px solid var(--paper-line);
}
.embed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.embed-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.embed-tab {
  padding: 7px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  background: var(--paper-card);
  color: var(--ink-soft);
  border: 1px solid var(--paper-line);
  cursor: pointer;
  transition: all 120ms;
}
.embed-tab:hover { border-color: var(--powder); color: var(--ink); }
.embed-tab.is-active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.embed-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.embed-open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--paper-card);
  color: var(--teal);
  border: 1px solid var(--paper-line);
  text-decoration: none;
  font-weight: 500;
  transition: all 120ms;
}
.embed-open:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.embed-open svg { width: 12px; height: 12px; }

.embed-frame-wrap {
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-sm);
  overflow: hidden;
  /* Default ratio 16:9, overridable per-embed */
  aspect-ratio: 16 / 9;
  min-height: 420px;
  max-height: 78vh;
}
.embed-frame-wrap.is-pending {
  aspect-ratio: auto;
  min-height: 0;
  border-style: dashed;
  background: transparent;
}
.embed-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--paper);
}
.embed-frame-wrap.is-pdfjs {
  background: var(--paper);
  overflow: auto;
}
.view-pdfjs {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pdf-status {
  padding: 32px 24px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 13px;
}
.pdf-status strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 14px;
}
.pdf-fallback-actions {
  display: inline-flex;
  gap: 10px;
  margin-top: 14px;
}
.pdf-pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
}
.pdf-page {
  max-width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 1px 3px rgba(29, 29, 32, 0.08), 0 4px 12px rgba(29, 29, 32, 0.06);
  border-radius: 4px;
}
.embed-caption {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}
.embed-pending {
  background: var(--paper-card);
  border-radius: var(--r-sm);
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 13px;
  border: 1px dashed var(--paper-line);
}
.embed-pending strong { color: var(--ink-soft); display: block; margin-bottom: 6px; font-size: 14px; }
.embed-pending code {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  background: var(--paper);
  border-radius: 4px;
  font-size: 11px;
  color: var(--teal);
}

/* Multi-screenshot gallery */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 16px;
  border: 1px solid var(--paper-line);
}
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.gallery-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.gallery-counter {
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gallery-main {
  background: var(--paper-card);
  border-radius: var(--r-sm);
  border: 1px solid var(--paper-line);
  overflow: hidden;
  position: relative;
}
.gallery-main img {
  width: 100%;
  display: block;
  cursor: zoom-in;
  transition: transform 200ms ease-out;
}
.gallery-main img:hover { transform: scale(1.01); }
.gallery-caption {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
  min-height: 2.4em;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.gallery-thumbs::-webkit-scrollbar { height: 6px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--paper-line); border-radius: 3px; }
.gallery-thumb {
  flex: 0 0 110px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--paper-card);
  padding: 0;
  display: block;
  transition: border-color 120ms;
}
.gallery-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery-thumb.is-active { border-color: var(--teal); }
.gallery-thumb:hover:not(.is-active) { border-color: var(--powder); }

/* Lightbox for full-size view */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 17, 19, 0.92);
  display: none;
  z-index: 50;
  padding: 32px;
  align-items: center;
  justify-content: center;
}
.lightbox[data-open="true"] { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.lightbox-close {
  position: fixed;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid; place-items: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

.fmt-row {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.fmt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
  text-transform: uppercase;
}
.fmt.xlsx { background: var(--fmt-xlsx); }
.fmt.csv  { background: var(--fmt-csv); }
.fmt.pdf  { background: var(--fmt-pdf); }
.fmt.html { background: var(--fmt-html); }
.fmt.pptx { background: var(--fmt-pptx); }
.fmt.docx { background: var(--fmt-docx); }
.fmt.md   { background: var(--fmt-md); }
.fmt.json { background: var(--fmt-json); }
.fmt.png  { background: var(--fmt-png); }

.panel-screenshot {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--paper-line);
  display: block;
  background: var(--paper);
}
.panel-screenshot.placeholder {
  height: 240px;
  display: grid; place-items: center;
  color: var(--ink-mute);
  font-size: 13px;
  text-align: center;
  padding: 24px;
}
.panel-screenshot.placeholder svg {
  width: 32px; height: 32px;
  margin-bottom: 12px;
  opacity: 0.4;
}

/* ── Footer ───────────────────────────────── */

.footbar {
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  font-size: 12px;
}
.footbar img { height: 18px; opacity: 0.95; }
.footbar .center { opacity: 0.9; }

/* ── Output viewer page ───────────────────── */

body[data-page="output"] {
  background: var(--paper);
}
.output-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.output-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.output-back {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 120ms;
}
.output-back:hover { background: var(--paper-line); color: var(--ink); }

.output-head {
  padding: 32px 28px 18px;
  border-bottom: 1px solid var(--paper-line);
  background: var(--paper-card);
}
.output-head-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}
.output-head-titles { min-width: 0; }
.output-head .eyebrow { text-align: left; margin-bottom: 8px; }
.output-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.output-head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.output-head .pill { font-size: 12px; padding: 5px 12px; }
.output-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 14px;
  max-width: 760px;
}
.output-head .fmt-row { gap: 6px; }

.output-meta {
  margin: 0;
  font-size: 12px;
  color: var(--ink-mute);
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--r-md);
  padding: 14px 18px;
  min-width: 240px;
}
.output-meta dt { font-weight: 600; color: var(--ink-soft); margin-bottom: 2px; }
.output-meta dd { margin: 0 0 10px; word-break: break-all; }
.output-meta dd:last-child { margin-bottom: 0; }
.output-meta a { word-break: break-all; }

.output-main {
  padding: 24px 28px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}
.output-empty {
  text-align: center;
  color: var(--ink-mute);
  padding: 80px 20px;
}
.output-trailing-caption {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 880px;
  margin: 4px auto 0;
  text-align: center;
}

/* Full-page embed: take available height instead of 16:9 */
.embed-full .embed-frame-wrap {
  aspect-ratio: auto;
  height: calc(100vh - 280px);
  min-height: 540px;
  max-height: none;
}
.embed-full .embed-frame-wrap.is-pending {
  height: auto;
  min-height: 0;
}

@media (max-width: 760px) {
  .output-head-top { grid-template-columns: 1fr; gap: 16px; }
  .output-head { padding: 22px 16px 14px; }
  .output-bar { padding: 12px 16px; }
  .output-main { padding: 16px 16px 32px; }
  .embed-full .embed-frame-wrap { height: calc(100vh - 360px); min-height: 480px; }
}

/* ── Search & filter bar ──────────────────── */

.search-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: var(--topbar-h);
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
  padding: 14px 0;
  margin: 0 0 20px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap svg {
  position: absolute;
  left: 14px;
  color: var(--ink-mute);
  pointer-events: none;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 42px;
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--paper-line);
  border-radius: var(--r-sm);
  background: var(--paper-card);
  color: var(--ink);
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
  appearance: none;
  -webkit-appearance: none;
}

.search-input::placeholder { color: var(--ink-mute); }

.search-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(54, 117, 136, 0.12);
}

/* Browser native [×] clear button */
.search-input::-webkit-search-cancel-button { cursor: pointer; opacity: 0.5; }
.search-input::-webkit-search-cancel-button:hover { opacity: 1; }

.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 5px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--paper-line);
  background: var(--paper-card);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 120ms, background 120ms, color 120ms;
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--powder);
  color: var(--ink);
}

.filter-chip.is-active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* Empty / no-match state inside the grid */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 24px;
  color: var(--ink-mute);
}

.no-results h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
}

.no-results p {
  margin: 0;
  font-size: 14px;
}

/* ── Mobile ───────────────────────────────── */

@media (max-width: 760px) {
  .panel { width: 100%; }
  main { padding: 32px 16px 48px; }
  .topbar { padding: 14px 16px; }
  .nav a { padding: 6px 10px; font-size: 12px; }
  .hero h1 { font-size: 32px; }
  .footbar { padding: 14px 16px; flex-direction: column; gap: 6px; text-align: center; }
  .panel-body { padding: 20px 18px 24px; }
  .gallery-thumb { flex: 0 0 80px; height: 56px; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .filter-chips::-webkit-scrollbar { height: 0; }
}
