/* ============================================================================
   RADNEWS THESES — страница «Тезисы» (page-tezisy.php): свод идей портала.
   Токены наследуются от tech.css (:root / html.rn-light).
   Цвет рубрик: rn-th-c--amber / --green / --accent / --red.
   v1.0.0 · 22.11.2026
   ========================================================================== */

body.rn-tech.rn-theses-page .rn-mag {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------------------------------------------------------- палитра рубрик */
.rn-th-c--amber  { --rn-th-color: var(--rn-amber); }
.rn-th-c--green  { --rn-th-color: var(--rn-green); }
.rn-th-c--accent { --rn-th-color: var(--rn-accent); }
.rn-th-c--red    { --rn-th-color: var(--rn-red); }

/* ---------------------------------------------------------------- hero */
.rn-th__hero {
    padding: 3.2rem 0 1.4rem;
    border-bottom: 1px solid var(--rn-line);
    position: relative;
}

.rn-th__hero::after {
    content: "„";
    position: absolute;
    right: 12px;
    top: 8px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 9rem;
    line-height: 1;
    color: var(--rn-amber);
    opacity: 0.14;
    pointer-events: none;
}

.rn-th__kpi-new .rn-top__kpi-num { color: var(--rn-green); }
.rn-th__kpi-new { border-top-color: var(--rn-green); }

/* ---------------------------------------------------------------- секции */
.rn-th__section { padding: 2.2rem 0 0.6rem; }

/* ---------------------------------------------------------------- чипы/даты */
.rn-th__chip {
    display: inline-block;
    font-family: var(--rn-font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rn-th-color, var(--rn-amber));
    border: 1px solid var(--rn-th-color, var(--rn-amber));
    border-radius: 3px;
    padding: 2px 7px;
}

.rn-th__date {
    font-family: var(--rn-font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--rn-muted);
}

/* ---------------------------------------------------------------- тезис в фокусе */
.rn-th__spot {
    position: relative;
    border: 1px solid var(--rn-line);
    border-left: 3px solid var(--rn-accent-deep);
    border-radius: 0 4px 4px 0;
    background:
        radial-gradient(ellipse 60% 90% at 85% 10%, rgba(53, 195, 255, 0.07), transparent 60%),
        var(--rn-panel);
    min-height: 300px;
    padding: 2rem clamp(1.2rem, 4vw, 3rem) 2.6rem;
}

.rn-th__spot-item {
    position: absolute;
    inset: 2rem clamp(1.2rem, 4vw, 3rem) 2.6rem;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    text-decoration: none;
    z-index: 1;
}

.rn-th__spot-item.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    z-index: 2;
}

.rn-th__spot-glyph {
    position: absolute;
    left: -6px;
    top: -34px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 5.4rem;
    line-height: 1;
    color: var(--rn-th-color, var(--rn-amber));
    opacity: 0.34;
    pointer-events: none;
}

.rn-th__spot-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }

.rn-th__spot-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.42rem);
    line-height: 1.5;
    color: var(--rn-ink-bright);
    max-width: 62ch;
}

.rn-th__spot-src {
    margin-top: auto;
    padding-top: 1.1rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.rn-th__spot-title {
    font-family: var(--rn-font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--rn-muted);
}

.rn-th__spot-item:hover .rn-th__spot-title { color: var(--rn-th-color, var(--rn-amber)); }

.rn-th__cta {
    font-family: var(--rn-font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rn-th-color, var(--rn-amber));
    white-space: nowrap;
}

.rn-th__spot-dots {
    position: absolute;
    right: 18px;
    bottom: 14px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.rn-th__dot {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    border: 1px solid var(--rn-accent-deep);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.rn-th__dot.is-active {
    background: var(--rn-accent);
    border-color: var(--rn-accent);
    transform: scale(1.25);
    box-shadow: 0 0 10px rgba(53, 195, 255, 0.5);
}

html.rn-light .rn-th__spot { background: var(--rn-panel-2); }

/* ---------------------------------------------------------------- стена тезисов */
.rn-th__wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 14px;
}

.rn-th__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    border: 1px solid var(--rn-line);
    border-top: 2px solid var(--rn-th-color, var(--rn-amber));
    border-radius: 0 0 4px 4px;
    background: var(--rn-panel);
    padding: 1.1rem 1.2rem 1rem;
    text-decoration: none;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    animation: rn-th-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--rn-i, 1) * 0.045s);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

@keyframes rn-th-card-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

.rn-th__card::before,
.rn-th__card::after {
    /* уголки-скобки на hover */
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--rn-th-color, var(--rn-amber));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.rn-th__card::before { left: 6px; bottom: 6px; border-right: none; border-top: none; }
.rn-th__card::after { right: 6px; top: 6px; border-left: none; border-bottom: none; }

.rn-th__card:hover {
    transform: translateY(-4px);
    border-color: var(--rn-th-color, var(--rn-amber));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.rn-th__card:hover::before,
.rn-th__card:hover::after { opacity: 0.85; }

.rn-th__card-glyph {
    position: absolute;
    right: 10px;
    top: -14px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 4.6rem;
    line-height: 1;
    color: var(--rn-th-color, var(--rn-amber));
    opacity: 0.16;
    pointer-events: none;
}

.rn-th__card-meta { display: flex; align-items: center; gap: 10px; }

.rn-th__card-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.02rem;
    line-height: 1.5;
    color: var(--rn-ink-bright);
    flex: 1 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rn-th__card-src {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--rn-line-soft);
    padding-top: 0.65rem;
}

.rn-th__card-title {
    font-family: var(--rn-font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    color: var(--rn-muted);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rn-th__card:hover .rn-th__card-title { color: var(--rn-th-color, var(--rn-amber)); }

html.rn-light .rn-th__card { background: var(--rn-panel-2); }

/* ---------------------------------------------------------------- рубрики */
.rn-th__cats { padding-left: 0; }

.rn-th__cat-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0.5rem 0;
}

.rn-th__cat-row .rn-top__cat-bar i {
    background: linear-gradient(90deg, var(--rn-th-color, var(--rn-accent-deep)), var(--rn-th-color, var(--rn-accent)));
}

/* ---------------------------------------------------------------- адаптив */
@media (max-width: 860px) {
    .rn-th__wall { grid-template-columns: 1fr; }
    .rn-th__spot { min-height: 320px; }
    .rn-th__spot-item { inset: 1.4rem 1.1rem 2.4rem; }
    .rn-th__hero::after { font-size: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .rn-th__card { animation: none; opacity: 1; transform: none; }
    .rn-th__spot-item { transition: none; }
}
