/*
Theme Name: Dereva Blog Theme
Theme URI: https://dereva.co.ke
Author: OpenAI Codex
Author URI: https://openai.com
Description: A custom WordPress theme that mirrors Dereva's public blog styling and connects the blog back to the main Dereva marketplace.
Version: 1.1.3
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: dereva-blog-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --color-dereva-dark: #092520;
    --color-dereva-dark-soft: #113c34;
    --color-dereva-green: #0fb57a;
    --color-dereva-green-strong: #078b5e;
    --color-dereva-mint: #dff7ee;
    --color-dereva-cream: #f4f8f4;
    --color-dereva-line: #d8e7de;
    --color-dereva-ink: #12211d;
    --color-dereva-muted: #5d726b;
    --color-slate-950: #0f172a;
    --color-slate-900: #10233c;
    --color-slate-800: #1e293b;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-500: #64748b;
    --color-slate-400: #94a3b8;
    --color-slate-300: #cbd5e1;
    --color-slate-200: #e2e8f0;
    --color-slate-100: #f1f5f9;
    --color-slate-50: #f8fafc;
    --color-orange: #f97316;
    --color-orange-deep: #ea580c;
    --site-shadow: 0 18px 50px rgba(14, 39, 32, 0.06);
    --card-shadow: 0 24px 70px rgba(14, 39, 32, 0.08);
    --soft-shadow: 0 12px 28px rgba(14, 39, 32, 0.05);
    --radius-xl: 2rem;
    --radius-lg: 1.6rem;
    --radius-md: 1rem;
    --radius-sm: 0.8rem;
    --container-width: 1260px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 0% 0%, rgba(15, 181, 122, 0.18), transparent 24%),
        radial-gradient(circle at 100% 0%, rgba(9, 37, 32, 0.08), transparent 20%),
        radial-gradient(circle at 80% 25%, rgba(15, 181, 122, 0.12), transparent 16%),
        linear-gradient(180deg, #fcfefd 0%, #f4faf6 38%, #edf4ef 100%);
    color: var(--color-dereva-ink);
    font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

body.admin-bar .site-header {
    top: 32px;
}

a,
button,
input,
textarea,
select {
    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease,
        opacity 180ms ease;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    color: var(--color-slate-950);
    font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

p {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

button,
input,
textarea,
select {
    font: inherit;
}

input,
textarea,
select {
    width: 100%;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.screen-reader-text:focus {
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    clip: auto;
    clip-path: none;
    padding: 0.75rem 1rem;
    border-radius: 0.8rem;
    background: var(--color-slate-950);
    color: #fff;
    z-index: 999;
}

.site-shell {
    position: relative;
    overflow: clip;
}

.site-shell::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    z-index: -2;
    height: 32rem;
    background: linear-gradient(180deg, rgba(9, 37, 32, 0.98) 0%, rgba(9, 37, 32, 0.92) 38%, rgba(9, 37, 32, 0.14) 76%, rgba(9, 37, 32, 0) 100%);
}

.site-shell::after {
    content: '';
    position: absolute;
    top: 12rem;
    right: -12rem;
    z-index: -2;
    width: 26rem;
    height: 26rem;
    border-radius: 999px;
    background: rgba(15, 181, 122, 0.1);
    filter: blur(64px);
}

.container-app {
    width: min(100%, var(--container-width));
    margin-inline: auto;
    padding-inline: 1rem;
}

.site-main {
    padding: 2rem 0 4rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid var(--color-slate-200);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 4.2rem;
}

.site-brand {
    display: inline-flex;
    align-items: flex-end;
    gap: 0.15rem;
    line-height: 1;
}

.site-brand__name {
    font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--color-slate-950);
    letter-spacing: -0.05em;
}

.site-brand__suffix {
    padding-bottom: 0.12rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--color-slate-400);
}

.site-brand__logo {
    width: auto;
    max-height: 2.5rem;
}

.site-nav {
    display: none;
    flex: 1;
    justify-content: center;
}

.site-nav__menu,
.mobile-nav__menu,
.footer-menu {
    list-style: none;
}

.site-nav__menu {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
}

.site-nav__menu li {
    margin: 0;
}

.site-nav__menu a {
    display: inline-flex;
    align-items: center;
    border-radius: 0.8rem;
    padding: 0.62rem 0.95rem;
    color: var(--color-slate-600);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
}

.site-nav__menu .current-menu-item > a,
.site-nav__menu .current-menu-ancestor > a,
.site-nav__menu .current_page_item > a,
.site-nav__menu a:hover,
.site-nav__menu a:focus-visible {
    background: var(--color-slate-100);
    color: var(--color-slate-950);
}

.site-header__actions {
    display: none;
    align-items: center;
    gap: 0.9rem;
}

.site-header__link {
    color: var(--color-slate-700);
    font-size: 0.84rem;
    font-weight: 700;
}

.site-header__link:hover,
.site-header__link:focus-visible {
    color: var(--color-slate-950);
}

.site-header__cta,
.button-primary,
.mobile-nav__cta,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 0.85rem;
    background: var(--color-orange);
    padding: 0.92rem 1.3rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.site-header__cta:hover,
.site-header__cta:focus-visible,
.button-primary:hover,
.button-primary:focus-visible,
.mobile-nav__cta:hover,
.mobile-nav__cta:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
    background: var(--color-dereva-green-strong);
    transform: translateY(-1px);
}

.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid var(--color-slate-200);
    border-radius: 0.85rem;
    background: #fff;
    padding: 0.92rem 1.3rem;
    color: var(--color-slate-950);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: rgba(15, 181, 122, 0.24);
    color: var(--color-dereva-green-strong);
    transform: translateY(-1px);
}

.site-header__menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border: 1px solid var(--color-slate-200);
    border-radius: 0.75rem;
    background: #fff;
    color: var(--color-slate-800);
    cursor: pointer;
}

.site-header__menu svg {
    width: 1.15rem;
    height: 1.15rem;
}

.mobile-nav-panel {
    display: none;
    padding: 0 0 1rem;
}

.mobile-nav-panel.is-open {
    display: block;
}

.mobile-nav-panel__inner {
    border: 1px solid var(--color-slate-200);
    border-radius: 1rem;
    background: #fff;
    padding: 0.85rem;
}

.mobile-nav__menu {
    display: grid;
    gap: 0.25rem;
}

.mobile-nav__menu li {
    margin: 0;
}

.mobile-nav__menu a {
    display: block;
    border-radius: 0.75rem;
    padding: 0.85rem 0.95rem;
    color: var(--color-slate-800);
    font-size: 0.95rem;
    font-weight: 700;
}

.mobile-nav__menu .current-menu-item > a,
.mobile-nav__menu .current_page_item > a,
.mobile-nav__menu a:hover,
.mobile-nav__menu a:focus-visible {
    background: rgba(15, 181, 122, 0.08);
    color: var(--color-dereva-green-strong);
}

.mobile-nav__divider {
    margin: 1rem 0;
    border-top: 1px solid var(--color-slate-200);
}

.page-hero-surface,
.panel,
.panel-soft,
.listing-card,
.public-page-card,
.search-empty {
    border: 1px solid var(--color-slate-200);
    border-radius: 1rem;
    background: #fff;
    box-shadow: none;
}

.page-hero-surface {
    overflow: hidden;
    padding: 1.55rem;
    background: linear-gradient(135deg, #fffdf7 0%, #f7f0e5 52%, #edf3ee 100%);
}

.eyebrow {
    color: var(--color-dereva-green-strong);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

.page-hero-title {
    margin-top: 0.75rem;
    font-size: clamp(2.1rem, 4vw, 3.65rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--color-slate-900);
}

.page-hero-copy {
    margin-top: 1rem;
    max-width: 52rem;
    color: var(--color-slate-600);
    font-size: 1rem;
    line-height: 1.9;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.blog-search-form {
    display: grid;
    gap: 0.75rem;
    width: 100%;
    max-width: 35rem;
    margin-top: 1.6rem;
}

.input,
.search-field,
select,
textarea {
    border: 1px solid var(--color-dereva-line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.9rem 1rem;
    color: var(--color-slate-950);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.input::placeholder,
.search-field::placeholder,
textarea::placeholder {
    color: var(--color-slate-500);
}

.input:focus,
.search-field:focus,
select:focus,
textarea:focus {
    border-color: rgba(15, 181, 122, 0.5);
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 181, 122, 0.12);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--color-slate-200);
    border-radius: 999px;
    background: #fff;
    padding: 0.36rem 0.82rem;
    color: var(--color-slate-700);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.content-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.content-grid--single {
    align-items: start;
}

.post-grid {
    display: grid;
    gap: 1rem;
}

.sidebar-grid {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.panel,
.panel-soft,
.public-page-card,
.search-empty {
    padding: 1.5rem;
}

.panel-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(223, 247, 238, 0.82));
}

.listing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
}

.listing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(15, 181, 122, 0), rgba(15, 181, 122, 0.42), rgba(15, 181, 122, 0));
}

.listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 80px rgba(14, 39, 32, 0.1);
}

.blog-card {
    min-width: 0;
}

.blog-card-media {
    display: block;
    overflow: hidden;
    border-radius: 1.6rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 18px 40px rgba(9, 37, 32, 0.12);
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.03);
    filter: saturate(1.04);
}

.blog-card-image-fallback,
.blog-hero-image-fallback,
.empty-state-art {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        radial-gradient(circle at top right, rgba(15, 181, 122, 0.24), rgba(15, 181, 122, 0)),
        linear-gradient(145deg, rgba(18, 58, 50, 0.92), rgba(9, 37, 32, 0.98));
}

.blog-card-image-fallback {
    min-height: 14rem;
    padding: 1.4rem;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-slate-400);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.blog-card-title {
    display: block;
    margin-top: 0.85rem;
    color: var(--color-slate-950);
    font-size: 1.38rem;
    font-weight: 700;
    line-height: 1.18;
}

.blog-card-title:hover,
.blog-card-title:focus-visible {
    color: var(--color-dereva-green-strong);
}

.blog-card-kicker {
    display: block;
    margin-top: 1rem;
    color: var(--color-dereva-green-strong);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

.blog-card-author {
    margin-top: 0.9rem;
    color: var(--color-slate-500);
    font-size: 0.92rem;
    font-weight: 700;
}

.listing-copy {
    margin-top: 0.85rem;
    color: var(--color-slate-600);
    font-size: 0.95rem;
    line-height: 1.8;
}

.listing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.pagination-shell {
    margin-top: 1.75rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.7rem;
    height: 2.7rem;
    padding-inline: 0.95rem;
    border: 1px solid var(--color-slate-200);
    border-radius: 0.85rem;
    background: #fff;
    color: var(--color-slate-700);
    font-size: 0.92rem;
    font-weight: 800;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus-visible {
    border-color: rgba(15, 181, 122, 0.24);
    background: rgba(223, 247, 238, 0.55);
    color: var(--color-dereva-green-strong);
}

.archive-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(15, 181, 122, 0.18);
    border-radius: 999px;
    background: rgba(223, 247, 238, 0.65);
    padding: 0.42rem 0.9rem;
    color: var(--color-dereva-green-strong);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.sidebar-link {
    display: block;
    border: 1px solid var(--color-slate-200);
    border-radius: 1.2rem;
    background: #fff;
    padding: 0.95rem 1rem;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
    border-color: rgba(15, 181, 122, 0.24);
    background: rgba(223, 247, 238, 0.55);
    transform: translateY(-2px);
}

.sidebar-link__title {
    display: block;
    color: var(--color-slate-950);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.45;
}

.sidebar-link__meta {
    display: block;
    margin-top: 0.35rem;
    color: var(--color-slate-400);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.back-link {
    color: var(--color-dereva-green-strong);
    font-size: 0.9rem;
    font-weight: 800;
}

.back-link:hover,
.back-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.single-hero-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.4rem;
}

.single-intro {
    margin-top: 1rem;
    max-width: 50rem;
    color: var(--color-slate-600);
    font-size: 1rem;
    line-height: 1.9;
}

.meta-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.meta-card {
    border: 1px solid var(--color-slate-200);
    border-radius: 1.2rem;
    background: var(--color-slate-50);
    padding: 1rem;
}

.meta-card__label {
    color: var(--color-slate-400);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.meta-card__value {
    margin-top: 0.45rem;
    color: var(--color-slate-950);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.55;
}

.blog-hero-media {
    position: relative;
}

.blog-hero-image {
    width: 100%;
    min-height: 22rem;
    border-radius: 2rem;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 24px 70px rgba(9, 37, 32, 0.14);
}

.blog-hero-image-fallback {
    min-height: 22rem;
    padding: 1.8rem;
}

.article-panel {
    padding: 1.5rem;
}

.blog-prose {
    color: rgba(18, 33, 29, 0.84);
    font-size: 1rem;
    line-height: 1.9;
}

.blog-prose > * + * {
    margin-top: 1.15rem;
}

.blog-prose h1,
.blog-prose h2,
.blog-prose h3,
.blog-prose h4 {
    color: var(--color-dereva-dark);
    font-weight: 700;
    line-height: 1.12;
}

.blog-prose h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-top: 0;
}

.blog-prose h2 {
    font-size: clamp(1.55rem, 3vw, 2.05rem);
    margin-top: 2rem;
}

.blog-prose h3 {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    margin-top: 1.75rem;
}

.blog-prose p,
.blog-prose li {
    color: rgba(18, 33, 29, 0.84);
}

.blog-prose ul,
.blog-prose ol {
    margin-left: 1.25rem;
    padding-left: 0.45rem;
}

.blog-prose ul {
    list-style: disc;
}

.blog-prose ol {
    list-style: decimal;
}

.blog-prose li + li {
    margin-top: 0.45rem;
}

.blog-prose strong {
    color: var(--color-dereva-dark);
    font-weight: 800;
}

.blog-prose a {
    color: var(--color-dereva-green-strong);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.blog-prose blockquote {
    border-left: 4px solid rgba(15, 181, 122, 0.36);
    border-radius: 1rem;
    background: rgba(223, 247, 238, 0.5);
    padding: 1rem 1.1rem;
    color: rgba(18, 33, 29, 0.78);
}

.blog-prose img {
    border-radius: 1.5rem;
    box-shadow: 0 18px 48px rgba(14, 39, 32, 0.08);
}

.blog-prose hr {
    border: 0;
    border-top: 1px solid rgba(216, 231, 222, 0.9);
    margin-block: 2rem;
}

.blog-prose table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 1rem;
}

.blog-prose th,
.blog-prose td {
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-slate-200);
    text-align: left;
}

.blog-prose iframe,
.blog-prose video {
    width: 100%;
    border-radius: 1.4rem;
}

.blog-prose .wp-block-image,
.blog-prose .wp-block-cover,
.blog-prose .wp-block-embed {
    margin-top: 1.5rem;
}

.blog-prose .wp-block-button {
    margin-top: 1.5rem;
}

.blog-article-cta {
    margin-top: 2.25rem;
    border: 1px solid rgba(15, 181, 122, 0.16);
    border-radius: 2rem;
    background: linear-gradient(180deg, rgba(223, 247, 238, 0.72), rgba(255, 255, 255, 0.94));
    padding: 1.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 18px 38px rgba(14, 39, 32, 0.05);
}

.blog-toc-link {
    display: block;
    border-radius: 1rem;
    padding: 0.75rem 0.85rem;
    color: rgba(18, 33, 29, 0.74);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.55;
}

.blog-toc-link:hover,
.blog-toc-link:focus-visible,
.blog-toc-link.is-active {
    background: rgba(223, 247, 238, 0.65);
    color: var(--color-dereva-green-strong);
}

.blog-toc-link--nested {
    margin-left: 0.9rem;
    font-size: 0.88rem;
    color: rgba(18, 33, 29, 0.58);
}

.related-section {
    margin-top: 2.5rem;
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-copy {
    max-width: 40rem;
    color: var(--color-slate-600);
    font-size: 1rem;
    line-height: 1.8;
}

.empty-state-art {
    min-height: 14rem;
    border-radius: 1.5rem;
    padding: 1.35rem;
    margin-bottom: 1rem;
}

.search-empty__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.page-content-card {
    max-width: 58rem;
    margin-inline: auto;
}

.page-content-card .blog-prose {
    margin-top: 1.25rem;
}

.footer-shell {
    margin-top: 3rem;
    border-top: 1px solid var(--color-slate-200);
    background: #fff;
}

.footer-shell__inner {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.8rem 0;
    text-align: center;
}

.footer-shell__brandline {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.footer-shell__meta {
    color: var(--color-slate-500);
    font-size: 0.82rem;
}

.footer-menu,
.footer-shell__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.88rem;
    font-weight: 700;
}

.footer-link,
.footer-menu a {
    color: var(--color-slate-700);
}

.footer-link:hover,
.footer-link:focus-visible,
.footer-menu a:hover,
.footer-menu a:focus-visible {
    color: var(--color-dereva-green-strong);
}

.footer-shell__bottom {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem 0 1.4rem;
    border-top: 1px solid var(--color-slate-200);
    color: var(--color-slate-600);
    font-size: 0.92rem;
    text-align: center;
}

.footer-shell__support {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-shell__support a {
    font-weight: 700;
}

.footer-shell__support a:hover,
.footer-shell__support a:focus-visible {
    color: var(--color-dereva-green-strong);
}

.search-form {
    display: grid;
    gap: 0.65rem;
}

.wp-block-search__button,
input[type='submit'],
button[type='submit'] {
    cursor: pointer;
}

.wp-block-search__button,
input[type='submit'] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.1rem;
    border: 0;
    border-radius: 0.85rem;
    background: var(--color-orange);
    padding: 0.85rem 1.2rem;
    color: #fff;
    font-weight: 800;
}

.wp-block-search__button:hover,
input[type='submit']:hover,
.wp-block-search__button:focus-visible,
input[type='submit']:focus-visible {
    background: var(--color-dereva-green-strong);
}

.alignwide,
.alignfull {
    max-width: 100%;
}

.wp-caption,
.gallery-caption {
    color: var(--color-slate-500);
    font-size: 0.85rem;
}

.sticky .blog-card-title::after {
    content: 'Featured';
    display: inline-flex;
    align-items: center;
    margin-left: 0.6rem;
    border: 1px solid rgba(15, 181, 122, 0.18);
    border-radius: 999px;
    background: rgba(223, 247, 238, 0.65);
    padding: 0.25rem 0.55rem;
    color: var(--color-dereva-green-strong);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

@media (min-width: 720px) {
    .container-app {
        padding-inline: 1.5rem;
    }

    .blog-search-form {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .site-nav {
        display: flex;
    }

    .site-header__actions {
        display: flex;
    }

    .site-header__menu,
    .mobile-nav-panel {
        display: none !important;
    }

    .page-hero-surface {
        padding: 1.9rem 2rem;
    }

    .content-grid {
        grid-template-columns: minmax(0, 1fr) 19rem;
    }

    .content-grid--single {
        grid-template-columns: minmax(0, 1fr) 20rem;
    }

    .single-hero-grid {
        grid-template-columns: minmax(0, 1fr) 22rem;
        align-items: start;
    }

    .post-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-shell__inner,
    .footer-shell__bottom {
        flex-direction: row;
        text-align: left;
    }

    .footer-shell__brandline {
        align-items: flex-start;
    }

    .footer-shell__support {
        justify-content: flex-end;
    }
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 719px) {
    .page-hero-title {
        max-width: 14ch;
    }

    .article-panel,
    .panel,
    .panel-soft,
    .public-page-card,
    .search-empty,
    .page-hero-surface {
        padding: 1.2rem;
    }

    .blog-hero-image,
    .blog-hero-image-fallback {
        min-height: 18rem;
    }

    .site-main {
        padding-top: 1.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Main Dereva landing parity. Keep this block last so it wins over earlier theme defaults. */
