/**
 * QUIET - the notes are the art.
 *
 * File: assets/css/quiet.css  (loaded after custom-style.css)
 * One neutral background, near-black text, no accent colour, one typeface.
 * No boxes, frames, glows, gradients or tilt. Captions and controls sit
 * below the viewer as plain text; the collection is images + small captions.
 */

[data-theme="quiet"] {
  color-scheme: light;
  --font-sans: "Instrument Sans Variable", "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --bg: #f4f3ef;
  --page-bg: #f4f3ef;
  --text: #1c1c1a;
  --text-soft: #3a3a37;
  --muted: #8b8a85;
  --line: rgba(28, 28, 26, 0.1);
  --line-strong: rgba(28, 28, 26, 0.22);
  --panel: #f4f3ef;
  --panel-strong: #fbfaf8;
  --gold: #1c1c1a;
  --gold-2: #1c1c1a;
  --gold-dim: rgba(28, 28, 26, 0.22);
  --on-accent: #f4f3ef;
  --nav-bg: #f4f3ef;
  --nav-bg-scrolled: #f4f3ef;
  --stage-bg: transparent;
  --glass: transparent;
  --btn-hover-bg: transparent;
  --toolbar-bg: transparent;
  --accent-shadow: transparent;
  --accent-ring: transparent;
  --field-bg: transparent;
  --field-bg-focus: transparent;
  --card-bg: transparent;
  --card-shadow: transparent;
  --card-image-bg: transparent;
  --img-shadow: rgba(28, 28, 26, 0.14);
  --footer-bg: transparent;
  --loading-bg: #f4f3ef;
  --option-bg: #fbfaf8;
  --shadow: none;
  --shadow-lg: none;
  --radius-lg: 0;
  --radius: 0;
  --nav-h: 60px;
}

/* ---------- Strip all ornament ---------- */
[data-theme="quiet"] * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

[data-theme="quiet"] :is(.ambient, .stage-glow, .stage-floor, .card-glare, .card-overlay, .stage-hint, .eyebrow) {
  display: none !important;
}

[data-theme="quiet"] body {
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0.002em;
}

[data-theme="quiet"] ::selection {
  background: #1c1c1a;
  color: #f4f3ef;
}

