/* =============================================================================
   THE COMPLEX BYTES — Ghost Theme
   screen.css v1.0.0
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800&family=Source+Sans+3:wght@400;600&display=swap');

/* =============================================================================
   VARIABLES
   ============================================================================= */

:root {
    --color-navy:        #0A1628;
    --color-navy-mid:    #0D2244;
    --color-navy-dark:   #132035;
    --color-navy-deepest:#05090F;
    --color-blue:        #4FC3F7;
    --color-blue-mid:    #378ADD;
    --color-orange:      #F5A623;
    --color-orange-dark: #E87832;
    --color-white:       #FFFFFF;
    --color-light:       #F0F4F8;
    --color-light-2:     #E4EBF3;
    --color-text-dark:   #0A1628;
    --color-text-body:   #334155;
    --color-text-muted:  #64748B;
    --color-border:      #DDE5EF;
    --font-headline: 'Barlow Condensed', 'Trebuchet MS', 'Arial Narrow', sans-serif;
    --font-body:     'Source Sans 3', 'Gill Sans', Optima, sans-serif;
    --radius-sm: 3px;
    --radius-md: 6px;
    --container: 1200px;
    --gap: 20px;
}

/* =============================================================================
   RESET & BASE
   ============================================================================= */

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text-body);
    background: var(--color-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* =============================================================================
   LAYOUT
   ============================================================================= */

.tcb-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================================================
   MASTHEAD
   ============================================================================= */

.tcb-masthead {
    background: var(--color-navy);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 78px;
}

.tcb-brand {
    display: block;
    font-family: var(--font-headline);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    flex-shrink: 0;
    text-decoration: none;
}

.tcb-brand__the {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 6px;
    margin-bottom: 3px;
}

.tcb-brand__complex {
    display: block;
    font-size: 38px;
    color: #ffffff;
    line-height: 0.92;
    letter-spacing: 1.5px;
}

.tcb-brand__bytes {
    display: block;
    font-size: 38px;
    color: var(--color-blue);
    line-height: 0.92;
    letter-spacing: 1.5px;
}

.tcb-masthead-tagline {
    text-align: right;
    flex-shrink: 0;
}

.tcb-masthead-tagline span {
    display: block;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
}

.tcb-masthead-tagline strong {
    display: block;
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-orange);
    line-height: 1.2;
}

/* =============================================================================
   NAV
   ============================================================================= */

.tcb-nav {
    background: var(--color-navy-mid);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 46px;
    padding: 0 24px;
    border-bottom: 2px solid var(--color-blue-mid);
    gap: 12px;
}

.tcb-nav__cats {
    display: flex;
    list-style: none;
    height: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    justify-content: center;
    gap: 0;
}

.tcb-nav__cats::-webkit-scrollbar { display: none; }

.tcb-nav__item a {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 14px;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.tcb-nav__item a:hover,
.tcb-nav__item.is-active a {
    color: #ffffff;
    border-color: var(--color-orange);
}

.tcb-nav__subscribe {
    background: var(--color-orange);
    color: var(--color-navy);
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}

.tcb-nav__subscribe:hover {
    background: var(--color-orange-dark);
}

/* =============================================================================
   HERO
   ============================================================================= */

.tcb-hero {
    background-color: var(--color-navy);
    background-image: url(../images/tcb-hero-banner.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right center;
    padding: 3.25rem 24px 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 340px;
}

/* JPEG fallback for browsers without WebP */
.no-webp .tcb-hero {
    background-image: url(../images/tcb-hero-banner.jpg);
}

/* Left-edge scrim keeps headline legible over circuitry at narrow widths */
.tcb-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13,27,42,0.88) 0%, rgba(13,27,42,0.55) 45%, rgba(13,27,42,0) 75%);
    pointer-events: none;
}

.tcb-hero__content {
    position: relative;
    z-index: 2;
}

.tcb-hero__headline {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 52px;
    line-height: 1.0;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.tcb-hero__headline em {
    color: var(--color-blue);
    font-style: normal;
}

.tcb-hero__body {
    font-size: 14.5px;
    color: rgba(255,255,255,0.75);
    line-height: 1.65;
    margin-bottom: 22px;
    max-width: 420px;
}

.tcb-hero__btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.tcb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: opacity 0.15s;
    cursor: pointer;
}

