/**
 * The Pulse Template - CSS
 * Neo-brutalist, high-contrast, kinetic orange design system
 * Converted from Google Stitch → vanilla CSS
 */

/* ==========================================================================
   1. CSS Variables
   ========================================================================== */
:root {
    /* Colors — Kinetic High-Contrast palette */
    --the-pulse-bg: #f7f9fb;
    --the-pulse-surface: #eceef0;
    --the-pulse-surface-high: #e6e8ea;
    --the-pulse-card: #ffffff;
    --the-pulse-border: #191c1e;
    --the-pulse-border-light: #e0e3e5;
    --the-pulse-text: #191c1e;
    --the-pulse-text-secondary: #584237;
    --the-pulse-accent: #9d4300;
    --the-pulse-accent-container: #f97316;
    --the-pulse-on-accent: #ffffff;
    --the-pulse-footer-bg: #191c1e;
    --the-pulse-footer-text: #e0e3e5;

    /* Spacing */
    --the-pulse-gap-xs: 8px;
    --the-pulse-gap-sm: 16px;
    --the-pulse-gap-md: 24px;
    --the-pulse-gap-lg: 48px;
    --the-pulse-gap-xl: 80px;
    --the-pulse-container: 1280px;
    --the-pulse-gutter: 24px;

    /* Radius — sharp, neo-brutalist */
    --the-pulse-radius-sm: 2px;
    --the-pulse-radius-md: 4px;
    --the-pulse-radius-lg: 8px;

    /* Typography */
    --the-pulse-font-display: 'Montserrat', sans-serif;
    --the-pulse-font-body: 'Inter', sans-serif;

    /* Shadows */
    --the-pulse-shadow-hard: 4px 4px 0px 0px var(--the-pulse-accent);
    --the-pulse-shadow-hard-black: 4px 4px 0px 0px var(--the-pulse-border);
    --the-pulse-shadow-hard-hover: 6px 6px 0px 0px var(--the-pulse-accent);
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--the-pulse-bg);
    color: var(--the-pulse-text);
    font-family: var(--the-pulse-font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.the-pulse-drawer-open {
    overflow: hidden;
}

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

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

/* SEO: visually hidden but accessible to crawlers and screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */
.the-pulse-logo-text {
    font-family: var(--the-pulse-font-display);
    font-size: 32px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--the-pulse-text);
    text-transform: uppercase;
    margin: 0;
    /* h1 and span share same style */
    display: inline;
    font: inherit;
}
h1.the-pulse-logo-text,
span.the-pulse-logo-text {
    font-family: var(--the-pulse-font-display);
    font-size: 32px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
}

/* ==========================================================================
   4. Layout
   ========================================================================== */
.the-pulse-container {
    max-width: var(--the-pulse-container);
    margin: 0 auto;
    padding: 0 var(--the-pulse-gutter);
}

.the-pulse-page-content {
    padding-top: var(--the-pulse-gap-lg);
    padding-bottom: var(--the-pulse-gap-xl);
}

.the-pulse-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--the-pulse-gap-lg);
}

.the-pulse-layout.the-pulse-has-sidebar {
    grid-template-columns: 1fr 320px;
}

/* ==========================================================================
   5. Header / Navigation
   ========================================================================== */
.the-pulse-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--the-pulse-card);
    border-bottom: 2px solid var(--the-pulse-border);
    box-shadow: var(--the-pulse-shadow-hard);
    transition: all 0.2s ease;
}

.the-pulse-header.scrolled {
    box-shadow: var(--the-pulse-shadow-hard-black);
}