body {
    background: #edf2f5;
    color: #0f172a;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
    letter-spacing: -0.04em;
}

.site-shell {
    overflow: hidden;
}

.site-shell::before,
.site-shell::after {
    display: none;
}

.container-app {
    width: min(100%, 1260px);
    padding-inline: 1rem;
}

.site-main {
    padding: 0 0 3rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
}

.site-header__inner {
    min-height: 4rem;
    gap: 1rem;
}

.site-brand {
    align-items: baseline;
}

.site-brand__name {
    color: #0f172a;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.site-brand__suffix {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 700;
}

.site-nav {
    justify-content: center;
}

.site-nav__menu {
    gap: 0.35rem;
}

.site-nav__menu a {
    border-radius: 0.8rem;
    padding: 0.62rem 0.9rem;
    color: #475569;
    font-size: 0.83rem;
    font-weight: 700;
}

.site-nav__menu .current-menu-item > a,
.site-nav__menu .current-menu-ancestor > a,
.site-nav__menu .current_page_item > a,
.site-nav__menu a:hover,
.site-nav__menu a:focus-visible {
    background: #f1f5f9;
    color: #0f172a;
}

.site-header__link {
    color: #334155;
    font-size: 0.84rem;
    font-weight: 700;
}

.site-header__link:hover,
.site-header__link:focus-visible {
    color: #0f172a;
}

