/* Bruce Goldwell Stellar Knowledge Center Stylesheet */
/* File: /xlm/script.css */

:root{
  --navy:#071426;
  --deep-navy:#020712;
  --blue:#2f7cff;
  --stellar:#7b5cff;
  --aqua:#00e5ff;
  --silver:#eaf2ff;
  --light:#f3f7ff;
  --text:#102033;
  --muted:#52616f;
  --white:#ffffff;
}

*{box-sizing:border-box;}

html{scroll-behavior:smooth;}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:var(--light);
  color:var(--text);
  line-height:1.6;
}

header,
.site-header{
  background:linear-gradient(135deg,var(--deep-navy),var(--navy),#162b55);
  color:var(--white);
  padding:20px 6%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
}

.logo{
  font-size:1.6rem;
  font-weight:700;
  letter-spacing:1px;
}

.logo span,
.tagline{
  display:block;
  font-size:.85rem;
  color:var(--aqua);
  letter-spacing:1.5px;
  text-transform:uppercase;
}

nav a,
.main-nav a{
  color:var(--white);
  margin-left:18px;
  text-decoration:none;
  font-weight:600;
  font-size:.95rem;
}

nav a:hover,
.main-nav a:hover{color:var(--aqua);}

.top-image img,
.hero img{
  width:100%;
  height:auto;
  display:block;
}

.breadcrumb{
  max-width:1250px;
  margin:0 auto;
  padding:18px 0 0;
  font-size:.9rem;
}

.breadcrumb a{
  color:var(--blue);
  text-decoration:none;
  font-weight:700;
}

.section{
  max-width:1250px;
  margin:0 auto;
  padding:10px 6%;
}

.page-title{
  background:var(--white);
  text-align:center;
  padding:30px 6% 20px;
}

.page-title h1,
h1{
  color:var(--navy);
  font-size:clamp(2.3rem,5vw,4rem);
  margin:0;
  text-transform:uppercase;
}

h2{
  color:var(--navy);
  font-size:1.9rem;
  margin:8px 0 8px;
}

h3{color:var(--navy);}

.gold-line,
.gold{
  width:120px;
  height:4px;
  background:linear-gradient(90deg,var(--stellar),var(--aqua));
  margin:18px auto 20px;
}

.page-title p,
.lead{
  max-width:950px;
  margin:auto;
  font-size:1.08rem;
}

.section-title{
  text-align:center;
  color:var(--navy);
  font-size:2rem;
  margin-bottom:5px;
  text-transform:uppercase;
}

.section-intro{
  text-align:center;
  max-width:900px;
  margin:0 auto 20px;
}

/* Buttons */

.buttons{
  margin-top:14px;
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
}

.btn{
  padding:14px 24px;
  border-radius:6px;
  text-decoration:none;
  font-weight:700;
  display:inline-block;
}

.btn-primary{
  background:var(--navy);
  color:white;
}

.btn-gold,
.btn-stellar{
  background:linear-gradient(135deg,var(--stellar),var(--aqua));
  color:#061d33;
}

.btn:hover{opacity:.9;}

.section p{
  margin:0 0 12px;
}

/* Cards */

.cards,
.card-grid,
.home-card-grid{
  display:grid !important;
  grid-template-columns:repeat(4,1fr) !important;
  gap:24px;
  margin-top:12px;
}

.card{
  background:white;
  border-radius:14px;
  padding:28px 24px;
  text-decoration:none;
  color:var(--text);
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  border-top:5px solid var(--stellar);
  transition:.3s;
  display:block;
  text-align:center;
}

.card:hover{
  transform:translateY(-5px);
  box-shadow:0 14px 28px rgba(0,0,0,.15);
}

.card h3{
  margin:0 0 12px;
  color:var(--navy);
  text-transform:uppercase;
  font-size:1.05rem;
}

.card p{
  margin:0 0 12px;
  color:var(--muted);
  font-size:.95rem;
  line-height:1.6;
}

.card a{
  color:var(--blue);
  font-weight:700;
  text-decoration:none;
}

.card a:hover{color:var(--stellar);}

.icon{
  font-size:2.4rem;
  margin-bottom:10px;
}

.card .btn,
.card .btn:visited,
.card .btn-primary,
.card .btn-primary:visited{
  color:#ffffff !important;
}

.card .btn-gold,
.card .btn-gold:visited,
.card .btn-stellar,
.card .btn-stellar:visited{
  color:#061d33 !important;
}

/* Info Panels */

.info-card,
.featured{
  background:#f7fbff;
  border:1px solid #cfe7ff;
  border-left:6px solid var(--aqua);
  border-radius:12px;
  padding:18px;
  margin:10px 0;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

.two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:25px;
}

.panel{
  background:white;
  padding:20px;
  border-radius:10px;
  border-left:6px solid var(--stellar);
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

.panel h3{
  color:var(--navy);
  margin-top:0;
}

.notice{
  background:linear-gradient(135deg,#020712,#071426,#2f7cff,#7b5cff);
  color:white;
  border-radius:12px;
  padding:20px;
  margin-top:25px;
  text-align:center;
}

.notice h2,
.notice h3{
  margin-top:0;
  color:white;
}

/* Bibliography */

.bibliography-list{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  margin-top:25px;
}

.biblio-entry{
  background:white;
  border-radius:14px;
  padding:24px;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  border-top:5px solid var(--stellar);
}

.biblio-entry p{margin:4px 0;}

.biblio-entry em{
  color:var(--navy);
  font-size:1.05rem;
}

/* CTA */

.cta-section{
  text-align:center;
  background:white;
  border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  margin-top:12px;
  padding:18px 6%;
}

/* Stats */

.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.stat{
  background:white;
  border-radius:12px;
  padding:20px 15px;
  text-align:center;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  border-top:5px solid var(--stellar);
}

.stat strong{
  display:block;
  color:var(--navy);
  font-size:1.9rem;
}

/* Flow */

.flow{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:14px;
  margin-top:25px;
}

.flow-step{
  background:white;
  padding:18px 12px;
  text-align:center;
  border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  border-top:5px solid var(--aqua);
  font-weight:700;
  color:var(--navy);
}

/* Timeline */

.year,
.timeline-box{
  background:white;
  padding:24px;
  margin-bottom:20px;
  border-radius:12px;
  box-shadow:0 8px 18px rgba(0,0,0,.08);
  border-left:8px solid var(--stellar);
}

.year h2,
.timeline-box strong{color:var(--navy);}

.tree{
  background:white;
  border-radius:12px;
  padding:24px;
  font-family:"Courier New", monospace;
  white-space:pre-wrap;
  overflow-x:auto;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  border-left:6px solid var(--aqua);
}

/* Tables */

table{
  width:100%;
  border-collapse:collapse;
  background:white;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

td,
th{
  padding:10px;
  border-bottom:1px solid #ddd;
  vertical-align:top;
}

th{
  background:var(--navy);
  color:white;
  text-align:left;
}

td:first-child{
  font-weight:bold;
  width:35%;
  color:var(--navy);
}

/* FAQ */

.faq-list{
  display:grid;
  gap:16px;
  margin-top:20px;
}

.faq-item{
  background:white;
  border-radius:12px;
  padding:20px;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
  border-left:6px solid var(--stellar);
}

.faq-item h3{margin-top:0;}

/* Footer */

footer,
.site-footer{
  background:linear-gradient(135deg,var(--deep-navy),var(--navy));
  color:white;
  text-align:center;
  padding:35px 6%;
  margin-top:35px;
}

footer a,
.site-footer a{
  color:var(--aqua);
  text-decoration:none;
}

footer a:hover,
.site-footer a:hover{color:white;}

/* Animation */

.card,
.stat,
.flow-step,
.panel,
.info-card,
.biblio-entry,
.faq-item{
  animation:fadeUp .45s ease both;
}

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(12px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* Responsive */

@media(max-width:1100px){
  .cards,
  .card-grid,
  .home-card-grid,
  .bibliography-list,
  .stats{
    grid-template-columns:repeat(2,1fr) !important;
  }

  .two-col,
  .flow{
    grid-template-columns:1fr;
  }
}

@media(max-width:650px){
  header,
  .site-header{
    align-items:flex-start;
  }

  nav,
  .main-nav{
    margin-top:15px;
  }

  nav a,
  .main-nav a{
    display:inline-block;
    margin:6px 10px 6px 0;
  }

  .cards,
  .card-grid,
  .home-card-grid,
  .bibliography-list,
  .stats,
  .flow{
    grid-template-columns:1fr !important;
  }

  .page-title{
    padding:25px 6% 18px;
  }

  .section-title{
    font-size:1.6rem;
  }

  .btn{
    width:100%;
    text-align:center;
  }
}