/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Override Pico's default font with Inter */
:root {
  --pico-font-family-sans-serif: "Inter", system-ui, -apple-system, sans-serif;
  --pico-font-size: 16px;
}

/* Source Serif 4 Condensed for tables; block display enables overflow-x */
table {
  font-family: "Source Serif 4", Georgia, serif;
  font-stretch: condensed;
  font-size: 0.875rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.app-header {
  border-bottom: 2px solid var(--pico-muted-border-color);
  margin-bottom: 0;
}

header nav a {
  font-size: 0.875rem;
}

a.secondary {
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

a.secondary:hover {
  opacity: 1;
}

h1 {
  color: var(--pico-color-sand-500)
}

h2, h3 {
  color: var(--pico-color-sand-400)
}

.icon-sm  { font-size: 0.875rem; }
.icon-md  { font-size: 1.25rem; }
.icon-lg  { font-size: 1.5rem; }
.icon-xl  { font-size: 2rem; }

/* Attribute grid for detail views */
dl.attribute-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 0;
}

dl.attribute-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

dl.attribute-grid dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pico-muted-color);
  margin: 0;
}

dl.attribute-grid dd {
  font-size: 0.9375rem;
  margin: 0;
}

/* Action bar below detail views */
.action-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

