/* ------------------------------------------------------------
   SecureData Lab — simple styles for index, research and team pages
   ------------------------------------------------------------ */
:root {
  --navy: #022452;
  --blue: #1f5e96;
  --cyan: #3a8fb0;
  --orange: #e8743b;
  --ink: #151a22;
  --muted: #4d5663;
  --line: #dde3ea;
  --bg: #f2f5f8;
  --tint: #e6edf4;
  --white: #fff;
  --paper: #fafafa;

  /* Point the Webflow theme colours at the same palette */
  --color-primary: var(--blue);
  --color-secondary: var(--navy);
  --color-accent: var(--navy);
  --color-primary-transparent: rgba(31, 94, 150, 0.1);
  --text-primary: var(--ink);
  --text-secondary: var(--muted);
  --body-color: var(--paper);
  --border-subtle: var(--line);
}

/* Top bar and footer links */
.navbar_link,
.w-nav-link {
  color: var(--ink);
}

.navbar_link:hover,
.w-nav-link:hover,
.navbar_link.w--current,
.w-nav-link.w--current {
  color: var(--blue);
}

.menu-icon_line-top,
.menu-icon_line-middle,
.menu-icon_line-bottom {
  background-color: var(--navy);
}

.footer_credit-text,
.footer_legal-link {
  color: var(--navy);
}

.footer_legal-link:hover {
  color: var(--blue);
}

.site {
  font-family: Inter, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  padding-top: var(--nav-h, 150px);
}

.site :where(h1, h2, h3) {
  font-family: Sora, sans-serif;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}

:where(.site) p {
  margin: 0;
}

.s-container {
  width: min(64rem, 100% - 2.5rem);
  margin-inline: auto;
}

/* Title band */
.s-band {
  position: relative;
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 2.5rem 0;
}

.s-band h1 {
  color: #fff;
  font-weight: 400;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
}

.s-band p {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

.s-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 55%, var(--orange) 100%);
}

/* Sections */
.s-section {
  padding: 4rem 0;
}

.s-section--white {
  background: var(--white);
}

.s-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 4px solid var(--navy);
  margin-bottom: 2rem;
}

.s-heading h2 {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
}

.s-heading--blue {
  border-bottom-color: var(--blue);
}

.s-heading--cyan {
  border-bottom-color: var(--cyan);
}

.s-heading--orange {
  border-bottom-color: var(--orange);
}

.s-text {
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.s-text + .s-text {
  margin-top: 1rem;
}

.s-link {
  color: var(--blue) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Buttons */
.s-btn {
  display: inline-block;
  padding: 0.8rem 1.45rem;
  background: var(--blue);
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.s-btn:hover {
  background: var(--navy);
}

.s-btn--outline {
  background: transparent;
  color: var(--blue) !important;
  border: 2px solid var(--blue);
  padding: calc(0.8rem - 2px) calc(1.45rem - 2px);
}

.s-btn--outline:hover {
  background: var(--blue);
  color: #fff !important;
}

.s-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Home: intro */
.s-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.s-intro h2,
.s-intro--top h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  margin-bottom: 1rem;
}

.s-intro img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  display: block;
}

/* Home: feature cards — images share one height so they line up */
.s-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.s-feature {
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.s-feature img {
  width: 100%;
  height: 13rem;
  object-fit: cover;
  display: block;
}

.s-feature__body {
  flex: 1;
  padding: 1.5rem;
  border-top: 4px solid var(--orange);
}

.s-feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.s-feature p {
  color: var(--muted);
  font-size: 0.95rem;
}

.s-feature p + p {
  margin-top: 0.75rem;
}

/* Home: FAQ */
.s-faq {
  border-top: 1px solid var(--line);
}

.s-faq details {
  border-bottom: 1px solid var(--line);
}

.s-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-family: Sora, sans-serif;
  font-size: 1.05rem;
}

.s-faq summary::-webkit-details-marker {
  display: none;
}

.s-faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--orange);
}

.s-faq details[open] summary::after {
  content: "\2212";
}

.s-faq__answer {
  padding: 0 0 1.25rem;
  color: var(--muted);
  max-width: 50rem;
}

.s-faq__answer p + p,
.s-faq__answer p + ul,
.s-faq__answer ul + p {
  margin-top: 0.75rem;
}

.s-faq__answer ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

/* Home: documents */
.s-docs {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.s-docs li {
  border-bottom: 1px solid var(--line);
}

.s-docs a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
  text-decoration: none;
  color: var(--ink);
}

.s-docs a:hover {
  color: var(--blue);
}

