/*
Theme Name:   OdpornyBackup
Theme URI:    https://odpornybackup.pl
Description:  Nowoczesny, minimalistyczny motyw portalu o backupie i Disaster Recovery (artykuły, Shorts, YouTube, newsletter).
Author:       OdpornyBackup.pl
Version:      2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain:  odpornybackup
License:      GPL-2.0-or-later
*/

/* =====================================================================
   1. DESIGN TOKENS
   One spacing scale, one type scale, one radius scale – everything
   below uses only these values.
   ===================================================================== */
:root {
	/* Colour */
	--bg:          #f7f8fb;
	--bg-tint:     #eff3f9;
	--surface:     #ffffff;
	--ink:         #0b1220;
	--ink-2:       #334155;
	--muted:       #64748b;
	--faint:       #94a3b8;
	--line:        #e3e8ef;
	--line-2:      #cdd5e0;
	--accent:      #047857;   /* emerald – “verified / safe” */
	--accent-2:    #10b981;
	--accent-soft: #e7f6ef;
	--accent-ink:  #065f46;
	--blue:        #1d4ed8;
	--blue-soft:   #eaf0fe;
	--red:         #dc2626;
	--red-soft:    #fdecec;
	--amber:       #d97706;
	--dark:        #0b1220;
	--dark-2:      #131c2e;
	--dark-line:   rgba(255,255,255,.09);

	/* Legacy aliases used by older template markup */
	--surface-lowest: var(--surface); --surface-low: var(--bg-tint); --surface-c: #e9eef6; --surface-high: var(--line);
	--on-surface: var(--ink); --on-surface-variant: var(--ink-2); --outline: var(--muted); --outline-variant: var(--line-2);
	--primary: var(--ink); --primary-container: var(--dark-2); --secondary: var(--accent); --secondary-fixed: #6ee7b7;
	--indigo: var(--blue); --error: var(--red); --slate-300: #cbd5e1; --slate-400: var(--faint);

	/* Type */
	--font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--fs-12: .75rem;  --fs-13: .8125rem; --fs-14: .875rem; --fs-16: 1rem; --fs-18: 1.125rem;
	--fs-20: 1.25rem; --fs-22: 1.375rem; --fs-28: 1.75rem; --fs-36: 2.25rem; --fs-48: 3rem; --fs-56: 3.5rem;

	/* Space */
	--s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

	/* Shape & depth */
	--r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;
	--sh-1: 0 1px 2px rgba(11,18,32,.04);
	--sh-2: 0 1px 2px rgba(11,18,32,.04), 0 8px 24px -12px rgba(11,18,32,.14);
	--sh-3: 0 2px 4px rgba(11,18,32,.04), 0 18px 40px -16px rgba(11,18,32,.22);
	--ease: cubic-bezier(.2,.8,.2,1);

	--wrap: 1200px;
	--header-h: 68px;
	--sec-y: var(--s-9);
}
@media (max-width: 767px) { :root { --sec-y: var(--s-8); --header-h: 60px; } }

/* =====================================================================
   2. BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font: 400 var(--fs-16)/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); margin: 0; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; }
code, pre, kbd { font-family: var(--font-mono); }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: #c7f0dc; color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: #fff; padding: 8px 12px; clip: auto; width: auto; height: auto; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--s-6)); margin: 0 auto; padding: 0 var(--s-5); }
@media (min-width: 1024px) { .wrap { padding: 0 var(--s-6); } }
.mono { font-family: var(--font-mono); }
.ico { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.ms { font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; line-height: 1; display: inline-block; white-space: nowrap; direction: ltr; font-feature-settings: "liga"; text-transform: none; letter-spacing: normal; overflow: hidden; width: 1em; flex-shrink: 0; }

/* =====================================================================
   3. SHARED COMPONENTS
   ===================================================================== */
/* Eyebrow: small label above every section title */
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); font: 600 var(--fs-12)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-3); }
.eyebrow--pill { font-family: var(--font-body); font-size: var(--fs-13); padding: 7px 12px 7px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--ink-2); box-shadow: var(--sh-1); letter-spacing: .04em; text-transform: none; font-weight: 500; }
.eyebrow--light { color: #6ee7b7; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); position: relative; flex-shrink: 0; }

@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.6); opacity: 0; } }

/* Section rhythm */
.sec { padding: var(--sec-y) 0 0; }
.sec--tint { background: var(--bg-tint); padding-bottom: var(--sec-y); margin-top: var(--sec-y); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec--tint + .sec { padding-top: var(--sec-y); }
.sec--last { padding-bottom: 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4) var(--s-5); margin-bottom: var(--s-6); }
.sec-title { font-size: var(--fs-22); font-weight: 700; letter-spacing: -.025em; }
@media (min-width: 768px) { .sec-title { font-size: 1.875rem; } }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); font: 600 var(--fs-14)/1 var(--font-body); color: var(--ink); padding: 10px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.link-arrow .ico { transition: transform .25s var(--ease); color: var(--accent); }
.link-arrow:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.link-arrow:hover .ico { transform: translateX(3px); }
.sec-head--dark .link-arrow { background: transparent; color: #fff; border-color: var(--dark-line); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); height: 44px; padding: 0 var(--s-5); border-radius: var(--r-md); font: 600 var(--fs-14)/1 var(--font-body); cursor: pointer; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary, .btn--dark { background: var(--ink); color: #fff; }
.btn--primary:hover, .btn--dark:hover { background: #1e293b; }
.btn--accent, .btn--green { background: var(--accent); color: #fff; }
.btn--accent:hover, .btn--green:hover { background: var(--accent-ink); }
.btn--ghost-dark { background: transparent; color: #e2e8f0; border-color: rgba(255,255,255,.18); }
.btn--ghost-dark:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn--outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }

/* Chips (tags) */
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font: 500 var(--fs-13)/1 var(--font-body); color: var(--ink-2); transition: border-color .2s, color .2s, background .2s, transform .2s var(--ease); }
.chip__hash { color: var(--accent); font-weight: 700; margin-right: 2px; }
.chip:hover { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); transform: translateY(-1px); }
.hashtag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-ink); font: 600 var(--fs-12)/1 var(--font-mono); }

