/*
Theme Name: Tippr Publication
Theme URI: https://techtip.org
Description: Premium, mobile-first publication theme for Techtip built from the working Techtip base theme.
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: techtippr
*/

:root {
    --bg-color: #f3f6fb;
    --surface-color: #ffffff;
    --surface-soft: #f8fbff;
    --surface-strong: #eef3fb;
    --text-color: #10213a;
    --text-muted: #63748d;
    --border-color: #dce5f0;
    --brand-primary: #1f6fff;
    --brand-accent: #12b76a;
    --brand-warm: #ff8a3d;
    --accent-color: var(--brand-primary);
    --accent-gradient: linear-gradient(135deg, #1f6fff, #54a3ff);
    --shadow-soft: 0 18px 45px rgba(16, 33, 58, 0.08);
    --shadow-card: 0 10px 30px rgba(16, 33, 58, 0.06);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container-width: 1320px;
}

[data-theme='dark'] {
    --bg-color: #09111f;
    --surface-color: #111c2d;
    --surface-soft: #162437;
    --surface-strong: #1b2a41;
    --text-color: #f5f8ff;
    --text-muted: #9db0cc;
    --border-color: #24354d;
    --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.35);
    --shadow-card: 0 12px 28px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(31, 111, 255, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 138, 61, 0.06), transparent 24%),
        var(--bg-color);
    color: var(--text-color);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(100% - 32px, var(--container-width));
    margin: 0 auto;
}

.site-main { padding-bottom: 120px; }
.homepage-shell { padding-top: 24px; }
.generic-page-wrap { padding: 40px 0 80px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    backdrop-filter: blur(18px);
    background: rgba(243, 246, 251, 0.86);
    border-bottom: 1px solid rgba(220, 229, 240, 0.8);
}
[data-theme='dark'] .site-header {
    background: rgba(9, 17, 31, 0.84);
    border-bottom-color: rgba(36, 53, 77, 0.9);
}
.utility-bar {
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(220, 229, 240, 0.8);
}
.utility-bar-inner,
.header-shell {
    display: flex;
    align-items: center;
}
.utility-bar-inner {
    gap: 14px;
    min-height: 42px;
}
.utility-label {
    color: var(--brand-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.utility-ticker {
    display: flex;
    gap: 12px;
    white-space: nowrap;
    overflow: auto;
    scrollbar-width: none;
}
.utility-ticker::-webkit-scrollbar { display: none; }
.utility-item { color: var(--text-muted); }
.utility-sep { color: var(--brand-warm); }

.header-shell {
    min-height: 88px;
    justify-content: space-between;
    gap: 24px;
}
.site-title,
.footer-wordmark {
    font-size: clamp(1.8rem, 2vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}
.custom-logo { max-height: 56px; width: auto; }
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
}
.main-navigation a {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.main-navigation .current-menu-item > a,
.main-navigation a:hover {
    color: var(--brand-primary);
    background: rgba(31, 111, 255, 0.09);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-icon-btn {
    width: 46px;
    height: 46px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--surface-color);
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}
.header-icon-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0;
    flex-direction: column;
    gap: 4px;
}
.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}
.theme-icon { display: none; }
[data-theme='light'] #icon-moon,
[data-theme='dark'] #icon-sun { display: block; }

.site-search-panel {
    border-top: 1px solid rgba(220, 229, 240, 0.8);
    background: transparent;
}
.site-search-inner { padding: 0 0 18px; }
.search-form {
    display: flex;
    gap: 12px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--shadow-card);
}
.search-field {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text-color);
}
.search-field::placeholder {
    color: var(--text-soft, var(--text-muted));
}
.search-submit,
.hero-cta,
.newsletter-form button {
    border: 0;
    border-radius: 14px;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 24px rgba(31, 111, 255, 0.25);
}
.search-submit { padding: 0 20px; }
.theme-toggle { overflow: hidden; }

