/* =========================================================
   VARIABLES
========================================================= */
:root {
    --tc-bg: #f6f8fb;
    --tc-surface: #ffffff;
    --tc-primary: #143d59;
    --tc-secondary: #1f7a8c;
    --tc-text: #1d2733;
    --tc-muted: #6b7280;
    --tc-border: #d9e2ec;
}

/* =========================================================
   BASE
========================================================= */
html,
body {
    min-height: 100%;
}

.dialog-off-canvas-main-canvas {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

}

body {
    margin: 0;
    background: var(--tc-bg);
    color: var(--tc-text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: var(--tc-secondary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================================================
   HEADER - MODERN DARK NAVBAR
========================================================= */

.tc-header {
    position: sticky;
    top: 0;
    z-index: 100;

    height: 72px;
    padding: 0 26px;

    background:
        radial-gradient(circle at top left,
            rgba(31, 122, 140, 0.32),
            transparent 34%),
        linear-gradient(135deg,
            #0f172a 0%,
            #143d59 55%,
            #0f172a 100%);

    border-bottom: 1px solid rgba(255, 255, 255, 0.10);

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.28),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06);

    color: #ffffff;
}

.tc-header__inner {
    height: 100%;
    max-width: none;

    display: flex;
    align-items: center;
    gap: 42px;
}

/* BRAND */

.tc-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 170px;

    color: #ffffff;
    text-decoration: none;
}

.tc-brand:hover {
    text-decoration: none;
}

.tc-brand__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    border: 2px solid #5ac7cf;
    border-radius: 8px;

    color: #5ac7cf;
    font-size: 14px;
    line-height: 1;
}

.tc-brand strong {
    display: block;

    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
}

.tc-brand small {
    display: block;
    margin-top: 4px;

    color: rgba(255, 255, 255, 0.60);
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

/* MENU */

.tc-menu {
    margin: 0;
}

.tc-menu ul,
.tc-menu .menu {
    display: flex;
    align-items: center;
    gap: 0;

    margin: 0;
    padding: 0;

    list-style: none;
}

.tc-menu li {
    margin: 0;
    padding: 0;
}

.tc-menu a {
    position: relative;

    display: inline-flex;
    align-items: center;

    height: 72px;
    padding: 0 18px;

    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    font-weight: 600;

    text-decoration: none;
    transition: color .18s ease;
}

.tc-menu a:hover {
    color: #ffffff;
    text-decoration: none;
}

.tc-menu a.is-active,
.tc-menu .menu-item--active-trail>a {
    color: #ffffff;
}

.tc-menu a.is-active::after,
.tc-menu .menu-item--active-trail>a::after {
    content: "";

    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;

    height: 3px;

    background: #22c7cf;
    border-radius: 999px;
}

/* RIGHT SIDE */

.tc-header__right {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 14px;
}

/* QUICK SEARCH  */

.tc-quick-search {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 330px;
    height: 40px;

    margin: 0;
    padding: 0 12px;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;

    backdrop-filter: blur(10px);

    box-shadow: none;
}

.tc-quick-search span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 17px;
}

.tc-quick-search input {
    width: 100%;
    min-height: 0;
    height: auto;

    padding: 0;

    background: transparent;
    border: 0;

    color: #ffffff;
    font-size: 14px;
}

.tc-quick-search input:focus {
    outline: 0;
    border: 0;
    box-shadow: none;
}

.tc-quick-search input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.tc-quick-search kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 20px;
    padding: 0 7px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;

    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.75);

    font-size: 11px;
    font-family: inherit;
    white-space: nowrap;
}

/* USER PILL  */

.tc-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    height: 40px;
    padding: 0 14px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;

    color: #ffffff;
    font-size: 13px;

    text-decoration: none;

    backdrop-filter: blur(10px);

    transition: background .18s ease;
}

.tc-user-pill:hover {
    background: rgba(255, 255, 255, 0.10);
    text-decoration: none;
}

.tc-user-icon {
    color: rgba(255, 255, 255, 0.65);
    font-size: 16px;
}

.tc-user-pill strong {
    font-weight: 800;
    color: #ffffff;
}

.tc-user-badge {
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);

    color: #78a7ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.09em;
}

.tc-user-arrow {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
}

/* REMOVE OLD STYLES */

.tc-header__title,
.tc-header__subtitle,
.tc-header__login {
    display: none;
}

/*  RESPONSIVE */

@media (max-width: 900px) {

    .tc-header {
        height: auto;
        padding: 14px 18px;
    }

    .tc-header__inner {
        flex-wrap: wrap;
        gap: 18px;
    }

    .tc-header__right {
        width: 100%;
        margin-left: 0;
    }

    .tc-quick-search {
        flex: 1;
        width: auto;
    }

    .tc-menu ul,
    .tc-menu .menu {
        gap: 10px;
        flex-wrap: wrap;
    }

    .tc-menu a {
        height: 42px;
    }
}


/* FIX NAVBAR ALIGNMENT */
.tc-header {
    height: 72px;
    padding: 0 26px;
}

.tc-header__inner {
    height: 72px;
    display: flex;
    align-items: center;
}

.tc-brand,
.tc-menu,
.tc-menu .menu,
.tc-header__right,
.tc-quick-search,
.tc-user-pill {
    align-self: center;
}

.tc-brand {
    height: 72px;
    display: flex;
    align-items: center;
}

.tc-menu {
    height: 72px;
    display: flex;
    align-items: center;
}

.tc-menu ul,
.tc-menu .menu {
    height: 72px;
    display: flex;
    align-items: center;
}

.tc-menu a {
    height: 72px;
    display: flex;
    align-items: center;
}

.tc-header__right {
    height: 72px;
    display: flex;
    align-items: center;
}

.tc-quick-search,
.tc-user-pill {
    margin-top: 0;
    margin-bottom: 0;
}

/* =========================================================
   MENU
========================================================= */
.tc-menu {
    margin-top: 16px;
}