.the-pulse-header-inner {
    max-width: var(--the-pulse-container);
    margin: 0 auto;
    padding: 0 var(--the-pulse-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: height 0.2s ease;
}

.the-pulse-header.scrolled .the-pulse-header-inner {
    height: 64px;
}

.the-pulse-header-left {
    display: flex;
    align-items: center;
    gap: var(--the-pulse-gap-sm);
}

.the-pulse-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.the-pulse-nav-links {
    display: none;
    align-items: center;
    gap: var(--the-pulse-gap-lg);
}

.the-pulse-nav-link {
    font-family: var(--the-pulse-font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--the-pulse-text-secondary);
    transition: color 0.15s ease;
    padding: 4px 0;
}

.the-pulse-nav-link:hover {
    color: var(--the-pulse-accent);
}

.the-pulse-header-right {
    display: flex;
    align-items: center;
    gap: var(--the-pulse-gap-md);
}

/* Search Form (Desktop) */
.the-pulse-search-form {
    display: none;
    align-items: center;
    background: var(--the-pulse-card);
    border: 1px solid var(--the-pulse-border);
    padding: 6px 12px;
}

.the-pulse-search-icon {
    color: var(--the-pulse-text);
    flex-shrink: 0;
}

.the-pulse-search-input {
    border: none;
    background: transparent;
    font-family: var(--the-pulse-font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    outline: none;
    padding: 4px 8px;
    width: 120px;
    color: var(--the-pulse-text);
}

.the-pulse-search-input::placeholder {
    color: var(--the-pulse-text-secondary);
}

.the-pulse-search-input:focus {
    border-color: var(--the-pulse-accent);
}

/* Burger (Mobile) */
.the-pulse-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 2px solid var(--the-pulse-border);
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    transition: background 0.15s ease;
}

.the-pulse-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--the-pulse-text);
    transition: all 0.25s ease;
}

.the-pulse-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.the-pulse-burger.active span:nth-child(2) {
    opacity: 0;
}
.the-pulse-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.the-pulse-burger:hover {
    background: var(--the-pulse-accent);
}
.the-pulse-burger:hover span {
    background: var(--the-pulse-on-accent);
}

/* Category Sub-nav */
.the-pulse-subnav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--the-pulse-bg);
    border-bottom: 1px solid var(--the-pulse-border-light);
    transition: top 0.2s ease;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.the-pulse-header.scrolled ~ .the-pulse-subnav {
    top: 64px;
}

.the-pulse-subnav-inner {
    max-width: var(--the-pulse-container);
    margin: 0 auto;
    padding: 0 var(--the-pulse-gutter);
    display: flex;
    align-items: center;
    gap: var(--the-pulse-gap-lg);
    height: 48px;
    white-space: nowrap;
}

.the-pulse-subnav-link {
    font-family: var(--the-pulse-font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--the-pulse-text-secondary);
    transition: color 0.15s ease;
    flex-shrink: 0;
}

.the-pulse-subnav-link:hover {
    color: var(--the-pulse-accent);
}

/* Spacer for fixed header + subnav */
main#main-content {
    padding-top: 128px; /* header 80 + subnav 48 */
}

.the-pulse-header.scrolled ~ .the-pulse-subnav ~ main#main-content {
    padding-top: 112px;
}

/* Mobile Drawer */
.the-pulse-mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 360px;
    height: 100vh;
    z-index: 200;
    background: var(--the-pulse-card);
    border-left: 2px solid var(--the-pulse-border);
    box-shadow: -4px 0 0 0 var(--the-pulse-accent);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.the-pulse-mobile-drawer.open {
    right: 0;
}

.the-pulse-drawer-body {
    padding: var(--the-pulse-gap-xl) var(--the-pulse-gap-md) var(--the-pulse-gap-md);
}

.the-pulse-drawer-search {
    display: flex;
    border: 2px solid var(--the-pulse-border);
    margin-bottom: var(--the-pulse-gap-lg);
}

.the-pulse-drawer-search input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-family: var(--the-pulse-font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    outline: none;
    background: transparent;
}

.the-pulse-drawer-search button {
    background: var(--the-pulse-accent);
    color: var(--the-pulse-on-accent);
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.the-pulse-drawer-section {
    margin-bottom: var(--the-pulse-gap-md);
}

.the-pulse-drawer-label {
    display: block;
    font-family: var(--the-pulse-font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--the-pulse-accent);
    margin-bottom: var(--the-pulse-gap-sm);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--the-pulse-border);
}

