html { min-height: 100%; }
body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Source Sans Pro', sans-serif;
}
#content{
    flex: 1 0 auto;
    padding-bottom: 42px;
}

.vertical-align {
    display: flex;
    align-items: center;
}
.downimg{

    margin-top: -50px;
    margin-bottom: -30px;
    z-index:20;
    position: relative;
}
.rightimg{
    display: none;
    position: absolute;
    top: 80px;
    left: 90%;
}
.leftimg{
    display: none;
    position: absolute;
    top: 80px;
    left: -60px;
}
body{
    background-color: #d5e6f6;
}
#content{
    background-color: white;
}
#content.index{
    margin-top: 50px;
}
.navbar{
    background-color: #1a5786;
    margin-bottom: 0px;
}
.navbar-default .navbar-text, .navbar a, .navbar-default .navbar-nav>li>a{
    color: white;
}
.navbar-default .navbar-brand{
    font-weight: bold;
    color: white;
}
#jumboton_h {
    color: #1d5986;
}
#jumboton_h span.b {
    font-weight: bold;
}



.navbar-default .navbar-nav>.active >a, .navbar-default .navbar-nav>.open>a, .navbar-default .navbar-nav>.open>a:focus, .navbar-default .navbar-nav>.open>a:hover,
.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:focus, .navbar-default .navbar-nav>.active>a:hover{
    color:#d5e6f6;
    background-color: #1a5786;
}

.navbar-default .navbar-nav>li>a:focus, .navbar-default .navbar-nav>li>a:hover{
    color:#d5e6f6;
    background-color: #1a5786;
}

