/* ================================================
   Resources Hub
   ================================================ */
.resources-hub {
    padding-top: 0;
}

.resources-hub-title {
    margin: 0 0 8px 0;
    font-weight: 700;
    color: var(--lionex-primary-dark);
}

.page-software .resources-hub-title .product-name,
.page-software .resources-hub-title .trademark,
.page-software .software-member-panel__title .product-name,
.page-software .software-member-panel__title .trademark {
    color: inherit;
    font-weight: 700;
}

.resources-hub-lead {
    margin: 0 0 20px 0;
    color: var(--lionex-text-secondary);
    max-width: 42em;
}

.resources-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 600px) {
    .resources-cards {
        grid-template-columns: 1fr;
    }
}

.resource-card {
    display: block;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--lionex-primary);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
    border-left-color: var(--lionex-primary-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.resource-card h3 {
    margin: 0 0 8px 0;
    font-weight: 600;
    color: var(--lionex-primary-dark);
}

.resource-card p {
    margin: 0;
    color: var(--lionex-text-secondary);
}

/* ================================================
   Catalogue Page
   ================================================ */
.catalogue-section h2 {
    margin: 0 0 12px 0;
    font-weight: 700;
    color: var(--lionex-primary-dark);
}

.catalogue-intro {
    margin: 0 0 20px 0;
    color: var(--lionex-text-secondary);
    max-width: 42em;
}

.catalogue-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.catalogue-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--lionex-primary);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--lionex-primary);
}

.catalogue-button:hover {
    background: var(--lionex-primary-dark);
    border-color: var(--lionex-primary-dark);
}

.catalogue-button--outline {
    background: transparent;
    color: var(--lionex-primary) !important;
}

.catalogue-button--outline:hover {
    background: rgba(0, 110, 183, 0.08);
    border-color: var(--lionex-primary-dark);
    color: var(--lionex-primary-dark) !important;
}

/* ================================================
   Documents / Downloads Page
   ================================================ */

.page-resources .resources-header,
.page-documents .resources-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.page-resources .resources-header h2,
.page-documents .resources-header h2 {
    margin: 0 0 12px 0;
    font-weight: 700;
    color: var(--lionex-primary-dark);
}

.page-resources .resources-lead,
.page-documents .resources-lead {
    margin: 0;
    color: var(--lionex-text-secondary);
    max-width: 42em;
}

.page-resources .downloads-section,
.page-documents .downloads-section {
    margin-bottom: 24px;
}

.downloads-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--lionex-heading);
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.downloads-section h2 a {
    color: inherit;
    text-decoration: none;
}

.downloads-section h2 a:hover {
    text-decoration: underline;
}

.downloads-section h3 {
    font-weight: 600;
    color: var(--lionex-text-secondary);
    margin: 20px 0 12px 0;
}

.downloads-section h3:first-child {
    margin-top: 0;
}

.downloads-product-subsection {
    margin-top: 20px;
}

.downloads-product-subsection:first-child {
    margin-top: 0;
}

.downloads-product-subsection h3 {
    font-weight: 700;
    color: var(--lionex-text);
    margin: 0 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.downloads-product-subsection h3 a {
    color: inherit;
    text-decoration: none;
}

.downloads-product-subsection h3 a:hover {
    text-decoration: underline;
}

.downloads-product-subsection h4 {
    font-weight: 600;
    color: var(--lionex-text-secondary);
    margin: 16px 0 8px 0;
}

.downloads-product-subsection h4:first-of-type {
    margin-top: 0;
}

.downloads-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.downloads-list li {
    margin-bottom: 8px;
    padding: 4px 0;
}

.downloads-list a {
    text-decoration: none;
}

.downloads-list a:hover {
    text-decoration: underline;
}

/* Documents — always-underlined chrome only (not pills, lists, or CTA) */
.page-documents .container--header a,
.page-documents .container--header a:hover,
.page-documents .container--header a:focus {
    text-decoration: underline;
}

.page-documents .main-backdrop .faq-back-to-top a,
.page-documents .main-backdrop a.breadcrumb-back,
.page-documents .main-backdrop .faq-back-to-top a:hover,
.page-documents .main-backdrop .faq-back-to-top a:focus,
.page-documents .main-backdrop a.breadcrumb-back:hover,
.page-documents .main-backdrop a.breadcrumb-back:focus {
    text-decoration: underline;
}

.downloads-list .doc-lang {
    color: var(--lionex-text-muted);
    margin-left: 4px;
}

.contact-cta {
    margin-top: 24px;
    padding: 20px;
    background: var(--lionex-bg-intro);
    text-align: center;
    text-align-last: center;
    border: 1px solid rgba(0, 91, 159, 0.12);
    border-left: 4px solid var(--lionex-primary);
}

.main-content p.contact-cta {
    text-align: center;
    text-align-last: center;
}

.contact-cta a {
    font-weight: 600;
    color: var(--lionex-primary);
    text-decoration: none;
}

.contact-cta a:hover,
.contact-cta a:focus {
    color: var(--lionex-primary-dark);
    text-decoration: none;
}

/* ================================================
   FAQ
   ================================================ */
.page-resources .faq-list {
    margin: 0;
    padding: 0;
}

.page-resources .faq-list dt {
    margin: 24px 0 8px 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--lionex-heading);
}

.page-resources .faq-list dt:first-child {
    margin-top: 0;
}

