/* Solvonis Therapeutics: global styles.
   Brand: Solvonis Brand Identity (Nov 2024 v1.01). Typeface Clash Grotesk (Indian Type Foundry), loaded through
   the Fontshare API as its licence requires; the font files are not hosted on this site. Palette: white, mint #B1DEDB, mid blue #4585A4, navy #354370, pale blue #E6F1F7.
   Small text and links use navy or slate #4D6F7F (mid blue is below 4.5:1 on white). */


:root {
  --font: 'Clash Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --navy: #354370;
  --mid-blue: #4585A4;
  --mint: #B1DEDB;
  --pale-blue: #E6F1F7;
  --slate: #4D6F7F;
  --rule: #C9D8E2;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: #ffffff;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern' 1;
}
img { max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--mid-blue); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--mid-blue);
  outline-offset: 3px;
}
section[id], div[id] { scroll-margin-top: 24px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

/* Placeholder links and notes: visible only until real content is supplied */
a[data-todo] { cursor: not-allowed; }
.todo-note { margin: 0; padding: 18px 22px; border: 1px dashed var(--mid-blue); background: #ffffff; font-size: 16px; line-height: 1.55; max-width: 48em; }

/* Header navigation */
details > summary::-webkit-details-marker { display: none; }
.nav-d > summary svg { transition: transform .15s ease; }
.nav-d[open] > summary svg { transform: rotate(180deg); }
.nav-dd a:hover { background: var(--pale-blue); color: var(--navy); }
/* The header stays at the top of the screen, so a long open menu scrolls inside itself */
.nav-dd { max-height: calc(100vh - 110px); overflow-y: auto; }
@media (max-width: 700px) {
  html { scroll-padding-top: 150px; }
  .nav-dd { max-height: calc(100vh - 190px); }
  .nav-main { gap: 0 22px !important; font-size: 15px !important; width: 100%; }
  .nav-main > a, .nav-main summary { padding: 7px 0 !important; }
  .nav-d[open] { flex: 1 1 100% !important; }
  .nav-dd { position: static !important; min-width: 0 !important; box-shadow: none !important; border: 0 !important; border-left: 2px solid var(--rule) !important; margin: 2px 0 8px 2px; padding: 2px 0 !important; }
  .nav-dd a, .nav-dd div { padding: 7px 16px !important; }
  .nav-dd div { padding-bottom: 2px !important; }
}

/* Footer */
@media (max-width: 700px) {
  .ft-grid { grid-template-columns: 1fr 1fr !important; gap: 32px 24px !important; }
  .ft-brand { grid-column: 1 / -1; }
}

/* Responsive tables (pipeline and trial tables) */
.rt-lbl { display: none; }
@media (max-width: 700px) {
  .rt-wrap { min-width: 0 !important; }
  .rt-head { display: none !important; }
  .rt-row { grid-template-columns: 1fr !important; gap: 8px 0 !important; padding-top: 18px !important; padding-bottom: 18px !important; }
  .rt-lbl { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin: 8px 0 2px; }
  .rt-first { font-weight: 600; }
  .pl-head { grid-template-columns: 1fr !important; }
  .rt-hide { display: none !important; }
  .pl-stages { font-size: 11px !important; letter-spacing: 0 !important; text-transform: none !important; }
}

/* Duotone photo band under page headers, with the brand reticle line */
.photo-band { position: relative; height: clamp(180px, 24vw, 360px); overflow: hidden; background: var(--navy); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-band::before, .photo-band::after { content: ''; position: absolute; background: rgba(255, 255, 255, .55); pointer-events: none; }
.photo-band::before { left: 0; right: 0; top: 62%; height: 1px; }
.photo-band::after { top: 0; bottom: 0; left: 61%; width: 1px; }

/* Buttons */
.btn { display: inline-block; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; padding: 15px 30px; border: 0; cursor: pointer; }
.btn-primary { background: var(--navy); color: #ffffff; }
.btn-primary:hover { background: #2a3659; color: #ffffff; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Mailing list form */
.ml-form input[type=text], .ml-form input[type=email] {
  font: inherit; font-weight: 400; font-size: 17px; padding: 13px 14px; border: 1px solid var(--slate); color: var(--navy); background: #ffffff; border-radius: 0; width: 100%;
}
.ml-form input[aria-invalid=true] { border-color: #B3261E; }
.ml-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ml-status { margin: 0; font-size: 15px; line-height: 1.5; }
.ml-status.is-error { color: #B3261E; }
.ml-status.is-ok { color: var(--navy); font-weight: 600; }

@media print {
  header nav, .photo-band, .ml-form, .skip-link { display: none !important; }
}

/* News articles */
.article-body { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.65; }
.article-body > * { margin: 0 0 20px; }
.article-body h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; font-weight: 500; margin: 40px 0 14px; }
.article-body h3 { font-size: 20px; line-height: 1.3; font-weight: 500; margin: 32px 0 10px; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin: 0 0 8px; }
.article-body blockquote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--mid-blue); font-size: 19px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.article-body th, .article-body td { border-bottom: 1px solid var(--rule); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.article-body img { height: auto; }
.article-body a { overflow-wrap: anywhere; }
.article-body .article-source { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--slate); }
.article-body h4 { font-size: 20px; line-height: 1.35; font-weight: 600; margin: 28px 0 8px; }
.article-body h5, .article-body h6 { font-size: 17px; line-height: 1.45; font-weight: 500; margin: 20px 0 8px; }
.article-body > h4:first-child { margin-top: 0; }
.article-body td p, .article-body th p { margin: 0; }
.article-body td { font-variant-numeric: tabular-nums; }

/* Brighter IR share price feeds */
.ir-feed { border: 1px solid var(--rule); background: #ffffff; max-width: 100%; overflow: hidden; }
.ir-feed iframe { display: block; width: 100%; border: 0; }
