/* === Home page === */
/* ==========================================================
   Home Page
   ----------------------------------------------------------
   Local styles for index.html and index.aspx.
   ========================================================== */

.home-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: auto;
}

.home-hero {
    flex: 0 0 auto;
    padding: 28px 30px;
    border: 1px solid rgba(255, 182, 53, 0.32);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.home-hero-content {
    max-width: 760px;
}

.home-eyebrow {
    margin: 0 0 8px;
    color: var(--brand-charcoal-75);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-greeting {
    margin: 0;
    color: var(--brand-charcoal);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}

.home-subtitle {
    max-width: 620px;
    margin: 10px 0 0;
    color: #4a5568;
    font-size: 15px;
    line-height: 1.55;
}

.access-fallback-message,
.home-empty-state {
    padding: 12px 14px;
    border: 1px solid rgba(255, 182, 53, 0.45);
    border-radius: 8px;
    background: #fff8e9;
    color: var(--brand-charcoal);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.home-card-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.home-card-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-card-section-title {
    margin: 0;
    color: var(--brand-charcoal);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

.home-card-section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-card {
    position: relative;
    display: flex;
    min-height: 168px;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #ffffff;
    color: var(--brand-charcoal);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.home-card:hover,
.home-card:focus-visible {
    border-color: var(--brand-yellow);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
    outline: none;
}

.home-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background-color: var(--brand-yellow);
    color: var(--brand-charcoal);
}

/* Текстовая метка вместо иконки на home-card (напр. «MDR») */
.home-card-icon.side-tab-icon-text {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    -webkit-mask: none;
    mask: none;
    color: var(--brand-yellow);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.home-card-title {
    display: block;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.home-card-description {
    display: block;
    max-width: 280px;
    color: #4a5568;
    font-size: 13px;
    line-height: 1.45;
}

.home-card-arrow {
    position: absolute;
    right: 18px;
    bottom: 16px;
    color: var(--brand-charcoal-75);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.home-card-external .home-card-arrow {
    font-size: 22px;
}

.home-card-external-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 7px;
    vertical-align: -1px;
    color: var(--brand-charcoal-75);
    background: currentColor;
    -webkit-mask: url("icons/sidebar-external-link.svg") center / 14px 14px no-repeat;
    mask: url("icons/sidebar-external-link.svg") center / 14px 14px no-repeat;
}

.home-card-external:hover .home-card-external-icon,
.home-card-external:focus-visible .home-card-external-icon {
    color: var(--brand-charcoal);
}

@media (max-width: 980px) {
    .home-card-section-grid {
        grid-template-columns: 1fr;
    }
}
