/* Wren Sensing launch site: styles for the approved page content.
   Builds on the colleague's site.css (layout, header, footer, buttons). */

:root {
  --wren-sky: #bee5fd;
  --wren-emerald: #01814e;
  --wren-ink-soft: #3b4670;
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.65;
}

/* Use the 17 KB web copy of gradient 09 instead of the 1.3 MB master. */
.brand-panel {
  background-image: url("../images/gradient-09.jpg");
}

/* Header: room for six links and the partnership action. */
.site-header .navbar-nav .nav-link {
  font-weight: 500;
}

.btn-wren-sm {
  --bs-btn-padding-x: 1.4rem;
  --bs-btn-padding-y: 0.7rem;
  --bs-btn-font-size: 1rem;
  width: auto;
  min-height: 0;
}

.btn-outline-wren {
  --bs-btn-color: var(--wren-midnight);
  --bs-btn-border-color: var(--wren-midnight);
  --bs-btn-hover-color: var(--wren-cotton);
  --bs-btn-hover-bg: var(--wren-midnight);
  --bs-btn-hover-border-color: var(--wren-midnight);
  --bs-btn-active-color: var(--wren-cotton);
  --bs-btn-active-bg: var(--wren-midnight);
  --bs-btn-border-radius: 0.25rem;
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.4rem;
  --bs-btn-padding-y: 0.7rem;
}

/* Hero */
.page-hero {
  padding-block: clamp(3rem, 6vw, 6rem) clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--bs-border-color);
}

.page-hero .page-title {
  max-width: 22ch;
}

.page-hero p {
  max-width: 62ch;
  font-size: 1.125rem;
}

.stage-line {
  margin: 1.75rem 0;
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.35rem 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  background: #fff;
  font-size: 0.95rem !important;
  font-weight: 600;
}

.stage-badge .dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--wren-emerald);
}

.page-hero .stage-detail {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  color: var(--wren-ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 1.75rem 0 0;
}

.text-action {
  font-weight: 600;
}

.jump-nav .nav {
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.jump-nav .nav-link {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--wren-midnight);
  border-radius: 999px;
  color: var(--wren-midnight);
  background: rgb(255 255 255 / 70%);
  font-weight: 500;
}

.jump-nav .nav-link:hover {
  background: var(--wren-midnight);
  color: var(--wren-cotton);
}

/* Content sections */
.content-section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
  scroll-margin-top: 1rem;
}

.content-section + .content-section {
  border-top: 1px solid var(--bs-border-color);
}

.section-white {
  background: #fff;
}

.section-lavender {
  background: #eeeefc;
}

.section-dark {
  background: var(--wren-midnight);
  color: var(--wren-cotton);
  border-top: 0 !important;
}

.section-dark a:not(.btn) {
  color: var(--wren-cotton);
}

.section-dark .btn-wren {
  --bs-btn-color: var(--wren-midnight);
  --bs-btn-bg: var(--wren-cotton);
  --bs-btn-border-color: var(--wren-cotton);
  --bs-btn-hover-color: var(--wren-midnight);
  --bs-btn-hover-bg: var(--wren-lavender);
  --bs-btn-hover-border-color: var(--wren-lavender);
}

.section-dark .btn-outline-wren {
  --bs-btn-color: var(--wren-cotton);
  --bs-btn-border-color: var(--wren-cotton);
  --bs-btn-hover-color: var(--wren-midnight);
  --bs-btn-hover-bg: var(--wren-cotton);
}

.section-title {
  max-width: 28ch;
  margin-bottom: 1.25rem;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: inherit;
}

.section-body > p,
.section-body > ul,
.section-body > ol,
.section-tail > p {
  max-width: 68ch;
}

.content-cards {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content-card {
  --bs-card-bg: #fff;
  --bs-card-border-color: var(--bs-border-color);
  --bs-card-border-radius: 0;
  --bs-card-spacer-x: 1.5rem;
  --bs-card-spacer-y: 1.5rem;
}

.section-white .content-card {
  --bs-card-bg: var(--wren-cotton);
}

.section-dark .content-card {
  --bs-card-bg: rgb(255 255 255 / 6%);
  --bs-card-border-color: rgb(255 255 255 / 20%);
  color: var(--wren-cotton);
}

.content-card .card-title {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: inherit;
}

.content-card p:last-child,
.content-card ul:last-child,
.content-card ol:last-child {
  margin-bottom: 0;
}

.step-cards .card-title {
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
}

.tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.25rem 0.6rem;
  border-radius: 0.25rem;
  background: var(--wren-sky);
  color: var(--wren-midnight);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Research figure */
.content-section figure:not(.partner):not(.team-group-photo) {
  max-width: 44rem;
  margin: 1.75rem 0;
}

.content-section figure:not(.partner):not(.team-group-photo) img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--bs-border-color);
}