.homepage-ad-slot,
.footer-ad-slot {
    margin: 0 0 24px;
    padding: 14px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.hero-section { margin-bottom: 24px; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    gap: 22px;
}
.hero-feature-card {
    position: relative;
    min-height: 520px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.hero-media-link,
.hero-image,
.hero-overlay { position: absolute; inset: 0; }
.hero-image { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    background: linear-gradient(180deg, rgba(7, 11, 20, 0.05) 0%, rgba(7, 11, 20, 0.55) 55%, rgba(7, 11, 20, 0.86) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
    padding: 40px;
    color: #fff;
}
.category-badge,
.hero-side-badge,
.card-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(31, 111, 255, 0.92);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.post-category {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--brand-primary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.hero-title {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}
.hero-excerpt {
    max-width: 70%;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.02rem;
}
.hero-meta,
.article-card-meta,
.hero-side-meta,
.post-meta,
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}
.hero-meta { color: rgba(255, 255, 255, 0.78); }
.meta-sep { opacity: 0.6; }
.hero-cta {
    align-self: flex-start;
    padding: 14px 22px;
}

.hero-side-stack {
    display: grid;
    gap: 16px;
}
.hero-side-card,
.quick-topic-chip,
.article-card,
.explore-card,
.widget,
.grid-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}
.hero-side-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    align-items: center;
}
.hero-side-card h2 a,
.hero-side-card h2 {
    color: var(--text-color);
}
.hero-side-meta {
    color: var(--text-soft, var(--text-muted));
}
.hero-side-body {
    min-width: 0;
}
.hero-side-body h2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-side-thumb { border-radius: 14px; overflow: hidden; }
.hero-side-thumb { aspect-ratio: 4 / 3; }
.hero-side-image { width: 100%; height: 92px; object-fit: cover; }
.hero-side-card h2 {
    margin: 6px 0 8px;
    font-size: 1.04rem;
    line-height: 1.28;
}
.hero-side-badge {
    background: rgba(18, 183, 106, 0.12);
    color: var(--brand-accent);
}

.quick-topic-section { margin-bottom: 24px; }
.quick-topic-row {
    display: flex;
    gap: 12px;
    overflow: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.quick-topic-row::-webkit-scrollbar { display: none; }
.quick-topic-chip {
    min-width: 148px;
    padding: 16px 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}
.quick-topic-icon,
.explore-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}
.quick-topic-icon {
    background: rgba(31, 111, 255, 0.1);
    color: var(--brand-primary);
}
[data-theme='dark'] .quick-topic-chip,
[data-theme='dark'] .explore-card,
[data-theme='dark'] .hero-side-card,
[data-theme='dark'] .article-card,
[data-theme='dark'] .widget,
[data-theme='dark'] .homepage-section,
[data-theme='dark'] .category-showcase {
    background: linear-gradient(180deg, var(--surface-soft), var(--surface-color));
    border-color: rgba(148, 163, 184, 0.16);
}
[data-theme='dark'] .hero-side-card h2 a,
[data-theme='dark'] .hero-title a,
[data-theme='dark'] .quick-topic-chip,
[data-theme='dark'] .quick-topic-chip:visited,
[data-theme='dark'] .article-card-title a,
[data-theme='dark'] .explore-card h3,
[data-theme='dark'] .section-heading h2 {
    color: #f8fafc;
}
[data-theme='dark'] .article-card-excerpt,
[data-theme='dark'] .explore-card p,
[data-theme='dark'] .hero-side-meta,
[data-theme='dark'] .article-card-meta,
[data-theme='dark'] .post-meta,
[data-theme='dark'] .explore-count {
    color: #cbd5e1;
}
[data-theme='dark'] .quick-topic-icon,
[data-theme='dark'] .explore-card-icon {
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
}
[data-theme='dark'] .quick-topic-chip:hover,
[data-theme='dark'] .explore-card:hover,
[data-theme='dark'] .widget:hover {
    border-color: rgba(96, 165, 250, 0.34);
}

.homepage-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}
.homepage-section,
.category-showcase {
    margin-bottom: 24px;
    padding: 28px;
    background: linear-gradient(180deg, var(--surface-soft), var(--surface-color));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
.category-showcase {
    background: linear-gradient(180deg, var(--section-soft-bg, var(--surface-soft)), var(--surface-color));
}
.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 22px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
.section-title { margin: 0; }
.section-view-all { color: var(--brand-primary); font-weight: 800; }
.section-heading h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    letter-spacing: -0.04em;
}
.section-kicker {
    margin: 0 0 6px;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 800;
}
.section-link {
    color: var(--brand-primary);
    font-weight: 800;
}

