:root {
    --accent:       #dc3545;
    --accent-light: #e35d6a;
    --accent-dim:   rgba(220,53,69,.12);
    --green:        #198754;
    --green-dim:    rgba(25,135,84,.12);
    --sand:         #f2d3a1;
    --dark:         #212529;
    --slate:        #3f2d25;
    --slate-light:  #7a4b3a;
    --muted:        #8c6f63;
    --surface:      #f8f4ef;
    --border:       #e7d9cf;
    --radius:       .75rem;
}

/* ── Base ── */
body { color: #2d1f27; background: var(--surface); }

a { color: var(--accent); }
a:hover { color: var(--accent-light); }

/* ── Navbar ── */
.navbar {
    background: var(--dark) !important;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar-brand {
    font-weight: 800;
    letter-spacing: -.5px;
    background: linear-gradient(90deg, #fff 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-link { color: var(--sand) !important; font-size: .9rem; opacity: .8; }
.nav-link:hover, .nav-link.active { color: #fff !important; opacity: 1; }
.navbar .form-control {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.1);
    color: #fff;
    font-size: .85rem;
}
.navbar .form-control::placeholder { color: var(--muted); }
.navbar .form-control:focus {
    background: rgba(255,255,255,.1);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(208,41,65,.25);
    color: #fff;
}

/* ── Hero ── */
.hero {
    position: relative;
    padding: 5rem 0 4rem;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(208,41,65,.25) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(245,126,103,.15) 0%, transparent 60%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--accent-dim);
    border: 1px solid rgba(208,41,65,.3);
    color: var(--accent-light);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .85rem;
    border-radius: 2rem;
    margin-bottom: 1.25rem;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
    color: #fff;
}
.hero p { color: var(--sand); font-size: 1.05rem; opacity: .85; }
.btn-accent {
    background: var(--accent);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: .6rem 1.5rem;
    border-radius: .5rem;
    transition: background .15s, transform .1s, box-shadow .15s;
}
.btn-accent:hover {
    background: var(--accent-light);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(208,41,65,.4);
}
.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,.2);
    color: var(--sand);
    font-weight: 500;
    padding: .6rem 1.5rem;
    border-radius: .5rem;
    transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.5); color: #fff; }

/* ── Section heading ── */
.section-heading {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.5rem;
}
.section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Category tag ── */
.category-tag {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--green);
    background: var(--green-dim);
    padding: .15rem .55rem;
    border-radius: 2rem;
    text-decoration: none;
    border: 1px solid rgba(140,171,148,.3);
}
.category-tag:hover { background: rgba(140,171,148,.28); color: var(--green); }