.page-resources .faq-list dd {
    margin: 0;
    padding: 0 0 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: var(--lionex-font-body);
    font-weight: 400;
    line-height: 1.65;
    color: var(--lionex-intro-text);
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.page-resources .faq-list dd:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.page-resources #endotrap-faq .faq-list dd:last-child,
.page-resources #lioferon-faq .faq-list dd:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 16px;
}

.page-resources .faq-list dd p {
    margin: 8px 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    text-align: inherit;
    text-align-last: inherit;
    hyphens: inherit;
    -webkit-hyphens: inherit;
}

.page-resources .faq-list dd p:first-child {
    margin-top: 0;
}

.page-resources #faq-top,
.page-documents #documents-top {
    scroll-margin-top: calc(88px + 1rem);
}

/* FAQ: pills toggle panels (JS); no extra tab bar */
.faq-switcher__panels {
    margin: 0;
    padding: 0;
}

.faq-switcher--js .faq-panel[hidden] {
    display: none !important;
}

.faq-switcher--js .faq-switcher__panels .faq-panel.downloads-section {
    margin-bottom: 0;
}

.faq-switcher--js .page-toc__pills a[aria-selected="true"] {
    border-color: var(--lionex-primary);
    color: var(--lionex-primary-dark);
    background: rgba(0, 110, 183, 0.07);
    box-shadow: none;
}

.faq-switcher--js .page-toc__pills a[aria-selected="false"] {
    background: #fff;
}

.page-resources .faq-panel:focus {
    outline: none;
}

.page-resources .faq-panel[id] {
    scroll-margin-top: calc(88px + 1rem);
}

.page-documents .downloads-section[id] {
    scroll-margin-top: calc(88px + 1rem);
}

.page-documents .downloads-section:last-of-type {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 16px;
}

#endotrap-faq .faq-back-to-top,
.page-documents .faq-back-to-top {
    margin: var(--lionex-space-3) 0 0;
    padding: 0;
    border: none;
}

.page-resources .main-backdrop .contact-cta {
    margin-top: var(--lionex-space-6);
}

.page-resources .main-backdrop #endotrap-faq .contact-cta,
.page-resources .main-backdrop #lioferon-faq .contact-cta,
.page-documents .main-backdrop .contact-cta {
    margin-top: var(--lionex-space-8);
}

.page-resources .main-backdrop .why-lionex,
.page-documents .main-backdrop .why-lionex {
    margin-top: var(--cat-section-space, 32px);
}

/* ================================================
   Software / member area (LIOFeron® IGRA download)
   ================================================ */
.page-software .software-page-section {
    margin-bottom: 28px;
}

.page-software .software-page-section__register {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    max-width: 36rem;
}

.page-software .resources-lead {
    margin: 0;
    max-width: 42em;
    line-height: 1.65;
    color: var(--lionex-text-secondary);
}

/* Linked product names — same as .category-body trademark-link (products.css) */
.page-software .software-page-section a.trademark-link,
.page-software .software-page-section__register a.trademark-link {
    color: var(--lionex-primary);
    text-decoration: none;
    font-weight: inherit;
}

.page-software .software-page-section a.trademark-link strong.product-name,
.page-software .software-page-section a.trademark-link strong.trademark,
.page-software .software-page-section__register a.trademark-link strong.trademark {
    color: var(--lionex-primary);
    font-weight: 700;
}

.page-software .software-page-section a.trademark-link:hover,
.page-software .software-page-section a.trademark-link:focus,
.page-software .software-page-section__register a.trademark-link:hover,
.page-software .software-page-section__register a.trademark-link:focus {
    color: var(--lionex-primary-dark);
    text-decoration: none;
}

.page-software .software-download-actions {
    margin-top: 20px;
}

.page-software .software-download-actions .catalogue-button {
    text-decoration: none;
}

.software-member-panel__title {
    margin: 0 0 16px 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--lionex-heading);
}

.software-member-panel__title--major {
    font-size: 1.375rem;
    margin-bottom: 18px;
}

.page-software .software-member-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
}

.page-software .software-member-form .form-field {
    margin: 0;
}

.page-software .software-member-form .form-field > label:not(.form-consent) {
    margin-bottom: 6px;
    font-weight: 600;
    line-height: 1.35;
}

.page-software .software-member-form .form-field input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-software .software-member-form .form-field--consent {
    padding-top: 4px;
}

.page-software .software-member-form .form-field.form-field--consent > label.form-consent {
    display: grid;
    grid-template-columns: 1.125rem 1fr;
    column-gap: 12px;
    align-items: start;
    margin: 0;
    font-size: var(--lionex-font-small);
    line-height: 1.55;
}

.page-software .software-member-form .form-field.form-field--consent > label.form-consent input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0.2em 0 0 0;
    grid-column: 1;
    grid-row: 1;
}

.page-software .software-member-form .form-field.form-field--consent .form-consent__text {
    grid-column: 2;
    grid-row: 1;
}

.page-software .software-member-form .form-field--actions {
    padding-top: 4px;
}

.page-software .software-member-form .form-field--actions .form__submit {
    width: auto;
    min-width: 10rem;
    margin: 0;
}

.software-member-required {
    color: var(--lionex-accent-red);
    margin-left: 2px;
}

.software-member-optional {
    font-weight: 400;
    color: var(--lionex-text-muted);
    font-size: var(--lionex-font-small);
}

.page-software .contact-cta {
    margin-top: 32px;
}

.page-software .main-backdrop .why-lionex {
    margin-top: var(--cat-section-space, 32px);
}
