/* site.css - site-wide refinements, inlined into every page by customize.py.
   1. Header: navy bar that continues straight into the home-page hero (JPL / APL style).
   2. Meet the Team: proper card grid instead of the plugin's 80px masonry tiles. */
:root {
  --hsfl-navy: #0a1628;
  --hsfl-accent: #f46455;
  --hsfl-ink: #111827;
  --hsfl-muted: #4b5563;
  --hsfl-header-h: 76px;
}

/* ------------------------------------------------------------------ 1. header */
#masthead,
#masthead.shrinked {
  background: var(--hsfl-navy) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: none !important;
}
#masthead.shrinked { box-shadow: 0 4px 18px rgba(0, 0, 0, .25) !important; }
#masthead .agama-header-overlay,
#masthead .agama-top-nav-wrapper { box-shadow: none !important; background: transparent !important; }
#masthead .agama-top-nav-wrapper:empty,
#masthead .agama-top-nav-wrapper > .tv-container:empty { display: none; }
#masthead .agama-header-overlay > .tv-container {
  max-width: 1200px;
  min-height: var(--hsfl-header-h);
  padding: 0 24px;
  box-sizing: border-box;
}
#agama-logo { padding: 10px 0 !important; margin: 0 !important; display: flex; align-items: center; }
#agama-logo a { display: flex; align-items: center; gap: 14px; line-height: 0; text-decoration: none !important; }
#agama-logo img { margin: 0 !important; flex: 0 0 auto; }

/* lab name beside the logo (JPL style): name on top, university below */
.hsfl-wordmark { display: flex; flex-direction: column; gap: 3px; line-height: 1.15; white-space: nowrap; }
.hsfl-wordmark__name { font: 700 18px/1.15 Roboto, sans-serif; letter-spacing: -.005em; color: #fff; }
.hsfl-wordmark__sub { font: 400 13px/1.2 Roboto, sans-serif; letter-spacing: .01em; color: rgba(255, 255, 255, .7); }
#agama-logo a:hover .hsfl-wordmark__name { color: #fff; }
@media (max-width: 1240px) {
  .hsfl-wordmark__name { font-size: 16px; }
  .hsfl-wordmark__sub { font-size: 12px; }
}
@media (max-width: 1120px) and (min-width: 992px) {
  .hsfl-wordmark__sub { display: none; }
}
@media (max-width: 600px) {
  #agama-logo a { gap: 10px; }
  #agama-logo img, #masthead.shrinked #agama-logo img { height: 46px !important; max-height: 46px !important; }
  .hsfl-wordmark__name { font-size: 15px; white-space: normal; max-width: 13em; }
  .hsfl-wordmark__sub { font-size: 11.5px; }
}
#agama-logo img,
#masthead.shrinked #agama-logo img {
  height: 56px !important;
  max-height: 56px !important;
  width: auto !important;
  transition: none !important;
}
#agama-primary-nav { padding: 0 !important; display: flex !important; align-items: center; }

/* top-level links: white, sentence case, red underline on hover / current page */
#agama-primary-nav > ul.agama-navigation > li > a {
  position: relative;
  padding: 27px 14px !important;
  color: rgba(255, 255, 255, .86) !important;
  font: 500 15px/22px Roboto, sans-serif !important;
  letter-spacing: .01em !important;
  text-transform: none !important;
  background: transparent !important;
  transition: color .15s ease;
}
#agama-primary-nav > ul.agama-navigation > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  height: 2px;
  background: var(--hsfl-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
#agama-primary-nav > ul.agama-navigation > li:hover > a,
#agama-primary-nav > ul.agama-navigation > li > a:focus-visible,
#agama-primary-nav > ul.agama-navigation > li.current-menu-item > a,
#agama-primary-nav > ul.agama-navigation > li.current-menu-ancestor > a { color: #fff !important; }
#agama-primary-nav > ul.agama-navigation > li:hover > a::after,
#agama-primary-nav > ul.agama-navigation > li > a:focus-visible::after,
#agama-primary-nav > ul.agama-navigation > li.current-menu-item > a::after,
#agama-primary-nav > ul.agama-navigation > li.current-menu-ancestor > a::after { transform: scaleX(1); }
/* the theme's dark dropdown arrows are invisible on navy */
#agama-primary-nav > ul.agama-navigation > li > a .sf-sub-indicator,
#agama-primary-nav > ul.agama-navigation > li > a > .sub-arrow { filter: invert(1); }
@media (max-width: 1200px) {
  #agama-primary-nav > ul.agama-navigation > li > a { padding: 27px 10px !important; font-size: 14px !important; }
  #agama-primary-nav > ul.agama-navigation > li > a::after { left: 10px; right: 10px; }
}

/* dropdowns: white panel with a red top rule */
#agama-primary-nav .sub-menu {
  background: #fff !important;
  border-top: 2px solid var(--hsfl-accent) !important;
  box-shadow: 0 14px 32px rgba(10, 22, 40, .18) !important;
  padding: 6px 0 !important;
}
#agama-primary-nav .sub-menu a {
  color: var(--hsfl-ink) !important;
  font: 500 14px/1.35 Roboto, sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 10px 18px !important;
  background: transparent !important;
}
#agama-primary-nav .sub-menu li:hover > a,
#agama-primary-nav .sub-menu a:focus-visible { color: #c8372a !important; background: #f3f4f6 !important; }

/* search + mobile toggle: plain white icons, no floating white box */
#masthead .navbar-buttons { box-shadow: none !important; background: transparent !important; margin-left: 6px; }
#masthead .navbar-buttons > li > a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  color: #fff !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, .16) !important;
}
#masthead .navbar-buttons > li.navbar-button-mobile > a { border-left: 0 !important; }
#masthead .navbar-buttons .fa-search { color: #fff !important; font-size: 16px !important; }
#masthead .navbar-buttons > li > a:hover .fa-search { color: var(--hsfl-accent) !important; }
#masthead .mobile-menu-toggle-inner,
#masthead .mobile-menu-toggle-inner::before,
#masthead .mobile-menu-toggle-inner::after { background-color: #fff !important; }
/* mobile menu: navy panel matching the header, as tall as the screen allows */
#agama-mobile-nav {
  max-height: calc(100vh - var(--hsfl-header-h)) !important;
  overflow-y: auto !important;
  background: var(--hsfl-navy) !important;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
#agama-mobile-nav ul { background: transparent !important; }
#agama-mobile-nav li { border-color: rgba(255, 255, 255, .1) !important; background: transparent !important; }
#agama-mobile-nav a {
  color: #fff !important;
  font: 500 16px/1.3 Roboto, sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  background: transparent !important;
  padding-left: 24px !important;
}
#agama-mobile-nav .sub-menu a,
#agama-mobile-nav ul ul a { color: rgba(255, 255, 255, .78) !important; font-size: 15px !important; padding-left: 40px !important; }
#agama-mobile-nav li.current-menu-item > a { color: var(--hsfl-accent) !important; }
#agama-mobile-nav .tv-dropdown-toggle { filter: invert(1) brightness(2); opacity: .8; }
@media (max-width: 991px) {
  #masthead .navbar-buttons > li.navbar-button-search > a,
  #masthead .navbar-buttons > li[class*="search"] > a { border-left: 0 !important; }
}

/* ------------------------------------------------------------------ 2. Meet the Team */
/* (full-width layout comes from section 3) */
body.page-id-1684 .sow-headline-container { text-align: left !important; margin: 0 0 36px; }
body.page-id-1684 .sow-headline-container .sow-headline {
  font: 700 clamp(32px, 4vw, 48px)/1.08 Roboto, sans-serif !important;
  letter-spacing: -.02em !important;
  color: var(--hsfl-ink) !important;
  text-align: left !important;
}
body.page-id-1684 .sow-headline-container .decoration { margin: 16px 0 0 !important; padding: 0 !important; width: 56px; }
body.page-id-1684 .sow-headline-container .decoration-inside { border-top: 3px solid var(--hsfl-accent) !important; }

/* The plugin's masonry script absolutely positions 80px tiles; lay them out as a grid instead.
   Both team blocks share the same columns so they read as one list. */
