/**
 * Orange Pill Template - CSS
 * Material Design 3 burnt-orange editorial palette.
 * Container: 1120px. Font: Inter. Light mode.
 */

/* ==========================================================================
   1. CSS Variables
   ========================================================================== */
:root {
    /* Core palette — from Stitch MD3 color tokens */
    --op-bg:                #f9f9f9;
    --op-surface:           #f9f9f9;
    --op-card:              #ffffff;
    --op-surface-low:       #f3f3f3;
    --op-surface-container: #eeeeee;
    --op-surface-high:      #e8e8e8;
    --op-border:            #e5e2e1;
    --op-border-accent:     #e2bfb0;

    --op-text:              #1a1c1c;
    --op-text-secondary:    #5f5e5e;
    --op-text-muted:        #8e7164;

    --op-accent:            #a04100;       /* primary */
    --op-accent-vivid:      #ff6b00;       /* primary-container */
    --op-accent-light:      #ffdbcc;       /* primary-fixed */
    --op-accent-dim:        #ffb693;       /* primary-fixed-dim */
    --op-on-accent:         #ffffff;

    /* Spacing */
    --op-gap-xs:    4px;
    --op-gap-sm:    12px;
    --op-gap-md:    24px;
    --op-gap-lg:    48px;
    --op-gap-xl:    80px;
    --op-gutter:    24px;
    --op-container: 1120px;

    /* Radius */
    --op-radius-sm:  2px;
    --op-radius-md:  4px;
    --op-radius-lg:  8px;
    --op-radius-xl:  12px;

    /* Typography */
    --op-font:       'Inter', sans-serif;

    /* Transitions */
    --op-transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--op-font);
    background: var(--op-bg);
    color: var(--op-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }

/* ==========================================================================
   3. Typography
   ========================================================================== */
.op-logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--op-accent);
    line-height: 1;
    margin: 0;
    font: inherit;
}

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

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

.op-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--op-gap-lg);
}
.op-layout.op-has-sidebar {
    grid-template-columns: 1fr 300px;
    gap: var(--op-gap-md);
}
.op-content { min-width: 0; }

/* ==========================================================================
   5. Header / Navigation
   ========================================================================== */
.op-header {
    background: var(--op-surface);
    border-bottom: 1px solid var(--op-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow var(--op-transition);
}
.op-header.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.op-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: var(--op-gap-md);
}

.op-logo {
    display: flex;
    align-items: center;
    gap: var(--op-gap-sm);
    flex-shrink: 0;
    text-decoration: none;
}

.op-nav-links {
    display: flex;
    align-items: center;
    gap: var(--op-gap-md);
    list-style: none;
    padding: 0;
    margin: 0;
}

.op-nav-link {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--op-text-secondary);
    text-transform: uppercase;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: color var(--op-transition), border-color var(--op-transition);
}
.op-nav-link:hover,
.op-nav-link.active {
    color: var(--op-accent);
    border-color: var(--op-accent);
}

.op-nav-actions {
    display: flex;
    align-items: center;
    gap: var(--op-gap-xs);
}

.op-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--op-radius-md);
    color: var(--op-accent);
    cursor: pointer;
    transition: background var(--op-transition);
    background: none;
    border: none;
}
.op-search-btn:hover {
    background: var(--op-surface-container);
}

.op-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--op-accent);
    border-radius: var(--op-radius-md);
    transition: background var(--op-transition);
}
.op-burger:hover { background: var(--op-surface-container); }

/* Mobile nav drawer */
.op-mobile-nav {
    display: none;
    background: var(--op-card);
    border-top: 1px solid var(--op-border);
    padding: var(--op-gap-md);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.op-mobile-nav.open { display: block; }

.op-mobile-nav ul { list-style: none; padding: 0; margin: 0 0 var(--op-gap-sm); }
.op-mobile-nav-link {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--op-text-secondary);
    border-bottom: 1px solid var(--op-border);
    transition: color var(--op-transition);
}
.op-mobile-nav-link:hover { color: var(--op-accent); }