/* =====================================================================
   4. HEADER
   ===================================================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(247,248,251,.82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.brand { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.brand img, .brand .custom-logo { height: 34px; width: auto; }
.brand__text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.brand__name { display: flex; align-items: center; gap: var(--s-2); font: 800 var(--fs-20)/1.1 var(--font-head); letter-spacing: -.03em; }
.brand__word { white-space: nowrap; }
.brand__badge { font: 700 10px/1 var(--font-mono); letter-spacing: .06em; padding: 4px 6px; background: var(--accent-soft); color: var(--accent); border-radius: 5px; }
.brand__tagline { font: 500 var(--fs-12)/1.2 var(--font-body); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }
@media (max-width: 479px) { .brand__tagline { display: none; } .brand__name { font-size: var(--fs-18); } }
.header-right { display: flex; align-items: center; gap: var(--s-2); }

/* Main nav */
.main-nav { display: none; }
@media (min-width: 1100px) { .main-nav { display: block; margin-right: var(--s-2); } }
.main-nav > ul { list-style: none; display: flex; gap: 2px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a { display: flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; font: 500 var(--fs-14)/1 var(--font-body); color: var(--ink-2); border-radius: var(--r-md); transition: background .15s, color .15s; }
.main-nav > ul > li > a:hover, .main-nav > ul > li.current-menu-item > a { background: rgba(11,18,32,.05); color: var(--ink); }
.main-nav .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px,-2px); margin-left: 4px; opacity: .6; }
.main-nav .sub-menu { list-style: none; position: absolute; top: 100%; left: -8px; min-width: 260px; padding-top: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s; z-index: 60; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.main-nav .sub-menu::before { content: ""; position: absolute; inset: 8px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); z-index: -1; }
.main-nav .sub-menu li { padding: 0 6px; }
.main-nav .sub-menu li:first-child { padding-top: 6px; }
.main-nav .sub-menu li:last-child { padding-bottom: 6px; }
.main-nav .sub-menu a { display: block; padding: 10px 12px; border-radius: var(--r-md); }
.main-nav .sub-menu a:hover { background: var(--bg); }
.main-nav .sub-menu .nav-title { display: block; font: 600 var(--fs-14)/1.3 var(--font-body); color: var(--ink); }
.main-nav .sub-menu .nav-desc { display: block; font-size: var(--fs-13); line-height: 1.4; color: var(--muted); margin-top: 2px; }