.the-pulse-drawer-link {
    display: block;
    font-family: var(--the-pulse-font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--the-pulse-text);
    padding: 12px 0;
    border-bottom: 1px solid var(--the-pulse-border-light);
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.the-pulse-drawer-link:hover {
    color: var(--the-pulse-accent);
    padding-left: 8px;
}

/* ==========================================================================
   6. Hero Section
   ========================================================================== */
.the-pulse-hero-card {
    border: 2px solid var(--the-pulse-border);
    background: var(--the-pulse-card);
    box-shadow: var(--the-pulse-shadow-hard-black);
    margin-bottom: var(--the-pulse-gap-xl);
    overflow: hidden;
}

.the-pulse-hero-flex {
    display: flex;
    flex-direction: column;
}

.the-pulse-hero-body {
    padding: var(--the-pulse-gap-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.the-pulse-hero-meta-top {
    display: flex;
    align-items: center;
    gap: var(--the-pulse-gap-xs);
    margin-bottom: var(--the-pulse-gap-md);
}

.the-pulse-pulse-box {
    width: 12px;
    height: 12px;
    background-color: var(--the-pulse-accent);
    display: inline-block;
    animation: the-pulse-kf 1.2s infinite ease-in-out;
}

@keyframes the-pulse-kf {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.8); opacity: 0.5; }
}

.the-pulse-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--the-pulse-accent);
    display: inline-block;
    animation: the-pulse-dot-kf 1.5s infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes the-pulse-dot-kf {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.the-pulse-chip-breaking {
    font-family: var(--the-pulse-font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--the-pulse-accent);
}

.the-pulse-hero-title {
    font-family: var(--the-pulse-font-display);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--the-pulse-text);
    margin-bottom: var(--the-pulse-gap-md);
}

.the-pulse-hero-title a {
    color: inherit;
    transition: color 0.15s ease;
}

.the-pulse-hero-title a:hover {
    color: var(--the-pulse-accent);
}

.the-pulse-hero-excerpt {
    font-family: var(--the-pulse-font-body);
    font-size: 18px;
    line-height: 28px;
    color: var(--the-pulse-text-secondary);
    margin-bottom: var(--the-pulse-gap-lg);
    max-width: 600px;
}

.the-pulse-hero-img-wrap {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-top: 2px solid var(--the-pulse-border);
    position: relative;
}

.the-pulse-hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.the-pulse-hero-card:hover .the-pulse-hero-img-wrap img {
    transform: scale(1.03);
}

/* ==========================================================================
   7. Post Cards / Article Components
   ========================================================================== */
.the-pulse-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--the-pulse-gap-lg);
}

.the-pulse-section-title {
    font-family: var(--the-pulse-font-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    font-style: italic;
    border-bottom: 4px solid var(--the-pulse-accent);
    padding-bottom: 4px;
}

.the-pulse-post-feed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--the-pulse-gap-md);
}

.the-pulse-post-card {
    background: var(--the-pulse-card);
    border: 1px solid var(--the-pulse-border);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    overflow: hidden;
}

.the-pulse-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--the-pulse-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.the-pulse-post-card:hover::before {
    transform: scaleX(1);
}

.the-pulse-post-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--the-pulse-shadow-hard);
}

.the-pulse-post-card-img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid var(--the-pulse-border);
}

.the-pulse-post-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.the-pulse-post-card:hover .the-pulse-post-card-img img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.the-pulse-post-card-body {
    padding: var(--the-pulse-gap-md);
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.the-pulse-chip {
    display: inline-block;
    font-family: var(--the-pulse-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--the-pulse-accent);
    margin-bottom: var(--the-pulse-gap-xs);
}

.the-pulse-chip-dark {
    display: inline-block;
    font-family: var(--the-pulse-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--the-pulse-border);
    color: var(--the-pulse-on-accent);
    padding: 4px 16px;
}

.the-pulse-post-card-title {
    font-family: var(--the-pulse-font-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    text-transform: uppercase;
    margin-bottom: var(--the-pulse-gap-xs);
}

.the-pulse-post-card-title a {
    color: var(--the-pulse-text);
    transition: color 0.15s ease, transform 0.15s ease;
    display: inline-block;
}

.the-pulse-post-card-title a:hover {
    color: var(--the-pulse-accent);
}

.the-pulse-post-card-excerpt {
    font-family: var(--the-pulse-font-body);
    font-size: 16px;
    line-height: 24px;
    color: var(--the-pulse-text-secondary);
    margin-bottom: var(--the-pulse-gap-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.the-pulse-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--the-pulse-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--the-pulse-text-secondary);
}

.the-pulse-meta time {
    color: var(--the-pulse-text-secondary);
}

.the-pulse-meta-dot {
    opacity: 0.4;
}

.the-pulse-meta-author {
    border-bottom: 2px solid var(--the-pulse-border);
}

/* ==========================================================================
   8. Single Post Styles
   ========================================================================== */
.the-pulse-article {
    max-width: 800px;
}

.the-pulse-breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin-bottom: var(--the-pulse-gap-md);
    font-family: var(--the-pulse-font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--the-pulse-text-secondary);
}

.the-pulse-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    opacity: 0.4;
}

