.magellanquote {
  text-align: center;
  padding: 10px 15% 0px;
  max-width: 800px;
	font-family: var(--font-body);
  font-style: italic;
	font-size: 20px;
	font-weight: normal;
  line-height: 1.5;
	color: var(--color-muted);
}
.magellansource {
  text-align: right;
  padding: 0px 15% 10px;
	font-family: var(--font-body);
	font-size: 15px;
	font-weight: normal;
	color: var(--color-muted);
}

.content {
  text-align: center;
  padding: 10px 15% 10px;
}
.content img {
  height: auto;
  max-width: 80%;
}
.content table {
  border-collapse: collapse;
  margin-left:auto; 
  margin-right:auto;
  color: var(--color-primary);
  font-family: monospace;
  font-size: 12px;
  text-align: center;
}
.content th {
  background-color: var(--color-primary);
  color: white;
}
.content td {
  padding-right: 10px;
  padding-left:  10px;
  white-space: nowrap;
}
.content tr:nth-child(even) {
  background-color: #f2f2f2
}
.content tr:hover {
  color: var(--color-primary);
	font-weight: bold;
}
    
.thankyou {
  text-align: center;
  line-height: 1.5;
  padding: 10px 15% 10px;
	font-family: var(--font-body);
	font-size: 12px;
}

.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 15% 40px;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
}
.legal h1 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 5px;
}
.legal .legal-updated {
  color: var(--color-muted);
  font-size: 12px;
  margin-bottom: 25px;
}
.legal h2 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 20px;
  margin: 30px 0 10px;
}
.legal p, .legal li {
  margin: 0 0 12px;
}
.legal ul {
  padding-left: 20px;
}
.legal a {
  color: var(--color-primary);
}

.legal.wide {
  max-width: 1100px;
}

.news-list {
  margin-top: 20px;
  text-align: left;
}
.news-post {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(24, 90, 108, 0.12);
}
.news-post:first-child {
  padding-top: 0;
}
.news-post:last-child {
  border-bottom: none;
}
.news-post-image {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.news-post-body {
  flex: 1 1 300px;
  min-width: 0;
}
.news-post-image-full {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.news-archive-link {
  margin-top: 10px;
  font-size: 13px;
}
.news-tag-archived {
  background: transparent;
  color: var(--color-muted);
  border-color: var(--color-muted);
}
.news-tag-draft {
  background: #fff4e0;
  color: #a66a00;
  border-color: #a66a00;
}
.news-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--color-muted);
}
.news-tag {
  display: inline-block;
  background: var(--color-bg);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: bold;
}
.news-post h2 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 0 0 10px;
  font-size: 20px;
}
.news-post p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
}
.news-post p:last-child {
  margin-bottom: 0;
}

.news-post-link {
  color: var(--color-primary);
  text-decoration: none;
}
.news-post-link:hover {
  text-decoration: underline;
}

.article-back {
  display: inline-block;
  margin-bottom: 15px;
  font-size: 13px;
}

.news-post-full {
  padding-top: 0;
  border-bottom: none;
}
.news-post-full h1 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 0 0 10px;
  font-size: 26px;
}
.news-post-full p {
  font-size: 15px;
  line-height: 1.7;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(24, 90, 108, 0.12);
}
.article-actions .btn {
  font-size: 13px;
  padding: 8px 16px;
}

.admin-flash {
  padding: 10px 15px;
  margin-bottom: 15px;
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  font-size: 14px;
}
.admin-flash-error {
  background: #fdf0f0;
  color: #a33;
  border-color: #a33;
}

.admin-form,
.contact-form {
  max-width: 600px;
  margin-bottom: 30px;
}
/* Spam honeypot (see contact.php) -- deliberately off-screen rather than
   display:none or .sr-only, so it's invisible to sighted users but a bot
   that blindly fills in every field it finds still populates it. Combined
   with tabindex="-1" and aria-hidden on the wrapper, real keyboard/screen
   reader users never encounter it either. */