.tc-menu>ul,
.tc-menu nav>ul,
.tc-menu .menu {
    display: flex;
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tc-menu>ul a,
.tc-menu nav>ul a,
.tc-menu .menu a {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.tc-menu .contextual-links {
    display: none;
}

/* =========================================================
   MAIN LAYOUT
========================================================= */
.tc-main {
    max-width: 1200px;
    padding: 0;
    margin: 0 auto;
    flex: 1;
}

.tc-container {
    width: 100%;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */
.tc-main h1 {
    font-size: 42px;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
}

.tc-main h2 {
    font-size: 28px;
    margin: 32px 0 16px;
}

.tc-main p {
    line-height: 1.7;
    color: #475569;
}

/* =========================================================
   CARD
========================================================= */
.tc-card {
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}



/* =========================================================
   FORM BASE
========================================================= */
.tc-main form {
    background: #ffffff;
    border: 1px solid #d8dde6;
    border-radius: 0;
    padding: 42px;

    box-shadow:
        0 28px 80px rgba(15, 23, 42, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.90) inset;
}

.tc-main .form-item {
    margin-bottom: 18px;
}

.tc-main label {
    display: block;
    margin-bottom: 8px;

    color: #111111;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tc-main input,
.tc-main select,
.tc-main textarea {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;

    background: transparent;
    border: 0;
    border-bottom: 1px solid #aeb7c6;
    border-radius: 0;

    padding: 0;

    color: #111111;
    font-size: 15px;
}

.tc-main input:focus,
.tc-main select:focus,
.tc-main textarea:focus {
    outline: none;
    border-bottom-color: #111111;
    box-shadow: none;
}

/* =========================================================
   BUTTON
========================================================= */
.tc-main button,
.tc-main input[type="submit"] {
    width: auto;
    height: 48px;

    background: #111111;
    color: #ffffff;

    border: 0;
    border-radius: 0;

    padding: 0 30px;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;

    cursor: pointer;

    box-shadow: 0 14px 34px rgba(17, 17, 17, 0.18);
    transition: all 0.2s ease;
}

.tc-main button:hover,
.tc-main input[type="submit"]:hover {
    background: #000000;
    transform: translateY(-1px);
}

/* =========================================================
   TABLE
========================================================= */
.tc-main table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 14px;
}

.tc-main th,
.tc-main td {
    padding: 14px;
    border-bottom: 1px solid #e5edf5;
}

.tc-main th {
    background: #f1f5f9;
    font-size: 13px;
    text-transform: uppercase;
}

/* =========================================================
   SEARCH LAYOUT
========================================================= */
.tc-search-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: end;

    max-width: 1360px;
    margin: 0 auto;
    margin-top: 20px;

    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.tc-search-form .form-item {
    margin: 0;
}

.tc-search-form .form-actions {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.dialog-off-canvas-main-canvas:has(.tc-search-page) {
    background:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.50) 25%,
            rgba(0, 0, 0, 0.25) 60%,
            rgba(0, 0, 0, 0.12) 100%),
        url("/themes/custom/thermochem_theme/images/abstract-hexagon-pattern-dark-blue-background-medical-and-science-concept-molecular-structures-free-vector.jpg");

    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

/* =========================================================
   KETCHER
========================================================= */
.tc-ketcher-panel {
    grid-column: 1 / -1;

    background: #f9fafb;
    border: 1px solid #d8dde6;
    border-radius: 0;

    padding: 26px;
    margin-top: 10px;

    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.06);
}

.tc-ketcher-panel h3 {
    margin-top: 0;
    margin-bottom: 18px;

    color: #111111;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.tc-ketcher-frame {
    width: 100%;
    height: 520px;

    background: #ffffff;
    border: 1px solid #cfd6e2;
    border-radius: 0;

    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
}

.tc-ketcher-button {
    margin-top: 14px;
}

/* =========================================================
   FOOTER
========================================================= */
.tc-footer {
    margin-top: 0;
    padding: 20px 40px;
    background: #0f172a;
    color: #cbd5e1;
    font-size: 14px;
}

/* =========================================================
   RESPONSIVE
========================================================= */



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .tc-search-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .tc-header {
        height: 72px !important;
        padding: 0 14px !important;
        overflow: visible !important;
        z-index: 9999 !important;
    }

    .tc-header__inner {
        height: 72px !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        overflow: visible !important;
    }

    .tc-brand {
        min-width: 112px !important;
        width: 112px !important;
        height: 72px !important;
        flex: 0 0 112px !important;
        gap: 6px !important;
    }

    .tc-brand__icon {
        width: 22px !important;
        height: 22px !important;
        flex: 0 0 22px !important;
    }

    .tc-brand strong {
        font-size: 12px !important;
    }

    .tc-brand small {
        font-size: 5px !important;
        letter-spacing: 0.04em !important;
    }

    .tc-menu {
        height: 72px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .tc-menu>ul,
    .tc-menu nav>ul,
    .tc-menu .menu {
        height: 72px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 2px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .tc-menu li {
        flex: 0 0 auto !important;
    }

    .tc-menu a {
        height: 72px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 5px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    .tc-menu li+li {
        position: relative;
        margin-left: 10px !important;
        padding-left: 14px !important;
    }

    .tc-menu li+li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 18px;
        background: linear-gradient(to bottom,
                rgba(255, 255, 255, 0.06),
                rgba(255, 255, 255, 0.28),
                rgba(255, 255, 255, 0.06));
        border-radius: 999px;
    }


    .tc-menu a.is-active::after,
    .tc-menu .menu-item--active-trail>a::after {
        left: 50% !important;
        right: auto !important;
        width: 14px !important;
        transform: translateX(-50%) !important;
    }

    .tc-menu a[href*="search"] {
        font-size: 12px !important;
        width: auto !important;
        min-width: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

    }

    .tc-menu a[href*="search"]::before {
        content: none !important;
    }

    .tc-header__right {
        height: 72px !important;
        width: auto !important;
        margin-left: 0 !important;
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        overflow: visible !important;
    }

    .tc-user-dropdown {
        position: relative !important;
        z-index: 10000 !important;
        overflow: visible !important;
    }

    .tc-user-pill {
        height: 36px !important;

        padding: 0 10px !important;

        display: flex !important;
        align-items: center !important;
        gap: 6px !important;

        min-width: 0 !important;
        max-width: 150px !important;

        overflow: hidden !important;
    }

    .tc-user-pill strong {
        min-width: 0 !important;
        max-width: 72px !important;

        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;

        font-size: 12px !important;
    }

    .tc-user-badge {
        display: inline-flex !important;

        flex: 0 0 auto !important;

        font-size: 10px !important;
        letter-spacing: 0.06em !important;
    }

    .tc-user-arrow {
        display: inline-flex !important;

        flex: 0 0 auto !important;

        font-size: 11px !important;

        opacity: 0.8;
    }

    .tc-user-dropdown-menu {
        top: calc(100% + 8px) !important;
        right: 0 !important;
        z-index: 10001 !important;
    }

    .tc-user-dropdown:hover .tc-user-dropdown-menu,
    .tc-user-dropdown:focus-within .tc-user-dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .tc-quick-search {
        display: none !important;
    }
}



/* =========================================================
   SEARCH RESULTS
========================================================= */

.tc-results-header {
    margin-top: 30px;
    margin-bottom: 16px;
}

.tc-results-header h2 {
    margin-bottom: 5px;
}

.tc-results-header p {
    margin: 0;
    color: var(--tc-muted);
}

.tc-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.tc-result-item {
    display: block;
    background: #ffffff;
    border: 1px solid var(--tc-border);
    border-radius: 16px;
    padding: 18px 20px;
    transition: all 0.2s ease;
}

.tc-result-item:hover {
    border-color: var(--tc-secondary);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.tc-result-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.tc-result-title a {
    color: #0f172a;
    text-decoration: none;
}

.tc-result-title a:hover {
    color: var(--tc-secondary);
}

.tc-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 14px;
    color: #475569;
}

.tc-result-meta span {
    background: #f1f5f9;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 500;
}

.tc-message {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--tc-border);
}

.tc-message--error {
    border-color: #fecaca;
    background: #fff1f2;
}

.tc-message--empty {
    color: #64748b;
}

/* =========================================================
   SEARCH PAGE STRUCTURE
========================================================= */

.tc-main form.tc-search-form {
    margin-bottom: 40px;
}

.tc-ketcher-panel {
    margin-top: 10px;
}

.tc-results-header {
    padding-top: 10px;
    border-top: 1px solid var(--tc-border);
}

/* opzionale: miglior separazione */
.tc-results {
    margin-top: 10px;
}

/* input più leggibili */
.tc-main input::placeholder {
    color: #94a3b8;
}

/* select reactive group più alto */
.thermochem-reactive-group-select {
    min-height: 120px;
}

/* bottone principale più evidente */
.tc-main input[type="submit"] {
    height: 48px;
    font-size: 15px;
}




/* =========================================================
   LANDING PAGE
========================================================= */

.tc-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.tc-header__login {
    color: #fff;
    font-weight: 700;
    margin-top: 22px;
}

.tc-landing {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);

    height: calc(100vh - 129px);

    background:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.500) 20%,
            rgba(0, 0, 0, 0.10) 45%,
            rgba(0, 0, 0, 0.04) 100%),
        url("/themes/custom/thermochem_theme/images/molecular-bg.jpg");

    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;

}