.op-mobile-cats { margin-top: var(--op-gap-sm); }
.op-mobile-cats-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--op-text-muted);
    display: block;
    margin-bottom: var(--op-gap-sm);
}
.op-mobile-cat-link {
    display: inline-block;
    margin: 4px 6px 4px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--op-accent);
    background: var(--op-accent-light);
    padding: 4px 10px;
    border-radius: var(--op-radius-sm);
    transition: background var(--op-transition);
}
.op-mobile-cat-link:hover { background: var(--op-accent-dim); }

.op-mobile-search {
    display: flex;
    gap: var(--op-gap-sm);
    margin-top: var(--op-gap-md);
}
.op-mobile-search input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-md);
    font-family: var(--op-font);
    font-size: 14px;
    outline: none;
    background: var(--op-surface-low);
    color: var(--op-text);
    transition: border-color var(--op-transition);
}
.op-mobile-search input:focus { border-color: var(--op-accent); }
.op-mobile-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--op-accent);
    color: #fff;
    border: none;
    border-radius: var(--op-radius-md);
    cursor: pointer;
    transition: opacity var(--op-transition);
}
.op-mobile-search button:hover { opacity: 0.9; }

/* Search overlay */
.op-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(249,249,249,0.96);
    z-index: 200;
    align-items: center;
    justify-content: center;
}
.op-search-overlay.open { display: flex; }

.op-search-overlay-inner {
    width: min(680px, 90vw);
    display: flex;
    align-items: center;
    gap: var(--op-gap-sm);
}
.op-search-overlay-inner form {
    flex: 1;
}
#op-search-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 24px;
    font-family: var(--op-font);
    font-weight: 600;
    border: 0;
    border-bottom: 2px solid var(--op-accent);
    background: transparent;
    color: var(--op-text);
    outline: none;
    letter-spacing: -0.01em;
}
#op-search-input::placeholder { color: var(--op-text-muted); }

.op-search-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--op-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--op-gap-xs);
    border-radius: var(--op-radius-md);
    transition: color var(--op-transition);
}
.op-search-close:hover { color: var(--op-accent); }

/* Material Symbols base style */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 22px;
    vertical-align: middle;
    line-height: 1;
}

/* ==========================================================================
   6. Chips / Badges
   ========================================================================== */
.op-chip {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--op-accent);
    background: var(--op-accent-light);
    padding: 4px 10px;
    border-radius: var(--op-radius-sm);
    transition: background var(--op-transition);
}
.op-chip:hover { background: var(--op-accent-dim); }

.op-chip-sm {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--op-text-secondary);
    background: var(--op-surface-container);
    padding: 3px 8px;
    border-radius: var(--op-radius-sm);
    transition: background var(--op-transition), color var(--op-transition);
}
.op-chip-sm:hover { background: var(--op-accent-light); color: var(--op-accent); }

.op-badge-featured {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--op-accent-vivid);
    color: var(--op-on-accent);
    padding: 4px 10px;
    border-radius: var(--op-radius-sm);
}

.op-badge-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--op-accent-vivid);
    color: var(--op-on-accent);
    padding: 4px 10px;
    border-radius: var(--op-radius-lg);
}

/* ==========================================================================
   7. Meta / Read-time
   ========================================================================== */
.op-meta {
    display: flex;
    align-items: center;
    gap: var(--op-gap-sm);
    font-size: 12px;
    color: var(--op-text-secondary);
}
.op-meta-time { font-size: 12px; color: var(--op-text-secondary); }

/* ==========================================================================
   8. Buttons
   ========================================================================== */
.op-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--op-on-accent);
    background: var(--op-accent-vivid);
    padding: 10px 20px;
    border-radius: var(--op-radius-md);
    border: none;
    cursor: pointer;
    transition: filter var(--op-transition);
    text-decoration: none;
}
.op-btn-primary:hover { filter: brightness(1.08); }

.op-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--op-accent);
    text-transform: uppercase;
    transition: gap var(--op-transition);
}
.group:hover .op-read-more { gap: 8px; }

/* ==========================================================================
   9. Bento Hero Grid (Homepage)
   ========================================================================== */
.op-bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--op-gap-md);
    margin-bottom: var(--op-gap-xl);
}

/* Featured card */
.op-bento-main {
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-xl);
    overflow: hidden;
    background: var(--op-card);
    transition: border-color var(--op-transition), transform var(--op-transition);
}
.op-bento-main:hover { border-color: var(--op-accent); transform: translateY(-2px); }

