/* Palette trials for the barndo directory. Applied by html[data-palette]; "current" = no override.
   A = Modern farmhouse (light, warm), B = Steel & barn red (light, cool), C = Dark, fixed (neutral charcoal). */

html[data-palette="a"] {
  --bg:#f6f3ee; --surface:#ffffff; --text:#2a2622; --muted:#6b635a; --heading:#1b1916;
  --accent:#8a5a2b; --accent-text:#ffffff; --accent2:#a87443; --link:#7a4a1f;
  --action:#8a5a2b; --action-text:#ffffff; --header-bg:#ffffff; --header-text:#1b1916;
  --tint:#ece6dc; --band:#1b1916; --band-text:#efe9e0; --band-soft:#b9b0a4; --band-overlay:rgba(27,25,22,.82);
  --gold:#b98a4e; --gold-light:#e6cf9f; --gold-deep:#9d7640;
  --shadow:0 1px 3px rgba(40,30,20,.10), 0 1px 2px rgba(40,30,20,.06);
}
html[data-palette="b"] {
  --bg:#f2f3f4; --surface:#ffffff; --text:#1f2326; --muted:#5b6268; --heading:#15181a;
  --accent:#a3352a; --accent-text:#ffffff; --accent2:#7d8790; --link:#8f2d23;
  --action:#a3352a; --action-text:#ffffff; --header-bg:#15181a; --header-text:#ffffff;
  --tint:#e4e7e9; --band:#15181a; --band-text:#e9ecee; --band-soft:#aab1b7; --band-overlay:rgba(21,24,26,.84);
  --gold:#c4892e; --gold-light:#e9eef1; --gold-deep:#aeb6bc;
  --shadow:0 1px 3px rgba(20,24,28,.10), 0 1px 2px rgba(20,24,28,.06);
}
html[data-palette="c"] {
  --bg:#121212; --surface:#1e1e1e; --text:#e9e9e7; --muted:#a6a6a2; --heading:#ffffff;
  --accent:#8fae7f; --accent-text:#121212; --accent2:#a9c79a; --link:#a9c79a;
  --action:#8fae7f; --action-text:#121212; --header-bg:#121212; --header-text:#ffffff;
  --tint:#2b2b2b; --band:#1a1a1a; --band-text:#e9e9e7; --band-soft:#a6a6a2; --band-overlay:rgba(18,18,18,.84);
  --gold:#d9b25f; --gold-light:#c8dcbd; --gold-deep:#6f8f60;
}
html[data-palette="c"] .card, html[data-palette="c"] .side-card, html[data-palette="c"] .evidence-box,
html[data-palette="c"] .nearby-cards li, html[data-palette="c"] .quote-box { border: 1px solid #2f2f2f; }

/* Light palettes: undo the rules that assume a dark page. */
html[data-palette="a"], html[data-palette="b"] { color-scheme: light; }
:is(html[data-palette="a"], html[data-palette="b"]) :is(.card .card-cover.empty, .biz-card .biz-cover, .nearby-cards .nb-cover, .photo-grid a, .city-cards .area-img, .card .card-cover) { background: #e6e2dc; }
:is(html[data-palette="a"], html[data-palette="b"]) :is(.card .card-cover.empty, .card .card-cover.empty span, .biz-card .biz-cover .none, .nearby-cards .nb-cover span) { color: #8a837a; }
:is(html[data-palette="a"], html[data-palette="b"]) .featured-band .biz-card .biz-cover .none { color: rgba(255,255,255,.6); }
:is(html[data-palette="a"], html[data-palette="b"]) .estimator fieldset { border-color: rgba(0,0,0,.12); }
:is(html[data-palette="a"], html[data-palette="b"]) :is(.estimator input[type="number"], .estimator select) { border-color: rgba(0,0,0,.22); background: #fff; }
:is(html[data-palette="a"], html[data-palette="b"]) :is(.cost-table th, .cost-table td) { border-bottom-color: rgba(0,0,0,.09); }
:is(html[data-palette="a"], html[data-palette="b"]) :is(form.claim-form input, form.claim-form textarea, form.claim-form select) { border-color: #cfc8bd; background: #fff; }
:is(html[data-palette="a"], html[data-palette="b"]) :is(.biz-card.featured:not(.open-slot) .top, .biz-card.featured:not(.open-slot) .top .rt i) { color: var(--heading); }
:is(html[data-palette="a"], html[data-palette="b"]) .biz-card.featured.open-slot .biz-cover { background: rgba(255,255,255,.04); }
:is(html[data-palette="a"], html[data-palette="b"]) :is(.biz-card.featured .badge, .biz-card.featured.open-slot .badge) { background: var(--heading); color: #fff; }
:is(html[data-palette="a"], html[data-palette="b"]) .sb-fill { background: var(--gold); }
:is(html[data-palette="a"], html[data-palette="b"]) .suggest { box-shadow: 0 12px 32px rgba(0,0,0,.15); }
:is(html[data-palette="a"], html[data-palette="b"]) .card, :is(html[data-palette="a"], html[data-palette="b"]) .side-card,
:is(html[data-palette="a"], html[data-palette="b"]) .evidence-box, :is(html[data-palette="a"], html[data-palette="b"]) .nearby-cards li { border: 1px solid rgba(0,0,0,.07); }
html[data-palette="b"] .site-header a { color: #fff; }

/* Palette switcher (mockup bar) */
.mk-pal { display: inline-flex; gap: .3rem; align-items: center; }
.mk-pal button[aria-pressed="true"] { background: #fff; color: #c0392b; }