.tcb-btn--primary {
    background: var(--color-orange);
    color: var(--color-navy);
}

.tcb-btn--primary:hover { opacity: 0.9; }

.tcb-btn--outline {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255,255,255,0.27);
}

.tcb-btn--outline:hover { border-color: rgba(255,255,255,0.55); }

.tcb-btn--outline-dark {
    background: transparent;
    color: var(--color-navy);
    border: 1.5px solid var(--color-border);
}

.tcb-btn--outline-dark:hover { border-color: var(--color-blue-mid); color: var(--color-blue-mid); }

/* =============================================================================
   CONTENT BODY
   ============================================================================= */

.tcb-body {
    background: var(--color-light);
    padding: 28px 24px;
    max-width: var(--container);
    margin: 0 auto;
}

/* =============================================================================
   SECTION HEADERS
   ============================================================================= */

.tcb-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tcb-section-label {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-blue-mid);
    white-space: nowrap;
}

.tcb-section-line {
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

/* =============================================================================
   CATEGORY BADGE
   ============================================================================= */

.tcb-cat {
    font-family: var(--font-headline);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-blue-mid);
    margin-bottom: 8px;
}

.tcb-cat a { color: inherit; }
.tcb-cat a:hover { color: var(--color-blue); }

.tcb-cat--small { font-size: 10px; }

/* =============================================================================
   FEATURED STORY
   ============================================================================= */

.tcb-featured-story {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 24px;
    border: 1px solid var(--color-border);
}

.tcb-featured-story__image {
    background: var(--color-navy-mid);
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.tcb-featured-story__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tcb-featured-story__image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tcb-featured-story__image-placeholder span {
    font-family: var(--font-headline);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.18);
}

.tcb-featured-story__image-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-orange);
}

.tcb-featured-story__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tcb-featured-story__title {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 26px;
    line-height: 1.1;
    color: var(--color-text-dark);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tcb-featured-story__title a { color: inherit; }
.tcb-featured-story__title a:hover { color: var(--color-blue-mid); }

.tcb-featured-story__excerpt {
    font-size: 14px;
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: 14px;
}

.tcb-featured-story__meta {
    font-size: 11px;
    color: var(--color-text-muted);
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.tcb-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-blue-mid);
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    transition: color 0.15s;
}

.tcb-read-more:hover { color: var(--color-blue); }

/* =============================================================================
   MEDIA ROW — Podcast + YouTube
   ============================================================================= */

.tcb-media-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    margin-bottom: 24px;
}

.tcb-media-card {
    background: var(--color-navy);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-navy-dark);
}

.tcb-media-card__top {
    background: var(--color-navy-mid);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid rgba(79,195,247,0.1);
}

.tcb-media-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tcb-media-card__icon--podcast { background: var(--color-orange); }
.tcb-media-card__icon--youtube { background: #CC0000; }

.tcb-media-card__top-content { flex: 1; min-width: 0; }

.tcb-media-card__type {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-headline);
    font-weight: 700;
    margin-bottom: 4px;
}

.tcb-media-card__title {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.2;
    text-transform: uppercase;
}

.tcb-media-card__title a { color: inherit; }
.tcb-media-card__title a:hover { color: var(--color-blue); }

.tcb-media-card__body {
    padding: 14px 16px;
}

.tcb-media-card__body p {
    font-size: 13px;
    color: rgba(255,255,255,0.56);
    line-height: 1.5;
    margin-bottom: 12px;
}

.tcb-media-card__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-blue);
    text-decoration: none;
    transition: color 0.15s;
}

.tcb-media-card__link:hover { color: #ffffff; }

/* =============================================================================
   POST CARD GRID
   ============================================================================= */

.tcb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-bottom: 24px;
}

.tcb-post-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.tcb-post-card__image-wrap {
    display: block;
    overflow: hidden;
    height: 180px;
}