.tc-landing__hero,
.tc-landing__partners {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin-left: 300px;
    transform: translateY(-80px);
}

.tc-landing__hero {
    padding: 54px 38px;
    margin-bottom: 74px;
    margin-top: 80px;
}

.tc-landing__eyebrow {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0.04em;
}

.tc-landing__hero h1 {
    max-width: 760px;
    margin: 0 0 24px;
    color: #ffffff;
    font-size: 78px;
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.tc-landing__hero p {
    max-width: 620px;
    margin: 0 0 34px;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.5;
    font-weight: 700;
}

.tc-landing__button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 190px;
    height: 54px;
    padding: 0 30px;

    background:
        linear-gradient(135deg,
            rgba(34, 199, 207, 0.34),
            rgba(20, 61, 89, 0.62));

    border: 1px solid rgba(120, 230, 238, 0.55);
    border-radius: 2px;

    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 28px rgba(34, 199, 207, 0.18);

    overflow: hidden;

    transition:
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.tc-landing__button:hover {
    background:
        linear-gradient(135deg,
            rgba(34, 199, 207, 0.48),
            rgba(20, 61, 89, 0.78));

    border-color: rgba(120, 230, 238, 0.85);

    color: #ffffff;
    text-decoration: none;

    transform: translateY(-2px);

    box-shadow:
        0 22px 54px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 0 38px rgba(34, 199, 207, 0.30);
}

.tc-landing__button::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.22),
            transparent);

    transform: translateX(-120%);
    transition: transform .7s ease;
}

.tc-landing__button:hover::before {
    transform: translateX(120%);
}

.tc-landing__button::after {
    content: "";

    position: absolute;
    left: -35%;
    bottom: 0;

    width: 35%;
    height: 4px;

    background:
        linear-gradient(90deg,
            transparent,
            #ef3b2d,

            transparent);

    animation: tc-cta-line 2s linear infinite;
}

@keyframes tc-cta-line {
    0% {
        left: -35%;
    }

    100% {
        left: 100%;
    }
}




.tc-landing__partners {
    padding: 0 38px;
    margin-bottom: 0;
}

.tc-landing__partners h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.tc-landing__partners p {
    margin: 0;
    max-width: 760px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 700;
}

/* =========================================================
   LANDING PAGE RESPONSIVE FIX
========================================================= */