.article-grid,
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.article-card,
.grid-item {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.article-card:hover,
.grid-item:hover,
.hero-side-card:hover,
.quick-topic-chip:hover,
.explore-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(16, 33, 58, 0.12);
    border-color: rgba(31, 111, 255, 0.34);
}
.article-card-media,
.post-thumbnail-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.article-card-image,
.post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
}
.article-card-body,
.post-content-container {
    padding: 18px;
}
.article-card-title,
.post-title {
    margin: 0 0 10px;
    font-size: 1.14rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.article-card-excerpt {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 0.94rem;
}
.compact-cards .article-card-excerpt { display: none; }

.site-sidebar {
    position: sticky;
    top: 108px;
    display: grid;
    gap: 18px;
    align-self: start;
    align-content: start;
    height: fit-content;
}
.sidebar-card,
.widget {
    padding: 22px;
    height: auto;
    align-self: start;
    min-height: 0;
}
.widget-title {
    margin: 0 0 16px;
    font-size: 1.1rem;
    letter-spacing: -0.03em;
    color: var(--text-color);
}
.sidebar-trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}
.sidebar-trending-list li {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
.trend-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 111, 255, 0.12);
    color: var(--brand-primary);
    font-weight: 800;
}
.newsletter-card p { color: var(--text-muted); }
.newsletter-form {
    display: grid;
    gap: 10px;
}
.newsletter-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--text-color);
}
.newsletter-form button {
    padding: 14px 18px;
}
.popular-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag-chip,
.tag-pill,
.post-tags-container a {
    display: inline-flex;
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 700;
}
[data-theme='dark'] .widget-title,
[data-theme='dark'] .sidebar-trending-list a,
[data-theme='dark'] .newsletter-card p,
[data-theme='dark'] .tag-chip,
[data-theme='dark'] .tag-pill,
[data-theme='dark'] .popular-tag-cloud a,
[data-theme='dark'] .sidebar-ad-slot,
[data-theme='dark'] .widget {
    color: #f8fafc;
}
[data-theme='dark'] .tag-chip,
[data-theme='dark'] .tag-pill,
[data-theme='dark'] .popular-tag-cloud a {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.16);
}
[data-theme='dark'] .trend-rank {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.explore-card {
    display: flex;
    gap: 14px;
    padding: 20px;
}
.explore-card-icon {
    flex-shrink: 0;
    background: rgba(255, 138, 61, 0.14);
    color: var(--brand-warm);
}
.explore-card h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}
.explore-card p {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-size: 0.93rem;
}
.explore-count {
    color: var(--brand-primary);
    font-weight: 800;
    font-size: 0.88rem;
}

