/* Tu Espacio: estilos del blog público (portada y artículo).
   El cuerpo del artículo está en shared/css/content.css. La vista previa del editor
   también carga este archivo, así que las clases de .full-article deben seguir aquí. */

:root {
    --bg: #ffffff;
    --surface: #f6f7fb;
    --card: #ffffff;
    --text: #0f172a;
    --text-muted: #5b6478;
    --border: #e4e7ef;
    --primary: #5b4fe0;
    --primary-2: #db2777;
    --primary-soft: rgba(91, 79, 224, 0.1);
    --brand-gradient: linear-gradient(135deg, #5b4fe0 0%, #a23bd6 55%, #db2777 100%);
    --card-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px -12px rgba(15, 23, 42, 0.18);
    --card-shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.06), 0 22px 40px -18px rgba(15, 23, 42, 0.3);
    --radius: 16px;
    --font: 'Manrope', -apple-system, 'Segoe UI', system-ui, sans-serif;
    color-scheme: light;
}

body.dark-mode {
    --bg: #0c1020;
    --surface: #131a2e;
    --card: #161e34;
    --text: #eef1f8;
    --text-muted: #9aa4bd;
    --border: #263052;
    --primary: #8f87ff;
    --primary-2: #f472b6;
    --primary-soft: rgba(143, 135, 255, 0.14);
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -14px rgba(0, 0, 0, 0.7);
    --card-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.35), 0 24px 44px -18px rgba(0, 0, 0, 0.85);
    color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; transition: background-color 0.25s, color 0.25s; min-height: 100vh; display: flex; flex-direction: column; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }
a { color: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------------------------------------------------------
   Cabecera
   --------------------------------------------------------- */
.blog-header { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; transition: padding 0.2s; }
.blog-header.scrolled .header-inner { padding-top: 9px; padding-bottom: 9px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); text-decoration: none; white-space: nowrap; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-gradient); color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 800; box-shadow: 0 6px 16px -6px rgba(162, 59, 214, 0.7); }
.logo-text span { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box svg { position: absolute; left: 13px; width: 16px; height: 16px; color: var(--text-muted); pointer-events: none; }
#search-input { width: 250px; padding: 9px 16px 9px 38px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); outline: none; font-size: 14px; transition: border-color 0.2s, box-shadow 0.2s, width 0.2s; }
#search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); width: 290px; }
.btn-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 50%; color: var(--text); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.btn-icon:hover { background: var(--primary-soft); transform: rotate(-8deg); }
.btn-icon svg { width: 18px; height: 18px; }
#search-toggle { display: none; }

.categories-nav { border-top: 1px solid var(--border); }
.categories-nav .container { display: flex; gap: 8px; padding-top: 10px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.categories-nav .container::-webkit-scrollbar { display: none; }
.cat-btn { --c: var(--primary); flex: none; display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; color: var(--text-muted); cursor: pointer; font-size: 14px; font-weight: 600; white-space: nowrap; transition: all 0.2s; }
.cat-btn:hover { color: var(--c); border-color: var(--c); }
.cat-btn.active { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 6px 16px -8px var(--c); }
.cat-count { font-size: 12px; font-weight: 700; opacity: 0.75; }
.cat-btn.active .cat-count { opacity: 0.9; }

@media (max-width: 640px) {
    .logo { font-size: 19px; }
    #search-toggle { display: grid; }
    .search-box { display: none; }
    .blog-header.searching .search-box { display: flex; position: absolute; left: 20px; right: 20px; top: 50%; transform: translateY(-50%); z-index: 2; }
    .blog-header.searching #search-input, .blog-header.searching #search-input:focus { width: 100%; background: var(--bg); }
    .blog-header.searching .logo { visibility: hidden; }
    .blog-header .header-inner { position: relative; }
}

/* ---------------------------------------------------------
   Portada
   --------------------------------------------------------- */
.main-content { padding-top: 36px; padding-bottom: 64px; flex: 1; }
.hero { position: relative; margin-bottom: 32px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: 5px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; margin: 14px 0 10px; }
.hero h1 span { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: clamp(16px, 2.2vw, 19px); color: var(--text-muted); max-width: 620px; }
.list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 4px; }
.list-heading h2 { font-size: 26px; letter-spacing: -0.02em; }
.list-heading small { color: var(--text-muted); font-size: 14px; }
.link-btn.clear { font-size: 14px; }

/* Píldora de categoría (color por categoría con --c) */
.cat-pill { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.03em; color: var(--c, var(--primary)); background: color-mix(in srgb, var(--c, var(--primary)) 12%, transparent); padding: 4px 10px; border-radius: 999px; }
.cat-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--primary)); }