.tcb-post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tcb-post-card:hover .tcb-post-card__image { transform: scale(1.03); }

.tcb-post-card__image-accent {
    height: 4px;
    background: var(--color-orange);
}

.tcb-post-card--no-image .tcb-post-card__body {
    border-top: 4px solid var(--color-orange);
}

.tcb-post-card__body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tcb-post-card__title {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.15;
    color: var(--color-text-dark);
    text-transform: uppercase;
    margin-bottom: 8px;
    margin-top: 4px;
    flex: 1;
}

.tcb-post-card__title a { color: inherit; }
.tcb-post-card__title a:hover { color: var(--color-blue-mid); }

.tcb-post-card__excerpt {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
}

.tcb-post-card__meta {
    font-size: 11px;
    color: var(--color-text-muted);
    display: flex;
    gap: 5px;
    align-items: center;
    margin-top: auto;
}

/* =============================================================================
   PAGINATION
   ============================================================================= */

.tcb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 16px 0 8px;
}

.tcb-pagination__count {
    font-family: var(--font-headline);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

/* =============================================================================
   TAG / CATEGORY HEADER
   ============================================================================= */

.tcb-tag-header {
    background: var(--color-navy);
    padding: 2rem 24px;
    border-bottom: 2px solid var(--color-blue-mid);
}

.tcb-tag-header__inner {
    max-width: var(--container);
    margin: 0 auto;
}

.tcb-tag-header__title {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 40px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.tcb-tag-header__desc {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    max-width: 560px;
}

.tcb-author-header__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-blue-mid);
    margin-bottom: 12px;
}

/* =============================================================================
   SINGLE POST
   ============================================================================= */

.tcb-post-header {
    background: var(--color-navy);
    padding: 2.5rem 24px 2rem;
    border-bottom: 2px solid var(--color-blue-mid);
}

.tcb-post-header__inner {
    max-width: 760px;
    margin: 0 auto;
}

.tcb-post-header__cat {
    margin-bottom: 12px;
}

.tcb-post-header__cat a {
    color: var(--color-blue);
    font-size: 11px;
}

.tcb-post-header__title {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 42px;
    line-height: 1.05;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.tcb-post-header__excerpt {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 640px;
}

.tcb-post-header__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    flex-wrap: wrap;
}

.tcb-post-header__author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.tcb-post-header__author:hover { color: #ffffff; }

.tcb-post-header__author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--color-blue-mid);
}

.tcb-post-feature-image {
    max-width: 1000px;
    margin: 0 auto;
}

.tcb-post-feature-image img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: cover;
}

.tcb-post-feature-image figcaption {
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
    padding: 8px 24px;
    font-style: italic;
}

/* =============================================================================
   ACCESSIBILITY — focus & motion
   ============================================================================= */

:focus-visible {
    outline: 2px solid var(--color-blue);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .tcb-post-card__image { transition: none; }
    .tcb-post-card:hover .tcb-post-card__image { transform: none; }
}

/* POST CONTENT */
.tcb-post-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 24px 2.5rem;
}

.gh-content > * + * { margin-top: 1.5em; }

.gh-content h2 {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 26px;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.gh-content h3 {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.gh-content p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text-body);
}

.gh-content a {
    color: var(--color-blue-mid);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gh-content a:hover { color: var(--color-blue); }

.gh-content ul, .gh-content ol {
    padding-left: 1.5rem;
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text-body);
}

.gh-content ul { list-style: disc; }
.gh-content ol { list-style: decimal; }
.gh-content li + li { margin-top: 0.4em; }

.gh-content blockquote {
    border-left: 3px solid var(--color-blue-mid);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--color-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.gh-content blockquote p {
    font-size: 17px;
    color: var(--color-text-dark);
    font-style: italic;
}

.gh-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2.5rem 0;
}

.gh-content pre {
    background: var(--color-navy);
    color: var(--color-blue);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}

.gh-content code {
    background: var(--color-light-2);
    color: var(--color-navy);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13.5px;
    font-family: 'Courier New', monospace;
}

