:root {
  --art-bg: #fcfbf7;
  --art-surface: #ffffff;
  --art-card: #ffffff;
  --art-border: #e7e4dc;
  --art-border-focus: #c59b27;
  --art-charcoal: #141416;
  --art-gold: #c59b27;
  --art-gold-hover: #b0871d;
  --art-bronze: #8c6d1f;
  --art-text: #262626;
  --art-muted: #6e6d7a;
  --art-radius: 8px;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.art-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.art-header {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--art-border);
  background: #ffffff;
}

.art-breadcrumbs {
  font-size: 0.875rem;
  color: var(--art-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.art-breadcrumbs a {
  color: var(--art-bronze);
  text-decoration: none;
  font-weight: 600;
}

.art-breadcrumbs a:hover {
  text-decoration: underline;
}

.art-title {
  font-family: "Playfair Display", "Baskerville", Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--art-charcoal);
  letter-spacing: -0.02em;
}

.art-subtitle {
  font-size: 1.0625rem;
  color: var(--art-muted);
  margin: 0;
}

.art-main {
  padding: 32px 0 60px;
}

/* Search Card */
.art-search-card {
  background: #ffffff;
  border: 1px solid var(--art-border);
  border-radius: var(--art-radius);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(20, 20, 22, 0.04);
  margin-bottom: 24px;
}

.art-input-wrap {
  display: flex;
  align-items: center;
  position: relative;
  gap: 10px;
}

.art-search-icon {
  position: absolute;
  left: 14px;
  color: var(--art-muted);
  pointer-events: none;
}

.art-input {
  flex: 1;
  background: #ffffff;
  border: 1.5px solid var(--art-border);
  color: var(--art-charcoal);
  padding: 14px 14px 14px 44px;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.art-input:focus {
  outline: none;
  border-color: var(--art-border-focus);
}

.art-btn-search {
  background: var(--art-charcoal);
  color: #ffffff;
  border: none;
  padding: 14px 22px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.art-btn-search:hover {
  background: #2b2b30;
}

.art-filters-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.art-filter-lbl {
  font-size: 0.8125rem;
  color: var(--art-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.art-movement-btn {
  background: #f4f3ed;
  color: var(--art-muted);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.art-movement-btn.active {
  background: var(--art-gold);
  color: #ffffff;
  font-weight: 700;
}

.art-presets {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.art-preset-lbl {
  font-size: 0.75rem;
  color: var(--art-muted);
  font-weight: 600;
}

.art-chip {
  background: #ffffff;
  color: var(--art-muted);
  border: 1px solid var(--art-border);
  border-radius: 14px;
  padding: 3px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.art-chip:hover {
  border-color: var(--art-gold);
  color: var(--art-charcoal);
}

/* Status Bar */
.art-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: var(--art-muted);
  font-weight: 600;
}

/* Gallery Masonry / Grid */
.art-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.art-item-card {
  background: #ffffff;
  border: 1px solid var(--art-border);
  border-radius: var(--art-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(20, 20, 22, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.art-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(20, 20, 22, 0.08);
}

.art-thumb-wrap {
  width: 100%;
  height: 240px;
  background: #141416;
  position: relative;
  overflow: hidden;
}

.art-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.art-oa-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 20, 22, 0.85);
  color: var(--art-gold);
  border: 1px solid var(--art-gold);
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.art-item-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.art-item-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1875rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--art-charcoal);
  line-height: 1.35;
}

.art-item-artist {
  font-size: 0.875rem;
  color: var(--art-bronze);
  font-weight: 600;
  margin-bottom: 8px;
}

.art-item-meta {
  font-size: 0.75rem;
  color: var(--art-muted);
  margin-bottom: 12px;
}

.art-item-desc {
  font-size: 0.8125rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

/* Modal */
.art-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 20, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.art-modal-overlay[hidden] {
  display: none;
}

.art-modal-content {
  background: #ffffff;
  border-radius: 10px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}

.art-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(20, 20, 22, 0.7);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.art-modal-media {
  background: #0d0d0f;
  text-align: center;
  max-height: 480px;
  overflow: hidden;
}

.art-modal-img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.art-modal-details {
  padding: 28px;
}

.art-modal-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.625rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--art-charcoal);
}

.art-modal-artist {
  font-size: 1rem;
  color: var(--art-bronze);
  font-weight: 600;
  margin: 0 0 18px;
}

.art-modal-metadata {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  background: #fbfbf9;
  border: 1px solid var(--art-border);
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.875rem;
}

.art-modal-metadata p {
  margin: 0;
}

.art-modal-description {
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.6;
}

/* Ad slots */
.art-ad-container {
  width: 100%;
  margin: 36px 0;
  display: flex;
  justify-content: center;
}

.art-ad-box {
  width: 100%;
  max-width: 728px;
  min-height: 280px;
  background: #ffffff;
  border: 1px dashed var(--art-border);
  border-radius: var(--art-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content */
.art-content-section {
  margin-top: 48px;
}

.art-content-section h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  color: var(--art-charcoal);
  margin-bottom: 16px;
}

.art-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.art-feature-card {
  background: #ffffff;
  border: 1px solid var(--art-border);
  border-radius: var(--art-radius);
  padding: 20px;
}

.art-feature-card h3 {
  font-size: 1.125rem;
  margin: 0 0 8px;
  color: var(--art-charcoal);
}

.art-feature-card p {
  font-size: 0.875rem;
  color: var(--art-muted);
  margin: 0;
}

.art-footer {
  background: #ffffff;
  border-top: 1px solid var(--art-border);
  padding: 28px 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--art-muted);
}

.art-footer a {
  color: var(--art-bronze);
  text-decoration: none;
  font-weight: 600;
}

.art-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.art-consent-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.art-consent-text {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin: 0;
}

.art-consent-actions {
  display: flex;
  gap: 8px;
}

.art-btn-consent-yes {
  background: var(--art-gold);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.art-btn-consent-no {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #475569;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.art-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: art-spin 0.6s linear infinite;
}

.art-spinner-lg {
  width: 20px;
  height: 20px;
  border-width: 2.5px;
  display: block;
  margin: 0 auto 12px;
}

@keyframes art-spin {
  to { transform: rotate(360deg); }
}

.art-loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--art-muted);
  font-weight: 700;
}

#artSearchBtn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.art-item-card {
  animation: art-fade-in 0.25s ease-out;
}

@keyframes art-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
/* tf:dark-palette — generated by migrate_chrome.py */
/* Neutrals inherit the shared chrome tokens so all tools share one
   ground; brand hues are kept and lightened, never inverted. */
[data-theme="dark"] {
  --art-bg: var(--tf-surface);
  --art-surface: var(--tf-surface);
  --art-card: var(--tf-surface);
  --art-border: var(--tf-surface);
  --art-border-focus: #dac281;
  --art-charcoal: var(--tf-ink);
  --art-gold: #dac281;
  --art-gold-hover: #dac181;
  --art-bronze: #d5b86f;
  --art-text: var(--tf-ink);
  --art-muted: var(--tf-ink-faint);
}