.site-header__cta,
.button-primary,
.mobile-nav__cta,
.wp-block-button__link,
.wp-block-search__button,
input[type='submit'] {
    min-height: 2.75rem;
    border: 0;
    border-radius: 0.8rem;
    background: #f97316;
    padding: 0.82rem 1.12rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
}

.site-header__cta:hover,
.site-header__cta:focus-visible,
.button-primary:hover,
.button-primary:focus-visible,
.mobile-nav__cta:hover,
.mobile-nav__cta:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.wp-block-search__button:hover,
.wp-block-search__button:focus-visible,
input[type='submit']:hover,
input[type='submit']:focus-visible {
    background: #0f9a34;
    color: #fff;
    transform: translateY(-1px);
}

.button-secondary {
    min-height: 2.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    background: #fff;
    padding: 0.82rem 1.12rem;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: #bbf7d0;
    background: #fff;
    color: #047857;
    transform: translateY(-1px);
}

.site-header__menu {
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    color: #1e293b;
}

.mobile-nav-panel {
    padding-bottom: 1rem;
}

.mobile-nav-panel__inner {
    border-color: #e2e8f0;
    border-radius: 0.85rem;
    box-shadow: none;
}

.mobile-nav__menu a {
    border-radius: 0.7rem;
    color: #1e293b;
    font-size: 0.92rem;
}

