/* Editorial opening and reading index for the Nano Genetics Knowledge Centre. */
.kx-shell { width: min(1180px, 90%); margin-inline: auto; }
.kc-page .seo-breadcrumb { margin-block: 14px; }
.kx-cover { display: grid; grid-template-columns: 1fr 1.08fr; min-height: clamp(400px, 38vw, 625px); background: #e8f2f6; color: #173143; }
.kx-cover-copy { align-self: center; padding: clamp(42px, 5.4vw, 88px) clamp(26px, 3.6vw, 64px) clamp(42px, 5.4vw, 88px) max(5vw, calc((100vw - 1350px)/2)); }
.kc-page .kx-label { display: block; margin: 0; font: 600 11px/1.45 ui-monospace, Menlo, monospace; letter-spacing: .105em; text-transform: uppercase; color: #526d7d; }
.kx-cover h1 { margin: 20px 0; color: #142e40; font-size: clamp(54px, 6.2vw, 102px); line-height: 1.01; letter-spacing: -.061em; }
.kx-cover h1 span, .kx-cover h1 em { display: block; }
.kx-cover h1 em { font: italic 1.06em/1 Georgia, serif; letter-spacing: -.062em; color: #33657b; }
.kc-page .kx-cover .kx-deck { color: #354f60; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.55; max-width: 43ch; }
.kx-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; }
.kx-primary { display: inline-flex; gap: 24px; align-items: center; border-radius: 3px; background: #173b50; color: #fff !important; padding: 12px 18px; font-size: 14px; }
.kx-primary:hover { background: #26566c; }
.kx-link { font-size: 14px; border-bottom: 1px solid #638194; }
.kx-cover :focus-visible { outline-color: #24607c; }
.kx-cover-art { position: relative; background: #0a1b2b; min-height: 100%; }
.kx-cover-art img { display: block; position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: 52% 52%; }
.kx-cover-art figcaption { position: absolute; bottom: 0; inset-inline: 0; display: flex; gap: 12px; align-items: center; color: #ebf4fa; background: linear-gradient(transparent, #07111de6); padding: 28px clamp(16px, 2vw, 32px) 16px; font: 12px/1.5 ui-monospace, Menlo, monospace; }
.kx-lab { background: #132b3b; padding-block: clamp(44px, 5.2vw, 86px); }
.kx-lab-layout { display: grid; grid-template-columns: .8fr 1.3fr; gap: clamp(34px, 7vw, 110px); align-items: center; }
.kx-lab .kx-label { color: #a9d6e7; }
.kc-page .kx-lab h2, .kc-page .kx-library h2, .kc-page .kx-more h2 { font-size: clamp(32px, 3.6vw, 58px); line-height: 1.07; letter-spacing: -.05em; text-wrap: balance; }
.kc-page .kx-lab h2 { margin: 13px 0 18px; }
.kc-page .kx-lab-copy p:not(.kx-label) { font-size: 16px; color: #d5e5ed; line-height: 1.6; }
.kc-page .kx-lab-copy .kx-method { color: #adc4d3; font-size: 14px; max-width: 43ch; }
.kx-instrument { padding: clamp(18px, 2.5vw, 34px); background: #0b1d2b; border: 1px solid #476372; border-radius: 6px; }
.kx-controls[hidden] { display: none; }
.kx-controls fieldset { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.kx-controls legend { padding: 0; font-size: 15px; margin-bottom: 9px; color: #e3eff5; }
.kx-options { display: inline-grid; grid-template-columns: repeat(4, minmax(44px, 1fr)); gap: 5px; }
.kx-options label { position: relative; cursor: pointer; }
.kx-options input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.kx-options span { display: block; text-align: center; padding: 8px 15px; border: 1px solid #59717f; border-radius: 3px; color: #d3e6ee; font: 500 15px/1.3 ui-monospace, Menlo, monospace; }
.kx-options input:checked + span { color: #132d3f; background: #bfdfed; border-color: #bfdfed; }
.kx-options input:focus-visible + span, .kx-compare input:focus-visible { outline: 2px solid #f5a479; outline-offset: 2px; }
.kx-plot { margin: 16px 0 6px; }
.kc-page .kx-plot-label { font: 12px/1.5 ui-monospace, Menlo, monospace; color: #b2c9d7; }
.kx-plot svg { width: 100%; height: auto; display: block; overflow: visible; }
.kx-grid, #kx-reference, #kx-measured { fill: none; vector-effect: non-scaling-stroke; }
.kx-grid { stroke: #3c5361; stroke-width: .8; }
.kx-ticks { fill: #b7cbd6; font: 15px Arial, sans-serif; }
#kx-measured { stroke: #9ee0fb; stroke-width: 2; stroke-linejoin: round; }
#kx-reference { stroke: #ffb98a; stroke-width: 2.2; stroke-dasharray: 6 4; }
.kx-compare { display: inline-flex; align-items: center; gap: 9px; padding-block: 8px; color: #ffd5b8; font-size: 14px; cursor: pointer; }
.kx-compare input { accent-color: #f3ae80; width: 17px; height: 17px; margin: 0; }
.kc-page #kx-result { border-top: 1px solid #344c5c; margin-top: 5px; padding-top: 10px; color: #c3d7e2; font-size: 13px; line-height: 1.5; }
.kx-library { padding-block: clamp(45px, 5.2vw, 80px); }
.kc-page .kx-library > p { margin: 13px 0 25px; }
.kx-chapter { border-top: 1px solid #405b6c; }
.kx-chapter:last-child { border-bottom: 1px solid #405b6c; }
.kx-chapter > summary { cursor: pointer; display: grid; grid-template-columns: minmax(155px, 21%) 1fr 36px; gap: clamp(18px, 3.2vw, 46px); align-items: center; padding-block: 14px; list-style: none; }
.kx-chapter > summary::-webkit-details-marker { display: none; }
.kx-chapter > summary > img { display: block; width: 100%; aspect-ratio: 1.92; height: auto; object-fit: cover; border-radius: 3px; }
.kx-chapter-text { display: block; }
.kx-chapter-text strong { display: block; font-weight: 400; font-size: clamp(23px, 2.3vw, 38px); letter-spacing: -.044em; line-height: 1.16; margin: 5px 0 8px; color: #f1f7fa; }
.kx-chapter-text .kx-label { color: #a8cedf; font-size: 10px; }
.kx-digest { display: block; max-width: 68ch; color: #bbcfda; font-size: 15px; line-height: 1.5; }
.kx-toggle { border: 1px solid #7893a3; border-radius: 50%; color: #cae8f5; width: 32px; height: 32px; display: grid; place-items: center; }
.kx-toggle::before { content: "+"; font: 22px/1 Arial, sans-serif; }
.kx-chapter[open] > summary .kx-toggle::before { content: "−"; }
.kx-chapter summary:hover .kx-toggle { background: #324f61; }
.kx-deep { padding: clamp(20px, 3vw, 42px); margin: 0 0 20px; border-radius: 4px; background: #182f40; }
.kx-deep .kc-columns { gap: 6%; }
.kx-deep .kc-connect-grid p { color: #b9cddb; }
.kx-deep .kc-connect-grid h4 { color: #dcecf5; }
.kx-more { border-block: 1px solid #789daa45; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; padding-block: 23px; }
.kc-page .kx-more h2 { font-size: 25px; margin-right: auto; }
.kx-more a { display: inline-flex; align-items: center; gap: 10px; border-bottom: 1px solid #7491a1; padding-block: 3px; color: #c4e6f5; font-size: 14px; }
.kc-bibliography .kc-reading-grid { padding: 12px 0 22px; }
.kc-bibliography .kc-editor-note { padding-bottom: 16px; }
.kc-page .kc-bibliography + .kc-bibliography { border-top: 0; }
.kc-page :is(.kx-chapter, .kx-deep [id]) { scroll-margin-top: 20px; }
@media(max-width: 850px) {
  .kx-lab-layout { gap: 25px; grid-template-columns: .8fr 1.2fr; }
  .kx-chapter > summary { grid-template-columns: 160px 1fr 32px; }
  .kx-deep .kc-connect-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 680px) {
  .kx-cover { grid-template-columns: 1fr; }
  .kx-cover-art { order: -1; min-height: 0; aspect-ratio: 2.05; }
  .kx-cover-copy { padding: 25px 5% 32px; }
  .kx-cover h1 { font-size: clamp(46px, 11vw, 65px); margin: 11px 0 14px; }
  .kx-cover-art figcaption { font-size: 10px; padding: 17px 5% 9px; }
  .kx-actions { margin-top: 17px; gap: 10px 18px; }
  .kx-lab-layout { grid-template-columns: 1fr; }
  .kx-lab { padding-block: 36px; }
  .kx-library { padding-block: 36px; }
  .kx-chapter > summary { grid-template-columns: clamp(75px, 24vw, 125px) 1fr 22px; gap: 12px; padding-block: 13px; }
  .kx-chapter > summary > img { aspect-ratio: .98; }
  .kx-chapter-text strong { font-size: 21px; margin: 4px 0; }
  .kx-digest { font-size: 13px; }
  .kx-toggle { width: 22px; height: 22px; }
  .kx-toggle::before { font-size: 17px; }
  .kx-deep { padding: 17px; }
  .kx-deep .kc-connect-grid { grid-template-columns: 1fr; }
  .kx-more { align-items: start; flex-direction: column; gap: 10px; }
  .kx-ticks { font-size: 19px; }
}
