/* =====================================================================
   Neoncorte Bio: dark theme for Tilda (project Custom CSS, custom.css)
   Reference design: design-mockups/dark-deeptech.html
   Rules target blocks via #allrecords [data-record-type="N"] so they win
   over Tilda's per-block #rec… rules and their !important declarations.
   ===================================================================== */

/* Fonts. Loaded here (not only in the project HEAD) because the Tilda
   editor preview does not insert the HEAD code but does load custom.css.
   Must stay the first rule in the file. */
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&family=Rajdhani:wght@500;600;700&display=swap");

:root {
  --nc-bg: #06060a;
  --nc-bg-2: #0b0b13;
  --nc-panel: #101019;
  --nc-panel-2: #14141f;
  --nc-line: #22222f;
  --nc-section-line: rgba(141, 142, 166, .22);
  --nc-text: #eef0ff;
  --nc-text-2: #c4c6dc;   /* long-form copy: brighter than muted for readability */
  --nc-muted: #8d8ea6;
  --nc-violet: #8b5cf6;
  --nc-violet-2: #a78bfa; /* violet text on dark background */
  --nc-cyan: #22d3ee;
  --nc-grad: linear-gradient(120deg, #8b5cf6, #22d3ee);
  --nc-font: 'Rajdhani', system-ui, sans-serif;
  --nc-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- 1. Page background ---------- */

/* Published pages have body.t-body, the editor preview has a body element
   without that class, so target body itself.
   Note: Tilda strips anything that looks like an HTML tag from custom.css
   (a less-than sign followed by a name), even inside comments. The child
   combinator in selectors is fine. */
html {
  background-color: var(--nc-bg) !important;
}
body {
  background-color: var(--nc-bg) !important;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(139, 92, 246, .18), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(34, 211, 238, .12), transparent 40%) !important;
  background-attachment: fixed !important;
  color: var(--nc-text);
  font-family: var(--nc-font);
}
#allrecords, #allrecords.t-records {
  background: transparent !important;
}
/* Background colour set in block settings (style="background-color:…" on .t-rec) */
#allrecords .t-rec {
  background-color: transparent !important;
}
#allrecords ::selection { background: rgba(139, 92, 246, .45); color: #fff; }

/* ---------- 2. Sections: divider lines and spacing ---------- */

/* Every content section in the mockup starts with a thin full-width line
   and generous padding. A Tilda block counts as a section start when it has
   a section heading or is one of the heading-style blocks. Image-only blocks
   (type 3) stay attached to the section above them. */
#allrecords .t-rec:has(.t-section__title),
#allrecords .t-rec[data-record-type="489"],
#allrecords .t-rec[data-record-type="485"],
#allrecords .t-rec[data-record-type="580"],
#allrecords .t-rec[data-record-type="33"],
#allrecords .t-rec[data-record-type="664"] {
  border-top: 1px solid var(--nc-section-line);
  padding-top: 96px !important;
}
@media screen and (max-width: 640px) {
  #allrecords .t-rec:has(.t-section__title),
  #allrecords .t-rec[data-record-type="489"],
  #allrecords .t-rec[data-record-type="485"],
  #allrecords .t-rec[data-record-type="580"],
  #allrecords .t-rec[data-record-type="33"],
  #allrecords .t-rec[data-record-type="664"] {
    padding-top: 64px !important;
  }
}

/* First block of a page (T015 hero, 1066): Tilda gave it 210px / 180px top
   padding to clear the old menu (446) that overlapped the page. The shared
   header has its own spacer, so the gap follows the section rhythm. These
   paddings are only used on first blocks (checked on the export). */
#allrecords .t-rec.t-rec_pt_210,
#allrecords .t-rec.t-rec_pt_180 {
  padding-top: 96px !important;
}
@media screen and (max-width: 640px) {
  #allrecords .t-rec.t-rec_pt_210,
  #allrecords .t-rec.t-rec_pt_180 {
    padding-top: 64px !important;
  }
}

/* Section head: title, lead paragraph, 56px gap before the content */
#allrecords .t-rec .t-section__title {
  margin-bottom: 16px !important;
}
#allrecords .t-rec .t-section__container:not(:has(.t-section__descr)) .t-section__title,
#allrecords .t-rec .t-section__descr {
  margin-bottom: 56px !important;
}
#allrecords .t-rec .t-section__descr { max-width: 640px; }

/* ---------- 3. Typography ---------- */

#allrecords .t-rec .t-title,
#allrecords .t-rec .t-heading,
#allrecords .t-rec .t-name,
#allrecords .t-rec .t-section__title,
#allrecords .t-rec h1,
#allrecords .t-rec h2,
#allrecords .t-rec h3,
#allrecords .t-rec h4 {
  color: var(--nc-text) !important;
  font-family: var(--nc-font) !important;
}
#allrecords .t-rec .t-descr,
#allrecords .t-rec .t-section__descr,
#allrecords .t-rec .t-text {
  font-family: var(--nc-font) !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
}
#allrecords .t-rec .t-descr,
#allrecords .t-rec .t-section__descr { color: var(--nc-muted) !important; }
#allrecords .t-rec .t-text { color: var(--nc-text-2) !important; }

/* Sizes from the mockup scale (Tilda defaults are larger and lighter) */
#allrecords .t-rec .t-title_lg,
#allrecords .t-rec .t-title_xl,
#allrecords .t-rec .t-title_xxl {
  font-size: clamp(34px, 4.6vw, 56px) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em;
}
#allrecords .t-rec .t-title_md,
#allrecords .t-rec .t-title_sm,
#allrecords .t-rec .t-title_xs {
  font-size: clamp(28px, 3.4vw, 40px) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em;
}
#allrecords .t-rec .t-title_xxs {
  font-size: clamp(24px, 2.6vw, 30px) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em;
}
#allrecords .t-rec .t-name_xl,
#allrecords .t-rec .t-name_lg,
#allrecords .t-rec .t-heading_md,
#allrecords .t-rec .t-heading_lg { font-size: 19.5px !important; font-weight: 600 !important; line-height: 1.35 !important; }
#allrecords .t-rec .t-name_md,
#allrecords .t-rec .t-heading_sm { font-size: 18.5px !important; font-weight: 600 !important; line-height: 1.35 !important; }
#allrecords .t-rec .t-name_xs { font-size: 16px !important; font-weight: 600 !important; }