[data-theme="quiet"] a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
[data-theme="quiet"] a:hover { text-decoration-color: var(--text); }
[data-theme="quiet"] :focus-visible { outline: 1px solid #1c1c1a; outline-offset: 4px; }

/* ---------- Nav: one line of small text ---------- */
[data-theme="quiet"] .site-nav { border-bottom: 1px solid transparent; }
[data-theme="quiet"] .site-nav.scrolled { border-bottom-color: var(--line); }
[data-theme="quiet"] .brand { text-decoration: none; }
[data-theme="quiet"] .brand-mark,
[data-theme="quiet"] .brand-sub { display: none; }
[data-theme="quiet"] .brand-title { font-family: var(--font-sans); font-size: 15px; font-weight: 500; letter-spacing: 0; }
[data-theme="quiet"] .nav-links { gap: 22px; }
[data-theme="quiet"] .nav-link-pill { padding: 0; border-radius: 0; font-size: 14px; font-weight: 400; color: var(--muted); text-decoration: none; }
[data-theme="quiet"] .nav-link-pill:hover { background: none; color: var(--text); }
[data-theme="quiet"] .nav-icon { width: auto; height: auto; border: 0; border-radius: 0; color: var(--muted); text-decoration: none; }
[data-theme="quiet"] .nav-icon:hover { background: none; color: var(--text); }

/* ---------- Viewer: no frame; caption + controls below ---------- */
[data-theme="quiet"] .stage-section { padding: 8px 0 120px; }

[data-theme="quiet"] .stage {
  height: clamp(380px, 70vh, 680px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

[data-theme="quiet"] .stage-nav {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: 1.4rem;
}

[data-theme="quiet"] .stage-nav:hover { background: none; color: var(--text); transform: none; }
[data-theme="quiet"] .stage-prev { left: 0; }
[data-theme="quiet"] .stage-next { right: 0; }

/* Caption, left, under the note */
[data-theme="quiet"] .placard {
  top: calc(100% + 18px);
  bottom: auto;
  left: 0;
  max-width: 60%;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

[data-theme="quiet"] .placard::before { display: none; }
[data-theme="quiet"] .placard-title { order: 1; margin: 0; font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--text); }
[data-theme="quiet"] .placard-meta { order: 2; font-size: 14px; color: var(--muted); }
[data-theme="quiet"] .placard-meta .dot { margin: 0 3px; }
[data-theme="quiet"] .placard-kicker { order: 3; margin-top: 2px; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }

/* Controls, right, under the note: plain text buttons */
[data-theme="quiet"] .viewer-controls {
  top: calc(100% + 14px);
  bottom: auto;
  right: 0;
  padding: 0;
  gap: 18px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

[data-theme="quiet"] .btn-control {
  height: auto;
  padding: 4px 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

[data-theme="quiet"] .btn-control { gap: 6px; }
[data-theme="quiet"] .btn-control .icon { display: inline-block; font-size: 15px; line-height: 1; }
[data-theme="quiet"] .btn-control span { display: inline; }
[data-theme="quiet"] .btn-control:hover { background: none; color: var(--text); }
[data-theme="quiet"] .btn-control:active { transform: none; }
[data-theme="quiet"] .btn-control[aria-pressed="true"] { background: none; color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

[data-theme="quiet"] .viewer-loading { background: var(--bg); }
[data-theme="quiet"] .loader-ring { border-color: var(--line); border-top-color: var(--text); }

/* Fullscreen: bring caption/controls back inside */
[data-theme="quiet"] .stage:fullscreen { background: var(--bg); }
[data-theme="quiet"] .stage:fullscreen .placard { top: auto; bottom: 28px; left: 32px; }
[data-theme="quiet"] .stage:fullscreen .viewer-controls { top: auto; bottom: 28px; right: 32px; }

/* ---------- Collection ---------- */
[data-theme="quiet"] .gallery-section { padding: 0 0 96px; }

[data-theme="quiet"] .section-head {
  align-items: baseline;
  margin-bottom: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

[data-theme="quiet"] .section-title { font-family: var(--font-sans); font-size: 15px; font-weight: 500; letter-spacing: 0; }
[data-theme="quiet"] .results-pill { padding: 0; border: 0; border-radius: 0; background: none; font-size: 14px; color: var(--muted); }
[data-theme="quiet"] .results-pill strong { font-family: var(--font-sans); font-size: 14px; font-weight: 400; color: var(--muted); }

[data-theme="quiet"] .toolbar {
  position: static;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding: 0 0 40px;
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

[data-theme="quiet"] .filter-chips { gap: 2px; padding: 0; -webkit-mask-image: none; mask-image: none; flex: 1 1 auto; }

[data-theme="quiet"] .chip {
  padding: 2px 9px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

[data-theme="quiet"] .chip:first-child { padding-left: 0; }
[data-theme="quiet"] .chip:not([data-filter="*"])::before { display: none; }
[data-theme="quiet"] .chip:hover { color: var(--text); transform: none; border: 0; }
[data-theme="quiet"] .chip.active { background: none; color: var(--text); font-weight: 500; box-shadow: none; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

[data-theme="quiet"] .toolbar-row { gap: 24px; flex: 0 0 auto; }

[data-theme="quiet"] .search-field,
[data-theme="quiet"] .select-field {
  height: 32px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: none;
}

[data-theme="quiet"] .search-field { width: 220px; flex: 0 0 auto; }
[data-theme="quiet"] .select-field { flex: 0 0 auto; border-bottom-color: transparent; }
[data-theme="quiet"] .search-field .icon,
[data-theme="quiet"] .select-field .icon { display: none; }
[data-theme="quiet"] .search-field input,
[data-theme="quiet"] .select-field select { padding: 0; font-size: 14px; color: var(--text); }
[data-theme="quiet"] .select-field select { padding-right: 20px; background-position: right 0 center; color: var(--muted); }
[data-theme="quiet"] .search-field:focus-within,
[data-theme="quiet"] .select-field:focus-within { box-shadow: none; border-bottom-color: var(--text); background: none; }

/* Grid: images and captions only, lots of air */
[data-theme="quiet"] .gallery-grid { margin: 0 -18px; }
[data-theme="quiet"] .banknote-card { width: 25%; padding: 0 18px 44px; perspective: none; }

[data-theme="quiet"] .card-inner {
  transform: none !important;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none !important;
  overflow: visible;
  transition: none;
}

[data-theme="quiet"] .card-image { aspect-ratio: 16 / 9; padding: 0; background: none; }

[data-theme="quiet"] .card-image img {
  transform: none !important;
  filter: drop-shadow(0 6px 10px rgba(28, 28, 26, 0.12));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease !important;
}

[data-theme="quiet"] .banknote-card:hover .card-image img {
  transform: translateY(-4px) !important;
  filter: drop-shadow(0 12px 16px rgba(28, 28, 26, 0.16));
}

[data-theme="quiet"] .card-info { justify-content: flex-start; gap: 8px; padding: 12px 0 0; border: 0; }
[data-theme="quiet"] .card-denomination { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--text); }
[data-theme="quiet"] .card-denomination .tk { font-family: var(--font-sans); font-size: 1em; opacity: 1; font-weight: 500; }
[data-theme="quiet"] .card-year { font-size: 14px; color: var(--muted); }
[data-theme="quiet"] .banknote-card.is-current .card-info { box-shadow: inset 0 1px 0 #1c1c1a; }
[data-theme="quiet"] .empty-filter .icon { color: var(--muted); }

/* ---------- About: one short paragraph ---------- */
[data-theme="quiet"] .hero { padding: 28px 0 96px; text-align: left; border-top: 1px solid var(--line); background: none; }
[data-theme="quiet"] .hero-title {
  max-width: 640px;
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
}

[data-theme="quiet"] .hero-title br { display: none; }
[data-theme="quiet"] .hero-title em { font-style: normal; background: none; -webkit-text-fill-color: currentColor; color: inherit; }
[data-theme="quiet"] .hero-lede { max-width: 560px; margin: 0 0 28px; font-size: 15px; color: var(--text-soft); }
[data-theme="quiet"] .hero-stats { display: flex; gap: 40px; padding: 0; border: 0; border-radius: 0; background: none; }
[data-theme="quiet"] .stat { align-items: flex-start; padding: 0; }
[data-theme="quiet"] .stat + .stat { border-left: 0; }
[data-theme="quiet"] .stat-num { font-family: var(--font-sans); font-size: 28px; font-weight: 400; color: var(--text); letter-spacing: -0.01em; }
[data-theme="quiet"] .stat-label { font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--muted); }

/* ---------- Footer ---------- */
[data-theme="quiet"] .footer { padding: 28px 0; border-top: 1px solid var(--line); background: none; font-size: 13px; color: var(--muted); }
[data-theme="quiet"] .footer-brand { font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--text); }
[data-theme="quiet"] .footer-heading { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text); }
[data-theme="quiet"] .footer-bottom { border-top: 0; margin-top: 20px; padding-top: 0; font-size: 13px; }

/* ---------- Phone ---------- */
@media (max-width: 991px) {
  [data-theme="quiet"] .banknote-card { width: 33.333%; }
  [data-theme="quiet"] .nav-link-pill { display: inline; }
}

@media (max-width: 767px) {
  [data-theme="quiet"] .stage-section { padding: 0 0 150px; }
  [data-theme="quiet"] .stage { height: 250px; border-radius: 0; }
  [data-theme="quiet"] .stage-nav { margin-top: -20px; width: 32px; }
  [data-theme="quiet"] .placard { top: calc(100% + 12px); left: 0; right: 0; max-width: none; padding: 0; }
  [data-theme="quiet"] .viewer-controls { top: calc(100% + 84px); left: 0; right: auto; bottom: auto; transform: none; }
  [data-theme="quiet"] .nav-links { gap: 16px; }
  [data-theme="quiet"] .nav-link-pill:nth-child(1) { display: none; }
  [data-theme="quiet"] .toolbar { padding-bottom: 28px; }
  [data-theme="quiet"] .toolbar-row { flex-direction: row; width: 100%; justify-content: space-between; }
  [data-theme="quiet"] .search-field { width: auto; flex: 1 1 auto; }
  [data-theme="quiet"] .filter-chips { flex-wrap: wrap; gap: 4px 0; }
  [data-theme="quiet"] .gallery-grid { margin: 0 -10px; }
  [data-theme="quiet"] .banknote-card { width: 50%; padding: 0 10px 32px; }
  [data-theme="quiet"] .hero-stats { gap: 28px; }
  [data-theme="quiet"] .stat-num { font-size: 22px; }
}

/* Back to top (end of footer) */
[data-theme="quiet"] .back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text);
    text-decoration: none;
}
[data-theme="quiet"] .back-to-top:hover { text-decoration: underline; text-underline-offset: 3px; }
[data-theme="quiet"] .back-to-top .icon { font-size: 12px; }

/* Caption on one line: title · side · No. x of y, baseline-aligned with the controls */
[data-theme="quiet"] .placard {
    top: calc(100% + 16px);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 8px;
    row-gap: 2px;
    max-width: calc(100% - 360px);
    font-size: 15px;
    line-height: 1.5;
}
[data-theme="quiet"] .placard-title { font-size: 15px; }
[data-theme="quiet"] .placard-meta { font-size: 15px; color: var(--muted); }
[data-theme="quiet"] .placard .dot { color: var(--muted); }
[data-theme="quiet"] .viewer-controls { top: calc(100% + 13px); }

@media (max-width: 767px) {
    [data-theme="quiet"] .placard { top: calc(100% + 12px); max-width: none; font-size: 14px; }
    [data-theme="quiet"] .placard-title,
    [data-theme="quiet"] .placard-meta { font-size: 14px; }
    [data-theme="quiet"] .viewer-controls { top: calc(100% + 44px); }
    [data-theme="quiet"] .stage-section { padding-bottom: 110px; }
}
[data-theme="quiet"] .placard > * { order: 0; margin: 0; }
/* ৳ sign in the caption: same face and colour as the value */
[data-theme="quiet"] .placard-title .tk { font-family: var(--font-sans); font-size: 1em; font-weight: 500; opacity: 1; margin-right: 1px; }

/* ---------- Footer: three aligned lines ---------- */
[data-theme="quiet"] .footer { padding: 32px 0 36px; font-size: 13px; line-height: 1.6; }

[data-theme="quiet"] .footer-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px 24px;
    flex-wrap: wrap;
}

[data-theme="quiet"] .footer-brand { font-size: 13px; font-weight: 500; color: var(--text); margin: 0; }

[data-theme="quiet"] .footer-credits {
    max-width: 720px;
    margin: 10px 0 18px;
    color: var(--muted);
}

[data-theme="quiet"] .footer-meta { color: var(--muted); }

/* Links: same colour as surrounding text, underline only on hover */
[data-theme="quiet"] .footer a { color: var(--text-soft); text-decoration: none; }
[data-theme="quiet"] .footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="quiet"] .footer .back-to-top { color: var(--text); }

@media (max-width: 767px) {
    [data-theme="quiet"] .footer-row { flex-direction: column; gap: 6px; }
}
