:root {
  --blue: #1f4fd8;
  --blue-dark: #153a9e;
  --blue-light: #e6ecff;

  --grey: #444;
  --grey-dark: #333;
  --grey-light: #f5f5f5;

  --white: #ffffff;
  --light-grey: #e0e0e0;

--released-bg: #e7f7ef;
--released-border: #2f8f5b;
--released-text: #1e6b43;

--inwork-bg: #f6f1e7;
--inwork-border: #b8892a;
--inwork-text: #6b5a2a;

}

/* Global */
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: white;
  color: var(--grey);
  line-height: 1.6;
  font-size: 18px;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Header */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--light-grey);
  border-top: 4px solid var(--blue); /* <-- subtle blue at top */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .logo img {
  height: 44px;   /* keeps header logo sane */
  width: auto;
  display: block;
}

/* Nav */
.nav a {
  margin-left: 1.25rem;
  font-weight: 600;
  font-size: 14px;
  color: var(--grey-dark);
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--blue-light);
  color: var(--blue-dark);
}

.hero-logo {
  height: 170px;
  width: auto;
  background: white;         /* circular/oval white behind logo */
  padding: 18px 28px;        /* tune padding here */
  border-radius: 999px;
  display: inline-block;
}

.hero h1 {
  font-size: 3rem;
  margin: 1rem 0 0.5rem 0;
}

.tagline {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-buttons a { margin: 0 0.5rem; }

/* Buttons */
.btn-primary {
  background-color: var(--blue);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
}
.btn-primary:hover { background-color: var(--blue-dark); }

.btn-secondary {
  background-color: var(--white);
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
}
.btn-secondary:hover { background-color: var(--blue-light); }

.btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Mission */
.mission {
  background: var(--grey-light);
  padding: 3rem 1rem;
  text-align: center;
}

.pillars {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 3rem;
  flex-wrap: wrap;
}

.pillar {
  flex: 1;
  max-width: 220px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue-dark);
}
.pillar span {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--grey-dark);
}

/* Manuals Grid */
.manuals {
  padding: 3rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

section h2 {
  border-bottom: 2px solid var(--blue);
  display: inline-block;
  padding-bottom: 6px;
}

.manuals-note { max-width: 760px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  border: 1px solid var(--light-grey);
  border-radius: 8px;
  padding: 1rem;
  background: white;
}

.card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card h3 {
  margin-top: 0;
  font-weight: 700;
  color: var(--blue-dark);
}

.card p { margin-bottom: 0; }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

/* Badges */
.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--light-grey);
  color: var(--grey-dark);
  background: white;
}

.badge-released {
  background: var(--released-bg);
  color: var(--released-text);
  border: 1px solid rgba(47, 143, 91, 0.35);
}

.badge-inwork {
  background: var(--inwork-bg);
  color: var(--inwork-text);
  border: 1px solid rgba(184, 137, 42, 0.35);
}

/* Card types */
.card.inwork {
  background: #fbfbfb;
  opacity: 0.62;
  border: 1px dashed #cfcfcf;
}

.card.released {
  border-left: 4px solid var(--released-border);
}

.card-meta { margin-top: 0.75rem; }
.card-link { font-weight: 600; }

.sha {
  margin-top: 0.4rem;
  font-size: 13px;
  color: var(--grey-dark);
}
.sha-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    display: block;
    word-break: break-all;
    overflow-wrap: anywhere;
}

/* Resources / About / Contact / Disclaimer / License */
.resources, .about, .contact, .disclaimer, .license {
  padding: 3rem 1rem;
  max-width: 700px;
  margin: 0 auto;
}
.resources, .contact, .license { background: var(--grey-light); }

.resources ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.disclaimer h3, .license h3 { margin-top: 1.5rem; }

/* Footer */
.footer {
  background: var(--blue-dark);
  color: white;
  text-align: center;
  padding: 1rem 1rem;
  font-size: 14px;
}
.footer-links a { color: white; margin: 0 0.5rem; }
.footer-links span { color: white; }

/* Small screens */
@media (max-width: 720px) {
  .header {
    padding: 0.5rem 1rem;
    gap: 0.75rem;
  }
  .nav a {
    margin-left: 0.75rem;
    font-size: 13px;
  }
  .hero h1 { font-size: 2.2rem; }
  .hero-logo { height: 140px; }
}