#allrecords .t-rec .t-descr_xxxl,
#allrecords .t-rec .t-descr_xl { font-size: 18.5px !important; }
#allrecords .t-rec .t-descr_md,
#allrecords .t-rec .t-text_md { font-size: 18px !important; }
#allrecords .t-rec .t-descr_sm,
#allrecords .t-rec .t-descr_xs,
#allrecords .t-rec .t-text_sm { font-size: 17px !important; }
#allrecords .t-rec .t-descr_xxs,
#allrecords .t-rec .t-text_xs { font-size: 15px !important; }

/* Font sizes typed into the Tilda text editor (data-customstyle) follow the scale */
#allrecords .t-rec [data-customstyle="yes"][style*="font-size"] { font-size: inherit !important; }

#allrecords .t-rec .t-text strong,
#allrecords .t-rec .t-text b,
#allrecords .t-rec .t-descr strong,
#allrecords .t-rec .t-descr b {
  color: var(--nc-text) !important;
  font-weight: 700;
}

/* Uptitles become the mono "eyebrow" from the mockup: gradient dot + caps */
#allrecords .t-rec .t-uptitle {
  font-family: var(--nc-mono) !important;
  color: var(--nc-cyan) !important;
  text-transform: uppercase;
  letter-spacing: .14em !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}
#allrecords .t-rec .t-uptitle::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  vertical-align: 1px;
  border-radius: 50%;
  background: var(--nc-grad);
}

/* Links inside copy */
#allrecords .t-rec .t-text a,
#allrecords .t-rec .t-descr a,
#allrecords .t-rec .t-name a,
#allrecords .t-rec .t-heading a {
  color: var(--nc-cyan) !important;
  border-bottom-color: rgba(34, 211, 238, .35) !important;
}
#allrecords .t-rec .t-text a:hover,
#allrecords .t-rec .t-descr a:hover,
#allrecords .t-rec .t-name a:hover {
  color: var(--nc-text) !important;
}

/* List bullets: short gradient dash, as in the mockup cards */
#allrecords .t-rec .t-descr ul,
#allrecords .t-rec .t-text ul {
  list-style: none;
  padding-left: 0;
}
#allrecords .t-rec .t-descr ul > li,
#allrecords .t-rec .t-text ul > li {
  position: relative;
  padding-left: 18px;
}
#allrecords .t-rec .t-descr ul > li::before,
#allrecords .t-rec .t-text ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(.8em - 1px);
  width: 7px;
  height: 2px;
  background: var(--nc-grad);
}
#allrecords .t-rec ol > li::marker { color: var(--nc-cyan); }

/* ---------- 4. Colours typed into the text (style="color:…") ---------- */

/* Dark text → regular light text */
#allrecords .t-rec [style*="color: rgb(51, 51, 51)"],
#allrecords .t-rec [style*="color: rgb(0, 0, 0)"],
#allrecords .t-rec [style*="color:#000000"],
#allrecords .t-rec [style*="color: #000000"],
#allrecords .t-rec [style*="color:#000;"],
#allrecords .t-rec [style*="color:#333"] {
  color: inherit !important;
}
/* Blue accents → cyan */
#allrecords .t-rec [style*="color: rgb(2, 23, 255)"],
#allrecords .t-rec [style*="color: rgb(81, 153, 255)"],
#allrecords .t-rec [style*="color:#1f5bff"],
#allrecords .t-rec [style*="color: #1f5bff"],
#allrecords .t-rec [style*="color:#0217ff"] {
  color: var(--nc-cyan) !important;
}
/* Purple accents → violet */
#allrecords .t-rec [style*="color: rgb(182, 0, 255)"],
#allrecords .t-rec [style*="color: rgb(97, 0, 241)"],
#allrecords .t-rec [style*="color: rgb(135, 0, 244)"],
#allrecords .t-rec [style*="color: rgb(102, 0, 255)"],
#allrecords .t-rec [style*="color:#6100f1"] {
  color: var(--nc-violet-2) !important;
}
/* White text highlight pasted in from other editors */
#allrecords .t-rec [style*="background-color: rgb(255, 255, 255)"],
#allrecords .t-rec [style*="background-color:#ffffff"] { background-color: transparent !important; }
/* White text from former coloured panels stays light */
#allrecords .t-rec [style*="color: rgb(255, 255, 255)"] { color: var(--nc-text) !important; }

/* ---------- 5. Buttons ---------- */

#allrecords .t-rec .t-btn.t-btn,
#allrecords .t-rec .t-btnflex.t-btnflex,
#allrecords .t-rec .t-submit.t-submit {
  font-family: var(--nc-font) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  transition: filter .18s ease, border-color .18s ease, color .18s ease, background-color .18s ease !important;
}
/* Primary: gradient fill, dark text */
#allrecords .t-rec .t-btnflex.t-btnflex_type_button,
#allrecords .t-rec .t-btnflex.t-btnflex_type_submit,
#allrecords .t-rec .t-submit.t-submit,
#allrecords .t-rec .t-btn.t-btn:not(.t-btnflex) {
  background: var(--nc-grad) !important;
  color: #07060d !important;
  /* dark text on the gradient reads better slightly larger and looser */
  font-size: 18px !important;
  letter-spacing: .25px !important;
}
#allrecords .t-rec .t-btnflex.t-btnflex_type_button:hover,
#allrecords .t-rec .t-btnflex.t-btnflex_type_submit:hover,
#allrecords .t-rec .t-submit.t-submit:hover {
  filter: brightness(1.1);
  color: #07060d !important;
}
#allrecords .t-rec .t-btnflex_type_button .t-btnflex__text,
#allrecords .t-rec .t-btnflex_type_submit .t-btnflex__text { color: #07060d !important; }
#allrecords .t-rec .t-btnflex_type_button .t-btnflex__icon { filter: brightness(0); }