.amoteam-tiles {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 36px 24px;
  width: auto !important;
  height: auto !important;
  margin: 0 0 36px !important;
  padding: 0 !important;
  list-style: none !important;
  position: static !important;
}
.amoteam-tiles > .amoteam-tiles__item {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  list-style: none !important;
}
.amoteam-tiles :is(.amoteam-popup-link, .amoteam-profile-link) { display: block; text-decoration: none !important; cursor: pointer; }
.amoteam-tiles .amoteam-member {
  position: relative;
  display: flex !important;
  flex-direction: column;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  background: transparent !important;
}
.amoteam-tiles .amoteam-member-img-wrap {
  order: -1;
  position: relative !important;
  aspect-ratio: 1 / 1;
  width: 100% !important;
  height: auto !important;
  overflow: hidden;
  background: #e5e7eb;
}
.amoteam-tiles .amoteam-member-img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center 25%;
  transition: transform .5s ease;
}
.amoteam-tiles :is(.amoteam-popup-link, .amoteam-profile-link):hover .amoteam-member-img { transform: scale(1.04); }
.amoteam-tiles .amoteam-member-hover-icon { display: none !important; }
.amoteam-tiles .amoteam-member-info {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  padding: 14px 0 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border-top: 3px solid var(--hsfl-accent);
  text-align: left !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin-top: 0 !important;
}
.amoteam-tiles .amoteam-member-info__item {
  display: block !important;
  position: static !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  text-align: left !important;
  white-space: normal !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  transform: none !important;
}
.amoteam-tiles .amoteam-member-name {
  font: 700 17px/1.3 Roboto, sans-serif !important;
  color: var(--hsfl-ink) !important;
}
.amoteam-tiles .amoteam-member-subtitle {
  margin-top: 4px !important;
  font: 400 14px/1.45 Roboto, sans-serif !important;
  color: var(--hsfl-muted) !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.amoteam-tiles :is(.amoteam-popup-link, .amoteam-profile-link):hover .amoteam-member-name { color: #c8372a !important; }
@media (max-width: 600px) {
  .amoteam-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .amoteam-tiles .amoteam-member-name { font-size: 15px !important; }
  .amoteam-tiles .amoteam-member-subtitle { font-size: 13px !important; }
}
/* group photo under the grid */
body.page-id-1684 .entry-content img:not(.amoteam-member-img):not(.amoteam-panel__img) { width: 100%; height: auto; }

/* ------------------------------------------------------------------ 3. inner pages */
/* 3a. Layout. Every page carries the same sidebar holding one empty text widget, which
   squeezes content into 75% of the width. Hide it only while it is that empty widget,
   so a real widget added later shows up again. */
#secondary:has(> #text-19:only-child .textwidget:empty) { display: none; }
#main .vision-row:has(> #secondary > #text-19:only-child .textwidget:empty) > #primary {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
body:not(.home) #main .vision-row { max-width: 1200px; margin-left: auto; margin-right: auto; padding-top: 56px; padding-bottom: 72px; }
@media (max-width: 600px) { body:not(.home) #main .vision-row { padding-top: 32px; padding-bottom: 48px; } }

/* 3b. Type */
body:not(.home) .entry-content,
body:not(.home) .entry-content p,
body:not(.home) .entry-content li {
  font-family: Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #374151;
  hyphens: none;
  -webkit-hyphens: none;
}
/* links in running text only; headings, cards and buttons keep their own look */
body:not(.home) .entry-content :is(p, li):not(.single-line-meta) > a:not(.sowb-button):not(.more-link):not([class*="btn"]):not(:has(img)) {
  color: #c8372a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
body:not(.home) .entry-content :is(p, li):not(.single-line-meta) > a:not(.sowb-button):not(.more-link):not([class*="btn"]):not(:has(img)):hover { color: var(--hsfl-ink); }
body:not(.home) .entry-content h2:not(.sow-headline),
body:not(.home) .entry-content h3:not(.amoteam-panel__title),
body:not(.home) .entry-content h4 {
  font-family: Roboto, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -.01em;
  color: var(--hsfl-ink);
  hyphens: none;
}

/* SiteOrigin headline widgets (e.g. CURRENT MISSIONS): keep each page's own alignment,
   use the home-page heading style and a short red rule */
body:not(.home) .sow-headline-container .sow-headline {
  font-family: Roboto, sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(28px, 3.4vw, 42px) !important;
  line-height: 1.12 !important;
  letter-spacing: .01em !important;
  color: var(--hsfl-ink) !important;
  hyphens: none !important;
}
body:not(.home) .sow-headline-container .decoration { width: 56px; margin-left: auto !important; margin-right: auto !important; }
body:not(.home) .sow-headline-container[style*="left"] .decoration,
body.page-id-1684 .sow-headline-container .decoration { margin-left: 0 !important; }
body:not(.home) .sow-headline-container .decoration-inside { border-top: 3px solid var(--hsfl-accent) !important; border-radius: 0; }

/* post / portfolio titles */
body:not(.home) h1.entry-title,
body:not(.home) h1.entry-title a {
  font: 700 clamp(30px, 4vw, 46px)/1.1 Roboto, sans-serif !important;
  letter-spacing: -.02em !important;
  color: var(--hsfl-ink) !important;
  text-transform: none !important;
  text-decoration: none !important;
  hyphens: none !important;
  margin: 0 0 14px !important;
}
body:not(.home) .single-line-meta,
body:not(.home) .single-line-meta a {
  font: 500 13px/1.6 Roboto, sans-serif !important;
  letter-spacing: .02em;
  color: #6b7280 !important;
  text-decoration: none !important;
}
body:not(.home) .single-line-meta { margin: 0 0 24px !important; }
body:not(.home) .single-line-meta .fa { color: var(--hsfl-accent); margin-right: 3px; }
body:not(.home) .single-line-meta .inline-sep { margin: 0 8px; color: #d1d5db; }

/* 3c. Single posts and portfolio entries: one readable column */
body.single #content { max-width: 780px; margin-left: auto; margin-right: auto; }
body.single #content > .entry-header figure { margin: 0 0 32px; }
body.single #content > .entry-header img { display: block; width: auto; max-width: 100%; height: auto; }
body.single .entry-content img { max-width: 100%; height: auto; }
body.single .si-share { margin-top: 40px; padding-top: 20px; border-top: 1px solid #e5e7eb; }
body.single .si-share > span { font: 700 12px/1 Roboto, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #6b7280; }
body.single .nav-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid #e5e7eb;
}
body.single .nav-single > span { float: none !important; width: auto !important; }
body.single .nav-single .nav-next { text-align: right; grid-column: 2; }
body.single .nav-single a {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font: 600 15px/1.45 Roboto, sans-serif !important;
  color: var(--hsfl-ink) !important;
  text-decoration: none !important;
}
body.single .nav-single a:hover { color: #c8372a !important; }
body.single .nav-single .meta-nav { color: var(--hsfl-accent); }
#comments:not(:has(*)) { display: none; }      /* empty comment box */
#respond, .comment-respond { display: none !important; }   /* forms cannot post on a static site */
@media (max-width: 600px) {
  body.single .nav-single { grid-template-columns: 1fr; }
  body.single .nav-single .nav-next { grid-column: 1; text-align: left; }
}

/* 3d. Archive listings: title, then one row per post (thumbnail + text), no scroll animation */
.hsfl-archive-head { margin: 0 0 40px; padding-bottom: 28px; border-bottom: 1px solid #e5e7eb; }
.hsfl-archive-head .hsfl-kicker {
  margin: 0 0 10px;
  font: 700 13px/1.2 Roboto, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #c8372a;
}
.hsfl-archive-head h1 {
  margin: 0 !important;
  font: 700 clamp(34px, 5vw, 56px)/1.05 Roboto, sans-serif !important;
  letter-spacing: -.025em !important;
  color: var(--hsfl-ink) !important;
  text-transform: none !important;
}
.hsfl-archive-head__page { font-size: .45em; font-weight: 500; color: #6b7280; letter-spacing: 0; margin-left: 10px; }

.article-wrapper.list-style,
.article-wrapper.list-style.not-animated,
.article-wrapper.list-style.animated {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 0 36px !important;
  border-bottom: 1px solid #e5e7eb;
}
.article-wrapper.list-style + .article-wrapper.list-style { padding-top: 36px !important; }
.article-wrapper.list-style > article {
  display: grid !important;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.article-wrapper.list-style > article:not(.has-post-thumbnail) { grid-template-columns: minmax(0, 1fr); }
.article-wrapper.list-style > article:not(.has-post-thumbnail) > .entry-header { display: none; }
.article-wrapper.list-style .entry-header,
.article-wrapper.list-style .entry-header figure { margin: 0 !important; padding: 0 !important; width: auto !important; }
.article-wrapper.list-style .entry-header figure a { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #e5e7eb; }
.article-wrapper.list-style .entry-header img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  transition: transform .5s ease;
}
.article-wrapper.list-style .entry-header figure a:hover img { transform: scale(1.04); }
.article-wrapper.list-style .entry-header figure::before,
.article-wrapper.list-style .entry-header figure::after { display: none !important; }   /* theme hover overlay */
.article-wrapper.list-style .article-entry-wrapper { display: block !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
.article-wrapper.list-style .entry-date { display: none !important; }   /* date is repeated in the meta line */
.article-wrapper.list-style .entry-content { padding: 0 !important; margin: 0 !important; width: auto !important; }
.article-wrapper.list-style h1.entry-title,
.article-wrapper.list-style h1.entry-title a { font-size: clamp(21px, 2vw, 26px) !important; line-height: 1.25 !important; letter-spacing: -.01em !important; margin-bottom: 8px !important; }
.article-wrapper.list-style h1.entry-title a:hover { color: #c8372a !important; }
.article-wrapper.list-style .single-line-meta { margin-bottom: 12px !important; }
.article-wrapper.list-style .entry-content > p:not(.single-line-meta) {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: var(--hsfl-muted) !important;
  margin: 0 0 14px !important;
}
.article-wrapper.list-style .entry-content > p:not(.single-line-meta):not(:has(.more-link)) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.article-wrapper.list-style .entry-meta:not(:has(*)) { display: none; }
a.more-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  font: 700 13px/1 Roboto, sans-serif !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-style: normal !important;
  color: #c8372a !important;
  text-decoration: none !important;
  transition: gap .2s ease;
}
a.more-link::after { content: "\2192"; font-size: 17px; letter-spacing: 0; }
a.more-link:hover { gap: 12px; }
@media (max-width: 700px) {
  .article-wrapper.list-style > article { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* older / newer posts */
#nav-below {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 40px 0 0;
  padding: 0;
}
#nav-below > div { float: none !important; width: auto !important; }
#nav-below a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1px solid #c9ced6;
  font: 700 13px/1 Roboto, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hsfl-ink) !important;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
#nav-below a:hover { background: var(--hsfl-ink); border-color: var(--hsfl-ink); color: #fff !important; }
#nav-below .meta-nav { color: var(--hsfl-accent); }

/* 3e. Footer: navy to match the header */
.footer-widgets { background: var(--hsfl-navy) !important; border-top: 0 !important; }
#agama-footer { background: #060e1a !important; border-top: 1px solid rgba(255, 255, 255, .08) !important; }
.footer-widgets .widget-title {
  font: 700 13px/1.2 Roboto, sans-serif !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  color: #fff !important;
}
.footer-widgets,
.footer-widgets p,
.footer-widgets li,
.footer-widgets .textwidget { color: rgba(255, 255, 255, .72) !important; font-family: Roboto, sans-serif; }
.footer-widgets a { color: rgba(255, 255, 255, .9) !important; }
.footer-widgets a:hover { color: var(--hsfl-accent) !important; }
.footer-widgets .widget-title::after { background: var(--hsfl-accent) !important; width: 40px !important; }

/* ------------------------------------------------------------------ 4. section pages (front-page style) */
/* shared pieces (the home page has its own copies in home.css) */
body.hsfl-section .hsfl-bleed,
body.hsfl-profile-page .hsfl-bleed { position: relative; width: 100vw; margin-left: calc(50% - 50vw); box-sizing: border-box; }
html:has(body.hsfl-section), html:has(body.hsfl-profile-page) { overflow-x: clip; }
body.hsfl-section #main .vision-row,
body.hsfl-profile-page #main .vision-row { padding-top: 0 !important; }
.hsfl-kicker { margin: 0 0 12px !important; font: 700 13px/1.2 Roboto, sans-serif !important; letter-spacing: .16em; text-transform: uppercase; color: #c8372a !important; }
.hsfl-kicker a { color: inherit !important; text-decoration: none !important; }
.hsfl-link { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 Roboto, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #c8372a !important; text-decoration: none !important; transition: gap .2s ease; }
.hsfl-link::after { content: "\2192"; font-size: 18px; letter-spacing: 0; }
.hsfl-link:hover { gap: 12px; }
.hsfl-link--back::after { content: none; }
.hsfl-link--back::before { content: "\2190"; font-size: 18px; letter-spacing: 0; }

/* hero */
.hsfl-page-hero {
  min-height: clamp(280px, 38vh, 400px);
  display: flex;
  align-items: flex-end;
  background: var(--hsfl-navy);
  color: #fff;
  overflow: hidden;
  margin-bottom: 64px;
}
.hsfl-page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hsfl-page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 22, 40, .9) 0%, rgba(10, 22, 40, .65) 45%, rgba(10, 22, 40, .25) 100%),
    linear-gradient(0deg, rgba(10, 22, 40, .7) 0%, rgba(10, 22, 40, 0) 50%);
}
.hsfl-page-hero__inner { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; padding: 72px 24px 52px; box-sizing: border-box; }
.hsfl-page-hero .hsfl-kicker { color: var(--hsfl-accent) !important; }
.hsfl-page-hero__title {
  margin: 0 !important;
  font: 700 clamp(40px, 5.6vw, 72px)/1.02 Roboto, sans-serif !important;
  letter-spacing: -.025em !important;
  color: #fff !important;
  text-transform: none !important;
  hyphens: none !important;
}
@media (max-width: 600px) {
  .hsfl-page-hero { margin-bottom: 40px; }
  .hsfl-page-hero__inner { padding: 56px 24px 36px; }
}
body.hsfl-section .hsfl-dup-title { display: none !important; }

/* headings: left-aligned with a red rule, like the home page */
body.hsfl-section .sow-headline-container { text-align: left !important; margin: 0 0 32px !important; }
body.hsfl-section .sow-headline-container .sow-headline {
  text-align: left !important;
  text-transform: none !important;
  font-size: clamp(28px, 3.4vw, 42px) !important;
  letter-spacing: -.015em !important;
}
body.hsfl-section .sow-headline-container .decoration { margin: 14px 0 0 !important; }
body.hsfl-section .panel-grid { margin-bottom: 56px !important; }

/* intro text right under the hero reads as a lede */
body.hsfl-section .hsfl-lede .textwidget,
body.hsfl-section .hsfl-lede .textwidget :is(p, span, strong, b, h2, h3, h4) {
  max-width: 820px;
  font-size: clamp(17px, 1.5vw, 20px) !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  color: #374151 !important;
  text-align: left !important;
}
body.hsfl-section .hsfl-lede .textwidget { margin: 0 !important; }
body.hsfl-section .hsfl-lede .textwidget a { color: #c8372a !important; }

/* image tiles in multi-column rows become flat cards (same as Featured Projects) */
body.hsfl-section .panel-grid-cell:not(:only-child) > .widget_sow-hero .sow-slider-base,
body.hsfl-section .panel-grid-cell:not(:only-child) > .widget_sow-hero .sow-slider-images {
  aspect-ratio: 4 / 3;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden;
}
body.hsfl-section .panel-grid-cell:not(:only-child) > .widget_sow-hero li.sow-slider-image {
  height: 100% !important;
  min-height: 0 !important;
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  transition: transform .6s ease;
}
body.hsfl-section .panel-grid-cell:not(:only-child):hover > .widget_sow-hero li.sow-slider-image { transform: scale(1.04); }
body.hsfl-section .panel-grid-cell:not(:only-child) > .widget_sow-hero .sow-slider-image-overlay { opacity: 1 !important; background-position: center !important; }
body.hsfl-section .panel-grid-cell:not(:only-child) > .widget_sow-hero .sow-slider-image-container {
  position: absolute !important;
  inset: 0;
  z-index: 2;
  display: flex !important;
  align-items: flex-end;
  height: 100% !important;
}
body.hsfl-section .panel-grid-cell:not(:only-child) > .widget_sow-hero .sow-slider-image-wrapper {
  padding: 0 18px 16px !important;
  width: 100%;
  max-width: none !important;
}
body.hsfl-section .panel-grid-cell:not(:only-child) > .widget_sow-hero .sow-slider-image-wrapper :is(h1, h2, h3, p) {
  font: 700 19px/1.25 Roboto, sans-serif !important;
  text-align: left !important;
  text-transform: none !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45) !important;
  margin: 0 !important;
}
body.hsfl-section .panel-grid-cell:not(:only-child) > .widget_sow-hero .sow-slider-pagination,
body.hsfl-section .panel-grid-cell:not(:only-child) > .widget_sow-hero .sow-slide-nav { display: none !important; }
body.hsfl-section .panel-grid-cell:not(:only-child) > .widget_sow-hero { margin-bottom: 0 !important; }
body.hsfl-section .panel-grid-cell:not(:only-child) > .widget_sow-hero + .widget_sow-editor .textwidget {
  border-top: 3px solid var(--hsfl-accent);
  padding-top: 18px;
}
body.hsfl-section .panel-grid-cell:not(:only-child) > .widget_sow-hero + .widget_sow-editor .textwidget :is(p, span) {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--hsfl-muted) !important;
  text-align: left !important;
}
body.hsfl-section .panel-grid-cell:not(:only-child) > .widget_sow-hero + .widget_sow-editor .textwidget :is(h1, h2, h3, h4, strong) {
  font-family: Roboto, sans-serif !important;
  color: var(--hsfl-ink) !important;
  text-align: left !important;
}
body.hsfl-section .panel-grid-cell:not(:only-child) > .widget_sow-hero + .widget_sow-editor .textwidget :is(h1, h2, h3, h4) { font-size: 19px !important; font-weight: 700 !important; margin: 0 0 8px !important; }
body.hsfl-section .panel-grid-cell:not(:only-child) > .widget_sow-hero + .widget_sow-editor .textwidget :is(h1, h2, h3, h4) a { color: inherit !important; text-decoration: none !important; }

/* ------------------------------------------------------------------ 5. team member pages */
.hsfl-profile__hero { background: var(--hsfl-navy); color: #fff; margin-bottom: 56px; }
.hsfl-profile__hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
  box-sizing: border-box;
}
.hsfl-profile__photo { flex: 0 0 220px; aspect-ratio: 1 / 1; overflow: hidden; background: #1f2a3c; border-bottom: 4px solid var(--hsfl-accent); }
.hsfl-profile__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hsfl-profile__heading .hsfl-kicker { color: var(--hsfl-accent) !important; }
.hsfl-profile__heading h1 {
  margin: 0 0 12px !important;
  font: 700 clamp(36px, 5vw, 60px)/1.05 Roboto, sans-serif !important;
  letter-spacing: -.025em !important;
  color: #fff !important;
  text-transform: none !important;
}
.hsfl-profile__role { margin: 0 0 4px !important; font: 400 18px/1.45 Roboto, sans-serif !important; color: rgba(255, 255, 255, .82) !important; max-width: 46em; }
.hsfl-profile__body { max-width: 820px; }
.hsfl-profile__section { margin: 0 0 48px; }
.hsfl-profile__section h2 {
  margin: 0 0 18px !important;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  font: 700 26px/1.2 Roboto, sans-serif !important;
  letter-spacing: -.01em !important;
  color: var(--hsfl-ink) !important;
  text-transform: none !important;
  position: relative;
}
.hsfl-profile__section h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 3px; background: var(--hsfl-accent); }
.hsfl-profile__section p { font: 400 17px/1.7 Roboto, sans-serif; color: #374151; margin: 0 0 16px; }
.hsfl-profile__tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.hsfl-profile__tags li { margin: 0 !important; padding: 8px 14px; background: #f3f4f6; border-left: 3px solid var(--hsfl-accent); font: 500 15px/1.3 Roboto, sans-serif; color: var(--hsfl-ink); list-style: none !important; }
.hsfl-profile__papers { margin: 0 !important; padding: 0 0 0 1.4em !important; }
.hsfl-profile__papers li { margin: 0 0 14px !important; padding-left: 6px; font: 400 15.5px/1.6 Roboto, sans-serif; color: #374151; }
.hsfl-profile__papers li::marker { color: #9ca3af; font-size: 13px; }
.hsfl-profile__papers a { color: #c8372a !important; word-break: break-word; }
.hsfl-profile__back { margin: 0 0 24px; }
@media (max-width: 700px) {
  .hsfl-profile__hero-inner { flex-direction: column; align-items: flex-start; gap: 24px; padding: 40px 24px; }
  .hsfl-profile__photo { flex-basis: auto; width: 160px; }
}

body.hsfl-section .hsfl-lede .textwidget :is(h2, h3, h4) { font-family: Roboto, sans-serif !important; letter-spacing: 0 !important; margin: 0 0 14px !important; }
/* the team plugin hides its grid until its own script runs; our CSS grid needs no script */
.amoteam-tiles, .amoteam-tiles * { visibility: visible !important; }

/* Team section on About Us */
.hsfl-team-section { margin: 24px 0 72px; scroll-margin-top: 100px; }
.hsfl-team-section__head { margin: 0 0 32px; }
.hsfl-team-section__head h2 {
  margin: 0 !important;
  font: 700 clamp(28px, 3.4vw, 42px)/1.12 Roboto, sans-serif !important;
  letter-spacing: -.015em !important;
  color: var(--hsfl-ink) !important;
  text-transform: none !important;
  position: relative;
  padding-bottom: 14px;
}
.hsfl-team-section__head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--hsfl-accent); }

/* ------------------------------------------------------------------ 6. alignment with the header */
/* Page-builder rows often centre content with empty spacer columns (~200px each side), which
   leaves figures and text inset from the header and hero. Drop the spacers and let the real
   columns share the full content width. */
body:not(.home) .panel-row-style:has(> .panel-grid-cell-empty),
body:not(.home) .panel-grid:has(> .panel-grid-cell-empty) {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body:not(.home) :is(.panel-row-style, .panel-grid) > .panel-grid-cell-empty { display: none !important; }
body:not(.home) :is(.panel-row-style, .panel-grid):has(> .panel-grid-cell-empty) > .panel-grid-cell:not(.panel-grid-cell-empty) {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0;
}
body:not(.home) :is(.panel-row-style, .panel-grid):has(> .panel-grid-cell-empty) { column-gap: 30px; }
body:not(.home) :is(.panel-row-style, .panel-grid):has(> .panel-grid-cell-empty) > .panel-grid-cell { margin-right: 0 !important; }
@media (max-width: 780px) {
  body:not(.home) :is(.panel-row-style, .panel-grid):has(> .panel-grid-cell-empty) > .panel-grid-cell:not(.panel-grid-cell-empty) { flex: 0 0 auto !important; width: 100% !important; margin-right: 0 !important; }
}
/* content edge = header edge: the header and heroes inset their content 24px inside 1200px */
@media (min-width: 1249px) {
  body:not(.home) #main .vision-row { padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
}
/* rows the page builder stretches to the full browser width put headings against the window edge;
   keep them on the same content edge as everything else */
body:not(.home) .panel-row-style[data-stretch-type] {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.hsfl-team-section + .hsfl-team-section { margin-top: 0; }
.hsfl-team-section--alumni .amoteam-tiles { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 28px 20px; }
.hsfl-team-section--alumni .amoteam-member-name { font-size: 15px !important; }
.hsfl-team-section--alumni .amoteam-member-subtitle { font-size: 13px !important; }
.hsfl-no-photo { display: block; width: 100%; height: 100%; background: #e5e7eb; }

/* ------------------------------------------------------------------ 7. news cards and hub */
.hsfl-ncard { margin: 0; min-width: 0; }
.hsfl-ncard__link { display: flex; flex-direction: column; height: 100%; color: inherit !important; text-decoration: none !important; }
/* whole image visible (no crop), on a blurred fill of the same image */
.hsfl-ncard__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a1628;
}
.hsfl-ncard__media::before {
  content: "";
  position: absolute;
  inset: -20px;
  /* The card sets background-image inline (so relative URLs resolve from the page);
     the blurred backdrop inherits it. */
  background-image: inherit;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(18px) brightness(.75);
  transform: scale(1.1);
}
.hsfl-ncard__media img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none !important;
  object-fit: contain;
  transition: transform .5s ease;
}
.hsfl-ncard__link:hover .hsfl-ncard__media img { transform: scale(1.03); }
.hsfl-ncard__media--empty { background: linear-gradient(135deg, #0a1628, #1b2c47); }
.hsfl-ncard__body { display: flex; flex-direction: column; flex: 1; padding: 16px 0 0; border-top: 3px solid var(--hsfl-accent); }
.hsfl-ncard__meta { margin: 0 0 8px !important; font: 600 12px/1.4 Roboto, sans-serif !important; letter-spacing: .1em; text-transform: uppercase; color: #6b7280 !important; }
.hsfl-ncard__title {
  margin: 0 0 8px !important;
  font: 700 18px/1.3 Roboto, sans-serif !important;
  letter-spacing: -.005em !important;
  color: var(--hsfl-ink) !important;
  text-transform: none !important;
  hyphens: none !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.hsfl-ncard__link:hover .hsfl-ncard__title { color: #c8372a !important; }
.hsfl-ncard__excerpt {
  margin: 0 0 14px !important;
  font: 400 15px/1.55 Roboto, sans-serif !important;
  color: var(--hsfl-muted) !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.hsfl-ncard__more { margin-top: auto; display: inline-flex; gap: 8px; font: 700 13px/1 Roboto, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #c8372a; transition: gap .2s ease; }
.hsfl-ncard__more::after { content: "\2192"; font-size: 17px; letter-spacing: 0; }
.hsfl-ncard__link:hover .hsfl-ncard__more { gap: 12px; }

/* featured (newest) post: wide, image left */
.hsfl-news__featured { margin: 0 0 48px; }
.hsfl-ncard--featured .hsfl-ncard__link { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 40px; align-items: stretch; }
.hsfl-ncard--featured .hsfl-ncard__body { border-top: 0; border-left: 3px solid var(--hsfl-accent); padding: 8px 0 8px 28px; justify-content: center; }
.hsfl-ncard--featured .hsfl-ncard__title { font-size: clamp(24px, 2.6vw, 34px) !important; line-height: 1.15 !important; -webkit-line-clamp: 4; }
.hsfl-ncard--featured .hsfl-ncard__excerpt { font-size: 17px !important; -webkit-line-clamp: 5; }
.hsfl-ncard--featured .hsfl-ncard__more { margin-top: 8px; }
@media (max-width: 800px) {
  .hsfl-ncard--featured .hsfl-ncard__link { grid-template-columns: 1fr; }
  .hsfl-ncard--featured .hsfl-ncard__body { border-left: 0; border-top: 3px solid var(--hsfl-accent); padding: 16px 0 0; }
}

/* year index and year sections */
.hsfl-news__years {
  position: sticky;
  top: 77px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  margin: 0 0 40px;
  padding: 14px 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
.hsfl-news__years span { margin-right: 10px; font: 700 12px/1 Roboto, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #6b7280; }
.hsfl-news__years a { padding: 6px 10px; font: 600 14px/1 Roboto, sans-serif; color: var(--hsfl-ink) !important; text-decoration: none !important; }
.hsfl-news__years a:hover { background: var(--hsfl-ink); color: #fff !important; }
.hsfl-news__year { margin: 0 0 56px; scroll-margin-top: 150px; }
.hsfl-news__year h2 {
  margin: 0 0 24px !important;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  font: 700 clamp(26px, 3vw, 36px)/1.1 Roboto, sans-serif !important;
  letter-spacing: -.015em !important;
  color: var(--hsfl-ink) !important;
  position: relative;
}
.hsfl-news__year h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 3px; background: var(--hsfl-accent); }
.hsfl-news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
@media (max-width: 1024px) { .hsfl-news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hsfl-news__grid { grid-template-columns: 1fr; } .hsfl-news__years { top: 77px; } }

/* links under a news post */
.hsfl-post-links { list-style: none !important; margin: 28px 0 0 !important; padding: 20px 0 0 !important; border-top: 1px solid #e5e7eb; display: flex; flex-wrap: wrap; gap: 14px 32px; }
.hsfl-post-links li { list-style: none !important; margin: 0 !important; }
body.single .entry-content .hsfl-post-links a.hsfl-link { text-decoration: none !important; color: #c8372a !important; }
body.single #content > .entry-header img { max-height: 560px; width: auto !important; max-width: 100%; margin: 0 auto; }
body.single #content > .entry-header figure { background: #f3f4f6; }

/* ------------------------------------------------------------------ 8. facility pages */
.hsfl-facility__intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; margin: 0 0 80px; }
.hsfl-facility__lede { margin: 0 0 20px !important; font: 400 clamp(20px, 2vw, 25px)/1.45 Roboto, sans-serif !important; letter-spacing: -.005em; color: var(--hsfl-ink) !important; }
.hsfl-facility__text p:not(.hsfl-facility__lede) { margin: 0 0 16px; font: 400 17px/1.7 Roboto, sans-serif; color: #374151; }
.hsfl-facility__photo { margin: 0; background: #f3f4f6; border-bottom: 4px solid var(--hsfl-accent); }
.hsfl-facility__photo img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.hsfl-facility__head { margin: 0 0 28px; }
.hsfl-facility__head h2, .hsfl-facility__cta h2 {
  margin: 0 !important;
  font: 700 clamp(28px, 3.4vw, 42px)/1.12 Roboto, sans-serif !important;
  letter-spacing: -.015em !important;
  text-transform: none !important;
}
.hsfl-facility__head h2 { color: var(--hsfl-ink) !important; }
.hsfl-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: #e5e7eb; border: 1px solid #e5e7eb; }
.hsfl-spec { display: flex; flex-direction: column; gap: 8px; padding: 28px 24px; background: #fff; }
.hsfl-spec__value { font: 700 clamp(30px, 3vw, 40px)/1 Roboto, sans-serif; letter-spacing: -.02em; color: var(--hsfl-ink); white-space: nowrap; }
.hsfl-spec__value::after { content: ""; display: block; width: 32px; height: 3px; margin-top: 14px; background: var(--hsfl-accent); }
.hsfl-spec__label { font: 500 14px/1.4 Roboto, sans-serif; color: var(--hsfl-muted); }
.hsfl-facility__caps { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 24px 0 0 !important; padding: 0 !important; list-style: none !important; }
.hsfl-facility__caps li { position: relative; margin: 0 !important; padding-left: 28px; font: 500 16px/1.5 Roboto, sans-serif; color: var(--hsfl-ink); list-style: none !important; }
.hsfl-facility__caps li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--hsfl-accent); font-weight: 700; }
.hsfl-facility__specs { margin: 0 0 88px; }
.hsfl-facility__cta { background: var(--hsfl-navy); color: #fff; margin-bottom: -72px; }
.hsfl-facility__cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px 56px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 64px 24px; box-sizing: border-box; }
.hsfl-facility__cta .hsfl-kicker { color: var(--hsfl-accent) !important; }
.hsfl-facility__cta h2 { color: #fff !important; margin-bottom: 12px !important; }
.hsfl-facility__cta p:not(.hsfl-kicker) { margin: 0 !important; font: 400 17px/1.6 Roboto, sans-serif !important; color: rgba(255, 255, 255, .82) !important; max-width: 46ch; }
.hsfl-facility__cta-actions { display: flex; align-items: center; gap: 20px 32px; flex-wrap: wrap; }
.hsfl-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; background: var(--hsfl-accent); color: #fff !important; font: 700 14px/1 Roboto, sans-serif; letter-spacing: .1em; text-transform: uppercase; text-decoration: none !important; transition: background .2s ease, gap .2s ease; }
.hsfl-btn::after { content: "\2192"; font-size: 18px; letter-spacing: 0; }
.hsfl-btn:hover { background: #e14b3b; gap: 14px; }
.hsfl-link--light { color: #fff !important; }
@media (max-width: 800px) {
  .hsfl-facility__intro { grid-template-columns: 1fr; gap: 32px; margin-bottom: 56px; }
  .hsfl-facility__photo { order: -1; }
  .hsfl-facility__specs { margin-bottom: 56px; }
  .hsfl-facility__cta { margin-bottom: -48px; }
  .hsfl-facility__cta-inner { padding: 48px 24px; }
}

/* ------------------------------------------------------------------ 9. project pages, Current Missions */
.hsfl-project__intro { max-width: 860px; margin: 0 0 72px; }
.hsfl-project__links { margin: 0 0 40px; }
.hsfl-project__links .hsfl-post-links { border-top: 0; padding-top: 0 !important; flex-direction: column; gap: 14px; }
.hsfl-project__links .hsfl-link { text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 600; }
body.page-id-385 #pg-385-1 > .panel-row-style { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 30px; }
body.page-id-385 #pg-385-1 > .panel-row-style > .panel-grid-cell { width: auto !important; margin: 0 !important; }
body.page-id-385 #pg-385-1 > .panel-row-style > .panel-grid-cell-empty { display: none !important; }
@media (max-width: 1024px) { body.page-id-385 #pg-385-1 > .panel-row-style { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { body.page-id-385 #pg-385-1 > .panel-row-style { grid-template-columns: 1fr; } }
/* same white image frame for every current-mission card */
body.page-id-385 #pg-385-1 .widget_sow-hero .sow-slider-base,
body.page-id-385 #pg-385-1 .widget_sow-hero .sow-slider-images,
body.page-id-385 #pg-385-1 .hsfl-mission-img__frame { aspect-ratio: 4 / 3; height: auto !important; min-height: 0 !important; background: #fff; overflow: hidden; }
body.page-id-385 #pg-385-1 .widget_sow-hero li.sow-slider-image { height: 100% !important; }
body.page-id-385 #pg-385-1 .widget_sow-hero .sow-slider-image-container { position: absolute !important; inset: 0; display: flex !important; align-items: center; justify-content: center; }
body.page-id-385 #pg-385-1 .widget_sow-hero .sow-slider-image-wrapper { padding: 0 !important; height: 100%; width: 100%; max-width: none !important; }
body.page-id-385 #pg-385-1 .widget_sow-hero .sow-slider-image-wrapper p { margin: 0 !important; height: 100%; }
body.page-id-385 #pg-385-1 .widget_sow-hero img,
body.page-id-385 #pg-385-1 .hsfl-mission-img__frame img { width: 100% !important; height: 100% !important; object-fit: contain; margin: 0 !important; }
body.page-id-385 #pg-385-1 .widget_sow-hero + .widget_sow-editor .textwidget h2 { margin: 0 0 6px !important; }
body.page-id-385 #pg-385-1 .widget_sow-hero + .widget_sow-editor .textwidget h2 a { color: var(--hsfl-ink) !important; text-decoration: none !important; }
body.page-id-385 #pg-385-1 .widget_sow-hero + .widget_sow-editor .textwidget h2 a:hover { color: #c8372a !important; }

/* ------------------------------------------------------------------ 10. content cleanup, About mission */
body.hsfl-section .hsfl-lede .textwidget,
body.hsfl-section .hsfl-lede .textwidget :is(p, span, strong, b, h2, h3, h4) { max-width: none !important; }
body:not(.home) .entry-content .textwidget :is(h1, h2, h3, h4, h5, h6) { font-family: Roboto, sans-serif !important; text-align: left; }
body:not(.home) .entry-content .textwidget p.hsfl-p { font: 400 17px/1.7 Roboto, sans-serif !important; color: #374151 !important; margin: 0 0 18px !important; text-align: left !important; }
body:not(.home) .entry-content .textwidget li { font: 400 17px/1.65 Roboto, sans-serif !important; color: #374151; margin-bottom: 8px; }
/* About: photo slider with the Donate button */
body.page-id-7763 #pg-7763-2 .sow-slider-image-wrapper { display: flex !important; align-items: flex-end; justify-content: center; min-height: 50vmin; padding: 0 20px 40px !important; box-sizing: border-box; }
body.page-id-7763 #pg-7763-2 .sow-hero-buttons { margin: 0 !important; }
body.page-id-7763 .textwidget h1 { font-size: clamp(24px, 2.4vw, 30px) !important; font-weight: 700 !important; color: var(--hsfl-ink) !important; margin: 32px 0 12px !important; }
/* Our Mission */
.hsfl-mission { margin: 8px 0 24px; }
.hsfl-mission__statement {
  margin: 0 0 48px !important;
  padding-left: 24px;
  border-left: 4px solid var(--hsfl-accent);
  font: 700 clamp(24px, 2.8vw, 36px)/1.25 Roboto, sans-serif !important;
  letter-spacing: -.015em;
  color: var(--hsfl-ink) !important;
  max-width: 40ch;
}
.hsfl-mission__sub { margin: 0 0 20px !important; font: 700 13px/1.2 Roboto, sans-serif !important; letter-spacing: .16em !important; text-transform: uppercase; color: #c8372a !important; }
.hsfl-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 0 48px; }
.hsfl-area { padding: 28px 24px; background: #f3f4f6; border-top: 3px solid var(--hsfl-accent); }
.hsfl-area__num { display: block; margin-bottom: 14px; font: 700 36px/1 Roboto, sans-serif; letter-spacing: -.02em; color: var(--hsfl-accent); }
.hsfl-area p { margin: 0 !important; font: 500 17px/1.5 Roboto, sans-serif !important; color: var(--hsfl-ink) !important; }
.hsfl-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.hsfl-checks li { position: relative; margin: 0 !important; padding-left: 30px; list-style: none !important; font: 400 17px/1.55 Roboto, sans-serif !important; color: #374151 !important; }
.hsfl-checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--hsfl-accent); font-weight: 700; }
@media (max-width: 780px) {
  .hsfl-areas, .hsfl-checks { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ 11. Research page */
.hsfl-research-video { margin: 24px 0 0 !important; }
.hsfl-video { position: relative; aspect-ratio: 16 / 9; background: #0a1628; }
.hsfl-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hsfl-pubs { margin: 72px 0 24px; padding-top: 48px; border-top: 1px solid #e5e7eb; scroll-margin-top: 100px; }
.hsfl-pubs__list h2 {
  margin: 36px 0 14px !important;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
  font: 700 clamp(22px, 2.4vw, 28px)/1.2 Roboto, sans-serif !important;
  color: var(--hsfl-ink) !important;
  position: relative;
}
.hsfl-pubs__list h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 40px; height: 3px; background: var(--hsfl-accent); }
.hsfl-pubs__list h3 { margin: 18px 0 8px !important; font: 700 13px/1.2 Roboto, sans-serif !important; letter-spacing: .14em; text-transform: uppercase; color: #c8372a !important; }
.hsfl-pubs__list ul { margin: 0 !important; padding-left: 1.2em !important; }
.hsfl-pubs__list li { margin: 0 0 12px !important; font: 400 15.5px/1.6 Roboto, sans-serif !important; color: #374151 !important; }
.hsfl-pubs__list a { color: #c8372a !important; word-break: break-word; }

/* ------------------------------------------------------------------ 12. Missions page, Research section bar */
.hsfl-missions__intro { max-width: 900px; margin: 0 0 64px; }
.hsfl-missions__group { margin: 0 0 72px; scroll-margin-top: 100px; }
.hsfl-mission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
@media (max-width: 1024px) { .hsfl-mission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hsfl-mission-grid { grid-template-columns: 1fr; gap: 40px; } }
/* figures: same 4:3 frame, whole image visible; renders on white get a light frame */
.hsfl-ncard__media--light { background: #f3f4f6; }
.hsfl-ncard__media--light::before { filter: blur(22px) brightness(1) saturate(.8); opacity: .55; }
.hsfl-ncard__media--light img { padding: 6%; box-sizing: border-box; }
.hsfl-mission-card .hsfl-ncard__excerpt { -webkit-line-clamp: 5; }
/* Research: section bar under the hero */
.hsfl-subnav {
  position: sticky;
  top: 77px;
  z-index: 20;
  margin: -64px 0 56px;   /* sit directly under the hero */
  background: var(--hsfl-navy);
  border-top: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 6px 16px rgba(10, 22, 40, .18);
}
.hsfl-subnav__inner { display: flex; max-width: 1200px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.hsfl-subnav__inner::-webkit-scrollbar { display: none; }
.hsfl-subnav a {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 22px;
  color: #fff !important;
  font: 500 14px/1.3 Roboto, sans-serif;
  text-decoration: none !important;
  white-space: nowrap;
  border-left: 1px solid rgba(255, 255, 255, .12);
  transition: background .2s ease;
}
.hsfl-subnav a:first-child { border-left: 0; }
.hsfl-subnav a::after { content: "\2193"; color: var(--hsfl-accent); }
.hsfl-subnav a:hover { background: rgba(255, 255, 255, .08); }
.hsfl-anchor { display: block; position: relative; top: -150px; visibility: hidden; }
@media (max-width: 600px) { .hsfl-subnav { margin: -40px 0 40px; } .hsfl-subnav a { padding: 14px 18px; font-size: 13px; } }
.hsfl-page-hero:has(+ .hsfl-subnav) { margin-bottom: 0 !important; }
.hsfl-subnav { margin-top: 0 !important; margin-bottom: 56px !important; }
@media (min-width: 900px) {
  .hsfl-subnav a { flex: 1 1 0; min-width: 0; white-space: normal; padding: 16px 18px; }
}
@media (max-width: 600px) { .hsfl-subnav { margin-bottom: 40px !important; } }
body.hsfl-section .hsfl-subnav.hsfl-bleed { position: sticky; top: 77px; }
body.hsfl-section .hsfl-subnav.hsfl-bleed { position: relative; top: 0; }
.hsfl-video-section { max-width: 900px; margin: 56px 0 24px; }
.hsfl-profile__figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.hsfl-profile__figure { margin: 0; }
.hsfl-profile__figure img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; background: #f3f4f6; }
.hsfl-profile__figure figcaption { margin-top: 8px; font: 400 14px/1.45 Roboto, sans-serif; color: #6b7280; }
.hsfl-missions__intro .hsfl-facility__lede :is(p, h1, h2, h3) { font: inherit !important; color: inherit !important; margin: 0 0 12px !important; }
.hsfl-missions__intro .hsfl-facility__lede a { color: #c8372a !important; }

/* ------------------------------------------------------------------ 13. About logos, Contact page */
.hsfl-about-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 48px; align-items: stretch; margin: 0 0 24px; }
.hsfl-about-intro > p.hsfl-p { margin: 0 !important; }
.hsfl-unit-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; height: 0; min-height: 100%; }
.hsfl-unit-logo { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; padding: 18px; background: #fff; border: 1px solid #e5e7eb; transition: border-color .2s ease, box-shadow .2s ease; }
.hsfl-unit-logo:hover { border-color: var(--hsfl-accent); box-shadow: 0 6px 16px rgba(10, 22, 40, .1); }
.hsfl-unit-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 800px) { .hsfl-about-intro { grid-template-columns: 1fr; gap: 28px; } .hsfl-unit-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto; height: auto; min-height: 0; } .hsfl-unit-logo { aspect-ratio: 3 / 2; } }
@media (max-width: 480px) { .hsfl-unit-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hsfl-contact__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 32px 0 80px; }
.hsfl-contact__card { display: flex; flex-direction: column; gap: 8px; padding: 28px 24px; background: #f3f4f6; border-top: 3px solid var(--hsfl-accent); }
.hsfl-contact__card .fa { font-size: 26px; color: var(--hsfl-accent); margin-bottom: 6px; }
.hsfl-contact__card h3 { margin: 0 0 4px !important; font: 700 13px/1.2 Roboto, sans-serif !important; letter-spacing: .14em; text-transform: uppercase; color: #6b7280 !important; }
.hsfl-contact__card a, .hsfl-contact__card span { font: 500 16px/1.55 Roboto, sans-serif; color: var(--hsfl-ink); text-decoration: none; word-break: break-word; }
.hsfl-contact__card > a { font-size: 18px; font-weight: 700; }
.hsfl-contact__card > span + span, .hsfl-contact__card > a + span { font-size: 14px; color: #6b7280; }
.hsfl-contact__card a:hover { color: #c8372a !important; }
.hsfl-contact__social { display: flex; flex-direction: column; gap: 4px; }
.hsfl-contact__social a { font-weight: 600; }
.hsfl-visit { margin: 0 0 40px; }
.hsfl-visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.hsfl-visit__steps { counter-reset: step; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.hsfl-visit__steps > li { counter-increment: step; position: relative; margin: 0 0 32px !important; padding-left: 56px; list-style: none !important; }
.hsfl-visit__steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -2px; font: 700 28px/1 Roboto, sans-serif; color: var(--hsfl-accent); }
.hsfl-visit__steps h3 { margin: 0 0 8px !important; font: 700 20px/1.3 Roboto, sans-serif !important; color: var(--hsfl-ink) !important; }
.hsfl-visit__steps p, .hsfl-visit__steps li li { font: 400 16px/1.6 Roboto, sans-serif !important; color: #374151 !important; margin: 0 0 8px !important; }
.hsfl-visit__steps ul { margin: 0 0 10px !important; padding-left: 1.1em !important; }
.hsfl-visit__steps .hsfl-link { margin-right: 20px; font-size: 13px; }
.hsfl-visit__map { position: relative; aspect-ratio: 4 / 3; background: #e5e7eb; border-bottom: 4px solid var(--hsfl-accent); }
.hsfl-visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 1024px) { .hsfl-contact__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .hsfl-visit__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hsfl-contact__cards { grid-template-columns: 1fr; } }
.hsfl-unit-logo--higp { }
.hsfl-unit-logo--coe { background: var(--hsfl-navy); border-color: var(--hsfl-navy); }
.hsfl-visit__photo { margin: 16px 0 0; }
.hsfl-visit__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hsfl-visit__photo figcaption { margin-top: 8px; font: 400 14px/1.45 Roboto, sans-serif; color: #6b7280; }
.hsfl-profile__figures:has(> .hsfl-profile__figure:only-child) { grid-template-columns: minmax(0, 520px); }
.hsfl-profile__section p, .hsfl-profile__section li { hyphens: none !important; -webkit-hyphens: none !important; }
.hsfl-section-intro { max-width: 900px; margin: 0 0 48px; }
.hsfl-section-intro .hsfl-facility__lede { margin: 0 0 16px !important; }
.hsfl-section-intro a { color: #c8372a !important; }
.hsfl-contact__card > a.hsfl-contact__map-link { margin-top: 10px; font: 700 13px/1 Roboto, sans-serif !important; letter-spacing: .1em; text-transform: uppercase; color: #c8372a !important; }
.footer-widgets .hsfl-footer-map a { display: inline-flex; gap: 8px; font: 700 12px/1 Roboto, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--hsfl-accent) !important; text-decoration: none !important; }
.footer-widgets .hsfl-footer-map a::after { content: "\2192"; font-size: 15px; letter-spacing: 0; }
.footer-widgets .hsfl-footer-map a:hover { color: #fff !important; }
.hsfl-footer-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; clear: both; }
.hsfl-footer-logo { display: flex; align-items: center; justify-content: center; height: 54px; padding: 0 4px; transition: opacity .2s ease; }
.hsfl-footer-logo:hover { opacity: .8; }
.hsfl-footer-logo img { max-height: 100%; width: auto; max-width: 150px; object-fit: contain; }
.hsfl-footer-logo--soest { background: #fff; padding: 4px; }
.hsfl-footer-logo--higp img { max-width: 230px; max-height: 26px; }

/* ------------------------------------------------------------------ 14. Helpful Links, Ground Stations */
.hsfl-links .hsfl-facility__lede { max-width: 900px; margin-bottom: 48px !important; }
.hsfl-links__group { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; padding: 40px 0; border-top: 1px solid #e5e7eb; }
.hsfl-links__group h2 { margin: 0 0 18px !important; font: 700 26px/1.2 Roboto, sans-serif !important; color: var(--hsfl-ink) !important; text-align: left !important; }
.hsfl-links__group ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.hsfl-links__group li { margin: 0 !important; list-style: none !important; border-bottom: 1px solid #eef0f3; }
.hsfl-links__group li a { display: flex; flex-direction: column; gap: 2px; padding: 14px 32px 14px 0; position: relative; text-decoration: none !important; }
.hsfl-links__group li a::after { content: "\2197"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--hsfl-accent); font-size: 18px; transition: transform .2s ease; }
.hsfl-links__group li a:hover::after { transform: translate(3px, -50%); }
.hsfl-links__title { font: 600 17px/1.4 Roboto, sans-serif; color: var(--hsfl-ink); }
.hsfl-links__group li a:hover .hsfl-links__title { color: #c8372a; }
.hsfl-links__host { font: 400 13px/1.3 Roboto, sans-serif; color: #6b7280; }
.hsfl-links__figure { margin: 0; }
.hsfl-links__figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f3f4f6; border-bottom: 4px solid var(--hsfl-accent); }
.hsfl-links__figure figcaption { margin-top: 8px; font: 400 14px/1.45 Roboto, sans-serif; color: #6b7280; }
@media (max-width: 800px) { .hsfl-links__group { grid-template-columns: 1fr; gap: 24px; } .hsfl-links__figure { order: -1; } }

.hsfl-gs .hsfl-facility__lede { margin-bottom: 24px !important; }
.hsfl-gs__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 0 0 40px; }
.hsfl-gs__card { display: flex; flex-direction: column; gap: 6px; padding: 24px; background: #f3f4f6; border-top: 3px solid var(--hsfl-accent); text-decoration: none !important; transition: box-shadow .2s ease; }
.hsfl-gs__card:hover { box-shadow: 0 8px 20px rgba(10, 22, 40, .12); }
.hsfl-gs__card-name { font: 700 20px/1.3 Roboto, sans-serif; color: var(--hsfl-ink); }
.hsfl-gs__card-bands { font: 600 13px/1.3 Roboto, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #c8372a; }
.hsfl-gs__map { margin: 0 0 72px; }
.hsfl-gs__map img { display: block; width: 100%; height: auto; }
.hsfl-gs__map figcaption { margin-top: 8px; font: 400 14px/1.45 Roboto, sans-serif; color: #6b7280; }
.hsfl-gs__station { margin: 0 0 72px; padding-top: 48px; border-top: 1px solid #e5e7eb; scroll-margin-top: 100px; }
.hsfl-gs__station .hsfl-facility__head h2 { color: var(--hsfl-ink) !important; }
.hsfl-gs__sub { margin: 8px 0 0 !important; font: 500 18px/1.4 Roboto, sans-serif !important; color: var(--hsfl-muted) !important; }
.hsfl-gs__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-bottom: 36px; }
.hsfl-gs__text p { font: 400 17px/1.7 Roboto, sans-serif !important; color: #374151 !important; margin: 0 0 16px !important; }
.hsfl-gs__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hsfl-gs__gallery a:only-child, .hsfl-gs__gallery a:first-child:nth-last-child(3) { grid-column: 1 / -1; }
.hsfl-gs__gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f3f4f6; }
.hsfl-gs__specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.hsfl-gs__spec { padding: 24px; background: #f3f4f6; border-top: 3px solid var(--hsfl-accent); }
.hsfl-gs__spec h4 { margin: 0 0 14px !important; font: 700 13px/1.2 Roboto, sans-serif !important; letter-spacing: .14em; text-transform: uppercase; color: #6b7280 !important; }
.hsfl-gs__spec dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.hsfl-gs__spec dt { font: 600 14px/1.45 Roboto, sans-serif; color: var(--hsfl-ink); }
.hsfl-gs__spec dd { margin: 0; font: 400 14px/1.45 Roboto, sans-serif; color: #374151; }
.hsfl-gs__spec dd.hsfl-gs__note { grid-column: 1 / -1; color: #6b7280; font-style: italic; }
@media (max-width: 800px) { .hsfl-gs__grid { grid-template-columns: 1fr; } }
body.hsfl-section .panel-grid-cell .textwidget .hsfl-gs .hsfl-facility__head .hsfl-kicker { color: #c8372a !important; }
body.hsfl-section .panel-grid-cell .textwidget .hsfl-gs .hsfl-facility__head h2 { font: 700 clamp(28px, 3.4vw, 40px)/1.15 Roboto, sans-serif !important; letter-spacing: -.015em !important; color: var(--hsfl-ink) !important; margin: 0 !important; }
body.hsfl-section .panel-grid-cell .textwidget .hsfl-gs .hsfl-gs__sub { font: 500 18px/1.4 Roboto, sans-serif !important; color: #4b5563 !important; }

/* 15. ADCS Test Facility - EDU section (bottom of /adcs/) */
.hsfl-edu { margin: 72px 0 24px; padding-top: 48px; border-top: 1px solid #e5e7eb; scroll-margin-top: 100px; }
.hsfl-edu__intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; margin: 0 0 36px; }
.hsfl-edu__text p { font: 400 17px/1.7 Roboto, sans-serif !important; color: #374151 !important; margin: 0 0 14px !important; text-align: left !important; }
.hsfl-edu__text .hsfl-edu__lead { font-weight: 600 !important; color: var(--hsfl-ink) !important; }
.hsfl-edu__figure { margin: 0; }
.hsfl-edu__figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.hsfl-edu__figure figcaption { margin-top: 8px; font: 400 14px/1.4 Roboto, sans-serif; color: #6b7280; }
.hsfl-edu__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 0 0 28px; }
.hsfl-edu__card { padding: 28px 24px; background: #f3f4f6; border-top: 3px solid var(--hsfl-accent); }
.hsfl-edu__num { display: block; font: 700 13px/1 Roboto, sans-serif; letter-spacing: .12em; color: #c8372a; margin-bottom: 10px; }
body.hsfl-section .panel-grid-cell .textwidget .hsfl-edu__card h3, .hsfl-edu__card h3 { font: 700 21px/1.3 Roboto, sans-serif !important; color: var(--hsfl-ink) !important; margin: 0 0 10px !important; }
.hsfl-edu__card p, .hsfl-edu__card li { font: 400 15.5px/1.65 Roboto, sans-serif !important; color: #374151 !important; text-align: left !important; }
.hsfl-edu__card p { margin: 0 0 10px !important; }
.hsfl-edu__card ul { margin: 6px 0 0 18px !important; padding: 0 !important; }
.hsfl-edu__note { max-width: 900px; font: 400 16px/1.7 Roboto, sans-serif !important; color: #4b5563 !important; text-align: left !important; }
@media (max-width: 800px) { .hsfl-edu__intro { grid-template-columns: 1fr; gap: 24px; } }

/* 16. Vision page */
.hsfl-vision__sectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; list-style: none !important; margin: 8px 0 56px !important; padding: 0 !important; }
.hsfl-vision__sectors li { margin: 0 !important; padding: 16px 18px; background: #f3f4f6; border-left: 3px solid #c8372a; font: 600 15.5px/1.45 Roboto, sans-serif; color: var(--hsfl-ink); }
.hsfl-vision__block { margin: 0 0 56px; }
.hsfl-vision__aims { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.hsfl-vision__aim { padding: 26px 24px; background: #f3f4f6; border-top: 3px solid var(--hsfl-accent); }
.hsfl-vision__aim p { margin: 0 !important; font: 400 16.5px/1.6 Roboto, sans-serif !important; color: #374151 !important; }
.hsfl-vision__intro { max-width: 900px; margin: 0 0 24px !important; font: 400 17px/1.7 Roboto, sans-serif !important; color: #374151 !important; }
.hsfl-vision__areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.hsfl-vision__area { padding: 26px 24px; border: 1px solid #e5e7eb; border-top: 3px solid #c8372a; background: #fff; }
.hsfl-vision__area h3 { margin: 0 0 12px !important; font: 700 20px/1.3 Roboto, sans-serif !important; color: var(--hsfl-ink) !important; }
.hsfl-vision__area ul { margin: 0 0 0 18px !important; padding: 0 !important; }
.hsfl-vision__area li { margin: 0 0 8px !important; font: 400 15.5px/1.55 Roboto, sans-serif !important; color: #374151 !important; }
.hsfl-vision__aims { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .hsfl-vision__aims { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hsfl-vision__aims { grid-template-columns: 1fr; } }

/* 17. Artemis CubeSat Kit page */
.hsfl-artemis__intro, .hsfl-artemis__split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: start; margin: 0 0 56px; }
.hsfl-artemis p:not(.hsfl-kicker) { font: 400 17px/1.7 Roboto, sans-serif !important; color: #374151 !important; text-align: left !important; }
.hsfl-artemis p.hsfl-facility__lede { font-size: 21px !important; line-height: 1.55 !important; color: var(--hsfl-ink) !important; }
.hsfl-artemis__figure { margin: 0; padding: 24px; background: #f3f4f6; border-radius: 4px; }
.hsfl-artemis__figure img { display: block; width: 100%; max-height: 420px; object-fit: contain; }
.hsfl-artemis__block { margin: 0 0 56px; }
.hsfl-artemis__parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hsfl-artemis__part, .hsfl-artemis__contact, .hsfl-artemis__res { padding: 24px; background: #f3f4f6; border-top: 3px solid var(--hsfl-accent); }
.hsfl-artemis h3 { margin: 0 0 8px !important; font: 700 19px/1.3 Roboto, sans-serif !important; color: var(--hsfl-ink) !important; }
.hsfl-artemis__part p, .hsfl-artemis__contact p, .hsfl-artemis__res p { font-size: 15.5px !important; line-height: 1.6 !important; margin: 0 0 10px !important; }
.hsfl-artemis__contacts { display: grid; gap: 16px; }
.hsfl-artemis__contact .hsfl-kicker { margin: 0 0 6px !important; color: #c8372a !important; font: 700 12px/1.2 Roboto, sans-serif !important; letter-spacing: .12em !important; text-transform: uppercase; }
.hsfl-artemis__resources { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.hsfl-artemis__res ul { margin: 0 !important; }
.hsfl-artemis .hsfl-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 14px 22px; background: #c8372a; color: #fff !important; font: 600 15px/1 Roboto, sans-serif; letter-spacing: .02em; text-decoration: none !important; transition: background .2s ease, gap .2s ease; }
.hsfl-artemis .hsfl-btn::after { content: "\2192"; }
.hsfl-artemis .hsfl-btn:hover { background: #e14b3b; gap: 14px; }
@media (max-width: 900px) {
  .hsfl-artemis__intro, .hsfl-artemis__split { grid-template-columns: 1fr; gap: 28px; }
  .hsfl-artemis__parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .hsfl-artemis__parts { grid-template-columns: 1fr; } }