/* ── Article card (compact list) ── */
.article-card {
    display: flex;
    gap: 1rem;
    padding: 1.1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow .2s, transform .2s;
    position: relative;
}
.article-card:hover {
    box-shadow: 0 8px 30px rgba(40,27,36,.1);
    transform: translateY(-2px);
}
.article-thumb {
    flex-shrink: 0;
    width: 120px;
    aspect-ratio: 4/3;
    border-radius: .5rem;
    object-fit: cover;
}
.article-thumb-placeholder {
    flex-shrink: 0;
    width: 120px;
    aspect-ratio: 4/3;
    border-radius: .5rem;
    background: linear-gradient(135deg, #f5ede8, #ecddd5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 1.5rem;
    text-decoration: none;
}
.article-card h3 { font-size: .95rem; font-weight: 700; margin: .3rem 0 .25rem; line-height: 1.35; }
.article-card h3 a { color: #2d1f27; text-decoration: none; }
.article-card h3 a:hover { color: var(--accent); }
.excerpt { font-size: .82rem; color: #6b5060; line-height: 1.5; margin: 0; }
.meta { font-size: .75rem; color: var(--muted); }

/* ── Sidebar ── */
.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.sidebar-card h6 {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}
.category-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .6rem;
    border-radius: .4rem;
    color: #2d1f27;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.category-link::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    opacity: .6;
    transition: opacity .15s;
}
.category-link:hover { background: var(--green-dim); color: var(--green); }
.category-link:hover::before { opacity: 1; }

/* ── Newsletter sidebar ── */
.newsletter-card {
    background: linear-gradient(135deg, var(--dark) 0%, var(--slate) 100%);
    border: 1px solid rgba(208,41,65,.2);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.newsletter-card h6 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: .35rem; }
.newsletter-card p { color: var(--sand); font-size: .82rem; margin-bottom: 1rem; opacity: .85; }
.newsletter-card .form-control {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    font-size: .85rem;
    border-radius: .45rem;
}
.newsletter-card .form-control::placeholder { color: var(--muted); }
.newsletter-card .form-control:focus {
    background: rgba(255,255,255,.12);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(208,41,65,.25);
    color: #fff;
}

/* ── Featured card ── */
.article-featured {
    display: flex;
    gap: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    position: relative;
    margin-bottom: 1rem;
}
.article-featured:hover {
    box-shadow: 0 12px 40px rgba(40,27,36,.12);
    transform: translateY(-2px);
}
.article-featured .feat-img {
    width: 55%;
    min-height: 280px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}
.article-featured .feat-placeholder {
    width: 55%;
    min-height: 280px;
    background: linear-gradient(135deg, #f5ede8, #ecddd5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 2.5rem;
    flex-shrink: 0;
}
.article-featured .feat-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.article-featured h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin: .4rem 0 .6rem; line-height: 1.3; }
.article-featured h2 a { color: #2d1f27; text-decoration: none; }
.article-featured h2 a:hover { color: var(--accent); }
.article-featured .excerpt { font-size: .875rem; color: #6b5060; line-height: 1.6; margin-bottom: 1rem; }
.article-featured .read-link {
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.article-featured .read-link:hover { color: var(--accent-light); }
@media (max-width: 767px) {
    .article-featured { flex-direction: column; }
    .article-featured .feat-img,
    .article-featured .feat-placeholder { width: 100%; }
}

/* ── Grid card ── */
.article-grid {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    position: relative;
    height: 100%;
}
.article-grid:hover {
    box-shadow: 0 8px 30px rgba(40,27,36,.1);
    transform: translateY(-2px);
}
.article-grid .grid-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.article-grid .grid-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #f5ede8, #ecddd5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 2rem;
    text-decoration: none;
}
.article-grid .grid-body { padding: 1rem; }
.article-grid h3 { font-size: .9rem; font-weight: 700; margin: .3rem 0 .4rem; line-height: 1.35; }
.article-grid h3 a { color: #2d1f27; text-decoration: none; }
.article-grid h3 a:hover { color: var(--accent); }
.article-grid .excerpt { font-size: .78rem; color: #6b5060; line-height: 1.5; margin: 0; }

/* ── Magazine block ── */
.mag-feat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.mag-feat img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.mag-feat .mag-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f5ede8, #ecddd5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 2.5rem;
}
.mag-feat .mag-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.mag-feat h3 { font-size: 1rem; font-weight: 800; color: #2d1f27; line-height: 1.35; margin: .35rem 0 .5rem; }
.mag-feat h3 a { color: inherit; text-decoration: none; }
.mag-feat h3 a:hover { color: var(--accent); }
.mag-feat .excerpt { font-size: .82rem; color: #6b5060; line-height: 1.5; margin: 0; flex: 1; }

.mag-secondary {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: .65rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    transition: box-shadow .2s, transform .15s;
    text-decoration: none;
}
.mag-secondary:hover { box-shadow: 0 4px 18px rgba(40,27,36,.09); transform: translateY(-1px); }
.mag-secondary img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.mag-secondary .mag-sec-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #f5ede8, #ecddd5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 1.8rem;
}
.mag-secondary .mag-sec-body { padding: .8rem; }
.mag-secondary h4 { font-size: .875rem; font-weight: 700; color: #2d1f27; line-height: 1.35; margin: .25rem 0 0; }

/* ── Pagination ── */
.pagination .page-link {
    border-radius: .4rem !important;
    margin: 0 .1rem;
    color: var(--accent);
    border-color: var(--border);
    font-size: .875rem;
}
.pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
}
.pagination .page-link:hover { background: var(--accent-dim); color: var(--accent); }

/* ── Hero full-viewport ── */
.hero-full {
    min-height: 60vh;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0 5rem;
}
.hero-full::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 20% 50%, rgba(208,41,65,.2) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 85% 20%, rgba(245,126,103,.12) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 70% 90%, rgba(140,171,148,.08) 0%, transparent 50%);
    pointer-events: none;
}
.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .22;
}
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    color: rgba(255,255,255,.3);
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(6px); }
}

/* hero main article (left) */
.hero-article-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    margin-bottom: .75rem;
}
.hero-article-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1rem;
}
.hero-article-excerpt {
    color: var(--sand);
    opacity: .85;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 1.75rem;
}