/* Secondary and text buttons: outline */
#allrecords .t-rec .t-btnflex.t-btnflex_type_button2,
#allrecords .t-rec .t-btnflex.t-btnflex_type_bbutton {
  background: transparent !important;
  border-color: var(--nc-line) !important;
  color: var(--nc-text) !important;
}
#allrecords .t-rec .t-btnflex_type_button2 .t-btnflex__text,
#allrecords .t-rec .t-btnflex_type_bbutton .t-btnflex__text { color: inherit !important; }
#allrecords .t-rec .t-btnflex.t-btnflex_type_button2:hover,
#allrecords .t-rec .t-btnflex.t-btnflex_type_bbutton:hover {
  border-color: var(--nc-cyan) !important;
  color: var(--nc-cyan) !important;
  background: transparent !important;
}

/* ---------- 6. Forms ---------- */

#allrecords .t-rec .t-input,
#allrecords .t-rec .t-input-block textarea,
#allrecords .t-rec .t-input-block select,
#allrecords .t-rec .t-select {
  background-color: var(--nc-panel) !important;
  border: 1px solid var(--nc-line) !important;
  border-radius: 9px !important;
  color: var(--nc-text) !important;
  font-family: var(--nc-font) !important;
  font-size: 17px !important;
  font-weight: 500 !important;
}
#allrecords .t-rec .t-input:focus,
#allrecords .t-rec .t-input-block textarea:focus {
  border-color: var(--nc-cyan) !important;
  outline: 1px solid var(--nc-cyan) !important;
}
#allrecords .t-rec .t-input::placeholder,
#allrecords .t-rec .t-input-block textarea::placeholder { color: #5b5c74 !important; opacity: 1 !important; }
#allrecords .t-rec .t-input__vis-ph { color: #5b5c74 !important; opacity: 1 !important; }
#allrecords .t-rec .t-input-title,
#allrecords .t-rec .t-input-subtitle { color: var(--nc-muted) !important; font-family: var(--nc-font) !important; }
#allrecords .t-rec .t-input-error,
#allrecords .t-rec .t-form__errorbox-text { color: #f87171 !important; }
#allrecords .t-rec .t-form__successbox {
  background: var(--nc-panel) !important;
  border: 1px solid var(--nc-line) !important;
  color: var(--nc-text) !important;
  border-radius: 9px;
}
#allrecords .t-rec .t-checkbox__indicator,
#allrecords .t-rec .t-radio__indicator { border-color: var(--nc-muted) !important; }

/* ---------- 7. Shared pieces: cards, icons, dividers ---------- */

#allrecords .t-rec .t-card__title { color: var(--nc-text) !important; }
#allrecords .t-rec .t-card__descr { color: var(--nc-muted) !important; }

/* Mockup card: panel, 1px border, 14px radius, lift on hover */
#allrecords [data-record-type="1053"] .t1053__col-wrapper,
#allrecords [data-record-type="1007"] .t1007__col-wrapper,
#allrecords [data-record-type="490"] .t490__col,
#allrecords [data-record-type="497"] .t497__item,
#allrecords [data-record-type="1066"] .t1066__item,
#allrecords [data-record-type="499"] .t499__col,
#allrecords [data-record-type="1057"] .t1057__col {
  background: var(--nc-panel);
  border: 1px solid var(--nc-line);
  border-radius: 14px;
  box-sizing: border-box;
  transition: border-color .2s ease, transform .2s ease;
}
#allrecords [data-record-type="1053"] .t1053__col-wrapper:hover,
#allrecords [data-record-type="1007"] .t1007__col-wrapper:hover,
#allrecords [data-record-type="490"] .t490__col:hover,
#allrecords [data-record-type="497"] .t497__item:hover {
  border-color: rgba(139, 92, 246, .5);
  transform: translateY(-4px);
}

/* Equal-height cards in a row: make the list a wrapping flex row */
#allrecords [data-record-type="1053"] .t1053__container,
#allrecords [data-record-type="1007"] .t1007__container,
#allrecords [data-record-type="497"] .t497__container {
  display: flex;
  flex-wrap: wrap;
  row-gap: 20px;
}
#allrecords [data-record-type="1053"] .t1053__col,
#allrecords [data-record-type="1007"] .t1007__col,
#allrecords [data-record-type="497"] .t497__col {
  display: flex;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
#allrecords [data-record-type="1053"] .t1053__col-wrapper,
#allrecords [data-record-type="1007"] .t1007__col-wrapper,
#allrecords [data-record-type="497"] .t497__item { flex: 1 1 auto; }

/* Tilda library icons: black line art → cyan.
   Live URLs are static.tildacdn.com/lib/icons/…, the export uses images/lib__icons__…
   brightness(0) first normalises any icon colour to black. 508 is drawn separately. */
#allrecords .t-rec:not([data-record-type="508"]) img[src*="lib/icons"],
#allrecords .t-rec:not([data-record-type="508"]) img[src*="lib__icons"],
#allrecords .t-rec:not([data-record-type="508"]) [data-original*="lib/icons"],
#allrecords .t-rec:not([data-record-type="508"]) [data-original*="lib__icons"] {
  filter: brightness(0) invert(73%) sepia(52%) saturate(1263%) hue-rotate(148deg) brightness(97%) contrast(92%);
}

/* Social icons */
#allrecords .t-rec .t-sociallinks__svg path[fill]:not([fill="none"]),
#allrecords .t-rec .t-sociallinks__svg [fill="#6100f1"] { fill: var(--nc-muted) !important; }
#allrecords .t-rec .t-sociallinks__item a:hover .t-sociallinks__svg path[fill]:not([fill="none"]) { fill: var(--nc-cyan) !important; }

/* =====================================================================
   8. Per block type (ordered by how often the type is used on the site)
   ===================================================================== */

/* 446: old top menu. Replaced by the shared header in stage 3; dark glass until then */
#allrecords [data-record-type="446"] {
  --menusub-bg: var(--nc-panel) !important;
  --menusub-text-color: var(--nc-muted) !important;
  --menusub-hover-bg: var(--nc-panel-2) !important;
}
#allrecords [data-record-type="446"] .t446 {
  background-color: rgba(6, 6, 10, .75) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nc-line);
}
#allrecords [data-record-type="446"] .t-menu__link-item,
#allrecords [data-record-type="446"] .t-menusub__link-item {
  color: var(--nc-muted) !important;
  font-family: var(--nc-font) !important;
  font-size: 17px !important;
  font-weight: 500 !important;
}
#allrecords [data-record-type="446"] .t-menu__link-item:hover,
#allrecords [data-record-type="446"] .t-menusub__link-item:hover { color: var(--nc-cyan) !important; }
#allrecords [data-record-type="446"] .t-menusub__menu {
  border: 1px solid var(--nc-line) !important;
  border-radius: 10px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5) !important;
}
#allrecords [data-record-type="446"] .t-btnflex.t-btnflex_type_button {
  background: transparent !important;
  border-color: var(--nc-line) !important;
  color: var(--nc-muted) !important;
  font-family: var(--nc-mono) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}
