/* ==========================================================================
   Fernando Gomes Tech - Ghost Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800;900&family=JetBrains+Mono:wght@400;700&display=swap');

/* Reset
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base
   ========================================================================== */

body {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Status Bar
   ========================================================================== */

.status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 48px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    gap: 12px;
}

.status-bar .social-icons {
    display: flex;
    gap: 14px;
    align-items: center;
}

.status-bar .social-icons a svg {
    width: 21px;
    height: 21px;
    fill: #64748b;
    display: block;
}

.status-bar .social-icons a:hover svg {
    fill: #0f172a;
}

.status-mobile {
    display: none;
}

.status-bar .server-status {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
    font-family: "JetBrains Mono", monospace;
    color: #64748b;
    letter-spacing: 0.04em;
    margin-left: auto;
    flex-shrink: 0;
}

/* Main Navigation
   ========================================================================== */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 48px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 11px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border: 2.5px solid #0f172a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    fill: #0f172a;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .brand {
    font-size: 19.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f172a;
    line-height: 1.15;
}

.logo-text .author {
    font-size: 13.5px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a.active,
.nav-links li.nav-current a {
    color: #0f172a;
    font-weight: 700;
    border-bottom: 3px solid #0f172a;
    padding-bottom: 4px;
}

.nav-links a:hover {
    color: #0f172a;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-actions button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
}

.nav-actions button svg {
    width: 20px;
    height: 20px;
    stroke: #475569;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-actions button:hover svg {
    stroke: #0f172a;
}

/* Hero
   ========================================================================== */

.hero {
    padding: 50px 48px;
    border-bottom: 1px solid #e5e7eb;
}

.hero h1 {
    font-size: clamp(40px, 5.5vw, 63px);
    font-weight: 900;
    line-height: 1.05;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin-bottom: 22px;
    max-width: 860px;
}

.hero p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.65;
    max-width: 580px;
}

/* Content Area
   ========================================================================== */

.content-area {
    display: grid;
    grid-template-columns: 1fr 380px;
}

.articles-feed {
    padding: 36px 48px 48px 48px;
    border-right: 1px solid #e5e7eb;
}

/* Filter Tabs
   ========================================================================== */

.filter-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 36px;
    border-bottom: 1px solid #e5e7eb;
}

.filter-tabs button {
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #94a3b8;
    background: none;
    border: none;
    padding-bottom: 12px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
    font-family: inherit;
}

.filter-tabs button.active {
    color: #0f172a;
    border-bottom-color: #0f172a;
}

.filter-tabs button:hover {
    color: #0f172a;
}

/* Article Card
   ========================================================================== */

.article-card {
    padding: 38px 0;
    border-bottom: 1px solid #e5e7eb;
}

.article-card:last-child {
    border-bottom: none;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
}

.article-meta svg {
    width: 18px;
    height: 18px;
    color: #3b82f6;
    flex-shrink: 0;
}

.article-meta .category {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #3b82f6;
}

.article-meta .sep {
    color: #cbd5e1;
    font-size: 13px;
}

.article-meta .date {
    font-size: 13px;
    color: #94a3b8;
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.04em;
}

.article-meta .readtime {
    font-size: 13px;
    color: #94a3b8;
}

.article-card h2 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    letter-spacing: -0.015em;
    margin-bottom: 12px;
}

.article-card h2:hover {
    color: #3b82f6;
}

.article-card > p {
    font-size: 18px;
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 18px;
}

.tag-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 3px;
    transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
    border-color: #94a3b8;
    color: #0f172a;
}

/* Sidebar
   ========================================================================== */

.sidebar {
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Newsletter Widget
   ========================================================================== */

.newsletter-widget {
    background: #0f172a;
    color: #fff;
    padding: 26px 22px;
    border-radius: 6px;
}

.newsletter-widget h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.3;
}

.newsletter-widget p {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
    line-height: 1.55;
}

.newsletter-widget input[type="email"] {
    width: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    padding: 10px 13px;
    font-size: 13px;
    border-radius: 4px;
    margin-bottom: 9px;
    outline: none;
    font-family: inherit;
}

.newsletter-widget input[type="email"]::placeholder {
    color: #475569;
}

.newsletter-widget input[type="email"]:focus {
    border-color: #3b82f6;
}

