/* ================================================================
   Safety data sheets block (Drošības datu lapas)
   .sd-sheets    — reagent cards: hazard pictogram, tags, specs, file
   .sd-safety    — short safety tips with an emergency number card
   Section head reuses .pub-section / .pub-section__head
   from publications-block.css
   ================================================================ */

.sd-block * {
    box-sizing: border-box;
}

/* ================= reagent cards ================= */

.sd-sheets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sd-card {
    display: flex;
    flex-direction: column;
    padding: 30px 30px 26px;
    border: 1px solid var(--pub-line);
    border-radius: 22px;
    background-color: #fff;
    box-shadow: var(--pub-shadow-s);
    transition: box-shadow .25s ease, transform .25s ease;
}

.sd-card:hover {
    box-shadow: var(--pub-shadow-m);
    transform: translateY(-2px);
}

.sd-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 20px;
}

.sd-picto {
    display: inline-flex;
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
}

.sd-picto svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.sd-picto__frame {
    fill: #fff;
    stroke: #d21f2b;
    stroke-width: 1.7;
    stroke-linejoin: round;
}

.sd-picto__sign {
    fill: none;
    stroke: #2b1f22;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sd-card__num {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: #ead9de;
}

.sd-card__kicker {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pub-bordo-soft);
}

.sd-card__title {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--pub-bordo);
}

.sd-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.sd-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px 5px 10px;
    border-radius: 999px;
    background-color: #fdecee;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    color: #a3162a;
}

.sd-tag::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: currentColor;
}

.sd-card__specs {
    margin: 0 0 24px;
    padding: 0;
    border-top: 1px solid var(--pub-line);
}

.sd-spec {
    display: grid;
    grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--pub-line);
}

.sd-spec dt {
    font-size: 13px;
    line-height: 1.5;
    color: var(--pub-muted);
}

.sd-spec dd {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--pub-ink);
}

/* download button */

.sd-card__file {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: auto 0 0;
    padding: 12px 12px 12px 12px;
    border: 1px solid var(--pub-line);
    border-radius: 16px;
    background-color: var(--pub-rose);
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.sd-card__file-icon {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background-color: #fff;
    color: var(--pub-bordo);
}

.sd-card__file-icon svg {
    width: 24px;
    height: 24px;
}

.sd-card__file-icon b {
    position: absolute;
    right: -6px;
    bottom: -5px;
    padding: 2px 5px;
    border-radius: 6px;
    background-color: var(--pub-bordo);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
    color: #fff;
}

.sd-card__file-body {
    flex: 1 1 auto;
    min-width: 0;
}

.sd-card__file-label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--pub-ink);
}

.sd-card__file-meta {
    display: block;
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--pub-muted);
}

.sd-card__file-go {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--pub-bordo);
    color: #fff;
    transition: background-color .2s ease, transform .2s ease;
}

.sd-card__file-go svg {
    width: 18px;
    height: 18px;
}

.sd-card__file:hover {
    border-color: var(--pub-bordo-soft);
    background-color: #fff;
    box-shadow: 0 8px 20px rgba(88, 20, 40, .08);
}

.sd-card__file:hover .sd-card__file-go {
    background-color: var(--pub-red);
    transform: translateY(2px);
}

.sd-card__file:focus-visible {
    outline: 2px solid var(--pub-red);
    outline-offset: 2px;
}

/* ================= safety tips ================= */

.sd-safety {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    margin: 40px 0 0;
    scroll-margin-top: 90px;
}

.sd-safety__main {
    padding: 34px 34px 30px;
    border: 1px solid var(--pub-line);
    border-radius: 22px;
    background-color: var(--pub-rose);
}

.sd-safety__eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pub-bordo-soft);
}

.sd-safety__title {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--pub-bordo);
}

.sd-safety__text {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--pub-muted);
}

.sd-tips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sd-tip {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--pub-line);
    border-radius: 16px;
    background-color: #fff;
}

.sd-tip__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background-color: var(--pub-card);
    color: var(--pub-bordo);
}

.sd-tip__icon svg {
    width: 23px;
    height: 23px;
}

.sd-tip__title {
    margin: 2px 0 4px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--pub-ink);
}

.sd-tip__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--pub-muted);
}

/* emergency card */

.sd-emergency {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 30px 28px;
    border-radius: 22px;
    background-color: var(--pub-bordo);
    color: #fff;
}

.sd-emergency::after {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 200px;
    height: 200px;
    border: 28px solid rgba(255, 255, 255, .06);
    border-radius: 50%;
    pointer-events: none;
}

.sd-emergency__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 0 auto;
    border-radius: 14px;
    background-color: rgba(255, 255, 255, .12);
}

.sd-emergency__icon svg {
    width: 24px;
    height: 24px;
}

.sd-emergency__title {
    margin: 28px 0 4px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
}

.sd-emergency__phone {
    display: inline-block;
    align-self: flex-start;
    margin: 0 0 12px;
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-decoration: none;
}

.sd-emergency__phone:hover {
    color: #ffd9df;
}

.sd-emergency__phone:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.sd-emergency__text {
    position: relative;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .82);
}

/* ================= responsive ================= */

@media (max-width: 1200px) {
    .sd-card {
        padding: 26px 24px 22px;
    }

    .sd-safety {
        grid-template-columns: minmax(0, 1fr) 270px;
    }

    .sd-safety__main {
        padding: 30px 26px 26px;
    }
}

@media (max-width: 1024px) {
    .sd-sheets {
        gap: 20px;
    }

    .sd-spec {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .sd-safety {
        grid-template-columns: minmax(0, 1fr);
        scroll-margin-top: 100px;
    }

    .sd-emergency {
        display: grid;
        grid-template-columns: auto auto minmax(0, 1fr);
        align-items: center;
        gap: 6px 22px;
        padding: 26px;
    }

    .sd-emergency__icon {
        grid-row: span 2;
        margin: 0;
    }

    .sd-emergency__title {
        grid-column: 2 / -1;
        margin: 0;
    }

    .sd-emergency__phone {
        margin: 0;
        font-size: 52px;
    }

    .sd-emergency__text {
        max-width: 420px;
    }
}

@media (max-width: 768px) {
    .sd-sheets {
        grid-template-columns: minmax(0, 1fr);
    }

    .sd-spec {
        grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
        gap: 14px;
    }

    .sd-safety {
        margin-top: 28px;
    }

    .sd-safety__title {
        font-size: 23px;
    }

    .sd-tips {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 576px) {
    .sd-card,
    .sd-safety__main,
    .sd-emergency {
        border-radius: 18px;
    }

    .sd-card {
        padding: 22px 18px 18px;
    }

    .sd-picto {
        width: 52px;
        height: 52px;
    }

    .sd-card__title {
        font-size: 20px;
    }

    .sd-spec {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .sd-card__file {
        gap: 12px;
        padding: 10px;
    }

    .sd-safety__main {
        padding: 24px 18px 18px;
    }

    .sd-tip {
        padding: 16px;
    }

    .sd-emergency {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 4px 16px;
        padding: 22px 20px;
    }

    .sd-emergency__icon {
        grid-row: span 2;
    }

    .sd-emergency__title {
        grid-column: 2;
    }

    .sd-emergency__phone {
        font-size: 44px;
    }

    .sd-emergency__text {
        grid-column: 1 / -1;
        margin-top: 10px;
    }
}