.op-bento-main-img {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.op-bento-main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.group:hover .op-bento-main-img img { transform: scale(1.03); }

.op-bento-main-body {
    padding: var(--op-gap-md);
}
.op-bento-main-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: var(--op-gap-sm) 0;
}
.op-bento-main-title a {
    color: var(--op-text);
    transition: color var(--op-transition);
}
.op-bento-main-title a:hover { color: var(--op-accent); }

.op-bento-main-excerpt {
    font-size: 15px;
    color: var(--op-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--op-gap-sm);
}

/* Secondary card */
.op-bento-side {
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-xl);
    overflow: hidden;
    background: var(--op-surface-low);
    display: flex;
    flex-direction: column;
    transition: border-color var(--op-transition), transform var(--op-transition);
}
.op-bento-side:hover { border-color: var(--op-accent); transform: translateY(-2px); }

.op-bento-side-img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.op-bento-side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.group:hover .op-bento-side-img img { transform: scale(1.03); }

.op-bento-side-body {
    padding: var(--op-gap-md);
    flex: 1;
    background: var(--op-surface-low);
}
.op-bento-side-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: var(--op-gap-sm) 0;
}
.op-bento-side-title a {
    color: var(--op-text);
    transition: color var(--op-transition);
}
.op-bento-side-title a:hover { color: var(--op-accent); }

.op-bento-side-excerpt {
    font-size: 14px;
    color: var(--op-text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   10. Article Feed (Homepage recent articles list)
   ========================================================================== */
.op-feed-section { }

.op-feed-header {
    display: flex;
    align-items: center;
    gap: var(--op-gap-md);
    margin-bottom: var(--op-gap-md);
    padding-bottom: var(--op-gap-sm);
    border-bottom: 2px solid var(--op-accent);
}
.op-feed-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--op-accent);
    white-space: nowrap;
}
.op-feed-line {
    flex: 1;
    height: 0;
}

.op-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.op-feed-item {
    display: flex;
    gap: var(--op-gap-md);
    align-items: flex-start;
    padding: var(--op-gap-md) 0;
    border-bottom: 1px solid var(--op-border);
    transition: background var(--op-transition);
}
.op-feed-item:last-child { border-bottom: none; }

.op-feed-img-wrap {
    width: 192px;
    height: 128px;
    flex-shrink: 0;
    border-radius: var(--op-radius-lg);
    overflow: hidden;
    border: 1px solid var(--op-border);
}
.op-feed-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.group:hover .op-feed-img-wrap img { transform: scale(1.04); }

.op-feed-body { flex: 1; min-width: 0; }

.op-feed-meta {
    display: flex;
    align-items: center;
    gap: var(--op-gap-sm);
    margin-bottom: var(--op-gap-xs);
}

.op-feed-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: var(--op-gap-xs);
}
.op-feed-title a {
    color: var(--op-text);
    transition: color var(--op-transition);
}
.op-feed-title a:hover { color: var(--op-accent); }

.op-feed-excerpt {
    font-size: 15px;
    color: var(--op-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--op-gap-sm);
}

/* ==========================================================================
   11. Single Post Styles
   ========================================================================== */
.op-article {
    max-width: 720px;
    margin: 0 auto;
}

.op-breadcrumb {
    margin-bottom: var(--op-gap-sm);
}
.op-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.op-breadcrumb li a {
    font-size: 12px;
    color: var(--op-text-secondary);
    transition: color var(--op-transition);
}
.op-breadcrumb li a:hover { color: var(--op-accent); }
.op-breadcrumb-sep {
    font-size: 12px;
    color: var(--op-text-muted);
}

.op-article-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--op-surface-high);
    color: var(--op-accent);
    padding: 5px 12px;
    border-radius: var(--op-radius-sm);
    margin-bottom: var(--op-gap-md);
}

.op-article-header { margin-bottom: var(--op-gap-md); }

.op-article-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: var(--op-gap-md);
}

.op-article-byline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--op-gap-md) 0;
    border-top: 1px solid var(--op-border);
    border-bottom: 1px solid var(--op-border);
    gap: var(--op-gap-md);
    flex-wrap: wrap;
}