/* hero side article (right) */
.hero-side-card {
    display: block;
    text-decoration: none;
}
.hero-side-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    border-radius: .75rem;
    margin-bottom: 1rem;
    transition: opacity .2s;
}
.hero-side-card:hover img { opacity: .9; }
.hero-side-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(255,255,255,.05);
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.15);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero-side-body {
    padding: 0;
    text-align: center;
}
.hero-side-body .category-tag { margin-bottom: .5rem; display: inline-block; }
.hero-side-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin: 0 0 .5rem;
}
.hero-side-body .hero-side-excerpt {
    font-size: .83rem;
    color: var(--sand);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── News block ── */
.news-main-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
}
.news-main-card .news-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.news-main-card .news-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #f5ede8, #ecddd5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 3rem;
}
.news-main-card .news-body { padding: 1.5rem; }
.news-main-card h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #2d1f27;
    line-height: 1.35;
    margin: .4rem 0 .75rem;
}
.news-main-card h2 a { color: inherit; text-decoration: none; }
.news-main-card h2 a:hover { color: var(--accent); }
.news-main-card .news-excerpt { font-size: .875rem; color: #6b5060; line-height: 1.6; margin-bottom: 1rem; }

.news-compact {
    display: flex;
    gap: .875rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: .6rem;
    padding: .875rem;
    text-decoration: none;
    transition: box-shadow .2s, transform .15s;
}
.news-compact:hover { box-shadow: 0 4px 20px rgba(40,27,36,.08); transform: translateY(-1px); }
.news-compact img {
    width: 96px;
    aspect-ratio: 4/3;
    border-radius: .4rem;
    object-fit: cover;
    flex-shrink: 0;
}
.news-compact .news-thumb-ph {
    width: 96px;
    aspect-ratio: 4/3;
    border-radius: .4rem;
    background: linear-gradient(135deg, #f5ede8, #ecddd5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    flex-shrink: 0;
}
.news-compact h4 { font-size: .85rem; font-weight: 700; color: #2d1f27; line-height: 1.35; margin: .2rem 0 0; }

/* ── Newsletter strip ── */
.newsletter-strip {
    background: linear-gradient(135deg, var(--dark) 0%, var(--slate) 100%);
    border-top: 1px solid rgba(208,41,65,.2);
    border-bottom: 1px solid rgba(208,41,65,.2);
    padding: 3rem 0;
}
.newsletter-strip h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .35rem;
}
.newsletter-strip p { color: var(--sand); opacity: .85; margin: 0; font-size: .9rem; }
.newsletter-strip .form-control {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    border-radius: .5rem;
    min-width: 240px;
}
.newsletter-strip .form-control::placeholder { color: var(--muted); }
.newsletter-strip .form-control:focus {
    background: rgba(255,255,255,.12);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(208,41,65,.25);
    color: #fff;
}
.newsletter-strip-input {
    max-width: 260px;
}

/* ── Page shell ── */
.page-intro {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.page-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: -.03em;
    font-weight: 900;
    margin: 0 0 .65rem;
    color: #1a1a2e;
}
.page-subtitle {
    color: #6b5060;
    line-height: 1.7;
    max-width: 60ch;
}
.block-title {
    color: #1a1a2e;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -.03em;
}
.section-link {
    color: var(--accent);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}
.section-link:hover { color: var(--accent-light); }
.mini-kicker {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
}
.empty-state {
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem 1.25rem;
    text-align: center;
    color: #7f6a76;
}
.empty-state i {
    display: block;
    font-size: 2rem;
    opacity: .35;
    margin-bottom: .8rem;
}

/* ── Blog block ── */
.blog-feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 .5rem 1.5rem rgba(40,27,36,.06);
    height: 100%;
}
.blog-feature-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: #d1d8e6;
}
.blog-feature-placeholder,
.blog-side-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(26,26,46,.35);
}
.blog-feature-body { padding: 1.5rem; }
.blog-feature-body h3 {
    font-size: 1.28rem;
    line-height: 1.35;
    font-weight: 800;
    margin: 0 0 .55rem;
}
.blog-feature-body h3 a,
.blog-side-card h4 a,
.mag-ranking-item h4 a,
.news-compact h4 a,
.news-title a {
    color: #1a1a2e;
    text-decoration: none;
}
.blog-feature-body h3 a:hover,
.blog-side-card h4 a:hover,
.mag-ranking-item h4 a:hover,
.news-compact h4 a:hover,
.news-title a:hover {
    color: var(--accent);
}
.blog-side-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: .75rem;
    box-shadow: 0 .5rem 1.2rem rgba(40,27,36,.05);
    display: flex;
    gap: .9rem;
    padding: .9rem;
}
.blog-side-thumb-wrap { display: block; flex-shrink: 0; }
.blog-side-thumb {
    width: 64px;
    height: 64px;
    min-width: 64px;
    object-fit: cover;
    border-radius: .5rem;
    display: block;
    background: #d1d8e6;
}
.blog-side-card h4 {
    font-size: .9rem;
    line-height: 1.35;
    font-weight: 800;
    margin: 0 0 .25rem;
}