.mobile-nav__menu .current-menu-item > a,
.mobile-nav__menu .current_page_item > a,
.mobile-nav__menu a:hover,
.mobile-nav__menu a:focus-visible {
    background: #ecfdf5;
    color: #047857;
}

.site-main > .container-app {
    width: 100%;
    max-width: none;
    padding-inline: 0;
}

.site-main > .container-app > :not(.market-home) {
    width: min(100%, 1260px);
    margin-inline: auto;
    padding-inline: 1rem;
}

.market-home {
    width: 100%;
    margin-left: 0;
    background: #edf2f5;
    padding-bottom: 2rem;
}

.market-home__hero {
    background: #12b53c;
    padding: 2rem 1rem 5rem;
}

.market-home__hero-inner,
.market-home__layout {
    width: min(100%, 1260px);
    margin-inline: auto;
}

.market-home__hero-inner {
    display: flex;
    min-height: 18rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.market-home__hero-copy {
    width: 100%;
    max-width: 48rem;
}

.market-home__eyebrow {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.26em;
    line-height: 1.4;
    text-transform: uppercase;
}

.market-home__hero-title {
    max-width: 18ch;
    margin-inline: auto;
    color: #fff;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 900;
    line-height: 1.06;
    overflow-wrap: normal;
}

.market-home__search {
    display: grid;
    gap: 0.65rem;
    max-width: 37rem;
    margin: 1.75rem auto 0;
}

.market-home__search-select,
.market-home__search-input {
    min-height: 3rem;
    border: 0;
    border-radius: 0.6rem;
    background: #fff;
    box-shadow: none;
}

.market-home__search-select {
    width: 100%;
    padding: 0 1rem;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 700;
    outline: none;
}

.market-home__search-input {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.25rem 0.25rem 1rem;
}

.market-home__search-field {
    height: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    color: #334155;
    font-size: 0.92rem;
    outline: none;
    box-shadow: none;
}

.market-home__search-field:focus {
    box-shadow: none;
}

.market-home__search-button {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0.6rem;
    background: transparent;
    color: #7b91a8;
    cursor: pointer;
}

.market-home__search-button:hover,
.market-home__search-button:focus-visible {
    background: #f1f5f9;
    color: #0f172a;
}

.market-home__search-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

.market-home__hero-note {
    max-width: 40rem;
    margin: 1rem auto 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    line-height: 1.7;
}

.market-home__market {
    background: #edf2f5;
    padding: 0.9rem 1rem 2rem;
}

.market-home__layout {
    display: grid;
    gap: 0.85rem;
}

.market-home__category-menu,
.market-home__main {
    min-width: 0;
}

.market-home__category-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

.market-home__category-toggle {
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #fff;
    padding: 0.8rem 1rem;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 800;
}

.market-home__category-toggle-icon {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
}

.market-home__category-toggle-icon svg {
    width: 1rem;
    height: 1rem;
}

.market-home__category-checkbox:checked + .market-home__category-toggle .market-home__category-toggle-icon {
    transform: rotate(180deg);
}

.market-home__category-panel {
    display: none;
    margin-top: 0.5rem;
}

.market-home__category-checkbox:checked ~ .market-home__category-panel {
    display: block;
}

.market-home__sidebar {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: none;
}

.market-home__sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.85rem;
}