.op-article-author-info { display: flex; flex-direction: column; gap: 2px; }
.op-article-author-name { font-size: 14px; font-weight: 600; color: var(--op-text); }
.op-article-author-role { font-size: 12px; color: var(--op-text-secondary); }

.op-article-date-info { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; }
.op-article-date { font-size: 14px; font-weight: 600; color: var(--op-text); }
.op-article-readtime { font-size: 12px; color: var(--op-text-secondary); }

.op-article-figure {
    margin: var(--op-gap-lg) 0;
    border-radius: var(--op-radius-lg);
    overflow: hidden;
}
.op-article-figure img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.op-article-footer {
    margin-top: var(--op-gap-xl);
    padding-top: var(--op-gap-md);
    border-top: 1px solid var(--op-border);
}

/* Share */
.op-share {
    display: flex;
    align-items: center;
    gap: var(--op-gap-sm);
    flex-wrap: wrap;
}
.op-share-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--op-text-muted);
}
.op-share-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--op-text-secondary);
    padding: 6px 14px;
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-md);
    transition: border-color var(--op-transition), color var(--op-transition);
}
.op-share-btn:hover { border-color: var(--op-accent); color: var(--op-accent); }

/* Tags */
.op-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--op-gap-md);
}
.op-tag {
    font-size: 12px;
    font-weight: 500;
    color: var(--op-text-secondary);
    background: var(--op-surface-container);
    padding: 5px 12px;
    border-radius: var(--op-radius-sm);
}

/* ==========================================================================
   12. Prose / Content Styles
   ========================================================================== */
.op-prose {
    font-size: 17px;
    line-height: 1.75;
    color: var(--op-text);
    margin-top: var(--op-gap-lg);
}
.op-prose p { margin-bottom: 1.4em; }

/* Drop-cap on first paragraph */
.op-prose p:first-child::first-letter {
    font-size: 56px;
    font-weight: 800;
    float: left;
    line-height: 0.85;
    margin-right: 8px;
    margin-top: 4px;
    color: var(--op-accent);
}

.op-prose h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 2em 0 0.6em;
    color: var(--op-text);
}
.op-prose h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 1.6em 0 0.5em;
}
.op-prose h4 {
    font-size: 17px;
    font-weight: 600;
    margin: 1.4em 0 0.4em;
}
.op-prose ul, .op-prose ol {
    margin: 0 0 1.4em 1.5em;
}
.op-prose ul { list-style: disc; }
.op-prose ol { list-style: decimal; }
.op-prose li { margin-bottom: 0.5em; }

.op-prose blockquote {
    border-left: 4px solid var(--op-accent-vivid);
    background: var(--op-surface-low);
    padding: var(--op-gap-md);
    margin: var(--op-gap-md) 0;
    font-style: italic;
    font-size: 18px;
    color: var(--op-text-secondary);
    border-radius: 0 var(--op-radius-md) var(--op-radius-md) 0;
}

.op-prose pre {
    background: var(--op-text);
    color: var(--op-accent-dim);
    padding: var(--op-gap-md);
    border-radius: var(--op-radius-md);
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 1.4em;
}
.op-prose code {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    background: var(--op-surface-high);
    padding: 2px 6px;
    border-radius: var(--op-radius-sm);
    color: var(--op-accent);
}
.op-prose pre code { background: none; color: inherit; padding: 0; }

.op-prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--op-radius-md);
    margin: var(--op-gap-md) 0;
}
.op-prose a {
    color: var(--op-accent);
    border-bottom: 2px solid var(--op-accent-vivid);
    transition: background var(--op-transition), color var(--op-transition);
}
.op-prose a:hover {
    background: var(--op-accent-vivid);
    color: #fff;
}
.op-prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.4em;
    font-size: 15px;
}
.op-prose th, .op-prose td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--op-border);
}
.op-prose th { font-weight: 700; background: var(--op-surface-container); }
.op-prose hr {
    border: none;
    border-top: 2px solid var(--op-border);
    margin: var(--op-gap-lg) 0;
}

