/* ============================================================
   Theme ported from a Blogger/Blogspot template ("Sora Templates —
   Super fast") to this static HTML/PHP generator. Blogger's $(variable)
   theme tokens are resolved below as plain CSS custom properties.
   ============================================================ */
/* Self-hosted (was cdnjs) so icon glyphs don't depend on a third-party request. */
@font-face {
  font-family: 'FontAwesome';
  src: url('/assets/fonts/fontawesome-webfont.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Accessibility: keyboard skip-to-content link, off-screen until it receives focus. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--main-color);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

:root {
  --main-color: #2475fc;
  --main-dark-color: #171717;
  --title-color: #000000;
  --title-hover: #2475fc;
  --footer-color: #f1ffff;
  --menu-bg: #2475fc;
  --menu-color: #ffffff;
  --headline-bg: #2475fc;
  --headline-color: #ffffff;
  --body-background-color: #f8f8f8;
  --body-text-color: #000000;
  --body-link-color: #2475fc;
  --card-bg: #ffffff;
  --border-color: #ebebeb;
  --border-strong: #d7d7d7;
  --muted-text: #757575;
  --pill-bg: #f2f2f2;
  --featured-bg: #ffb703;
  --featured-color: #3a2a00;
  --shadow-sm: none;
  --shadow-md: none;
  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------- reset */
a,abbr,acronym,address,applet,b,big,blockquote,body,caption,center,cite,code,dd,del,dfn,div,dl,dt,em,fieldset,font,form,h1,h2,h3,h4,h5,h6,html,i,iframe,img,ins,kbd,label,legend,li,object,p,pre,q,s,samp,small,span,strike,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,tt,u,ul,var { padding: 0; border: 0; outline: 0; vertical-align: baseline; background: 0 0; text-decoration: none; }
form,textarea,input,button { -webkit-appearance: none; -moz-appearance: none; appearance: none; border-radius: 0; }

/* ---------------------------------------------------------------- keyboard focus (the reset above zeroes outline everywhere) */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,
[role="button"]:focus-visible,[tabindex]:focus-visible {
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
  border-radius: 0;
}
/* on the always-blue menu bar a blue ring disappears — use white there instead */
.header-menu :focus-visible,.social-color a:focus-visible,a.button:focus-visible,.back-top:focus-visible {
  outline-color: #fff;
}
dl,ul { list-style-position: inside; font-weight: 400; list-style: none; }
ul li { list-style: none; }
caption,th { text-align: center; }
img { border: none; position: relative; }
a,a:visited { text-decoration: none; }
.clearfix { clear: both; }
.section,.widget,.widget ul { margin: 0; padding: 0; }
a { color: var(--body-link-color); }
a img { border: 0; }
abbr { text-decoration: none; }
.separator a { clear: none !important; float: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.widget-item-control,a.quickedit,.home-link,.feed-links { display: none !important; }
.center { display: table; margin: 0 auto; position: relative; }
.widget-title { display: none; }

/* ---------------------------------------------------------------- body & wrappers */
body { background: var(--body-background-color); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 14px; font-weight: 400; color: var(--body-text-color); word-wrap: break-word; margin: 0; padding: 0; }
body.lock-scroll { overflow: hidden; }
#outer-wrapper { max-width: none; margin: 0 auto; background-color: var(--card-bg); }
.row { width: 1200px; max-width: 100%; margin: 0 auto; }
#content-wrapper { margin: 30px auto 0; overflow: visible; }
/* Flex layout (was floats): keeps columns aligned and lets the sidebar be sticky so a
   short sidebar no longer leaves a big blank column beside a long article. */
#content-wrapper > .container { display: flex; align-items: flex-start; gap: 34px; margin: 0; }
#main-wrapper { flex: 1 1 auto; min-width: 0; box-sizing: border-box; word-wrap: break-word; padding: 0; margin: 0; }
#sidebar-wrapper { flex: 0 0 300px; width: 300px; box-sizing: border-box; word-wrap: break-word; padding: 0; position: sticky; top: 20px; }

/* ---------------------------------------------------------------- post images */
.post-image-wrap { position: relative; display: block; }
.post-image-wrap.hero { aspect-ratio: 2 / 1; overflow: hidden; margin: 0 0 20px; background-color: rgba(155,155,155,.07); }
.post-image-wrap.hero img { width: 100%; height: 100%; object-fit: cover; }
.post-image-link,.about-author .avatar-container { background-color: rgba(155,155,155,.07); color: transparent !important; }
.post-thumb { display: block; position: relative; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: opacity .17s ease; }
.post-image-link:hover .post-thumb,.post-image-wrap:hover .post-image-link .post-thumb { opacity: .9; }
.post-title a { display: block; }
.img-ph { width: 100%; height: 100%; min-height: 60px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--main-color), var(--main-dark-color)); }
.img-ph.c1 { background: linear-gradient(135deg, #6366f1, #1e1b3a); }
.img-ph.c2 { background: linear-gradient(135deg, #14b8a6, #0f2a27); }
.img-ph.c3 { background: linear-gradient(135deg, #a855f7, #241b33); }
.img-ph.c4 { background: linear-gradient(135deg, #64748b, #1a2029); }
.img-ph span { font-weight: 800; font-size: 1.6rem; color: rgba(255,255,255,.9); }

/* ---------------------------------------------------------------- social icons */
.social a:before { display: inline-block; font-family: FontAwesome; font-style: normal; font-weight: 400; }
.social .facebook a:before { content: "\f09a"; }
.social .twitter a:before { content: "\f099"; }
.social .youtube a:before { content: "\f167"; }
.social .pinterest a:before { content: "\f0d2"; }
.social .github a:before { content: "\f09b"; }
.social .linkedin a:before { content: "\f0e1"; }
.social .whatsapp a:before { content: "\f232"; }
.social .telegram a:before { content: "\f2c6"; }
.social .email a:before { content: "\f0e0"; }
.social .rss a:before { content: "\f09e"; }
.social .instagram a:before { content: "\f16d"; }
.social .tiktok a:before { content: "\f0ac"; }
.social .mastodon a:before { content: "\f0ac"; }
.social-color .facebook a { background-color: #3b5999; }
.social-color .twitter a { background-color: #00acee; }
.social-color .youtube a { background-color: #f50000; }
.social-color .pinterest a { background-color: #ca2127; }
.social-color .instagram a { background-color: #e4405f; }
.social-color .tiktok a { background-color: #1a1a1a; }
.social-color .mastodon a { background-color: #6364ff; }
.social-color .github a { background-color: #24292e; }
.social-color .telegram a { background-color: #79aef7; }
.social-color .linkedin a { background-color: #0077b5; }
.social-color .whatsapp a { background-color: #3fbb50; }
.social-color .email a { background-color: #888; }
.social-color .rss a { background-color: #ff6600; }

/* ---------------------------------------------------------------- header */
#header-wrap { position: relative; margin: 0; background: var(--card-bg); border-bottom: 1px solid var(--border-color); }
#header-wrap .container { margin: 0 auto; }
.header-header { background-color: var(--card-bg); width: 100%; height: auto; position: relative; overflow: hidden; padding: 35px 0; display: flex; align-items: center; justify-content: space-between; }
.header-logo { position: relative; float: left; width: auto; max-width: 200px; max-height: 60px; margin: 0; padding: 15px 0; }
.header-logo img { max-width: 100%; max-height: 60px; margin: 0; }
.header-logo h1 { color: var(--title-color); font-size: 36px; line-height: 60px; margin: 0; }
.header-logo h1 a { color: var(--title-color); }
.header-logo p { font-size: 12px; margin: 5px 0 0; }
.header-ads { position: relative; float: right; width: 728px; max-width: 100%; max-height: 90px; line-height: 1; text-align: center; }

.mobile-header { display: none; position: relative; float: left; width: 100%; height: 42px; z-index: 9; }
.mobile-header .logo-content { position: relative; float: left; display: block; width: 100%; height: 42px; text-align: center; z-index: 2; }
.mobile-header .logo-content > a { height: 30px; display: inline-block; padding: 6px 0; color: #fff; font-size: 20px; font-weight: 700; }
.mobile-header .logo-content > a > img { height: 30px; }

/* ---------------------------------------------------------------- blue menu bar */
.header-menu { position: relative; width: 100%; height: 42px; background-color: var(--menu-bg); z-index: 10; font-size: 13px; margin: 0; }
.social-toggle { position: absolute; line-height: 42px; height: 42px; width: 42px; top: 0; left: 0; color: var(--menu-color); font-size: 15px; font-weight: 400; text-align: center; cursor: pointer; z-index: 20; padding: 0; }
.social-toggle:before { content: '\f1e0'; font-family: FontAwesome; }
.social-active .social-toggle:before { content: '\f00d'; }
#social-menu { display: none; position: absolute; width: 100%; height: 42px; top: 0; left: 0; background-color: var(--menu-bg); text-align: center; z-index: 15; margin: 0; }
#social-menu.open { display: block; }
#social-menu .social { display: flex; justify-content: center; height: 42px; }
#social-menu .social li { display: inline-block; padding: 0; margin: 0; }
#social-menu .social li a { display: block; height: 42px; font-size: 14px; color: var(--menu-color); line-height: 42px; padding: 0 10px; margin: 0 5px; transition: color .17s ease; }
.show-search,.hide-search { position: absolute; right: 0; top: 0; display: block; width: 42px; height: 42px; line-height: 42px; z-index: 20; color: var(--menu-color); font-size: 15px; text-align: center; cursor: pointer; }
.show-search:before { content: "\f002"; font-family: FontAwesome; font-weight: 400; }
.hide-search:before { content: "\f00d"; font-family: FontAwesome; font-weight: 400; }

/* dark-mode toggle: moon in light theme, sun in dark theme; sits just left of the search icon */

/* ---------------------------------------------------------------- announcement / promo bar */
.announcement-bar { background-color: var(--main-color); color: #fff; font-size: 13px; font-weight: 600; }
.announcement-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 9px 44px 9px 20px; text-align: center; }
.announcement-text a { color: #fff; text-decoration: underline; }
.announcement-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; line-height: 24px; background: rgba(255,255,255,.18); color: #fff; font-size: 18px; border: none; border-radius: 0; cursor: pointer; transition: background .17s ease; }
.announcement-close:hover { background: rgba(255,255,255,.32); }

#nav-search { display: none; position: absolute; left: 0; top: 0; width: 100%; height: 42px; z-index: 99; background-color: var(--menu-bg); box-sizing: border-box; padding: 0; }
#nav-search.open { display: block; }
#nav-search .search-form { width: 100%; height: 42px; overflow: hidden; padding: 0; }
#nav-search .search-input { width: 100%; height: 42px; font-family: inherit; color: var(--menu-color); margin: 0; padding: 0 60px 0 20px; background-color: rgba(0,0,0,0); font-size: 13px; font-weight: 400; box-sizing: border-box; border: 0; }
#nav-search .search-input::placeholder { color: rgba(255,255,255,.65); }
#nav-search .search-input:focus { color: var(--menu-color); outline: none; }
.search-results { position: absolute; left: 0; top: 42px; width: 100%; max-height: 320px; overflow-y: auto; background: var(--main-dark-color); z-index: 98; }
.search-results a { display: block; padding: 10px 20px; color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.search-results a:hover { background: rgba(255,255,255,.06); }
.search-results a strong { display: block; font-size: 13px; }
.search-results a small { color: #9a9a9a; font-size: 12px; }
/* While search is open, lift the whole header (its own stacking context) above the
   .nav-overlay (z-index 90) so clicks land on the result links, not the overlay. */
body.search-active .header-menu { z-index: 100; }

.slide-menu-toggle { display: none; position: absolute; line-height: 42px; height: 42px; width: 42px; top: 0; left: 0; font-family: FontAwesome; color: var(--menu-color); font-size: 17px; font-weight: 400; text-align: center; cursor: pointer; z-index: 99; padding: 0; }
.slide-menu-toggle:before { content: "\f0c9"; }
.nav-active .slide-menu-toggle:before { content: "\f00d"; }

#main-menu { position: relative; height: 42px; text-align: center; z-index: 10; }
#main-menu > ul { display: flex; flex-wrap: wrap; justify-content: center; }
/* Direct-child combinators: these style ONLY the top-level bar. Using a descendant
   combinator here leaked --menu-color (white) onto the nested .dropdown-menu links,
   rendering them white-on-white (invisible). Dropdown links are styled by .dropdown-menu below. */
#main-menu > ul > li { display: inline-block; position: relative; margin: 0; padding: 0; transition: background .17s; }
#main-menu > ul > li > a { position: relative; color: var(--menu-color); font-size: 14px; font-weight: 600; line-height: 42px; display: inline-block; padding: 0 14px; margin: 0 3px; transition: color .17s ease; }
#main-menu > ul > li:hover > a,#main-menu > ul > li.active > a { background: rgba(0,0,0,.15); }

/* ---------------------------------------------------------------- dropdown / mega menu (custom nav) */
/* the caret is its own clickable hit-area (via :before glyph) so its tap target can grow on mobile without distorting the triangle */
.menu-caret { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 42px; vertical-align: middle; cursor: pointer; }
.menu-caret:before { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid var(--menu-color); }
.menu-caret[aria-expanded="true"]:before { border-top: 0; border-bottom: 4px solid var(--menu-color); }
#main-menu ul > li.has-children > a { padding-right: 10px; }
.dropdown-menu,.mega-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 60; text-align: left; background: var(--card-bg); border: 1px solid var(--border-color); }
/* Submenus are opened/closed exclusively via JS (.menu-open class). CSS :hover is intentionally
   NOT used — it causes sticky-hover on hybrid touch/mouse devices and can't be cleared by JS. */
#main-menu ul > li.has-children.menu-open > .dropdown-menu,
#main-menu ul > li.has-children.menu-open > .mega-menu { display: block; }
.dropdown-menu { min-width: 220px; padding: 6px 0; }
.dropdown-menu li { display: block; width: 100%; margin: 0; }
.dropdown-menu li a { display: block; width: auto; color: var(--title-color); font-size: 13px; font-weight: 600; line-height: 1.4; text-transform: none; padding: 10px 18px; margin: 0; white-space: nowrap; }
.dropdown-menu li a:hover,.dropdown-menu li.active a { background: var(--pill-bg); color: var(--title-hover); }

/* Anchor the mega panel directly under its parent item (left-aligned). The old
   centered `left:50%;translateX(-50%)` depended on the <li> being the exact offset
   parent and made the wide panel float away from the label, looking detached/empty. */
.mega-menu { left: 0; right: auto; max-width: calc(100vw - 40px); }
.mega-menu-inner { display: flex; padding: 22px 0; }
.mega-col { flex: 1 1 220px; min-width: 200px; padding: 0 26px; border-right: 1px solid var(--border-color); }
.mega-col:last-child { border-right: 0; }
.mega-link { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; }
.mega-icon { font-size: 20px; line-height: 1; margin-bottom: 2px; }
.mega-label { font-size: 13px; font-weight: 700; color: var(--title-color); text-transform: none; transition: color .17s; }
.mega-desc { font-size: 12px; line-height: 1.5; color: var(--muted-text); }
.mega-link:hover .mega-label,.mega-link.active .mega-label { color: var(--title-hover); }

/* mobile off-canvas: #main-menu itself becomes the dropdown/slide panel */
body.nav-active { overflow: hidden; }
.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .17s; z-index: 90; }
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------------- content */
.no-posts { float: left; width: 100%; height: 100px; line-height: 100px; text-align: center; }
#home-ad { float: left; width: 100%; margin: 0 0 20px; }
#home-ad .widget-content { position: relative; width: 100%; overflow: hidden; line-height: 1; text-align: center; }
.ad-after-post { float: left; width: 100%; margin: 0 0 22px; text-align: center; }
.inline-ad { position: relative; display: block; margin: 0 0 30px; text-align: center; }
/* in-content ad slots read as intentional "ad areas": subtle frame + a tiny Advertisement label, no clipping */
.ad-after-post,.inline-ad,.ad-slot { position: relative; box-sizing: border-box; padding: 20px 10px 12px; background-color: var(--pill-bg); border: 1px solid var(--border-color); border-radius: 0; overflow: hidden; }
.ad-after-post:before,.inline-ad:before,.ad-slot:before { content: 'Advertisement'; position: absolute; top: 6px; left: 0; right: 0; font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-align: center; color: var(--muted-text); opacity: .7; }
/* if a slot ends up empty (no ad markup), collapse it so it never leaves a labelled gap */
.ad-after-post:empty,.inline-ad:empty,.ad-slot:empty { display: none; }
.ad-after-post img,.inline-ad img,.ad-slot img { max-width: 100%; height: auto; }
.ad-slot { margin: 0 0 22px; }

/* ---------------------------------------------------------------- custom ad / promo zones */
.custom-ad { position: relative; display: block; clear: both; margin: 0 0 20px; text-align: center; overflow: hidden; }
.custom-ad:empty { display: none; margin: 0; }
.custom-ad img { max-width: 100%; height: auto; }
.custom-ad + .custom-ad { margin-top: -6px; }
.sidebar .custom-ad,.footer .custom-ad { margin-bottom: 20px; }
.custom-ad[data-zone="home_top"] { margin-top: 20px; }
.custom-ad[data-zone="post_top"] { margin-top: 20px; }

/* ---------------------------------------------------------------- table of contents */
.post-toc { clear: both; background: var(--pill-bg); border: 1px solid var(--border-color); border-radius: 0; padding: 16px 20px; margin: 0 0 25px; }
.post-toc-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-text); margin: 0 0 8px; }
.post-toc ul { margin: 0; padding: 0; }
.post-toc li { margin: 4px 0; padding: 0; line-height: 1.4; }
.post-toc li a { color: var(--title-color); font-size: 14px; transition: color .17s; }
.post-toc li a:hover { color: var(--title-hover); }
.post-toc li.toc-sub { margin-left: 18px; }
.post-toc li.toc-sub a { font-size: 13px; color: var(--muted-text); }
html { scroll-behavior: smooth; }
.post-body h2,.post-body h3 { scroll-margin-top: 80px; }
.post-toc li a.toc-active { color: var(--main-color); font-weight: 600; }

/* ---------------------------------------------------------------- reading progress bar */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: transparent; z-index: 1020; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 0; background: var(--main-color); transition: width .1s linear; }

/* ---------------------------------------------------------------- full-width (no sidebar) layout */
body.no-sidebar #main-wrapper { width: 100%; float: none; }
body.no-sidebar #sidebar-wrapper { display: none; }
body.no-sidebar .item-post-wrap { max-width: 860px; margin: 0 auto; }

/* ---------------------------------------------------------------- cover post header */
.post-cover { position: relative; margin: 0 0 30px; padding: 60px 20px; border-radius: 0; background-color: var(--main-dark-color); background-size: cover; background-position: center; overflow: hidden; }
.post-cover.has-image { padding: 90px 20px; }
.post-cover-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.post-cover .post-title { color: #fff; margin: 8px 0; }
.post-cover.has-image .post-title { color: #fff; }
.post-cover #breadcrumb,.post-cover #breadcrumb a,.post-cover #breadcrumb em { color: rgba(255,255,255,.85); }
.post-cover #breadcrumb .current { color: #fff; }
.post-cover .post-meta,.post-cover .post-meta .post-author,.post-cover .post-meta .post-date,.post-cover .post-meta .post-read-time { color: rgba(255,255,255,.85); float: none; display: inline-block; }
.post-cover .post-meta { justify-content: center; }
.post-cover .post-meta a { color: #fff; }
.post-cover .post-tags { justify-content: center; display: flex; flex-wrap: wrap; }
body.cover .item-post-wrap { max-width: 860px; margin: 0 auto; }
body.cover .post-cover { border-radius: 0; margin-top: -30px; }
@media screen and (max-width: 560px) {
  .post-cover { padding: 40px 16px; }
  .post-cover.has-image { padding: 60px 16px; }
}

/* ---------------------------------------------------------------- homepage featured hero */
.hero-post { display: flex; overflow: hidden; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 0; margin: 0 0 30px; }
.hero-post .hero-image { position: relative; flex: 0 0 55%; min-height: 300px; overflow: hidden; display: block; background-color: rgba(155,155,155,.07); }
.hero-post .hero-image img,.hero-post .hero-image .post-thumb { width: 100%; height: 100%; object-fit: cover; }
.hero-post .hero-image .img-ph { position: absolute; inset: 0; }
.hero-info { flex: 1; box-sizing: border-box; padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; }
.hero-info .post-badges { margin: 0 0 12px; }
.hero-title { font-size: 26px; font-weight: 700; line-height: 1.35em; margin: 0 0 10px; }
.hero-title a { color: var(--title-color); transition: color .17s; }
.hero-title a:hover { color: var(--title-hover); }
.hero-snippet { color: var(--muted-text); font-size: 14px; line-height: 1.6em; margin: 10px 0 0; }
.hero-post .read-more { align-self: flex-start; }
@media screen and (max-width: 700px) {
  .hero-post { flex-direction: column; }
  .hero-post .hero-image { flex-basis: auto; width: 100%; height: 200px; min-height: 0; }
}

/* ---------------------------------------------------------------- sidebar author box */
.sidebar-author-box { text-align: center; padding: 4px 0 0; }
.sidebar-author-box .avatar-container { width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 0; overflow: hidden; background-color: rgba(155,155,155,.07); }
.sidebar-author-box .author-avatar { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-author-name { font-size: 14px; font-weight: 700; color: var(--title-color); margin: 0 0 6px; }
.sidebar-author-bio { font-size: 13px; line-height: 1.6em; color: var(--muted-text); margin: 0; }

.post-meta { overflow: hidden; color: var(--muted-text); font-size: 13px; font-weight: 400; padding: 0 1px; }
.post-meta .post-author,.post-meta .post-date,.post-meta .post-read-time,.post-meta .post-views { float: left; display: inline-block; margin: 0; }
.post-author { font-weight: 700; }
/* "·" separators between adjacent meta items — no dangling separator, works wherever meta appears.
   Tag-agnostic (>*+*) so the <time> date element separates the same as the old <span> did. */
.post-meta > * + *:before { content: '·'; margin: 0 7px; color: var(--muted-text); font-weight: 400; }
.post-meta a { color: #226fee; transition: color .17s; }
.post-meta a:hover { color: var(--main-color); }
.post-updated { font-size: 12px; color: var(--muted-text); font-style: italic; }
.tts-toggle { background: none; border: none; padding: 0; margin: 0; font: inherit; font-size: 13px; color: var(--muted-text); cursor: pointer; }
.tts-toggle:hover { color: var(--main-color); }
.item-post .post-meta .post-comment-link { float: left; margin: 0 0 0 8px; }
.post-diff { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.diff-quick  { color: #1a8a3a; }
.diff-medium { color: #b35e00; }
.diff-long   { color: #c0392b; }
.post-comment-count { font-size: 13px; color: var(--muted-text); }

.queryMessage { overflow: hidden; background-color: var(--pill-bg); color: var(--title-color); font-size: 13px; font-weight: 400; padding: 8px 10px; margin: 0 0 25px; }
.queryMessage .query-info { margin: 0 5px; }
.queryMessage a.show-more { float: right; color: var(--title-hover); text-decoration: underline; }
.queryEmpty { font-size: 13px; font-weight: 400; padding: 10px 0; margin: 0 0 25px; text-align: center; }

.title-wrap { position: relative; float: left; width: 100%; height: 28px; background-color: var(--headline-bg); display: block; margin: 0 0 20px; }
.title-wrap > h3 { display: block; font-size: 12px; color: var(--headline-color); font-weight: 600; line-height: 28px; text-transform: uppercase; text-align: center; padding: 0 15px; margin: 0; }

/* Category banner (shown when a category has an image set) */
.cat-banner { position: relative; width: 100%; height: 200px; background-size: cover; background-position: center; margin: 0 0 24px; display: flex; align-items: flex-end; overflow: hidden; }
.cat-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 60%, rgba(0,0,0,0) 100%); }
.cat-banner-inner { position: relative; z-index: 1; padding: 20px 24px; }
.cat-banner-title { font-size: 26px; font-weight: 800; color: #fff; margin: 0 0 6px; line-height: 1.2; }
.cat-banner-desc { font-size: 14px; color: rgba(255,255,255,.85); margin: 0; }

/* small title+date list widget (recent posts, footer posts) */
.custom-widget li { overflow: hidden; margin: 20px 0 0; }
.custom-widget li:first-child { padding: 0; margin: 0; border: 0; }
.custom-widget .post-image-link { position: relative; width: 80px; height: 60px; float: left; overflow: hidden; display: block; margin: 0 12px 0 0; }
.custom-widget .post-info { overflow: hidden; }
.custom-widget .post-title { overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.5em; margin: 0 0 3px; }
.custom-widget .post-title a,.common-widget .post-title a { display: block; color: var(--title-color); transition: color .17s; }
.custom-widget li:hover .post-title a,.common-widget .post:hover .post-title a { color: var(--title-hover); }
.custom-widget .post-meta { font-size: 12px; }

/* ---------------------------------------------------------------- homepage post list (card) */
.index-post-wrap { position: relative; float: left; width: 100%; }
.index-post {
  display: flex; gap: 20px; align-items: stretch; overflow: hidden;
  background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 0;
  padding: 14px; margin: 0 0 22px; box-shadow: var(--shadow-sm);
  transition: border-color .17s ease;
}
.index-post:hover { border-color: var(--main-color); }
.index-post .post-image-wrap { flex: 0 0 240px; width: 240px; height: 170px; overflow: hidden; border-radius: 0; margin: 0; }
.index-post .post-image-wrap .post-image-link { width: 100%; height: 100%; position: relative; display: block; z-index: 1; overflow: hidden; }
/* download-type card: a thin accent stripe so file/template posts stand out in the list */
.index-post.is-download { border-left: 3px solid var(--main-color); }
.index-post.is-featured { border-color: var(--featured-bg); box-shadow: none; }

/* ---- homepage grid layout (alternative to the default image-left list) ---- */
.index-post-wrap.grid-view { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; float: none; }
.grid-view .index-post,.grid-view .ad-after-post,.grid-view .custom-ad { margin: 0; }
.grid-view .ad-after-post,.grid-view .custom-ad { grid-column: 1 / -1; }
.grid-view .index-post { flex-direction: column; gap: 0; }
.grid-view .index-post .post-image-wrap { flex: 0 0 auto; width: 100%; height: 180px; margin: 0 0 14px; }
.grid-view .index-post .post-info { display: flex; flex-direction: column; flex: 1; }
.grid-view .index-post .post-snippet { flex: 1; }
@media screen and (max-width: 900px) { .index-post-wrap.grid-view { grid-template-columns: repeat(2, 1fr); } }
@media screen and (max-width: 560px) { .index-post-wrap.grid-view { grid-template-columns: 1fr; } }

/* ---- homepage: 2-column grid (larger cards) ---- */
.index-post-wrap.grid-view.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-2 .index-post .post-image-wrap { height: 220px; }
@media screen and (max-width: 700px) { .index-post-wrap.grid-view.grid-2 { grid-template-columns: 1fr; } }

/* ---- homepage: large single-column cards (image on top) ---- */
.index-post-wrap.layout-large { display: block; float: none; }
.layout-large .index-post { flex-direction: column; gap: 0; max-width: 820px; margin: 0 auto 28px; padding: 0; overflow: hidden; }
.layout-large .index-post .post-image-wrap { flex: 0 0 auto; width: 100%; height: 360px; border-radius: 0; margin: 0; }
.layout-large .index-post .post-info { padding: 22px 26px 24px; }
.layout-large .index-post .post-info > h2 { font-size: 26px; line-height: 1.35em; }
.layout-large .index-post .post-snippet { font-size: 14px; }
@media screen and (max-width: 560px) { .layout-large .index-post .post-image-wrap { height: 220px; } }

/* ---- homepage: compact dense list (small thumbnails, scannable) ---- */
.index-post-wrap.layout-compact { float: none; }
.layout-compact .index-post { padding: 10px 12px; margin: 0 0 10px; gap: 14px; align-items: center; }
.layout-compact .index-post .post-image-wrap { flex: 0 0 96px; width: 96px; height: 70px; border-radius: 0; }
.layout-compact .index-post .post-info > h2 { font-size: 16px; line-height: 1.35em; }
.layout-compact .index-post .post-meta { margin: 5px 0 0; }
.layout-compact .post-snippet, .layout-compact .index-post .read-more, .layout-compact .index-post .post-labels { display: none; }
@media screen and (max-width: 560px) { .layout-compact .index-post .post-image-wrap { width: 72px; height: 56px; flex-basis: 72px; } }

.index-post .post-info { overflow: hidden; min-width: 0; flex: 1; display: flex; flex-direction: column; }
.index-post .post-info > h2 { font-size: 20px; font-weight: 700; line-height: 1.4em; margin: 0; }
.index-post .post-info > h2 > a { display: block; color: var(--title-color); transition: color .17s; }
.index-post .post-info > h2:hover > a { color: var(--title-hover); }
.index-post .post-meta { margin: 8px 0 0; }
.post-snippet { position: relative; display: block; overflow: hidden; font-size: 13px; line-height: 1.6em; font-weight: 400; margin: 9px 0 0; color: var(--muted-text); }
a.read-more { display: inline-flex; align-items: center; align-self: flex-start; background-color: var(--main-color); color: #fff; height: 30px; font-size: 13px; font-weight: 600; line-height: 30px; padding: 0 16px; margin: 14px 0 0; border-radius: 0; transition: background .17s ease, transform .17s ease; }
a.read-more:hover { background-color: var(--main-dark-color); transform: translateX(2px); }

/* ---------------------------------------------------------------- card badge row (Featured / category / Download) */
.post-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 9px; line-height: 1; }
.pbadge { display: inline-flex; align-items: center; height: 22px; padding: 0 11px; font-size: 11px; font-weight: 600; letter-spacing: .02em; border-radius: 0; white-space: nowrap; }
.pbadge-cat { background-color: var(--main-color); color: #fff; text-transform: capitalize; transition: background .17s ease; }
a.pbadge-cat:hover { background-color: var(--main-dark-color); color: #fff; }
.pbadge-featured { background-color: var(--featured-bg); color: var(--featured-color); }
.pbadge-download { background-color: var(--pill-bg); color: var(--title-color); }
.pbadge-download:before { content: "\f019"; font-family: FontAwesome; font-size: 10px; margin-right: 5px; }

/* ---------------------------------------------------------------- breadcrumb */
#breadcrumb { font-size: 12px; font-weight: 400; color: #aaa; margin: 0 0 10px; }
#breadcrumb a { color: #aaa; transition: color .17s; }
#breadcrumb a:hover { color: var(--title-hover); }
#breadcrumb a,#breadcrumb em { display: inline-block; }
#breadcrumb .delimiter:after { content: '\f054'; font-family: FontAwesome; font-size: 8px; font-weight: 400; font-style: normal; vertical-align: middle; margin: 0 3px; }

/* ---------------------------------------------------------------- single post */
.item-post h1.post-title { color: var(--title-color); font-size: 34px; line-height: 1.5em; font-weight: 700; position: relative; display: block; margin: 10px 0; padding: 0; }
.static_page .item-post h1.post-title { margin: 0; }
.item-post .post-body { width: 100%; font-size: 18px; line-height: 1.7em; overflow: hidden; padding: 20px 0 0; margin: 10px 0 0; border-top: 1px dashed var(--border-color); }
.static_page .item-post .post-body { padding: 20px 0; }
.item-post .post-body img { max-width: 100%; height: auto; }
/* flow-root (not float) so the footer's own floated bits — share row, related grid — are
   contained here and don't leak down onto .post-nav (which would collapse its width to 0). */
.post-footer { position: relative; display: flow-root; width: 100%; margin: 20px 0 0; }

.post-labels { overflow: hidden; height: auto; position: relative; margin: 0 0 20px; padding: 0; }
.post-labels span,.post-labels a { float: left; height: 22px; background-color: var(--pill-bg); color: var(--title-color); font-size: 12px; line-height: 22px; font-weight: 400; margin: 0; padding: 0 10px; border-radius: 0; }
.post-labels span { background-color: var(--main-color); color: #fff; }
.post-labels a { margin: 0 0 0 5px; transition: all .17s ease; }
.post-labels a:hover { background-color: var(--main-color); color: #fff; }
.post-labels a:hover .hash,.post-labels a:hover b { color: #fff; }
.post-labels .hash { color: #e04040; margin-right: 2px; }

.post-tags { margin: 0 0 14px; }
.post-tags a { display: inline-block; background-color: var(--pill-bg); color: var(--title-color); font-size: 12px; line-height: 22px; padding: 0 10px; margin: 0 6px 6px 0; border-radius: 0; transition: all .17s ease; }
.post-tags a:hover { background-color: var(--main-color); color: #fff; }

/* Uniform share buttons: every network is the same shape — icon + label, brand-coloured, sharp. */
.post-share { position: relative; margin: 4px 0 26px; }
.post-share:before { content: "Share"; display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-text); margin: 0 0 10px; }
.share-links { display: flex; flex-wrap: wrap; gap: 8px; }
.share-links li { width: auto; float: none; margin: 0; list-style: none; }
.share-links li a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; color: #fff; font-weight: 600; font-size: 13px; line-height: 1; box-sizing: border-box; cursor: pointer; transition: opacity .17s ease; }
.share-links li a:before { float: none; display: inline-block; width: auto; background: none; font-size: 15px; line-height: 1; }
.share-links li a:hover { opacity: .85; }
@media screen and (max-width: 440px) {
  .share-links li a { padding: 0 12px; font-size: 0; gap: 0; }   /* icon-only on very small screens */
  .share-links li a:before { font-size: 16px; }
}

.about-author { position: relative; display: block; overflow: hidden; padding: 20px; margin: 0 0 30px; border: 1px solid var(--border-color); }
.about-author .avatar-container { position: relative; float: left; width: 80px; height: 80px; overflow: hidden; margin: 0 15px 0 0; border-radius: 0; }
.about-author .author-avatar { float: left; width: 100%; height: 100%; object-fit: cover; }
.author-name { overflow: hidden; display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; line-height: 14px; margin: 7px 0 3px; }
.author-name span { color: var(--title-color); }
.author-description { display: block; overflow: hidden; font-size: 12px; font-weight: 400; line-height: 1.6em; color: var(--muted-text); }

#related-wrap { overflow: hidden; margin: 0 0 30px; }
ul.related-posts { position: relative; overflow: hidden; margin: 0 -10px; padding: 0; }
.related-posts .related-item { width: 33.33333333%; position: relative; overflow: hidden; float: left; display: block; box-sizing: border-box; padding: 0 10px; margin: 0; }
.related-posts .post-image-link { width: 100%; height: 130px; position: relative; overflow: hidden; display: block; }
.related-posts .post-title { font-size: 13px; font-weight: 600; line-height: 1.5em; display: block; margin: 7px 0 5px; }
.related-posts .post-title a { color: var(--title-color); transition: color .17s; }
.related-posts .related-item:hover .post-title a { color: var(--title-hover); }
.related-posts .post-meta { font-size: 12px; }

ul.post-nav { position: relative; overflow: hidden; display: block; margin: 0 0 30px; }
.post-nav li { display: inline-block; width: 50%; }
.post-nav .post-prev { float: left; text-align: left; box-sizing: border-box; padding: 0 10px; }
.post-nav .post-next { float: right; text-align: right; box-sizing: border-box; padding: 0 10px; }
.post-nav li a { color: var(--title-color); line-height: 1.4em; display: block; overflow: hidden; transition: color .17s; }
.post-nav li:hover a { color: var(--title-hover); }
.post-nav li span { display: block; font-size: 11px; color: #aaa; font-weight: 700; text-transform: uppercase; padding: 0 0 2px; }
.post-nav .post-prev span:before { content: "\f053"; float: left; font-family: FontAwesome; font-size: 10px; font-weight: 400; margin: 0 4px 0 0; }
.post-nav .post-next span:after { content: "\f054"; float: right; font-family: FontAwesome; font-size: 10px; font-weight: 400; margin: 0 0 0 4px; }
.post-nav p { font-size: 12px; font-weight: 400; line-height: 1.4em; margin: 0; }

#blog-pager { float: left; width: 100%; overflow: hidden; clear: both; margin: 0 0 30px; }
.blog-pager { display: flex; align-items: center; }
.blog-pager a,.blog-pager span { float: left; display: block; min-width: 30px; height: 30px; background-color: var(--pill-bg); color: var(--title-color); font-size: 13px; font-weight: 700; line-height: 30px; text-align: center; box-sizing: border-box; padding: 0 10px; margin: 0 5px 0 0; border-radius: 0; transition: all .17s ease; }
.blog-pager .page-info { background: none; font-weight: 400; color: var(--muted-text); }
.blog-pager a:hover { background-color: var(--main-color); color: #fff; }

/* ---------------------------------------------------------------- comments (Disqus embed) */
.comments-title { margin: 0 0 20px; }
#disqus_thread { min-height: 80px; }

/* ---------------------------------------------------------------- post-body typography & shortcodes */
.post-body h1,.post-body h2,.post-body h3,.post-body h4,.post-body h5,.post-body h6 { color: var(--title-color); font-weight: 700; line-height: 1.3em; margin: 30px 0 10px; }
.post-body h1 { font-size: 30px; }
.post-body h2 { font-size: 27px; }
.post-body h3 { font-size: 24px; }
.post-body h4 { font-size: 20px; }
.post-body h5 { font-size: 16px; }
.post-body h6 { font-size: 13px; }
.post-body blockquote { position: relative; background-color: var(--pill-bg); color: var(--body-text-color); font-style: normal; font-weight: 500; padding: 16px 20px 16px 24px; margin: 0 0 20px; border-left: 4px solid var(--main-color); border-radius: 0; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body blockquote:before { position: absolute; right: 14px; top: 8px; content: '\f10e'; font-family: FontAwesome; font-size: 33px; font-style: normal; font-weight: 900; color: var(--main-color); line-height: 1; opacity: .12; }
.post-body ul { padding: 0 0 0 20px; margin-bottom: 30px; }
.post-body ol { padding: 0 0 0 15px; }
.post-body ul li { margin: 5px 0; padding: 0; line-height: 1.5; list-style: none; }
.post-body ul li:before { content: "\f0a9"; font-family: FontAwesome; font-size: 13px; font-weight: 400; margin: 0 5px 0 0; }
.post-body u { text-decoration: underline; }
.post-body a { color: var(--body-link-color); transition: color .17s ease; }
.post-body a:hover { text-decoration: underline; }
.post-body strike { text-decoration: line-through; }
/* Article tables (many migrated from WordPress with no styling, or clashing inline colours
   stripped on import) — display:block+overflow-x lets a wide table scroll instead of
   blowing out the layout on mobile, without needing a wrapper element around every table.
   :where(.post-body) keeps the scoping but contributes zero specificity, so any post that
   ships its own class-scoped table styles (e.g. a one-off "<style>.foo-table th{...}</style>"
   embedded in that post's content) always wins over this generic default instead of being
   fought over by two same-tier class selectors. */
:where(.post-body) table { display: block; overflow-x: auto; max-width: 100%; width: 100%; border-collapse: collapse; margin: 0 0 26px; font-size: 15px; }
:where(.post-body) table caption { text-align: left; font-weight: 700; color: var(--title-color); margin: 0 0 8px; font-size: 14px; }
:where(.post-body) table thead { background: var(--main-color); }
:where(.post-body) table th { color: #fff; font-weight: 700; text-align: left; padding: 10px 14px; white-space: nowrap; }
:where(.post-body) table td { padding: 9px 14px; border-bottom: 1px solid var(--border-color); }
:where(.post-body) table tbody tr:nth-child(even) { background: var(--pill-bg); }
.firstcharacter { float: left; color: var(--main-color); font-size: 75px; font-weight: 700; line-height: 60px; padding-top: 4px; padding-right: 8px; padding-left: 3px; }

.button { background-color: #2c3e50; float: left; padding: 5px 12px; margin: 5px; color: #fff; text-align: center; border: 0; cursor: pointer; border-radius: 0; display: block; text-decoration: none; font-weight: 400; transition: all .3s ease-out !important; }
a.button { color: #fff; }
.button:hover { background-color: var(--main-color); color: #fff; }
.button.small { font-size: 12px; padding: 5px 12px; }
.button.medium { font-size: 16px; padding: 6px 15px; }
.button.large { font-size: 18px; padding: 8px 18px; }
/* download CTA: the main action on file/template posts — prominent, brand-colored, not floated */
a.button.download { float: none; display: inline-flex; align-items: center; height: auto; background-color: var(--main-color); font-size: 15px; font-weight: 600; padding: 11px 22px; margin: 8px 0; border-radius: 0; box-shadow: var(--shadow-sm); }
a.button.download:hover { background-color: var(--main-dark-color); color: #fff; }
.demo:before,.download:before,.buy:before,.visit:before { margin-right: 5px; display: inline-block; font-family: FontAwesome; font-style: normal; font-weight: 400; }
.demo:before { content: "\f06e"; }
.download:before { content: "\f019"; }
.buy:before { content: "\f09d"; }
.visit:before { content: "\f14c"; }

/* ---------------------------------------------------------------- in-content download box */
.download-box { display: flex; align-items: center; gap: 16px; clear: both; margin: 24px 0; padding: 18px 20px; background: var(--pill-bg); border: 1px solid var(--border-color); border-left: 4px solid var(--main-color); }
.download-box-icon { flex: 0 0 44px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--main-color); color: #fff; }
.download-box-icon:before { content: "\f019"; font-family: FontAwesome; font-size: 20px; }
.download-box-text { flex: 1; min-width: 0; }
.download-box-text strong { display: block; font-size: 16px; line-height: 1.3; color: var(--title-color); margin: 0 0 2px; }
.download-box-text span { font-size: 13px; color: var(--muted-text); }
a.button.download.download-box-btn { flex: 0 0 auto; float: none; margin: 0; }
.download-box-btn .download-box-ext { display: inline-block; margin-right: 8px; padding: 2px 6px; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.22); }
.download-box-btn:before { display: none; }
@media screen and (max-width: 560px) {
  .download-box { flex-wrap: wrap; }
  a.button.download.download-box-btn { width: 100%; justify-content: center; }
}
.drive-download-box .download-box-icon:before { content: "\f0c2"; }

pre { font-family: Monaco, "Andale Mono", "Courier New", Courier, monospace; background-color: #10131c; color: #f1f1f1; line-height: 25px; position: relative; padding: 12px 14px; margin: 15px 0 10px; overflow-x: auto; white-space: pre; border-radius: 0; }
pre code { display: block; background: none; padding: 0; }

/* ---------------------------------------------------------------- code-block copy button */
.code-copy-btn { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.12); color: #fff; border: none; border-radius: 0; font-size: 11px; font-weight: 600; padding: 4px 10px; cursor: pointer; opacity: 0; transition: opacity .17s ease, background .17s ease; }
pre:hover .code-copy-btn,.code-copy-btn:focus-visible { opacity: 1; }
.code-copy-btn:hover { background: rgba(255,255,255,.24); }
@media (hover: none) { .code-copy-btn { opacity: 1; } }

/* ---------------------------------------------------------------- content image lightbox */
.post-body img.lightbox-enabled { cursor: zoom-in; }
.lightbox-overlay { display: none; position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.85); padding: 30px; box-sizing: border-box; cursor: zoom-out; }
.lightbox-overlay.open { display: flex; align-items: center; justify-content: center; }
.lightbox-overlay img { max-width: 100%; max-height: 100%; box-shadow: none; }

.alert-message { position: relative; display: block; background-color: var(--pill-bg); padding: 20px; margin: 20px 0; border-radius: 0; color: var(--body-text-color); border: 1px solid var(--border-color); }
.alert-message p { margin: 0 !important; padding: 0; line-height: 22px; font-size: 13px; color: inherit; }
.alert-message:before { font-family: FontAwesome; font-size: 16px; font-weight: 900; display: inline-block; margin: 0 5px 0 0; }
.alert-message.success { background-color: #f1f9f7; border-color: #e0f1e9; color: #1d9d74; }
.alert-message.success:before { content: "\f058"; }
.alert-message.alert { background-color: #daefff; border-color: #8ed2ff; color: #378fff; }
.alert-message.alert:before { content: "\f05a"; }
.alert-message.warning { background-color: #fcf8e3; border-color: #faebcc; color: #8a6d3b; }
.alert-message.warning:before { content: "\f071"; }
.alert-message.error { background-color: #ffd7d2; border-color: #ff9494; color: #f55d5d; }
.alert-message.error:before { content: "\f06a"; }

.post-table table { border-collapse: collapse; width: 100%; }
.post-table th { background-color: #eee; font-weight: bold; }
.post-table th,.post-table td { border: .125em solid #333; line-height: 1.5; padding: .75em; text-align: left; }
@media (max-width: 30em) {
  .post-table thead tr { position: absolute; top: -9999em; left: -9999em; }
  .post-table tr { border: .125em solid #333; border-bottom: 0; }
  .post-table tr + tr { margin-top: 1.5em; }
  .post-table tr,.post-table td { display: block; }
  .post-table td { border: none; border-bottom: .125em solid #333; padding-left: 50%; position: relative; }
  .post-table td:before { content: attr(data-label); display: inline-block; font-weight: bold; position: absolute; left: .75em; }
}

/* ---------------------------------------------------------------- sidebar */
/* Each sidebar widget is a .sidebar block; give them a clear gap + clear their inner floats
   (the old rule targeted a non-existent .widget, so widgets were butting together). */
#sidebar-wrapper > .sidebar { display: block; overflow: hidden; margin: 0 0 30px; }
#sidebar-wrapper > .sidebar:last-child { margin-bottom: 0; }
.sidebar .widget { position: relative; overflow: hidden; background-color: var(--card-bg); box-sizing: border-box; padding: 0; margin: 0 0 30px; }
.sidebar .widget-title { position: relative; float: left; width: 100%; height: 28px; background-color: var(--headline-bg); display: block; margin: 0 0 20px; }
.sidebar .widget-title > h3 { display: block; font-size: 12px; color: var(--headline-color); font-weight: 600; line-height: 28px; text-transform: uppercase; text-align: center; padding: 0 15px; margin: 0; }
.sidebar .widget-content { float: left; width: 100%; margin: 0; }
.list-label li { position: relative; display: block; padding: 7px 0; border-top: 1px dotted var(--border-color); }
.list-label li:first-child { padding-top: 0; border-top: 0; }
.list-label li a { display: block; color: var(--title-color); font-size: 12px; font-weight: 400; text-transform: capitalize; transition: color .17s; }
.list-label li a:before { content: "\f054"; float: left; color: var(--title-color); font-weight: 400; font-family: FontAwesome; font-size: 6px; margin: 5px 3px 0 0; }
.list-label li a:hover { color: var(--title-hover); }
.list-label .label-count { position: relative; float: right; width: 16px; height: 16px; background-color: var(--main-color); color: #fff; font-size: 11px; font-weight: 400; text-align: center; line-height: 16px; border-radius: 0; }
.cloud-label li { position: relative; float: left; margin: 0 5px 5px 0; }
.cloud-label li a { display: block; height: 26px; background-color: var(--pill-bg); color: var(--title-color); font-size: 12px; line-height: 26px; font-weight: 400; padding: 0 10px; border-radius: 0; transition: all .17s ease; }
.cloud-label li a:hover { color: #fff; background-color: var(--main-color); }

.FollowByEmail .widget-content { position: relative; overflow: hidden; background-color: var(--main-dark-color); text-align: center; font-weight: 400; box-sizing: border-box; padding: 20px; border-radius: 0; }
.FollowByEmail .widget-content > h3 { font-size: 18px; color: var(--headline-color); font-weight: 600; text-transform: uppercase; margin: 0 0 13px; }
.FollowByEmail .before-text { font-size: 13px; line-height: 1.5em; margin: 0 0 15px; display: block; padding: 0 10px; overflow: hidden; color: #ccc; }
.FollowByEmail .follow-by-email-address { width: 100%; height: 32px; color: var(--title-color); font-size: 11px; font-family: inherit; padding: 0 10px; margin: 0 0 10px; box-sizing: border-box; border: 1px solid #f0f0f0; border-radius: 0; }
.FollowByEmail .follow-by-email-submit { width: 100%; height: 32px; font-family: inherit; font-size: 11px; color: #fff; background-color: var(--main-color); text-transform: uppercase; text-align: center; font-weight: 600; cursor: pointer; margin: 0; border: 0; border-radius: 0; transition: opacity .17s ease; }
.FollowByEmail .follow-by-email-submit:hover { opacity: .85; }

.PopularPosts .post { overflow: hidden; margin: 20px 0 0; }
.PopularPosts .post:first-child { padding: 0; margin: 0; border: 0; }
.PopularPosts .post-image-link { position: relative; width: 80px; height: 60px; float: left; overflow: hidden; display: block; margin: 0 12px 0 0; }
.PopularPosts .post-info { overflow: hidden; }
.PopularPosts .post-title { font-size: 13px; font-weight: 600; line-height: 1.5em; margin: 0 0 3px; }
.PopularPosts .post-title a { display: block; color: var(--title-color); transition: color .17s; }
.PopularPosts .post:hover .post-title a { color: var(--title-hover); }
.PopularPosts .post-meta { font-size: 12px; }

.FeaturedPost .post-image-link { display: block; position: relative; width: 100%; height: 180px; overflow: hidden; margin: 0 0 10px; }
.FeaturedPost .post-title { font-size: 18px; overflow: hidden; font-weight: 700; line-height: 1.5em; margin: 0 0 7px; }
.FeaturedPost .post-title a { color: var(--title-color); display: block; transition: color .17s ease; }
.FeaturedPost .post-title a:hover { color: var(--title-hover); }

.social-counter { margin: 10px -5px 0; }
.social-counter li { float: left; width: 16.66%; box-sizing: border-box; padding: 0 5px; }
.social-counter li a { display: block; height: 38px; font-size: 16px; color: #fff; text-align: center; line-height: 38px; border-radius: 0; transition: opacity .17s; }
.social-counter li a:hover { opacity: .8; }

/* ---------------------------------------------------------------- footer */
/* Footer-top ad band: sits on the light site background, above the dark footer. */
.footer-top-ad { width: 100%; margin: 10px 0 30px; text-align: center; box-sizing: border-box; padding: 0 20px; }
.footer-top-ad .container { margin: 0 auto; }
#footer-wrapper { background-color: var(--main-dark-color); }
#footer-wrapper .container { position: relative; overflow: hidden; margin: 0 auto; padding: 25px 0; }
.footer-widgets-wrap { position: relative; display: flex; margin: 0 -15px; flex-wrap: wrap; }
#footer-wrapper .footer { display: inline-block; float: left; width: 33.33333333%; box-sizing: border-box; padding: 0 15px; }
.footer .widget-title { position: relative; float: left; width: 100%; height: 28px; background-color: var(--main-color); display: block; margin: 0 0 20px; }
.footer .widget-title > h3 { display: block; font-size: 12px; color: var(--footer-color); font-weight: 600; line-height: 28px; text-transform: uppercase; text-align: center; padding: 0 15px; margin: 0; }
.footer .widget-content { float: left; width: 100%; margin: 0; }
.footer-logo { display: block; margin: 0 0 14px; }
.footer-logo img { display: block; max-width: 150px; max-height: 47px; }
.footer-logo-caption { display: block; color: #aaa; font-size: 12px; margin: 0 0 14px; }
.footer p { color: #aaa; font-size: 13px; line-height: 1.6em; margin: 0 0 14px; }
.footer .post-image-link { background-color: rgba(255,255,255,.05); }
.footer .custom-widget .post-title a,.footer .PopularPosts .post-title a { color: var(--footer-color); }
.footer .custom-widget .post-title a:hover,.footer .PopularPosts .post-title a:hover { color: var(--title-hover); }
.footer .cloud-label li a { background-color: rgba(255,255,255,.05); color: var(--footer-color); }
.footer .cloud-label li a:hover { background-color: var(--main-color); color: #fff; }
.footer .list-label li { border-color: rgba(255,255,255,.05); }
.footer .list-label li a,.footer .list-label li a:before { color: var(--footer-color); }
.footer .list-label li a:hover { color: var(--title-hover); }
.footer .list-label .label-count { background-color: rgba(255,255,255,.05); color: var(--footer-color); }
.footer-social { margin: 0 0 14px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 2px 2px 2px 0; color: #fff; font-size: 16px; }

#sub-footer-wrapper { background-color: rgba(0,0,0,.3); color: var(--footer-color); display: block; padding: 0; width: 100%; overflow: hidden; }
#sub-footer-wrapper .container { overflow: hidden; margin: 0 auto; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
#menu-footer { float: right; position: relative; display: block; }
#menu-footer ul { display: flex; flex-wrap: wrap; }
#menu-footer ul li { float: left; display: inline-block; height: 34px; padding: 0; margin: 0; }
#menu-footer ul li a { font-size: 12px; font-weight: 400; display: block; color: var(--footer-color); line-height: 34px; padding: 0 10px; margin: 0 0 0 5px; transition: color .17s ease; }
#menu-footer ul li a:hover { color: var(--title-hover); }
#sub-footer-wrapper .copyright-area { font-size: 12px; float: left; height: 34px; line-height: 34px; font-weight: 400; }
#sub-footer-wrapper .copyright-area a { color: var(--main-color); transition: color .17s; }

.hidden-widgets { display: none; visibility: hidden; }
.empty-note { text-align: center; color: var(--muted-text); padding: 60px 0; }

/* ---------------------------------------------------------------- sticky mobile ad */
.sticky-ads { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1005; background: var(--card-bg); border-top: 1px solid var(--border-color); padding: 6px 34px 6px 6px; }
.sticky-ads-close { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; line-height: 20px; background: rgba(0,0,0,.06); color: var(--title-color); font-size: 16px; border: none; border-radius: 0; cursor: pointer; }
.sticky-ads-content { text-align: center; }
@media screen and (max-width: 680px) {
  .sticky-ads { display: block; }
}

/* ---------------------------------------------------------------- back to top */
.back-top { display: none; z-index: 1010; width: 32px; height: 32px; position: fixed; bottom: 25px; right: 25px; cursor: pointer; overflow: hidden; font-size: 13px; color: #fff; text-align: center; line-height: 32px; border-radius: 0; border: none; }
.back-top.show { display: block; }
.back-top:before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--main-color); opacity: .8; transition: opacity .17s ease; }
.back-top:after { content: '\f077'; position: relative; font-family: FontAwesome; font-weight: 400; }
.back-top:hover:before { opacity: 1; }

/* ---------------------------------------------------------------- cookie consent banner */
.K2C { display: none; position: fixed; left: 0; bottom: 0; z-index: 1000; max-width: 620px; background: #fff; color: #444; padding: 14px 18px; align-items: center; flex-wrap: wrap; gap: 10px 16px; border: 1px solid var(--border-color); }
.K2C.show { display: flex; }
.K2C-Main p { font-size: 13px; color: #444; margin: 0; }
.C-button { background: #fff; color: #333; border: 1px solid #ccc; font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 0; cursor: pointer; }
.C-button.outl { background: none; border: none; color: var(--body-link-color); text-decoration: underline; padding: 0; display: inline-block; line-height: 1; }
.C-button:hover { background: #f2f2f2; }

/* ---------------------------------------------------------------- PDF popup */
#overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.7); z-index: 999; }
#popup { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #fff; z-index: 1000; }
#pdfEmbed { width: 100%; height: 100%; border: none; }
#popup button { position: absolute; top: 10px; right: 10px; padding: 10px; background: #333; color: #fff; border: none; cursor: pointer; }

/* ---------------------------------------------------------------- 404 */
.errorWrap { color: var(--title-color); text-align: center; padding: 80px 0 100px; }
.errorWrap h3 { font-size: 160px; line-height: 1; margin: 0 0 30px; }
.errorWrap h4 { font-size: 25px; margin: 0 0 20px; }
.errorWrap p { margin: 0 0 10px; }
.errorWrap a { display: block; color: var(--main-color); padding: 10px 0 0; }

/* ---------------------------------------------------------------- responsive */
@media screen and (max-width: 1100px) {
  #outer-wrapper { max-width: 100%; }
  .row { width: 100%; }
  #header-wrap { padding: 0 20px; }
  .header-logo { max-width: 30%; }
  .header-ads { max-width: 70%; }
  #content-wrapper { position: relative; box-sizing: border-box; padding: 0 20px; margin: 30px 0 0; }
  #footer-wrapper .container { box-sizing: border-box; padding: 25px 20px; }
  #sub-footer-wrapper .container { box-sizing: border-box; padding: 10px 20px; }
}
@media screen and (max-width: 980px) {
  #header-wrap { padding: 0; border: 0; z-index: 100; }
  .header-header { height: auto; width: 100%; box-sizing: border-box; padding: 0 20px; }
  .header-ads { width: 100%; max-width: 100%; box-sizing: border-box; padding: 0; }
  .header-ads .widget-content { position: relative; padding: 20px 0; margin: 0 auto; }
  .mobile-header { display: block; }
  #main-menu,.header-logo,.social-toggle,#social-menu { display: none; }
  .slide-menu-toggle { display: block; }
  #main-menu {
    display: block; position: absolute; top: 42px; left: 0; width: 100%; background-color: var(--main-dark-color);
    box-sizing: border-box; padding: 20px; border-top: 1px solid rgba(255,255,255,.08);
    visibility: hidden; opacity: 0; transform-origin: 0 0; transform: scaleY(0); transition: all .17s ease; z-index: 95;
    height: auto; text-align: left; max-height: calc(100vh - 42px); overflow-y: auto;
  }
  .nav-active #main-menu { visibility: visible; opacity: 1; transform: scaleY(1); }
  /* Direct-child combinators only, same reason as the desktop rules above (line 212):
     a descendant selector here matches the nested .dropdown-menu <ul>/<li>/<a> too and,
     carrying #main-menu's ID specificity, permanently overrides display:none on submenus. */
  #main-menu > ul { display: block; }
  #main-menu > ul > li { display: block; float: none; width: 100%; font-size: 13px; font-weight: 700; text-transform: uppercase; line-height: 38px; border-top: 1px solid rgba(255,255,255,.05); }
  #main-menu > ul > li:first-child { border-top: 0; }
  #main-menu > ul > li > a { display: block; width: 100%; color: #fff; padding: 0; margin: 0; line-height: 38px; }
  #main-menu > ul > li:hover > a,#main-menu > ul > li.active > a { background: none; color: var(--main-color); }
  /* dropdown/mega panels become inline accordion sections inside the off-canvas menu, not floating panels */
  #main-menu ul > li.has-children { position: relative; }
  #main-menu ul > li.has-children > a { padding-right: 44px; }
  .menu-caret { position: absolute; top: 0; right: 0; width: 44px; height: 38px; }
  .menu-caret:before { border-top-color: #fff; }
  .menu-caret[aria-expanded="true"]:before { border-top: 0; border-bottom: 4px solid #fff; }
  .dropdown-menu,.mega-menu { display: none; position: static; left: auto; top: auto; transform: none; max-width: none; background: none; border: 0; }
  #main-menu ul > li.has-children.menu-open > .dropdown-menu,
  #main-menu ul > li.has-children.menu-open > .mega-menu { display: block; }
  .dropdown-menu { padding: 0 0 10px; }
  .dropdown-menu li a { color: #fff; padding: 8px 0 8px 16px; font-size: 13px; text-transform: none; }
  .dropdown-menu li a:hover,.dropdown-menu li.active a { background: none; color: var(--main-color); }
  .mega-menu-inner { display: block; padding: 0 0 10px; }
  .mega-col { border-right: 0; padding: 0 0 0 16px; }
  .mega-link { padding: 8px 0; }
  .mega-label { color: #fff; }
  .mega-desc { color: rgba(255,255,255,.6); }
  #content-wrapper > .container { margin: 0; flex-direction: column; gap: 0; }
  #main-wrapper,#sidebar-wrapper { width: 100%; padding: 0; }
  #sidebar-wrapper { flex-basis: auto; position: static; top: auto; margin: 30px 0 0; }
}
@media screen and (max-width: 880px) {
  .footer-widgets-wrap { display: block; }
  #footer-wrapper .footer { width: 100%; margin-right: 0; }
  #footer-wrapper .footer + .footer { margin-top: 25px; }
}
@media screen and (max-width: 680px) {
  #menu-footer,#sub-footer-wrapper .copyright-area { width: 100%; height: auto; line-height: inherit; text-align: center; }
  #menu-footer { margin: 10px 0 0; }
  #menu-footer ul { justify-content: center; }
  #sub-footer-wrapper .copyright-area { margin: 10px 0; }
  #menu-footer ul li { float: none; height: auto; }
  #menu-footer ul li a { line-height: inherit; margin: 0 3px 5px; }
}
@media screen and (max-width: 560px) {
  .index-post { flex-direction: column; gap: 0; }
  .index-post .post-image-wrap { flex: 0 0 auto; width: 100%; height: 200px; margin: 0 0 14px; }
  .index-post .post-info { width: 100%; }
  ul.related-posts { margin: 0; }
  .related-posts .related-item { width: 100%; padding: 0; margin: 20px 0 0; }
  .related-posts .item-0 { margin: 0; }
  .related-posts .post-image-link { width: 80px; height: 60px; float: left; margin: 0 12px 0 0; }
  .related-posts .post-title { font-size: 13px; overflow: hidden; margin: 0 0 5px; }
}
@media screen and (max-width: 440px) {
  .queryMessage { text-align: center; }
  .queryMessage a.show-more { width: 100%; margin: 10px 0 0; }
  .item-post h1.post-title { font-size: 24px; }
  .about-author { padding: 15px; }
  .about-author .avatar-container { width: 60px; height: 60px; }
  .errorWrap { padding: 70px 0 100px; }
  .errorWrap h3 { font-size: 120px; }
}

/* ---------------------------------------------- homepage layout sections */
/* Each homepage section stacks in the float-based main column; clear between them. */
.home-section { clear: both; float: left; width: 100%; margin: 0 0 30px; }
.home-section > .index-post-wrap { margin-bottom: 0; }
/* "View all →" sits at the right of a category row's headline bar. */
.title-wrap .section-view-all { position: absolute; right: 12px; top: 0; line-height: 28px; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--headline-color); text-decoration: none; opacity: .85; }
.title-wrap .section-view-all:hover { opacity: 1; }

/* Newspaper heading style (opt-in via Settings → Appearance): the section title sits in a
   filled accent box on top of a 2px rule spanning the column — classic news-site section header. */
body.heading-newspaper .title-wrap,
body.heading-newspaper .sidebar .widget-title,
body.heading-newspaper .footer .widget-title { height: auto; background: none; border-bottom: 2px solid var(--main-color); }
body.heading-newspaper .title-wrap > h3,
body.heading-newspaper .sidebar .widget-title > h3,
body.heading-newspaper .footer .widget-title > h3 { display: inline-block; background: var(--main-color); color: #fff; text-align: left; line-height: 1; padding: 8px 12px; }
body.heading-newspaper .title-wrap .section-view-all { color: var(--muted-text); top: auto; bottom: 7px; }
.home-html { font-size: 15px; line-height: 1.7; }

/* Numbered pager (‹ Prev 1 2 … 8 Next ›) — builds on .blog-pager pills above. */
.blog-pager.numbered { flex-wrap: wrap; gap: 0; }
.blog-pager .pager-num.is-current { background-color: var(--main-color); color: #fff; cursor: default; }
.blog-pager .pager-gap { background: none; min-width: 20px; padding: 0 4px; color: var(--muted-text); font-weight: 400; pointer-events: none; }
.blog-pager .is-disabled { opacity: .4; pointer-events: none; }
@media screen and (max-width: 480px) { .blog-pager .pager-label { display: none; } }

/* Load-more pager variant — one centered flat button instead of numbered pills. */
.blog-pager.loadmore { justify-content: center; }
.blog-pager .load-more-btn { float: none; height: auto; min-width: 160px; background-color: var(--main-color); color: #fff; text-transform: uppercase; letter-spacing: .5px; line-height: 1; padding: 13px 26px; margin: 0; }
.blog-pager .load-more-btn:hover { background-color: var(--main-dark-color, var(--main-color)); color: #fff; }
.blog-pager .load-more-btn.is-loading { opacity: .6; pointer-events: none; }

/* Featured lead: one big story + a small grid beside it. */
.home-featured-lead .lead-wrap { display: flex; gap: 24px; clear: both; }
.home-featured-lead .lead-main { flex: 1 1 58%; min-width: 0; }
.home-featured-lead .lead-main .hero-post { margin: 0; height: 100%; }
.home-featured-lead .lead-side { flex: 1 1 42%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.mini-post { background: var(--card-bg); border: 1px solid var(--border-color); }
.mini-post .mini-image { display: block; aspect-ratio: 16/10; overflow: hidden; }
.mini-post .mini-image img,.mini-post .mini-image .post-thumb,.mini-post .mini-image .img-ph { width: 100%; height: 100%; object-fit: cover; }
.mini-post .mini-info { padding: 10px 12px 12px; }
.mini-post .mini-title { font-size: 14px; line-height: 1.35; margin: 6px 0 4px; }
.mini-post .mini-title a { color: var(--title-color); }
.mini-post .mini-title a:hover { color: var(--title-hover); }
.mini-post .post-meta { font-size: 11px; }
@media screen and (max-width: 900px) { .home-featured-lead .lead-wrap { flex-direction: column; } .home-featured-lead .lead-side { grid-template-columns: 1fr 1fr; } }
@media screen and (max-width: 480px) { .home-featured-lead .lead-side { grid-template-columns: 1fr; } }

/* Trending strip: horizontal band of ranked newest posts. */
.trending-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; clear: both; }
.trend-card { flex: 0 0 210px; scroll-snap-align: start; position: relative; background: var(--card-bg); border: 1px solid var(--border-color); display: flex; flex-direction: column; }
.trend-card .trend-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.trend-card .trend-thumb img,.trend-card .trend-thumb .post-thumb,.trend-card .trend-thumb .img-ph { width: 100%; height: 100%; object-fit: cover; }
.trend-card .trend-rank { position: absolute; top: 0; left: 0; z-index: 1; min-width: 26px; height: 26px; line-height: 26px; text-align: center; background: var(--main-color); color: #fff; font-weight: 800; font-size: 13px; }
.trend-card .trend-title { display: block; padding: 10px 12px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--title-color); }
.trend-card:hover .trend-title { color: var(--title-hover); }

/* Headline list: dense, text-first "More stories". */
.headline-list { list-style: none; margin: 0; padding: 0; counter-reset: hl; }
.home-headline-list.is-numbered .headline-list { counter-reset: hl; }
.headline-list .hl-item { padding: 11px 0; border-bottom: 1px solid var(--border-color); }
.headline-list .hl-item:last-child { border-bottom: 0; }
.home-headline-list.is-numbered .hl-item { position: relative; padding-left: 34px; counter-increment: hl; }
.home-headline-list.is-numbered .hl-item::before { content: counter(hl); position: absolute; left: 0; top: 11px; min-width: 24px; height: 22px; line-height: 22px; text-align: center; background: var(--pill-bg); color: var(--main-color); font-weight: 800; font-size: 12px; }
.headline-list .hl-title { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--title-color); }
.headline-list .hl-link:hover .hl-title { color: var(--title-hover); }
.headline-list .hl-meta { margin-top: 3px; font-size: 11px; color: var(--muted-text); }
.headline-list .hl-cat { color: var(--main-color); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-right: 8px; }

/* Multi-category grid: several category columns side by side. */
.home-multi-category { display: grid; gap: 24px; }
.home-multi-category.mc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.home-multi-category.mc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.home-multi-category.mc-cols-4 { grid-template-columns: repeat(4, 1fr); }
/* clear: the floated .title-wrap above would otherwise squeeze the first flex <li> to zero width */
.mc-col .mc-list { list-style: none; margin: 0; padding: 0; clear: both; }
.mc-col .mc-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-color); }
.mc-col .mc-list li:last-child { border-bottom: 0; }
.mc-col .mc-thumb { flex: 0 0 64px; height: 48px; overflow: hidden; }
.mc-col .mc-thumb img,.mc-col .mc-thumb .post-thumb,.mc-col .mc-thumb .img-ph { width: 100%; height: 100%; object-fit: cover; }
.mc-col .mc-text { flex: 1; min-width: 0; }
.mc-col .mc-title { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--title-color); }
.mc-col .mc-title:hover { color: var(--title-hover); }
.mc-col .mc-date { font-size: 11px; color: var(--muted-text); }

/* ---------- Tag cloud (home 'tag_cloud' section) ---------- */
/* clear: the floated .title-wrap above would otherwise squeeze this to zero width */
.tag-cloud { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; font-size: 13px; background: var(--pill-bg); color: var(--body-text-color); border: 1px solid var(--border-color); }
.tag-cloud-pill:hover { border-color: var(--main-color); color: var(--main-color); }
.tag-cloud-count { font-size: 11px; color: var(--muted-text); }

/* ---------- Author spotlight (home 'author_spotlight' section) ---------- */
.home-author-spotlight { clear: both; padding: 20px; background: var(--card-bg); border: 1px solid var(--border-color); }
.spotlight-head { display: flex; align-items: center; gap: 16px; }
.spotlight-head .author-avatar { flex: 0 0 64px; width: 64px; height: 64px; object-fit: cover; }
.spotlight-name { margin: 0 0 4px; font-size: 17px; }
.spotlight-name a { color: var(--title-color); }
.spotlight-name a:hover { color: var(--main-color); }
.spotlight-bio { margin: 0; font-size: 13px; color: var(--muted-text); line-height: 1.5; }
.spotlight-posts { clear: both; list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 8px; }
.spotlight-posts a { font-size: 14px; font-weight: 600; color: var(--title-color); }
.spotlight-posts a:hover { color: var(--main-color); }

/* ---------- Series showcase (home 'series_showcase' section) ---------- */
/* clear: the floated .title-wrap above would otherwise squeeze this to zero width */
.series-showcase-list { clear: both; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.series-showcase-item { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.series-showcase-item:last-child { border-bottom: 0; }
.series-showcase-num { flex: 0 0 auto; font-weight: 700; color: var(--main-color); font-size: 13px; }
.series-showcase-item a { font-size: 14px; color: var(--title-color); }
.series-showcase-item a:hover { color: var(--main-color); }

/* ---------- Stats counter (home 'stats_counter' section) ---------- */
.home-stats-grid { clear: both; display: flex; flex-wrap: wrap; gap: 20px; }
.stat-item { flex: 1 1 120px; text-align: center; padding: 20px 12px; background: var(--card-bg); border: 1px solid var(--border-color); }
.stat-num { display: block; font-size: 28px; font-weight: 700; color: var(--main-color); font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-text); }

/* ---------- Search bar (home 'search_bar' section) ---------- */
.home-search-form { clear: both; display: flex; gap: 10px; max-width: 480px; }
.home-search-input { flex: 1; padding: 12px 14px; font-size: 14px; border: 1px solid var(--border-color); background: var(--card-bg); color: var(--body-text-color); }
.btn-search-submit { padding: 12px 20px; font-size: 14px; font-weight: 600; background: var(--main-color); color: #fff; border: 0; cursor: pointer; }
.btn-search-submit:hover { background: var(--main-dark-color); }

/* ---------- Two-column row (home 'row' section) ---------- */
/* .row-col children are grid items, so each independently contains its own floated content
   (title-wrap etc.) without needing its own clearfix — grid items form their own formatting context. */
.home-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media screen and (max-width: 700px) { .home-row-2col { grid-template-columns: 1fr; } }

/* ---------- Featured slider (home 'slider' section) ---------- */
.home-slider-section { margin: 0 0 30px; }
.home-slider { position: relative; overflow: hidden; aspect-ratio: 21 / 9; background: var(--main-dark-color); }
.slider-track { position: absolute; inset: 0; }
.home-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease; }
.home-slide.is-active { opacity: 1; visibility: visible; }
.slide-media { position: absolute; inset: 0; display: block; }
.slide-media img,.slide-media .post-thumb,.slide-media .img-ph { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.2) 55%, rgba(0,0,0,0) 100%); }
.slide-info { padding: 26px 30px; max-width: 760px; }
.slide-badges { margin: 0 0 10px; }
.slide-title { margin: 0 0 8px; font-size: 28px; line-height: 1.25; font-weight: 800; }
.slide-title a { color: #fff; }
.slide-title a:hover { color: #fff; text-decoration: underline; }
.slide-meta { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.85); font-size: 13px; }
.slide-meta .post-date,.slide-meta .post-read-time { color: rgba(255,255,255,.85); }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; font-size: 26px; line-height: 40px; text-align: center; cursor: pointer; transition: background .17s; }
.slider-arrow:hover { background: rgba(0,0,0,.72); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-dots { position: absolute; bottom: 14px; right: 20px; z-index: 3; display: flex; gap: 8px; }
.slider-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background .17s, transform .17s; }
.slider-dot.is-active { background: #fff; transform: scale(1.25); }
@media screen and (max-width: 640px) {
  .home-slider { aspect-ratio: 16 / 10; }
  .slide-info { padding: 16px 18px 22px; }
  .slide-title { font-size: 19px; }
  .slider-arrow { width: 34px; height: 34px; font-size: 20px; line-height: 32px; }
  .slider-dots { bottom: 10px; right: 14px; }
}

/* ---------- News ticker (auto-scrolling recent posts) ---------- */
.news-ticker { background: var(--card-bg); border-bottom: 1px solid var(--border-color); overflow: hidden; }
.ticker-inner { display: flex; align-items: stretch; height: 38px; }
.ticker-label { flex: 0 0 auto; display: flex; align-items: center; gap: 7px; background: none; color: var(--main-color); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 0 14px 0 0; white-space: nowrap; }
.ticker-dot { display: inline-block; width: 5px; height: 5px; background: var(--main-color); flex-shrink: 0; animation: ticker-blink 1.4s ease-in-out infinite; }
@keyframes ticker-blink { 0%,100% { opacity: 1; } 50% { opacity: .15; } }
.ticker-divider { flex: 0 0 1px; background: var(--border-color); }
.ticker-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; align-items: center; padding: 0 4px; }
.ticker-track { display: inline-flex; align-items: center; white-space: nowrap; will-change: transform; animation: ticker-scroll 50s linear infinite; }
.ticker-viewport:hover .ticker-track { animation-play-state: paused; }
.ticker-item { position: relative; color: var(--title-color); font-size: 13px; font-weight: 500; padding: 0 22px; }
.ticker-item::after { content: "|"; position: absolute; right: 0; color: var(--border-strong); font-weight: 300; pointer-events: none; }
.ticker-item:hover { color: var(--main-color); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
@media screen and (max-width: 560px) { .ticker-inner { height: 34px; } .ticker-item { font-size: 12px; padding: 0 15px; } }


/* ---------- Tabbed sidebar widget ---------- */
.sidebar-tabs .tabs-nav { display: flex; margin: 0 0 14px; border-bottom: 2px solid var(--border-color); }
.sidebar-tabs .tab-btn { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -2px; padding: 9px 6px; font: inherit; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted-text); cursor: pointer; transition: color .17s, border-color .17s; }
.sidebar-tabs .tab-btn:hover { color: var(--title-color); }
.sidebar-tabs .tab-btn.is-active { color: var(--main-color); border-bottom-color: var(--main-color); }
.sidebar-tabs .tab-panel { display: none; }
.sidebar-tabs .tab-panel.is-active { display: block; }
@media screen and (max-width: 900px) { .home-multi-category.mc-cols-3,.home-multi-category.mc-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media screen and (max-width: 560px) { .home-multi-category { grid-template-columns: 1fr !important; } }

/* ---------------------------------------------- comments & public forms */
.form-hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { display: none; margin: 12px 0 0; padding: 10px 14px; border-radius: 4px; font-size: 14px; }
.form-note.is-visible { display: block; }
.form-note-ok { background: rgba(38,166,91,.12); color: #1e7e4b; border: 1px solid rgba(38,166,91,.4); }
.form-note-err { background: rgba(214,48,49,.1); color: #c0392b; border: 1px solid rgba(214,48,49,.4); }

.site-form { margin: 16px 0; }
.site-form label { display: block; font-size: 13px; font-weight: 600; color: var(--title-color); margin: 0 0 12px; }
.site-form label small { font-weight: 400; color: var(--muted-text); }
.site-form input[type=text],.site-form input[type=email],.site-form textarea {
  width: 100%; margin-top: 5px; padding: 10px 12px; font: inherit; font-size: 14px;
  background: var(--card-bg); color: var(--body-text-color); border: 1px solid var(--border-strong); border-radius: 4px; box-sizing: border-box; }
.site-form input:focus,.site-form textarea:focus { outline: 2px solid var(--main-color); outline-offset: -1px; border-color: var(--main-color); }
.site-form .cf-row { display: flex; gap: 14px; }
.site-form .cf-row .label,.site-form .cf-row label { flex: 1; }
@media screen and (max-width: 560px) { .site-form .cf-row { flex-direction: column; gap: 0; } }
.lead-form { display: flex; gap: 10px; align-items: center; margin: 0; flex-wrap: wrap; }
.lead-form input[type=email] { flex: 1; min-width: 200px; margin: 0; }
.lead-form .button { margin: 0; white-space: nowrap; }

.native-comments { clear: both; margin-top: 30px; }
/* clear: the floated .title-wrap (comments-title) above would otherwise squeeze this to zero width */
.comment-list,.no-comments { clear: both; }
.comment-list,.comment-children { list-style: none; margin: 0; padding: 0; }
.comment-list { margin-bottom: 24px; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.comment-children { margin: 10px 0 0 26px; padding-left: 16px; border-left: 2px solid var(--border-color); }
.comment-children .comment:last-child { border-bottom: 0; padding-bottom: 0; }
.comment-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.comment-author { font-weight: 700; color: var(--title-color); }
.comment-date { font-size: 12px; color: var(--muted-text); }
.comment-body { font-size: 15px; line-height: 1.6; color: var(--body-text-color); }
.no-comments { color: var(--muted-text); }
.comment-form { margin-top: 20px; }
.comment-form h4 { font-size: 16px; margin: 0 0 12px; color: var(--title-color); }
.comment-helpful { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; background: var(--pill-bg); color: var(--muted-text); border: 1px solid var(--border-color); transition: color .15s ease, border-color .15s ease; }
.comment-helpful:hover { color: var(--main-color); border-color: var(--main-color); }
.comment-helpful.is-voted { color: var(--main-color); border-color: var(--main-color); cursor: default; }
.comment-helpful-count { font-weight: 700; }

/* ---------------------------------------------- author archive & reactions */
.author-archive-head { display: flex; align-items: center; gap: 16px; margin: 0 0 24px; padding: 16px; background: var(--card-bg); border: 1px solid var(--border-color); }
.author-archive-head .avatar-container { flex: 0 0 64px; }
.author-archive-head .author-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; }
.author-archive-head .author-archive-bio { margin: 0; font-size: 14px; line-height: 1.6; color: var(--body-text-color); }
.post-meta a.post-author { color: inherit; }
.post-meta a.post-author:hover { color: var(--main-color); }

.post-reactions { clear: both; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 24px 0; padding: 14px 16px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 6px; }
.post-reactions .reactions-label { font-weight: 600; color: var(--title-color); margin-right: 4px; }
.reaction { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font: inherit; font-size: 14px; line-height: 1; cursor: pointer; background: var(--pill-bg); color: var(--body-text-color); border: 1px solid var(--border-color); border-radius: 999px; transition: transform .1s ease, background .15s ease, border-color .15s ease; }
.reaction:hover { transform: translateY(-1px); border-color: var(--main-color); }
.reaction .reaction-emoji { font-size: 17px; }
.reaction .reaction-count { font-weight: 700; min-width: 8px; }
.reaction.is-mine { background: var(--main-color); color: #fff; border-color: var(--main-color); }
.post-reactions.reacted .reaction { cursor: default; }
.post-reactions.reacted .reaction:not(.is-mine):hover { transform: none; border-color: var(--border-color); }

/* ---------------------------------------------------------------- callout shortcodes */
.callout { border-left: 4px solid var(--border-strong); background: var(--card-bg); padding: 14px 18px; margin: 24px 0; }
.callout-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; }
.callout-note { border-color: #6c757d; }
.callout-note .callout-label { color: #6c757d; }
.callout-tip  { border-color: #28a745; }
.callout-tip  .callout-label { color: #28a745; }
.callout-warning { border-color: #fd7e14; }
.callout-warning .callout-label { color: #fd7e14; }
.callout-info { border-color: var(--main-color); }
.callout-info .callout-label { color: var(--main-color); }

/* ---------------------------------------------------------------- series box */
.series-box { border: 2px solid var(--main-color); margin: 0 0 28px; }
.series-box-header { background: var(--main-color); color: #fff; padding: 10px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.series-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; opacity: .8; }
.series-name { font-size: 15px; font-weight: 700; flex: 1; }
.series-pos { font-size: 12px; opacity: .85; white-space: nowrap; }
.series-list { list-style: none; margin: 0; padding: 0; counter-reset: series-counter; }
.series-list li { counter-increment: series-counter; border-bottom: 1px solid var(--border-color); padding: 9px 16px 9px 44px; font-size: 13px; position: relative; }
.series-list li:last-child { border-bottom: 0; }
.series-list li::before { content: counter(series-counter); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; background: var(--border-color); color: var(--text-color); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.series-list li.series-current { background: var(--card-bg); font-weight: 600; }
.series-list li.series-current::before { background: var(--main-color); color: #fff; }
.series-list a { color: var(--title-color); }
.series-list a:hover { color: var(--main-color); }

/* ---------------------------------------------------------------- shortcode: gallery grid */
.sc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; margin: 20px 0; }
.sc-gallery .gallery-item { display: block; overflow: hidden; }
.sc-gallery img { width: 100%; height: 130px; object-fit: cover; display: block; transition: opacity .2s; }
.sc-gallery .gallery-item:hover img { opacity: .85; }
@media screen and (max-width: 560px) { .sc-gallery { grid-template-columns: repeat(2, 1fr); } .sc-gallery img { height: 100px; } }

/* ---------------------------------------------------------------- shortcode: button */
.sc-btn { display: inline-block; background: var(--main-color); color: #fff; padding: 10px 24px; font-size: 14px; font-weight: 700; text-decoration: none; letter-spacing: .3px; }
.sc-btn:hover { opacity: .88; }
.sc-btn-outline { background: transparent; color: var(--main-color); border: 2px solid var(--main-color); }
.sc-btn-outline:hover { background: var(--main-color); color: #fff; opacity: 1; }

/* ---------------------------------------------------------------- shortcode: youtube */
.sc-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 20px 0; }
.sc-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------------- shortcode: table */
.sc-table-wrap { overflow-x: auto; margin: 20px 0; }
.sc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sc-table th, .sc-table td { padding: 9px 14px; text-align: left; border: 1px solid var(--border-color); }
.sc-table th { background: var(--card-bg); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.sc-table tr:nth-child(even) td { background: var(--card-bg); }

/* ---------------------------------------------------------------- shortcode: pull quote */
.sc-quote { border-left: 4px solid var(--main-color); margin: 24px 0; padding: 14px 20px; font-size: 18px; font-style: italic; color: var(--title-color); line-height: 1.6; }
.sc-quote footer { margin-top: 10px; font-size: 13px; font-style: normal; color: var(--muted); }
.sc-quote footer cite { font-style: normal; font-weight: 600; }

/* ---------------------------------------------------------------- faq shortcode */
.faq-item { border: 1px solid var(--border-color); margin: 18px 0; }
.faq-q { background: var(--card-bg); font-weight: 700; font-size: 15px; padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
.faq-a { padding: 12px 16px; font-size: 14px; line-height: 1.7; }
.faq-a p:last-child { margin: 0; }

/* ---------------------------------------------------------------- homepage CTA banner */
.home-cta-banner { padding: 34px 28px; border: 1px solid var(--border-color); }
.home-cta-banner.cta-align-center { text-align: center; }
.home-cta-banner .cta-heading { font-size: 24px; margin: 0 0 10px; }
.home-cta-banner .cta-text { font-size: 15px; line-height: 1.6; margin: 0 0 18px; opacity: .9; }
.home-cta-banner .cta-button { display: inline-block; padding: 11px 26px; font-size: 14px; font-weight: 700; text-decoration: none; transition: opacity .17s, background .17s; }
.home-cta-banner.cta-accent { background: var(--main-color); border-color: var(--main-color); color: #fff; }
.home-cta-banner.cta-accent .cta-heading { color: #fff; }
.home-cta-banner.cta-accent .cta-button { background: #fff; color: var(--main-color); }
.home-cta-banner.cta-dark { background: #17181c; border-color: #17181c; color: #fff; }
.home-cta-banner.cta-dark .cta-heading { color: #fff; }
.home-cta-banner.cta-dark .cta-button { background: var(--main-color); color: #fff; }
.home-cta-banner.cta-light { background: var(--pill-bg); color: var(--body-text-color); }
.home-cta-banner.cta-light .cta-heading { color: var(--title-color); }
.home-cta-banner.cta-light .cta-button { background: var(--main-color); color: #fff; }
.home-cta-banner .cta-button:hover { opacity: .85; }

/* ---------------------------------------------------------------- homepage spacer / divider */
.home-spacer { display: flex; align-items: center; justify-content: center; }
.home-spacer.spacer-size-small { min-height: 10px; margin-bottom: 14px; }
.home-spacer.spacer-size-medium { min-height: 26px; margin-bottom: 30px; }
.home-spacer.spacer-size-large { min-height: 56px; margin-bottom: 46px; }
.home-spacer .spacer-rule { border: 0; border-top: 1px solid var(--border-color); width: 100%; margin: 0; }
.home-spacer .spacer-dots { color: var(--muted-text); font-size: 18px; letter-spacing: 10px; line-height: 1; }

/* ------------------------------------------------- layout builder "Advanced" utilities */
/* :last-child, not .home-section: hero (article.hero-post), post lists (.index-post-wrap)
   and ad slots don't use the .home-section root class. The wrapper is a BFC (overflow:hidden),
   so the child's bottom margin contributes to its height. */
.home-section-wrap.sec-pad-compact > :last-child { margin-bottom: 10px !important; }
.home-section-wrap.sec-pad-spacious > :last-child { margin-bottom: 60px !important; }
@media screen and (max-width: 700px) { .sec-hide-mobile { display: none !important; } }
@media screen and (min-width: 701px) { .sec-hide-desktop { display: none !important; } }

/* ------------------------------------------------- two-column row width ratios */
.home-row-2col.row-split-66 { grid-template-columns: 2fr 1fr; }
.home-row-2col.row-split-33 { grid-template-columns: 1fr 2fr; }
@media screen and (max-width: 700px) {
  .home-row-2col.row-split-66, .home-row-2col.row-split-33 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------- homepage recent comments */
.rc-list { list-style: none; margin: 0; padding: 0; clear: both; }
.rc-item { padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.rc-item:last-child { border-bottom: 0; }
.rc-head { font-size: 14px; }
.rc-author { font-weight: 700; color: var(--title-color); }
.rc-head a { color: var(--main-color); }
.rc-snippet { margin: 6px 0 4px; font-size: 13px; line-height: 1.6; color: var(--body-text-color); }
.rc-date { font-size: 12px; color: var(--muted-text); }

/* ------------------------------------------------- homepage image banner */
.home-image-banner { text-align: center; }
.home-image-banner img { max-width: 100%; height: auto; display: inline-block; }

/* ---------------------------------------------------------------- recently viewed */
.recently-viewed { margin: 32px 0 0; }
.rv-heading { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 12px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.rv-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.rv-card { flex: 0 0 160px; text-decoration: none; color: inherit; }
.rv-thumb { width: 100%; height: 90px; object-fit: cover; display: block; background: var(--placeholder); }
.rv-thumb-ph { width: 100%; height: 90px; background: var(--placeholder); display: block; }
.rv-title { font-size: 12px; font-weight: 600; line-height: 1.4; margin: 6px 0 0; color: var(--title-color); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-card:hover .rv-title { color: var(--main-color); }
@media screen and (max-width: 560px) { .rv-card { flex: 0 0 130px; } .rv-thumb, .rv-thumb-ph { height: 74px; } }

/* ---------------------------------------------------------------- bookmark / reading list */
.bookmark-btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 1px solid var(--border-color); color: var(--muted-text); font: inherit; font-size: 13px; padding: 4px 10px; cursor: pointer; transition: color .17s, border-color .17s; margin: 8px 0 0; }
.bookmark-btn:hover, .bookmark-btn.is-saved { color: var(--main-color); border-color: var(--main-color); }
.bm-icon { font-size: 15px; line-height: 1; }
.rl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 20px 0; }
.rl-item { display: flex; gap: 12px; background: var(--card-bg); border: 1px solid var(--border-color); padding: 10px; }
.rl-thumb { width: 90px; height: 60px; object-fit: cover; flex-shrink: 0; }
.rl-no-img { width: 90px; height: 60px; background: var(--placeholder); flex-shrink: 0; display: block; }
.rl-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rl-title { font-size: 14px; font-weight: 600; color: var(--title-color); text-decoration: none; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rl-title:hover { color: var(--main-color); }
.rl-remove { background: none; border: 0; font-size: 11px; color: var(--muted-text); cursor: pointer; padding: 0; text-align: left; margin-top: auto; }
.rl-remove:hover { color: #dc3545; }

/* ---------------------------------------------------------------- howto shortcode */
.sc-howto { border: 1px solid var(--border-color); margin: 24px 0; }
.sc-howto-img { width: 100%; max-height: 240px; object-fit: cover; display: block; }
.sc-howto-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 14px 18px 10px; border-bottom: 1px solid var(--border-color); }
.sc-howto-title { font-size: 17px; }
.sc-howto-time { font-size: 12px; color: var(--muted-text); }
.sc-howto-steps { list-style: none; margin: 0; padding: 0; }
.sc-howto-step { display: flex; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border-color); }
.sc-howto-step:last-child { border-bottom: 0; }
.sc-step-num { flex-shrink: 0; width: 28px; height: 28px; background: var(--main-color); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sc-step-body { flex: 1 1 0; min-width: 0; }
.sc-step-title { font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.sc-step-content { font-size: 14px; color: var(--text-color); line-height: 1.6; }
.sc-step-content p:first-child { margin-top: 0; }
.sc-step-content p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- floating share bar */
.float-share { position: fixed; left: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 900; opacity: 0; pointer-events: none; transition: opacity .25s; }
.float-share.is-visible { opacity: 1; pointer-events: auto; }
.float-share-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-color); cursor: pointer; font-size: 0; text-decoration: none; }
.float-share-btn::before { font-family: FontAwesome; font-size: 15px; }
.fs-facebook::before { content: "\f09a"; color: #1877f2; }
.fs-twitter::before  { content: "\f099"; color: #1da1f2; }
.fs-copy::before     { content: "\f0c1"; color: var(--main-color); }
.fs-copy.copied::before { content: "\f00c"; color: #28a745; }
.float-share-btn:hover { background: var(--main-color); border-color: var(--main-color); }
.float-share-btn:hover::before { color: #fff !important; }
@media screen and (max-width: 1250px) { .float-share { display: none; } }

/* ---------------------------------------------------------------- print */
@media print {
  #header-wrap,#sidebar-wrapper,#footer-wrapper,#sub-footer-wrapper,.back-top,.K2C,.sticky-ads,
  .post-share,.post-labels,.post-nav,#related-wrap,.comments,.inline-ad,.ad-after-post,#nav-search,
  .slide-menu-toggle,.social-toggle,#social-menu,.blog-pager,.float-share,
  .announcement-bar,.ticker,.reading-progress,.post-reactions,.related-posts,
  .recently-viewed,.post-footer-ad,.in-content-ad,.ad-zone,.newsletter-widget,
  .back-to-top,.series-box,.sc-btn { display: none !important; }
  #outer-wrapper { max-width: none; box-shadow: none; }
  #main-wrapper { width: 100% !important; float: none; padding: 0; }
  #content-wrapper,#content-wrapper > .container { margin: 0; }
  body { background: #fff; color: #000; }
  .item-post .post-body { border-top: 0; }
  .post-body img { max-width: 100% !important; page-break-inside: avoid; }
  h2, h3, h4 { page-break-after: avoid; }
  pre, blockquote, .faq-item, .callout { page-break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  .post-body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
}

/* G: print-friendly styles */
@media print {
  #header-wrap, #nav-overlay, .sidebar, .float-share, #floatShare,
  .post-share, .reactions-bar, .reading-progress, .back-to-top,
  .toc-wrap, .cookie-banner, .announcement-bar, .ticker-wrap,
  .download-box-btn, .about-author .author-avatar,
  #related-wrap, .post-nav, #comments, .inline-ad,
  [class*="ad-zone"], [class*="banner-ad"] { display: none !important; }
  body, .content-wrap, .item-post-wrap, .blog-post { width: 100% !important; max-width: 100% !important; }
  a { color: inherit; text-decoration: underline; }
  a[href^="http"]:after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
  .post-title { font-size: 22pt; }
  h2 { font-size: 16pt; } h3 { font-size: 13pt; }
  img { max-width: 100%; page-break-inside: avoid; }
  p, li, blockquote { orphans: 3; widows: 3; }
  h2, h3, h4 { page-break-after: avoid; }
}

/* ---------------------------------------------------------------- pending comment (Task 1) */
.comment-pending { opacity:.75; }
.comment-pending-badge { font-size:11px; font-weight:700; color:#b35e00; text-transform:uppercase; letter-spacing:.04em; margin-left:6px; }

/* ---------------------------------------------------------------- font-size toggle (Task 3) */
#font-size-toggle { background:none; border:1px solid var(--border-color); color:var(--muted-text); font-size:13px; font-weight:700; padding:2px 7px; cursor:pointer; line-height:1.4; margin-left:8px; vertical-align:middle; }
#font-size-toggle:hover { color:var(--title-color); border-color:var(--title-color); }

/* ---------------------------------------------------------------- archive sort bar */
.archive-sort-bar { display:flex; gap:12px; margin:0 0 20px; font-size:13px; font-weight:600; }
.archive-sort-bar a { color:var(--muted-text); text-decoration:none; padding:4px 0; border-bottom:2px solid transparent; }
.archive-sort-bar a.active,.archive-sort-bar a:hover { color:var(--title-color); border-bottom-color:var(--main-color); }

/* ---------------------------------------------------------------- archive filter chips */
.archive-filter-chips { font-size:12px; color:var(--muted-text); margin:-14px 0 16px; }
.archive-filter-chips a { color:var(--main-color); text-decoration:none; margin-left:4px; }