.site-footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 28px 0 96px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 24px;
    padding-top: 18px;
}
.footer-description,
.footer-newsletter-cta {
    color: var(--text-muted);
}
.footer-title {
    margin: 0 0 16px;
    font-size: 1rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.footer-links a { color: var(--text-muted); }
.footer-bottom {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pagination-block { margin-top: 30px; }
.pagination .page-numbers {
    display: inline-flex;
    margin: 0 6px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
}
.pagination .current {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.single-layout-container,
.homepage-layout-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}
.single-article,
.entry-content,
.entry-thumbnail-wrapper,
.entry-meta,
.entry-title,
.entry-content p,
.entry-content h2,
.entry-content h3,
.entry-content pre,
.entry-content table,
.entry-content blockquote,
.article-separator,
.search-results-wrap,
.archive-feed {
    max-width: 100%;
}
.entry-title {
    margin: 0 0 20px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}
.entry-header-premium {
    padding: 24px 0 16px;
}
.entry-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    grid-template-areas:
        "copy side"
        "actions side";
    gap: 28px;
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(31, 111, 255, 0.08), transparent 34%),
        linear-gradient(180deg, var(--surface-soft), var(--surface-color));
    box-shadow: var(--shadow-soft);
    align-items: start;
}
.entry-hero-copy {
    grid-area: copy;
    min-width: 0;
}
.entry-hero-side {
    grid-area: side;
    display: grid;
    gap: 16px;
    align-self: start;
}
.entry-hero-media {
    min-height: 0;
    aspect-ratio: 3 / 2;
    min-height: 300px;
    max-height: 420px;
    border-radius: 22px;
    overflow: hidden;
    background: var(--surface-soft);
    align-self: start;
}
.entry-feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.96) contrast(1.01);
}
.entry-thumbnail-wrapper {
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    overflow: hidden;
}
.entry-hook {
    margin: 0 0 24px;
    max-width: 760px;
    color: var(--text-muted);
    font-size: clamp(1.02rem, 2vw, 1.18rem);
    line-height: 1.7;
}
.entry-meta-premium {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--surface-soft), var(--surface-color));
}
.entry-author-block,
.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar,
.author-avatar-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(31, 111, 255, 0.14);
    object-fit: cover;
    flex-shrink: 0;
}
.author-avatar-small {
    width: 28px;
    height: 28px;
}
.entry-author-text {
    display: grid;
    gap: 2px;
}
.entry-author-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.entry-author-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-color);
}
.entry-meta-bits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.94rem;
    font-weight: 700;
}
.single-article .entry-start-guide,
.entry-hero-copy .entry-start-guide {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 14px;
    background: var(--brand-primary) !important;
    color: #fff !important;
    border: 1px solid rgba(31, 111, 255, 0.82);
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(31, 111, 255, 0.24);
}
.entry-hero-actions {
    grid-area: actions;
    align-self: end;
}
.single-article .entry-start-guide:hover,
.single-article .entry-start-guide:focus-visible,
.entry-hero-copy .entry-start-guide:hover,
.entry-hero-copy .entry-start-guide:focus-visible {
    color: #fff !important;
    background: var(--brand-primary) !important;
}
.entry-content {
    font-size: 1.08rem;
    color: var(--text-color);
    padding-inline: 4px;
}
.entry-content p { margin-bottom: 1.4em; }
.entry-content pre {
    overflow: auto;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    border: 1px solid var(--border-color);
}
.entry-hero-secondary {
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--surface-soft), var(--surface-color));
    box-shadow: var(--shadow-card);
}
.entry-hero-secondary-title {
    margin: 0 0 10px;
    font-size: 1.1rem;
}
.entry-hero-secondary-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.96rem;
}
.entry-hero-secondary-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}
.entry-hero-secondary-list li {
    position: relative;
    padding-left: 24px;
    color: var(--text-color);
    font-weight: 600;
}
.entry-hero-secondary-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand-accent);
    font-size: 1.2rem;
    line-height: 1;
}
.entry-hero-secondary-button {
    display: inline-flex;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 800;
}
.entry-hero-secondary-banner {
    display: block;
}
.entry-hero-secondary-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}
.entry-hero-secondary-ad {
    overflow: hidden;
}
.techtippr-toc {
    margin: 0 0 28px;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: linear-gradient(180deg, var(--surface-soft), var(--surface-color));
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.techtippr-toc-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    cursor: pointer;
    list-style: none;
}
.techtippr-toc-title {
    display: inline-grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    font-size: 1.12rem;
}
.techtippr-toc-title strong { display: block; }
.techtippr-toc-helper {
    display: block;
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 600;
}
.techtippr-toc-icon,
.techtippr-toc-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
}
.techtippr-toc-icon {
    width: 42px;
    height: 42px;
    background: rgba(31, 111, 255, 0.12);
    color: var(--brand-primary);
}
.techtippr-toc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
    white-space: nowrap;
    color: var(--brand-primary);
    font-size: 0.9rem;
    font-weight: 800;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.techtippr-toc-panel {
    overflow: hidden;
    transition: max-height .28s ease;
}
.techtippr-toc-panel[hidden] { display: none !important; }
.techtippr-toc.is-open .techtippr-toc-chevron {
    transform: rotate(180deg);
}
.techtippr-toc-chevron { transition: transform .24s ease; }
.single-article .techtippr-toc {
    width: 100%;
    max-width: none;
    margin: 4px 0 28px;
}
.single-article .techtippr-toc .techtippr-toc-header,
.single-article .techtippr-toc .techtippr-toc-panel,
.single-article .techtippr-toc .techtippr-toc-list {
    width: 100%;
}
.techtippr-toc-list {
    margin: 0;
    padding: 0 22px 22px;
    list-style: none;
    display: grid;
    gap: 12px;
}
.archive-page {
    padding-top: 24px;
    padding-bottom: 72px;
}
.archive-hero-card {
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(31, 111, 255, 0.10), transparent 32%),
        linear-gradient(135deg, var(--surface-soft), var(--surface-color));
    box-shadow: var(--shadow-soft);
}
[data-theme='dark'] .archive-hero-card {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(15,23,42,.96), rgba(17,24,39,.86));
}
.archive-kicker {
    margin: 0 0 8px;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .76rem;
    font-weight: 800;
}
.archive-title {
    margin: 0 0 12px;
    color: var(--text-color);
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.05em;
    line-height: 1.06;
}
.archive-description {
    margin: 0;
    max-width: 820px;
    color: var(--text-muted);
    font-size: 1.04rem;
}
.archive-badges,
.archive-topic-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.archive-badges { margin-top: 18px; }
.archive-badge {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--brand-soft, rgba(31,111,255,.1));
    color: var(--brand-primary);
    font-size: .82rem;
    font-weight: 700;
}
.archive-topic-row {
    margin-top: 20px;
    overflow: auto;
    scrollbar-width: none;
}
.archive-topic-row::-webkit-scrollbar { display: none; }
.archive-topic-chip,
.official-link-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: var(--text-color);
    font-weight: 700;
}
[data-theme='dark'] .archive-topic-chip,
[data-theme='dark'] .official-link-item {
    background: rgba(15, 23, 42, .54);
}
.archive-topic-icon,
.official-link-icon,
.quick-topic-icon,
.mobile-bottom-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 111, 255, 0.10);
    color: var(--brand-primary);
    flex-shrink: 0;
}
.quick-topic-icon svg,
.archive-topic-icon svg,
.official-link-icon svg,
.mobile-bottom-icon svg {
    width: 18px;
    height: 18px;
}
.ui-icon-image {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.ui-icon-text,
.ui-icon-emoji {
    font-size: .9rem;
    font-weight: 800;
    line-height: 1;
}
.archive-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 320px;
    gap: 24px;
    align-items: start;
}
.archive-layout.no-sidebar { grid-template-columns: 1fr; }
.archive-sidebar-shell {
    display: grid;
    gap: 18px;
}
.official-links-list {
    display: grid;
    gap: 10px;
}
.official-link-item {
    border-radius: 16px;
    justify-content: flex-start;
}
.archive-card-grid {
    display: grid;
    gap: 18px;
}
.archive-style-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.archive-style-standard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.archive-style-magazine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.archive-style-magazine .archive-article-card:first-child {
    grid-column: span 2;
}