.the-pulse-breadcrumb a {
    color: var(--the-pulse-text-secondary);
    transition: color 0.15s ease;
}

.the-pulse-breadcrumb a:hover {
    color: var(--the-pulse-accent);
}

.the-pulse-article-topline {
    display: flex;
    align-items: center;
    gap: var(--the-pulse-gap-sm);
    margin-bottom: var(--the-pulse-gap-md);
}

.the-pulse-article-date {
    font-family: var(--the-pulse-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--the-pulse-text-secondary);
}

.the-pulse-article-title {
    font-family: var(--the-pulse-font-display);
    font-size: 32px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--the-pulse-text);
    margin-bottom: var(--the-pulse-gap-lg);
}

.the-pulse-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--the-pulse-gap-md);
    border-top: 1px solid var(--the-pulse-border-light);
    border-bottom: 1px solid var(--the-pulse-border-light);
    padding: var(--the-pulse-gap-md) 0;
    margin-bottom: var(--the-pulse-gap-xl);
}

.the-pulse-author-info {
    display: flex;
    align-items: center;
    gap: var(--the-pulse-gap-sm);
}

.the-pulse-author-name {
    font-family: var(--the-pulse-font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.the-pulse-reading-time {
    font-family: var(--the-pulse-font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--the-pulse-text-secondary);
    text-transform: uppercase;
}

.the-pulse-share-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.the-pulse-share-label {
    font-family: var(--the-pulse-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--the-pulse-text-secondary);
}

.the-pulse-share-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--the-pulse-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--the-pulse-accent);
    transition: all 0.15s ease;
}

.the-pulse-share-btn:hover {
    background: var(--the-pulse-accent);
    color: var(--the-pulse-on-accent);
}

.the-pulse-share-btn:active {
    transform: translateY(2px);
}

.the-pulse-article-image {
    margin-bottom: var(--the-pulse-gap-xl);
    border: 2px solid var(--the-pulse-border);
    box-shadow: var(--the-pulse-shadow-hard-black);
    overflow: hidden;
}

.the-pulse-article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.the-pulse-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--the-pulse-gap-lg);
    padding-top: var(--the-pulse-gap-md);
    border-top: 1px solid var(--the-pulse-border-light);
}

.the-pulse-tag {
    display: inline-block;
    font-family: var(--the-pulse-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--the-pulse-border);
    color: var(--the-pulse-on-accent);
    padding: 4px 12px;
    transition: background 0.15s ease;
}

.the-pulse-tag:hover {
    background: var(--the-pulse-accent);
}

/* Reading Progress Bar */
.the-pulse-progress-bar {
    position: fixed;
    top: 80px;
    left: 0;
    height: 3px;
    background: var(--the-pulse-accent);
    z-index: 150;
    width: 0;
    transition: width 0.05s linear;
}

/* ==========================================================================
   9. Archive / Category Styles
   ========================================================================== */
.the-pulse-archive-header {
    margin-bottom: var(--the-pulse-gap-xl);
}

.the-pulse-archive-indicator {
    display: flex;
    align-items: center;
    gap: var(--the-pulse-gap-xs);
    margin-bottom: var(--the-pulse-gap-xs);
}

.the-pulse-archive-label {
    font-family: var(--the-pulse-font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--the-pulse-accent);
}

.the-pulse-archive-title {
    font-family: var(--the-pulse-font-display);
    font-size: 72px;
    font-weight: 900;
    line-height: 76px;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--the-pulse-accent);
    margin-bottom: var(--the-pulse-gap-sm);
}

.the-pulse-archive-desc {
    font-family: var(--the-pulse-font-body);
    font-size: 18px;
    line-height: 28px;
    color: var(--the-pulse-text-secondary);
    margin-bottom: var(--the-pulse-gap-md);
}

.the-pulse-archive-bar {
    width: 128px;
    height: 8px;
    background: var(--the-pulse-border);
    margin-bottom: var(--the-pulse-gap-lg);
}