/* Header buttons */
.header-right > .btn--dark { height: 38px; padding: 0 14px; }
@media (max-width: 479px) { .header-right > .btn--dark span { display: none; } .header-right > .btn--dark { padding: 0 11px; } }
.nav-toggle { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; color: var(--ink); }
@media (min-width: 1100px) { .nav-toggle { display: none; } }
.mobile-panel { display: none; border-top: 1px solid var(--line); background: var(--surface); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-panel.is-open { display: block; }
.mobile-panel .wrap { padding-top: var(--s-4); padding-bottom: var(--s-5); }
.mobile-panel .search-form { margin-bottom: var(--s-3); max-width: none; }
.mobile-panel ul { list-style: none; }
.mobile-panel li a { display: block; padding: 12px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-panel .sub-menu { padding-left: var(--s-4); }
.mobile-panel .sub-menu a { font-weight: 400; font-size: var(--fs-14); }
.mobile-panel .nav-desc { display: block; font-size: var(--fs-12); color: var(--muted); font-weight: 400; }

/* ---- Search: CSS-only toggle (#ob-search-toggle before <header>) ---- */
.search-toggle { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.search-trigger { display: inline-flex; align-items: center; height: 38px; min-width: 38px; padding: 0 10px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; user-select: none; overflow: hidden; transition: border-color .2s, color .2s, box-shadow .2s; }
.search-trigger svg { display: block; flex-shrink: 0; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.search-trigger__label { display: inline-block; max-width: 0; opacity: 0; white-space: nowrap; overflow: hidden; font: 500 var(--fs-14)/1 var(--font-body); color: var(--faint); transition: max-width .35s var(--ease), opacity .2s, margin .35s var(--ease); }
.search-trigger:hover, .search-trigger:focus-visible { border-color: var(--line-2); color: var(--ink); box-shadow: var(--sh-1); }
.search-trigger:hover svg, .search-trigger:focus-visible svg { transform: rotate(-12deg) scale(1.08); }
.search-trigger:hover .search-trigger__label, .search-trigger:focus-visible .search-trigger__label { max-width: 90px; opacity: 1; margin: 0 4px 0 8px; }
.search-toggle:checked ~ .site-header .search-trigger { background: var(--bg-tint); border-color: var(--line-2); color: var(--ink); }
@media (hover: none) { .search-trigger__label { display: none; } }

:root { --drawer-h: 112px; }
@media (max-width: 639px) { :root { --drawer-h: 80px; } }
.search-drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); border-top: 1px solid transparent; }
.search-drawer__inner { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s linear .4s; }
.search-toggle:checked ~ .site-header .search-drawer { grid-template-rows: 1fr; border-top-color: var(--line); }
.search-toggle:checked ~ .site-header .search-drawer__inner { visibility: visible; transition-delay: 0s; }
.site-main { padding-top: var(--header-h); transition: padding-top .4s var(--ease); min-height: 60vh; }
.search-toggle:checked ~ .site-main { padding-top: calc(var(--header-h) + var(--drawer-h)); }
.term-search { height: var(--drawer-h); max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; gap: var(--s-3); opacity: 0; transform: translateY(-8px); transition: opacity .3s ease .08s, transform .35s ease .08s; }
.search-toggle:checked ~ .site-header .term-search { opacity: 1; transform: none; }
.term-search__bar { display: flex; align-items: center; gap: var(--s-1); height: 50px; padding: 0 6px 0 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); transition: border-color .2s, box-shadow .2s; }
.term-search__bar:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11,18,32,.06); }
.term-search__icon { display: flex; color: var(--muted); cursor: text; }
.term-search input { flex: 1; min-width: 0; height: 100%; padding: 0 var(--s-2); background: transparent; border: 0; outline: none; color: var(--ink); font: 400 var(--fs-16)/1 var(--font-body); }
.term-search input::placeholder, .hero-search input::placeholder { color: var(--faint); }
.term-search__run, .term-search__close { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 0; border-radius: var(--r-md); cursor: pointer; transition: background .15s, color .15s; }
.term-search__run { background: var(--ink); color: #fff; }
.term-search__run:hover { background: #1e293b; }
.term-search__close { background: transparent; color: var(--muted); }
.term-search__close:hover { background: var(--bg-tint); color: var(--ink); }
.term-search__hints { display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; font: 500 var(--fs-12)/1 var(--font-body); color: var(--muted); }
.term-search__hint-label { margin-right: 2px; }
.term-search__hints a { padding: 6px 10px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); transition: border-color .15s, color .15s; }
.term-search__hints a:hover { border-color: var(--accent); color: var(--ink); }
.term-search__esc { margin-left: auto; display: none; color: var(--faint); }
.term-search__esc kbd { font: 600 10px/1 var(--font-mono); padding: 3px 6px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
@media (min-width: 768px) { .term-search__esc { display: inline; } }
@media (max-width: 639px) { .term-search__hints { display: none; } }

/* =====================================================================
   5. HERO
   ===================================================================== */
.hero { position: relative; padding: var(--s-8) 0 var(--s-6); overflow: hidden; }
.hero { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
@media (min-width: 1024px) { .hero { padding: var(--s-9) 0 var(--s-7); } }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); align-items: center; }
.hero__main { max-width: 820px; }
@media (min-width: 1024px) {
	/* Both columns start on the same top line (the eyebrow pill) */
	.hero__grid:has(.picks) { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
	.hero__grid:has(.picks) .hero__title { font-size: clamp(2.125rem, 1.4rem + 1.6vw, 2.625rem); }
}
.hero__title, .hero__lead, .pick__title { text-wrap: balance; }
.hero__accent { text-wrap: balance; }

.picks-section .picks { max-width: 760px; }

/* =====================================================================
   HEADER TOP BAR + HERO v3 ("redakcja dla administratorów")
   ===================================================================== */
:root { --topbar-h: 0px; }
.has-topbar { --topbar-h: 36px; }
@media (max-width: 767px) {
	.has-topbar { --topbar-h: 34px; }
	.topbar .topbar__follow, .topbar .topbar__badge { display: none; }
	.topbar__tip { font-size: var(--fs-12); }
	.topbar__right a { width: 26px; height: 26px; }
}
.has-topbar .site-main { padding-top: calc(var(--header-h) + var(--topbar-h)); }
.has-topbar .search-toggle:checked ~ .site-main { padding-top: calc(var(--header-h) + var(--topbar-h) + var(--drawer-h)); }
html:has(.has-topbar) { scroll-padding-top: calc(var(--header-h) + 52px); }

.topbar { height: var(--topbar-h); background: var(--ink); color: #cbd5e1; font-size: var(--fs-13); }
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
/* Rotating backup tips (left) */
.topbar__tips { display: flex; align-items: center; gap: var(--s-3); min-width: 0; flex: 1; }
.topbar__badge { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; font: 600 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #6ee7b7; padding: 4px 7px; border: 1px solid rgba(110,231,183,.35); border-radius: 4px; }
.topbar__rotator { position: relative; flex: 1; min-width: 0; height: 18px; overflow: hidden; }
.topbar__tip { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 18px; color: #cbd5e1; opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s var(--ease); }
.topbar__tip.is-active { opacity: 1; transform: none; }
/* Socials (right) */
.topbar__right { display: flex; align-items: center; gap: 2px; flex-shrink: 0; margin-left: auto; }

/* Hero v4: eyebrow row → [copy | tip card + topics], both columns start on one line */
.hero__layout { align-items: stretch !important; }
/* Less space between header and the "Portal o backupie…" pill */
.hero { padding-top: var(--s-6) !important; }
@media (min-width: 1024px) { .hero { padding-top: 40px !important; } }
/* Wider headline column, narrower tip column */
@media (min-width: 1024px) { .hero__layout { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) !important; gap: var(--s-7) !important; } }
.hero__copy { max-width: 780px !important; }
.hero__aside { display: flex; flex-direction: column; gap: var(--s-6); min-width: 0; }
/* Desktop: card top = cap height of the H1, tags bottom = bottom of the left column */
@media (min-width: 1024px) { .hero__aside { justify-content: space-between; padding-top: 9px; } }
.hero__aside .hero__topics { margin: 0; padding: 0; border: 0; }
/* Tags: always two equal rows (n/2 columns) */
.topics--even { display: grid !important; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: var(--s-2); }
.topics--even .chip { justify-content: center; min-width: 0; padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: flex; }
.topics--even .chip__hash { flex-shrink: 0; }
@media (max-width: 479px) { .topics--even { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero__copy .hero__title { margin-top: 0; }

/* Tip card – "technical note": dark title bar + light body */
.tip-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); overflow: hidden; }
.tip-card__head { display: flex; align-items: center; gap: var(--s-2); height: 44px; padding: 0 var(--s-5); background: var(--ink); color: #e2e8f0; }
.tip-card__icon { display: flex; color: #6ee7b7; }
.tip-card__label { font: 600 var(--fs-12)/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #6ee7b7; }
.tip-card__count { margin-left: auto; font: 500 var(--fs-12)/1 var(--font-mono); color: #64748b; }
.tip-card__num { color: #e2e8f0; }
.tip-card__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5) var(--s-5) var(--s-6); border-left: 3px solid var(--accent); }
.tip-card__text { margin: 0; font: 700 var(--fs-22)/1.3 var(--font-head); letter-spacing: -.02em; color: var(--tip-top, #047857); text-wrap: balance; }
.tip-card__detail { margin: 0; font-size: var(--fs-16); line-height: 1.65; color: var(--tip-bottom, #334155); }
@media (max-width: 479px) { .tip-card__head, .tip-card__body { padding-left: var(--s-4); padding-right: var(--s-4); } .tip-card__text { font-size: var(--fs-18); } }
.tip-card__text, .tip-card__detail { transition: opacity .25s ease, transform .25s var(--ease); }
.tip-card.is-switching .tip-card__text, .tip-card.is-switching .tip-card__detail { opacity: 0; transform: translateY(6px); }

/* Tip vault – 2×2 locked tiles that flip open on hover / tap */
.tip-vault .tip-card__count { font-size: 11px; letter-spacing: .02em; }
.vault { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); padding: var(--s-4); }
.vault__item { perspective: 900px; }
.vault__tile { position: relative; display: block; width: 100%; height: 132px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3,.9,.3,1); }
.vault__front, .vault__back { position: absolute; inset: 0; border-radius: var(--r-md); backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; }
.vault__front { justify-content: space-between; padding: 14px; background: var(--ink); border: 1px solid #1e293b; color: #e2e8f0; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 6px, transparent 6px 12px); }
.vault__lock { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: rgba(110,231,183,.12); color: #6ee7b7; transition: transform .3s var(--ease); }
.vault__no { font: 800 var(--fs-22)/1 var(--font-head); letter-spacing: -.03em; color: #fff; }
.vault__cta { font: 600 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #64748b; }
.vault__back { transform: rotateY(180deg); justify-content: center; padding: 14px; background: var(--surface); border: 1px solid var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.vault__text { font: 600 var(--fs-13)/1.45 var(--font-body); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.vault__tile:hover .vault__lock { transform: rotate(-12deg); }
@media (hover: hover) { .vault__item:hover .vault__tile { transform: rotateY(180deg); } }
.vault__tile:focus-visible, .vault__tile.is-open { transform: rotateY(180deg); }
.vault__tile:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	.vault__tile { transition: none; transform: none !important; }
	.vault__back { transform: none; opacity: 0; transition: opacity .2s; }
	.vault__item:hover .vault__back, .vault__tile:focus-visible .vault__back, .vault__tile.is-open .vault__back { opacity: 1; }
}
@media (max-width: 479px) { .vault__tile { height: 124px; } .vault { padding: var(--s-3); gap: 10px; } }/* Tips as hero tiles */
.features--tips .feature { align-items: flex-start; }
.feature__label { font: 600 10px/1 var(--font-mono) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--accent) !important; margin-bottom: 4px; }
.features--tips .feature__text strong { font: 500 var(--fs-14)/1.5 var(--font-body); letter-spacing: 0; color: var(--ink-2); min-height: 3em; transition: opacity .35s ease, transform .35s var(--ease); }
.features--tips .tip-text.is-out { opacity: 0; transform: translateY(6px); }
@media (min-width: 640px) and (max-width: 1023px) { .features.features--tips { grid-template-columns: minmax(0, 1fr); } .features.features--tips .feature + .feature { border-left: 0; border-top: 1px solid var(--line); } }
@media (min-width: 1024px) { .features.features--tips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.topbar__follow { margin-right: 6px; font-size: var(--fs-12); color: #64748b; }
.topbar__right a { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: #94a3b8; transition: color .2s, background .2s, transform .2s var(--ease); }
.topbar__right a:hover { color: #fff; background: rgba(255,255,255,.08); transform: translateY(-1px); }

/* Main header bar */
.site-header { background: rgba(255,255,255,.94); transition: box-shadow .25s, background .25s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(11,18,32,.25); background: rgba(255,255,255,.98); }
.main-nav > ul > li > a { position: relative; background: none !important; }
.main-nav > ul > li > a::before { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.main-nav > ul > li > a:hover::before, .main-nav > ul > li.current-menu-item > a::before, .main-nav > ul > li.current-menu-ancestor > a::before { transform: scaleX(1); }
.main-nav > ul > li > a:hover { color: var(--ink); }
.btn--line { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn--line:hover { border-color: var(--line-2); }
.header-right > .btn { height: 38px; padding: 0 14px; font-size: var(--fs-13); }
.header-right > .btn .ico { flex-shrink: 0; }
@media (max-width: 899px) { .header-contact { display: none; } }
@media (max-width: 479px) { .header-cta span { display: none; } .header-right > .header-cta { padding: 0 11px; } }

/* Larger logo + nav scaled to match */
:root { --header-h: 80px; }
@media (max-width: 767px) { :root { --header-h: 66px; } }
.brand { gap: 14px; }
.brand img, .brand .custom-logo { height: 46px; width: auto; }
.brand__name { font-size: 1.625rem; letter-spacing: -.035em; }
.brand__badge { font-size: 11px; padding: 4px 7px; }
.brand__tagline { font-size: var(--fs-13); margin-top: 2px; }
.main-nav > ul { gap: 4px; }
.main-nav > ul > li > a { height: 38px; padding: 0 12px; font-size: var(--fs-14); font-weight: 500; }
.main-nav > ul > li > a::before { left: 12px; right: 12px; bottom: 5px; }
.search-trigger { height: 38px; min-width: 38px; }
.search-trigger svg { width: 18px; height: 18px; }
.header-right { gap: 8px; }
.header-right > .btn { height: 38px; padding: 0 14px; font-size: var(--fs-13); }
.nav-toggle { width: 38px; height: 38px; }
.site-header .header-progress { bottom: -1px; }
@media (max-width: 767px) {
	.brand img, .brand .custom-logo { height: 38px; }
	.brand__name { font-size: 1.25rem; }
	.search-trigger, .nav-toggle { height: 40px; min-width: 40px; width: 40px; }
	.header-right > .btn { height: 40px; padding: 0 12px; }
}
@media (max-width: 379px) { .brand__name { font-size: 1.0625rem; } .brand img { height: 32px; } }

/* "Backup progress" – reading progress line under the header */
.header-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.header-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; transition: transform .1s linear; }

/* Hero layout: copy | terminal card */
.hero__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); align-items: center; }
@media (min-width: 1024px) { .hero__layout { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: var(--s-8); } }
.hero__copy { max-width: 640px; }
.hero__copy .hero__title { font-size: clamp(2.125rem, 1.3rem + 2.3vw, 3.125rem); line-height: 1.08; }
.hero__copy .hero__lead { margin-top: var(--s-5); max-width: none; }
.hero__copy .hero__note { max-width: none; }
.hero__copy .hero__topics { border-top: 0; padding-top: 0; margin-top: var(--s-6); }

/* Terminal card – newest guide shown like a shell session */
.term-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-xl); background: #0b1220; border: 1px solid #1e293b; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -28px rgba(11,18,32,.55); color: #e2e8f0; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.term-card:hover { transform: translateY(-3px); border-color: #334155; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 36px 70px -28px rgba(11,18,32,.6); }
.term-card__bar { display: flex; align-items: center; gap: var(--s-3); height: 42px; padding: 0 var(--s-4); background: #111a2c; border-bottom: 1px solid #1e293b; }
.term-card__dots { display: flex; gap: 6px; }
.term-card__dots i { width: 10px; height: 10px; border-radius: 50%; background: #334155; display: block; }
.term-card__dots i:first-child { background: #f87171; } .term-card__dots i:nth-child(2) { background: #fbbf24; } .term-card__dots i:nth-child(3) { background: #34d399; }
.term-card__file { flex: 1; min-width: 0; text-align: center; font: 500 var(--fs-12)/1 var(--font-mono); color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-card__tag { font: 600 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #0b1220; background: #6ee7b7; padding: 4px 7px; border-radius: 4px; }
.term-card__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5) var(--s-5) var(--s-5); }
.term-card__meta { font: 500 var(--fs-12)/1.3 var(--font-mono); color: #6ee7b7; }
.term-card__title { font: 700 var(--fs-22)/1.25 var(--font-head); letter-spacing: -.02em; color: #fff; }
.term-card__excerpt { font-size: var(--fs-14); line-height: 1.6; color: #94a3b8; }
.term-card__code { display: flex; flex-direction: column; gap: 4px; margin-top: var(--s-2); padding: var(--s-4); border-radius: var(--r-md); background: rgba(255,255,255,.03); border: 1px solid #1e293b; font: 400 var(--fs-13)/1.55 var(--font-mono); color: #cbd5e1; overflow: hidden; }
.term-card__line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-card__prompt { color: #6ee7b7; user-select: none; }
.term-card__line--ok { color: #6ee7b7; }
.term-card__cta { display: inline-flex; align-items: center; gap: var(--s-2); align-self: flex-start; margin-top: var(--s-2); font: 600 var(--fs-14)/1 var(--font-body); color: #fff; padding: 10px 14px; border-radius: var(--r-md); background: rgba(255,255,255,.06); border: 1px solid #334155; transition: background .2s, border-color .2s; }
.term-card__cta .ico { color: #6ee7b7; transition: transform .2s var(--ease); }
.term-card:hover .term-card__cta { background: rgba(110,231,183,.1); border-color: rgba(110,231,183,.45); }
.term-card:hover .term-card__cta .ico { transform: translateX(3px); }
@media (max-width: 479px) { .term-card__body { padding: var(--s-4); } .term-card__title { font-size: var(--fs-18); } }

/* ---- Full-width hero: headline | copy + search, then features, then topics ---- */
.hero__main { max-width: none; }
.hero__eyebrow { margin-bottom: var(--s-5); }
.hero__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: start; }
/* Optical top alignment: big headline line-box vs. body text line-box */
@media (min-width: 1024px) { .hero__side { padding-top: 6px; } }
.hero__topics { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.hero__topics-label { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); font: 600 var(--fs-14)/1.3 var(--font-body); color: var(--ink); }
.hero__topics-label .ico { color: var(--accent); }
.hero__topics .topics { margin-top: 0; }
@media (min-width: 1024px) { .hero__top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-8); } }
.hero__headline .hero__title { font-size: clamp(2.125rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.08; }
.hero__side .hero__lead { margin-top: 0; max-width: none; }
.hero__side .hero-search { margin-top: var(--s-5); max-width: none; }
.hero__side .hero__note { max-width: none; }

.features { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); margin-top: var(--s-7); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-5); }
.feature + .feature { border-top: 1px solid var(--line); }
@media (min-width: 640px) {
	.feature + .feature { border-top: 0; }
	.feature:nth-child(2n) { border-left: 1px solid var(--line); }
	.feature:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (min-width: 1024px) {
	.feature:nth-child(n+3) { border-top: 0; }
	.feature + .feature { border-left: 1px solid var(--line); }
}
.feature__icon { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); }
.feature__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feature__text strong { font: 600 var(--fs-16)/1.3 var(--font-head); letter-spacing: -.01em; color: var(--ink); }
.feature__text span { font-size: var(--fs-13); line-height: 1.5; color: var(--muted); }
.hero .topics { max-width: none; }

/* Hero punchline: quiet, editorial pull-quote under the lead */
.hero__note { margin-top: var(--s-4); max-width: 600px; padding: 2px 0 2px var(--s-4); border-left: 3px solid var(--accent); font: 600 var(--fs-16)/1.55 var(--font-head); letter-spacing: -.01em; color: var(--ink); }

/* "Na dobry start" – numbered editorial list next to the hero */
.picks { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); padding: var(--s-5) var(--s-5) var(--s-2); }
.picks__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.picks__head .eyebrow { margin-bottom: 0; }
.picks__list { list-style: none; }
.picks__list li + li { border-top: 1px solid var(--line); }
.pick { display: flex; align-items: flex-start; gap: var(--s-4); padding: var(--s-4) 0; }
.pick__num { font: 700 var(--fs-13)/1 var(--font-mono); color: var(--accent); background: var(--accent-soft); border-radius: var(--r-sm); padding: 5px 6px; margin-top: 1px; min-width: 30px; text-align: center; transition: color .2s, background .2s, transform .2s var(--ease); }

.pick__arrow { align-self: center; }
.pick__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pick__title { font: 600 var(--fs-14)/1.4 var(--font-head); letter-spacing: -.01em; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.pick__meta { font: 500 var(--fs-12)/1 var(--font-mono); color: var(--faint); }
.pick__arrow { color: var(--faint); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s var(--ease), color .2s; }
.pick:hover .pick__num { background: var(--ink); color: #fff; transform: scale(1.06); }
.pick:hover .pick__title { color: var(--accent-ink); }
.pick:hover .pick__arrow { opacity: 1; transform: none; color: var(--accent); }
@media (hover: none) { .pick__arrow { opacity: 1; transform: none; } }
.status-card { display: none !important; }
.hero__title { font-size: clamp(2rem, 1.3rem + 2.4vw, 2.75rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; }
.hero__accent { display: block; margin-top: var(--s-1); color: var(--accent); }
.hero__lead { margin-top: var(--s-4); font-size: var(--fs-16); line-height: 1.65; color: var(--ink-2); max-width: 600px; }

.hero-search { position: relative; display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-6); max-width: 600px; padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--sh-2); transition: border-color .2s, box-shadow .2s; }
.hero-search:focus-within { border-color: var(--ink); box-shadow: var(--sh-2), 0 0 0 4px rgba(11,18,32,.06); }
.hero-search__icon { margin-left: 10px; color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: none; background: transparent; font-size: var(--fs-16); }
.hero-search .btn { height: 44px; }

.topics { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-5); max-width: 640px; }
.topics__label { font: 500 var(--fs-13)/1 var(--font-body); color: var(--muted); margin-right: var(--s-1); }

/* Status card – the portal “at a glance”, styled like a monitoring widget */
.status-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: var(--s-5); overflow: hidden; }
.status-card__head { display: none !important; }
.status-card__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(16,185,129,.15); }
.status-card__ok { margin-left: auto; font-size: var(--fs-12); font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 8px; border-radius: var(--r-pill); }
.status-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin: 0 0 var(--s-5); }
.status-card__stats div { padding: var(--s-3) var(--s-3) var(--s-3) 0; }
.status-card__stats div + div { padding-left: var(--s-3); border-left: 1px solid var(--line); }
.status-card__stats dt { font: 500 var(--fs-12)/1 var(--font-body); color: var(--muted); }
.status-card__stats dd { margin: 6px 0 0; font: 800 var(--fs-28)/1 var(--font-head); letter-spacing: -.03em; }
.status-card__latest { display: block; padding: var(--s-4); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .2s, background .2s; }
.status-card__latest:hover { border-color: var(--accent); background: var(--accent-soft); }
.status-card__latest .mono { display: block; font-size: var(--fs-12); color: var(--muted); margin-bottom: 6px; }
.status-card__latest strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 var(--fs-16)/1.4 var(--font-head); letter-spacing: -.01em; }
.status-card__bar { height: 4px; margin-top: var(--s-5); border-radius: var(--r-pill); background: var(--bg-tint); overflow: hidden; }
.status-card__bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transform-origin: left; animation: fill 2.4s var(--ease) both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 1023px) { .status-card { max-width: 520px; } }
@media (max-width: 479px) { .hero-search .btn { padding: 0 var(--s-4); } .pillar, .lead, .author-card { padding: var(--s-5); } .rule { padding: var(--s-4); } .rule__num { font-size: var(--fs-28); } }

/* =====================================================================
   6. CARDS – articles
   ===================================================================== */
.grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--sh-1); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.card__body { display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 24px; }
.card__date { font: 500 var(--fs-12)/1 var(--font-mono); color: var(--faint); white-space: nowrap; }
.card__title { font-size: var(--fs-18); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; transition: color .2s; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card:hover .card__title { color: var(--accent-ink); }
.card__excerpt { font-size: var(--fs-14); line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__thumb { margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) var(--s-1); border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; aspect-ratio: 16/9; background: var(--bg-tint); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.snippet { margin: auto 0 0; padding: var(--s-3) var(--s-4); max-height: 96px; overflow: hidden; background: var(--dark); color: #a7f3d0; border-radius: var(--r-md); font: 400 var(--fs-12)/1.7 var(--font-mono); white-space: pre; position: relative; }
.snippet::after { content: ""; position: absolute; inset: auto 0 0; height: 24px; background: linear-gradient(transparent, var(--dark)); }
.snippet code { font: inherit; }

/* Front page: bento layout – 1 featured (2×2) + 2 beside + 3 below */
@media (min-width: 1024px) {
	.grid-bento > .card:first-child { grid-column: span 2; grid-row: span 2; padding: var(--s-6); border-top: 3px solid var(--accent); }
	.grid-bento > .card:first-child .card__title { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.025em; }
	.grid-bento > .card:first-child .card__excerpt { font-size: var(--fs-14); -webkit-line-clamp: 4; max-width: 620px; }
	.grid-bento > .card:first-child .snippet { max-height: 180px; font-size: var(--fs-13); padding: var(--s-4) var(--s-5); }
	.grid-bento > .card:first-child::before { content: "Polecane"; position: absolute; top: calc(-1 * 11px); left: var(--s-6); z-index: 2; height: 22px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: var(--r-pill); background: var(--ink); color: #fff; font: 600 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
	.grid-bento > .card:nth-child(2) .snippet, .grid-bento > .card:nth-child(3) .snippet { display: none; }
}

/* =====================================================================
   7. PILLAR (dark band)
   ===================================================================== */
.pillar { position: relative; background: var(--dark); color: #fff; border-radius: var(--r-xl); padding: var(--s-6); overflow: hidden; display: flex; flex-direction: column; gap: var(--s-6); }
@media (min-width: 1024px) { .pillar { padding: var(--s-7); gap: var(--s-7); } }

.pillar > * { position: relative; }
.pillar__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); align-items: end; }
@media (min-width: 1024px) { .pillar__head { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-7); } }
.pillar .sec-title { color: #fff; max-width: 760px; }
.pillar__lead { margin-top: var(--s-4); color: #cbd5e1; max-width: 720px; font-size: var(--fs-16); line-height: 1.7; }
.pillar__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.rule-grid { list-style: none; display: grid; gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .rule-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rule-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.rule { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "num tag" "name name" "desc desc"; align-items: center; gap: var(--s-2) var(--s-3); padding: var(--s-5); border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid var(--dark-line); transition: border-color .25s, background .25s, transform .25s var(--ease); }
.rule:hover { border-color: rgba(110,231,183,.5); background: rgba(255,255,255,.06); transform: translateY(-2px); }
.rule__num { grid-area: num; font: 800 var(--fs-28)/1 var(--font-head); color: #fff; letter-spacing: -.04em; }
.rule__tag { grid-area: tag; justify-self: end; font: 600 10px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; text-align: right; }
.rule__name { grid-area: name; margin-top: var(--s-2); font: 600 var(--fs-16)/1.3 var(--font-head); color: #fff; }
.rule__desc { grid-area: desc; font-size: var(--fs-13); line-height: 1.55; color: #94a3b8; }
.rule--hl { background: rgba(16,185,129,.08); border-color: rgba(110,231,183,.28); }
.rule--hl .rule__num, .rule--hl .rule__tag { color: #6ee7b7; }
.threat-grid { display: grid; gap: var(--s-4); padding-top: var(--s-6); border-top: 1px solid var(--dark-line); }
@media (min-width: 768px) { .threat-grid { grid-template-columns: 1fr 1fr; } }
.threat { display: flex; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-lg); background: rgba(255,255,255,.03); border: 1px solid var(--dark-line); }
.threat__icon { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--r-md); background: rgba(220,38,38,.14); color: #fca5a5; }
.threat--ok .threat__icon { background: rgba(16,185,129,.14); color: #6ee7b7; }
.threat__top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-bottom: var(--s-2); }
.threat__top strong { font: 600 var(--fs-16)/1.3 var(--font-head); }
.threat__badge { font: 600 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--r-pill); background: rgba(220,38,38,.14); color: #fca5a5; }
.threat--ok .threat__badge { background: rgba(16,185,129,.14); color: #6ee7b7; }
.threat p { font-size: var(--fs-14); line-height: 1.6; color: #cbd5e1; }

/* =====================================================================
   8. SHORTS (9:16)
   ===================================================================== */
.shorts { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (min-width: 900px) { .shorts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.short { position: relative; display: block; aspect-ratio: 3/4; border-radius: var(--r-lg); overflow: hidden; background: #0d2a20; color: #fff; box-shadow: var(--sh-2); transition: transform .3s var(--ease), box-shadow .3s var(--ease); isolation: isolate; }
.short--amber { background: #2a1f0a; }
.short--blue { background: #0d1f3d; }
.short:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.short__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); z-index: -2; }
.short:hover .short__bg { transform: scale(1.05); }
.short__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 45%, rgba(0,0,0,.85) 100%); }
.short__in { position: absolute; inset: 0; padding: var(--s-4); display: flex; flex-direction: column; justify-content: space-between; }
.short__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); }
.short__tags { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); font: 600 var(--fs-12)/1 var(--font-mono); color: #fff; max-width: 70%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.short__dur { display: inline-flex; align-items: center; gap: 6px; font: 600 var(--fs-12)/1 var(--font-mono); color: #fff; }
.ping { width: 6px; height: 6px; border-radius: 50%; background: #6ee7b7; }
.short__play { align-self: center; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(10px); color: #fff; transition: transform .3s var(--ease), background .3s; }
.short__play .ico { margin-left: 3px; }
.short:hover .short__play { transform: scale(1.1); background: var(--red); border-color: var(--red); }
.short__bottom { display: flex; flex-direction: column; gap: var(--s-2); }
.short__cmd { font: 500 var(--fs-12)/1.3 var(--font-mono); color: #6ee7b7; }
.short__title { font: 700 var(--fs-16)/1.3 var(--font-head); letter-spacing: -.015em; color: #fff; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.short__foot { display: flex; justify-content: space-between; align-items: center; padding-top: var(--s-2); border-top: 1px solid rgba(255,255,255,.18); font: 500 var(--fs-12)/1 var(--font-mono); color: rgba(255,255,255,.75); }
.short__foot span { white-space: nowrap; }
.short__foot span:empty { display: none; }
.short__foot span:last-child { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 599px) { .short__foot span:last-child { font-size: 0; gap: 0; } }

/* =====================================================================
   9. YOUTUBE (16:9)
   ===================================================================== */
.yt { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.yt:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.yt > div:first-child { flex: 1; display: flex; flex-direction: column; }
.yt__frame { position: relative; aspect-ratio: 16/9; background: var(--dark); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.yt__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.yt:hover .yt__frame img { transform: scale(1.04); }
.yt__scrim { position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.55)); z-index: 1; pointer-events: none; }
.yt__play { position: relative; z-index: 2; width: 56px; height: 40px; border-radius: 12px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px -6px rgba(220,38,38,.6); transition: transform .3s var(--ease); }
.yt:hover .yt__play { transform: scale(1.1); }
.badge-abs { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--r-sm); font: 600 11px/1 var(--font-mono); }
.badge-dur { bottom: 10px; right: 10px; background: rgba(0,0,0,.8); color: #fff; }
.badge-hd { display: none; }
.term { position: absolute; inset: 0; padding: var(--s-4); display: flex; flex-direction: column; justify-content: space-between; font: 400 var(--fs-12)/1.4 var(--font-mono); background: #0b1329; color: #94a3b8; }
.term--alt { background: #131b2e; }
.term--teal { background: #0c1f24; }
.term__top { display: flex; justify-content: space-between; gap: var(--s-2); padding-bottom: 6px; border-bottom: 1px solid var(--dark-line); font-size: 11px; }
.term__status { color: #6ee7b7; }
.term__status--red { color: #fca5a5; }
.term__body { font-size: 11px; color: #e2e8f0; white-space: pre-line; padding: var(--s-2) 0; }
.term__foot { font-size: 10px; color: #64748b; }
.yt__body { padding: var(--s-5) var(--s-5) var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.yt__title { font-size: var(--fs-16); font-weight: 700; line-height: 1.35; letter-spacing: -.015em; transition: color .2s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt__title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.yt:hover .yt__title { color: var(--accent-ink); }
.yt__excerpt { font-size: var(--fs-14); line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); }
.yt__views { font: 500 var(--fs-12)/1 var(--font-mono); color: var(--muted); }
.yt__cta { position: relative; z-index: 4; display: inline-flex; align-items: center; gap: 6px; font: 600 var(--fs-13)/1 var(--font-body); color: var(--ink); padding: 8px 10px; margin: -8px -10px; border-radius: var(--r-sm); transition: color .2s, background .2s, transform .2s var(--ease); }
.yt__cta:hover { color: var(--red); background: var(--red-soft); }

/* Front page: 1 featured video + compact list */
.grid-yt { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
@media (min-width: 700px) and (max-width: 1023px) { .grid-yt { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-yt > .yt:first-child { grid-column: span 2; } }
@media (min-width: 1024px) {
	.grid-yt { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-auto-rows: auto; }
	.grid-yt > .yt:first-child { grid-row: span 2; }
	.grid-yt > .yt:first-child .yt__title { font-size: var(--fs-20); -webkit-line-clamp: 3; }
	.grid-yt > .yt:first-child .yt__play { width: 72px; height: 50px; border-radius: 14px; }
	.grid-yt > .yt:not(:first-child) > div:first-child { flex-direction: row; }
	.grid-yt > .yt:not(:first-child) .yt__frame { width: 46%; flex-shrink: 0; aspect-ratio: 16/10; }
	.grid-yt > .yt:not(:first-child) .yt__body { padding: var(--s-4) var(--s-5); justify-content: center; }
	.grid-yt > .yt:not(:first-child) .yt__title { font-size: var(--fs-14); -webkit-line-clamp: 3; }
	.grid-yt > .yt:not(:first-child) .yt__excerpt { display: none; }
	.grid-yt > .yt:not(:first-child) .yt__play { width: 44px; height: 32px; border-radius: 10px; }
	.grid-yt > .yt:not(:first-child) .yt__foot { padding: var(--s-3) var(--s-5); }
}

/* =====================================================================
   10. LEAD MAGNET
   ===================================================================== */
.lead { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: center; padding: var(--s-6); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); overflow: hidden; }
@media (min-width: 1024px) { .lead { grid-template-columns: minmax(0, 1fr) 400px; padding: var(--s-7); gap: var(--s-7); } }

.lead > * { position: relative; }
.lead__glow { display: none; }
.lead__text { display: flex; flex-direction: column; gap: var(--s-4); }
.lead__pill { display: inline-flex; align-self: flex-start; align-items: center; gap: var(--s-2); font: 600 var(--fs-12)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lead h3 { font-size: var(--fs-22); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
@media (min-width: 768px) { .lead h3 { font-size: 1.875rem; } }
.lead__desc { color: var(--ink-2); line-height: 1.7; }
.lead__checks { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-14); color: var(--ink-2); }
.lead__checks span { display: inline-flex; align-items: center; gap: var(--s-2); }
.lead__checks .ico { color: var(--accent); }
.lead__form { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); }
.lead__form-title { font: 700 var(--fs-20)/1.3 var(--font-head); letter-spacing: -.015em; }
.lead__form small { display: block; margin-top: 4px; font-size: var(--fs-13); color: var(--muted); }
.lead__form label { display: block; font: 500 var(--fs-13)/1.4 var(--font-body); color: var(--ink-2); }
.lead__form input[type=email] { display: block; width: 100%; height: 46px; margin-top: var(--s-2); padding: 0 var(--s-4); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); font-size: var(--fs-16); transition: border-color .2s, box-shadow .2s; }
.lead__form input[type=email]:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11,18,32,.06); }
.lead__form .btn { width: 100%; height: 46px; }
.lead__form .note { text-align: center; font-size: var(--fs-12); color: var(--muted); }
.notice { padding: 10px 12px; border-radius: var(--r-md); font-size: var(--fs-13); }
.notice--ok { background: var(--accent-soft); border: 1px solid rgba(4,120,87,.25); color: var(--accent-ink); }
.notice--err { background: #fef3e2; border: 1px solid rgba(217,119,6,.3); color: #92400e; }

/* =====================================================================
   11. AUTHOR CARD
   ===================================================================== */
.author-card { display: flex; flex-direction: column; gap: var(--s-5); padding: var(--s-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-1); }
.author-card__head { display: flex; align-items: center; gap: var(--s-4); }
.author-card__avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--bg-tint); flex-shrink: 0; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.author-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-card__name { display: flex; align-items: center; gap: 6px; font: 700 var(--fs-20)/1.25 var(--font-head); letter-spacing: -.015em; }
.author-card__name .ico { color: var(--accent); }
.author-card__role { margin-top: 4px; font: 600 var(--fs-12)/1.3 var(--font-mono); letter-spacing: .04em; color: var(--muted); }
.author-card__bio { font-size: var(--fs-16); line-height: 1.7; color: var(--ink-2); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.stat { display: flex; flex-direction: column; gap: 4px; padding: var(--s-4); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); }
.stat__k { font: 500 var(--fs-12)/1.2 var(--font-body); color: var(--muted); }
.stat__v { font: 800 var(--fs-22)/1.1 var(--font-head); letter-spacing: -.02em; }
.author-card__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); }
.avail { display: inline-flex; align-items: center; gap: var(--s-2); font: 500 var(--fs-13)/1 var(--font-body); color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); display: inline-block; }
.link-u { font-size: var(--fs-13); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.author-card__social { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.author-card__social > span { font: 500 var(--fs-13)/1 var(--font-body) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--muted) !important; }
.social { display: flex; gap: var(--s-2); }
.social a { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); transition: border-color .2s, color .2s, transform .2s var(--ease); }
.social a:hover { transform: translateY(-2px); border-color: var(--line-2); color: var(--ink); }
.c-red { color: var(--red); }
.c-indigo { color: var(--blue); }
@media (min-width: 900px) {
	.author-section .author-card { display: grid; grid-template-columns: 1.1fr 1.5fr 1fr; align-items: center; gap: var(--s-5) var(--s-7); padding: var(--s-7); }
	.author-section .author-card__head { grid-column: 1; grid-row: 1; }
	.author-section .author-card__row { grid-column: 1; grid-row: 2; }
	.author-section .author-card__bio { grid-column: 2; grid-row: 1 / span 2; }
	.author-section .stats { grid-column: 3; grid-row: 1; }
	.author-section .author-card__social { grid-column: 3; grid-row: 2; }
}

/* =====================================================================
   12. ARCHIVE, SINGLE, PAGES
   ===================================================================== */
.archive-head { padding-top: var(--s-8); padding-bottom: var(--s-2); }
.archive-head .kicker { display: flex; align-items: center; gap: var(--s-2); }
.tag-dark { font: 600 var(--fs-12)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.kicker__meta { font: 500 var(--fs-12)/1 var(--font-mono); color: var(--faint); }
.page-title { margin-top: var(--s-3); font-size: var(--fs-28); font-weight: 800; letter-spacing: -.03em; }
@media (min-width: 768px) { .page-title { font-size: var(--fs-36); } }
.archive-head__desc { margin-top: var(--s-3); color: var(--ink-2); max-width: 720px; font-size: var(--fs-18); }
.section { padding: var(--s-6) 0 0; }
.section--lg { padding: var(--sec-y) 0; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: var(--s-7); flex-wrap: wrap; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-md); font: 600 var(--fs-14)/1 var(--font-body); transition: border-color .2s; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--line-2); }
.empty { padding: var(--s-7); text-align: center; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); }
.search-form { display: flex; gap: var(--s-2); max-width: 560px; }
.search-form input[type=search] { flex: 1; min-width: 0; height: 46px; padding: 0 var(--s-4); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); font-size: var(--fs-16); }
.search-form input[type=search]:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11,18,32,.06); }
.search-form button { height: 46px; padding: 0 var(--s-5); border: 0; border-radius: var(--r-md); background: var(--ink); color: #fff; font: 600 var(--fs-14)/1 var(--font-body); cursor: pointer; }

.article { max-width: 760px; margin: 0 auto; padding-top: var(--s-8); padding-bottom: 0; }
.article__head { display: flex; flex-direction: column; gap: var(--s-4); margin-bottom: var(--s-6); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 var(--fs-13)/1 var(--font-body); color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.article__title { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); font: 500 var(--fs-13)/1.4 var(--font-body); color: var(--muted); }
.article__meta > span + span::before { content: "·"; margin-right: var(--s-4); color: var(--line-2); }
.article__meta a:hover { color: var(--ink); }
.article__thumb { margin-bottom: var(--s-6); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.prose { font-size: 1.0625rem; line-height: 1.75; color: #1e293b; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: var(--fs-22); font-weight: 700; margin-top: 2em; letter-spacing: -.025em; }
.prose h3 { font-size: var(--fs-18); font-weight: 700; margin-top: 1.6em; }
.prose h4 { font-size: var(--fs-18); font-weight: 700; margin-top: 1.4em; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: rgba(4,120,87,.35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.5em 0; padding: var(--s-4) var(--s-5); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--ink-2); font-size: var(--fs-18); }
.prose blockquote p { margin: 0; }
.prose code { font-size: .86em; background: var(--bg-tint); border: 1px solid var(--line); padding: 2px 6px; border-radius: 5px; }
.prose pre { position: relative; background: var(--dark); color: #e2e8f0; border-radius: var(--r-md); padding: var(--s-5); overflow-x: auto; font: 400 var(--fs-14)/1.7 var(--font-mono); }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.prose .ob-copy { position: absolute; top: var(--s-2); right: var(--s-2); font: 600 11px/1 var(--font-mono); letter-spacing: .06em; background: rgba(255,255,255,.08); color: #cbd5e1; border: 1px solid rgba(255,255,255,.12); padding: 6px 9px; border-radius: var(--r-sm); cursor: pointer; }
.prose .ob-copy:hover { background: rgba(255,255,255,.16); color: #fff; }
.prose img, .prose figure { border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-16); background: var(--surface); border-radius: var(--r-md); overflow: hidden; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--bg-tint); font: 600 var(--fs-12)/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.alignwide { max-width: 1000px; }
.alignfull { max-width: none; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: var(--fs-13); color: var(--muted); margin-top: var(--s-2); text-align: center; }
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-7); }
.author-box { margin-top: var(--s-7); display: flex; gap: var(--s-4); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.author-box img { border-radius: 50%; width: 56px; height: 56px; }
.post-nav { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; padding: var(--s-4) var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s, box-shadow .2s; }
.post-nav a:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.post-nav small { display: block; font: 500 var(--fs-12)/1 var(--font-body); color: var(--muted); margin-bottom: 6px; }
.post-nav strong { font: 600 var(--fs-16)/1.4 var(--font-head); }
.post-nav .next { text-align: right; }
.video-embed { position: relative; aspect-ratio: 16/9; margin-bottom: var(--s-6); border-radius: var(--r-lg); overflow: hidden; background: var(--dark); box-shadow: var(--sh-3); }
.video-embed--short { aspect-ratio: 9/16; max-width: 380px; margin-left: auto; margin-right: auto; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Comments */
.comments { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.comments h2, .comment-reply-title { font-size: var(--fs-22); font-weight: 700; margin-bottom: var(--s-5); }
.comment-list { list-style: none; margin: 0 0 var(--s-6); }
.comment-list .children { list-style: none; padding-left: var(--s-5); }
.comment-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-3); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: var(--fs-12); color: var(--muted); margin: 4px 0 var(--s-2); }
.reply a { font-size: var(--fs-13); font-weight: 600; color: var(--accent-ink); }
.comment-form label { display: block; font-size: var(--fs-14); font-weight: 500; margin-bottom: 6px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md); }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11,18,32,.06); }
.comment-form p { margin-bottom: var(--s-4); }
.comment-form .submit { height: 46px; padding: 0 var(--s-5); background: var(--ink); color: #fff; border: 0; border-radius: var(--r-md); font-weight: 600; cursor: pointer; }

/* =====================================================================
   13. FOOTER
   ===================================================================== */
.site-footer { margin-top: var(--sec-y); background: var(--surface); border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: var(--s-8); padding-bottom: var(--s-6); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); margin-bottom: var(--s-7); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-7); } }
.footer-brand { display: flex; flex-direction: column; gap: var(--s-4); }
.footer-brand .brand img { height: 30px; }
.footer-brand p { font-size: var(--fs-14); line-height: 1.7; color: var(--muted); max-width: 380px; }
.footer-col h4 { font: 600 var(--fs-12)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); }
.footer-col a { font-size: var(--fs-14); color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--ink); }
.footer-col .nav-desc { display: none; }
.footer-bottom { padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-13); color: var(--faint); }


/* =====================================================================
   14. VIDEO LIGHTBOX
   ===================================================================== */
.vmodal { position: fixed; inset: 0; z-index: 1000; background: rgba(11,18,32,.88); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-3); padding: var(--s-4); animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.vmodal__box { width: min(1100px, 100%); aspect-ratio: 16/9; background: #000; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.vmodal--vertical .vmodal__box { width: auto; height: min(82vh, 760px); aspect-ratio: 9/16; max-width: 100%; }
.vmodal__box iframe { width: 100%; height: 100%; border: 0; display: block; }
.vmodal__bar { display: flex; align-items: center; gap: var(--s-3); }
.vmodal__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: 16px; }
.vmodal__close:hover { background: rgba(255,255,255,.2); }

/* Mobile refinements */
@media (max-width: 599px) {
	.rule-grid { grid-template-columns: minmax(0, 1fr); }
	.rule { grid-template-columns: auto 1fr; grid-template-areas: "num name" "num desc"; column-gap: var(--s-4); row-gap: 4px; align-items: start; }
	.rule__num { align-self: center; min-width: 32px; text-align: center; }
	.rule__tag { display: none; }
	.rule__name { margin-top: 0; }
	/* Shorts: swipeable carousel instead of one huge card per screen */
	.shorts { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--s-4); margin: 0 calc(-1 * var(--s-5)); padding: var(--s-1) var(--s-5) var(--s-4); scrollbar-width: none; }
	.shorts::-webkit-scrollbar { display: none; }
	.short { scroll-snap-align: start; aspect-ratio: 9/14; }
	.short__title { font-size: var(--fs-16); }
	.yt__views, .yt__cta { white-space: nowrap; }
	.yt__foot { padding: var(--s-4); }
}
/* =====================================================================
   15. MOTION PREFERENCES
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}