.gh-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Ghost Content Cards */
.kg-image-card, .kg-gallery-card, .kg-embed-card,
.kg-bookmark-card, .kg-callout-card, .kg-video-card {
    margin: 2rem 0;
}

.kg-image { width: 100%; height: auto; border-radius: var(--radius-md); }

.kg-image-card figcaption,
.kg-gallery-card figcaption {
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.kg-gallery-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kg-gallery-image img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-sm); }

.kg-embed-card { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-md); }
.kg-embed-card iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.kg-bookmark-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.kg-bookmark-container { display: flex; }
.kg-bookmark-content { padding: 16px; flex: 1; }
.kg-bookmark-title { font-family: var(--font-headline); font-weight: 700; font-size: 15px; color: var(--color-text-dark); text-transform: uppercase; }
.kg-bookmark-description { font-size: 13px; color: var(--color-text-muted); margin-top: 4px; }
.kg-bookmark-thumbnail { width: 140px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.kg-callout-card {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--color-light-2);
    border-left: 3px solid var(--color-orange);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.kg-callout-emoji { font-size: 20px; flex-shrink: 0; }
.kg-callout-text { font-size: 15px; color: var(--color-text-body); }

.kg-audio-card {
    background: var(--color-navy-mid);
    border-radius: var(--radius-md);
    padding: 16px;
    color: #ffffff;
}

/* POST FOOTER */
.tcb-post-footer {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px 2.5rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.tcb-post-footer__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tcb-tag-pill {
    font-family: var(--font-headline);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-blue-mid);
    border: 1px solid var(--color-blue-mid);
    padding: 4px 10px;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.tcb-tag-pill:hover {
    background: var(--color-blue-mid);
    color: #ffffff;
}

/* AUTHOR CARD */
.tcb-author-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--color-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.tcb-author-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--color-blue-mid);
}

.tcb-author-card__name {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-text-dark);
    margin-bottom: 4px;
}

.tcb-author-card__bio {
    font-size: 13.5px;
    color: var(--color-text-body);
    line-height: 1.55;
}

/* RELATED POSTS */
.tcb-related { background: var(--color-light); border-top: 1px solid var(--color-border); }

/* =============================================================================
   ARCHIVE
   ============================================================================= */

.tcb-archive-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.tcb-archive-item__title {
    flex: 1;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 16px;
    color: var(--color-text-dark);
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.15s;
}

.tcb-archive-item__title:hover { color: var(--color-blue-mid); }