.content-section figcaption {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--wren-ink-soft);
}

/* Team */
.team-group-title {
  margin: 2.5rem 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-initials {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--wren-lavender) url("../images/gradient-09.jpg") center / cover;
  color: var(--wren-midnight);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.team-member-name {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.team-group-photo {
  max-width: 60rem;
  margin: 2rem 0 0.5rem;
}

.team-group-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Collaborators and support */
.partners {
  margin-top: 1.5rem;
}

.partner {
  height: 100%;
  margin: 0;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--bs-border-color);
}

.partner-logo {
  display: grid;
  place-items: center;
  height: 5rem;
  margin-bottom: 1rem;
}

.partner-logo img {
  max-width: 100%;
  max-height: 5rem;
  width: auto;
  height: auto;
}

.partner figcaption {
  font-size: 0.95rem;
  color: var(--wren-ink-soft);
}

/* Enquiry form */
.enquiry-form {
  max-width: 46rem;
  margin: 2rem 0 0.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--bs-border-color);
}

.section-white .enquiry-form {
  background: var(--wren-cotton);
}

.enquiry-form .form-label,
.enquiry-form legend {
  font-weight: 600;
  font-size: 1rem;
}

.enquiry-form .req,
.enquiry-form .opt {
  font-weight: 400;
  color: var(--wren-ink-soft);
  font-size: 0.92rem;
}

.enquiry-form .form-text {
  color: var(--wren-ink-soft);
}

.enquiry-form .form-control,
.enquiry-form .form-select {
  border-color: #8c93b0;
  border-radius: 0.25rem;
}

.enquiry-form .form-check-input {
  width: 1.15em;
  height: 1.15em;
  border-color: #8c93b0;
}

.enquiry-form .form-check-label {
  padding-top: 0.1rem;
}

.context-help:empty {
  display: none;
}

.context-help {
  margin-top: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-left: 3px solid var(--wren-blue);
  background: var(--wren-cotton);
  font-size: 0.95rem;
}

.section-white .enquiry-form .context-help {
  background: #fff;
}

.email-notice,
.email-status:not(:empty) {
  padding: 0.75rem 1rem;
  background: #eeeefc;
  border-left: 3px solid var(--wren-midnight);
  font-size: 0.95rem;
}

.error-summary {
  padding: 1rem 1.25rem;
  border: 2px solid #b3261e;
  background: #fff;
}

.invalid-feedback {
  color: #b3261e;
  font-weight: 600;
}

/* Privacy and other text-only pages */
.page-privacy .section-body > p {
  max-width: 70ch;
}

@media (max-width: 991.98px) {
  .site-header .navbar-nav {
    padding-top: 1rem;
  }

  .site-header .navbar-collapse .btn-wren {
    margin-top: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .actions .btn {
    width: 100%;
  }
}

/* ---- Launch review fixes (5 November 2026) ---- */

/* Visible keyboard focus (WCAG 2.4.7, 1.4.11). Bootstrap replaces outlines
   with a faint blue glow; restore a solid ring everywhere. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.navbar-toggler:focus-visible,
.form-check-input:focus-visible {
  outline: 3px solid var(--wren-midnight);
  outline-offset: 3px;
  box-shadow: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.section-dark a:focus-visible,
.section-dark .btn:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--wren-cotton);
}

.enquiry-form .form-control:focus,
.enquiry-form .form-select:focus {
  border-color: var(--wren-midnight);
  box-shadow: none;
  outline: 3px solid var(--wren-midnight);
  outline-offset: 2px;
}

/* Form control boundaries at least 3:1 against both form backgrounds. */
.enquiry-form .form-control,
.enquiry-form .form-select,
.enquiry-form .form-check-input {
  border-color: #3b4670;
}

.enquiry-form .form-check-input:checked {
  background-color: var(--wren-midnight);
  border-color: var(--wren-midnight);
}

/* Header between 992 and 1199 px: keep the action on one line and the logo full size. */
.site-header .navbar-brand {
  flex-shrink: 0;
}

.site-header .btn {
  white-space: nowrap;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-header .navbar-nav {
    gap: 0.6rem !important;
  }

  .site-header .nav-link {
    font-size: 0.95rem;
  }

  .site-header .brand-logo {
    width: 180px;
  }
}

/* Chemical formula subscripts rendered with <sub> (the font has no subscript glyphs). */
sub {
  font-size: 0.7em;
  bottom: -0.2em;
}

/* Separate the dark closing band from the footer. */
.site-footer {
  border-top: 1px solid rgb(201 202 245 / 35%);
}