#allrecords [data-record-type="446"] .t-btnflex_type_button .t-btnflex__text { color: inherit !important; }

/* 30 (T015): hero */
#allrecords [data-record-type="30"] .t015__uptitle { margin-bottom: 20px; }
#allrecords [data-record-type="30"] .t015__title { color: var(--nc-text) !important; margin-bottom: 24px; }
#allrecords [data-record-type="30"] .t015__descr { color: var(--nc-muted) !important; font-size: 19.5px !important; }
#allrecords [data-record-type="30"] .t015__descr li { color: var(--nc-text-2) !important; }

/* 1053: solution / technology columns → cards */
#allrecords [data-record-type="1053"] .t1053__line { display: none !important; }
#allrecords [data-record-type="1053"] .t1053__col-wrapper {
  padding: 30px 24px;
  text-align: left;
}
#allrecords [data-record-type="1053"] .t1053__title { margin-bottom: 14px; }
#allrecords [data-record-type="1053"] .t1053__descr p { text-align: left !important; margin-bottom: 11px; }
#allrecords [data-record-type="1053"] .t1053__bgimg { margin: 0 0 20px; width: 42px !important; height: 42px !important; }

/* 1007: industries → cards: icon, title, description (title moved above the text) */
#allrecords [data-record-type="1007"] .t1007__line { display: none !important; }
#allrecords [data-record-type="1007"] .t1007__col-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 22px;
  text-align: left;
}
#allrecords [data-record-type="1007"] .t1007__bgimg {
  order: 0;
  width: 40px !important;
  height: 40px !important;
  margin: 0 0 18px !important;
}
#allrecords [data-record-type="1007"] .t1007__title { order: 1; margin: 0 0 8px; }
/* The uptitle holds a long description here, so plain text, not an eyebrow */
#allrecords [data-record-type="1007"] .t1007__uptitle {
  order: 2;
  color: var(--nc-muted) !important;
  font-family: var(--nc-font) !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  text-transform: none;
  letter-spacing: 0 !important;
  margin: 0;
}
#allrecords [data-record-type="1007"] .t1007__uptitle::before { display: none; }
#allrecords [data-record-type="1007"] .t1007__descr { order: 3; }

/* 497: "Why work with…" → icon + text panels */
#allrecords [data-record-type="497"] .t497__item { padding: 26px 28px; }
#allrecords [data-record-type="497"] .t497__imgwrapper { width: 36px; padding-right: 16px; }
#allrecords [data-record-type="497"] .t497__img { width: 32px !important; }
#allrecords [data-record-type="497"] .t497__name { margin-bottom: 6px; }

/* 668: FAQ accordion */
#allrecords [data-record-type="668"] .t668__wrapper { background-color: transparent !important; }
#allrecords [data-record-type="668"] .t668__border { background-color: var(--nc-line) !important; }
#allrecords [data-record-type="668"] .t668__trigger-button { padding: 22px 56px 22px 0 !important; }
#allrecords [data-record-type="668"] .t668__title { color: var(--nc-text) !important; font-size: 18.5px !important; font-weight: 600 !important; }
#allrecords [data-record-type="668"] .t668__textwrapper { padding: 0 0 22px !important; }
#allrecords [data-record-type="668"] .t668__text { color: var(--nc-muted) !important; font-size: 17px !important; }
#allrecords [data-record-type="668"] .t668__circle { background-color: transparent !important; border: 0 !important; }
#allrecords [data-record-type="668"] .t668__lines svg,
#allrecords [data-record-type="668"] .t668__lines svg * { stroke: var(--nc-cyan) !important; fill: none; }

/* 664: "Who We Work With?" card */
#allrecords [data-record-type="664"] .t664__wrapper {
  background: var(--nc-panel) !important;
  border: 1px solid var(--nc-line) !important;
  border-radius: 14px !important;
}
#allrecords [data-record-type="664"] .t664__question-name,
#allrecords [data-record-type="664"] .t664__answer-name { color: var(--nc-cyan) !important; font-family: var(--nc-mono); }

/* 508: list with check icons → mockup publication list: rows split by lines,
   outlined circle with a cyan check (the site only uses check2/check5 icons) */
#allrecords [data-record-type="508"] .t508__container > .t-item {
  border-top: 1px solid var(--nc-line);
  padding-top: 26px;
  padding-bottom: 26px;
  margin-bottom: 0 !important;
}
#allrecords [data-record-type="508"] .t508__container > .t-item:last-child { border-bottom: 1px solid var(--nc-line); }
#allrecords [data-record-type="508"] .t508__bgimg {
  position: relative;
  width: 28px !important;
  height: 28px !important;
  background: transparent !important;
  border: 1px solid var(--nc-line);
  border-radius: 50% !important;
  box-sizing: border-box;
}
#allrecords [data-record-type="508"] .t508__bgimg::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--nc-cyan);
  border-bottom: 2px solid var(--nc-cyan);
  transform: translate(-50%, -50%) rotate(45deg);
}
#allrecords [data-record-type="508"] .t508__textwrapper { padding-left: 18px; }
#allrecords [data-record-type="508"] .t508__bottommargin { margin-bottom: 8px !important; }
/* An item without an icon is a plain paragraph (Research Collaboration on
   Publications), not a list row: no lines, no icon gap */
#allrecords [data-record-type="508"] .t508__container > .t-item:not(:has(.t508__bgimg)) {
  border-top: 0;
  border-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}
#allrecords [data-record-type="508"] .t508__container > .t-item:not(:has(.t508__bgimg)) .t508__textwrapper { padding-left: 0; }
/* The block's own button (bbutton) is a call to action → primary gradient,
   same as section 5 primary buttons */
