﻿@import url("./governance.css");

.regulations-shell {
    display: grid;
    gap: 24px;
    margin-top: 28px;
}

.regulations-hero {
    position: relative;
    overflow: hidden;
    padding: 30px 32px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(123, 33, 49, 0.14), transparent 26%),
        radial-gradient(circle at bottom left, rgba(17, 137, 131, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 250, 249, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 24px 60px rgba(10, 70, 67, 0.1);
}

.regulations-hero::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 24px;
    border: 1px dashed rgba(17, 137, 131, 0.18);
    pointer-events: none;
}

.regulations-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
}

.regulations-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.regulations-title-icon {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(17, 137, 131, 0.16), rgba(17, 137, 131, 0.08));
    color: #0d5e5a;
    font-size: 1.7rem;
}

.regulations-title {
    margin: 0;
    color: #153b39;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.regulations-subtitle {
    margin: 0;
    color: #59706d;
    font-size: 0.98rem;
    line-height: 1.9;
}

.regulations-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, #0f8f89, #1fb9b0);
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 28px rgba(15, 143, 137, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    animation: regulations-back-link-pulse 2.2s ease-in-out infinite;
}

.regulations-back-link:hover,
.regulations-back-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(15, 143, 137, 0.28);
    filter: saturate(1.05);
    outline: none;
}

@keyframes regulations-back-link-pulse {
    0%,
    100% {
        box-shadow: 0 14px 28px rgba(15, 143, 137, 0.22);
    }

    50% {
        box-shadow: 0 14px 28px rgba(15, 143, 137, 0.28), 0 0 0 8px rgba(31, 185, 176, 0.12);
    }
}

.regulations-files-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.regulations-file-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 6px;
    min-height: 84px;
    padding: 12px 14px 10px;
    text-decoration: none;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #f4fbfa);
    box-shadow:
        0 10px 0 rgba(17, 137, 131, 0.2),
        0 18px 28px rgba(10, 70, 67, 0.1);
    color: #153d3a;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.regulations-file-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(180deg, #118983, #7be0d4);
}

.regulations-file-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 0 rgba(17, 137, 131, 0.24),
        0 22px 32px rgba(10, 70, 67, 0.12);
    filter: saturate(1.03);
}

.regulations-file-card:active {
    transform: translateY(5px);
    box-shadow:
        0 5px 0 rgba(17, 137, 131, 0.2),
        0 10px 16px rgba(10, 70, 67, 0.08);
}

.regulations-file-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.regulations-file-icon,
.regulations-file-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.regulations-file-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(17, 137, 131, 0.14), rgba(17, 137, 131, 0.08));
    color: #0d5e5a;
    font-size: 1.2rem;
}

.regulations-file-arrow {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #118983, #2cb8af);
    color: #fff;
    font-size: 0.74rem;
}

.regulations-file-title {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.regulations-file-text {
    margin: 0;
    color: #5b706d;
    font-size: 0.8rem;
    line-height: 1.45;
}

.regulations-file-note {
    width: fit-content;
    margin-top: auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(123, 33, 49, 0.1);
    color: #7b2131;
    font-size: 0.8rem;
    font-weight: 800;
}

@media (max-width: 860px) {
    .regulations-files-grid {
        grid-template-columns: 1fr;
    }
}


.regulations-files-grid .regulations-file-card:first-child .regulations-file-text {
    display: none;
}



.regulations-files-grid {
    align-items: start;
}

.regulations-file-card {
    width: 92%;
    justify-self: center;
}


.regulations-files-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.regulations-file-card {
    width: 92%;
    justify-self: center;
}

@media (max-width: 1200px) {
    .regulations-files-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .regulations-files-grid {
        grid-template-columns: 1fr;
    }
}

.regulations-files-grid .regulations-file-card:nth-child(2) .regulations-file-text,
.regulations-files-grid .regulations-file-card:nth-child(3) .regulations-file-text,
.regulations-files-grid .regulations-file-card:nth-child(4) .regulations-file-text {
    display: none;
}



.regulations-file-note {
    display: none;
}

.regulations-file-card {
    border: 1px solid rgba(17, 137, 131, 0.12);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(17, 137, 131, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 250, 249, 0.95));
    box-shadow:
        0 14px 28px rgba(10, 70, 67, 0.1),
        0 6px 0 rgba(17, 137, 131, 0.18);
    backdrop-filter: blur(10px);
}

.regulations-file-card::before {
    width: 6px;
    background: linear-gradient(180deg, #0f8b85, #79ddd2);
}

.regulations-file-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 18px 34px rgba(10, 70, 67, 0.13),
        0 8px 0 rgba(17, 137, 131, 0.22);
    filter: none;
}

.regulations-file-card:active {
    transform: translateY(2px);
}

.regulations-file-top {
    margin-bottom: 2px;
}

.regulations-file-icon {
    border: 1px solid rgba(17, 137, 131, 0.14);
    background: linear-gradient(145deg, rgba(17, 137, 131, 0.18), rgba(255, 255, 255, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.regulations-file-arrow {
    background: linear-gradient(135deg, #159790, #1faea5);
    box-shadow: 0 8px 18px rgba(17, 137, 131, 0.22);
}

.regulations-file-title {
    color: #143d3a;
    letter-spacing: -0.01em;
}

.regulations-document-hero {
    padding-bottom: 24px;
}

.document-viewer-shell {
    display: grid;
    gap: 14px;
}

.document-viewer-toolbar {
    display: flex;
    justify-content: flex-start;
}

.document-viewer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: #0d5e5a;
    font-weight: 800;
    background: rgba(17, 137, 131, 0.08);
    border: 1px solid rgba(17, 137, 131, 0.12);
}

.document-viewer-frame-wrap {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(17, 137, 131, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 250, 249, 0.96));
    box-shadow: 0 22px 44px rgba(10, 70, 67, 0.1);
}

.document-viewer-frame {
    display: block;
    width: 100%;
    height: min(78vh, 1100px);
    border: 0;
    background: #f4f7f6;
}

@media (max-width: 860px) {
    .document-viewer-frame {
        height: 72vh;
    }
}