/* Destacado: imagen grande con el título encima */
.featured { --c: var(--primary); position: relative; display: flex; align-items: flex-end; min-height: clamp(340px, 46vw, 480px); border-radius: 24px; overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; box-shadow: var(--card-shadow); background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 40%, #0f172a)); }
.featured-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.7s cubic-bezier(.2, .7, .2, 1); }
.featured::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 10, 25, 0) 25%, rgba(8, 10, 25, 0.55) 60%, rgba(8, 10, 25, 0.88) 100%); }
.featured:hover .featured-img { transform: scale(1.04); }
.featured-fallback { position: absolute; inset: 0; z-index: -2; display: grid; place-items: center; font-size: 120px; opacity: 0.35; }
.featured-content { padding: clamp(22px, 4vw, 44px); max-width: 780px; }
.featured-label { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(6px); padding: 4px 11px; border-radius: 999px; margin-right: 8px; }
.featured .cat-pill { background: rgba(255, 255, 255, 0.16); color: #fff; }
.featured .cat-pill::before { background: #fff; }
.featured h2 { font-size: clamp(26px, 4.2vw, 44px); line-height: 1.12; letter-spacing: -0.025em; margin: 14px 0 10px; text-wrap: balance; }
.featured p { font-size: clamp(15px, 1.8vw, 18px); color: rgba(255, 255, 255, 0.85); max-width: 640px; }
.featured .card-meta { color: rgba(255, 255, 255, 0.78); margin-top: 16px; justify-content: flex-start; gap: 14px; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.featured .read-more { margin-left: auto; color: #fff; }
.featured:hover .read-more span { transform: translateX(4px); }
.read-more span { transition: transform 0.2s; }

/* Tarjetas */
.grid-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; margin-top: 24px; }
.card { --c: var(--primary); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; animation: rise 0.45s both; }
.card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); border-color: color-mix(in srgb, var(--c) 35%, var(--border)); }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 85%, #fff), color-mix(in srgb, var(--c) 55%, #0f172a)); }
.card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-img { transform: scale(1.06); }
.card-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 54px; }
.card-fallback::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.35), transparent 45%), radial-gradient(circle at 85% 90%, rgba(255, 255, 255, 0.18), transparent 40%); }
.card-fallback span { position: relative; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25)); }
.card-content { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.card:hover .card-title { color: var(--c); }
.card-excerpt { font-size: 14.5px; color: var(--text-muted); flex: 1; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 13px; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-meta .dot::before { content: "·"; margin: 0 7px; }
.card.compact .card-title { font-size: 17px; }

.load-more { display: flex; justify-content: center; margin-top: 36px; }
.empty-state { text-align: center; padding: 64px 20px; }
.empty-state .empty-icon { font-size: 48px; }
.empty-state h2 { font-size: 24px; margin: 8px 0 6px; }
.empty-state p { color: var(--text-muted); margin-bottom: 18px; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s; }
.btn:active { transform: scale(0.97); }
.btn.outline { border: 1.5px solid var(--border); background: var(--card); color: var(--text); }
.btn.outline:hover { border-color: var(--primary); color: var(--primary); }
.btn.primary { border: 0; background: var(--brand-gradient); color: #fff; box-shadow: 0 8px 20px -10px rgba(162, 59, 214, 0.8); }
.btn.primary:hover { box-shadow: 0 12px 26px -10px rgba(162, 59, 214, 0.9); }
.btn.primary:disabled { opacity: .6; cursor: default; }

/* ---------------------------------------------------------
   Pie
   --------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 28px; }
.footer-inner p { color: var(--text-muted); font-size: 14.5px; margin-top: 10px; max-width: 420px; }
.footer-inner h4 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; }
.footer-links a, .footer-links button { color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 600; background: none; border: 0; cursor: pointer; padding: 0; }
.footer-links a:hover, .footer-links button:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 16px; padding-bottom: 22px; font-size: 13px; color: var(--text-muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.back-top { background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 13px; font-weight: 600; }
.back-top:hover { color: var(--primary); }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   Artículo
   --------------------------------------------------------- */
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--brand-gradient); z-index: 200; pointer-events: none; }
.article-container { max-width: 800px; padding-top: 40px; padding-bottom: 40px; flex: 1; }
.full-article h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 12px; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.full-article h2 { margin: 30px 0 15px 0; }
.article-meta { color: var(--text-muted); margin-bottom: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; }
.article-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin-bottom: 32px; box-shadow: var(--card-shadow); }