.market-home__sidebar-item:last-child {
    border-bottom: 0;
}

.market-home__sidebar-item:hover,
.market-home__sidebar-item:focus-visible {
    background: #f8fafc;
}

.market-home__sidebar-icon {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #edf7ef;
    color: #047857;
    font-size: 0.7rem;
    font-weight: 900;
}

.market-home__sidebar-text {
    min-width: 0;
    flex: 1;
}

.market-home__sidebar-title {
    display: block;
    color: #1e293b;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
}

.market-home__sidebar-copy {
    display: block;
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
}

.market-home__sidebar-arrow {
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1;
}

.market-home__section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 1rem;
}

.market-home__section-heading:first-child {
    margin-top: 0;
}

.market-home__section-title {
    color: #1e293b;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1.2;
}

.market-home__section-copy {
    margin-top: 0.22rem;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.55;
}

.market-home__blog-grid {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.85rem;
}

.market-home__quick-grid {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.85rem;
}

.market-home__cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #fff;
    padding: 1rem;
}

.market-home__cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.page-hero-surface,
.panel,
.panel-soft,
.listing-card,
.public-page-card,
.search-empty,
.blog-article-cta,
.sidebar-link,
.meta-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.95rem;
    background: #fff;
    background-image: none;
    box-shadow: none;
}

.page-hero-surface {
    margin-top: 2rem;
    padding: 1.35rem;
}

.panel,
.panel-soft,
.public-page-card,
.search-empty,
.article-panel {
    padding: 1rem;
}

.eyebrow,
.archive-tag {
    color: #047857;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.24em;
}

.page-hero-title {
    color: #0f172a;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.05;
}

.page-hero-copy,
.single-intro,
.section-copy,
.listing-copy {
    color: #475569;
    line-height: 1.75;
}