.entry-content button[title="Listen to this"],
.entry-content a[title="Listen to this"],
.entry-content .tts-button,
.entry-content .read-aloud,
.entry-content [class*="read-aloud"],
.entry-content [class*="listen"],
.site-sidebar button[title="Listen to this"],
.site-sidebar a[title="Listen to this"],
.site-footer button[title="Listen to this"],
.site-footer a[title="Listen to this"],
.archive-page button[title="Listen to this"],
.archive-page a[title="Listen to this"] {
    display: none !important;
}
body.home button[title="Listen to this"],
body.home a[title="Listen to this"],
body.home [class*="read-aloud"],
body.home [class*="responsivevoice"],
body.home [id*="responsivevoice"],
body.home [class*="listen"],
body.front-page button[title="Listen to this"],
body.front-page a[title="Listen to this"],
body.front-page [class*="read-aloud"],
body.front-page [class*="responsivevoice"],
body.front-page [id*="responsivevoice"],
body.front-page [class*="listen"],
body.blog button[title="Listen to this"],
body.blog a[title="Listen to this"],
body.blog [class*="read-aloud"],
body.blog [class*="responsivevoice"],
body.blog [id*="responsivevoice"],
body.blog [class*="listen"] {
    display: none !important;
}

.is-hub-post .entry-content .tt-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 1.5rem 0 2rem;
}
.is-hub-post .entry-content .tt-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--surface-soft), var(--surface-color));
    box-shadow: var(--shadow-card);
    font-weight: 800;
    color: var(--text-color);
}
.is-hub-post .entry-content .tt-link-card-title {
    display: block;
    line-height: 1.4;
}
.is-hub-post .entry-content .tt-link-card-arrow {
    color: var(--brand-primary);
    font-size: 1.1rem;
}
.techtippr-toc-list a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--surface-color);
}
.techtippr-toc-number {
    width: 34px;
    height: 34px;
    background: rgba(18, 183, 106, 0.12);
    color: var(--brand-accent);
    font-size: 0.78rem;
}
.techtippr-toc-link-text {
    display: block;
    line-height: 1.5;
}
.techtippr-heading {
    scroll-margin-top: 110px;
}
.article-end-hub {
    display: grid;
    gap: 18px;
    margin-top: 34px;
}
.article-updates-card,
.article-related-card {
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--surface-soft), var(--surface-color));
    box-shadow: var(--shadow-card);
}
.article-end-kicker {
    margin: 0 0 8px;
    color: var(--brand-primary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.article-updates-card h2,
.article-related-card h2 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}
.article-updates-card p {
    margin: 0;
    color: var(--text-muted);
}
.article-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.related-mini-card {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--surface-color);
}
.related-mini-thumb {
    display: block;
    aspect-ratio: 16 / 9;
}
.related-mini-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-mini-body {
    padding: 14px;
}
.related-mini-badge {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--brand-primary);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.related-mini-card h3 {
    margin: 0 0 8px;
    font-size: 0.98rem;
    line-height: 1.4;
}
.related-mini-meta {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
}
.article-gap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0 54px;
    min-height: 72px;
}
.article-gap-label {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface-color);
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.mobile-bottom-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 140;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 40px rgba(16, 33, 58, 0.16);
}
[data-theme='dark'] .mobile-bottom-nav { background: rgba(17, 28, 45, 0.94); }
.mobile-bottom-link {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 8px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
}
.mobile-bottom-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hide-mobile-ads {}

