/* ==========================================================================
   CYBER KENDRA — Refresh layer (v2.1)
   Loaded last. Re-tunes typography, spacing and neutrals to a calm,
   "help-center" reading style: Google Sans Flex, 16px base, generous
   whitespace, hairlines instead of boxes, one blue for links.
   Brand colour (--clr-primary, from Theme Options) is kept for accents.
   ========================================================================== */

/* ── Fonts (self-hosted WOFF2, ~54 KB total) ─────────────────────────────── */
@font-face {
    font-family: 'Google Sans Flex';
    src: url('../webfonts/google-sans-flex-latin.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Google Sans Flex';
    src: url('../webfonts/google-sans-flex-latin-ext.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Metric-matched fallback: text laid out in Arial occupies the same space as
   Google Sans Flex, so nothing moves when the web font swaps in (CLS). */
@font-face {
    font-family: 'CK Fallback';
    src: local('Arial'), local('ArialMT'), local('Helvetica'), local('Roboto');
    size-adjust: 100.3%;
    ascent-override: 96.3%;
    descent-override: 28.5%;
    line-gap-override: 0%;
}

/* Icon font — subset to the ~60 icons the theme uses (8 KB instead of ~300 KB). */
@font-face {
    font-family: 'Material Symbols Outlined';
    src: url('../webfonts/material-symbols-outlined.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
}

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
    --font-display: 'Google Sans Flex', 'CK Fallback', 'Segoe UI', Roboto, Arial, sans-serif;
    --font-ui: 'Google Sans Flex', 'CK Fallback', 'Segoe UI', Roboto, Arial, sans-serif;
    --font-body: 'Google Sans Flex', 'CK Fallback', 'Segoe UI', Roboto, Arial, sans-serif;
    --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, 'Roboto Mono', monospace;

    --ck-radius: 12px;
    --ck-radius-sm: 8px;
    --ck-gutter: 24px;
    --ck-max: 1240px;
    --ck-read: 720px;
    --ck-sidebar: 320px;
    --ck-nav-h: 64px;

    --md: 12px;
    --sm: 8px;
    --max-w: var(--ck-max);
}

/* Neutrals — beats the Theme Options inline block (same values in spirit, higher contrast). */
html:root[data-theme="light"] {
    --clr-bg: #ffffff;
    --clr-surface: #ffffff;
    --clr-surface-alt: #f0f4f9;
    --clr-text: #1f1f1f;
    --clr-text-muted: #444746;
    --clr-text-dim: #5e5e5e;
    --clr-border: #e3e3e3;
    --clr-border-dim: #eeeeee;
    --clr-nav-bg: #ffffff;
    --clr-footer-bg: #f8fafd;
    --clr-footer-text: #444746;
    --clr-link: #0b57d0;
    --clr-link-hover: #0842a0;
    --ck-chip-bg: color-mix(in srgb, var(--clr-primary) 9%, #ffffff);
    --ck-chip-text: var(--clr-primary);
    --ck-hover-bg: #f0f4f9;
    color-scheme: light;
}

html:root[data-theme="dark"] {
    --clr-bg: #131314;
    --clr-surface: #1b1c1d;
    --clr-surface-alt: #1e1f20;
    --clr-text: #e3e3e3;
    --clr-text-muted: #c4c7c5;
    --clr-text-dim: #a3a7a5;
    --clr-border: #2f3133;
    --clr-border-dim: #26282a;
    --clr-nav-bg: #131314;
    --clr-footer-bg: #1b1c1d;
    --clr-footer-text: #c4c7c5;
    --clr-link: #a8c7fa;
    --clr-link-hover: #d3e3fd;
    --ck-chip-bg: color-mix(in srgb, var(--clr-primary) 22%, #1e1f20);
    --ck-chip-text: color-mix(in srgb, var(--clr-primary) 35%, #e3e3e3);
    --ck-hover-bg: #28292a;
    color-scheme: dark;
}

@media (max-width: 767px) {
    :root {
        --ck-gutter: 20px;
        --ck-nav-h: 56px;
    }
}

/* ── Base ────────────────────────────────────────────────────────────────── */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.005em;
    color: var(--clr-text);
    background: var(--clr-bg) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    height: auto;
}

/* Scroll-reveal made content invisible until JS ran — it delayed LCP by seconds. */
[data-animate],
[data-animate].visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
}

:focus-visible {
    outline: 2px solid var(--clr-link);
    outline-offset: 2px;
    border-radius: 4px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    word-wrap: normal !important;
}

main,
.site-content {
    margin-top: var(--ck-nav-h);
    padding-top: 8px;
}

/* ── Header / navigation ─────────────────────────────────────────────────── */
.ck-nav {
    padding: 0;
    background: var(--clr-nav-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid var(--clr-border);
}

.ck-nav__inner {
    height: var(--ck-nav-h);
    max-width: var(--ck-max);
    padding-inline: var(--ck-gutter);
    gap: 24px;
}

.ck-logo {
    width: auto;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.ck-logo img,
.ck-logo__img {
    width: 132px;
    height: auto;
    max-height: 48px;
    object-fit: contain;
}

.ck-logo__text {
    font-size: 20px;
    font-weight: 600;
    color: var(--clr-text);
}

/* Footer logo pair uses classes (IDs must be unique per page). */
[data-theme="light"] .ck-logo__img--dark,
[data-theme="dark"] .ck-logo__img--light {
    display: none;
}

[data-theme="light"] .ck-logo__img--light,
[data-theme="dark"] .ck-logo__img--dark {
    display: block;
}

.ck-nav__link {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 500;
    color: var(--clr-text-muted);
    padding: 8px 12px;
    border-radius: 20px;
    border-bottom: 0 !important;
    line-height: 20px;
    transition: background-color .15s, color .15s;
}

.ck-nav__link:hover,
.ck-nav__link--active {
    color: var(--clr-text);
    background: var(--ck-hover-bg);
    padding-bottom: 8px !important;
}

.ck-nav__link--active {
    color: var(--clr-primary);
}

.ck-search-btn,
.ck-theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: var(--clr-text-muted);
}

.ck-search-btn:hover,
.ck-theme-btn:hover {
    background: var(--ck-hover-bg);
    color: var(--clr-text);
}

/* ── Shared: chips (category labels) ─────────────────────────────────────── */
.ck-badge,
.ck-art__tag,
.ck-cat-block__name,
.ck-feat-card__cat,
.ck-sidebar-latest__cat {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 10px;
    margin: 0 0 10px;
    border: 0 !important;
    border-radius: 8px;
    background: var(--ck-chip-bg);
    color: var(--ck-chip-text);
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.02em;
    text-transform: none;
}

.ck-art__tag {
    position: static;
    margin: 0 0 8px;
}

/* ── Section headings ────────────────────────────────────────────────────── */
.ck-section,
.ck-cat-section,
.ck-hero {
    max-width: var(--ck-max);
    padding-inline: var(--ck-gutter);
}

.ck-section {
    padding-block: 40px;
}

.ck-recent__head {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--clr-border);
}

.ck-recent__head::after {
    display: none;
}

.ck-recent__head h2,
.ck-recent__head .ck-section__title,
.ck-section__title {
    background: none !important;
    clip-path: none !important;
    border: 0 !important;
    border-radius: 0;
    padding: 0 !important;
    color: var(--clr-text) !important;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: 0;
    text-transform: none;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.ck-hero {
    padding-top: 24px;
    padding-bottom: 8px;
}

.ck-hero__featured-img-wrap,
.ck-hero__side-img-wrap,
.ck-cat-feat__img-wrap,
.ck-cat-side__img-wrap,
.ck-art__thumb,
.ck-feat-card__thumb,
.ck-post-featured-image,
.ck-mag-card__thumb-wrap {
    border-radius: var(--ck-radius);
    background: var(--clr-surface-alt);
    border: 0;
    box-shadow: none;
    overflow: hidden;
}

.ck-hero__featured-img-wrap {
    aspect-ratio: 16 / 9;
}

.ck-hero__featured-img,
.ck-hero__side-img,
.ck-cat-feat__img,
.ck-cat-side__img,
.ck-art__img,
.ck-feat-card__img,
.ck-mag-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}

/* No zoom-on-hover: it repaints large images and reads as "ad-like" motion. */
.ck-hero__featured:hover .ck-hero__featured-img,
.ck-hero__side-card:hover .ck-hero__side-img,
.ck-art:hover .ck-art__img,
.ck-feat-card:hover .ck-feat-card__img {
    transform: none;
}

.ck-hero__featured-body {
    padding: 20px 0 0;
}

.ck-hero__title {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.ck-hero__excerpt {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 24px;
    color: var(--clr-text-muted);
    margin-bottom: 12px;
    -webkit-line-clamp: 3;
}

.ck-hero__meta,
.ck-hero__side-date {
    font-size: 13px;
    line-height: 20px;
    color: var(--clr-text-dim);
}

.ck-hero__author {
    color: var(--clr-text-muted);
    font-weight: 500;
}

.ck-hero__sidebar {
    border-left: 1px solid var(--clr-border);
    margin-left: 32px;
    padding-left: 32px;
    gap: 24px;
}

.ck-hero__sidebar > * + * {
    border-top: 1px solid var(--clr-border);
    padding-top: 24px;
}

.ck-hero__side-card {
    gap: 12px;
}

.ck-hero__side-img-wrap {
    aspect-ratio: 16 / 9 !important;
}

.ck-hero__side-title {
    font-size: 17px;
    font-weight: 500;
    line-height: 24px;
}

.ck-card-link:hover,
.ck-hero__featured:hover .ck-hero__title,
.ck-hero__side-card:hover .ck-hero__side-title,
.ck-art:hover .ck-art__title,
.ck-feat-card:hover .ck-feat-card__title {
    color: var(--clr-link) !important;
}

/* ── Category blocks ─────────────────────────────────────────────────────── */
.ck-cat-section {
    padding-block: 32px;
}

.ck-cat-block {
    padding: 24px 0;
    gap: 16px;
}

.ck-cat-feat__img-wrap {
    aspect-ratio: 16 / 9;
    margin-bottom: 16px;
}

.ck-cat-side__img-wrap {
    aspect-ratio: 16 / 9;
    margin-bottom: 10px;
}

.ck-cat-feat__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: var(--clr-text);
}

.ck-cat-side__title {
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
    color: var(--clr-text);
}

.ck-cat-feat__excerpt {
    font-size: 14px;
    line-height: 22px;
    color: var(--clr-text-muted);
}

.ck-cat-feat__meta,
.ck-cat-feat__date,
.ck-cat-feat__read,
.ck-cat-side__meta {
    font-size: 13px;
    color: var(--clr-text-dim);
}

.ck-cat-block__view-all {
    font-size: 14px;
    font-weight: 500;
    color: var(--clr-link);
}

/* ── Article cards (Latest posts / blog) — no boxes, just whitespace ─────── */
.ck-articles-grid {
    column-gap: 32px !important;
    row-gap: 40px !important;
}

.ck-art {
    border: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none !important;
}

.ck-art__thumb {
    aspect-ratio: 16 / 9;
    margin-bottom: 14px;
}

.ck-art__title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.ck-art__author {
    font-size: 13px;
    color: var(--clr-text-dim);
    margin-bottom: 6px;
    justify-content: flex-start;
    gap: 12px;
}

.ck-art__content .ck-cat-feat__excerpt {
    font-size: 14px;
    line-height: 22px;
    color: var(--clr-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ck-feat-card,
.ck-feat-card:hover {
    box-shadow: none;
}

.ck-feat-card__content {
    padding: 0;
}

.ck-feat-card__title {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.ck-loadmore-btn {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    height: 40px;
    padding: 0 24px;
    border-radius: 20px;
    border: 1px solid var(--clr-border);
    background: var(--clr-surface);
    color: var(--clr-link);
}

.ck-loadmore-btn:hover {
    background: var(--ck-hover-bg);
}

/* ── Article page ────────────────────────────────────────────────────────── */
.ck-art-hero {
    max-width: var(--ck-max);
    padding: 16px var(--ck-gutter) 0;
}

.ck-art-hero__left {
    max-width: calc(var(--ck-read) + 40px);
    margin-bottom: 24px;
    gap: 12px;
}

.ck-art-hero__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.3vw, 38px);
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -0.015em;
    color: var(--clr-text);
    margin: 4px 0;
}

.ck-art-hero__subtitle {
    font-size: 18px;
    line-height: 28px;
    color: var(--clr-text-muted);
}

.ck-art-hero__meta-bar {
    font-size: 14px;
    line-height: 20px;
    color: var(--clr-text-dim);
    gap: 6px 10px;
}

.ck-author-hover-link,
.ck-art-hero__by-author a {
    color: var(--clr-text) !important;
    font-weight: 500;
}

.ck-breadcrumbs,
.ck-breadcrumbs__link {
    font-size: 13px;
    color: var(--clr-text-dim);
}

.ck-art-layout {
    max-width: var(--ck-max);
    margin-inline: auto;
    padding: 0 var(--ck-gutter) 56px;
    gap: 48px;
}

.ck-art-content {
    min-width: 0;
    gap: 32px;
}

.ck-post-featured-image {
    aspect-ratio: 16 / 9;
    margin-bottom: 8px;
}

.ck-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Reading column — the heart of the refresh */
.ck-art-body,
.ck-entry-content {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 28px;
    color: var(--clr-text);
    letter-spacing: 0.005em;
    gap: 0;
    margin: 0;
}

.ck-entry-content p,
.ck-art-body p {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: 0.005em;
    color: var(--clr-text);
    margin: 0 0 20px;
}

.ck-entry-content :where(h1, h2, h3, h4, h5, h6) {
    font-family: var(--font-display);
    color: var(--clr-text);
    letter-spacing: -0.005em;
    scroll-margin-top: calc(var(--ck-nav-h) + 16px);
}

.ck-entry-content h2 {
    font-size: 26px;
    font-weight: 500;
    line-height: 34px;
    margin: 40px 0 12px;
}

.ck-entry-content h3 {
    font-size: 21px;
    font-weight: 500;
    line-height: 28px;
    margin: 32px 0 8px;
}

.ck-entry-content h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
    margin: 24px 0 8px;
}

.ck-entry-content a:not(.ck-sidebar-social-item):not(.ck-google-btn):not(.ck-highlights-link):not(.ck-card-link):not(.ck-card-meta-link) {
    color: var(--clr-link) !important;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    text-decoration-color: color-mix(in srgb, var(--clr-link) 45%, transparent);
}

.ck-entry-content a:not(.ck-sidebar-social-item):not(.ck-google-btn):not(.ck-highlights-link):not(.ck-card-link):not(.ck-card-meta-link):hover {
    color: var(--clr-link-hover) !important;
    text-decoration-color: currentColor;
}

.ck-entry-content ul,
.ck-entry-content ol {
    padding-left: 24px;
    margin: 0 0 20px;
    gap: 8px;
}

.ck-entry-content ul li,
.ck-entry-content ol li {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 28px;
    color: var(--clr-text);
}

.ck-entry-content blockquote {
    border: 0;
    border-left: 4px solid var(--clr-primary);
    border-radius: 0 var(--ck-radius-sm) var(--ck-radius-sm) 0;
    background: var(--clr-surface-alt);
    box-shadow: none;
    padding: 16px 20px;
    margin: 24px 0;
}

.ck-entry-content blockquote::before {
    display: none;
}

.ck-entry-content blockquote p {
    font-family: var(--font-body);
    font-size: 17px;
    font-style: normal;
    color: var(--clr-text);
    line-height: 28px;
}

.ck-entry-content code {
    font-family: var(--font-mono);
    font-size: 0.86em;
    font-weight: 400;
    background: var(--clr-surface-alt);
    border: 0;
    border-radius: 4px;
    padding: 2px 6px;
}

.ck-entry-content pre {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 22px;
    border-radius: var(--ck-radius-sm);
}

.ck-entry-content img {
    border-radius: var(--ck-radius-sm);
    height: auto;
}

.ck-entry-content figcaption,
.ck-entry-content .wp-element-caption {
    font-size: 13px;
    line-height: 20px;
    color: var(--clr-text-dim);
    text-align: center;
    margin-top: 8px;
}


.ck-entry-content .note {
    border-radius: var(--ck-radius-sm);
    padding: 16px 20px;
}

.ck-entry-content table {
    font-size: 15px;
    line-height: 22px;
}


.ck-sidebar-latest__title {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: var(--clr-text);
}

.ck-sidebar-latest__date {
    font-size: 12px;
    color: var(--clr-text-dim);
}

.ck-sidebar-latest__thumb {
    border-radius: var(--ck-radius-sm);
    overflow: hidden;
}

/* ── Ads: reserve space so late-arriving ads don't push content (CLS) ────── */
.ck-sidebar-ad__unit {
    min-height: 250px;
}

.ck-footer-ad__unit,
.ck-comments-ad__unit {
    min-height: 100px;
}

.ck-footer-ad,
.ck-comments-ad {
    margin: 32px auto;
}

ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}

.ck-sidebar-ad__unit:has(ins.adsbygoogle[data-ad-status="unfilled"]),
.ck-footer-ad__unit:has(ins.adsbygoogle[data-ad-status="unfilled"]),
.ck-comments-ad__unit:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
    min-height: 0;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.ck-footer {
    background: var(--clr-footer-bg);
    border-top: 1px solid var(--clr-border);
    color: var(--clr-footer-text);
    margin-top: 48px;
}

.ck-footer__inner {
    max-width: var(--ck-max);
    padding: 48px var(--ck-gutter) 24px;
}

.ck-footer .description,
.ck-newsletter__desc {
    font-size: 14px;
    line-height: 22px;
    color: var(--clr-text-muted);
}

.ck-newsletter__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: var(--clr-text);
}

.ck-newsletter__input {
    height: 44px;
    border-radius: 22px;
    border: 1px solid var(--clr-border);
    padding: 0 18px;
    font-family: var(--font-ui);
    font-size: 15px;
    background: var(--clr-surface);
    color: var(--clr-text);
}

.ck-newsletter__btn {
    height: 44px;
    border-radius: 22px;
    padding: 0 22px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    background: var(--clr-link);
    color: #ffffff;
    border: 0;
}

html[data-theme="dark"] .ck-newsletter__btn {
    color: #062e6f;
}

.ck-footer__bottom,
.ck-footer__legal,
.ck-footer__legal-links a {
    font-size: 13px;
    color: var(--clr-text-dim);
}

.ck-footer__legal-links a:hover {
    color: var(--clr-text);
}

.ck-social-link img {
    width: 20px;
    height: 20px;
}

/* ── Desktop grid ────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
    .ck-hero__layout--split {
        grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    }
}

@media (min-width: 1024px) {
    .ck-art-layout {
        grid-template-columns: minmax(0, var(--ck-read)) var(--ck-sidebar);
        justify-content: space-between;
    }

    .ck-art-content {
        max-width: var(--ck-read);
    }
}

/* ── Phones ──────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .ck-logo img,
    .ck-logo__img {
        width: 116px;
    }

    .ck-hero {
        padding-top: 16px;
    }

    .ck-hero__sidebar {
        border-left: 0;
        margin: 24px 0 0;
        padding: 24px 0 0;
        border-top: 1px solid var(--clr-border);
    }

    /* Side stories become compact rows: text left, thumbnail right. */
    .ck-hero__side-card {
        grid-template-columns: minmax(0, 1fr) 112px;
        grid-template-rows: auto;
        gap: 16px;
        align-items: start;
    }

    .ck-hero__side-img-wrap {
        order: 2;
        aspect-ratio: 1 / 1 !important;
        border-radius: var(--ck-radius-sm);
    }

    .ck-hero__side-body {
        order: 1;
    }

    .ck-hero__side-body .ck-badge {
        margin-bottom: 6px;
    }

    .ck-hero__side-title {
        font-size: 16px;
        line-height: 22px;
    }

    .ck-art-hero__title {
        font-size: 28px;
        line-height: 36px;
    }

    .ck-art-body,
    .ck-entry-content,
    .ck-entry-content p,
    .ck-art-body p,
    .ck-entry-content ul li,
    .ck-entry-content ol li {
        font-size: 16.5px;
        line-height: 27px;
    }

    .ck-entry-content h2 {
        font-size: 23px;
        line-height: 30px;
        margin-top: 32px;
    }

    .ck-entry-content h3 {
        font-size: 19px;
        line-height: 26px;
    }

    .ck-articles-grid {
        row-gap: 32px !important;
    }

    .ck-newsletter__wrap {
        flex-direction: column;
        gap: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Category grid: hairline dividers, breathing room between the two columns */
.ck-cat-block {
    padding: 24px 20px;
}

.ck-cat-grid > *,
.ck-cat-block,
.ck-cat-side__card,
.ck-cat-side {
    border: 0 !important;
}

.ck-cat-block {
    border-top: 1px solid var(--clr-border) !important;
}

.ck-cat-side__card + .ck-cat-side__card {
    border-top: 1px solid var(--clr-border) !important;
    padding-top: 16px;
}

@media (min-width: 768px) {
    .ck-cat-grid > .ck-cat-block:nth-child(odd) {
        border-right: 1px solid var(--clr-border) !important;
    }
}

.ck-cat-block__name {
    text-transform: none !important;
    letter-spacing: 0.02em !important;
}

@media (max-width: 767px) {
    .ck-cat-block {
        padding: 24px 0;
    }
}

.ck-cat-feat > a {
    align-items: stretch;
}

.ck-cat-feat__img-wrap {
    width: 100%;
}

@media (max-width: 767px) {
    .ck-cat-block {
        border-left: 0 !important;
        border-right: 0 !important;
    }
}

.ck-sidebar-latest__date {
    font-family: var(--font-ui) !important;
}

/* ==========================================================================
   TECH PANELS — Popular Posts, Follow Us, Key Highlights, Also Read, TL;DR
   Outlined "legend" boxes: the title sits in the top border line, with a
   status dot, monospace label, HUD corner brackets and numbered rows.
   ========================================================================== */
:root {
    --ck-accent: var(--clr-primary-dark, #34a853);
    --ck-line: color-mix(in srgb, var(--ck-accent) 38%, var(--clr-border));
    --ck-panel-bg: var(--clr-bg);
}

.ck-key-highlights,
.ck-entry-content .also-read,
.ck-tldr,
.ck-sidebar-card:not(.ck-article-social-card) {
    position: relative;
    border: 1px solid var(--ck-line) !important;
    border-radius: 6px !important;
    background: var(--ck-panel-bg) !important;
    box-shadow: none !important;
    padding: 30px 22px 20px !important;
    margin: 28px 0 32px !important;
    overflow: visible !important;
}

/* HUD corner brackets (top-right + bottom-left) */
.ck-key-highlights::before,
.ck-key-highlights::after,
.ck-entry-content .also-read::before,
.ck-entry-content .also-read::after,
.ck-tldr::before,
.ck-tldr::after,
.ck-sidebar-card:not(.ck-article-social-card)::before,
.ck-sidebar-card:not(.ck-article-social-card)::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.ck-key-highlights::before,
.ck-entry-content .also-read::before,
.ck-tldr::before,
.ck-sidebar-card:not(.ck-article-social-card)::before {
    top: -1px;
    right: -1px;
    border-top: 2px solid var(--ck-accent);
    border-right: 2px solid var(--ck-accent);
    border-top-right-radius: 6px;
}

.ck-key-highlights::after,
.ck-entry-content .also-read::after,
.ck-tldr::after,
.ck-sidebar-card:not(.ck-article-social-card)::after {
    bottom: -1px;
    left: -1px;
    border-bottom: 2px solid var(--ck-accent);
    border-left: 2px solid var(--ck-accent);
    border-bottom-left-radius: 6px;
}

/* Legend title sitting on the border line */
.ck-key-highlights__header,
.ck-entry-content .also-read h4,
.ck-entry-content .also-read__label,
.ck-tldr__header,
.ck-sidebar-card__title {
    position: absolute !important;
    top: 0 !important;
    left: 14px !important;
    transform: translateY(-50%) !important;
    z-index: 2;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: auto !important;
    margin: 0 !important;
    padding: 0 10px !important;
    background: var(--ck-panel-bg) !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-family: var(--font-mono) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: var(--clr-text) !important;
    white-space: nowrap;
}

.ck-key-highlights__title,
.ck-tldr__title {
    font: inherit !important;
    letter-spacing: inherit !important;
    text-transform: inherit !important;
    color: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

.ck-key-highlights__icon,
.ck-tldr__icon {
    display: none !important;
}

/* Status LED before each title */
.ck-key-highlights__header::before,
.ck-entry-content .also-read h4::before,
.ck-entry-content .also-read__label::before,
.ck-tldr__header::before,
.ck-sidebar-card__title::before {
    content: '' !important;
    display: block !important;
    position: static !important;
    inset: auto !important;
    flex: 0 0 auto;
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: var(--ck-accent) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ck-accent) 22%, transparent), 0 0 10px var(--ck-accent);
    animation: ck-led 2.4s ease-in-out infinite;
}

@keyframes ck-led {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

/* Hide / Show toggle also sits on the border (right side) */
.ck-key-highlights__toggle-btn__wrapper {
    top: 0 !important;
    right: 22px !important;
    transform: translateY(-50%);
    background: var(--ck-panel-bg);
    padding: 0 6px;
    z-index: 2;
}

.ck-key-highlights__toggle-btn {
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 6px !important;
    color: var(--clr-text-dim) !important;
}

.ck-key-highlights__toggle-btn .material-symbols-outlined {
    font-size: 18px;
}

/* ── Key Highlights rows ─────────────────────────────────────────────────── */
.ck-key-highlights__content,
.ck-key-highlights ul,
.ck-key-highlights ul.is-expanded,
.ck-key-highlights__list {
    padding: 0 !important;
    margin: 0 !important;
}

.ck-key-highlights__list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
}

.ck-highlights-item + .ck-highlights-item {
    border-top: 1px dashed var(--clr-border);
}

.ck-highlights-link {
    display: flex !important;
    align-items: baseline;
    gap: 12px !important;
    padding: 9px 0;
    color: var(--clr-text) !important;
    text-decoration: none !important;
    font-family: var(--font-ui) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 22px !important;
    transition: color .15s, padding-left .15s !important;
}

.ck-highlights-link:hover {
    color: var(--clr-link) !important;
    padding-left: 4px;
}

.ck-highlights-num {
    font-family: var(--font-mono) !important;
    font-size: 12px !important;
    font-weight: 600;
    color: var(--ck-accent) !important;
    letter-spacing: 0.04em;
    min-width: 22px;
    margin: 0 !important;
}

.ck-highlights-num::before {
    content: '[';
    opacity: .5;
}

.ck-highlights-num::after {
    content: ']';
    opacity: .5;
}

/* ── Also Read rows: terminal-style prompts ──────────────────────────────── */
.ck-entry-content .also-read ul,
.ck-entry-content .also-read__list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    gap: 0 !important;
}

.ck-entry-content .also-read li,
.ck-entry-content .also-read__item {
    position: relative;
    padding: 9px 0 9px 26px !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 22px !important;
}

.ck-entry-content .also-read li + li {
    border-top: 1px dashed var(--clr-border);
}

.ck-entry-content .also-read li::before {
    content: '>' !important;
    position: absolute !important;
    left: 2px !important;
    top: 9px !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    border-radius: 0 !important;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
    color: var(--ck-accent);
}

.ck-entry-content .also-read li a,
.ck-entry-content .also-read ul li a:not(.ck-sidebar-social-item):not(.ck-google-btn):not(.ck-highlights-link) {
    color: var(--clr-text) !important;
    font-weight: 500;
    text-decoration: none !important;
}

.ck-entry-content .also-read li a:hover,
.ck-entry-content .also-read ul li a:not(.ck-sidebar-social-item):not(.ck-google-btn):not(.ck-highlights-link):hover {
    color: var(--clr-link) !important;
    text-decoration: underline !important;
    text-decoration-color: color-mix(in srgb, var(--clr-link) 45%, transparent) !important;
}

/* ── Popular Posts rows: numbered index on each thumbnail ────────────────── */
.ck-sidebar-latest,
.ck-sidebar-card ul {
    counter-reset: ck-rank;
    margin: 0;
    padding: 0;
}

.ck-sidebar-latest__item {
    counter-increment: ck-rank;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ck-sidebar-latest__item + .ck-sidebar-latest__item {
    border-top: 1px dashed var(--clr-border) !important;
}

.ck-sidebar-latest__link {
    padding: 10px 0 !important;
    gap: 14px !important;
    border-radius: 0 !important;
    background: none !important;
}

.ck-sidebar-latest__link:hover {
    background: none !important;
    padding-top: 10px !important;
}

.ck-sidebar-latest__link:hover .ck-sidebar-latest__title {
    color: var(--clr-link) !important;
}

.ck-sidebar-latest__thumb {
    position: relative;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 6px !important;
    overflow: hidden;
}

.ck-sidebar-latest__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ck-sidebar-latest__thumb::after {
    content: counter(ck-rank, decimal-leading-zero);
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 1px 5px;
    border-top-right-radius: 6px;
    background: rgba(10, 12, 14, .82);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: .04em;
}

.ck-sidebar-latest__title {
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
    color: var(--clr-text) !important;
    transition: color .15s;
}

.ck-sidebar-latest__date {
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    letter-spacing: .03em;
    color: var(--clr-text-dim) !important;
}

.ck-sidebar-card .ck-sidebar-social-grid {
    gap: 8px;
}

@media (max-width: 767px) {
    .ck-key-highlights,
    .ck-entry-content .also-read,
    .ck-tldr,
    .ck-sidebar-card:not(.ck-article-social-card) {
        padding: 28px 16px 16px !important;
    }

    .ck-key-highlights__header,
    .ck-entry-content .also-read h4,
    .ck-entry-content .also-read__label,
    .ck-tldr__header,
    .ck-sidebar-card__title {
        left: 10px !important;
        font-size: 11px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ck-key-highlights__header::before,
    .ck-entry-content .also-read h4::before,
    .ck-entry-content .also-read__label::before,
    .ck-tldr__header::before,
    .ck-sidebar-card__title::before {
        animation: none;
    }
}

/* ==========================================================================
   v2.2 — post header full width, wider reading column, touch targets
   ========================================================================== */
:root {
    --ck-read: 810px;
}

/* Title + excerpt use the full container width (no empty space above the sidebar). */
.ck-art-hero__left {
    max-width: none !important;
}

.ck-art-hero__title {
    font-weight: 700 !important;
    font-size: clamp(28px, 3.1vw, 42px) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.02em !important;
}

.ck-art-hero__subtitle {
    max-width: 62rem;
}

@media (min-width: 1024px) {
    .ck-art-layout {
        column-gap: 40px !important;
    }
}

@media (max-width: 767px) {
    .ck-art-hero__title {
        font-size: 28px !important;
        line-height: 35px !important;
    }
}

/* Key Highlights collapsed: the first two items stay visible as a preview. */
.ck-key-highlights.is-collapsed .ck-highlights-item:nth-child(2) {
    -webkit-mask-image: linear-gradient(#000 40%, transparent);
    mask-image: linear-gradient(#000 40%, transparent);
}

/* Footer legal links: 24px+ touch targets with spacing (Lighthouse a11y). */
.ck-footer__legal-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 2px !important;
}

@media (max-width: 767px) {
    .ck-footer__legal-links {
        gap: 4px 0 !important;
    }

    .ck-footer__legal-links a {
        min-height: 40px;
    }
}

/* ── Rendering performance: skip layout/paint of off-screen sections until they
   approach the viewport. Cuts the first layout on phones roughly in half.
   contain-intrinsic-size reserves an estimated height so the scrollbar is stable;
   "auto" makes the browser remember the real height once rendered. ─────────── */
.ck-cat-section,
.ck-recent,
.ck-tools-section,
.ck-footer,
.ck-footer-ad,
.ck-art-layout ~ .ck-section,
.ck-art-related,
.post-navigation,
#comments {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
}

.ck-cat-section {
    contain-intrinsic-size: auto 2400px;
}

.ck-recent {
    contain-intrinsic-size: auto 1600px;
}

.ck-footer {
    contain-intrinsic-size: auto 520px;
}

/* ==========================================================================
   CODE — terminal-style <pre> blocks (identical in light and dark mode:
   a terminal is always dark) + readable inline `code` in both themes.
   ========================================================================== */
.ck-entry-content pre,
.ck-entry-content .wp-block-code,
.ck-entry-content .wp-block-preformatted,
pre.wp-block-code {
    position: relative;
    display: block;
    margin: 28px 0 !important;
    padding: 50px 22px 20px !important;
    background: #0d1117 !important;
    color: #e6edf3 !important;
    border: 1px solid #30363d !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 28px rgba(1, 4, 9, 0.22);
    font-family: var(--font-mono) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
    letter-spacing: 0 !important;
    white-space: pre;
    tab-size: 4;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #30363d transparent;
}

/* Title bar with the three window dots */
.ck-entry-content pre::before,
pre.wp-block-code::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    height: 34px !important;
    border-radius: 9px 9px 0 0 !important;
    border-bottom: 1px solid #30363d;
    box-shadow: none !important;
    background:
        radial-gradient(circle at 18px 17px, #ff5f57 5.5px, transparent 6.5px),
        radial-gradient(circle at 38px 17px, #febc2e 5.5px, transparent 6.5px),
        radial-gradient(circle at 58px 17px, #28c840 5.5px, transparent 6.5px),
        #161b22 !important;
}

/* Window title on the right of the bar */
.ck-entry-content pre::after,
pre.wp-block-code::after {
    content: 'bash' !important;
    position: absolute;
    top: 0;
    right: 14px;
    height: 34px;
    line-height: 34px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: #7d8590;
    pointer-events: none;
}

/* Code inside the terminal must NOT get the inline-code chip style */
.ck-entry-content pre code,
.ck-entry-content .wp-block-code code,
pre.wp-block-code code {
    display: block;
    background: transparent !important;
    color: inherit !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    font: inherit !important;
    white-space: inherit !important;
    word-break: normal !important;
    box-shadow: none !important;
}

.ck-entry-content pre::selection,
.ck-entry-content pre *::selection {
    background: #264f78;
    color: #ffffff;
}

.ck-entry-content pre::-webkit-scrollbar {
    height: 8px;
}

.ck-entry-content pre::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

/* Inline `code` — light */
.ck-entry-content :not(pre) > code {
    background: #eef1f5 !important;
    color: #b3261e !important;
    border: 1px solid #e0e4ea !important;
    border-radius: 5px !important;
    padding: 1px 6px !important;
    font-family: var(--font-mono) !important;
    font-size: 0.86em !important;
    font-weight: 500 !important;
    word-break: break-word;
}

/* Inline `code` — dark (replaces the old green #006205 background) */
html:root[data-theme="dark"] .ck-entry-content :not(pre) > code {
    background: #25272a !important;
    color: #ffb4ab !important;
    border-color: #36393d !important;
}

@media (max-width: 767px) {
    .ck-entry-content pre,
    .ck-entry-content .wp-block-code,
    .ck-entry-content .wp-block-preformatted {
        padding: 46px 16px 16px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }
}

/* ── Accessibility: contrast + touch targets ─────────────────────────────── */
/* Follow-Us buttons: darker brand shades so white labels reach 4.5:1 */
.ck-sidebar-social-item--facebook { background: #0b5fcc !important; }
.ck-sidebar-social-item--telegram { background: #006699 !important; }
.ck-sidebar-social-item--whatsapp { background: #0b7a3e !important; }
.ck-sidebar-social-item--reddit { background: #c73a00 !important; }
.ck-sidebar-social-item--youtube { background: #cc0000 !important; }
.ck-sidebar-social-item--instagram,
.ck-sidebar-social-item--insta { background: linear-gradient(45deg, #b3261e 0%, #a4135f 55%, #7b1fa2 100%) !important; }

.ck-sidebar-social-name {
    color: #ffffff !important;
    font-weight: 600;
}

/* "By author" links in cards: 24px minimum target */
.ck-art__author .ck-card-meta-link,
.ck-hero__meta a,
.ck-cat-feat__author a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

/* "Also Read" caption is now a <p>; keep the panel legend look */
.ck-entry-content .also-read p.also-read__label {
    font-size: 12px !important;
    margin: 0 !important;
}

/* ==========================================================================
   v2.2 — thicker tech-panel lines + heavier HUD corners
   ========================================================================== */
.ck-key-highlights,
.ck-entry-content .also-read,
.ck-tldr,
.ck-sidebar-card:not(.ck-article-social-card) {
    border-width: 2px !important;
    border-radius: 8px !important;
}

.ck-key-highlights::before,
.ck-entry-content .also-read::before,
.ck-tldr::before,
.ck-sidebar-card:not(.ck-article-social-card)::before {
    top: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-top-width: 4px;
    border-right-width: 4px;
    border-top-right-radius: 8px;
}

.ck-key-highlights::after,
.ck-entry-content .also-read::after,
.ck-tldr::after,
.ck-sidebar-card:not(.ck-article-social-card)::after {
    bottom: -2px;
    left: -2px;
    width: 22px;
    height: 22px;
    border-bottom-width: 4px;
    border-left-width: 4px;
    border-bottom-left-radius: 8px;
}

/* ── Pinterest share button ──────────────────────────────────────────────── */
.ck-sidebar-social-item--pinterest {
    background: #bd081c !important;
}

.ck-sidebar-social-item--pinterest:hover {
    background: #9a0617 !important;
}

/* ── Back to top ─────────────────────────────────────────────────────────── */
.ck-to-top {
    position: fixed;
    right: 20px;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--clr-surface);
    color: var(--clr-text);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16), 0 0 0 1px var(--clr-border);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s, color .15s;
}

.ck-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.ck-to-top:hover {
    color: var(--ck-accent);
}

.ck-to-top__ring,
.ck-to-top__icon {
    grid-area: 1 / 1;
}

.ck-to-top__ring {
    width: 48px;
    height: 48px;
    transform: rotate(-90deg);
}

.ck-to-top__track,
.ck-to-top__bar {
    fill: none;
    stroke-width: 3;
}

.ck-to-top__track {
    stroke: var(--clr-border);
}

.ck-to-top__bar {
    stroke: var(--ck-accent);
    stroke-linecap: round;
    transition: stroke-dashoffset .1s linear;
}

/* Phones: sit above AdSense anchor ads so the two never overlap */
@media (max-width: 767px) {
    .ck-to-top {
        right: 14px;
        bottom: calc(96px + env(safe-area-inset-bottom, 0px));
        width: 44px;
        height: 44px;
    }

    .ck-to-top__ring {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ck-to-top,
    .ck-to-top__bar {
        transition: none;
    }
}

/* Share buttons after the post: never truncate names (7 networks incl. Pinterest) */
.ck-article-social-card .ck-sidebar-social-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
}

.ck-article-social-card .ck-sidebar-social-item {
    flex: 1 1 calc(25% - 10px);
    min-width: 0;
    justify-content: center;
    min-height: 44px;
}

.ck-sidebar-social-name {
    white-space: nowrap;
    overflow: visible !important;
    text-overflow: clip !important;
}

@media (max-width: 767px) {
    .ck-article-social-card .ck-sidebar-social-item {
        flex-basis: calc(50% - 10px);
    }
}
