/* yaeos documentation styling */
body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

code, pre {
  font-family: "Fira Code", "Consolas", monospace;
}

pre {
  border-radius: 6px;
}

table th, table td {
  padding: 0.4rem 0.6rem;
}

.alert {
  border-left: 4px solid #0969da;
  background: #f0f6ff;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 6px;
}

.alert-warning {
  border-left-color: #bf8700;
  background: #fff8c5;
}

.alert-danger {
  border-left-color: #cf222e;
  background: #ffebe9;
}

.alert-success {
  border-left-color: #1a7f37;
  background: #dafbe1;
}

.alert-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1rem 0;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.quick-links a {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: #0969da;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.quick-links a:hover {
  background: #0550ae;
}

/* ------------------------------------------------------------------------
   Front page (ford.md)
   ------------------------------------------------------------------------ */
:root {
  --yaeos-accent: #5b3f8c;        /* Fortran purple, matches the badges */
  --yaeos-accent-soft: #f3effa;
  --yaeos-border: #d8dee4;
  --yaeos-muted: #57606a;
}

#jumbotron {
  background: linear-gradient(135deg, #ffffff 0%, var(--yaeos-accent-soft) 100%) !important;
}

/* FORD appends "Find us on... GitHub" after the summary; the hero has its own
   GitHub button, so hide the duplicate. */
#jumbotron > p {
  display: none;
}

@media (max-width: 576px) {
  #jumbotron {
    padding: 1.25rem !important;
  }
}

.yaeos-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.yaeos-hero-logo {
  width: 180px;
  max-width: 40%;
  margin: 0;
  border-radius: 0;
}

.yaeos-hero > div {
  flex: 1 1 320px;
}

.yaeos-hero-tagline {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.yaeos-hero-sub {
  color: var(--yaeos-muted);
  font-size: 1.05rem;
}

.yaeos-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.yaeos-hero-actions .btn-primary {
  background: var(--yaeos-accent);
  border-color: var(--yaeos-accent);
}

.yaeos-hero-actions .btn-outline-primary {
  color: var(--yaeos-accent);
  border-color: var(--yaeos-accent);
}

.yaeos-hero-actions .btn-outline-primary:hover {
  background: var(--yaeos-accent);
  color: #ffffff;
}

/* The page body repeats the project name as an h1; the hero already shows it. */
#text > .col-md-8 > h1:first-child {
  display: none;
}

.yaeos-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 0.5rem 0 2rem;
}

.yaeos-feature {
  border-top: 3px solid var(--yaeos-accent);
  padding-top: 0.75rem;
}

.yaeos-feature h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.yaeos-feature p {
  color: var(--yaeos-muted);
  margin: 0;
}

.yaeos-tabs {
  margin-top: 1rem;
}

.yaeos-tabs .nav-link {
  color: var(--yaeos-muted);
  font-weight: 600;
}

.yaeos-tabs .nav-link.active {
  color: var(--yaeos-accent);
}

.yaeos-tab-content pre {
  border-top-left-radius: 0;
  margin-top: 0;
}

.yaeos-tab-content pre,
.yaeos-install pre {
  overflow-x: auto;
}

.yaeos-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 2rem;
}

.yaeos-card {
  display: block;
  border: 1px solid var(--yaeos-border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.yaeos-card:hover {
  border-color: var(--yaeos-accent);
  box-shadow: 0 2px 8px rgba(91, 63, 140, 0.15);
  color: inherit;
}

.yaeos-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--yaeos-accent);
  margin-bottom: 0.3rem;
}

.yaeos-card p {
  font-size: 0.9rem;
  color: var(--yaeos-muted);
  margin: 0;
}