.blog-search-form {
    max-width: 37rem;
}

.input,
.search-field,
select,
textarea {
    border-color: #d8e7de;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: none;
}

.input:focus,
.search-field:focus,
select:focus,
textarea:focus {
    border-color: rgba(15, 181, 122, 0.5);
    box-shadow: 0 0 0 4px rgba(15, 181, 122, 0.12);
}

.post-grid {
    gap: 0.85rem;
}

.listing-card.blog-card {
    overflow: hidden;
    padding: 0;
}

.listing-card::before {
    display: none;
}

.listing-card:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.blog-card-media {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.blog-card-image {
    aspect-ratio: 16 / 9;
}

.blog-card-image-fallback,
.blog-hero-image-fallback,
.empty-state-art {
    background: linear-gradient(135deg, #e7efe8 0%, #f7faf8 100%);
    color: #047857;
}

.blog-card-image-fallback {
    min-height: 10.5rem;
}

.blog-card-image-fallback .eyebrow {
    color: #047857;
}

.blog-card-image-fallback p {
    color: #047857 !important;
}

.blog-card .blog-card-meta,
.blog-card .blog-card-kicker,
.blog-card .blog-card-title,
.blog-card .blog-card-author,
.blog-card .listing-copy,
.blog-card .listing-actions {
    margin-right: 0.85rem;
    margin-left: 0.85rem;
}

.blog-card-meta {
    margin-top: 0.85rem;
    color: #64748b;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.blog-card-kicker {
    margin-top: 0.75rem;
    color: #047857;
    font-size: 0.68rem;
}

.blog-card-title {
    margin-top: 0.45rem;
    color: #1e293b;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
}

.blog-card-title:hover,
.blog-card-title:focus-visible {
    color: #047857;
}

.blog-card-author {
    margin-top: 0.55rem;
    color: #64748b;
    font-size: 0.78rem;
}

.listing-copy {
    margin-top: 0.5rem;
    font-size: 0.82rem;
}

.listing-actions {
    margin-top: 0.8rem;
    margin-bottom: 0.85rem;
}

.listing-actions .button-secondary {
    width: 100%;
    min-height: 2.45rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.82rem;
}

.badge {
    border-color: #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 800;
}

.single-hero-grid {
    gap: 1rem;
}

.blog-hero-image,
.blog-hero-image-fallback {
    min-height: 18rem;
    border-radius: 0.95rem;
    box-shadow: none;
}

.blog-prose {
    color: #334155;
    line-height: 1.85;
}

.blog-prose h1,
.blog-prose h2,
.blog-prose h3,
.blog-prose h4 {
    color: #0f172a;
    font-weight: 900;
}

.blog-prose a,
.back-link,
.footer-link:hover,
.footer-link:focus-visible {
    color: #047857;
}

.blog-prose blockquote {
    border-left-color: rgba(15, 181, 122, 0.35);
    border-radius: 0.85rem;
    background: #ecfdf5;
}

.blog-article-cta {
    margin-top: 1.5rem;
    padding: 1rem;
}

.blog-toc-link {
    border-radius: 0.7rem;
}

.blog-toc-link:hover,
.blog-toc-link:focus-visible,
.blog-toc-link.is-active {
    background: #ecfdf5;
    color: #047857;
}

.sidebar-link {
    padding: 0.9rem;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
    border-color: #d1fae5;
    background: #f8fafc;
    transform: translateY(-1px);
}

.sidebar-link__title {
    color: #1e293b;
    font-weight: 800;
}

.sidebar-link__meta {
    color: #64748b;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.meta-card {
    background: #f8fafc;
}

.page-numbers {
    border-color: #e2e8f0;
    border-radius: 0.8rem;
    background: #fff;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus-visible {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #047857;
}

.footer-shell {
    margin-top: 0;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.footer-shell__inner {
    padding: 1.6rem 0;
}

.footer-shell__meta,
.footer-shell__bottom {
    color: #64748b;
}

.footer-link,
.footer-menu a {
    color: #334155;
    font-weight: 700;
}

@media (min-width: 720px) {
    .container-app {
        padding-inline: 1.5rem;
    }

    .market-home__search {
        grid-template-columns: 10rem minmax(0, 1fr);
    }

    .market-home__blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-home__quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-home__cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .site-main {
        padding-bottom: 4rem;
    }

    .content-grid {
        grid-template-columns: minmax(0, 1fr) 19rem;
    }

    .content-grid--single {
        grid-template-columns: minmax(0, 1fr) 20rem;
    }

    .single-hero-grid {
        grid-template-columns: minmax(0, 1fr) 22rem;
        align-items: start;
    }

    .market-home__blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .market-home__layout {
        grid-template-columns: 15rem minmax(0, 1fr);
    }

    .market-home__category-toggle {
        display: none;
    }

    .market-home__category-panel {
        display: block;
        margin-top: 0;
    }
}

@media (max-width: 719px) {
    .market-home__hero {
        padding-top: 1.6rem;
        padding-bottom: 3.5rem;
    }

    .market-home__hero-title {
        font-size: 2rem;
    }

    .market-home__market {
        padding-top: 0.7rem;
    }

    .page-hero-surface {
        margin-top: 1rem;
        padding: 1rem;
    }

    .page-hero-title {
        max-width: 14ch;
    }

    .blog-card .blog-card-meta,
    .blog-card .blog-card-kicker,
    .blog-card .blog-card-title,
    .blog-card .blog-card-author,
    .blog-card .listing-copy,
    .blog-card .listing-actions {
        margin-right: 0.75rem;
        margin-left: 0.75rem;
    }
}

/* Dereva production polish. This final layer keeps the WordPress blog aligned with the live Laravel marketplace. */
:root {
    --dereva-page: #edf2f5;
    --dereva-card: #ffffff;
    --dereva-border: #dbe3ea;
    --dereva-text: #0f172a;
    --dereva-muted: #536579;
    --dereva-green: #12b53c;
    --dereva-green-dark: #0f9a34;
    --dereva-orange: #f97316;
    --dereva-container: 1196px;
    --dereva-gutter: clamp(0.85rem, 2vw, 1.35rem);
}

html {
    overflow-x: hidden;
}

body {
    display: block;
    overflow-x: hidden;
    background: var(--dereva-page);
    color: var(--dereva-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
    top: 32px;
}

.site-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    border: 0;
    min-height: 100vh;
    overflow: clip;
    background: var(--dereva-page);
}

.container-app {
    width: min(100%, var(--dereva-container));
    max-width: var(--dereva-container);
    margin-inline: auto;
    padding-inline: var(--dereva-gutter);
}

.site-header {
    width: 100%;
    max-width: none;
    background: #fff;
    border-bottom: 1px solid var(--dereva-border);
    box-shadow: none;
}

.site-header > .container-app {
    max-width: var(--dereva-container);
    padding-inline: var(--dereva-gutter);
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto auto;
    min-height: 4rem;
    gap: 1rem;
}

.site-brand {
    min-width: max-content;
}

.site-brand__name {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    color: #061a2f;
}

.site-brand__suffix {
    color: #8aa0bd;
}

.site-nav__menu {
    flex-wrap: nowrap;
    min-width: 0;
}

.site-nav__menu a,
.site-header__link,
.site-header__cta {
    white-space: nowrap;
}

.site-header__actions {
    min-width: max-content;
}

.site-header__cta,
.button-primary,
.mobile-nav__cta,
.wp-block-button__link,
.wp-block-search__button,
input[type='submit'] {
    background: var(--dereva-orange);
    border-radius: 0.72rem;
    font-weight: 800;
}

.site-header__cta:hover,
.site-header__cta:focus-visible,
.button-primary:hover,
.button-primary:focus-visible,
.mobile-nav__cta:hover,
.mobile-nav__cta:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
.wp-block-search__button:hover,
.wp-block-search__button:focus-visible,
input[type='submit']:hover,
input[type='submit']:focus-visible {
    background: var(--dereva-green-dark);
}

.button-secondary {
    border-color: var(--dereva-border);
    border-radius: 0.72rem;
}

.site-main {
    width: 100%;
    max-width: none;
    padding: 0;
}

.site-main > .container-app {
    width: 100%;
    max-width: none;
    padding-inline: 0;
}

.site-main > .container-app > :not(.market-home) {
    width: min(100%, var(--dereva-container));
    max-width: var(--dereva-container);
    margin-inline: auto;
    padding-inline: 1rem;
}

.market-home {
    width: 100%;
    background: var(--dereva-page);
    padding-bottom: 2rem;
}

.market-home__hero {
    overflow: hidden;
    background: var(--dereva-green);
    padding: clamp(2.2rem, 5vw, 4rem) 1rem clamp(3rem, 6vw, 4.8rem);
}

.market-home__hero-inner {
    width: min(100%, var(--dereva-container));
    min-height: auto;
    margin-inline: auto;
}

.market-home__hero-copy {
    max-width: 52rem;
    margin-inline: auto;
}

.market-home__eyebrow {
    color: rgba(255, 255, 255, 0.86);
    letter-spacing: 0.36em;
}

.market-home__hero-title {
    max-width: 22ch;
    margin-inline: auto;
    color: #fff;
    font-size: clamp(2.05rem, 5.2vw, 3.45rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.market-home__search {
    width: min(100%, 44rem);
    max-width: none;
    margin-top: 1.8rem;
}

.market-home__search-select,
.market-home__search-input {
    min-height: 3.1rem;
    border-radius: 0.72rem;
    background: #fff;
}

.market-home__search-field {
    min-width: 0;
}

.market-home__search-field::placeholder {
    color: #8aa0b8;
}

.market-home__hero-note {
    max-width: 44rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.84rem;
}

.market-home__market {
    padding: 1rem var(--dereva-gutter) 2.5rem;
}

.market-home__layout {
    width: min(100%, var(--dereva-container));
    margin-inline: auto;
    gap: 1rem;
}

.market-home__section-heading {
    margin-top: 1.2rem;
    padding: 0.15rem 0;
}

.market-home__section-title {
    color: #061a2f;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.market-home__section-copy {
    color: var(--dereva-muted);
}

.market-home__sidebar,
.listing-card.blog-card,
.sidebar-link,
.market-home__cta,
.page-hero-surface,
.panel,
.panel-soft,
.public-page-card,
.search-empty,
.blog-article-cta,
.meta-card {
    border-color: var(--dereva-border);
    border-radius: 0.85rem;
    background: var(--dereva-card);
    box-shadow: none;
}

.market-home__sidebar {
    position: sticky;
    top: 5rem;
}

.market-home__sidebar-item {
    min-height: 4.65rem;
}

.market-home__sidebar-title,
.blog-card-title,
.sidebar-link__title {
    color: #10233c;
}

.market-home__sidebar-copy,
.listing-copy,
.sidebar-link__meta {
    color: var(--dereva-muted);
}

.market-home__blog-grid {
    gap: 1rem;
    align-items: stretch;
}

.listing-card.blog-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
}

.blog-card-media {
    background: #edf7ef;
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transform: none;
}

.blog-card:hover .blog-card-image {
    transform: none;
}

.blog-card-image-fallback {
    display: flex;
    min-height: 11rem;
    justify-content: flex-end;
    padding: 1rem;
    background:
        radial-gradient(circle at 86% 8%, rgba(18, 181, 60, 0.18), transparent 26%),
        linear-gradient(135deg, #eef7f0 0%, #ffffff 100%);
}

.blog-card-image-fallback__title {
    max-width: 14rem;
    margin-top: 0.65rem;
    color: #047857;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.blog-card .blog-card-meta,
.blog-card .blog-card-kicker,
.blog-card .blog-card-title,
.blog-card .blog-card-author,
.blog-card .listing-copy,
.blog-card .listing-actions {
    margin-right: 1rem;
    margin-left: 1rem;
}

.blog-card-meta {
    gap: 0.4rem;
    color: #71849a;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
}

.blog-card-kicker {
    color: #047857;
}

.blog-card-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.7em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 1rem;
}

.blog-card-author {
    color: #71849a;
    font-size: 0.78rem;
}

.listing-copy {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 0.84rem;
}

.listing-actions {
    margin-top: auto;
    padding-top: 0.75rem;
}

.listing-actions .button-secondary {
    width: 100%;
    min-height: 2.6rem;
}

.market-home__quick-grid {
    gap: 1rem;
}

.market-home__cta {
    align-items: flex-start;
    padding: 1.1rem;
}

.footer-shell {
    width: 100%;
    max-width: none;
    margin-top: 0;
}

.footer-shell > .container-app {
    max-width: var(--dereva-container);
}

body .site-shell,
body .site-header,
body .site-main,
body .footer-shell,
body .market-home,
body .market-home__hero,
body .market-home__market {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

body .site-header > .container-app,
body .market-home__hero-inner,
body .market-home__layout,
body .footer-shell > .container-app {
    width: min(100%, var(--dereva-container)) !important;
    max-width: var(--dereva-container) !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.sidebar-panel-title {
    margin-top: 0.55rem;
    max-width: none;
    color: #10233c;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 900;
    line-height: 1.08;
}

.sidebar-grid--spaced {
    margin-top: 1.15rem;
}

.sidebar-grid--spaced-sm {
    margin-top: 1rem;
}

.page-hero-copy--compact {
    margin-top: 0.85rem;
}

.page-content-card--spaced {
    margin-top: 1.5rem;
}

.blog-hero-fallback__eyebrow,
.empty-state-art__eyebrow {
    color: #047857;
}

.blog-hero-fallback__title {
    max-width: 15rem;
    margin-top: 1rem;
    color: #047857;
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1.12;
}

.blog-hero-fallback__copy {
    max-width: 22rem;
    margin-top: 1rem;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.75;
}

.article-cta-title {
    max-width: 18ch;
    color: #10233c;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    font-weight: 900;
    line-height: 1.08;
}

.eyebrow--muted {
    color: #64748b;
}

.related-section-title {
    max-width: none;
    color: #10233c;
    font-size: clamp(1.75rem, 4vw, 2.55rem);
    font-weight: 900;
    line-height: 1.08;
}

.post-grid--spaced {
    margin-top: 1.5rem;
}

.empty-state-art__title {
    max-width: 16rem;
    margin-top: 0.85rem;
    color: #047857;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.16;
}

.empty-state-title {
    max-width: 16ch;
    color: #10233c;
    font-size: clamp(1.7rem, 4vw, 2.45rem);
    font-weight: 900;
    line-height: 1.08;
}

@media (min-width: 720px) {
    .site-header > .container-app,
    .site-main > .container-app > :not(.market-home),
    .footer-shell > .container-app {
        padding-inline: var(--dereva-gutter);
    }

    .site-header__inner {
        grid-template-columns: auto 1fr auto;
    }

    .market-home__search {
        grid-template-columns: 10rem minmax(0, 1fr);
    }

    .market-home__quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1120px) {
    .site-nav,
    .site-header__actions {
        display: flex;
    }

    .site-header__menu,
    .mobile-nav-panel {
        display: none !important;
    }

    .site-nav__menu a {
        padding-inline: 0.78rem;
        font-size: 0.8rem;
    }
}

@media (min-width: 1280px) {
    .market-home__layout {
        grid-template-columns: 17rem minmax(0, 1fr);
    }

    .market-home__blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1440px) {
    .market-home__blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-nav__menu a {
        padding-inline: 0.95rem;
        font-size: 0.84rem;
    }
}


@media (max-width: 1119px) {
    .site-nav,
    .site-header__actions {
        display: none !important;
    }

    .site-header__menu {
        display: inline-flex;
        justify-self: end;
    }
}

@media (max-width: 719px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    .site-header > .container-app,
    .site-main > .container-app > :not(.market-home),
    .footer-shell > .container-app {
        padding-inline: var(--dereva-gutter);
    }

    .site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .market-home__hero {
        padding: 2rem 1rem 3.25rem;
    }

    .market-home__hero-title {
        max-width: 13ch;
        font-size: clamp(2rem, 12vw, 2.65rem);
    }

    .market-home__search {
        gap: 0.55rem;
    }

    .market-home__market {
        padding-inline: 0.85rem;
    }

    .market-home__sidebar {
        position: static;
    }

    .market-home__blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-image-fallback {
        min-height: 10rem;
    }

    .market-home__cta-actions,
    .market-home__cta-actions .button-primary,
    .market-home__cta-actions .button-secondary {
        width: 100%;
    }

    .market-home__cta-actions {
        display: grid;
    }
}