/* Selection */
::selection { background: var(--op-accent-vivid); color: #fff; }

/* ==========================================================================
   13. Archive / Category Styles
   ========================================================================== */
.op-archive-header {
    margin-bottom: var(--op-gap-lg);
    padding-bottom: var(--op-gap-md);
    border-bottom: 1px solid var(--op-border-accent);
}
.op-archive-label-row { margin-bottom: var(--op-gap-sm); }

.op-archive-title {
    display: block;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--op-text);
    margin-bottom: var(--op-gap-sm);
}
.op-archive-desc {
    font-size: 17px;
    color: var(--op-text-secondary);
    line-height: 1.6;
    max-width: 680px;
    margin-bottom: var(--op-gap-sm);
}
.op-archive-count {
    font-size: 13px;
    color: var(--op-text-muted);
    font-weight: 500;
}

/* Category Featured */
.op-cat-featured {
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-xl);
    overflow: hidden;
    margin-bottom: var(--op-gap-lg);
    background: var(--op-card);
    transition: border-color var(--op-transition);
}
.op-cat-featured:hover { border-color: var(--op-accent); }

.op-cat-featured-img {
    display: block;
    aspect-ratio: 21 / 9;
    overflow: hidden;
}
.op-cat-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.group:hover .op-cat-featured-img img { transform: scale(1.02); }

.op-cat-featured-body {
    padding: var(--op-gap-lg) var(--op-gap-md);
}
.op-cat-featured-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: var(--op-gap-sm) 0;
}
.op-cat-featured-title a {
    color: var(--op-text);
    transition: color var(--op-transition);
}
.op-cat-featured-title a:hover { color: var(--op-accent); }
.op-cat-featured-excerpt {
    font-size: 16px;
    color: var(--op-text-secondary);
    line-height: 1.65;
    max-width: 640px;
    margin-bottom: var(--op-gap-md);
}

/* Category Grid */
.op-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--op-gap-md);
    margin-bottom: var(--op-gap-md);
}
.op-cat-card {
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-lg);
    overflow: hidden;
    background: var(--op-card);
    transition: border-color var(--op-transition), transform var(--op-transition);
}
.op-cat-card:hover { border-color: var(--op-accent); transform: translateY(-2px); }

.op-cat-card-img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.op-cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.group:hover .op-cat-card-img img { transform: scale(1.04); }

.op-cat-card-body { padding: var(--op-gap-md); }
.op-cat-card-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    margin: var(--op-gap-xs) 0 var(--op-gap-sm);
}
.op-cat-card-title a {
    color: var(--op-text);
    transition: color var(--op-transition);
}
.op-cat-card-title a:hover { color: var(--op-accent); }
.op-cat-card-excerpt {
    font-size: 14px;
    color: var(--op-text-secondary);
    line-height: 1.55;
}

/* ==========================================================================
   14. Search Styles
   ========================================================================== */
.op-search-header { margin-bottom: var(--op-gap-md); }
.op-search-query-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--op-text-secondary);
    margin-bottom: var(--op-gap-sm);
}
.op-search-title {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: var(--op-gap-md);
}
.op-search-term { color: var(--op-accent-vivid); }
.op-search-accent-bar {
    height: 4px;
    width: 80px;
    background: var(--op-accent-vivid);
}

.op-search-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-md);
    overflow: hidden;
    margin-bottom: var(--op-gap-lg);
    background: var(--op-card);
    transition: border-color var(--op-transition);
}
.op-search-form:focus-within { border-color: var(--op-accent); }
.op-search-form input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    font-family: var(--op-font);
    border: none;
    background: transparent;
    color: var(--op-text);
    outline: none;
}
.op-search-form input::placeholder { color: var(--op-text-muted); }
.op-search-form button {
    padding: 14px 18px;
    background: var(--op-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: opacity var(--op-transition);
    display: flex;
    align-items: center;
}
.op-search-form button:hover { opacity: 0.9; }

.op-search-count-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--op-gap-md);
    border-bottom: 1px solid var(--op-border);
    margin-bottom: var(--op-gap-md);
}
.op-search-count {
    font-size: 15px;
    color: var(--op-text-secondary);
}

.op-search-results { display: flex; flex-direction: column; }

