/*
 * 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.
 */

/* Issue flags */
.issue-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  line-height: 1rem;
  font-weight: 600;
}

.issue-flag--blocked {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.issue-flag--blocked svg {
  width: 1rem;
  height: 1rem;
}

/* Global fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500&display=swap');

/* Base typography */
html, body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  line-height: 1.2;
}

/* Heading weights */
h1, .heading-xl { font-weight: 700; }
h2, .heading-lg { font-weight: 700; }
h3, .heading-md { font-weight: 600; }
h4, .heading-sm { font-weight: 600; }

/* Subheading helper */
.subheading {
  font-family: 'Playfair Display', ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-weight: 500;
}

/* Utility classes similar to Tailwind theme extension */
.font-heading { font-family: 'Playfair Display', ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; }
.font-body { font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif; }

/* Optional: slightly stronger default weight for emphasized body text */
.body-500 { font-weight: 500; }

/* Collapse indicators for details/summary */
details summary .when-open { display: none; }
details summary .when-closed { display: inline; }
details[open] summary .when-open { display: inline; }
details[open] summary .when-closed { display: none; }
