/*
Theme Name: Krylo
Template: twentytwentyfive
Description: Блог Krylo — тёмная тема в стиле лендинга krylo.top.
Version: 1.5
Text Domain: krylo
*/
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: .18em; }
.wp-block-post-title a { text-decoration: none; }
.wp-block-post-title a:hover { color: var(--wp--preset--color--accent-1); }
pre, code, kbd { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }
.wp-block-code, .wp-block-preformatted { background: #10131b; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 1.2em 1.4em; }
.wp-block-quote { border-left: 3px solid var(--wp--preset--color--accent-1); }
.krylo-cta.wp-block-button .wp-block-button__link { background:#fff; color:#06070b; border-radius:999px; padding:.55em 1.2em; font-weight:600; }
.krylo-top-nav a { color: #a3aab8; text-decoration: none; }
.krylo-top-nav a:hover { color: #f2f4f8; }
/* Обложки 1200x630 с текстом — показывать целиком, без кадрирования темы */
.wp-block-post-featured-image { aspect-ratio: auto !important; height: auto !important; }
.wp-block-post-featured-image img { aspect-ratio: 1200 / 630 !important; height: auto !important; width: 100% !important; object-fit: contain !important; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); }
.wp-block-image img { border-radius: 14px; }
.wp-block-image figcaption { color: #6b7383; font-size: 14px; text-align: center; }

/* Таблицы: карточка с рамкой, шапка, зебра, компактный шрифт, скролл на мобилке */
.wp-block-table { margin: 1.8em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: #0d1017; }
.wp-block-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; line-height: 1.45; margin: 0; }
.wp-block-table thead { border-bottom: none; }
.wp-block-table th { background: #161a24; color: #f2f4f8; font-weight: 600; text-align: left; font-size: 15px; padding: 13px 18px; border: none; border-bottom: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.wp-block-table td { padding: 13px 18px; vertical-align: top; color: #cfd4de; border: none; border-bottom: 1px solid rgba(255,255,255,.06); }
.wp-block-table tbody tr:last-child td { border-bottom: none; }
.wp-block-table tbody tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.wp-block-table td:first-child { color: #f2f4f8; font-weight: 500; }
.wp-block-table th:empty { background: #161a24; }
@media (max-width: 640px) { .wp-block-table table { font-size: 14px; } .wp-block-table th, .wp-block-table td { padding: 10px 12px; } }
/* Картинки в тексте статей — не шире колонки (иначе горизонтальный скролл) */
img { max-width: 100%; height: auto; }
.wp-block-post-content img, .entry-content img, .wp-block-image img { max-width: 100% !important; height: auto !important; }
html, body { overflow-x: clip; }

/* Главная и рубрики: сетка карточек */
.krylo-blog-hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.03em; margin: 0 0 10px; }
.krylo-blog-hero p { color: #a3aab8; font-size: 18px; margin: 0 0 36px; max-width: 640px; }
.krylo-back a { color: #a3aab8; text-decoration: none; font-size: 15px; }
.krylo-archive-title { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.02em; margin: 0 0 32px; }
.krylo-cards { gap: 24px !important; }
.krylo-card { height: 100%; display: flex; flex-direction: column; background: linear-gradient(180deg,#10131b,#0b0d13); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; overflow: hidden; transition: border-color .2s, transform .2s; }
.krylo-card:hover { border-color: rgba(16,217,168,.45); transform: translateY(-2px); }
.krylo-card .wp-block-post-featured-image { margin: 0 !important; }
.krylo-card .wp-block-post-featured-image img { border: none !important; border-radius: 0 !important; }
.krylo-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.krylo-card-body > * { margin: 0 !important; }
.krylo-card-cat a { color: #10d9a8; text-decoration: none; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.krylo-card-title { font-size: 20px !important; line-height: 1.25 !important; letter-spacing: -.01em; }
.krylo-card-title a { color: #f2f4f8; text-decoration: none; }
.krylo-card-excerpt p { color: #a3aab8; font-size: 15px; line-height: 1.5; margin: 0; }
.krylo-card-excerpt .wp-block-post-excerpt__more-link { display: none; }
.krylo-card-date { color: #6b7383; font-size: 13px; margin-top: auto !important; }
.wp-block-query-pagination { margin-top: 40px; gap: 14px; }
.wp-block-query-pagination a, .wp-block-query-pagination .current { color: #a3aab8; text-decoration: none; }
.wp-block-query-pagination .current { color: #f2f4f8; font-weight: 600; }
@media (max-width: 960px) { .krylo-cards { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }
@media (max-width: 600px) { .krylo-cards { grid-template-columns: minmax(0,1fr) !important; } }