#allrecords .t-rec[data-record-type="508"] .t-btnflex.t-btnflex_type_bbutton {
  background: var(--nc-grad) !important;
  border-color: transparent !important;
  color: #07060d !important;
  font-size: 18px !important;
  letter-spacing: .25px !important;
}
#allrecords .t-rec[data-record-type="508"] .t-btnflex.t-btnflex_type_bbutton:hover {
  filter: brightness(1.1);
  color: #07060d !important;
  background: var(--nc-grad) !important;
  border-color: transparent !important;
}
#allrecords .t-rec[data-record-type="508"] .t-btnflex_type_bbutton .t-btnflex__text { color: #07060d !important; }

/* 580: call to action → banner with gradient tint */
#allrecords [data-record-type="580"] .t580 > .t-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 0;
  box-sizing: border-box;
  border: 1px solid var(--nc-line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(139, 92, 246, .14), rgba(34, 211, 238, .08));
}
@media screen and (max-width: 640px) {
  #allrecords [data-record-type="580"] .t580 > .t-container {
    width: auto;
    margin: 0 16px;
    padding: 48px 0;
    border-radius: 16px;
  }
}
#allrecords [data-record-type="580"] .t580__title {
  color: var(--nc-text) !important;
  font-size: clamp(26px, 3vw, 36px) !important;
  margin-bottom: 14px !important;
}
#allrecords [data-record-type="580"] .t580__descr { color: var(--nc-muted) !important; max-width: 540px !important; }
#allrecords [data-record-type="580"] .t580__arrow-icon,
#allrecords [data-record-type="580"] .t580__arrow-icon_mobile { fill: var(--nc-cyan) !important; }

/* 489: about */
#allrecords [data-record-type="489"] .t489__title { font-size: 30px !important; }
#allrecords [data-record-type="489"] .t489__subtitle {
  color: var(--nc-cyan) !important;
  font-family: var(--nc-mono) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-top: 8px !important;
}
#allrecords [data-record-type="489"] .t489__descr { color: var(--nc-muted) !important; font-size: 18px !important; }

/* 485: partner network → glowing map card */
#allrecords [data-record-type="485"] .t485 > .t-container {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 0;
  box-sizing: border-box;
  border: 1px solid var(--nc-line);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, .18), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(34, 211, 238, .14), transparent 40%),
    var(--nc-panel);
}
@media screen and (max-width: 640px) {
  #allrecords [data-record-type="485"] .t485 > .t-container {
    width: auto;
    margin: 0 16px;
    padding: 40px 0;
  }
}
#allrecords [data-record-type="485"] .t485__title { font-size: 28px !important; margin-bottom: 16px; }
#allrecords [data-record-type="485"] .t485__img {
  max-width: min(720px, 100%) !important;
  box-sizing: border-box;
  border: 1px solid var(--nc-line);
  border-radius: 16px;
}
#allrecords [data-record-type="485"] .t485__descr { color: var(--nc-muted) !important; max-width: 600px; }

/* 1057: AI programmes (NVIDIA Inception, Nebius) → cards */
#allrecords [data-record-type="1057"] .t1057__col { padding: 34px; text-align: left !important; }
/* Logos: about 22% smaller than Tilda's original 220px (the mockup's 36px
   height was too small) */
#allrecords [data-record-type="1057"] .t1057__img {
  display: block;
  width: 172px !important;
  height: auto !important;
  max-width: 100%;
  margin: 0 0 20px !important;
  border-radius: 7px;
  /* The logo files sit on black (NVIDIA) and near-black (Nebius) plates.
     contrast() pushes the plate to pure black, lighten lets the card show
     through it, the white logo stays white. Stage 7, instead of re-uploading
     the logo in 273 blocks */
  filter: contrast(1.3);
  mix-blend-mode: lighten;
}
#allrecords [data-record-type="1057"] .t1057__descr {
  color: var(--nc-muted) !important;
  text-align: left !important;
  margin: 0 !important;
}

/* 490: "Why Neoncorte Bio?" → cards */
#allrecords [data-record-type="490"] .t490__col { padding: 30px 24px; }

/* 1066, 499: two-column feature lists → cards */
#allrecords [data-record-type="1066"] .t1066__item,
#allrecords [data-record-type="499"] .t499__col { padding: 26px 28px; }

/* On phones Tilda columns get their side gutter from padding, which the card
   padding above replaces; keep cards off the screen edges with margins instead */
@media screen and (max-width: 640px) {
  #allrecords [data-record-type="1057"] .t1057__col,
  #allrecords [data-record-type="490"] .t490__col,
  #allrecords [data-record-type="499"] .t499__col {
    width: calc(100% - 32px) !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
  }
}

/* 686: service tiles with photo and dark overlay */
#allrecords [data-record-type="686"] .t686__table {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--nc-line);
}
/* Light overlay at rest so the image stays visible; Tilda lowers its opacity on hover */
#allrecords [data-record-type="686"] .t686__overlay { background-image: linear-gradient(180deg, rgba(6, 6, 10, 0), rgba(6, 6, 10, .45)) !important; }
#allrecords [data-record-type="686"] .t-card__title { color: var(--nc-text) !important; }
#allrecords [data-record-type="686"] .t-card__descr { color: var(--nc-text-2) !important; }

/* 1095: list with an icon per item (same line icons as the home industries cards) */
#allrecords [data-record-type="1095"] .t1095__bgimg {
  width: 44px !important;
  height: 44px !important;
  background-size: contain;
}
#allrecords [data-record-type="1095"] .t1095__textwr_leftpadding { padding-left: 24px; }

/* 993: list of link buttons with arrows (Enzyme: industry pages) → panel rows
   like the mockup cards: dark panel, line border, cyan arrow, violet border on hover */
#allrecords .t-rec[data-record-type="993"] .t-btn.t993__btn {
  background: var(--nc-panel) !important;
  border: 1px solid var(--nc-line) !important;
  border-radius: 12px !important;
  color: var(--nc-text) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease !important;
}
#allrecords .t-rec[data-record-type="993"] .t-btn.t993__btn:hover {
  border-color: var(--nc-violet) !important;
  background: color-mix(in srgb, var(--nc-violet) 8%, var(--nc-panel)) !important;
  filter: none;
}
#allrecords [data-record-type="993"] .t993__btn-text-title { color: var(--nc-text) !important; }
#allrecords [data-record-type="993"] .t993__btn-arrow {
  color: var(--nc-cyan) !important;
  transition: transform .18s ease;
}
#allrecords [data-record-type="993"] .t993__btn:hover .t993__btn-arrow { transform: translateX(4px); }