.op-search-item { padding: var(--op-gap-md) 0; }
.op-search-item-inner {
    display: flex;
    gap: var(--op-gap-md);
    align-items: flex-start;
}
.op-search-img-wrap {
    width: 150px;
    height: 112px;
    flex-shrink: 0;
    border-radius: var(--op-radius-lg);
    overflow: hidden;
    border: 1px solid var(--op-border-accent);
}
.op-search-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(60%);
    transition: filter 0.5s ease, transform 0.3s ease;
}
.group:hover .op-search-img-wrap img { filter: grayscale(0%); transform: scale(1.03); }

.op-search-item-body { flex: 1; min-width: 0; }
.op-search-item-meta {
    display: flex;
    align-items: center;
    gap: var(--op-gap-sm);
    margin-bottom: var(--op-gap-xs);
    font-size: 12px;
    color: var(--op-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.op-search-item-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: var(--op-gap-xs);
}
.op-search-item-title a {
    color: var(--op-accent-vivid);
    transition: text-decoration var(--op-transition);
}
.group:hover .op-search-item-title a { text-decoration: underline; }

.op-search-item-excerpt {
    font-size: 14px;
    color: var(--op-text-secondary);
    line-height: 1.6;
}
.op-search-item-divider {
    height: 1px;
    background: var(--op-border);
    opacity: 0.5;
    margin-top: var(--op-gap-md);
}

/* ==========================================================================
   15. 404 Page Styles
   ========================================================================== */
.op-error {
    text-align: center;
    padding: var(--op-gap-xl) var(--op-gap-md);
    max-width: 480px;
    margin: 0 auto;
}
.op-error-code {
    font-size: 96px;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--op-accent-vivid);
    line-height: 1;
    margin-bottom: var(--op-gap-md);
    opacity: 0.25;
}
.op-error h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--op-gap-sm);
}
.op-error p {
    font-size: 16px;
    color: var(--op-text-secondary);
    margin-bottom: var(--op-gap-md);
}

/* ==========================================================================
   16. Empty State
   ========================================================================== */
.op-empty {
    text-align: center;
    padding: var(--op-gap-xl) var(--op-gap-md);
}
.op-empty-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: var(--op-gap-sm);
}
.op-empty p {
    color: var(--op-text-secondary);
    margin-bottom: var(--op-gap-md);
}

/* ==========================================================================
   17. Footer
   ========================================================================== */
.op-footer {
    background: var(--op-surface-low);
    border-top: 1px solid var(--op-border);
    margin-top: var(--op-gap-xl);
}
.op-footer .op-container { padding-top: var(--op-gap-lg); padding-bottom: var(--op-gap-lg); }

.op-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--op-gap-lg);
    margin-bottom: var(--op-gap-md);
}
.op-footer-col h4,
.op-footer-col .op-footer-brand { margin-bottom: var(--op-gap-sm); }

.op-footer-brand {
    display: block;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--op-accent);
    margin-bottom: var(--op-gap-sm);
}
.op-footer-tagline {
    font-size: 13px;
    color: var(--op-text-secondary);
    line-height: 1.5;
}

.op-footer-divider {
    height: 1px;
    background: var(--op-border);
    margin-bottom: var(--op-gap-md);
}

.op-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--op-gap-md);
}
.op-footer-bottom-brand {}
.op-footer-brand-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--op-accent);
    display: block;
}
.op-footer-copy {
    font-size: 12px;
    color: var(--op-text-secondary);
    margin-top: 2px;
}
.op-footer-links {
    display: flex;
    gap: var(--op-gap-md);
    flex-wrap: wrap;
}
.op-footer-link {
    font-size: 12px;
    color: var(--op-text-secondary);
    transition: color var(--op-transition);
}
.op-footer-link:hover { color: var(--op-accent); }

.op-footer-powered {
    font-size: 12px;
    color: var(--op-text-muted);
}

/* ==========================================================================
   18. Sidebar / Widgets
   ========================================================================== */

/* Sidebar wrapper — sticky on desktop */
.op-sidebar {
    padding-top: var(--op-gap-lg);
}
.op-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: var(--op-gap-md);
    position: sticky;
    top: calc(72px + var(--op-gap-md)); /* below header */
}

/* ── Widget Card ─────────────────────────────────────────────────────────── */
.widget {
    background: var(--op-card);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-xl);
    padding: var(--op-gap-md);
    transition: border-color var(--op-transition);
}
.widget:hover { border-color: var(--op-border-accent); }