.tcb-archive-item__date {
    font-size: 11.5px;
    color: var(--color-text-muted);
    font-family: var(--font-headline);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

/* =============================================================================
   ERROR PAGE
   ============================================================================= */

.tcb-error-page {
    background: var(--color-navy);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 24px;
}

.tcb-error-page__inner { text-align: center; max-width: 480px; }

.tcb-error-page__code {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 120px;
    color: var(--color-blue);
    line-height: 1;
    opacity: 0.3;
    margin-bottom: 0;
}

.tcb-error-page__title {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 36px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.tcb-error-page__body {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* =============================================================================
   SUBSCRIBE SECTION
   ============================================================================= */

.tcb-subscribe {
    background: var(--color-navy);
    padding: 3rem 24px;
    text-align: center;
    border-top: 3px solid var(--color-blue-mid);
}

.tcb-subscribe__inner { max-width: 520px; margin: 0 auto; }

.tcb-subscribe__heading {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 36px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.tcb-subscribe__heading em {
    color: var(--color-blue);
    font-style: normal;
}

.tcb-subscribe__body {
    color: rgba(255,255,255,0.58);
    font-size: 14.5px;
    margin-bottom: 22px;
    line-height: 1.65;
}

.tcb-subscribe__form form {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto 16px;
}

.tcb-subscribe__form input[type="email"] {
    flex: 1;
    padding: 11px 16px;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.07);
    color: #ffffff;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.15s;
}

.tcb-subscribe__form input[type="email"]:focus {
    border-color: rgba(255,255,255,0.4);
}

.tcb-subscribe__form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.3);
}

.tcb-subscribe__form button {
    background: var(--color-orange);
    color: var(--color-navy);
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 11px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.tcb-subscribe__form button:hover {
    background: var(--color-orange-dark);
}

.tcb-subscribe__tiers {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.tcb-subscribe__tier {
    font-family: var(--font-headline);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    gap: 5px;
}

.tcb-subscribe__tier.is-active { color: var(--color-blue); }

.tcb-subscribe__member-note {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.tcb-subscribe__member-note a { color: var(--color-blue); }

/* =============================================================================
   FOOTER
   ============================================================================= */

.tcb-footer {
    background: var(--color-navy-deepest);
    border-top: 1px solid rgba(79,195,247,0.12);
}

.tcb-footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.tcb-footer__copy {
    font-size: 15px;
    color: rgba(255,255,255,0.28);
    font-family: var(--font-headline);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tcb-footer__dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-orange);
    margin: 0 8px;
    vertical-align: middle;
}

.tcb-footer__links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.tcb-footer__links a {
    font-size: 15px;
    color: rgba(255,255,255,0.35);
    font-family: var(--font-headline);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.15s;
}

.tcb-footer__links a:hover { color: rgba(255,255,255,0.7); }

.tcb-footer__tag {
    font-size: 13px;
    color: rgba(255,255,255,0.28);
    font-family: var(--font-headline);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 900px) {
    .tcb-hero { min-height: 280px; }
    .tcb-hero__headline { font-size: 44px; }
    .tcb-featured-story { grid-template-columns: 1fr; }
    .tcb-featured-story__image { min-height: 200px; }
    .tcb-grid { grid-template-columns: repeat(2, 1fr); }
    .tcb-post-header__title { font-size: 34px; }
}

@media (max-width: 640px) {
    .tcb-masthead { padding: 12px 16px; }
    .tcb-brand__complex, .tcb-brand__bytes { font-size: 28px; }
    .tcb-masthead-tagline { display: none; }
    .tcb-nav { padding: 0 16px; }
    .tcb-nav__cats li a { padding: 0 8px; font-size: 10.5px; }
    .tcb-hero { padding: 2rem 16px; }
    .tcb-hero__headline { font-size: 36px; }
    .tcb-body { padding: 20px 16px; }
    .tcb-grid { grid-template-columns: 1fr; }
    .tcb-media-row { grid-template-columns: 1fr; }
    .tcb-footer__inner { flex-direction: column; text-align: center; gap: 10px; }
    .tcb-footer__links { justify-content: center; }
    .tcb-post-content { padding: 1.5rem 16px 2rem; }
    .tcb-subscribe { padding: 2rem 16px; }
    .tcb-subscribe__form form { flex-direction: column; }
    .tcb-subscribe__tiers { gap: 14px; }
}

@media (max-width: 420px) {
    .tcb-brand__complex, .tcb-brand__bytes { font-size: 24px; }
    .tcb-hero__headline { font-size: 30px; }
    .tcb-tag-header__title { font-size: 30px; }
    .tcb-post-header__title { font-size: 26px; }
}


/* =============================================================================
   KOENIG EDITOR CARDS — wide & full width
   ============================================================================= */

.gh-content .kg-width-wide {
    position: relative;
    width: 85vw;
    max-width: 1100px;
    margin-left: calc(50% - 42.5vw);
    margin-right: calc(50% - 42.5vw);
}

@media (max-width: 1100px) {
    .gh-content .kg-width-wide {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

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

.gh-content .kg-width-wide img,
.gh-content .kg-width-full img {
    width: 100%;
}


/* =============================================================================
   EMPTY STATE — tag pages with no posts yet
   ============================================================================= */

.tcb-empty-state {
    text-align: center;
    padding: 4rem 24px 5rem;
    max-width: 520px;
    margin: 0 auto;
}

.tcb-empty-state__badge {
    display: inline-block;
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-orange);
    border: 1.5px solid var(--color-orange);
    border-radius: 3px;
    padding: 5px 12px;
    margin-bottom: 18px;
}

.tcb-empty-state__title {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-navy);
    margin-bottom: 12px;
}

.tcb-empty-state__body {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(13,27,42,0.65);
    margin-bottom: 22px;
}
