/* Nano Resources — Frontend */

.nr-group { width: 100%; }

.nr-group__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin: 0 0 1.5rem;
    line-height: 1.2;
}

/* ── Video stack ─────────────────────────────────────────────────────────── */

.nr-stack--video {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.nr-item--video {
    display: grid;
    grid-template-columns: 30fr 70fr;
    gap: 1.75rem;
    align-items: center;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.nr-stack--video .nr-item--video:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nr-video { width: 100%; }

.nr-video__wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #111;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.nr-video__wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.nr-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nr-info__title {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: inherit;
}

.nr-info__desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    color: inherit;
    opacity: 0.85;
}

@media (max-width: 680px) {
    .nr-item--video {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ── Document stack ──────────────────────────────────────────────────────── */

.nr-stack--document {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nr-doc__link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, border-color 0.2s;
    background: #fff;
}

.nr-doc__link:hover {
    background: #f5f5f5;
    border-color: #bbb;
    text-decoration: none;
    color: inherit;
}

.nr-doc__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: #555;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}

.nr-doc__icon--pdf  { background: #c0392b; }
.nr-doc__icon--docx,
.nr-doc__icon--doc  { background: #2980b9; }
.nr-doc__icon--xlsx,
.nr-doc__icon--xls  { background: #27ae60; }
.nr-doc__icon--pptx,
.nr-doc__icon--ppt  { background: #e67e22; }

.nr-doc__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 0.2rem;
}

.nr-doc__title {
    font-weight: 600;
    font-size: 0.95rem;
    color: inherit;
}

.nr-doc__desc {
    font-size: 0.8rem;
    opacity: 0.7;
}

.nr-doc__arrow {
    font-size: 1.1rem;
    opacity: 0.5;
    flex-shrink: 0;
}

/* ── Links stack ─────────────────────────────────────────────────────────── */

.nr-stack--link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nr-link__link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: background 0.2s, border-color 0.2s;
}

.nr-link__link:hover {
    background: #f5f5f5;
    border-color: #bbb;
    text-decoration: none;
    color: inherit;
}

.nr-link__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    flex-shrink: 0;
    color: #555;
}

.nr-link__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 0.2rem;
}

.nr-link__title {
    font-weight: 600;
    font-size: 0.95rem;
}

.nr-link__domain {
    font-size: 0.75rem;
    opacity: 0.55;
}

.nr-link__desc {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.1rem;
}

.nr-link__arrow {
    font-size: 1.1rem;
    opacity: 0.4;
    flex-shrink: 0;
}