.the-pulse-archive-count {
    font-family: var(--the-pulse-font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--the-pulse-text-secondary);
}

/* ==========================================================================
   10. Search Styles
   ========================================================================== */
.the-pulse-search-header {
    text-align: center;
    margin-bottom: var(--the-pulse-gap-xl);
}

.the-pulse-search-title {
    font-family: var(--the-pulse-font-display);
    font-size: 48px;
    font-weight: 800;
    line-height: 52px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: var(--the-pulse-gap-md);
}

.the-pulse-search-query {
    color: var(--the-pulse-accent);
}

.the-pulse-search-big {
    position: relative;
    max-width: 720px;
    margin: 0 auto var(--the-pulse-gap-md);
    transition: box-shadow 0.2s ease;
}

.the-pulse-search-big.the-pulse-search-focused {
    box-shadow: 8px 8px 0px 0px var(--the-pulse-accent);
}

.the-pulse-search-big-input {
    width: 100%;
    height: 72px;
    padding: 0 72px 0 var(--the-pulse-gap-md);
    font-family: var(--the-pulse-font-display);
    font-size: 24px;
    font-weight: 700;
    border: 2px solid var(--the-pulse-border);
    background: var(--the-pulse-card);
    outline: none;
    transition: border-color 0.15s ease;
}

.the-pulse-search-big-input:focus {
    border-color: var(--the-pulse-accent-container);
}

.the-pulse-search-big-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--the-pulse-accent-container);
    color: var(--the-pulse-on-accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.the-pulse-search-big-btn:hover {
    background: var(--the-pulse-accent);
}

.the-pulse-search-count {
    font-family: var(--the-pulse-font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--the-pulse-text-secondary);
}

.the-pulse-search-results {
    display: flex;
    flex-direction: column;
    gap: var(--the-pulse-gap-md);
}

.the-pulse-search-card {
    background: var(--the-pulse-card);
    border: 1px solid var(--the-pulse-border-light);
    padding: var(--the-pulse-gap-md);
    transition: all 0.15s ease;
}

.the-pulse-search-card:hover {
    border-color: var(--the-pulse-border);
    box-shadow: 6px 6px 0px 0px var(--the-pulse-border);
}

.the-pulse-search-card:first-child {
    border-top: 8px solid var(--the-pulse-accent-container);
}

.the-pulse-search-card-inner {
    display: flex;
    gap: var(--the-pulse-gap-md);
    flex-direction: column;
}

.the-pulse-search-card-img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--the-pulse-surface);
    flex-shrink: 0;
}

.the-pulse-search-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.the-pulse-search-card:hover .the-pulse-search-card-img img {
    filter: grayscale(0%);
}

.the-pulse-search-card-body {
    flex: 1;
}

.the-pulse-search-card-top {
    display: flex;
    align-items: center;
    gap: var(--the-pulse-gap-xs);
    margin-bottom: var(--the-pulse-gap-xs);
}

.the-pulse-search-date {
    font-family: var(--the-pulse-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--the-pulse-text-secondary);
}

.the-pulse-search-card-title {
    font-family: var(--the-pulse-font-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    text-transform: uppercase;
    margin-bottom: var(--the-pulse-gap-xs);
}

.the-pulse-search-card-title a {
    color: var(--the-pulse-text);
    transition: color 0.15s ease;
}

.the-pulse-search-card:hover .the-pulse-search-card-title a {
    color: var(--the-pulse-accent);
}

.the-pulse-search-card-excerpt {
    font-family: var(--the-pulse-font-body);
    font-size: 16px;
    line-height: 24px;
    color: var(--the-pulse-text-secondary);
}

/* ==========================================================================
   11. 404 Page Styles
   ========================================================================== */
.the-pulse-error {
    text-align: center;
    padding: var(--the-pulse-gap-xl) 0;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.the-pulse-error-code {
    font-family: var(--the-pulse-font-display);
    font-size: 200px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--the-pulse-accent);
    opacity: 0.15;
    margin-bottom: -40px;
}

.the-pulse-error h1 {
    font-family: var(--the-pulse-font-display);
    font-size: 48px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: var(--the-pulse-gap-md);
}

.the-pulse-error p {
    font-family: var(--the-pulse-font-body);
    font-size: 18px;
    color: var(--the-pulse-text-secondary);
    margin-bottom: var(--the-pulse-gap-lg);
    max-width: 500px;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.the-pulse-footer {
    background: var(--the-pulse-footer-bg);
    border-top: 4px solid var(--the-pulse-accent);
    margin-top: var(--the-pulse-gap-xl);
    color: var(--the-pulse-footer-text);
}

.the-pulse-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--the-pulse-gap-lg);
    padding-top: var(--the-pulse-gap-xl);
    padding-bottom: var(--the-pulse-gap-xl);
}