/* Widget title with left accent bar */
.widget-title,
.op-sidebar h3 {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--op-text);
    margin: 0 0 var(--op-gap-md);
    padding-bottom: var(--op-gap-sm);
    border-bottom: 2px solid var(--op-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget-title::before,
.op-sidebar h3::before {
    content: '';
    display: block;
    width: 3px;
    height: 14px;
    background: var(--op-accent-vivid);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Widget content wrapper */
.widget-content { }

/* ── Recent Posts Widget ─────────────────────────────────────────────────── */
.widget-recent_posts .widget-recent-posts,
.widget .widget-recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.widget-recent_posts .widget-recent-posts li,
.widget .widget-recent-posts li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--op-surface-high);
    counter-increment: recent-posts;
    position: relative;
}
.widget-recent_posts .widget-recent-posts,
.widget .widget-recent-posts {
    counter-reset: recent-posts;
}

.widget-recent_posts .widget-recent-posts li:last-child,
.widget .widget-recent-posts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-recent_posts .widget-recent-posts li::before,
.widget .widget-recent-posts li::before {
    content: counter(recent-posts, decimal-leading-zero);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--op-accent-dim);
    flex-shrink: 0;
    line-height: 1.5;
    transition: color var(--op-transition);
}
.widget-recent_posts .widget-recent-posts li:hover::before,
.widget .widget-recent-posts li:hover::before {
    color: var(--op-accent-vivid);
}

.widget-recent_posts .widget-recent-posts li a,
.widget .widget-recent-posts li a {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--op-text);
    transition: color var(--op-transition);
    text-decoration: none;
    display: block;
    flex: 1;
}
.widget-recent_posts .widget-recent-posts li a:hover,
.widget .widget-recent-posts li a:hover {
    color: var(--op-accent);
}

/* ── Categories Widget ───────────────────────────────────────────────────── */
.widget-html .widget-recent-posts,
.widget-categories .widget-recent-posts {
    counter-reset: none;
    gap: 0;
}

/* Override numbered list for category widget — use pill style instead */
.widget-html .widget-recent-posts li,
.widget-categories .widget-recent-posts li {
    counter-increment: none;
    padding: 4px 0;
    border-bottom: none;
    display: block;
}
.widget-html .widget-recent-posts li::before,
.widget-categories .widget-recent-posts li::before {
    display: none;
}
.widget-html .widget-recent-posts li a,
.widget-categories .widget-recent-posts li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--op-text-secondary);
    padding: 6px 10px;
    border-radius: var(--op-radius-md);
    transition: background var(--op-transition), color var(--op-transition);
    text-decoration: none;
    width: 100%;
}
.widget-html .widget-recent-posts li a:hover,
.widget-categories .widget-recent-posts li a:hover {
    background: var(--op-accent-light);
    color: var(--op-accent);
}
.widget-html .widget-recent-posts li a::before,
.widget-categories .widget-recent-posts li a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--op-accent-dim);
    flex-shrink: 0;
    transition: background var(--op-transition);
}
.widget-html .widget-recent-posts li a:hover::before,
.widget-categories .widget-recent-posts li a:hover::before {
    background: var(--op-accent-vivid);
}

/* ── Text / About Widget ─────────────────────────────────────────────────── */
.widget-text .widget-content {
    font-size: 13px;
    line-height: 1.7;
    color: var(--op-text-secondary);
}
.widget-text .widget-content a {
    color: var(--op-accent);
    font-weight: 600;
    border-bottom: 1px solid var(--op-accent-dim);
    transition: border-color var(--op-transition);
    text-decoration: none;
}
.widget-text .widget-content a:hover { border-color: var(--op-accent); }

/* Newsletter widget special treatment */
.widget-text.widget-newsletter {
    background: var(--op-accent-light);
    border-color: var(--op-border-accent);
}
.widget-text.widget-newsletter .widget-title::before {
    background: var(--op-accent);
}