/* 1152: text section, tables inside */
#allrecords [data-record-type="1152"] table td,
#allrecords [data-record-type="1152"] table th { border-color: var(--nc-line) !important; }
#allrecords [data-record-type="1152"] table thead td,
#allrecords [data-record-type="1152"] table th {
  border-bottom-color: var(--nc-muted) !important;
  color: var(--nc-text);
}

/* 431: comparison table (Team) */
#allrecords [data-record-type="431"] .t431__oddrow { background: transparent !important; }
#allrecords [data-record-type="431"] .t431__evenrow { background: var(--nc-panel) !important; }
#allrecords [data-record-type="431"] .t431__th,
#allrecords [data-record-type="431"] .t431__td { border-color: var(--nc-line) !important; }
#allrecords [data-record-type="431"] .t431__th { color: var(--nc-text) !important; }
#allrecords [data-record-type="431"] .t431__td { color: var(--nc-text-2) !important; }

/* 159 (T147): Team member photo with caption → square photo in a rounded frame
   with the gradient tint of the home team cards, kept at the block's own size.
   An img cannot carry a pseudo-element, so the tint is a ::before of the wrapper
   placed in the same grid cell as the photo. */
#allrecords [data-record-type="159"] .t147 > .t-align_center {
  display: grid;
  justify-items: center;
}
#allrecords [data-record-type="159"] .t147 > .t-align_center::before,
#allrecords [data-record-type="159"] .t147__img {
  grid-area: 1 / 1;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  border-radius: 36px;
}
#allrecords [data-record-type="159"] .t147 > .t-align_center::before {
  content: "";
  z-index: 1;
  background: var(--nc-grad);
  opacity: .12;
  pointer-events: none;
}
#allrecords [data-record-type="159"] .t147__img {
  height: auto;
  object-fit: cover;
  border: 1px solid var(--nc-line);
  background: var(--nc-panel);
  filter: grayscale(100%) contrast(1.1) brightness(.95);
}
/* The tint does not fade in, so the photo must not either */
#allrecords [data-record-type="159"] .t147__img.t-animate {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
#allrecords [data-record-type="159"] .t147 > .t-align_center > .t-container_8 { grid-row: 2; width: 100%; }
@media screen and (max-width: 1200px) {
  #allrecords [data-record-type="159"] .t147 > .t-align_center::before,
  #allrecords [data-record-type="159"] .t147__img { max-width: 460px; }
}
@media screen and (max-width: 640px) {
  #allrecords [data-record-type="159"] .t147 > .t-align_center::before,
  #allrecords [data-record-type="159"] .t147__img { width: calc(100% - 40px); border-radius: 24px; }
}

/* 718: "Get in touch" form */
#allrecords [data-record-type="718"] .t718__contentbox { color: var(--nc-text) !important; }
#allrecords [data-record-type="718"] .t718__contacts { color: var(--nc-text-2) !important; font-size: 18px !important; margin-bottom: 0 !important; }
#allrecords [data-record-type="718"] .t718__contacts a { color: var(--nc-cyan) !important; font-weight: 600 !important; }
#allrecords [data-record-type="718"] .t718__contentwrapper { vertical-align: top !important; }
/* Social icons as 40px outlined squares, as in the mockup */
#allrecords [data-record-type="718"] .t-sociallinks { margin-top: 28px !important; }
#allrecords [data-record-type="718"] ul.t-sociallinks__wrapper { display: flex !important; gap: 12px; font-size: 0; }
#allrecords [data-record-type="718"] .t-sociallinks__item { margin: 0 !important; }
#allrecords [data-record-type="718"] .t-sociallinks__item a {
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--nc-line);
  border-radius: 10px;
  transition: border-color .18s ease;
}
#allrecords [data-record-type="718"] .t-sociallinks__item a:hover { border-color: var(--nc-cyan); }
#allrecords [data-record-type="718"] .t-sociallinks__svg { width: 17px !important; height: 17px !important; }
#allrecords [data-record-type="718"] .t-sociallinks__svg path[fill]:not([fill="none"]) { fill: var(--nc-cyan) !important; }
/* Form: 14px gaps like the mockup grid, button sized to its text */
#allrecords [data-record-type="718"] .t-form__inputsbox_vertical-form .t-input-group { margin-bottom: 14px !important; }
#allrecords [data-record-type="718"] .t-form__inputsbox_vertical-form .t-form__submit { margin-top: 0 !important; padding-bottom: 0 !important; width: auto !important; }
#allrecords [data-record-type="718"] .t-submit { width: auto !important; padding-left: 28px !important; padding-right: 28px !important; }
@media screen and (max-width: 960px) {
  #allrecords [data-record-type="718"] .t718__contentwrapper { text-align: left !important; padding: 0 0 36px !important; }
}

/* 457, 56: footer and copyright */
#allrecords [data-record-type="457"],
#allrecords [data-record-type="56"] { border-top: 1px solid var(--nc-line); }
#allrecords [data-record-type="457"] .t457__copyright,
#allrecords [data-record-type="457"] .t457__li,
#allrecords [data-record-type="457"] .t457__li a,
#allrecords [data-record-type="56"] .t046__text {
  color: var(--nc-muted) !important;
  font-family: var(--nc-mono) !important;
  font-size: 13px !important;
  opacity: 1 !important;
}
#allrecords [data-record-type="457"] .t457__li a:hover { color: var(--nc-cyan) !important; }

/* 510: "How it works", numbers in circles */
#allrecords [data-record-type="510"] .t510__circle {
  background: transparent !important;
  border: 1px solid var(--nc-line) !important;
  color: var(--nc-cyan) !important;
  font-family: var(--nc-mono) !important;
}

/* =====================================================================
   9. Home page
   Home sections carry block anchors (rec_anchor). Tilda prints each one as
   a[name] right before its block, and no other page uses these names (except
   "expertise", see below), so "a[name=X] + .t-rec" scopes a rule to one home
   section. Hero, tool banner
   and team are T123 blocks with their own styles (blocks/home/).
   ===================================================================== */