.the-pulse-footer-brand {
    grid-column: span 1;
}

.the-pulse-footer-logo {
    font-family: var(--the-pulse-font-display);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--the-pulse-accent);
    display: block;
    margin-bottom: var(--the-pulse-gap-md);
    text-transform: uppercase;
}

.the-pulse-footer-desc {
    font-family: var(--the-pulse-font-body);
    font-size: 16px;
    line-height: 24px;
    color: var(--the-pulse-footer-text);
    opacity: 0.7;
    max-width: 400px;
}

.the-pulse-footer-col h3,
.the-pulse-footer-col h4 {
    font-family: var(--the-pulse-font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--the-pulse-accent);
    margin-bottom: var(--the-pulse-gap-sm);
}

.the-pulse-footer-col a,
.the-pulse-footer-col p,
.the-pulse-footer-col li {
    font-family: var(--the-pulse-font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--the-pulse-footer-text);
    opacity: 0.6;
    transition: opacity 0.15s ease, color 0.15s ease;
    display: block;
    margin-bottom: 8px;
}

.the-pulse-footer-col a:hover {
    opacity: 1;
    color: var(--the-pulse-on-accent);
}

.the-pulse-footer-col ul {
    list-style: none;
}

.the-pulse-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--the-pulse-gap-md);
    padding-bottom: var(--the-pulse-gap-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--the-pulse-gap-sm);
}

.the-pulse-footer-bottom p {
    font-family: var(--the-pulse-font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--the-pulse-footer-text);
    opacity: 0.4;
}

/* ==========================================================================
   13. Sidebar / Widgets
   ========================================================================== */
.the-pulse-sidebar {
    position: sticky;
    top: 140px;
    align-self: start;
}

.the-pulse-sidebar .widget {
    background: var(--the-pulse-card);
    border: 2px solid var(--the-pulse-border);
    padding: var(--the-pulse-gap-md);
    margin-bottom: var(--the-pulse-gap-md);
}

.the-pulse-sidebar .widget h3,
.the-pulse-sidebar .widget-title {
    font-family: var(--the-pulse-font-display);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--the-pulse-gap-md);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--the-pulse-border);
}

.the-pulse-sidebar .widget ul {
    list-style: none;
}

.the-pulse-sidebar .widget ul li {
    border-bottom: 1px solid var(--the-pulse-border-light);
    padding: 12px 0;
}

.the-pulse-sidebar .widget ul li a {
    font-family: var(--the-pulse-font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--the-pulse-text);
    transition: color 0.15s ease;
}

.the-pulse-sidebar .widget ul li a:hover {
    color: var(--the-pulse-accent);
}

/* ==========================================================================
   14. Pagination — CMS standard classes (Helpers::pagination)
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    --pagination-border: var(--the-pulse-border);
    --pagination-text: var(--the-pulse-text);
    --pagination-accent: var(--the-pulse-accent);
    --pagination-hover-bg: rgba(157, 67, 0, 0.08);
    --pagination-muted: var(--the-pulse-text-secondary);
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-item {
    list-style: none;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 2px solid var(--pagination-border);
    border-radius: 0;
    font-family: var(--the-pulse-font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--pagination-text);
    text-decoration: none;
    line-height: 1;
    transition: all 0.15s ease;
    text-transform: uppercase;
}

.pagination-link:hover {
    border-color: var(--pagination-accent);
    color: var(--pagination-accent);
    background: var(--pagination-hover-bg);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 0 var(--pagination-accent);
}

.pagination-link--active,
.pagination-item.active .pagination-link {
    background: var(--pagination-accent);
    border-color: var(--pagination-accent);
    color: #fff;
}

.pagination-dots {
    list-style: none;
}

.pagination-dots span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    font-size: 14px;
    font-weight: 700;
    color: var(--pagination-muted);
    cursor: default;
}

.pagination-prev,
.pagination-next {
    white-space: nowrap;
}

/* ==========================================================================
   15. Utility Classes
   ========================================================================== */