/* ── Generic ul/ol in widgets ────────────────────────────────────────────── */
.widget ul,
.widget ol {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget ul li,
.widget ol li {
    padding: 8px 0;
    border-bottom: 1px solid var(--op-surface-high);
    font-size: 13px;
    color: var(--op-text-secondary);
    line-height: 1.5;
}
.widget ul li:last-child,
.widget ol li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.widget ul li a,
.widget ol li a {
    color: var(--op-text);
    font-weight: 500;
    transition: color var(--op-transition);
    text-decoration: none;
}
.widget ul li a:hover,
.widget ol li a:hover {
    color: var(--op-accent);
}

/* Divider between widgets */
.op-sidebar-divider {
    height: 1px;
    background: var(--op-border);
    opacity: 0.6;
    margin: var(--op-gap-xs) 0;
}



/* ==========================================================================
   19. Related Posts
   ========================================================================== */
.op-related { margin-top: var(--op-gap-xl); }
.op-related-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--op-accent);
    margin: 0;
}
.op-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--op-gap-md);
    margin-top: var(--op-gap-md);
}
.op-related-card {
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius-lg);
    overflow: hidden;
    background: var(--op-card);
    transition: border-color var(--op-transition), transform var(--op-transition);
}
.op-related-card:hover { border-color: var(--op-accent); transform: translateY(-2px); }

.op-related-card-img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.op-related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.group:hover .op-related-card-img img { transform: scale(1.04); }

.op-related-card-body { padding: var(--op-gap-md); }
.op-related-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    margin-top: var(--op-gap-xs);
}
.op-related-card-title a {
    color: var(--op-text);
    transition: color var(--op-transition);
}
.op-related-card-title a:hover { color: var(--op-accent); }

/* ==========================================================================
   20. Pagination — CMS standard classes (Helpers::pagination)
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    --pagination-border: var(--op-border);
    --pagination-text: var(--op-text-secondary);
    --pagination-accent: var(--op-accent-vivid);
    --pagination-hover-bg: rgba(160, 65, 0, 0.06);
    --pagination-muted: var(--op-text-muted);
}

.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: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--pagination-border);
    border-radius: var(--op-radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--pagination-text);
    text-decoration: none;
    line-height: 1;
    transition: all 0.15s ease;
}
.pagination-link:hover {
    border-color: var(--pagination-accent);
    color: var(--pagination-accent);
    background: var(--pagination-hover-bg);
}
.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: 36px;
    height: 36px;
    font-size: 14px;
    color: var(--pagination-muted);
    cursor: default;
}
.pagination-prev,
.pagination-next { white-space: nowrap; }

/* ==========================================================================
   21. Utility Classes
   ========================================================================== */
.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;
}

/* ==========================================================================
   22. Responsive (@media queries)
   ========================================================================== */
@media (min-width: 768px) {
    /* Bento hero: two-column */
    .op-bento {
        grid-template-columns: 2fr 1fr;
    }
    .op-bento-main-img { aspect-ratio: 4 / 3; }

    /* Nav shows links on desktop */
    .op-nav-links { display: flex; }
    .op-burger { display: none; }

    .op-article-title { font-size: 48px; }

    .op-search-title { font-size: 48px; }
}

@media (max-width: 767px) {
    .op-nav-links { display: none; }
    .op-burger { display: flex; }

    .op-bento { grid-template-columns: 1fr; }

    .op-feed-item { flex-direction: column; }
    .op-feed-img-wrap { width: 100%; height: auto; aspect-ratio: 16 / 9; }

    .op-search-item-inner { flex-direction: column; }
    .op-search-img-wrap { width: 100%; height: auto; aspect-ratio: 16 / 9; }

    .op-article-title { font-size: 30px; }
    .op-archive-title { font-size: 30px; }
    .op-search-title { font-size: 28px; }
    .op-cat-featured-title { font-size: 22px; }
    .op-cat-featured-img { aspect-ratio: 4 / 3; }

    .op-layout.op-has-sidebar {
        grid-template-columns: 1fr;
    }
    .op-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--op-gap-md);
    }
    .op-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--op-gap-sm);
    }
    .op-error-code { font-size: 64px; }
}

@media (max-width: 480px) {
    .op-footer-grid { grid-template-columns: 1fr; }
    .op-cat-grid { grid-template-columns: 1fr; }
    .op-related-grid { grid-template-columns: 1fr; }
}
