/* ===== Tin tức - front-end styles ===== */
:root {
  color-scheme: light;
  --primary: #5b5bd6;
  --primary-soft: #eeeefc;
  --btn: #5b5bd6;
  --btn-hover: #4747b8;
  --link: #3b3bb5;
  --text: #14161f;
  --text-2: #374151;
  --muted: #5f6675;
  --border: #e6e8ee;
  --bg: #ffffff;
  --surface: #ffffff;
  --bg-alt: #f3f4f9;
  --shadow: 0 1px 2px rgba(20, 22, 31, .06), 0 6px 20px rgba(20, 22, 31, .06);
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: var(--font);
  --content-w: 760px;
  --sidebar-w: 320px;
  --radius: 8px;
  --radius-lg: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --primary: #9d9df7;
    --primary-soft: #23264d;
    --link: #a9b4fd;
    --text: #e8eaf2;
    --text-2: #c5c9d6;
    --muted: #9aa1b2;
    --border: #2a2f3f;
    --bg: #0e1016;
    --surface: #161922;
    --bg-alt: #1c2030;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --primary: #9d9df7;
  --primary-soft: #23264d;
  --link: #a9b4fd;
  --text: #e8eaf2;
  --text-2: #c5c9d6;
  --muted: #9aa1b2;
  --border: #2a2f3f;
  --bg: #0e1016;
  --surface: #161922;
  --bg-alt: #1c2030;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.hp { position: absolute; left: -9999px; }
.flash { padding: 12px 16px; border-radius: var(--radius); margin: 12px 0; background: #e8f5e9; color: #1b5e20; }
.flash-error { background: #ffebee; color: #b71c1c; }
.flash-warning { background: #fff8e1; color: #7f6000; }
.empty { color: var(--muted); padding: 24px 0; }

/* Header */
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); font-size: 22px; padding: 4px 10px; border-radius: var(--radius); cursor: pointer; }

/* Layout */
.site-main { padding: 20px 16px 40px; min-height: 60vh; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-w); gap: 36px; margin-top: 20px; }
.content { min-width: 0; }
.sidebar { min-width: 0; }
.sidebar-sticky { position: sticky; top: 60px; }
.popular-list { list-style: none; margin: 0; padding: 0; counter-reset: pop; }

/* Breaking */

/* Hero */

/* Cards */

/* Archive */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb span { margin: 0 6px; }
.breadcrumb .current { margin: 0; color: var(--text); }
.archive-header { border-bottom: 3px solid var(--cat, var(--primary)); margin-bottom: 8px; padding-bottom: 12px; }
.archive-header h1 { font-size: 28px; margin-bottom: 4px; }
.archive-desc { color: var(--muted); margin: 0; }
.facts-box { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin: 20px 0; background: var(--bg-alt); }
.facts-title { font-size: 17px; margin: 0 0 8px; }
.facts-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.facts-table th, .facts-table td { text-align: left; padding: 6px 8px 6px 0; border-top: 1px solid var(--border); vertical-align: top; }
.facts-table th { width: 38%; color: var(--muted); font-weight: 600; }
.facts-table td { overflow-wrap: anywhere; }
.facts-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.post-figure { margin: 20px 0; }
.post-figure img { display: block; max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--border); }
.post-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.archive-intro { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--border); color: var(--text-2); }
.archive-intro h2 { font-size: 20px; margin: 20px 0 8px; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.subcats a { background: var(--bg-alt); padding: 4px 12px; border-radius: 14px; font-size: 13px; font-weight: 600; }
.search-inline { display: flex; gap: 8px; margin-top: 12px; }
.search-inline input { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); }
.search-inline button { padding: 10px 16px; background: var(--btn); color: #fff; border: 0; border-radius: var(--radius); cursor: pointer; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0; }
.page-link { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; }
.page-link.active { background: var(--btn); color: #fff; border-color: var(--primary); }
.page-dots { padding: 8px 4px; }

/* Single post */
.single-post { max-width: var(--content-w); }
.post-header { margin-bottom: 18px; }
.post-title { font-size: 34px; font-family: var(--serif); letter-spacing: -.3px; }
.post-excerpt { font-size: 18px; color: var(--text-2); font-weight: 500; margin: 0 0 12px; }
.post-meta { font-size: 13px; color: var(--muted); }
.post-meta a { font-weight: 600; color: var(--text); }
.post-image { margin: 0 0 20px; }
.post-image img { width: 100%; border-radius: var(--radius); }
.post-image figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.post-content { font-size: 18px; line-height: 1.75; }
.post-content p { margin: 0 0 1.2em; }
.post-content h2 { font-size: 24px; margin-top: 1.5em; }
.post-content h3 { font-size: 20px; margin-top: 1.3em; }
.post-content img { margin: 1em auto; border-radius: var(--radius); }
.post-content blockquote { border-left: 4px solid var(--primary); margin: 1.2em 0; padding: 8px 18px; background: var(--bg-alt); font-style: italic; }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; }
.post-content th, .post-content td { border: 1px solid var(--border); padding: 8px; }
.post-content pre { background: #1e1e1e; color: #eee; padding: 14px; overflow: auto; border-radius: var(--radius); font-size: 14px; }
.post-content a { color: var(--link); text-decoration: underline; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; margin: 1.2em 0; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.toc { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; font-size: 15px; }
.toc-title { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc .toc-l3 { margin-left: 1em; list-style: circle; }
.post-source { font-size: 13px; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 12px; }
.post-source a { text-decoration: underline; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.post-content .read-next { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 24px; font-size: 15px; }
.tg-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; background: var(--bg-alt); border: 1px solid var(--border); border-left: 4px solid #229ed9; border-radius: var(--radius); padding: 16px 18px; margin: 22px 0; }
.tg-follow-text { flex: 1 1 240px; min-width: 0; }
.tg-follow-text strong { display: block; font-size: 17px; }
.tg-follow-text span { color: var(--muted); font-size: 14px; }
.tg-follow .btn { background: #1976a6; white-space: nowrap; }
.tg-follow .btn:hover { background: #16729f; filter: brightness(.92); }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0; font-size: 14px; }
.share a, .share button { padding: 6px 14px; border-radius: 16px; color: #fff; border: 0; cursor: pointer; font-size: 13px; font-weight: 600; }
.share-fb { background: #1565c0; } .share-x { background: #000; } .share-tg { background: #1976a6; } .share-copy { background: #555; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.post-nav a { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.post-nav small { color: var(--muted); display: block; }
.post-nav .next { text-align: right; }
.post-nav span { font-weight: 600; }
.related { margin-top: 30px; }
.comments { margin-top: 30px; }
.comment { padding: 12px 0; border-bottom: 1px solid var(--border); }
.comment.reply { margin-left: 30px; }
.comment-head time { color: var(--muted); font-size: 12px; margin-left: 8px; }
.comment p { margin: 6px 0 0; }
.comment-form { margin-top: 18px; display: grid; gap: 10px; }
.comment-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; }
.comment-form .btn { justify-self: start; }
.error-page { text-align: center; padding: 60px 0; }
.error-page h1 { font-size: 90px; color: var(--primary); margin: 0; }
.error-page .search-inline { max-width: 420px; margin: 20px auto; }

/* Ads */
.ad-slot { text-align: center; margin: 16px 0; overflow: hidden; min-height: 50px; }
.ad-slot:empty { display: none; }
/* Reserve the usual ad height so a late-loading ad does not push the article down (CLS); hide when Google leaves it unfilled. */
.ad-header { min-height: 90px; }
.ad-below_title, .ad-in_article, .ad-after_content, .ad-sidebar_top { min-height: 250px; }
.ad-sidebar_bottom { min-height: 600px; }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad-container { margin: 12px 0; }
.ad-in-feed { grid-column: 1 / -1; }
.sidebar-ad { margin-bottom: 24px; }
.ad-sticky-bottom { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); box-shadow: 0 -2px 8px rgba(0,0,0,.15); z-index: 90; padding: 4px 32px 4px 4px; }
.ad-sticky-bottom .ad-slot { margin: 0; }
.ad-close { position: absolute; right: 4px; top: 4px; background: #eee; border: 0; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; }
.consent-banner { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 640px; margin: 0 auto; background: #222; color: #eee; padding: 14px 18px; border-radius: var(--radius); display: flex; gap: 16px; align-items: center; z-index: 95; font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0; }
.consent-banner a { color: #fff; text-decoration: underline; }
.consent-banner button { background: var(--btn); color: #fff; border: 0; padding: 8px 16px; border-radius: var(--radius); cursor: pointer; flex-shrink: 0; }

/* Footer */
.site-footer { background: #111; color: #bbb; margin-top: 40px; padding: 36px 0 20px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 15px; text-transform: uppercase; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.social a { margin-right: 12px; }
.newsletter { margin-top: 12px; }
.newsletter label { display: block; margin-bottom: 6px; color: #fff; }
.newsletter-row { display: flex; }
.newsletter input { flex: 1; padding: 8px 10px; border: 0; border-radius: var(--radius) 0 0 var(--radius); min-width: 0; }
.newsletter button { background: var(--btn); color: #fff; border: 0; padding: 8px 14px; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; }
.copyright { border-top: 1px solid #333; margin-top: 28px; padding-top: 16px; text-align: center; font-size: 13px; }

/* ===== Redesign v2: tech look, light + dark ===== */
.btn { display: inline-block; background: var(--btn); color: #fff; padding: 10px 18px; border-radius: var(--radius); border: 0; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--btn-hover); color: #fff; }
input, textarea, select { background: var(--surface); color: var(--text); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Header */
.topbar { background: var(--bg-alt); color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--border); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.top-links a { margin-left: 16px; color: var(--muted); }
.top-links a:hover { color: var(--text); }
.header-main { gap: 14px; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; }
.brand-text { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--text); display: inline-flex; align-items: center; gap: 10px; }
.brand-text::before { content: ""; width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, #5b5bd6, #d16ba5); flex-shrink: 0; }
.brand-tagline { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); max-width: 46ch; }
.header-spacer { flex: 1; }
.search-form { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface); }
.search-form input { border: 0; background: transparent; padding: 9px 16px; width: 220px; outline: none; font-size: 14px; color: var(--text); }
.search-form button { border: 0; background: transparent; color: var(--muted); padding: 0 14px; cursor: pointer; }
.theme-toggle { border: 1px solid var(--border); background: var(--surface); color: var(--text); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 17px; line-height: 1; flex-shrink: 0; }
.theme-toggle:hover { background: var(--bg-alt); }
.main-nav { border-top: 0; border-bottom: 1px solid var(--border); background: var(--surface); }
.main-nav ul { list-style: none; margin: 0; padding: 6px 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.main-nav a { display: block; padding: 7px 14px; font-weight: 600; font-size: 14.5px; white-space: nowrap; border-radius: 999px; color: var(--text-2); }
.main-nav a:hover, .main-nav a.active { background: color-mix(in srgb, var(--cat, var(--primary)) 14%, transparent); color: var(--text); }
.main-nav a.active { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat, var(--primary)) 40%, transparent); }

/* Section / widget titles */
.section { margin-bottom: 40px; }
.section-title, .widget-title { display: flex; align-items: center; justify-content: space-between; font-size: 20px; letter-spacing: -.01em; margin: 0 0 16px; padding: 0 0 10px; border: 0; border-bottom: 1px solid var(--border); }
.section-title a { display: inline-flex; align-items: center; gap: 10px; }
.section-title a::before, .widget-title::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: var(--cat, var(--primary)); flex-shrink: 0; }
.section-title a::after { content: "\2192"; color: var(--muted); font-weight: 400; transition: transform .15s; }
.section-title a:hover { color: var(--text); }
.section-title a:hover::after { transform: translateX(3px); }
.widget-title { font-size: 16px; justify-content: flex-start; gap: 10px; }
.more { text-align: center; margin-top: 22px; }

/* Cards */
.card { display: flex; flex-direction: column; min-width: 0; }
.card-media { display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-alt); aspect-ratio: 16/9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding-top: 12px; }
.card-cat { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; margin-bottom: 8px; border-radius: 999px; background: color-mix(in srgb, var(--cat, var(--primary)) 13%, transparent); color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.card-cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cat, var(--primary)); }
.card-cat:hover { color: var(--text); background: color-mix(in srgb, var(--cat, var(--primary)) 24%, transparent); }
.card-title { font-size: 17px; line-height: 1.32; letter-spacing: -.01em; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a:hover { color: var(--primary); }
.card-excerpt { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.card-meta { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 6px; }

/* grid card: bordered tile */
.card-grid { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card-grid:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-grid .card-media { border-radius: 0; }
.card-grid .card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-grid .card-cat { align-self: flex-start; }
.card-grid .card-meta { margin-top: auto; }

/* small card: thumbnail beside the text */
.card-small { flex-direction: row-reverse; gap: 14px; align-items: flex-start; }
.card-small .card-media { width: 124px; flex-shrink: 0; aspect-ratio: 4/3; border-radius: 12px; }
.card-small .card-body { padding-top: 0; flex: 1; min-width: 0; }
.card-small .card-title { font-size: 15.5px; margin-bottom: 6px; }
.card-small .card-cat { margin-bottom: 6px; }

/* text card: no image */
.card-text { padding: 12px 0; border-bottom: 1px solid var(--border); }
.card-text:last-child { border-bottom: 0; }
.card-text .card-body { padding-top: 0; }
.card-text .card-title { font-size: 16px; margin-bottom: 6px; }

.card-list { flex-direction: row; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.card-list .card-media { width: 260px; flex-shrink: 0; }
.card-list .card-body { padding-top: 0; }
.card-list .card-title { font-size: 20px; }

/* hero: big image with the headline on top */
.hero { display: grid; grid-template-columns: 1.65fr 1fr; gap: 28px; margin-bottom: 32px; }
.hero-main { min-width: 0; }
/* hero: covers often carry their own headline, so the text sits below the image, not on it */
.card-hero .card-media { border-radius: 18px; aspect-ratio: 16/9; }
.card-hero .card-body { padding-top: 16px; }
.card-hero .card-title { font-size: 30px; line-height: 1.2; letter-spacing: -.02em; -webkit-line-clamp: 4; margin-bottom: 10px; }
.card-hero .card-excerpt { font-size: 16px; margin-bottom: 10px; }
.hero-side { display: flex; flex-direction: column; min-width: 0; }
.hero-side .card-small { padding: 14px 0; border-bottom: 1px solid var(--border); }
.hero-side .card-small:first-child { padding-top: 0; }
.hero-side .card-small:last-child { border-bottom: 0; padding-bottom: 0; }

/* product hubs */
.hubs-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 12px; }
.hubs-head h2 { font-size: 20px; letter-spacing: -.01em; margin: 0; }
.hubs-head span { font-size: 13px; color: var(--muted); }
.hubs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0 0 40px; }
.hub { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: box-shadow .2s, transform .2s, border-color .2s; }
.hub:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: color-mix(in srgb, var(--cat, var(--primary)) 55%, var(--border)); color: var(--text); }
.hub-icon { width: 40px; height: 36px; border-radius: 11px; background: var(--cat, var(--primary)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.hub-name { font-size: 14px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.hub-count { font-size: 12.5px; color: var(--muted); }
.hub-count strong { color: var(--text); }

/* category sections on the home page */
.cat-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px 28px; align-items: start; }
.cat-grid .card-grid { grid-column: 1; grid-row: 1 / span 4; }
.cat-grid .card-text { grid-column: 2; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* sidebar widgets as quiet panels */
.widget { margin-bottom: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px 14px; }
.widget-posts .card-small { padding: 12px 0; border-bottom: 1px solid var(--border); }
.widget-posts .card-small:last-child { border-bottom: 0; }
.widget-posts .card-cat { display: none; }
.updates-list { list-style: none; margin: 0; padding: 0; }
.updates-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.updates-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.updates-list time { flex: 0 0 46px; font-size: 12px; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.updates-list a { font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.popular-list { list-style: none; margin: 0; padding: 0; }
.popular-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.popular-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.popular-list .num { color: var(--primary); font-size: 18px; font-weight: 800; line-height: 1.2; min-width: 22px; font-variant-numeric: tabular-nums; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; font-size: 13px; color: var(--text-2); background: var(--surface); }
.tag:hover { background: var(--primary-soft); color: var(--text); border-color: transparent; }

.footer-brand { font-size: 22px !important; text-transform: none !important; }

/* Responsive */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar-sticky { position: static; }
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar { display: none; }
  .header-main { flex-wrap: wrap; padding: 10px 16px; }
  .nav-toggle { display: block; order: 1; }
  .brand { order: 2; flex: 1; text-align: center; }
  .brand-text { font-size: 24px; }
  .brand-tagline { display: none; }
  .search-form { order: 3; width: 100%; margin-top: 8px; }
  .search-form input { width: 100%; }
  .main-nav { position: static; }
  .main-nav ul { display: none; flex-direction: column; }
  .main-nav.open ul { display: flex; }
  .grid, .grid-3, .cat-grid { grid-template-columns: 1fr; }
  .cat-grid .card-small { grid-column: auto; }
  .cat-grid .card-grid { grid-row: auto; }
  .card-list { flex-direction: column; gap: 10px; }
  .card-list .card-media { width: 100%; }
  .card-hero .card-title { font-size: 22px; }
  .post-title { font-size: 26px; }
  .post-content { font-size: 17px; }
  .post-nav, .comment-form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .consent-banner { flex-direction: column; align-items: stretch; }
}
/* Redesign v2: responsive additions */
@media (max-width: 1100px) {
  .hubs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .card-hero .card-title { font-size: 25px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-grid .card-grid { grid-row: auto; }
  .cat-grid .card-text { grid-column: 1; }
}
@media (max-width: 640px) {
  .hubs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-hero .card-title { font-size: 22px; }
  .card-hero .card-excerpt { font-size: 15px; }
  .theme-toggle { order: 2; }
  .header-spacer { display: none; }
  .main-nav ul { padding: 6px 0 10px; }
  .widget { padding: 14px; }
  .card-small .card-media { width: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .sidebar, .site-footer, .ad-slot, .share, .comments, .post-nav, .consent-banner { display: none !important; }
  .layout { grid-template-columns: 1fr; }
}