.the-pulse-btn-primary {
    display: inline-block;
    font-family: var(--the-pulse-font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--the-pulse-accent);
    color: var(--the-pulse-on-accent);
    padding: 16px 32px;
    border: 2px solid var(--the-pulse-border);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
}

.the-pulse-btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--the-pulse-shadow-hard);
}

.the-pulse-btn-primary:active {
    transform: translateY(2px);
    box-shadow: none;
}

.the-pulse-empty {
    text-align: center;
    padding: var(--the-pulse-gap-xl) var(--the-pulse-gap-md);
}

.the-pulse-empty-icon {
    color: var(--the-pulse-accent);
    opacity: 0.3;
    margin-bottom: var(--the-pulse-gap-md);
}

.the-pulse-empty-title {
    font-family: var(--the-pulse-font-display);
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--the-pulse-gap-sm);
}

.the-pulse-empty p {
    font-family: var(--the-pulse-font-body);
    font-size: 16px;
    color: var(--the-pulse-text-secondary);
    margin-bottom: var(--the-pulse-gap-md);
}

/* Scroll Reveal */
.the-pulse-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.the-pulse-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   16. Prose / Content Styles
   ========================================================================== */
.the-pulse-prose {
    font-family: var(--the-pulse-font-body);
    font-size: 18px;
    line-height: 28px;
    color: var(--the-pulse-text);
}

.the-pulse-prose > *:first-child {
    margin-top: 0;
}

.the-pulse-prose p {
    margin-bottom: 1.5em;
    line-height: 1.75;
}

.the-pulse-prose h2 {
    font-family: var(--the-pulse-font-display);
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    border-left: 8px solid var(--the-pulse-accent);
    padding-left: var(--the-pulse-gap-md);
    padding-top: 8px;
    padding-bottom: 8px;
    margin: 2em 0 1em;
}

.the-pulse-prose h3 {
    font-family: var(--the-pulse-font-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    text-transform: uppercase;
    margin: 1.5em 0 0.75em;
}

.the-pulse-prose h4 {
    font-family: var(--the-pulse-font-display);
    font-size: 20px;
    font-weight: 700;
    margin: 1.5em 0 0.5em;
}

.the-pulse-prose a {
    color: var(--the-pulse-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}

.the-pulse-prose a:hover {
    color: var(--the-pulse-accent-container);
}

.the-pulse-prose ul,
.the-pulse-prose ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.the-pulse-prose li {
    margin-bottom: 0.5em;
}

.the-pulse-prose blockquote {
    margin: 2em 0;
    padding: var(--the-pulse-gap-md) var(--the-pulse-gap-lg);
    background: var(--the-pulse-surface);
    border-top: 4px solid var(--the-pulse-accent);
    border-bottom: 4px solid var(--the-pulse-accent);
    font-family: var(--the-pulse-font-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    font-style: italic;
    color: var(--the-pulse-accent);
}

.the-pulse-prose pre {
    background: var(--the-pulse-border);
    color: var(--the-pulse-on-accent);
    padding: var(--the-pulse-gap-md);
    overflow-x: auto;
    margin-bottom: 1.5em;
    font-size: 14px;
    line-height: 1.6;
    border: 2px solid var(--the-pulse-border);
}

.the-pulse-prose code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875em;
    background: var(--the-pulse-surface);
    padding: 2px 6px;
    border: 1px solid var(--the-pulse-border-light);
}

.the-pulse-prose pre code {
    background: none;
    border: none;
    padding: 0;
}

.the-pulse-prose img {
    max-width: 100%;
    height: auto;
    border: 2px solid var(--the-pulse-border);
    margin: 1.5em 0;
}

.the-pulse-prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: 16px;
}

.the-pulse-prose table th,
.the-pulse-prose table td {
    border: 2px solid var(--the-pulse-border);
    padding: 12px 16px;
    text-align: left;
}

.the-pulse-prose table th {
    background: var(--the-pulse-border);
    color: var(--the-pulse-on-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.the-pulse-prose hr {
    border: none;
    border-top: 4px solid var(--the-pulse-accent);
    margin: 2em 0;
}

/* ==========================================================================
   Related Posts
   ========================================================================== */
.the-pulse-related {
    margin-top: var(--the-pulse-gap-xl);
    padding-top: var(--the-pulse-gap-lg);
    border-top: 4px solid var(--the-pulse-accent);
}

.the-pulse-related-title {
    font-family: var(--the-pulse-font-display);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--the-pulse-gap-lg);
}

.the-pulse-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--the-pulse-gap-md);
}