@media (max-width: 1080px) {
    .hero-grid,
    .homepage-content-grid,
    .single-layout-container,
    .homepage-layout-container,
    .footer-grid,
    .explore-grid {
        grid-template-columns: 1fr;
    }
    .site-sidebar,
    .archive-layout { position: static; grid-template-columns: 1fr; }
    .archive-style-compact,
    .archive-style-standard,
    .archive-style-magazine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-related-grid { grid-template-columns: 1fr; }
    .entry-hero-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "side"
            "actions";
    }
    .single-article .techtippr-toc {
        max-width: none;
        margin: 0 0 28px;
    }
}

@media (max-width: 820px) {
    .header-shell {
        min-height: 74px;
        gap: 14px;
    }
    .main-navigation {
        justify-content: flex-end;
        flex: 0;
    }
    .menu-toggle { display: inline-flex; }
    .main-navigation ul {
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        padding: 14px;
        border: 1px solid var(--border-color);
        border-radius: 18px;
        background: var(--surface-color);
        box-shadow: var(--shadow-soft);
        display: none;
        flex-direction: column;
    }
    .main-navigation.toggled ul { display: flex; }
    .hero-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 4px;
    }
    .hero-feature-card,
    .hero-side-stack {
        min-width: min(86vw, 340px);
        scroll-snap-align: start;
    }
    .hero-side-stack { display: grid; gap: 12px; }
    .hero-feature-card { min-height: 460px; }
    .hero-excerpt { max-width: 100%; }
    .article-grid,
    .post-grid,
    .explore-grid { grid-template-columns: 1fr; }
    .article-card,
    .grid-item {
        display: grid;
        grid-template-columns: 140px minmax(0, 1fr);
    }
    .article-card-media,
    .post-thumbnail-link {
        aspect-ratio: 16 / 9;
        align-self: center;
        margin-left: 12px;
    }
    .article-card-image,
    .post-thumbnail {
        min-height: 100%;
        border-radius: 12px;
    }
    .card-badge {
        top: 10px;
        left: 10px;
        padding: 5px 9px;
        font-size: 0.68rem;
    }
    .site-footer { padding-bottom: 130px; }
    .mobile-bottom-nav { display: grid; }
    .is-hub-post .entry-content .tt-link-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 28px, var(--container-width)); }
    .utility-bar { display: none; }
    .header-icon-btn { width: 42px; height: 42px; }
    .hero-content { padding: 24px; }
    .hero-title { font-size: 2rem; }
    .hero-cta { width: 100%; justify-content: center; text-align: center; }
    .homepage-section,
    .category-showcase,
    .widget { padding: 18px; }
    .section-heading {
        align-items: start;
        flex-direction: column;
    }
    .quick-topic-chip { min-width: 132px; padding: 14px; }
    .article-card-title,
    .post-title { font-size: 1rem; }
    .hide-mobile-ads { display: none; }
    .archive-style-compact,
    .archive-style-standard,
    .archive-style-magazine { grid-template-columns: 1fr; }
    .archive-style-magazine .archive-article-card:first-child { grid-column: auto; }
    .entry-meta-premium {
        align-items: flex-start;
        flex-direction: column;
    }
    .entry-start-guide {
        width: 100%;
        justify-content: center;
    }
    .entry-hero-card { padding: 18px; }
    .entry-hero-media {
        aspect-ratio: 16 / 9;
        min-height: auto;
        max-height: none;
    }
    .entry-content {
        padding-inline: 2px;
    }
    .techtippr-toc-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 16px 18px;
    }
    .techtippr-toc-title {
        font-size: 1rem;
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
    }
    .techtippr-toc-icon {
        width: 36px;
        height: 36px;
    }
}