.newsletter-widget button {
    width: 100%;
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 11px 14px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.newsletter-widget button:hover {
    background: #2563eb;
}

/* Hot Topics
   ========================================================================== */

.hot-topics h4,
.author-widget h4 {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 15px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tags-cloud .tag-item {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 6px 11px;
    border-radius: 3px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    display: inline-block;
}

.tags-cloud .tag-item:hover {
    border-color: #94a3b8;
    color: #0f172a;
}

/* Author Widget
   ========================================================================== */

.author-widget blockquote {
    font-size: 14.5px;
    font-style: italic;
    color: #334155;
    line-height: 1.75;
    margin-bottom: 18px;
    border-left: 3px solid #e2e8f0;
    padding-left: 14px;
}

.bio-link {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.bio-link:hover {
    color: #3b82f6;
}

/* Pagination
   ========================================================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px 0 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 10px;
}

.pagination a {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0f172a;
    transition: color 0.2s;
}

.pagination a:hover {
    color: #3b82f6;
}

.pagination-info {
    font-size: 11px;
    color: #94a3b8;
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.04em;
}

/* Post Page
   ========================================================================== */

.post-full {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 48px;
}

.post-header {
    padding: 60px 0 40px;
}

.post-header .article-meta {
    margin-bottom: 20px;
}

.post-title {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 900;
    line-height: 1.1;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
}

.post-excerpt {
    font-size: 17px;
    color: #64748b;
    line-height: 1.65;
}

/* Feature Image
   ========================================================================== */

.post-feature-image {
    margin-bottom: 40px;
    border-radius: 6px;
    overflow: hidden;
}

.post-feature-image img {
    width: 100%;
    display: block;
}

.post-feature-image figcaption {
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    padding: 10px 0;
    font-family: "JetBrains Mono", monospace;
}

/* Ghost Content
   ========================================================================== */

.gh-content {
    font-size: 17px;
    line-height: 1.75;
    color: #1e293b;
    padding-bottom: 48px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 48px;
}

.gh-content h2 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    letter-spacing: -0.015em;
    margin: 48px 0 16px;
}

.gh-content h3 {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    margin: 36px 0 12px;
}

.gh-content p {
    margin-bottom: 24px;
}

.gh-content a {
    color: #3b82f6;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gh-content a:hover {
    color: #2563eb;
}

.gh-content blockquote {
    border-left: 3px solid #3b82f6;
    padding-left: 20px;
    margin: 32px 0;
    font-style: italic;
    color: #334155;
}

.gh-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 24px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 32px 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    line-height: 1.7;
}

.gh-content code {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9em;
}

.gh-content :not(pre) > code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 3px;
    color: #0f172a;
}

.gh-content ul,
.gh-content ol {
    padding-left: 24px;
    margin-bottom: 24px;
}

.gh-content li {
    margin-bottom: 8px;
}

.gh-content img {
    border-radius: 6px;
    margin: 32px 0;
}

.gh-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 48px 0;
}

.gh-content figure {
    margin: 32px 0;
}

.gh-content figcaption {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    margin-top: 10px;
    font-family: "JetBrains Mono", monospace;
}

/* Post Author Card
   ========================================================================== */

.post-author-card {
    display: flex;
    gap: 20px;
    padding: 32px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 48px;
}

.post-author-card .author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar-placeholder svg {
    width: 28px;
    height: 28px;
    stroke: #94a3b8;
}

.author-avatar-placeholder.large {
    width: 80px;
    height: 80px;
}

.author-avatar-placeholder.large svg {
    width: 36px;
    height: 36px;
}

.author-info h4 {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.author-info h4 a:hover {
    color: #3b82f6;
}

.author-info p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 8px;
}

.author-social {
    display: flex;
    gap: 16px;
}

.author-social a {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3b82f6;
}

.author-social a:hover {
    color: #2563eb;
}

/* Related Posts
   ========================================================================== */

.related-posts {
    padding-bottom: 60px;
}