@media (max-width: 900px) {

    .tc-landing {
        width: 100%;
        max-width: 100%;
        margin-left: 0;

        height: auto;
        height: calc(100vh - 129px);

        padding: 42px 26px 42px;
        box-sizing: border-box;

        justify-content: flex-start;

        background-position: center center;
    }

    .tc-landing__hero,
    .tc-landing__partners {
        width: 100%;
        max-width: 100%;

        margin-left: 0 !important;
        margin-right: 0 !important;

        transform: none !important;

        padding-left: 0;
        padding-right: 0;

        box-sizing: border-box;
    }

    .tc-landing__hero {
        margin-top: 0;
        margin-bottom: 48px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .tc-landing__eyebrow {
        font-size: 13px;
        line-height: 1.35;
        margin-bottom: 18px;
    }

    .tc-landing__hero h1 {
        max-width: 100%;

        font-size: 36px;
        line-height: 1.05;
        letter-spacing: -0.04em;

        margin-bottom: 22px;

        word-break: normal;
        overflow-wrap: normal;
    }

    .tc-landing__hero p {
        max-width: 100%;

        font-size: 15px;
        line-height: 1.55;

        margin-bottom: 30px;
    }

    .tc-landing__button {
        width: 88% !important;
        max-width: 320px !important;

        height: 50px;

        margin: 0 auto;

        padding: 0 22px;

        font-size: 14px;

        box-sizing: border-box;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tc-landing__partners {
        margin-bottom: 0;
    }

    .tc-landing__partners h2 {
        font-size: 14px;
        line-height: 1.3;
    }

    .tc-landing__partners p {
        max-width: 100%;

        font-size: 13px;
        line-height: 1.55;
    }
}

@media (max-width: 420px) {

    .tc-landing {
        padding: 34px 24px 36px;
    }

    .tc-landing__hero h1 {
        font-size: 33px;
    }

    .tc-landing__hero p {
        font-size: 14px;
    }
}

/* =========================================================
   Molecule detail
========================================================= */

.tc-molecule-detail {
    max-width: 1220px;
    margin: 24px auto 40px;
    padding: 0 24px;
    color: #123044;
    font-family: "IBM Plex Sans", Arial, sans-serif;
}

.tc-molecule-header,
.tc-molecule-viewer,
.tc-molecule-properties,
.tc-experimental-tests {
    background: #ffffff;
    border: 1px solid #cfd9e3;
    border-radius: 4px;
    border-top: 2px solid #0B6E7C !important;
    box-shadow: none;

}


.tc-molecule-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 18px 22px;
    margin-bottom: 18px;
    border-top: 3px solid #0B6E7C !important;
    ;
}

.tc-molecule-code {
    margin-bottom: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tc-molecule-header h1 {
    margin: 0 0 14px;
    color: #08263a;
    font-size: 25px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.tc-molecule-header h1 span {
    color: #000;
    font-size: var(--t-36, 30px);
    line-height: var(--lh-tight, 1.15);
    font-weight: var(--fw-semibold, 600);
    text-transform: none;
}

.tc-molecule-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 1px solid #dbe3ec;
    border-radius: 0;
}

.tc-molecule-meta div {
    min-width: 94px;
    padding: 9px 12px;
    border-right: 1px solid #dbe3ec;
    background: #fbfdff;
}

.tc-molecule-meta div:last-child {
    border-right: 0;
}

.tc-molecule-meta span {
    display: block;
    margin: 0 0 3px;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tc-molecule-meta strong {
    color: #0f2537;
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 12px;
    font-weight: 800;
}

.tc-molecule-actions {
    display: flex;
    align-items: center;
    gap: 10px;

}

.tc-molecule-detail .tc-molecule-actions .tc-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    border: 1px solid #cfd9e3;
    border-radius: 2px;
    background: #fff;
    color: #17384f;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.tc-molecule-detail .tc-molecule-actions .tc-edit-btn:hover {
    background: #f6f9fc;
    text-decoration: none;
}



.tc-status {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e8f8ef;
    color: #16753a;
    font-size: 10px;
    font-weight: 800;
}

.tc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid #cfd9e3;
    border-radius: 2px;
    background: #fff;
    color: #17384f;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.tc-btn:hover {
    background: #f6f9fc;
    text-decoration: none;
}

/* layout principale */
.tc-molecule-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

/* card title */

.tc-molecule-properties h2,
.tc-section-title h2 {
    margin: 0;
    padding: 10px 14px;
    border-bottom: 1px solid #cfd9e3;
    background: #f8fbfd;
    color: #446174;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* viewer top bar */
.tc-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 14px;

    border-bottom: 1px solid #cfd9e3;
    background: #f8fbfd;
}

.tc-viewer-header h2 {
    margin: 0;

    color: #446174;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* FORCE COMPACT 2D/3D TOGGLE */
.tc-main .tc-viewer-toggle {
    display: inline-flex;
    align-items: center;
    overflow: hidden;

    border: 1px solid #cfd9e3;
    border-radius: 2px;
    background: #ffffff;

    height: 22px;
}

.tc-main .tc-viewer-toggle button {
    width: 36px !important;
    min-width: 36px !important;
    height: 22px !important;
    min-height: 22px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    border-right: 1px solid #dbe3ec !important;
    border-radius: 0 !important;

    background: #ffffff !important;
    color: #5d7485 !important;

    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 22px !important;
    letter-spacing: 0 !important;

    box-shadow: none !important;
    transform: none !important;
}

.tc-main .tc-viewer-toggle button:last-child {
    border-right: 0 !important;
}

.tc-main .tc-viewer-toggle button.is-active {
    background: #0B6E7C !important;
    color: #ffffff !important;
}

/* viewer */
.tc-molecule-viewer {
    padding: 0;
}


.tc-molecule-canvas {
    height: 520px;
    margin: 0;
    border: 0;
    border-radius: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #fbfdff;
    background-image:
        radial-gradient(circle, rgba(201, 216, 227, 0.35) 1px, transparent 1px);
    background-size: 18px 18px;
}

.tc-canvas-placeholder {
    color: #94a3b8;
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 13px;
}

/* FORCE VIEWER TOOL BUTTONS */
.tc-main .tc-viewer-tools button {
    width: auto !important;
    height: 28px !important;
    min-height: 28px !important;

    padding: 0 12px !important;

    border: 1px solid #cfd9e3 !important;
    border-radius: 3px !important;

    background: #ffffff !important;
    color: #17384f !important;

    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;

    box-shadow: none !important;
    transform: none !important;
    backdrop-filter: none !important;
}

.tc-main .tc-viewer-tools button:hover {
    background: #f1f6fa !important;
    color: #17384f !important;
    transform: none !important;
    box-shadow: none !important;
}

/* properties */
.tc-molecule-properties {
    padding: 0;
}

.tc-molecule-properties dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    margin: 0;
    padding: 0 14px;
}

.tc-molecule-properties dt,
.tc-molecule-properties dd {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #e5edf4;
    font-size: 12px;
}

.tc-molecule-properties dt {
    color: #5d7485;
    font-weight: 700;
}

.tc-molecule-properties dd {
    color: #0f2537;
    font-family: "IBM Plex Mono", Consolas, monospace;
    overflow-wrap: anywhere;
}

/* tests */
.tc-experimental-tests {
    margin-top: 18px;
    padding: 0;
}

.tc-experimental-tests .tc-section-title h2 {
    border-bottom: 1px solid #cfd9e3;
}

.tc-tests-table,
.tc-experimental-tests table {
    width: 100%;
    border-collapse: collapse;
    border: 0;
    border-radius: 0;
    background: #ffffff;
}

.tc-tests-table th,
.tc-tests-table td,
.tc-experimental-tests th,
.tc-experimental-tests td {
    padding: 10px 14px;
    border-bottom: 1px solid #e5edf4;
    color: #123044;
    font-size: 12px;
    text-align: left;
}

.tc-tests-table th,
.tc-experimental-tests th {
    background: #f8fbfd;
    color: #5d7485;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tc-tests-table td,
.tc-experimental-tests td {
    background: #fff;
}

.tc-tests-table tbody tr:hover td,
.tc-experimental-tests tbody tr:hover td {
    background: #f8fbfd;
}




@media (max-width: 900px) {
    .tc-molecule-main {
        grid-template-columns: 1fr;
    }

    .tc-molecule-header {
        flex-direction: column;
    }

    .tc-molecule-canvas {
        height: 360px;
    }
}


@media (max-width: 768px) {

    .tc-viewer-tools {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 12px 0 0 !important;
    }

    .tc-main .tc-viewer-tools button {
        width: 100% !important;
        min-width: 0 !important;

        height: 38px !important;
        min-height: 38px !important;

        padding: 0 6px !important;

        font-size: 11px !important;
        line-height: 1.1 !important;

        white-space: normal !important;
        text-align: center !important;
    }
}

/* =========================================================
   Test detail
========================================================= */

.tc-test-detail {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px;

    font-family: var(--font-sans, "IBM Plex Sans", system-ui, sans-serif);
    color: var(--fg-2, #1B3D55);
}

/* HEADER */
.tc-test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* prima era flex-start */
    gap: 24px;

    padding: 24px 28px;
    margin-bottom: 24px;

    background: #ffffff;
    border: 1px solid var(--rule, #D2DAE0);
    border-top: 3px solid var(--teal-600, #0B6E7C);
    border-radius: var(--r-3, 10px);

    box-shadow: var(--shadow-2, 0 4px 16px -4px rgb(10 31 45 / 0.14));
}

.tc-test-code {
    display: block;
    margin-bottom: 6px;

    color: var(--fg-3, #5A7384);
    font-size: var(--t-12, 12px);
    font-weight: var(--fw-semibold, 600);
    letter-spacing: var(--track-caps, 0.08em);
    text-transform: uppercase;
}

.tc-test-header h1 {
    margin: 0 0 10px;
    color: var(--fg-1, #0A1F2D);
    font-size: var(--t-36, 34px);
    line-height: var(--lh-tight, 1.15);
    font-weight: var(--fw-semibold, 600);
    letter-spacing: var(--track-tight, -0.01em);
}

.tc-test-molecule {
    color: var(--fg-3, #5A7384);
    font-size: var(--t-14, 15px);
    font-weight: var(--fw-medium, 500);
}

.tc-test-molecule a {
    color: var(--teal-700, #086372);
    font-weight: var(--fw-semibold, 600);
    text-decoration: none;
}

.tc-test-molecule a:hover {
    text-decoration: underline;
}

.tc-test-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;

    margin-top: 0;
    align-self: center;
}

.tc-test-date {
    display: inline-flex;
    align-items: center;

    min-height: 36px;
    padding: 0 14px;

    background: var(--paper-2, #F5F8FA);
    border: 1px solid var(--rule, #D2DAE0);
    border-radius: var(--r-pill, 999px);

    color: var(--fg-3, #5A7384);
    font-size: var(--t-13, 13px);
    font-weight: var(--fw-medium, 500);
}

/* META GRID */
.tc-test-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.tc-test-meta-card {
    background: #ffffff;
    border: 1px solid var(--rule, #D2DAE0);
    border-radius: var(--r-3, 10px);
    box-shadow: var(--shadow-2, 0 4px 16px -4px rgb(10 31 45 / 0.14));

    padding: 18px 20px;
}

.tc-test-meta-card span {
    display: block;
    margin-bottom: 8px;

    color: var(--fg-3, #5A7384);
    font-size: var(--t-12, 12px);
    font-weight: var(--fw-semibold, 600);
    letter-spacing: var(--track-caps, 0.08em);
    text-transform: uppercase;
}

.tc-test-meta-card strong {
    color: var(--fg-1, #0A1F2D);
    font-family: var(--font-mono, "IBM Plex Mono", Consolas, monospace);
    font-size: var(--t-15, 15px);
    font-weight: var(--fw-medium, 500);
}


/* BORDER TOP TEAL */
.tc-test-meta-card,
.tc-test-graph-card,
.tc-test-notes-card {
    border-top: 2px solid #0B6E7C;
}

/* CARDS */
.tc-test-graph-card,
.tc-test-notes-card {
    background: #ffffff;
    border: 1px solid var(--rule, #D2DAE0);
    border-radius: var(--r-3, 10px);
    box-shadow: var(--shadow-2, 0 4px 16px -4px rgb(10 31 45 / 0.14));

    padding: 24px;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.tc-section-title h2 {
    margin: 0 0 18px;

    color: var(--fg-1, #0A1F2D);
    font-size: var(--t-28, 28px);
    line-height: var(--lh-tight, 1.15);
    font-weight: var(--fw-semibold, 600);
    letter-spacing: var(--track-tight, -0.01em);
}

/* GRAPH */
.tc-graph-frame {
    aspect-ratio: 16 / 9;
    min-height: 420px;

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    background: var(--paper-2, #F5F8FA);
    border: 1px dashed var(--rule, #D2DAE0);
    border-radius: var(--r-2, 6px);
}

.tc-graph-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* NOTES */
.tc-test-notes {
    min-height: 130px;
    padding: 18px;

    background: var(--paper-2, #F5F8FA);
    border: 1px solid var(--rule, #D2DAE0);
    border-radius: var(--r-2, 6px);
}

.tc-test-notes p {
    margin-top: 0;
}

.tc-edit-btn {
    margin-left: 0;
}

/* RESPONSIVE */

@media (max-width: 1000px) {

    .tc-test-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {

    body:has(.tc-test-detail) .tc-main {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    body:has(.tc-test-detail) .tc-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .tc-test-detail {
        width: 100%;
        max-width: 100%;

        margin: 22px 0 42px;
        padding: 0 14px;

        box-sizing: border-box;
    }

    .tc-test-header {
        padding: 34px 22px;

        border-radius: 22px;

        text-align: center;
        align-items: center;

        flex-direction: column;
    }

    .tc-test-header h1 {
        font-size: 42px;
        line-height: 0.95;
        letter-spacing: -0.04em;

        margin: 10px 0 16px;
    }

    .tc-test-header .tc-test-id {
        font-size: 11px;
        letter-spacing: 0.18em;
    }

    .tc-test-molecule {
        font-size: 15px;
        line-height: 1.5;
    }

    .tc-test-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .tc-test-meta-card {
        padding: 18px 16px;

        border-radius: 18px;

        min-height: 112px;

        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .tc-test-meta-card h3 {
        font-size: 10px;
        letter-spacing: 0.14em;

        margin-bottom: 14px;
    }

    .tc-test-meta-card p {
        font-size: 16px;
        line-height: 1.45;

        word-break: break-word;
    }

    .tc-test-graph-card,
    .tc-test-notes-card {
        padding: 20px;
        border-radius: 20px;
    }

    .tc-graph-frame {
        min-height: 0 !important;

        padding: 8px;

        border-radius: 16px;

        aspect-ratio: auto !important;

        box-sizing: border-box;
    }

    .tc-graph-frame img {
        width: 100% !important;
        height: auto !important;

        display: block;

        object-fit: contain;
    }

    .tc-section-title h2 {
        font-size: 24px;
        letter-spacing: -0.03em;
    }

    .tc-test-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {

    .tc-test-detail {
        padding: 0 12px;
    }

    .tc-test-header {
        padding: 30px 18px;
    }

    .tc-test-header h1 {
        font-size: 36px;
    }

    .tc-test-meta-grid {
        gap: 12px;
    }

    .tc-test-meta-card {
        padding: 16px 14px;
        min-height: 104px;
    }

    .tc-test-meta-card p {
        font-size: 15px;
    }
}




/* ===============================
   Molecular Drawing Component
================================= */

.tc-molecular-drawing-box {
    max-width: 760px;
    margin: 30px 0;
    padding: 10px;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    font-family: monospace;
}

.tc-md-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #111;
    padding: 6px 8px;
    margin-bottom: 28px;
}

.tc-md-help {
    border: 0;
    background: transparent;
    font-family: monospace;
    cursor: pointer;
}

.tc-md-label {
    display: block;
    margin-bottom: 10px;
}

.tc-md-input-row {
    display: grid;
    grid-template-columns: 1fr 240px;
    border: 1px solid #111;
    margin-bottom: 40px;
}

.tc-md-smiles-input {
    border: 0;
    border-right: 1px solid #111;
    padding: 8px;
    font-family: monospace;
}

.tc-md-generate {
    border: 0;
    background: #fff;
    font-family: monospace;
    text-decoration: underline;
    cursor: pointer;
}

.tc-md-toolbar {
    width: fit-content;
    margin: 0 auto -1px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    padding: 5px 8px;
    position: relative;
    z-index: 2;
}

.tc-md-toolbar button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.tc-md-preview {
    width: 390px;
    height: 190px;
    border: 1px solid #111;
    margin: 0 auto 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
}

.tc-md-ring {
    font-size: 42px;
    line-height: 1;
}

.tc-md-molecule-label {
    font-size: 15px;
}

.tc-md-representation {
    width: 500px;
    margin: 0 auto 55px;
    border: 1px solid #111;
    padding: 8px;
    display: flex;
    gap: 24px;
}

.tc-md-actions {
    display: flex;
    justify-content: center;
    gap: 70px;
    margin-bottom: 28px;
}

.tc-md-actions button {
    border: 1px solid #111;
    background: #fff;
    padding: 8px 18px;
    font-family: monospace;
    cursor: pointer;
}


.tc-main input:focus,
.tc-main select:focus {
    border-bottom-color: #000;

    box-shadow:
        0 1px 0 #000,
        0 4px 10px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {

    .tc-molecular-drawing-box {
        padding: 14px;
    }

    .tc-md-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .tc-md-input-row {
        grid-template-columns: 1fr;
    }

    .tc-md-smiles-input {
        border-right: 0;
        border-bottom: 1px solid #111;
    }

    .tc-md-preview {
        width: 100%;
        height: auto;
        min-height: 220px;

        padding: 20px;
        box-sizing: border-box;
    }

    .tc-md-representation {
        width: 100%;
        flex-direction: column;
        gap: 12px;

        box-sizing: border-box;
    }

    .tc-md-actions {
        flex-direction: column;
        gap: 14px;
    }

    .tc-md-actions button {
        width: 100%;
    }
}

/* =========================================================
   SEARCH UI GLASS — COMPLETE
========================================================= */

/* FORM */
.tc-search-form {
    background: rgba(255, 255, 255, 0.12) !important;

    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);

    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 14px;

    box-shadow:
        0 40px 110px rgba(0, 0, 0, 0.45),
        0 12px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);

    transition: all 0.25s ease;
}

.tc-search-form:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.34) !important;

    box-shadow:
        0 50px 130px rgba(0, 0, 0, 0.55),
        0 16px 40px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

/* INPUT */
.tc-main input,
.tc-main select {
    background: rgba(255, 255, 255, 0.10) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55) !important;
    color: #ffffff !important;

    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: all 0.22s ease;
}

.tc-main input:hover,
.tc-main select:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-bottom-color: rgba(255, 255, 255, 0.85) !important;
}

.tc-main input:focus,
.tc-main select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.16) !important;
    border-bottom-color: #ffffff !important;

    box-shadow:
        0 2px 0 #ffffff,
        0 8px 20px rgba(255, 255, 255, 0.14);
}

.tc-main input::placeholder {
    color: rgba(255, 255, 255, 0.64) !important;
}

.tc-main label {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* BUTTON */
.tc-main button,
.tc-main input[type="submit"] {
    height: 48px;

    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0;
    /* ← spigoloso */

    padding: 0 28px;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;

    cursor: pointer;

    backdrop-filter: blur(12px);

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);

    transition: all 0.2s ease;
}

/* hover pulito */
.tc-main button:hover,
.tc-main input[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.40);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* active */
.tc-main button:active,
.tc-main input[type="submit"]:active {
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* KETCHER */
.tc-ketcher-panel {
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;

    box-shadow:
        0 24px 65px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);

    transition: all 0.25s ease;
}

.tc-ketcher-panel:hover {
    background: rgba(255, 255, 255, 0.125) !important;
    border-color: rgba(255, 255, 255, 0.32) !important;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.tc-ketcher-panel h3 {
    color: #ffffff !important;
}

/* AUTOFILL FIX */
.tc-main input:-webkit-autofill,
.tc-main input:-webkit-autofill:hover,
.tc-main input:-webkit-autofill:focus,
.tc-main textarea:-webkit-autofill,
.tc-main select:-webkit-autofill {
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;

    box-shadow:
        0 0 0 1000px rgba(255, 255, 255, 0.12) inset,
        0 2px 0 #ffffff,
        0 8px 20px rgba(255, 255, 255, 0.14) !important;

    border-bottom: 1px solid #ffffff !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* =========================================================
   SEARCH HERO
========================================================= */

.tc-search-hero {
    max-width: 1320px;
    color: #ffffff;
}

.tc-search-hero p {
    max-width: 620px;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 19px;
    line-height: 1.55;
    font-weight: 400;
}

.tc-search-hero::after {
    content: "";
    display: block;

    width: 120px;
    height: 2px;
    margin-top: 28px;
    margin-bottom: 38px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.9),
            rgba(31, 122, 140, 0.6));
}


@media (max-width: 768px) {

    .tc-search-hero {
        padding: 0 10px;
    }

    .tc-search-hero p {
        margin-top: 24px;
        font-size: 16px;
        line-height: 1.5;
    }

    .tc-search-hero::after {
        width: 70px;
        margin-top: 20px;
        margin-bottom: 28px;
    }
}


/* =========================================================
   SEARCH RESULTS PAGE
========================================================= */

.tc-search-page .tc-results-header {
    margin: 54px 0 22px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.tc-search-page .tc-results-header h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 30px;
}

.tc-search-page .tc-results-header p {
    margin: 0;
    color: #cbd5e1;
}

.tc-search-page .tc-results-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.tc-search-page .tc-results-filters {
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbe3ef;
    border-radius: 0;
    padding: 22px;
    color: #0f172a !important;
}

.tc-search-page .tc-results-filters form {
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.tc-search-page .tc-results-filters h3 {
    margin: 0 0 20px;
    color: #0f172a;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tc-search-page .tc-filter-block {
    padding: 18px 0;
    border-top: 1px solid #e2e8f0;
}

.tc-search-page .tc-filter-block:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.tc-search-page .tc-filter-block strong {
    display: block;
    margin-bottom: 12px;
    color: #0f172a !important;
    font-weight: 800;
}

.tc-search-page .tc-results-filters label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    color: #1e293b !important;
    font-size: 14px;
    font-weight: 500;
}

.tc-search-page .tc-results-filters input[type="checkbox"] {
    display: inline-block;
    width: 16px !important;
    min-width: 16px;
    height: 16px !important;
    min-height: 16px;
    margin: 0;
    padding: 0;
    appearance: auto;
    accent-color: #1f7a8c;
}

.tc-search-page .tc-filter-range-inputs {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.tc-search-page .tc-filter-range-inputs input[type="number"] {
    display: block !important;
    width: 100% !important;
    min-width: 0;
    height: 40px !important;
    min-height: 40px !important;
    padding: 8px 10px !important;
    box-sizing: border-box;
    background: #fff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    font-size: 13px;
}

.tc-search-page .tc-filter-range-inputs input[type="number"]::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

.tc-search-page .tc-filter-range-inputs input[type="number"]:focus {
    outline: none;
    border-color: #1f7a8c !important;
    box-shadow: 0 0 0 3px rgba(31, 122, 140, 0.18) !important;
}

.tc-search-page .tc-filter-submit {
    width: 100%;
    margin-top: 18px;
    border-radius: 0;
    background: #1f7a8c;
    color: #fff;
    font-weight: 700;
}

.tc-search-page .tc-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 0;
}

.tc-search-page .tc-result-item {
    min-height: 360px;
    padding: 0;
    background: #fff;
    border: 0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0;
}

.tc-search-page .tc-result-item:hover {
    background: #f8fafc;
    box-shadow: none;
}

.tc-search-page .tc-result-card-link {
    display: block;
    height: 100%;
    padding: 22px;
    color: inherit;
    text-decoration: none;
}

.tc-search-page .tc-result-structure {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 135px;
    margin-bottom: 18px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-family: monospace;
    font-size: 16px;
    text-align: center;
    word-break: break-all;
}

.tc-search-page .tc-result-body h3 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 18px;
}

.tc-search-page .tc-result-body dl {
    margin: 0;
}

.tc-search-page .tc-result-body dl div {
    margin-bottom: 10px;
}

.tc-search-page .tc-result-body dt {
    display: inline;
    color: #0f172a;
    font-weight: 800;
}

.tc-search-page .tc-result-body dd {
    display: inline;
    margin: 0;
    color: #334155;
}

@media (max-width: 900px) {

    .tc-search-page .tc-results-layout,
    .tc-search-page .tc-results {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MOLECULE RESULT BOX - DRAWING + SMILES
========================================================= */

.tc-search-page .tc-result-structure {
    display: block;
    min-height: 0;
    padding: 12px;
    margin-bottom: 18px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    text-align: center;
}

.tc-search-page .tc-result-molecule-drawing {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.tc-search-page .tc-result-molecule-drawing svg {
    max-width: 100%;
    height: auto;
}

.tc-search-page .tc-result-smiles {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    color: #334155;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.35;
    word-break: break-all;
}

.tc-search-page .tc-result-smiles::before {
    content: "SMILES: ";
    font-weight: 700;
    color: #0f172a;
}


/* =========================================================
   SEARCH DROPDOWN - KEEP ORIGINAL SEARCH STYLE
========================================================= */

.tc-search-page .tc-search-dropdown {
    margin: 0 0 26px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.tc-search-page .tc-search-dropdown>summary {
    padding: 16px 22px;
    background: rgba(31, 122, 140, 0.88);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.tc-search-page .tc-search-dropdown>summary::-webkit-details-marker {
    display: none;
}

.tc-search-page .tc-search-dropdown>summary::after {
    content: "▼";
    float: right;
    font-size: 12px;
}

.tc-search-page .tc-search-dropdown[open]>summary::after {
    content: "▲";
}

.tc-search-page .tc-search-dropdown .tc-search-form {
    margin: 0;
    border-radius: 0;
}

@media (max-width: 768px) {

    .tc-search-page .tc-search-dropdown>summary {
        padding: 14px 16px;
        font-size: 14px;
    }

    .tc-search-page .tc-search-dropdown .tc-search-form {
        padding: 18px;
    }
}

/* =========================================================
   SEARCH DROPDOWN ANIMATION
========================================================= */

.tc-search-page .tc-search-dropdown {
    overflow: hidden;
}

.tc-search-page .tc-search-dropdown .tc-search-form {
    transform-origin: top center;
    animation: none;
}

.tc-search-page .tc-search-dropdown[open] .tc-search-form {
    animation: tcSearchReveal 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes tcSearchReveal {
    0% {
        opacity: 0;
        transform: translateY(-18px) scaleY(0.96);
        filter: blur(8px);
    }

    60% {
        opacity: 1;
        transform: translateY(4px) scaleY(1.01);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
        filter: blur(0);
    }
}

/* =========================================================
   LOGIN PAGE
========================================================= */

/* main */

.tc-main:has(.user-login-form) {
    width: 100%;
}

/* container */

.tc-main:has(.user-login-form) .tc-container {

    width: 100vw;
    max-width: 100vw;

    margin-left: calc(50% - 50vw);

    min-height: calc(100vh - 115px);

    display: flex;
    align-items: center;
    justify-content: center;


    background:

        url("/themes/custom/thermochem_theme/images/image.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* login card */

.tc-main:has(.user-login-form) .user-login-form {
    width: 100%;
    max-width: 360px;
    min-height: 550px;

    padding: 52px 44px 0;

    background: #ffffff;

    border: 14px solid rgba(15, 23, 42, 0.14);
    border-radius: 0;

    box-shadow:
        0 32px 80px rgba(15, 23, 42, 0.22);

    display: flex;
    flex-direction: column;
}

/* title */

.tc-main:has(.user-login-form) .user-login-form::before {
    content: "Sign in";

    display: block;

    margin-bottom: 30px;

    color: #0a1f2d;

    font-size: 40px;
    line-height: 1;
    font-weight: 400;

    text-align: center;
}

/* footer */

.tc-main:has(.user-login-form) .user-login-form::after {
    content: "Don't have access yet?     Learn more     Contact sales";

    display: flex;
    align-items: center;

    min-height: 96px;

    margin: auto -44px 0;
    padding: 0 30px;

    background: #727272;
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
}

/* form items */

.tc-main:has(.user-login-form) .user-login-form .form-item {
    margin-bottom: 24px;
}

/* labels */

.tc-main:has(.user-login-form) .user-login-form label {
    display: block;

    margin-bottom: 8px;

    color: #5f6b75 !important;

    font-size: 14px;
    font-weight: 600;

    text-transform: none;
    letter-spacing: 0;
}

/* inputs */

.tc-main:has(.user-login-form) .user-login-form input[type="text"],
.tc-main:has(.user-login-form) .user-login-form input[type="password"] {
    width: 100% !important;

    height: 44px !important;
    min-height: 44px !important;

    padding: 0 14px !important;

    background: #ffffff !important;

    border: 1px solid #8d969c !important;
    border-radius: 0 !important;

    color: #0a1f2d !important;
    font-size: 15px !important;

    box-sizing: border-box;

    box-shadow: none !important;
}

/* focus */

.tc-main:has(.user-login-form) .user-login-form input[type="text"]:focus,
.tc-main:has(.user-login-form) .user-login-form input[type="password"]:focus {
    outline: none;

    border-color: #0B6E7C !important;

    box-shadow:
        0 0 0 3px rgba(11, 110, 124, 0.16) !important;
}

/* descriptions */

.tc-main:has(.user-login-form) .description,
.tc-main:has(.user-login-form) .form-item .description {
    color: #64748b;
    font-size: 12px;
}

/* hide default title */

.tc-main:has(.user-login-form) h1.page-title {
    display: none;
}

/* form actions */

.tc-main:has(.user-login-form) .user-login-form .form-actions {
    position: relative;

    margin-top: 22px;

    text-align: center;
}

/* submit */

.tc-main:has(.user-login-form) .user-login-form input[type="submit"] {
    width: 210px !important;
    height: 48px !important;

    padding-right: 46px !important;

    background: #0B7F9B !important;

    border: 0 !important;
    border-radius: 0 !important;

    color: #ffffff !important;

    font-size: 18px !important;
    font-weight: 700 !important;

    cursor: pointer;

    transition:
        background .22s ease,
        color .22s ease,
        border .22s ease,
        transform .18s ease,
        box-shadow .22s ease,
        filter .22s ease;
}

/* hover */

.tc-main:has(.user-login-form) .user-login-form input[type="submit"]:hover {
    background: #ffffff !important;

    color: #000000 !important;

    border: 2px solid #0B7F9B !important;

    filter: brightness(1.04);
}

/* active */

.tc-main:has(.user-login-form) .user-login-form input[type="submit"]:active {
    transform: translateY(0);
}

/* arrow */

.tc-main:has(.user-login-form) .user-login-form .form-actions::after {
    content: "›";

    position: absolute;

    top: 45%;
    left: 47%;

    transform: translate(78px, -52%);

    color: #ffffff;

    font-size: 42px;
    font-weight: 300;
    line-height: 1;

    pointer-events: none;

    transition:
        transform .22s ease,
        color .22s ease;
}

/* arrow hover */

.tc-main:has(.user-login-form) .user-login-form .form-actions:hover::after {
    color: #000000 !important;
}


.tc-user-dropdown {
    position: relative;
}

.tc-user-dropdown-toggle {
    cursor: pointer;
}

.tc-user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;

    min-width: 180px;

    padding: 10px 0;

    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;

    backdrop-filter: blur(18px);

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.38);

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;

    z-index: 999;
}

.tc-user-dropdown:hover .tc-user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tc-user-dropdown-menu a {
    display: flex;
    align-items: center;

    height: 42px;
    padding: 0 18px;

    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background .18s ease,
        color .18s ease;
}

.tc-user-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

/* MOBILE DROPDOWN  */

@media (max-width: 768px) {

    .tc-header {
        overflow: visible !important;
        z-index: 9999 !important;
    }

    .tc-header__inner,
    .tc-header__right,
    .tc-user-dropdown {
        overflow: visible !important;
    }

    .tc-user-dropdown {
        position: relative;
        z-index: 10000;
    }

    .tc-user-dropdown-menu {
        top: calc(100% + 8px) !important;
        right: 0 !important;
        z-index: 10001 !important;
    }

    .tc-user-dropdown:hover .tc-user-dropdown-menu,
    .tc-user-dropdown:focus-within .tc-user-dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
}

/* =========================================================
   LOGIN PAGE RESPONSIVE HARD FIX
========================================================= */

@media (max-width: 768px) {

    .tc-main:has(.user-login-form) {
        max-width: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .tc-main:has(.user-login-form) .tc-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;

        height: calc(100vh - 129px);

        padding: 28px 16px !important;
        box-sizing: border-box;

        display: flex;
        align-items: center;
        justify-content: center;

        background-position: center center;
    }

    .tc-main:has(.user-login-form) .user-login-form {
        width: 100% !important;
        max-width: 360px !important;
        min-height: auto !important;

        padding: 36px 22px 0 !important;
        box-sizing: border-box;

        border-width: 8px !important;
    }

    .tc-main:has(.user-login-form) .user-login-form::before {
        font-size: 32px !important;
        margin-bottom: 28px !important;
    }

    .tc-main:has(.user-login-form) .user-login-form .form-item {
        margin-bottom: 22px !important;
    }

    .tc-main:has(.user-login-form) .user-login-form input[type="text"],
    .tc-main:has(.user-login-form) .user-login-form input[type="password"] {
        width: 100% !important;
        height: 44px !important;
        min-height: 44px !important;
    }

    .tc-main:has(.user-login-form) .user-login-form input[type="submit"] {
        width: 100% !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        text-align: center !important;
    }

    .tc-main:has(.user-login-form) .user-login-form .form-actions::after {
        display: none !important;
    }

    .tc-main:has(.user-login-form) .user-login-form::after {
        margin: 28px -22px 0 !important;
        padding: 18px 16px !important;

        min-height: auto !important;

        font-size: 12px !important;
        line-height: 1.4 !important;

        text-align: center;
        justify-content: center;
    }
}

/* LOGIN AUTOFILL FIX */

.tc-main:has(.user-login-form) .user-login-form input:-webkit-autofill,
.tc-main:has(.user-login-form) .user-login-form input:-webkit-autofill:hover,
.tc-main:has(.user-login-form) .user-login-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #0a1f2d !important;
    caret-color: #0a1f2d !important;

    box-shadow: 0 0 0 1000px #ffffff inset !important;

    background: #ffffff !important;
    color: #0a1f2d !important;
}