/* Cabecera del artículo (la genera shared/utils/article-view.js) */
.card-category { font-size: 12px; text-transform: uppercase; font-weight: 800; letter-spacing: 0.08em; color: var(--primary); }
.article-head .card-category { display: inline-block; color: var(--accent, var(--primary)); background: color-mix(in srgb, var(--accent, var(--primary)) 12%, transparent); padding: 4px 11px; border-radius: 999px; margin-bottom: 14px; }
.article-subtitle { color: var(--text-muted); font-weight: 500; font-size: 1.2em; line-height: 1.5; margin-bottom: 18px; }
.article-tags { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.article-tags strong { font-size: 14px; color: var(--text-muted); }
.article-tags span { background: var(--surface); border: 1px solid var(--border); padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* Diseños de artículo (cabecera y portada). El cuerpo está en shared/css/content.css */
.full-article.layout-noticia { display: flex; flex-direction: column; }
.full-article.layout-noticia .article-cover { order: -1; max-height: 520px; }
.full-article.layout-noticia h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(32px, 5.5vw, 46px); }
.full-article.layout-video .article-cover,
.full-article.layout-minimal .article-cover { display: none; }
.full-article.layout-trading .article-meta,
.full-article.layout-comparativa .article-meta { border-bottom: 1px solid var(--border); padding-bottom: 12px; }

/* Revista: con portada, el título va encima de la imagen oscurecida */
.full-article.layout-revista.has-cover { display: grid; }
.full-article.layout-revista.has-cover > .article-head,
.full-article.layout-revista.has-cover > .article-cover { grid-area: 1 / 1; }
.full-article.layout-revista.has-cover > .article-cover { height: 460px; max-height: none; margin: 0 0 30px; filter: brightness(0.5); }
.full-article.layout-revista.has-cover > .article-head { align-self: end; position: relative; z-index: 1; padding: 30px 32px 56px; color: #fff; }
.full-article.layout-revista.has-cover .article-head h1 { font-size: clamp(32px, 5.5vw, 46px); }
.full-article.layout-revista.has-cover .article-head .card-category { color: #fff; background: rgba(255, 255, 255, 0.18); }
.full-article.layout-revista.has-cover .article-subtitle,
.full-article.layout-revista.has-cover .article-meta { color: rgba(255, 255, 255, 0.88); }
.full-article.layout-revista.has-cover .article-meta { margin-bottom: 0; }

/* Minimalista: columna estrecha y cabecera centrada */
.full-article.layout-minimal { max-width: 640px; margin: 0 auto; }
.full-article.layout-minimal .article-head { text-align: center; margin-bottom: 10px; }
.full-article.layout-minimal .article-meta { justify-content: center; }

/* Entrevista y Cronología: título con la tipografía de periódico si se elige serif */
.full-article.layout-entrevista .article-subtitle { font-style: italic; }

/* Guía larga: índice automático */
.toc { border: 1px solid var(--border); border-left: 4px solid var(--accent, var(--primary)); border-radius: 10px; padding: 14px 20px; margin: 0 0 30px; background: var(--surface); }
.toc strong { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.toc ol { margin: 8px 0 0; padding-left: 1.4em; }
.toc li { margin: 4px 0; }
.toc a { color: var(--accent, var(--primary)); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
/* El contenido del artículo (.article-body) está en shared/css/content.css */

/* Autor y compartir */
.article-end { margin-top: 44px; display: grid; gap: 16px; }
.author-box { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--card-shadow); }
.author-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-gradient); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.author-box small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.author-box strong { font-size: 18px; }
.author-box p { color: var(--text-muted); font-size: 14.5px; margin-top: 2px; }
.share-box { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.share-box h3 { font-size: 17px; margin-bottom: 4px; }
.share-box > p { color: var(--text-muted); font-size: 14px; margin-bottom: 14px; }
.share-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.share-btn { --c: var(--primary); display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--card); color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; transition: all 0.2s; }
.share-btn svg { width: 17px; height: 17px; fill: currentColor; }
.share-btn:hover { background: var(--c); border-color: var(--c); color: #fff; transform: translateY(-2px); }
.share-btn[data-net="whatsapp"] { --c: #22a75a; }
.share-btn[data-net="x"] { --c: #111827; }
.share-btn[data-net="facebook"] { --c: #1877f2; }
.share-btn[data-net="telegram"] { --c: #229ed9; }
.share-btn[data-net="linkedin"] { --c: #0a66c2; }
body.dark-mode .share-btn[data-net="x"] { --c: #e5e7eb; }
body.dark-mode .share-btn[data-net="x"]:hover { color: #111827; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: var(--card-shadow-hover); transition: opacity 0.25s, transform 0.25s; z-index: 300; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.related-articles { margin-top: 56px; }
.related-articles h3, .comments h3 { font-size: 24px; letter-spacing: -0.02em; }
.related-articles .grid-layout { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 20px; margin-top: 18px; }
.navigation-links { margin-top: 40px; display: flex; justify-content: center; }

/* Carga */
.skeleton-card { height: 340px; background: var(--surface); border-radius: var(--radius); animation: pulse 1.5s infinite; }
.skeleton-hero { height: clamp(340px, 46vw, 480px); border-radius: 24px; background: var(--surface); animation: pulse 1.5s infinite; }
.skeleton-text { height: 20px; background: var(--border); margin-bottom: 10px; border-radius: 6px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 0.3; } 100% { opacity: 0.6; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* --- Comentarios ------------------------------------------------------ */
.comments { margin-top: 56px; padding-top: 10px; }
.comments h3 { margin: 10px 0 18px; }
.comment-list, .comment-replies { list-style: none; margin: 0; padding: 0; }
.comment { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-replies .comment { border-bottom: 0; padding: 12px 0 0; }
.comment-replies { margin-top: 6px; padding-left: 14px; border-left: 3px solid var(--border); }
.comment-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 14px; }
.comment.by-author > .comment-avatar { background: var(--brand-gradient); color: #fff; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.comment-head time { font-size: 13px; color: var(--text-muted); }
.author-badge { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: var(--brand-gradient); color: #fff; border-radius: 999px; padding: 2px 9px; }
.comment-text { margin: 6px 0 4px; white-space: pre-line; overflow-wrap: anywhere; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer; font-size: 14px; font-weight: 700; }
.link-btn:hover { text-decoration: underline; }
.comments-empty { color: var(--text-muted); }
.comment-form { margin-top: 24px; padding: 22px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 14px; }
.comment-main > .comment-form { margin-top: 12px; }
.comment-form h4 { margin: 0; font-size: 1.15em; }
.comment-form label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.comment-form input, .comment-form textarea { color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-weight: 400; transition: border-color 0.2s, box-shadow 0.2s; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.comment-form textarea { resize: vertical; min-height: 110px; }
.comment-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comment-form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.comment-form-foot small { color: var(--text-muted); }
.replying { margin: 0; font-size: 14px; display: flex; gap: 10px; align-items: baseline; }
.replying[hidden], .comments[hidden], .comments-empty[hidden], .article-end[hidden], .related-articles[hidden] { display: none; }
.form-msg { margin: 0; font-size: 14px; }
.form-msg:empty { display: none; }
.form-msg.ok { color: #15803d; }
.form-msg.error { color: #b91c1c; }
body.dark-mode .form-msg.ok { color: #4ade80; }
body.dark-mode .form-msg.error { color: #f87171; }
.privacy-note { margin: 0; font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) {
    .comment-fields { grid-template-columns: 1fr; }
    .comment-replies { padding-left: 10px; }
    .comment-avatar { width: 34px; height: 34px; font-size: 12px; }
    .author-box { align-items: flex-start; }
    .share-btn { padding: 8px 13px; font-size: 13.5px; }
}
