/* HubDatAI: design adapted from ThBestTemplate by jdortegar (MIT, see LICENSE-thbest-template-mit.txt) */
:root {
  --blue: #1b9df8;
  --blue-dark: #167fc8;
  --green: #79d144;
  --green-dark: #68c82f;
  --star: #ffcc36;
  --ink: #000;
  --ink-2: #4a4f55;
  --ink-3: #8a9097;
  --muted: #979797;
  --bg: #fff;
  --panel: #fff;
  --soft: #f7f9fb;
  --policy: #f0f0f0;
  --line: #e6e8eb;
  --frame: #f0f0f0;
  --shadow: 5px 5px 20px 0 rgba(0, 0, 0, .1);
  --shadow-strong: 5px 5px 20px 0 rgba(0, 0, 0, .25);
  --code-bg: #f6f8fa;
  --mix: #000;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --nav-h: 64px;
}
:root[data-theme="dark"] {
  --ink: #f1f3f5;
  --ink-2: #c3c9cf;
  --ink-3: #8f979f;
  --muted: #8f979f;
  --bg: #12161b;
  --panel: #1a1f26;
  --soft: #1f252d;
  --policy: #1a1f26;
  --line: #2b323b;
  --frame: #262d36;
  --shadow: 5px 5px 20px 0 rgba(0, 0, 0, .45);
  --shadow-strong: 5px 5px 24px 0 rgba(0, 0, 0, .7);
  --code-bg: #0d1117;
  --mix: #fff;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-top: var(--nav-h); font: 400 16px/1.65 var(--sans); color: var(--ink-2); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
kbd { font: 600 .8em var(--mono); padding: .05em .45em; border: 1px solid currentColor; border-radius: 4px; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 880px; }
.muted { color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* buttons (template: .btn-best-success / .btn-best-info) */
.btn { display: inline-block; font-weight: 500; font-size: .95em; color: #fff !important; border-radius: 22px; padding: .55rem 1.4rem; border: 0; cursor: pointer; text-transform: uppercase; letter-spacing: .02em; transition: background .15s; }
.btn-success { background: var(--green); }
.btn-success:hover { background: var(--green-dark); }
.btn-info { background: var(--blue); }
.btn-info:hover { background: var(--blue-dark); }
.btn-sm { font-size: .78em; padding: .4rem 1rem; }

/* ---------- navbar ---------- */
.topnav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50; background: var(--bg); transition: box-shadow .2s; }
.topnav.scrolled { box-shadow: 0 2px 14px rgba(0, 0, 0, .08); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { line-height: 1; color: var(--ink) !important; flex: none; }
.brand .b1, .brand .b2 { font-size: 1.55em; font-weight: 700; font-style: italic; letter-spacing: -.02em; display: inline; }
.brand .b2 { color: var(--blue); }
.brand small { font-size: .6em; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; color: var(--ink); }
.brand { display: grid; grid-template-columns: auto auto; justify-content: start; }
.brand small { grid-column: 1 / -1; }
.nav-menu { flex: 1; display: flex; align-items: center; gap: 20px; }
.nav-links { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: 22px; }
.nav-links a { color: var(--ink); text-transform: uppercase; font-size: .78em; font-weight: 400; letter-spacing: .03em; white-space: nowrap; padding: 6px 0; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); font-weight: 600; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.4em; color: var(--ink); cursor: pointer; padding: 6px 8px; }
.theme-toggle { color: var(--ink-2); font-size: 1.05em; padding: 6px; }
.theme-toggle:hover { color: var(--blue); }

/* search */
.nav-search { position: relative; width: 220px; flex: none; }
.nav-search form { position: relative; margin: 0; }
.nav-search .fa-search { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: .8em; }
#search-input { width: 100%; font: 400 .85em var(--sans); padding: 8px 12px 8px 32px; border: 1px solid var(--line); border-radius: 22px; background: var(--soft); color: var(--ink); transition: border-color .15s, width .2s; }
#search-input:focus { outline: none; border-color: var(--blue); background: var(--bg); }
.search-results { position: absolute; right: 0; top: calc(100% + 8px); width: min(440px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-strong); padding: 6px; z-index: 60; }
.search-results a { display: block; padding: 10px 12px; border-radius: 4px; color: var(--ink-2); }
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--soft); box-shadow: inset 3px 0 0 var(--blue); }
.search-results .r-title { color: var(--ink); font-weight: 600; font-size: .92em; line-height: 1.4; }
.search-results .r-meta { font-size: .75em; color: var(--blue); text-transform: uppercase; letter-spacing: .03em; }
.search-results .r-snip { font-size: .8em; line-height: 1.5; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-results mark { background: rgba(27, 157, 248, .2); color: inherit; padding: 0 .1em; border-radius: 2px; }
.search-results .r-empty { padding: 10px 12px; font-size: .88em; }

@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .nav-menu { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 16px 20px; background: var(--bg); box-shadow: 0 12px 20px rgba(0, 0, 0, .1); max-height: calc(100vh - var(--nav-h)); overflow: auto; }
  .topnav.open .nav-menu { display: flex; }
  .nav-links { flex-direction: column; gap: 0; margin: 0; }
  .nav-links a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .85em; }
  .nav-search { width: 100%; }
  .search-results { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  .theme-toggle { align-self: flex-start; }
}