/* Section eyebrows from the mockup: mono caps label with a gradient dot above
   the section title. Decorative, so hidden from screen readers (empty alt). */
#allrecords a[name="solutions"] + .t-rec .t-section__title::before,
#allrecords a[name="industries"] + .t-rec .t-section__title::before,
#allrecords a[name="technologies"] + .t-rec .t-section__title::before,
#allrecords a[name="plm"] + .t-rec .t-section__title::before,
#allrecords a[name="cta"] + .t-rec .t580__title::before,
#allrecords a[name="about"] + .t-rec .t489__title::before,
#allrecords a[name="programs"] + .t-rec .t-section__title::before,
#allrecords a[name="publications"] + .t-rec .t-section__title::before,
#allrecords a[name="expertise"] + .t-rec .t-section__title::before,
#allrecords a[name="faq"] + .t-rec .t-section__title::before {
  display: block;
  width: fit-content;
  margin: 0 auto 16px;
  padding-left: 15px;
  font-family: var(--nc-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nc-cyan);
  background: radial-gradient(circle at 3.5px 50%, #6f8df4 3.5px, transparent 4px) no-repeat;
}
#allrecords a[name="solutions"] + .t-rec .t-section__title::before { content: "our_solutions"; content: "our_solutions" / ""; }
#allrecords a[name="industries"] + .t-rec .t-section__title::before { content: "industries_we_serve"; content: "industries_we_serve" / ""; }
#allrecords a[name="technologies"] + .t-rec .t-section__title::before { content: "technologies"; content: "technologies" / ""; }
#allrecords a[name="plm"] + .t-rec .t-section__title::before { content: "powered_by_protein_language_models"; content: "powered_by_protein_language_models" / ""; }
#allrecords a[name="cta"] + .t-rec .t580__title::before { content: "next_step"; content: "next_step" / ""; }
#allrecords a[name="about"] + .t-rec .t489__title::before { content: "about"; content: "about" / ""; margin-left: 0; }
#allrecords a[name="programs"] + .t-rec .t-section__title::before { content: "partnerships"; content: "partnerships" / ""; }
#allrecords a[name="publications"] + .t-rec .t-section__title::before { content: "publications"; content: "publications" / ""; }
#allrecords a[name="expertise"] + .t-rec .t-section__title::before { content: "case_log"; content: "case_log" / ""; }
#allrecords a[name="faq"] + .t-rec .t-section__title::before { content: "faq"; content: "faq" / ""; }
@media screen and (max-width: 640px) {
  #allrecords a[name] + .t-rec .t-section__title::before,
  #allrecords a[name="cta"] + .t-rec .t580__title::before,
  #allrecords a[name="about"] + .t-rec .t489__title::before {
    font-size: 11px;
    letter-spacing: .05em;
    overflow-wrap: anywhere;
  }
}

/* Solutions: left-aligned section head, card numbers "[ 01 ]" and dash lists */
#allrecords a[name="solutions"] + .t-rec .t-section__title {
  text-align: left !important;
  max-width: 640px;
  margin-left: 0 !important;
}
#allrecords a[name="solutions"] + .t-rec .t-section__title::before { margin-left: 0; }
#allrecords a[name="solutions"] + .t-rec .t1053__container { counter-reset: nc-card; }
#allrecords a[name="solutions"] + .t-rec .t1053__col { counter-increment: nc-card; }
#allrecords a[name="solutions"] + .t-rec .t1053__title::before {
  content: "[ 0" counter(nc-card) " ]";
  content: "[ 0" counter(nc-card) " ]" / "";
  display: block;
  margin-bottom: 20px;
  font-family: var(--nc-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--nc-cyan);
}
#allrecords a[name="solutions"] + .t-rec .t1053__descr ul { margin: 0; }
#allrecords a[name="solutions"] + .t-rec .t1053__descr li { margin-bottom: 11px; font-size: 17.5px; }
#allrecords a[name="solutions"] + .t-rec .t1053__descr li:last-child { margin-bottom: 0; }

/* Joined panels split by 1px lines (industries, technologies, why us):
   one bordered box, the gaps show the line colour behind the panels */
#allrecords a[name="industries"] + .t-rec .t1007__container,
#allrecords a[name="technologies"] + .t-rec .t1053__container,
#allrecords a[name="why"] + .t-rec .t497__container {
  display: grid;
  gap: 1px;
  max-width: 1160px;
  padding: 0;
  box-sizing: border-box;
  background: var(--nc-line);
  border: 1px solid var(--nc-line);
  border-radius: 14px;
  overflow: hidden;
}
#allrecords a[name="industries"] + .t-rec .t1007__container { grid-template-columns: repeat(4, 1fr); }
#allrecords a[name="technologies"] + .t-rec .t1053__container { grid-template-columns: repeat(3, 1fr); }
#allrecords a[name="why"] + .t-rec .t497__container { grid-template-columns: repeat(2, 1fr); }
#allrecords a[name="industries"] + .t-rec .t1007__container::before,
#allrecords a[name="industries"] + .t-rec .t1007__container::after,
#allrecords a[name="technologies"] + .t-rec .t1053__container::before,
#allrecords a[name="technologies"] + .t-rec .t1053__container::after,
#allrecords a[name="why"] + .t-rec .t497__container::before,
#allrecords a[name="why"] + .t-rec .t497__container::after { display: none; }
#allrecords a[name="industries"] + .t-rec .t1007__col,
#allrecords a[name="technologies"] + .t-rec .t1053__col,
#allrecords a[name="why"] + .t-rec .t497__col {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
#allrecords a[name="industries"] + .t-rec .t1007__col-wrapper,
#allrecords a[name="technologies"] + .t-rec .t1053__col-wrapper,
#allrecords a[name="why"] + .t-rec .t497__item {
  height: 100%;
  border: 0;
  border-radius: 0;
  transform: none !important;
}
#allrecords a[name="technologies"] + .t-rec .t1053__col-wrapper { padding: 32px 28px; }
#allrecords a[name="why"] + .t-rec .t497__item { padding: 26px 28px; }
@media screen and (max-width: 1200px) {
  #allrecords a[name="industries"] + .t-rec .t1007__container,
  #allrecords a[name="technologies"] + .t-rec .t1053__container,
  #allrecords a[name="why"] + .t-rec .t497__container { width: auto !important; margin: 0 20px; }
}
@media screen and (max-width: 980px) {
  #allrecords a[name="industries"] + .t-rec .t1007__container { grid-template-columns: repeat(2, 1fr); }
  #allrecords a[name="technologies"] + .t-rec .t1053__container,
  #allrecords a[name="why"] + .t-rec .t497__container { grid-template-columns: 1fr; }
}
@media screen and (max-width: 640px) {
  #allrecords a[name="industries"] + .t-rec .t1007__container { grid-template-columns: 1fr; }
}