/* ── News refinements ── */
.news-tabs {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
}
.news-tab {
    border: 1px solid var(--border);
    color: #7f6a76;
    border-radius: 999px;
    padding: .28rem .8rem;
    font-size: .8rem;
    background: #fff;
}
.news-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.news-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
    margin: .15rem 0 .65rem;
}
.news-compact h4 { margin: 0 0 .2rem; }

/* ── Magazine ranking ── */
.magazine-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 3px solid #1a1a2e;
    padding-bottom: .65rem;
    margin-bottom: 1.25rem;
}
.magazine-header span {
    font-size: 1.9rem;
    line-height: 1;
    letter-spacing: -.03em;
    font-weight: 900;
    color: #1a1a2e;
}
.magazine-header small { color: #8c7f88; }
.mag-ranking {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    height: 100%;
}
.mag-ranking h6 {
    color: #9ca3af;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.mag-ranking-item {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
}
.mag-ranking-num {
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 900;
    color: #e5e7eb;
    min-width: 2rem;
}
.mag-ranking-item h4 {
    font-size: .85rem;
    line-height: 1.35;
    font-weight: 800;
    margin: .1rem 0 0;
}

/* ── Search ── */
.search-shell {
    display: flex;
    gap: .75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .75rem;
}
.search-shell .form-control {
    border-color: transparent;
    background: #f8f4f1;
}
.search-shell .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(208,41,65,.15);
    background: #fff;
}
.result-count {
    color: #6b5060;
    font-size: .92rem;
    margin-bottom: 1rem;
}

/* ── Article detail ── */
.article-header { margin-bottom: 1.5rem; }
.article-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.04em;
    color: #1a1a2e;
    font-weight: 900;
    margin: 0 0 1rem;
}
.article-deck {
    font-size: 1.05rem;
    color: #6b5060;
    line-height: 1.75;
    margin: 0;
}
.article-cover {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}
.article-body {
    font-size: 1rem;
    color: #382733;
}
.article-body h2,
.article-body h3,
.article-body h4 {
    color: #1a1a2e;
    margin-top: 2rem;
    margin-bottom: .9rem;
}
.article-body p { margin-bottom: 1rem; }
.article-body :not(pre) > code,
pre code {
    font-family: var(--bs-font-monospace);
    font-size: .92em;
}
.article-body :not(pre) > code {
    background: rgba(63, 45, 37, .08);
    color: #7a1f2b;
    border-radius: .35rem;
    padding: .15rem .35rem;
}
.article-body pre {
    margin: 1.5rem 0;
    border-radius: .75rem;
    overflow: auto;
}
.article-body pre code.hljs {
    border-radius: .75rem;
    padding: 1rem 1.1rem;
}
.recent-stack {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}
.recent-item {
    padding-bottom: .9rem;
    border-bottom: 1px solid var(--border);
}
.recent-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.recent-link {
    display: block;
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: .15rem;
}
.recent-link:hover { color: var(--accent); }

@media (max-width: 767px) {
    .search-shell {
        flex-direction: column;
    }
}

/* ── Content grid (2+3) ── */
.cg-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    height: 100%;
}
.cg-card:hover { box-shadow: 0 8px 28px rgba(40,27,36,.1); transform: translateY(-2px); }
.cg-card .cg-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.cg-card .cg-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #f5ede8, #ecddd5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 2rem;
}
.cg-card .cg-body { padding: 1rem; }
.cg-card h3 { font-size: .9rem; font-weight: 700; color: #2d1f27; line-height: 1.35; margin: .3rem 0 0; }
.cg-card.large h3 { font-size: 1rem; }
.cg-card h3 a { color: inherit; text-decoration: none; }
.cg-card h3 a:hover { color: var(--accent); }

/* ── Footer ── */
footer {
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,.06);
    color: var(--muted);
    font-size: .875rem;
}
footer a { color: var(--sand); text-decoration: none; opacity: .8; }
footer a:hover { color: #fff; opacity: 1; }