/* ---------- hero (template .jumbotron + .banner-section) ---------- */
.jumbotron { background: #2a7fc4 url(img/tpl/img-background-blue.png) no-repeat center / cover; color: #fff; padding: 56px 0 48px; }
.jumbotron a { color: #fff; }
.banner-section { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.banner-left { flex: 1 1 520px; min-width: 0; }
.banner-right { flex: 0 1 460px; display: flex; flex-direction: column; align-items: center; }
.display { color: #fff; font-size: 3.1rem; font-weight: 200; line-height: 1.2; margin: 0 0 24px; }
.display b { font-weight: 600; }
.banner-line { display: inline-block; width: 70px; height: 1px; background: #fff; vertical-align: middle; margin: 0 14px 0 -84px; }
.banner-text { font-weight: 300; font-size: 1.05em; max-width: 36em; opacity: .95; }
.features { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 18px 28px; }
.features li a { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 74px; text-align: center; font-size: .78em; font-weight: 300; line-height: 1.25; }
.features li a:hover { font-weight: 500; color: #fff; }
.img-container { display: grid; place-items: center; width: 63px; height: 63px; border-radius: 50%; background: #fff; font-size: 1.6em; transition: transform .15s; flex: none; }
.features li a:hover .img-container { transform: translateY(-3px); }

/* monitor (stands in for the template's img-computer.png) */
.monitor { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; }
.monitor .screen { width: 100%; background: #0f1419; border: 12px solid #111; border-bottom-width: 26px; border-radius: 8px; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); position: relative; }
.monitor .screen::after { content: ""; position: absolute; left: 50%; bottom: -18px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #333; }
.monitor .stand { width: 70px; height: 34px; background: linear-gradient(#cfd3d7, #9ea4aa); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.monitor .base { width: 150px; height: 8px; border-radius: 0 0 6px 6px; background: #b8bdc2; }
.monitor pre { margin: 0; }
.monitor code { display: block; padding: 16px 18px 18px; white-space: pre-wrap; word-break: break-word; color: #d7dde2; font: .74em/1.85 var(--mono); }
.monitor code b { color: var(--green); }
.monitor code s { text-decoration: none; color: #f5a76a; }
.monitor code u { text-decoration: none; color: var(--blue); font-weight: 600; }
.cursor { display: inline-block; width: .55em; height: 1.1em; vertical-align: text-bottom; background: #d7dde2; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.banner-cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 22px; }
.banner-cta p { margin: 0; font-weight: 300; }
.banner-cta b { font-weight: 600; font-size: 1.15em; }

.jumbotron.small { padding: 40px 0 36px; }
.hero-inner h1 { color: #fff; font-size: 2.4rem; font-weight: 300; margin: 6px 0 10px; max-width: 26em; }
.hero-inner .lede { font-weight: 300; font-size: 1.1em; max-width: 46em; opacity: .95; }
.hero-inner .meta { color: rgba(255, 255, 255, .85); }
.crumbs { font-size: .82em; margin: 0 0 8px; opacity: .85; }
.crumbs a { text-decoration: underline; text-underline-offset: 2px; }
.cat-head { display: flex; align-items: center; gap: 22px; }
.cat-head h1 { margin: 0 0 4px; }
.cat-head p { margin: 0; font-weight: 300; font-size: 1.05em; }
.cat-head .img-container { width: 76px; height: 76px; font-size: 2em; }

/* grey strip under the hero (template .Policy) */
.policy { background: var(--policy); }
.policy-wrapper { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 7px; padding-bottom: 7px; font-size: .8em; color: var(--muted); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.policy-wrapper::-webkit-scrollbar { display: none; }
.policy-wrapper > div { display: inline-flex; align-items: center; gap: 4px; }
.policy-wrapper > div > i { margin-right: 2px; opacity: .75; }
.policy-wrapper .social-icons { margin: 0 2px; }
@media (max-width: 1100px) { .policy-search { display: none !important; } }

/* ---------- top 3 (template .most-popular) ---------- */
.most-popular-list { list-style: none; padding: 0; margin: 46px 0 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; align-items: center; }
.most-popular-list li { position: relative; background: var(--panel); border: 1px solid var(--frame); border-radius: 3px; box-shadow: var(--shadow); text-align: center; transition: box-shadow .15s, transform .15s; }
.most-popular-list li:hover { transform: translateY(-3px); box-shadow: var(--shadow-strong); }
.most-popular-list li.active { box-shadow: var(--shadow-strong); }
.most-popular-list a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 44px 20px 22px; color: var(--ink-2); }
.most-popular-list li.active a { padding-bottom: 34px; }
.most-popular-list .logo-icon { font-size: 2.4em; }
.most-popular-list strong { color: var(--ink); font-size: 1.02em; line-height: 1.35; }
.most-popular-list p { font-size: .86em; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.most-popular-list .visit { color: var(--blue); font-size: .9em; }
.score, .score-first { position: absolute; top: -2px; left: -2px; display: flex; color: #fff; font-weight: 700; }
.score .left { padding: 2px 16px 2px 14px; background: url(img/tpl/img-place.svg) no-repeat left / 100% 100%; font-size: 1.1em; }
.score-first .left { padding: 2px 10px 2px 14px; background: var(--green); font-size: 1.1em; border-radius: 3px 0 0 0; }
.score-first .right { padding: 2px 14px 2px 10px; background: var(--blue); font-size: .7em; font-weight: 500; text-transform: uppercase; display: inline-flex; align-items: center; clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }

/* ---------- section titles ---------- */
.section-title { text-align: center; margin: 0 0 28px; }
.section-title h2 { font-size: 1.6em; margin: 0 0 6px; }
.section-title p { color: var(--ink-3); margin: 0; }

/* ---------- top pick per platform (template .most-popular-choice) ---------- */
.most-popular-choice { margin-top: 40px; margin-bottom: 70px; }
.choice-list { list-style: none; padding: 0; margin: 0; }
.choice-list > li { position: relative; background: var(--panel); border: 1px solid var(--frame); border-radius: 3px; box-shadow: var(--shadow); margin-bottom: 25px; transition: box-shadow .15s; }
.choice-list > li:hover { box-shadow: var(--shadow-strong); }
.choice-list > li:first-child { margin-top: 30px; }
.people-choice { position: absolute; top: 0; left: 0; background: var(--blue); color: #fff; padding: 2px 30px; font-size: .82em; }
.people-choice b { color: #fff; }
.people-choice.static { position: static; display: inline-block; margin-bottom: 10px; border-radius: 2px; }
.ribbon { position: absolute; left: 50%; top: 0; transform: translate(-50%, -60%); background: var(--green); color: #fff; padding: 4px 28px; font-size: .78em; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; border-radius: 2px; white-space: nowrap; }
.ribbon::before, .ribbon::after { content: ""; position: absolute; top: 0; border: 7px solid transparent; }
.ribbon::before { left: -7px; border-right-color: var(--green-dark); border-top-width: 0; }
.ribbon::after { right: -7px; border-left-color: var(--green-dark); border-top-width: 0; }
.list-header { display: grid; grid-template-columns: 190px 1fr 290px; gap: 24px; align-items: center; padding: 24px 30px; }
.choice-list > li:first-child .list-header { padding-top: 42px; }
.logo-section { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.logo-section > i { font-size: 2.8em; }
.logo-section .cat-name { font-weight: 700; color: var(--ink); font-size: 1.15em; }
.features-section h3 { font-size: 1.05em; margin: 0 0 10px; }
.features-section h3 a { color: var(--ink); }
.features-section h3 a:hover { color: var(--blue); }
.features-section ul { list-style: none; margin: 0; padding: 0; }
.features-section li { color: var(--ink-3); font-size: .86em; margin-bottom: 5px; padding-left: 28px; background: url(img/tpl/icn-check.svg) no-repeat left 2px / 17px; }
.third-column { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.score-section { text-align: center; }
.score-section .big { display: block; font-size: 3.2em; font-weight: 400; color: var(--ink); line-height: 1; }
.score-section p { margin: 4px 0 0; font-size: .82em; color: var(--ink-2); }
.score-section a { font-size: .8em; }
.link-section { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.link-section .btn { padding: 9px 22px; font-size: .82em; }
.link-section .muted { font-size: .78em; }
.level { display: inline-flex; align-items: center; gap: 3px; font-size: .78em; }
.level i { font-size: .65em; color: var(--line); }
.level i.on { color: var(--star); }
.level em { font-style: normal; margin-left: 4px; color: var(--ink-3); }

/* ---------- categories (template .category-box) ---------- */
.categories { margin-bottom: 70px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 26px; max-width: 960px; margin: 0 auto; }
.category-box { display: flex; align-items: center; gap: 12px; min-height: 53px; padding: 10px 15px; border: 2px solid var(--blue); border-radius: 3px; background: var(--panel); color: var(--ink) !important; font-size: .92em; transition: box-shadow .1s; }
.category-box:hover { box-shadow: inset 0 0 0 1px var(--blue); }
.category-box i { width: 22px; text-align: center; color: var(--ink); font-size: 1.15em; }
.category-box:hover i { color: var(--blue-dark); }
.category-box span { flex: 1; }
.category-box em { font-style: normal; font-size: .8em; color: var(--blue); font-weight: 600; }

/* ---------- browser-window cards ---------- */
.latest { margin-bottom: 40px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--frame); border-radius: 4px; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow-strong); transform: translateY(-2px); }
.window-bar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; background: var(--frame); border-top: 3px solid var(--cat, var(--blue)); }
.window-bar i { width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .9; }
:root[data-theme="dark"] .window-bar i { background: #5b6570; }
.window-bar span { margin-left: auto; font-size: .66em; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 16px; }
.card h3 { font-size: 1.02em; margin: 0 0 8px; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--blue); }
.card-body > p:not(.meta) { flex: 1; font-size: .87em; margin-bottom: 14px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: .78em; color: var(--ink-3); margin: 0; }
.empty, .more { text-align: center; color: var(--ink-3); margin-top: 24px; }

/* ---------- filters / chips / badges ---------- */
.filters { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 0 28px; }
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { font: 500 .8em var(--sans); padding: 6px 16px; border-radius: 22px; border: 1px solid var(--blue); background: transparent; color: var(--blue); cursor: pointer; }
.chip:hover { background: rgba(27, 157, 248, .08); }
.chip[aria-pressed="true"] { background: var(--blue); color: #fff; }
.badge, .card, .tag-group li, .post-layout, .most-popular-list li, .choice-list > li {
  --cat-soft: color-mix(in srgb, var(--cat, var(--blue)) 14%, transparent);
  --cat-ink: color-mix(in srgb, var(--cat, var(--blue)) 80%, var(--mix));
}
.card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge { display: inline-block; padding: 2px 12px; border-radius: 22px; font-size: .75em; font-weight: 600; background: #fff; color: var(--cat) !important; }
.type-pill { display: inline-block; font-size: .75em; padding: 1px 12px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .7); }
.jumbotron .level em { color: rgba(255, 255, 255, .85); }
.jumbotron .level i { color: rgba(255, 255, 255, .35); }
.jumbotron .level i.on { color: var(--star); }
.jumbotron .meta { gap: 4px 18px; font-size: .85em; margin-top: 4px; }

/* ---------- post page ---------- */
.page-body { padding-top: 36px; padding-bottom: 20px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; padding-top: 36px; }
.post-main { min-width: 0; }
.post-aside { position: sticky; top: calc(var(--nav-h) + 20px); align-self: start; display: flex; flex-direction: column; gap: 22px; max-height: calc(100vh - var(--nav-h) - 40px); overflow: auto; }
.toc h2, .aside-box h2 { font-size: .78em; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 4px 0 4px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); font-size: .85em; line-height: 1.4; }
.toc li.lvl-3 a { padding-left: 26px; font-size: .8em; }
.toc a:hover { color: var(--blue); }
.toc a.active { color: var(--blue); border-left-color: var(--blue); font-weight: 500; }
.aside-box { background: var(--panel); border: 1px solid var(--frame); border-radius: 3px; box-shadow: var(--shadow); padding: 16px 18px; border-top: 3px solid var(--cat); }
.aside-box ul { list-style: none; margin: 0 0 14px; padding: 0; }
.aside-box li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .84em; line-height: 1.4; }
.aside-box li a { color: var(--ink-2); }
.aside-box li a:hover { color: var(--blue); }
.applies { margin: 0 0 24px; font-size: .88em; background: var(--soft); border: 1px solid var(--line); border-left: 3px solid var(--cat); border-radius: 3px; padding: 10px 14px; }
.applies span { font-weight: 600; color: var(--ink); margin-right: 10px; }
.related { margin-top: 30px; }
@media (max-width: 980px) {
  .post-layout { grid-template-columns: 1fr; gap: 24px; }
  .post-aside { position: static; max-height: none; order: -1; }
  .post-aside .aside-box { display: none; }
  .toc { background: var(--soft); border: 1px solid var(--line); border-radius: 3px; padding: 14px 16px; }
}

/* ---------- article body ---------- */
.prose { color: var(--ink-2); }
.prose h2 { font-size: 1.5em; margin: 1.8em 0 .6em; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 1.15em; margin: 1.5em 0 .5em; }
.prose h2, .prose h3 { position: relative; }
.prose .anchor { position: absolute; left: -1em; color: var(--ink-3); opacity: 0; font-weight: 400; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .3em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.anchor) { text-decoration: underline; text-underline-offset: 2px; }
.prose :not(pre) > code { font: .84em var(--mono); padding: .1em .4em; color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 3px; word-break: break-word; }
.prose pre { position: relative; margin: 0 0 1.6em; background: var(--code-bg); border: 1px solid var(--line); border-radius: 4px; overflow: auto; }
.prose pre code { display: block; padding: 1em 1.3em; background: none !important; font: .82em/1.65 var(--mono); tab-size: 2; }
.prose pre .lang { position: absolute; top: .5em; left: 1.3em; font: 700 .64em var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.prose pre:has(.lang) code { padding-top: 2.1em; }
.copy-btn { position: absolute; top: .45em; right: .45em; padding: 2px 12px; font: 500 .72em var(--sans); background: var(--panel); border: 1px solid var(--line); color: var(--ink-2); border-radius: 22px; opacity: 0; transition: opacity .15s; cursor: pointer; }
.prose pre:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
@media (hover: none) { .copy-btn { opacity: 1; } }
.copy-btn.done { color: var(--green-dark); border-color: var(--green); }
.prose blockquote { margin: 0 0 1.4em; padding: .8em 1.2em; background: var(--soft); border-left: 3px solid var(--line); border-radius: 0 3px 3px 0; }
.prose blockquote p:last-child, .author-card blockquote p:last-child { margin-bottom: 0; }
.callout { --c: var(--blue); border-left-color: var(--c) !important; background: color-mix(in srgb, var(--c) 8%, transparent) !important; }
.callout-title { font-weight: 700; font-size: .75em; text-transform: uppercase; letter-spacing: .08em; color: var(--c); margin: 0 0 .2em !important; }
.callout-tip { --c: #4caf2a; }
.callout-warning { --c: #e08a1e; }
.callout-caution { --c: #e0484f; }
.callout-important { --c: #8a63d2; }
.table-wrap { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--line); border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th { text-align: left; background: var(--soft); color: var(--ink); font-weight: 600; }
.prose td, .prose th { vertical-align: top; font-size: .88em; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.3em; }
.prose li > input[type="checkbox"] { margin: 0 .6em 0 0; accent-color: var(--blue); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.pager-link { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border: 1px solid var(--frame); border-radius: 3px; box-shadow: var(--shadow); background: var(--panel); color: var(--ink) !important; font-weight: 500; line-height: 1.4; font-size: .92em; }
.pager-link span { font-weight: 400; font-size: .82em; color: var(--blue); }
.pager-link.next { text-align: right; }
.pager-link:hover { box-shadow: var(--shadow-strong); }

/* ---------- tags ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.tag { font-size: .8em; padding: 2px 12px; border-radius: 22px; border: 1px solid var(--line); color: var(--ink-2); background: var(--soft); }
.tag:hover { color: var(--blue); border-color: var(--blue); }
.tag small { color: var(--ink-3); }
.post-main .tag-list { margin-top: 28px; }
.cloud { margin-bottom: 36px; }
.tag-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.tag-group { background: var(--panel); border: 1px solid var(--frame); border-radius: 3px; box-shadow: var(--shadow); padding: 16px 20px 6px; }
.tag-group h3 { font-size: 1em; color: var(--blue); }
.tag-group ul { list-style: none; padding: 0; margin: 0; }
.tag-group li { padding: 0 0 0 12px; border-left: 3px solid var(--cat); margin: 0 0 12px; display: flex; flex-direction: column; line-height: 1.4; font-size: .9em; }
.tag-group li a { color: var(--ink); }
.tag-group li a:hover { color: var(--blue); }
.tag-group li .muted { font-size: .82em; }
.tag-group:target { box-shadow: 0 0 0 2px var(--blue); }

/* ---------- about ---------- */
.author-card { display: flex; gap: 32px; align-items: flex-start; margin: 0 0 36px; padding: 28px; background: var(--panel); border: 1px solid var(--frame); border-radius: 3px; box-shadow: var(--shadow); }
.author-card img { width: 180px; height: 225px; object-fit: cover; object-position: top; border-radius: 3px; flex: none; }
.author-card h2 { margin: 0 0 4px; font-size: 1.6em; }
.author-card .role { margin: 0 0 14px; font-weight: 500; color: var(--blue); }
.author-card p:last-child { margin-bottom: 0; }
.social-icons { display: inline-flex; gap: 10px; }
.social-link.linkedin .fab { color: #0a66c2; }
.social-link.facebook .fab { color: #1877f2; }
.social-link.instagram .fab { color: #d6249f; }
.hero-inner .social-link .fab, .jumbotron .social-link .fab { color: inherit; }
.author-card .author-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn.btn-social { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.btn.btn-social .fab { color: #fff; }
.btn.btn-social.linkedin { background: #0a66c2; }
.btn.btn-social.linkedin:hover { background: #004182; }
.btn.btn-social.facebook { background: #1877f2; }
.btn.btn-social.facebook:hover { background: #0e5fc7; }
.btn.btn-social.instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
.btn.btn-social.instagram:hover { filter: brightness(.92); }

/* ---------- footer (template .footer) + up button ---------- */
.footer { margin-top: 80px; border-top: 1px solid var(--blue); font-size: .88em; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-top: 22px; padding-bottom: 26px; }
.footer .copyright { max-width: 760px; margin: 0; color: var(--ink-3); }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; }
.footer-nav a { color: var(--ink); font-size: 1.05em; }
.footer-nav a:hover { color: var(--blue); }
.up-btn { position: fixed; bottom: 20px; right: 24px; z-index: 40; border: 0; background: #bcbcbc; color: #fff; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; font-size: 1em; }
.up-btn:hover { background: #555; }

/* ---------- responsive ---------- */
@media (max-width: 970px) {
  .banner-section { flex-direction: column; text-align: center; }
  .banner-left, .banner-right { flex: none; width: 100%; }
  .display { font-size: 2.4rem; }
  .banner-line { width: 40px; margin: 0 12px 0 0; }
  .banner-text { margin-left: auto; margin-right: auto; }
  .features { justify-content: center; }
  .most-popular-list { grid-template-columns: 1fr; gap: 26px; }
  .list-header { grid-template-columns: 1fr; text-align: center; padding: 22px; }
  .choice-list > li:first-child .list-header { padding-top: 44px; }
  .features-section ul { display: inline-block; text-align: left; }
  .third-column { justify-content: center; gap: 40px; }
  .people-choice:not(.static) { display: none; }
  .category-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hide-mobile { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .display { font-size: 1.95rem; }
  .monitor code { font-size: .64em; }
  .hero-inner h1 { font-size: 1.75rem; }
  .cat-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .category-grid, .card-grid, .pager { grid-template-columns: 1fr; }
  .author-card { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
  .policy-wrapper { justify-content: flex-start; }
  .features li a { width: 64px; }
  .img-container { width: 54px; height: 54px; font-size: 1.4em; }
}
.score-section a { white-space: nowrap; }
.link-section .btn { white-space: nowrap; min-width: 120px; }
.type-tag { font-size: .72em; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); font-weight: 600; }
.monitor code { text-align: left; }
.prose td code, .prose th code { word-break: normal; white-space: nowrap; }

/* show code exactly as typed (no -< or => ligatures) */
code, pre, kbd, .monitor, code * { font-variant-ligatures: none !important; font-feature-settings: "liga" 0, "calt" 0 !important; }

/* ---------- right-side tags frame (category + post pages) ---------- */
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; align-items: start; }
.page-main { min-width: 0; }
.with-aside .card-grid { grid-template-columns: repeat(2, 1fr); }
.page-aside { position: sticky; top: calc(var(--nav-h) + 20px); max-height: calc(100vh - var(--nav-h) - 40px); overflow: auto; }
.tags-box h2 i { color: var(--cat, var(--blue)); margin-right: 2px; }
.tags-box .tag-list { gap: 6px; margin: 0 0 14px; }
.tags-box .tag { font-size: .76em; padding: 2px 10px; }
.post-aside .tags-box { display: block; }
@media (max-width: 980px) {
  .with-aside { grid-template-columns: 1fr; gap: 24px; }
  .page-aside { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .with-aside .card-grid { grid-template-columns: 1fr; }
}

/* ---------- right-side search panel ---------- */
.side-search form { position: relative; margin: 0 0 10px; }
.side-search form i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: .8em; }
.side-search-input { width: 100%; box-sizing: border-box; font: 400 .88em var(--sans); padding: 9px 12px 9px 32px; border: 1px solid var(--line); border-radius: 22px; background: var(--soft); color: var(--ink); }
.side-search-input:focus { outline: none; border-color: var(--blue); background: var(--panel); }
.side-search-results { max-height: 340px; overflow: auto; margin: 0 -6px; }
.side-search-results a { display: block; padding: 8px 8px; border-radius: 4px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.side-search-results a:last-child { border-bottom: 0; }
.side-search-results a:hover, .side-search-results a[aria-selected="true"] { background: var(--soft); box-shadow: inset 3px 0 0 var(--blue); }
.side-search-results .r-title { color: var(--ink); font-weight: 600; font-size: .84em; line-height: 1.35; }
.side-search-results .r-meta { font-size: .68em; color: var(--blue); text-transform: uppercase; letter-spacing: .03em; }
.side-search-results .r-snip { font-size: .75em; line-height: 1.45; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-search-results mark { background: rgba(27, 157, 248, .2); color: inherit; padding: 0 .1em; border-radius: 2px; }
.side-search-results .r-hint, .side-search-results .r-empty { font-size: .8em; color: var(--ink-3); margin: 0; padding: 0 6px 4px; }
.page-aside { display: flex; flex-direction: column; gap: 22px; }
.post-aside .side-search { display: block; }
@media (max-width: 980px) {
  .page-aside { order: -1; }
  .page-aside .tags-box .tag-list { max-height: 150px; overflow: auto; }
}
.aside-box { border-top: 3px solid var(--cat, var(--blue)); }

/* nav group dropdown ("Cloud") */
.nav-group { position: relative; }
.nav-group-btn { background: none; border: 0; cursor: pointer; font: inherit; color: var(--ink); text-transform: uppercase; font-size: .78em; font-weight: 400; letter-spacing: .03em; white-space: nowrap; padding: 6px 0; display: inline-flex; align-items: center; gap: 6px; }
.nav-group-btn i { font-size: .75em; transition: transform .2s; }
.nav-group-btn:hover, .nav-group-btn.active { color: var(--blue); }
.nav-group-btn.active { font-weight: 600; }
.nav-sub { display: none; list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: -14px; min-width: 170px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 24px rgba(0, 0, 0, .12); z-index: 60; }
.nav-sub a { display: block; padding: 8px 16px; }
.nav-sub .nav-sub-head { font-weight: 600; }
.nav-sub .nav-sub-child a { padding-left: 28px; }
.nav-sep { height: 1px; margin: 6px 0; background: var(--line); }
.nav-sub a:hover { background: var(--soft, rgba(47, 127, 216, .08)); }
@media (min-width: 1141px) {
  .nav-group:hover .nav-sub, .nav-group:focus-within .nav-sub, .nav-group.open .nav-sub { display: block; }
  .nav-group:hover .nav-group-btn i, .nav-group.open .nav-group-btn i { transform: rotate(180deg); }
}
@media (max-width: 1140px) {
  .nav-group-btn { display: flex; width: 100%; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .85em; }
  .nav-group.open .nav-group-btn i { transform: rotate(180deg); }
  .nav-group.open .nav-sub { display: block; }
  .nav-sub { position: static; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0 16px; min-width: 0; }
  .nav-sub a { padding: 10px 0; }
}

/* videos */
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.video-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .05); transition: transform .15s, box-shadow .15s; }
.video-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .1); color: var(--ink); }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #0d47a1; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb > i { position: absolute; inset: 0; margin: auto; width: 1em; height: 1em; font-size: 64px; color: rgba(255, 255, 255, .92); text-shadow: 0 4px 18px rgba(0, 0, 0, .35); }
.thumb .dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .75); color: #fff; font-size: .78em; padding: 2px 8px; border-radius: 4px; }
.vc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.vc-body h3 { margin: 0; font-size: 1.08em; line-height: 1.35; }
.vc-body p { margin: 0; font-size: .9em; line-height: 1.55; }
.vc-body .muted { font-size: .78em; }
.video-wrap { border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 8px 26px rgba(0, 0, 0, .15); margin-bottom: 12px; }
.video-wrap video { display: block; width: 100%; aspect-ratio: 16 / 9; }
.video-note { font-size: .82em; margin: 0 0 26px; }
.prose h3 .seek { font: inherit; font-size: .72em; font-family: "JetBrains Mono", monospace; background: var(--soft); color: var(--blue); border: 0; border-radius: 4px; padding: 2px 8px; cursor: pointer; vertical-align: middle; margin-right: 6px; }
.chapters .ts { font-family: "JetBrains Mono", monospace; font-size: .85em; color: var(--blue); margin-right: 4px; }
.chapters a.playing { color: var(--blue); font-weight: 600; }
.video-box a { display: flex; flex-direction: column; gap: 10px; font-size: .9em; line-height: 1.4; color: var(--ink); }
.video-box .thumb { border-radius: 6px; }
.video-box .thumb > i { font-size: 40px; }
@media (max-width: 640px) { .video-grid { grid-template-columns: 1fr; } }

/* subcategory tabs (Databases > SQL Server, Oracle, ...) */
.sub-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--line); margin-bottom: 22px; }
.sub-tabs a { padding: 10px 8px; margin-bottom: -2px; border-bottom: 3px solid transparent; color: var(--ink); font-weight: 500; font-size: .92em; white-space: nowrap; }
.sub-tabs a:hover { color: var(--cat, var(--blue)); }
.sub-tabs a.on { color: var(--cat, var(--blue)); border-bottom-color: var(--cat, var(--blue)); font-weight: 600; }
.sub-tabs small { display: inline-block; min-width: 22px; margin-left: 4px; padding: 0 6px; border-radius: 10px; background: var(--soft); color: var(--muted, #6b7a8c); font-size: .78em; text-align: center; }

/* share links under each post */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 28px 0 8px; padding: 14px 16px; border: 1px solid var(--line, #e3e6ea); border-radius: 10px; }
.share-bar span { color: var(--ink-2); font-size: .95em; margin-right: 4px; }
.share-bar a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; text-decoration: none; }
.share-bar a:hover { background: var(--blue-dark); }