.related-title {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.related-card {
    padding: 20px 0;
}

.related-card .article-meta {
    margin-bottom: 10px;
}

.related-card h4 {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    margin-bottom: 8px;
}

.related-card h4:hover {
    color: #3b82f6;
}

.related-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

/* Author Page
   ========================================================================== */

.author-profile {
    display: flex;
    align-items: center;
    gap: 24px;
}

.author-profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-profile-info h1 {
    font-size: clamp(28px, 4vw, 42px);
}

.author-bio {
    font-size: 16px;
    color: #64748b;
    line-height: 1.65;
    margin-top: 8px;
}

.author-social-links {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

/* Error Page
   ========================================================================== */

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 48px;
    text-align: center;
}

.error-code {
    font-size: clamp(60px, 10vw, 120px);
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 16px;
}

.error-message {
    font-size: 17px;
    color: #64748b;
    margin-bottom: 28px;
}

.error-link {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.error-link:hover {
    color: #3b82f6;
}

/* Footer
   ========================================================================== */

.site-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 64px 48px;
    box-sizing: border-box;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    gap: 0;
    align-items: start;
}

.footer-nav {
    text-align: center;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-tech {
    text-align: right;
}

.footer-brand .logo-area {
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 14px;
    color: #64748b;
    line-height: 1.65;
}

.footer-nav h5,
.footer-tech h5 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 18px;
}

.footer-tech h5 {
    text-align: right;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav ul li a {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #475569;
    transition: color 0.2s;
}

.footer-nav ul li a:hover {
    color: #0f172a;
}

.footer-tech {
    text-align: right;
}

.footer-tech p {
    font-size: 12.5px;
    font-family: "JetBrains Mono", monospace;
    color: #94a3b8;
    line-height: 1.9;
    letter-spacing: 0.02em;
}

/* Dark Mode
   ========================================================================== */

body.dark-mode {
    background-color: #0A0A0A;
    color: #e2e8f0;
}

body.dark-mode .status-bar {
    background: #0A0A0A;
    border-bottom-color: #1e293b;
}

body.dark-mode .status-bar .social-icons a svg {
    fill: #94a3b8;
}

body.dark-mode .status-bar .social-icons a:hover svg {
    fill: #e2e8f0;
}

body.dark-mode .main-nav {
    background: #0A0A0A;
    border-bottom-color: #1e293b;
}

body.dark-mode .logo-icon {
    border-color: #e2e8f0;
}

body.dark-mode .logo-icon svg {
    fill: #e2e8f0;
}

body.dark-mode .logo-text .brand {
    color: #e2e8f0;
}

body.dark-mode .logo-text .author {
    color: #94a3b8;
}

body.dark-mode .nav-links a {
    color: #94a3b8;
}

body.dark-mode .nav-links a.active,
body.dark-mode .nav-links li.nav-current a,
body.dark-mode .nav-links a:hover {
    color: #e2e8f0;
}

body.dark-mode .nav-links a.active,
.nav-links li.nav-current a {
    border-bottom-color: #e2e8f0;
}

body.dark-mode .nav-actions button svg {
    stroke: #94a3b8;
}

body.dark-mode .nav-actions button:hover svg {
    stroke: #e2e8f0;
}

body.dark-mode .hero {
    border-bottom-color: #1e293b;
}

body.dark-mode .hero h1 {
    color: #e2e8f0;
}

body.dark-mode .hero p {
    color: #94a3b8;
}

body.dark-mode .articles-feed {
    border-right-color: #1e293b;
}

body.dark-mode .filter-tabs {
    border-bottom-color: #1e293b;
}

body.dark-mode .filter-tabs button {
    color: #64748b;
}

body.dark-mode .filter-tabs button.active {
    color: #e2e8f0;
    border-bottom-color: #e2e8f0;
}

body.dark-mode .filter-tabs button:hover {
    color: #e2e8f0;
}

body.dark-mode .article-card {
    border-bottom-color: #1e293b;
}

body.dark-mode .article-card h2 {
    color: #e2e8f0;
}

body.dark-mode .article-card h2:hover {
    color: #3b82f6;
}

body.dark-mode .article-card > p {
    color: #94a3b8;
}

body.dark-mode .tag {
    color: #94a3b8;
    border-color: #334155;
}

body.dark-mode .tag:hover {
    border-color: #64748b;
    color: #e2e8f0;
}

body.dark-mode .newsletter-widget {
    background: #1e293b;
}

body.dark-mode .newsletter-widget input[type="email"] {
    background: #0f172a;
    border-color: #334155;
}

body.dark-mode .tags-cloud .tag-item {
    color: #94a3b8;
    border-color: #334155;
}

body.dark-mode .tags-cloud .tag-item:hover {
    border-color: #64748b;
    color: #e2e8f0;
}

body.dark-mode .author-widget blockquote {
    color: #94a3b8;
}

body.dark-mode .bio-link {
    color: #e2e8f0;
}

body.dark-mode .bio-link:hover {
    color: #3b82f6;
}

body.dark-mode .site-footer {
    background: #0A0A0A;
    border-top-color: #1e293b;
}

body.dark-mode .footer-nav ul li a {
    color: #94a3b8;
}

body.dark-mode .footer-nav ul li a:hover {
    color: #e2e8f0;
}

body.dark-mode .footer-tagline {
    color: #94a3b8;
}

body.dark-mode .post-title {
    color: #e2e8f0;
}

body.dark-mode .post-excerpt {
    color: #94a3b8;
}

body.dark-mode .gh-content {
    color: #cbd5e1;
    border-bottom-color: #1e293b;
}

body.dark-mode .gh-content h2,
body.dark-mode .gh-content h3 {
    color: #e2e8f0;
}

body.dark-mode .gh-content blockquote {
    color: #94a3b8;
}

body.dark-mode .gh-content :not(pre) > code {
    background: #1e293b;
    color: #e2e8f0;
}

body.dark-mode .gh-content hr {
    border-top-color: #1e293b;
}

body.dark-mode .post-author-card {
    border-bottom-color: #1e293b;
}

body.dark-mode .author-info h4 {
    color: #e2e8f0;
}

body.dark-mode .author-info p {
    color: #94a3b8;
}

body.dark-mode .author-avatar-placeholder {
    background: #1e293b;
}

body.dark-mode .related-card h4 {
    color: #e2e8f0;
}

body.dark-mode .related-card h4:hover {
    color: #3b82f6;
}

body.dark-mode .related-card p {
    color: #94a3b8;
}

body.dark-mode .pagination {
    border-top-color: #1e293b;
}

body.dark-mode .pagination a {
    color: #e2e8f0;
}

body.dark-mode .pagination a:hover {
    color: #3b82f6;
}

body.dark-mode .error-code {
    color: #e2e8f0;
}

body.dark-mode .error-link {
    color: #e2e8f0;
}

body.dark-mode .error-link:hover {
    color: #3b82f6;
}

body.dark-mode .sep {
    color: #334155;
}

/* Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .content-area {
        grid-template-columns: 1fr;
    }

    .articles-feed {
        border-right: none;
    }

    .sidebar {
        border-top: 1px solid #e5e7eb;
    }

    body.dark-mode .sidebar {
        border-top-color: #1e293b;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .author-profile {
        flex-direction: column;
        text-align: center;
    }

    .author-social-links {
        justify-content: center;
    }
}


@media (max-width: 768px) {

    /* Logo responsive */
    .logo-text .brand {
        font-size: 16px;
    }
    .logo-text .author {
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    .logo-text .brand {
        font-size: 14px;
    }
    .logo-text .author {
        font-size: 10px;
    }
    .status-bar {
        padding: 7px 20px;
        font-size: 11px;
    }

    .main-nav {
        padding: 14px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 48px 20px;
    }

    .articles-feed {
        padding: 24px 20px 36px;
    }

    .sidebar {
        padding: 24px 20px;
    }

    .post-full {
        padding: 0 20px;
    }

    .site-footer {
        padding: 40px 20px;
    }

    .post-author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-social {
        justify-content: center;
    }
}

/* ============================================
   KOENIG EDITOR — Required classes
   ============================================ */
.kg-width-wide {
    margin-left: calc(50% - 50vw + 2rem);
    margin-right: calc(50% - 50vw + 2rem);
    max-width: 100vw;
}

.kg-width-full {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
}

.kg-image { max-width: 100%; height: auto; }

.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }

.kg-bookmark-card { width: 100%; margin-top: 1.5em; }
.kg-bookmark-container {
    display: flex; min-height: 148px; color: inherit;
    border: 1px solid #e2e8f0; border-radius: 4px; text-decoration: none;
}
.kg-bookmark-content { padding: 20px; flex-grow: 1; }
.kg-bookmark-title { font-size: 15px; font-weight: 700; color: #0f172a; }
.kg-bookmark-description { font-size: 13px; color: #64748b; margin-top: 6px; }
.kg-bookmark-metadata { display: flex; align-items: center; margin-top: 10px; font-size: 12px; color: #94a3b8; }
.kg-bookmark-thumbnail img { max-width: 160px; border-radius: 0 4px 4px 0; object-fit: cover; }

.kg-callout-card { border-radius: 4px; padding: 20px; border: 1px solid #e2e8f0; margin: 1.5em 0; }
.kg-callout-emoji { margin-right: 10px; }
.kg-toggle-card { border: 1px solid #e2e8f0; border-radius: 4px; margin: 1.5em 0; }
.kg-toggle-heading-text { padding: 16px 20px; font-weight: 700; cursor: pointer; }
.kg-toggle-content { padding: 0 20px 16px; }

.kg-video-card { position: relative; margin: 1.5em 0; }
.kg-video-card video { width: 100%; border-radius: 4px; }

.kg-audio-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 4px; padding: 16px; margin: 1.5em 0; }
.kg-audio-card audio { width: 100%; }

.kg-file-card { border: 1px solid #e2e8f0; border-radius: 4px; padding: 16px; margin: 1.5em 0; }
.kg-file-card-container { display: flex; align-items: center; gap: 12px; }

.kg-product-card { border: 1px solid #e2e8f0; border-radius: 4px; padding: 20px; margin: 1.5em 0; }

.kg-header-card { padding: 48px; text-align: center; margin: 1.5em 0; background: #0f172a; color: #fff; border-radius: 4px; }

.dark-mode .kg-bookmark-container,
.dark-mode .kg-callout-card,
.dark-mode .kg-toggle-card,
.dark-mode .kg-file-card,
.dark-mode .kg-product-card,
.dark-mode .kg-audio-card {
    border-color: #334155;
}

@media (max-width: 600px) {
    .article-card h2 {
        font-size: 20px;
    }
    .article-card > p {
        font-size: 15px;
    }
    .article-meta .category {
        font-size: 11px;
    }
    .filter-tabs button {
        font-size: 12px;
        letter-spacing: 0.08em;
    }
    .status-bar .social-icons a svg {
        width: 18px;
        height: 18px;
    }
    .status-bar .server-status {
        font-size: 11px;
        gap: 10px;
        white-space: nowrap;
    }
    .status-bar .server-status .status-desktop {
        display: none;
    }
    .status-bar .server-status .status-mobile {
        display: inline;
    }
}
/* Tag Icons — per-slug via CSS mask-image
   ========================================================================== */

.tag-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-color: #64748b;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

/* leadership: person */
.tag-icon-leadership {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

/* architecture: code brackets */
.tag-icon-architecture {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E");
}

/* ai-strategy: sparkle/sun */
.tag-icon-ai-strategy {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 1v4M12 19v4M4.22 4.22l2.83 2.83M16.95 16.95l2.83 2.83M1 12h4M19 12h4M4.22 19.78l2.83-2.83M16.95 7.05l2.83-2.83'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 1v4M12 19v4M4.22 4.22l2.83 2.83M16.95 16.95l2.83 2.83M1 12h4M19 12h4M4.22 19.78l2.83-2.83M16.95 7.05l2.83-2.83'/%3E%3C/svg%3E");
}

/* news: newspaper */
.tag-icon-news {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 0-2 2zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2'/%3E%3Cpath d='M18 14h-8M15 18h-5M10 6h8v4h-8z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 0-2 2zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2'/%3E%3Cpath d='M18 14h-8M15 18h-5M10 6h8v4h-8z'/%3E%3C/svg%3E");
}

/* automacao: settings/gear */
.tag-icon-automacao {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14M4.93 4.93a10 10 0 0 0 0 14.14'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14M4.93 4.93a10 10 0 0 0 0 14.14'/%3E%3C/svg%3E");
}

/* fallback: tag icon */
.tag-icon:not([class*="tag-icon-"]),
.tag-icon-teste,
.tag-icon-default {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
}