/* Technologies: mono index label above each card title */
#allrecords a[name="technologies"] + .t-rec .t1053__title::before {
  display: block;
  margin-bottom: 14px;
  font-family: var(--nc-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .1em;
  color: var(--nc-cyan);
}
#allrecords a[name="technologies"] + .t-rec .t1053__col:nth-child(1) .t1053__title::before { content: "ai_ml"; content: "ai_ml" / ""; }
#allrecords a[name="technologies"] + .t-rec .t1053__col:nth-child(2) .t1053__title::before { content: "hpc_cluster"; content: "hpc_cluster" / ""; }
#allrecords a[name="technologies"] + .t-rec .t1053__col:nth-child(3) .t1053__title::before { content: "data_pipeline"; content: "data_pipeline" / ""; }

/* Call to action: one filled button, 32px under the text */
#allrecords a[name="cta"] + .t-rec .t580__descr { margin-bottom: 32px !important; }
#allrecords a[name="cta"] + .t-rec .t580__buttons { margin-top: 0 !important; }

/* About: mockup grid .9fr / 1.1fr over the full content width */
#allrecords a[name="about"] + .t-rec .t489 > .t-container {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: start;
  max-width: 1160px;
}
#allrecords a[name="about"] + .t-rec .t489 > .t-container::before,
#allrecords a[name="about"] + .t-rec .t489 > .t-container::after { display: none; }
#allrecords a[name="about"] + .t-rec .t489 .t-col {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
@media screen and (max-width: 1200px) {
  #allrecords a[name="about"] + .t-rec .t489 > .t-container { width: auto !important; margin: 0 20px; }
}
@media screen and (max-width: 980px) {
  #allrecords a[name="about"] + .t-rec .t489 > .t-container { grid-template-columns: 1fr; gap: 24px; }
}

/* Partner network: map first, then country pills, title, text, partner pills */
#allrecords a[name="partners"] + .t-rec .t485 .t-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#allrecords a[name="partners"] + .t-rec .t485__img { order: -1; margin: 0 auto 32px !important; }
#allrecords a[name="partners"] + .t-rec .t485__uptitle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px !important;
}
#allrecords a[name="partners"] + .t-rec .t485__uptitle::before { display: none; }
#allrecords a[name="partners"] + .t-rec .t485__title { margin-bottom: 16px !important; }
#allrecords a[name="partners"] + .t-rec .t485__descr { margin-top: 0 !important; }
#allrecords a[name="partners"] + .t-rec .nc-pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--nc-line);
  border-radius: 999px;
  font-family: var(--nc-mono);
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--nc-muted);
}
#allrecords a[name="partners"] + .t-rec .nc-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 36px -80px 0;
}
@media screen and (max-width: 760px) {
  #allrecords a[name="partners"] + .t-rec .nc-pills { margin: 28px 0 0; gap: 10px; }
}
#allrecords a[name="partners"] + .t-rec .nc-pills .nc-pill {
  padding: 8px 16px;
  font-family: var(--nc-font);
  font-size: 16.5px;
  letter-spacing: 0;
  text-transform: none;
}

/* Expertise in action: two columns of cards with a numbered gradient dot.
   Home and Team only: their "Our Expertise in Action" 508 carries the
   "expertise" anchor, because its markup is the same as the Publications 508. */
#allrecords a[name="expertise"] + .t-rec .t508__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1160px;
  box-sizing: border-box;
  counter-reset: nc-exp;
}
#allrecords a[name="expertise"] + .t-rec .t508__container::before,
#allrecords a[name="expertise"] + .t-rec .t508__container::after { display: none; }
#allrecords a[name="expertise"] + .t-rec .t508__container > .t-item {
  display: flex;
  gap: 14px;
  width: auto !important;
  margin: 0 !important;
  padding: 22px !important;
  border: 1px solid var(--nc-line) !important;
  border-radius: 12px;
  background: var(--nc-panel);
  counter-increment: nc-exp;
}
#allrecords a[name="expertise"] + .t-rec .t508__container > .t-item .t-cell { display: block; }
#allrecords a[name="expertise"] + .t-rec .t508__container > .t-item .t-cell:first-child { flex: none; width: 26px; }
#allrecords a[name="expertise"] + .t-rec .t508__bgimg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px !important;
  height: 26px !important;
  border: 0;
  background: var(--nc-grad) !important;
}
#allrecords a[name="expertise"] + .t-rec .t508__bgimg::after {
  content: "0" counter(nc-exp);
  content: "0" counter(nc-exp) / "";
  position: static;
  width: auto;
  height: auto;
  border: 0;
  transform: none;
  font-family: var(--nc-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #07060d;
}
#allrecords a[name="expertise"] + .t-rec .t508__textwrapper { padding-left: 0; }
#allrecords a[name="expertise"] + .t-rec .t508__textwrapper .t-name { font-size: 17.5px !important; }
#allrecords a[name="expertise"] + .t-rec .t508__bottommargin { margin-bottom: 4px !important; }
@media screen and (max-width: 1200px) {
  #allrecords a[name="expertise"] + .t-rec .t508__container { width: auto !important; margin: 0 20px; }
}
@media screen and (max-width: 980px) {
  #allrecords a[name="expertise"] + .t-rec .t508__container { grid-template-columns: 1fr; }
}

/* Image-only blocks between sections: illustration widths from the mockup */
#allrecords a[name="illus-enzyme"] + .t-rec .t107__width { max-width: 520px; }
#allrecords a[name="illus-fitness"] + .t-rec .t107__width { max-width: 760px; }
#allrecords a[name="illus-scatter"] + .t-rec .t107__width { max-width: 586px; }