.hp-field {
  position: absolute;
  left: -9999px;
}
.admin-form label,
.contact-form label {
  display: block;
  margin-bottom: 15px;
  font-size: 13px;
  font-weight: bold;
  color: var(--color-primary);
}
.admin-form input[type="text"],
.admin-form input[type="date"],
.admin-form input[type="file"],
.admin-form textarea,
.admin-form select,
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: normal;
  color: var(--color-text);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  box-sizing: border-box;
}
.admin-form textarea,
.contact-form textarea {
  resize: vertical;
}
.admin-form label.admin-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
}
.admin-form label.admin-checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 0;
}
.admin-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-current-image {
  display: block;
  max-width: 160px;
  max-height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(24, 90, 108, 0.25);
  margin-bottom: 6px;
}
.admin-field-hidden {
  display: none;
}
.admin-field-hint {
  font-weight: normal;
  color: var(--color-muted);
  font-size: 12px;
}
.admin-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 15px;
}
.admin-filter-tabs .btn-active {
  background: var(--color-primary);
  color: #fff;
}
.admin-inline-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin: 15px 0 25px;
}
.admin-inline-image-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 10px;
}
.admin-inline-image-thumb {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.admin-inline-image-tag {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 6px 8px;
  font-size: 11px;
  font-family: monospace;
  color: var(--color-text);
  border: 1px solid rgba(24, 90, 108, 0.25);
  border-radius: var(--radius);
  box-sizing: border-box;
  background: var(--color-bg);
}

.admin-articles-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-articles-table th {
  text-align: left;
  padding: 8px 10px;
  background-color: var(--color-primary);
  color: #ffffff;
}
.admin-articles-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(24, 90, 108, 0.12);
}
.admin-inline-form {
  display: inline;
}
.admin-inline-form .btn {
  font-size: 12px;
  padding: 6px 12px;
}
.admin-actions-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.btn-sm {
  font-size: 12px;
  padding: 6px 12px;
}

@media print {
  header, footer, .article-actions, .article-back {
    display: none !important;
  }
  body {
    overflow: visible !important;
    background: #ffffff !important;
  }
  main {
    height: auto !important;
    overflow: visible !important;
  }
  .legal {
    max-width: none;
    padding: 0;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 20px 0 10px;
}

.wwd-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 10px;
}
.wwd-carousel-track {
  display: flex;
  gap: 20px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px;
  scrollbar-width: none;
}
.wwd-carousel-track::-webkit-scrollbar {
  display: none;
}
.wwd-carousel-track .card {
  flex: 0 0 260px;
  scroll-snap-align: start;
}
.wwd-carousel-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  color: var(--color-primary);
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.wwd-carousel-arrow:hover,
.wwd-carousel-arrow:focus-visible {
  background-color: rgba(24, 90, 108, 0.08);
  outline: none;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover, .card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(24, 90, 108, 0.22);
}
.card .card-icon {
  transition: color 0.2s ease, transform 0.2s ease;
}
.card:hover .card-icon {
  color: var(--color-accent-bright);
  transform: scale(1.1);
}
.card-photo {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.card-body {
  padding: 20px;
}
.card .card-icon {
  font-size: 30px;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.card-body .news-tag {
  display: inline-block;
  margin-bottom: 8px;
}
.card h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 0 0 8px;
  font-size: 17px;
}
.card p {
  font-size: 13px;
  margin: 0 0 10px;
}
.content-tags span {
  display: inline-block;
  background: var(--color-bg);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  margin: 0 6px 6px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 20px;
}
.team-member {
  text-align: center;
}
.avatar-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-family: var(--font-heading);
  margin: 0 auto 15px;
}
.avatar-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 15px;
}
.team-member h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 0 0 2px;
}
.team-member .role {
  color: var(--color-muted);
  font-size: 12px;
  margin-bottom: 10px;
}
.team-member p {
  font-size: 13px;
  text-align: left;
  margin: 0;
}
.team-member p + p {
  margin-top: 10px;
}
.team-education {
  margin-top: 10px;
  font-size: 12px;
  color: var(--color-muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.value-item .value-icon {
  font-size: 26px;
  color: var(--color-primary);
}
.value-item h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 8px 0 6px;
  font-size: 16px;
}
.value-item p {
  font-size: 13px;
  margin: 0;
}

.service-block {
  margin: 40px 0;
  padding-top: 30px;
  border-top: 1px solid rgba(24, 90, 108, 0.12);
}
.service-block:first-of-type {
  margin-top: 20px;
  padding-top: 0;
  border-top: none;
}
.service-block h2 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 22px;
  margin: 0 0 4px;
}
.service-block h2 i {
  margin-right: 10px;
}
.service-block .service-intro {
  margin: 0 0 20px;
}
.service-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}
.service-col h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
}
.service-col ul {
  padding-left: 18px;
  margin: 0;
}
.service-col li {
  margin-bottom: 8px;
  font-size: 13px;
}
.service-col p {
  font-size: 13px;
  margin: 0;
}