/* Shared public header and footer. */
.site-header {
    min-height: 58px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(100deg, #123f61 0%, #1a5786 62%, #216b9e 100%);
    box-shadow: 0 2px 12px rgba(17, 48, 72, .16);
}
.site-header .navbar-brand {
    height: 58px;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}
.site-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 9px;
    background: rgba(255, 255, 255, .1);
    font-size: 16px;
    letter-spacing: .08em;
}
.site-header .navbar-nav > li > a {
    padding-top: 19px;
    padding-bottom: 19px;
    line-height: 20px;
    white-space: nowrap;
    transition: color .16s ease, background-color .16s ease;
}
.site-header.navbar-default .navbar-nav > .active > a,
.site-header.navbar-default .navbar-nav > .active > a:hover,
.site-header.navbar-default .navbar-nav > .active > a:focus,
.site-header.navbar-default .navbar-nav > .open > a,
.site-header.navbar-default .navbar-nav > .open > a:hover,
.site-header.navbar-default .navbar-nav > .open > a:focus {
    color: #fff;
    background: rgba(255, 255, 255, .11);
    box-shadow: inset 0 -3px 0 #9fd2f2;
}
.site-header.navbar-default .navbar-nav > li > a:hover,
.site-header.navbar-default .navbar-nav > li > a:focus {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}
.site-header .navbar-toggle {
    margin-top: 12px;
    margin-bottom: 12px;
    border-color: rgba(255, 255, 255, .35);
}
.site-header .navbar-toggle .icon-bar { background: #fff; }
.site-header .navbar-toggle:hover,
.site-header .navbar-toggle:focus { background: rgba(255, 255, 255, .1); }

.site-footer {
    flex: 0 0 auto;
    color: #dce8f1;
    background: #163b57;
    border-top: 1px solid rgba(255, 255, 255, .09);
}
.site-footer-inner {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 20px 28px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.site-footer-copyright {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    line-height: 1.4;
}
.site-footer-copyright span:first-child { color: #fff; font-weight: 600; }
.site-footer-copyright span:last-child { color: #afc5d5; font-size: 12px; }
.site-footer-partners {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 15px;
    flex: 1 1 auto;
}
.site-footer-label {
    flex-basis: 100%;
    color: #8eabba;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.site-footer-partners a {
    color: #e6f1f8;
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
}
.site-footer-partners a:hover,
.site-footer-partners a:focus { color: #fff; text-decoration: underline; }
.site-footer-feedback {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 7px;
    color: #fff;
    background: transparent;
    text-decoration: none;
    transition: background-color .16s ease, border-color .16s ease;
}
.site-footer-feedback:hover,
.site-footer-feedback:focus {
    color: #fff;
    border-color: rgba(255, 255, 255, .65);
    background: rgba(255, 255, 255, .1);
    text-decoration: none;
}
@media (min-width: 768px) {
    .site-header > .container { display: flex; align-items: stretch; }
    .site-header .navbar-header { flex: 0 0 auto; }
    .site-header .navbar-collapse { min-width: 0; display: flex !important; flex: 1 1 auto; padding-right: 0; }
    .site-header .navbar-nav { display: flex; flex-wrap: nowrap; }
    .site-header .navbar-right { margin-left: auto; margin-right: 0; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .site-header .navbar-brand { padding-left: 8px; padding-right: 8px; }
    .site-header .navbar-nav > li > a { padding-left: 6px; padding-right: 6px; font-size: 12px; }
}
@media (max-width: 767px) {
    .site-header .navbar-nav > li > a { padding-top: 11px; padding-bottom: 11px; }
    .site-header.navbar-default .navbar-nav > .active > a,
    .site-header.navbar-default .navbar-nav > .open > a { box-shadow: inset 3px 0 0 #9fd2f2; }
    .site-footer-inner { align-items: flex-start; flex-direction: column; }
    .site-footer-partners { width: 100%; flex-direction: column; align-items: flex-start; gap: 7px; }
    .site-footer-feedback { width: 100%; justify-content: center; }
}

#main-jumbotron{
    background-image: url("img/jumbotron1.png");
    background-size: 1200px 350px;
    background-repeat: no-repeat;
    height:300px;
}

.margin-top-05 { margin-top: 0.5em; }
.margin-top-10 { margin-top: 1.0em; }
.margin-top-15 { margin-top: 1.5em; }
.margin-top-20 { margin-top: 2.0em; }
.margin-top-25 { margin-top: 2.5em; }
.margin-top-30 { margin-top: 3.0em; }

.navbar a.apopup {
    color: #0075c3;
}

.nobullet {
   list-style: none;
   margin-left: 0;
   padding-left: 1em;
}
.pointer{
    cursor: pointer;
}
.questionLink{
    margin-left: 20px;
}

.not-active {
   pointer-events: none;
   cursor: default;
    filter: alpha(opacity=50);
  opacity: 0.5;
}

div.question{
        page-break-inside: avoid;
    }
.btn-success{
    background-color: #8ec63f;
    border-color: #8ec63f;
}
.btn-success:hover{
    background-color: #7eb138;
    border-color: #7eb138;
}
.progress-bar-info{
    background-color:#d5e6f6 ;
    color:#333;
}
.btn-xl {
    padding: 15px 22px;
    font-size: 22px;
    line-height: 1.33;
    border-radius: 6px
}
.learn_btn{
    margin-top: 15%;
}

.well-green{
    background-color: #8ec63f;
    border-color: #8ec63f;
    color: #fff;
}

.well-red{
    color: #fff;
    background-color: #c9302c;
    border-color: #ac2925;
}
._hidden{
  display: none;
}
.well-blue{
    color: black;
    background-color: #d5e6f6;
    border-color: #286090;
}
.text-answer-result, .text-frame{
    max-width: 500px;
}
input[id^=text_answer]{
    min-width: 300px;
}
.multiselect-container.dropdown-menu{
    z-index: 1040;
}

.print-structure-images {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    break-inside: avoid;
}
.print-structure-images figure {
    margin: 0;
    min-width: 0;
}
.print-structure-images img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}
.question-answer-editors {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 100%;
}
.question-answer-ketcher {
    flex: 1 1 500px;
    min-width: 0;
    max-width: 100%;
}
.question-answer-editors iframe {
    width: 100%;
    min-width: 0 !important;
}

/* Homepage: direct navigation is independent; all study actions share the filters. */
.settings-panel .panel-heading { padding: 15px 20px; }
.settings-panel .panel-body { padding: 0; }
.settings-direct { padding: 20px; background: #f5f8fb; border-bottom: 1px solid #dce5ed; }
.settings-direct > label { font-size: 13px; color: #526578; margin-bottom: 8px; }
.settings-direct .input-group { max-width: 320px; }
.settings-direct .btn i { margin-left: 8px; }
.settings-selection { padding: 22px 20px 8px; }
.settings-selection h4 { margin: 0 0 7px; font-size: 17px; font-weight: 600; color: #243c50; }
.settings-description { font-size: 13px; line-height: 1.5; color: #667887; margin-bottom: 18px; }
.settings-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.settings-filters .form-group { min-width: 0; }
.settings-filters label { display: block; font-size: 13px; margin-bottom: 7px; }
.settings-filters .btn-group { width: 100%; }
.settings-filters .multiselect { position: relative; text-align: left; padding-right: 26px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-filters .multiselect .caret { position: absolute; right: 12px; top: 50%; margin-top: -2px; }
.settings-filters .multiselect-container { max-width: 100%; min-width: 100%; }
.settings-filters .multiselect-container > li > a > label { white-space: normal; margin-bottom: 0; }
.settings-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 20px; padding: 19px 0; border-top: 1px solid #e4eaf0; }
.settings-action-copy { min-width: 0; }
.settings-action h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: #243c50; }
.settings-action h4 i { width: 22px; color: #59748a; }
.settings-action p { margin: 0; color: #667887; font-size: 13px; line-height: 1.5; }
.settings-action > .btn { min-width: 140px; }
.settings-action .btn { flex-shrink: 0; }
.settings-action .btn-success { background: #31834c; border-color: #2c7644; }
.settings-action .btn-success:hover { background: #25673b; }
.settings-test-controls { display: flex; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.settings-test-controls label { display: block; font-size: 11px; color: #667887; margin-bottom: 4px; }
.settings-test-controls select { width: 72px; }
.settings-resume { text-align: right; }
.settings-resume .btn-link { display: block; }
@media (max-width: 1199px) and (min-width: 992px), (max-width: 540px) {
    .settings-filters { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .settings-action { align-items: flex-start; flex-direction: column; gap: 12px; }
    .settings-action > .btn, .settings-test-controls, .settings-resume { width: 100%; }
    .settings-test-controls > .btn { flex-grow: 1; }
}

/* Header settings has its own palette; navbar links are white elsewhere. */
#settings .settings-menu { width: 320px; max-width: calc(100vw - 30px); padding: 0; border: 1px solid #dce5ed; border-radius: 6px; box-shadow: 0 8px 24px rgba(25, 54, 78, .16); color: #243c50; text-align: left; }
.settings-menu-heading { padding: 16px 18px 8px; font-weight: 600; font-size: 15px; }
.settings-menu-section { padding: 8px 18px; }
.settings-menu-label { display: block; margin-bottom: 4px; color: #667887; font-size: 12px; }
.settings-menu-value { line-height: 1.5; overflow-wrap: anywhere; }
.settings-category-details summary { cursor: pointer; color: #216496; line-height: 1.5; }
.settings-category-list { max-height: 180px; overflow-y: auto; padding: 8px 0 0 20px; margin: 0; font-size: 13px; }
.settings-category-list li { padding: 3px 0; overflow-wrap: anywhere; }
#settings .settings-menu a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 9px; color: #216496; font-size: 13px; line-height: 1.4; text-decoration: none; white-space: normal; border-radius: 4px; }
#settings .settings-menu a:hover, #settings .settings-menu a:focus { color: #174c73; background: #e8f1f8; }
#settings .settings-menu a:focus-visible, .settings-category-details summary:focus-visible { outline: 2px solid #216496; outline-offset: 2px; }
.settings-menu-edit { padding: 4px 9px 12px; }
.settings-menu-test { padding: 15px 18px; background: #f5f8fb; border-top: 1px solid #dce5ed; border-radius: 0 0 6px 6px; }
.settings-test-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; }
.browser-test-summary { color: #667887; font-size: 12px; }
.test-is-active .browser-test-summary { color: #28633d; font-weight: 600; }
.settings-test-actions { display: flex; flex-direction: column; gap: 3px; }
#settings .settings-test-actions a { margin-left: -9px; }
#settings .settings-test-actions .browser-test-end { color: #a13636; }
#settings .settings-menu a i { width: 16px; text-align: center; flex-shrink: 0; color: inherit; }
#settings .settings-menu .not-active { opacity: .5; }
@media (max-width: 767px) {
    #settings .settings-menu { margin: 0 15px 10px; background: white; }
}
.settings-category-details summary { list-style: none; }
.settings-category-details summary::-webkit-details-marker { display: none; }
.settings-category-details summary::before { content: '▸'; display: inline-block; width: 14px; }
.settings-category-details[open] summary::before { transform: rotate(90deg); }

/* Editor feedback sits next to the drawing; controls are editor-specific below it. */
.question-answer-ketcher > iframe { display: block; }
.editor-feedback-stage {
    min-height: 76px;
    padding: 11px 13px;
    margin: 0 0 10px;
    border: 1px solid #dce5ed;
    border-top: 3px solid #8ba5b8;
    border-radius: 0 0 6px 6px;
    background: #fff;
    transition: border-color .16s ease, background-color .16s ease;
}
.ketcher-feedback-stage { border-top-color: #25818a; }
.editor-feedback-stage.is-correct { border-color: #72a94f; background: #f5fbf1; }
.editor-feedback-stage.is-incorrect { border-color: #c96c67; background: #fff8f7; }
.editor-feedback-heading {
    margin-bottom: 3px;
    color: #405769;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .035em;
    text-transform: uppercase;
}
.editor-feedback-placeholder { margin: 0; color: #788b99; font-size: 13px; }
.editor-feedback-stage > .alert,
.editor-feedback-stage > .well,
.editor-feedback-stage > .ketcher-test-feedback.alert { margin: 7px 0 0; }
.editor-feedback-stage > .alert:last-child,
.editor-feedback-stage > .well:last-child { margin-bottom: 0; }

.editor-controls {
    padding: 14px;
    margin: 0 0 20px;
    border: 1px solid #dce5ed;
    border-radius: 6px;
    background: #f6f9fb;
}
.ketcher-controls { border-top: 3px solid #25818a; }
.editor-control-main {
    display: flex;
    align-items: center;
    gap: 14px;
}
.editor-control-main .btn-primary {
    min-width: 170px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(20, 72, 108, .18);
}
.editor-primary-note,
.editor-controls-meta { color: #667887; font-size: 13px; line-height: 1.4; }
.editor-controls-meta { margin-left: auto; white-space: nowrap; }
.editor-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #dce5ed;
}
.editor-secondary-actions .first_hint { margin: 0; }
.editor-secondary-actions .ketcher-reset { margin-left: auto; color: #687d8d; }
.editor-controls .ketcher-templates {
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr);
    align-items: center;
    gap: 10px;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid #dce5ed;
}
.editor-controls .ketcher-templates label { margin: 0; color: #52697a; font-size: 13px; }
.ketcher-cis-api-url {
    margin-left: 5px;
    font-weight: normal;
    overflow-wrap: anywhere;
}
@media (max-width: 540px) {
    .editor-control-main { align-items: stretch; flex-direction: column; gap: 8px; }
    .editor-control-main .btn-primary { width: 100%; }
    .editor-controls-meta { margin-left: 0; }
    .editor-secondary-actions > .btn,
    .editor-secondary-actions .first_hint,
    .editor-secondary-actions .first_hint .btn { width: 100%; }
    .editor-secondary-actions .ketcher-reset { margin-left: 0; }
    .editor-controls .ketcher-templates { grid-template-columns: 1fr; }
}

.question-answer-editors > .ketcher-answer-error,
.question-answer-editors > .step-data-warning {
    flex: 0 0 100%;
    width: 100%;
    margin-bottom: 0;
}
.topic-picker-open { width: 100%; text-align: left; white-space: normal; }
.topic-picker-summary { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-picker-action { display: block; color: #216496; font-size: 12px; margin-top: 4px; }
#topic-picker .modal-header p { margin: 8px 0 0; color: #667887; }
.topic-picker-toolbar { display: flex; gap: 8px; padding: 12px 0; }
.topic-tree { max-height: 48vh; overflow-y: auto; padding: 2px; }
.topic-node[hidden], .topic-no-results[hidden] { display: none; }
.topic-group { border-top: 1px solid #e4eaf0; }
.topic-group summary { display: list-item; cursor: pointer; padding: 10px 8px; color: #243c50; }
.topic-group summary label { cursor: pointer; margin: 0; font-weight: 600; }
.topic-group-count { float: right; color: #667887; font-size: 12px; margin-left: 10px; }
.topic-children { padding-left: 24px; }
.topic-leaf label { display: block; cursor: pointer; padding: 7px 8px; margin: 0; font-weight: normal; }
.topic-leaf label:hover { background: #f0f5fa; }
.topic-node input { margin-right: 6px; }
#topic-picker .modal-footer { display: flex; align-items: center; gap: 8px; }
.topic-selection-count { margin-right: auto; text-align: left; color: #667887; }
@media (max-width: 767px) {
    #topic-picker .modal-dialog { margin: 0; }
    #topic-picker .modal-content { display: flex; flex-direction: column; min-height: 100vh; border: 0; border-radius: 0; }
    #topic-picker .modal-body { flex: 1; }
    #topic-picker .modal-footer { flex-wrap: wrap; }
    .topic-selection-count { flex-basis: 100%; }
}

/* About page: readable article sections and a separate team column. */
.about-page { padding: 30px 20px 40px; color: #243c50; }
.about-header { padding: 4px 0 26px; margin-bottom: 30px; border-bottom: 1px solid #dce5ed; }
.about-eyebrow { margin-bottom: 10px; color: #667887; font-size: 12px; letter-spacing: .06em; }
.about-header h1 { margin: 0 0 14px; font-size: 36px; font-weight: 600; }
.about-intro { max-width: 65ch; color: #526578; font-size: 19px; line-height: 1.6; }
.about-navigation { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.about-navigation a { padding: 7px 12px; border: 1px solid #dce5ed; border-radius: 4px; color: #216496; font-size: 13px; text-decoration: none; }
.about-navigation a:hover, .about-navigation a:focus { background: #e8f1f8; border-color: #9cbace; }
.about-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); align-items: start; gap: 40px; }
.about-main { min-width: 0; }
.about-section { margin-bottom: 32px; scroll-margin-top: 20px; }
.about-page h2 { margin: 0 0 14px; font-size: 22px; font-weight: 600; line-height: 1.3; }
.about-main p { max-width: 75ch; font-size: 15px; line-height: 1.8; }
.about-team { padding: 24px; background: #f5f8fb; border: 1px solid #dce5ed; border-radius: 6px; scroll-margin-top: 20px; }
.about-people { margin: 0; padding: 0; list-style: none; }
.about-people li { padding: 5px 0; font-size: 15px; }
.about-people span { display: block; font-size: 12px; color: #667887; }
.about-contributors { border-top: 1px solid #dce5ed; margin-top: 22px; padding-top: 20px; }
.about-contributors h3 { margin: 0 0 12px; font-size: 16px; line-height: 1.5; font-weight: 600; }
.about-thanks { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid #dce5ed; font-size: 13px; line-height: 1.7; color: #526578; }
.about-contact { padding: 22px; border-left: 3px solid #337ab7; background: #f5f8fb; border-radius: 0 4px 4px 0; }
.about-main .about-signature { margin: 12px 0 0; font-size: 13px; font-weight: 600; color: #526578; }
@media (max-width: 767px) {
    .about-page { padding: 24px 0; }
    .about-header h1 { font-size: 30px; }
    .about-intro { font-size: 17px; }
    .about-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* Nomenclature: practice entrypoints and a searchable worked-example guide. */
.nomenclature-page { padding: 30px 20px 40px; color: #243c50; }
.nomenclature-header h1 { margin: 0 0 12px; font-size: 36px; font-weight: 600; }
.nomenclature-header p { max-width: 70ch; font-size: 18px; line-height: 1.6; color: #667887; }
.nomenclature-practice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 26px 0 36px; }
.nomenclature-card { padding: 22px; background: white; border: 1px solid #dce5ed; border-radius: 6px; min-width: 0; }
.nomenclature-card h2 { font-size: 20px; font-weight: 600; margin: 0 0 12px; }
.nomenclature-card h2 i { color: #59748a; margin-right: 7px; }
.nomenclature-card > p { color: #667887; line-height: 1.7; }
.nomenclature-practice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.nomenclature-coming-soon { background: #f5f8fb; }
.nomenclature-badge { display: inline-block; padding: 3px 8px; margin-bottom: 12px; border-radius: 4px; background: #e4ebf2; color: #526578; font-size: 12px; }
.nomenclature-section-header h2 { margin: 0 0 10px; font-size: 25px; font-weight: 600; }
.nomenclature-section-header p { color: #667887; line-height: 1.7; margin-bottom: 20px; }
.nomenclature-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 24px; }
.nomenclature-browser { padding: 16px; border: 1px solid #dce5ed; border-radius: 6px; background: #f5f8fb; }
.nomenclature-browser > label { font-size: 13px; margin-bottom: 8px; }
.nomenclature-molecules { margin: 12px -8px 0; padding: 0; list-style: none; max-height: 65vh; overflow-y: auto; }
.nomenclature-molecules li[hidden], .molecule-no-results[hidden] { display: none; }
.nomenclature-molecules .mol_link { display: block; width: 100%; padding: 10px 8px; border: 0; border-radius: 4px; background: transparent; color: #216496; text-align: left; overflow-wrap: anywhere; }
.nomenclature-molecules .mol_link:hover, .nomenclature-molecules .mol_link:focus { background: #e8f1f8; }
.nomenclature-molecules .mol_link.active { background: #216496; color: white; font-weight: 600; }
.molecule-no-results, .nomenclature-empty { margin: 16px 0 0; color: #667887; line-height: 1.6; }
.nomenclature-content { min-width: 0; }
.molecule-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 35%); gap: 20px; align-items: center; margin-bottom: 24px; }
.molecule-eyebrow { color: #667887; font-size: 12px; margin: 0 0 8px; }
.molecule-overview h3 { margin: 0; font-size: 22px; line-height: 1.5; overflow-wrap: anywhere; }
.molecule-synonym-title { margin: 16px 0 7px; color: #667887; font-size: 13px; }
.molecule-synonyms { list-style: none; padding: 0; margin: 0; line-height: 1.7; overflow-wrap: anywhere; }
.molecule-synonyms .synonym-type { color: #667887; }
.molecule-preview img, .molecule-step-structure img { display: block; max-width: 100%; height: auto; margin: auto; }
.molecule-preview { padding: 12px; background: #fafcfe; border: 1px solid #e4eaf0; border-radius: 4px; }
.molecule-steps { display: flex; flex-wrap: wrap; gap: 4px; }
.molecule-steps > li { float: none; }
.molecule-steps > li > a { padding: 8px 12px; }
.molecule-step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 22px; }
.molecule-step-grid h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: #667887; }
.molecule-step-grid p, .molecule-step-name { line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 991px) { .molecule-step-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
    .nomenclature-page { padding: 24px 0; }
    .nomenclature-header h1 { font-size: 30px; }
    .nomenclature-practice, .nomenclature-layout, .molecule-overview { grid-template-columns: minmax(0, 1fr); }
    .nomenclature-molecules { max-height: 220px; }
    .molecule-preview img { max-height: 200px; }
    .nomenclature-card { padding: 18px; }
}

.molecule-step-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 18px; margin-top: 22px; border-top: 1px solid #e4eaf0; }
.molecule-step-progress { color: #667887; font-size: 13px; }
@media (max-width: 540px) {
    .molecule-step-controls .btn { flex: 1; }
    .molecule-step-progress { flex-basis: 100%; order: -1; text-align: center; }
}

/* Question list shares the example browser's topic-and-content layout. */
.question-browser-page { padding: 30px 20px 40px; color: #243c50; }
.tutorial-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.tutorial-question { min-width: 0; }
.tutorial-question .qnav { margin-left: 0; margin-right: 0; }
.tutorial-navigation { padding: 18px; border: 1px solid #dce5ed; border-radius: 6px; background: #f5f8fb; }
.tutorial-navigation h2 { margin: 0 0 8px; font-size: 19px; color: #243c50; }
.tutorial-progress { margin-bottom: 14px; font-size: 13px; color: #526578; }
.tutorial-step-list { list-style: none; padding: 0; margin: 0; }
.tutorial-step-list li + li { margin-top: 5px; }
.tutorial-step-list a { display: flex; align-items: baseline; gap: 10px; padding: 9px; border-radius: 4px; color: #216496; overflow-wrap: anywhere; }
.tutorial-step-list a:hover, .tutorial-step-list a:focus { background: #e8f1f8; }
.tutorial-step-list a.is-current { background: #216496; color: #fff; font-weight: 600; }
.tutorial-step-number { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; }
@media (max-width: 991px) {
    .tutorial-layout { grid-template-columns: minmax(0, 1fr); }
}
.question-browser-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.question-browser-header h1 { font-size: 36px; font-weight: 600; margin: 0 0 12px; }
.question-browser-header p { color: #667887; font-size: 16px; line-height: 1.6; }
.question-browser-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.question-browser-summary > span { padding: 4px 9px; background: #f0f5fa; border-radius: 4px; font-size: 12px; }
.question-browser-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); align-items: start; gap: 24px; }
.question-topics { background: #f5f8fb; border: 1px solid #dce5ed; border-radius: 6px; padding: 16px; }
.question-topics > label { font-size: 13px; }
.question-topics > .question-topic-choice { margin-top: 12px; }
#question-topic-list { padding: 0; margin: 8px 0 0; list-style: none; max-height: 65vh; overflow-y: auto; }
.question-topic-choice { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 0; border-radius: 4px; background: transparent; color: #216496; text-align: left; }
.question-topic-choice:hover, .question-topic-choice:focus { background: #e8f1f8; }
.question-topic-choice.active { background: #216496; color: white; }
.question-topic-choice small { display: block; margin-top: 4px; font-size: 11px; opacity: .8; }
.question-topic-choice > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.question-topic-count { font-size: 12px; flex-shrink: 0; padding: 2px 6px; border: 1px solid currentColor; border-radius: 4px; }
.question-list-panel { min-width: 0; padding: 22px; border: 1px solid #dce5ed; border-radius: 6px; }
.question-list-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.question-list-heading-row h2 { margin: 0; font-size: 22px; line-height: 1.4; overflow-wrap: anywhere; }
.question-list-heading-row > a { flex-shrink: 0; }
.question-list-panel > label { font-size: 13px; }
.question-search-count { margin: 12px 0; font-size: 12px; color: #667887; }
.question-list { padding: 0; margin: 0; list-style: none; }
.question-list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 15px 0; border-top: 1px solid #e4eaf0; }
.question-open { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.question-id { color: #667887; font-size: 12px; flex-shrink: 0; }
.question-row-title { overflow-wrap: anywhere; }
.question-subjects { display: flex; flex-wrap: wrap; gap: 4px; }
.question-subjects span { font-size: 11px; color: #526578; background: #f0f5fa; padding: 3px 6px; border-radius: 3px; }
.question-list-empty, .question-topic-empty { padding: 16px 0; color: #667887; line-height: 1.6; }
.question-list-row[hidden], .question-topic-item[hidden], .question-list-empty[hidden], .question-topic-empty[hidden] { display: none; }
@media (max-width: 991px) {
    .question-list-row { grid-template-columns: minmax(0, 1fr) auto; }
    .question-subjects { grid-column: 1; }
    .question-print-one { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 767px) {
    .question-browser-page { padding: 24px 0; }
    .question-browser-header, .question-list-heading-row { flex-direction: column; }
    .question-browser-header h1 { font-size: 30px; }
    .question-browser-layout { grid-template-columns: minmax(0, 1fr); }
    #question-topic-list { max-height: 220px; }
    .question-list-panel { padding: 18px; }
}