.the-pulse-related-card {
    background: var(--the-pulse-card);
    border: 1px solid var(--the-pulse-border);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
}

.the-pulse-related-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--the-pulse-shadow-hard);
}

.the-pulse-related-card-img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.the-pulse-related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.the-pulse-related-card:hover .the-pulse-related-card-img img {
    transform: scale(1.05);
}

.the-pulse-related-card-body {
    padding: var(--the-pulse-gap-sm);
}

.the-pulse-related-card-body .the-pulse-chip {
    margin-bottom: 4px;
}

.the-pulse-related-card-title {
    font-family: var(--the-pulse-font-display);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 8px;
}

.the-pulse-related-card-title a {
    color: var(--the-pulse-text);
    transition: color 0.15s ease;
}

.the-pulse-related-card-title a:hover {
    color: var(--the-pulse-accent);
}

.the-pulse-related-card-body time {
    font-family: var(--the-pulse-font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--the-pulse-text-secondary);
    text-transform: uppercase;
}

/* ==========================================================================
   17. Responsive (@media queries)
   ========================================================================== */

/* Tablet */
@media (min-width: 768px) {
    .the-pulse-nav-links {
        display: flex;
    }

    .the-pulse-search-form {
        display: flex;
    }

    .the-pulse-burger {
        display: none;
    }

    .the-pulse-hero-flex {
        flex-direction: row;
    }

    .the-pulse-hero-body {
        flex: 1;
    }

    .the-pulse-hero-img-wrap {
        flex: 1;
        border-top: none;
        border-left: 2px solid var(--the-pulse-border);
        aspect-ratio: auto;
        min-height: 400px;
    }

    .the-pulse-hero-title {
        font-size: 48px;
    }

    .the-pulse-article-title {
        font-size: 48px;
        line-height: 52px;
    }

    .the-pulse-search-card-inner {
        flex-direction: row;
    }

    .the-pulse-search-card-img {
        width: 33%;
        aspect-ratio: auto;
    }
}

/* Desktop Large */
@media (min-width: 1024px) {
    .the-pulse-hero-title {
        font-size: 72px;
        line-height: 76px;
        letter-spacing: -0.04em;
    }

    .the-pulse-article-title {
        font-size: 72px;
        line-height: 76px;
        letter-spacing: -0.04em;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .the-pulse-nav-links {
        display: none;
    }

    .the-pulse-search-form {
        display: none;
    }

    .the-pulse-layout.the-pulse-has-sidebar {
        grid-template-columns: 1fr;
    }

    .the-pulse-post-feed {
        grid-template-columns: 1fr;
    }

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

    .the-pulse-footer-grid {
        grid-template-columns: 1fr;
    }

    .the-pulse-footer-logo {
        font-size: 32px;
    }

    .the-pulse-archive-title {
        font-size: 42px;
        line-height: 46px;
    }

    .the-pulse-search-title {
        font-size: 32px;
        line-height: 36px;
    }

    .the-pulse-search-big-input {
        height: 56px;
        font-size: 18px;
    }

    .the-pulse-hero-body {
        padding: var(--the-pulse-gap-md);
    }

    .the-pulse-error-code {
        font-size: 120px;
        margin-bottom: -24px;
    }

    .the-pulse-error h1 {
        font-size: 32px;
    }

    .the-pulse-article-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .the-pulse-subnav-inner {
        gap: var(--the-pulse-gap-md);
    }

    main#main-content {
        padding-top: 128px;
    }
}

@media (max-width: 480px) {
    .the-pulse-hero-title {
        font-size: 28px;
        line-height: 32px;
    }

    .the-pulse-post-card-title {
        font-size: 18px;
        line-height: 24px;
    }

    .the-pulse-search-card-title {
        font-size: 18px;
        line-height: 24px;
    }
}