.s-docs small {
  flex: none;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Home: funders */
.s-funders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.s-funder {
  text-decoration: none;
  color: var(--ink);
}

.s-funder__logo {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.s-funder__logo img {
  height: 4.5rem;
  width: 10rem;
  max-width: 100%;
  object-fit: contain;
}

.s-funder strong {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.s-funder span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Research: jump links */
.s-jump {
  background: var(--blue);
}

.s-jump ul {
  list-style: none;
  margin: 0;
  padding: 1.1rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 3rem;
}

.s-jump a {
  color: #fff !important;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.s-jump a:hover {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Research: featured item */
.s-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
}

.s-featured img {
  width: 100%;
  height: 100%;
  min-height: 20rem;
  object-fit: cover;
  display: block;
}

.s-featured .s-item {
  padding: 2.5rem;
}

/* Research: items (briefs, papers, projects) */
.s-list {
  display: grid;
  gap: 1.25rem;
}

.s-item {
  background: var(--white);
  padding: 2rem 2.25rem;
}

.s-item__type {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.s-item__type::before {
  flex: none;
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  color: var(--blue);
}

.s-item--cyan .s-item__type::before {
  color: var(--cyan);
}

.s-item--orange .s-item__type::before {
  color: var(--orange);
}

.s-item h3 {
  margin-top: 0.75rem;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
}

.s-item__id {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.s-item__authors {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.s-item__pub {
  margin-top: 0.75rem !important;
  font-size: 0.95rem;
  color: var(--ink);
}

.s-item__abstract {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.975rem;
}

.s-item__keywords {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.s-item details {
  margin-top: 1rem;
}

.s-item details summary {
  cursor: pointer;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
}

.s-item details .s-item__abstract {
  margin-top: 0.75rem;
}

/* Projects grid */
.s-projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.s-projects .s-item h3 {
  font-size: 1.2rem;
}

.s-projects .s-item--wide {
  grid-column: 1 / -1;
}

/* Team */
.s-people {
  display: grid;
  gap: 1.5rem;
}

.s-person {
  display: grid;
  grid-template-columns: 15rem 1fr;
  background: var(--white);
}

.s-person img {
  width: 100%;
  height: 100%;
  min-height: 19rem;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.s-person__body {
  padding: 2rem 2.25rem;
}

.s-person h2 {
  font-size: 1.6rem;
}

.s-person__role {
  margin-top: 0.35rem !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.s-person__bio {
  margin-top: 1rem !important;
  color: var(--muted);
}

.s-person__contact {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.s-person__contact li + li {
  margin-top: 0.25rem;
}

.s-person__contact span {
  display: inline-block;
  min-width: 4.5rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .s-person {
    grid-template-columns: 1fr;
  }
  .s-person img {
    min-height: 0;
    height: 18rem;
  }
  .s-person__body {
    padding: 1.5rem;
  }
}

/* Subpages (project pages) */
.s-crumb {
  margin-bottom: 1.5rem !important;
  font-size: 0.9rem;
  color: var(--muted);
}

.s-subhead {
  margin: 3rem 0 1.25rem !important;
  font-size: 1.3rem;
}

.s-subhead:first-of-type {
  margin-top: 0 !important;
}

.s-intro--top {
  align-items: start;
}

.s-facts {
  list-style: none;
  margin: 0;
  padding: 1.5rem 1.75rem;
  background: var(--bg);
  border-top: 4px solid var(--orange);
}

.s-facts li {
  padding: 0.75rem 0;
  font-size: 0.975rem;
}

.s-facts li + li {
  border-top: 1px solid var(--line);
}

.s-facts span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.s-names {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 2rem;
}

.s-names strong {
  display: block;
  font-weight: 600;
}

.s-names li {
  font-size: 0.875rem;
  color: var(--muted);
}

.s-names strong {
  font-size: 1rem;
  color: var(--ink);
}

.s-talks,
.s-plain {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.s-talks li + li,
.s-plain li + li {
  margin-top: 0.4rem;
}

.s-docs__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
  color: var(--ink);
}

.s-docs__row small {
  flex: none;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.s-features--text .s-feature__body {
  border-top: 0;
}

.s-features--text .s-feature {
  border-top: 4px solid var(--cyan);
}

/* Responsive */
@media (max-width: 991px) {
  .s-intro,
  .s-featured {
    grid-template-columns: 1fr;
  }
  .s-featured img {
    min-height: 0;
    height: 16rem;
  }
  .s-features {
    grid-template-columns: 1fr 1fr;
  }
  .s-names {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .s-section {
    padding: 3rem 0;
  }
  .s-intro img {
    height: 14rem;
  }
  .s-features,
  .s-funders,
  .s-projects,
  .s-names {
    grid-template-columns: 1fr;
  }
  .s-docs__row {
    flex-direction: column;
    gap: 0.2rem;
  }
  .s-item,
  .s-featured .s-item {
    padding: 1.5rem;
  }
  .s-jump ul {
    gap: 0.5rem 1.5rem;
  }
  .s-docs a {
    flex-direction: column;
    gap: 0.2rem;
  }
}

/* Research: condensed policy briefs */
.s-list--compact {
  gap: 0.75rem;
}

.s-item--compact {
  padding: 1.35rem 1.75rem;
}

.s-item--compact h3 {
  margin-top: 0.5rem;
  font-size: 1.15rem;
}

.s-item--compact .s-item__authors {
  margin-top: 0.4rem;
  font-size: 0.78rem;
}

.s-item--compact .s-item__abstract {
  margin-top: 0.6rem;
  font-size: 0.925rem;
  line-height: 1.55;
}

.s-item--compact .s-actions {
  margin-top: 0.9rem;
}

.s-btn--small {
  padding: 0.6rem 1.05rem;
  font-size: 0.72rem;
}


@media (max-width: 640px) {
}

.s-intro .s-heading h2 {
  margin-bottom: 0;
}

/* Home: landing (centered title with overlapping pictures) */
.s-landing {
  background: var(--paper);
  padding: 4rem 0 4.5rem;
  text-align: center;
}

.s-landing__title {
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy) !important;
}

.s-landing__subtitle {
  margin-top: 0.75rem !important;
  font-family: Sora, sans-serif;
  font-size: clamp(1.15rem, 0.95rem + 1vw, 1.75rem);
  font-weight: 500;
  color: var(--ink);
}

.s-landing__visual {
  position: relative;
  width: min(26rem, 100%);
  aspect-ratio: 26 / 23;
  margin: 3rem auto 0;
}

.s-landing__img {
  position: absolute;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(2, 36, 82, 0.18);
}

.s-landing__img--back {
  left: 0;
  bottom: 0;
  width: 62%;
  height: 80%;
}

.s-landing__img--front {
  right: 0;
  top: 0;
  width: 66%;
  height: 72%;
}

.s-landing__tagline {
  max-width: 40rem;
  margin: 3rem auto 0 !important;
  font-family: Sora, sans-serif;
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.7rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.s-actions--center {
  justify-content: center;
  margin-top: 2rem;
}

.s-heading--center {
  justify-content: center;
  text-align: center;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 2.5rem;
}

.s-heading--center h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.9rem auto 0;
  background: var(--orange);
}

/* Keep the footer at the bottom on short pages (e.g. Reservation) */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper > .site {
  flex: 1 0 auto;
}

/* Mobile menu: open state in palette colours */
.w-nav-button.w--open {
  background-color: var(--tint);
}

.w-nav-menu {
  background-color: var(--paper);
}

/* Compact top bar on tablets and phones */
@media (max-width: 991px) {
  .navbar_logo {
    width: 5.5rem;
  }
  .navbar_link {
    font-size: 1.05rem;
  }
}

@media (max-width: 767px) {
  .navbar_component {
    min-height: 0;
    padding: 0 1rem;
  }
  .navbar_logo {
    width: 4.25rem;
  }
  .navbar_logo-link {
    margin-right: 0;
  }
  .s-landing {
    padding: 2.5rem 0 3rem;
  }
  .s-landing__visual {
    width: min(20rem, 100%);
    margin-top: 2rem;
  }
  .s-landing__tagline {
    margin-top: 2rem !important;
  }
  .s-actions--center .s-btn {
    flex: 1 1 100%;
    text-align: center;
  }
  .s-band {
    padding: 1.75rem 0;
  }
  .s-heading {
    margin-bottom: 1.5rem;
  }
  .s-jump ul {
    gap: 0.5rem 1.5rem;
    padding: 0.9rem 0;
  }
  .s-person__contact span {
    min-width: 3.75rem;
  }
}

@media (max-width: 479px) {
  .navbar_component {
    padding-top: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Section links: keep headings clear of the fixed top bar */
.site [id] {
  scroll-margin-top: calc(var(--nav-h, 150px) + 0.5rem);
}

/* Pages without a title bar (Reservation): white background throughout */
.site--white {
  background: var(--white);
}

/* Team: equal card heights and identical photo size */
.s-people {
  grid-auto-rows: 1fr;
}

.s-person {
  align-items: stretch;
}

.s-person img {
  width: 15rem;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .s-people {
    grid-auto-rows: auto;
  }
  .s-person img {
    width: 100%;
    height: 20rem;
  }
}

/* Comfortable tap targets for small links */
.footer_legal-link {
  display: inline-block;
  padding: 0.6rem 0;
}

.s-item details summary {
  padding: 0.5rem 0;
}

/* Narrow text column (Terms of Use) */
.s-container--narrow {
  width: min(48rem, 100% - 2.5rem);
}

.s-container--narrow .s-subhead {
  margin-top: 2.25rem !important;
  font-size: 1.2rem;
}

.s-container--narrow .s-text {
  font-size: 1rem;
  max-width: none;
}

/* Desktop menu links: larger tap area for touch laptops and tablets */
@media (min-width: 992px) {
  .navbar_link {
    padding: 0.75rem 0;
  }
}