.callout {
  max-width: 800px;
  margin: 20px auto;
  padding: 18px 25px;
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg);
  border-radius: var(--radius);
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  text-align: left;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius);
  font-weight: bold;
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-primary, .btn-primary:link, .btn-primary:visited, .btn-primary:hover, .btn-primary:active {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover, .btn-primary:active {
  background: var(--color-primary-light);
}
.btn-secondary, .btn-secondary:link, .btn-secondary:visited, .btn-secondary:hover, .btn-secondary:active {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-secondary:hover, .btn-secondary:active {
  background: var(--color-bg);
}

/* Homepage/splash logo (home.php) -- the logo JPG has a solid white
   background, so this fades it into the page background instead of a
   hard rectangle edge. */
.hero-logo {
  max-width: 280px;
  width: 60%;
  height: auto;
  margin-bottom: 15px;
  padding: 45px 80px;
  box-sizing: content-box;
  background: radial-gradient(ellipse at center, #ffffff 40%, rgba(255, 255, 255, 0) 100%);
}

.home-section {
  text-align: center;
  padding: 30px 15%;
}
.home-section h1 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 28px;
  max-width: 700px;
  margin: 0 auto 15px;
  line-height: 1.3;
}
.home-section h2 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 22px;
  margin-bottom: 10px;
}
.home-section p {
  max-width: 700px;
  margin: 0 auto 15px;
  font-family: var(--font-body);
  font-size: 14px;
}
.home-link {
  color: var(--color-primary);
  font-weight: bold;
  text-decoration: none;
}
.home-link:hover {
  text-decoration: underline;
}

/* Minimal partner mentions (partners.php) -- plain pills, no logo grid, so
   the page reads as a footnote rather than a showcase. */
.partner-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.partner-pills a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 20px;
  padding: 6px 16px 6px 10px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.partner-pills a:hover {
  background: var(--color-primary);
  color: #fff;
}
.partner-pills img {
  height: 20px;
  width: auto;
  max-width: 70px;
  object-fit: contain;
}
/* moonlabs-logo.png has a solid white background baked in (unlike the other
   partner logos, which are transparent) -- multiply blends it into the
   surrounding pill background instead of showing a hard white box. */
.logo-blend-white {
  mix-blend-mode: multiply;
}

/* Hero section (home.php) -- a dot-grid + soft radial glow behind the logo
   gives the hero some motion and signals "current tech" instead of a flat
   brochure header. */
.hero-section {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding-top: 45px;
  padding-bottom: 45px;
  background:
    radial-gradient(circle at 18% 15%, var(--color-glow), transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(24, 90, 108, 0.14), transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(24, 90, 108, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 72%);
  pointer-events: none;
}
.hero-section > * {
  position: relative;
  z-index: 1;
}
.hero-logo {
  animation: hero-glow 5s ease-in-out infinite;
}
@keyframes hero-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(23, 209, 196, 0)); }
  50%      { filter: drop-shadow(0 0 20px var(--color-glow)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

.cta-row {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 15px;
}
.btn-primary:hover, .btn-primary:active {
  box-shadow: 0 6px 20px var(--color-glow);
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin: 10px 0 15px;
}
.stat-item {
  text-align: center;
  min-width: 130px;
}
.stat-item .stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: bold;
  color: var(--color-accent-bright);
  line-height: 1.2;
}
.stat-item .stat-label {
  font-size: 12px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Scroll-reveal utility -- applied via a few data-reveal elements and
   toggled by a small IntersectionObserver in footer.php. Content is fully
   visible with no JS/older browsers since .visible is the only state that
   matters; this only ever hides content that would otherwise show anyway. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}