/* ── Blog — shared article + listing styles ── */

/* Reading progress bar */
#readingBar {
    position: fixed; top: 0; left: 0;
    height: 2px; background: var(--orange);
    width: 0%; z-index: 200;
    transition: width 0.08s linear;
}

/* Article body */
body { line-height: 1.7; }
h1 { font-family: var(--font-h); font-size: 2.4rem; font-weight: 800; color: var(--text); letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 12px; }
.updated { color: var(--text2); font-size: 0.85rem; margin-bottom: 32px; }
h2 { font-family: var(--font-h); font-size: 1.15rem; font-weight: 700; color: var(--text); margin: 40px 0 12px; border-left: 2px solid var(--orange); padding-left: 14px; margin-left: -16px; }
h3 { font-family: var(--font-h); font-size: 1rem; font-weight: 600; color: var(--text); margin: 28px 0 8px; }
p  { color: var(--text2); font-size: 0.95rem; line-height: 1.8; margin-bottom: 16px; }
ul, ol { color: var(--text2); font-size: 0.95rem; line-height: 1.8; padding-left: 20px; margin-bottom: 16px; }
ul li, ol li { margin-bottom: 6px; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
.divider { height: 1px; background: var(--border); margin: 40px 0; }
strong { color: var(--text); }

/* CTA box */
.cta-box { background: var(--surface); border: 1px solid var(--border-hi); border-radius: 12px; padding: 32px; margin-top: 48px; text-align: center; }
.cta-title { font-family: var(--font-h); font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.cta-text { color: var(--text2); font-size: 0.95rem; margin-bottom: 20px; }
.cta-btn { display: inline-block; padding: 12px 28px; background: var(--orange); color: #fff; font-family: var(--font-h); font-weight: 600; font-size: 0.95rem; border-radius: 8px; text-decoration: none; transition: filter 0.2s, transform 0.2s; }
.cta-btn:hover { filter: brightness(1.1); transform: translateY(-2px); text-decoration: none; }

/* Blog listing grid */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 32px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; transition: border-color 0.2s, transform 0.2s; text-decoration: none; display: block; }
.blog-card:hover { border-color: var(--orange-bdr); transform: translateY(-2px); text-decoration: none; }
.blog-card-cat { font-family: var(--font-m); font-size: 0.65rem; color: var(--orange); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.blog-card-title { font-family: var(--font-h); font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.blog-card-excerpt { color: var(--text2); font-size: 0.88rem; line-height: 1.6; margin-bottom: 12px; }
.blog-card-meta { font-family: var(--font-m); font-size: 0.7rem; color: var(--muted); }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 0.88rem; }
.spec-table th { font-family: var(--font-m); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--orange); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.spec-table td { padding: 10px 12px; color: var(--text2); border-bottom: 1px solid var(--border); }
.spec-table tr:hover td { color: var(--text); }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { margin-left: -8px; }
    .blog-grid { grid-template-columns: 1fr; }
}

/* Print */
@media print {
    #readingBar, nav, footer, .cta-box { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; line-height: 1.6; }
    .wrap { max-width: 100%; padding: 0; }
    h1 { color: #000; font-size: 20pt; }
    h2 { color: #000; border-left: 2px solid #000 !important; font-size: 13pt; }
    a { color: #000; text-decoration: underline; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
