/* ================================================
   AI Tool Bible — Dark Theme Stylesheet
   ================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0ec;
    background: #0f0f0e;
    margin: 0;
    padding: 0;
}

a { color: #5ba3e0; text-decoration: none; }
a:hover { color: #7cb8e8; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ------------------------------------------------
   Topbar
   ------------------------------------------------ */
.topbar {
    background: #181817;
    border-bottom: 1px solid #2a2a27;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.topbar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar-logo:hover { text-decoration: none; }

.logo-mark {
    width: auto; height: 34px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #f0f0ec;
}
.logo-mark svg { width: auto; height: 32px; }

.logo-name { font-size: 17px; font-weight: 700; color: #f0f0ec; letter-spacing: -0.02em; }
.logo-name span { color: #5ba3e0; }

.breadcrumb { font-size: 12px; color: #aaa; }
.breadcrumb a { color: #aaa; }
.breadcrumb a:hover { color: #5ba3e0; text-decoration: none; }
.breadcrumb .sep { margin: 0 5px; }

/* ------------------------------------------------
   Hero
   ------------------------------------------------ */
.hero {
    background: #181817;
    border-bottom: 1px solid #2a2a27;
    padding: 3.5rem 1.5rem 2.5rem;
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.12em; color: #5ba3e0;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: rgba(91,163,224,0.12);
    border: 1px solid rgba(91,163,224,0.25);
    padding: 4px 14px; border-radius: 99px;
}

.hero h1 {
    font-size: 2.6rem; font-weight: 800;
    color: #f0f0ec; line-height: 1.1;
    margin: 0 0 0.85rem;
    letter-spacing: -0.04em;
}
.hero h1 span { color: #5ba3e0; }

.hero p {
    font-size: 1rem; color: #a8a8a4;
    max-width: 480px; margin: 0 auto 1.75rem;
    line-height: 1.75;
}

/* ------------------------------------------------
   Search
   ------------------------------------------------ */
.search-form { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; }

.search-form input {
    flex: 1; padding: 12px 18px;
    border: 1.5px solid #2e2e2b; border-radius: 10px;
    font-size: 14px;
    background: #222220; color: #f0f0ec;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.search-form input:focus {
    outline: none; border-color: #2563a8;
    box-shadow: 0 0 0 3px rgba(37,99,168,0.2);
}
.search-form input::placeholder { color: #666; }

.search-form button {
    padding: 12px 22px;
    background: #2563a8; color: #fff;
    border: none; border-radius: 10px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: background 0.15s;
    white-space: nowrap;
}
.search-form button:hover { background: #1d4f8a; }

/* ------------------------------------------------
   Stats Bar
   ------------------------------------------------ */
.stats-bar {
    background: #181817; border-bottom: 1px solid #2a2a27;
    display: flex; justify-content: center;
    gap: 3rem; padding: 1.1rem 1.5rem; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 20px; font-weight: 800; color: #f0f0ec; letter-spacing: -0.03em; }
.stat-lbl { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* ------------------------------------------------
   Filters
   ------------------------------------------------ */
.filters-wrap { padding: 1.25rem 1.5rem 0.5rem; background: #0f0f0e; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-btn {
    padding: 7px 16px; border-radius: 99px;
    border: 1.5px solid #2a2a27;
    font-size: 13px; font-weight: 500;
    cursor: pointer; background: #181817; color: #b0b0ac;
    text-decoration: none; display: inline-block;
    transition: all 0.15s; white-space: nowrap;
}
.filter-btn:hover { border-color: #2563a8; color: #5ba3e0; text-decoration: none; background: #181817; }
.filter-btn.active { background: #2563a8; color: #fff; border-color: #2563a8; font-weight: 700; }

/* ------------------------------------------------
   Section Labels
   ------------------------------------------------ */
.section-label {
    padding: 1.25rem 1.5rem 0.75rem;
    font-size: 11px; font-weight: 700;
    color: #666; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ------------------------------------------------
   Cards Grid
   ------------------------------------------------ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    padding: 0 1.5rem 1.5rem;
}

.tool-card {
    background: #1a1a18;
    border: 1.5px solid #2a2a27;
    border-radius: 14px;
    padding: 1.25rem;
    display: flex; flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    position: relative;
}
.tool-card:hover {
    border-color: #2563a8;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(37,99,168,0.2);
    transform: translateY(-1px);
}
.tool-card.featured {
    border: 2px solid #2563a8;
    box-shadow: 0 0 20px rgba(37,99,168,0.15);
}

.featured-badge {
    display: inline-block;
    background: rgba(37,99,168,0.2);
    color: #5ba3e0;
    font-size: 10px; font-weight: 700;
    padding: 3px 10px; border-radius: 6px;
    margin-bottom: 10px;
    letter-spacing: 0.06em; text-transform: uppercase;
    border: 1px solid rgba(91,163,224,0.2);
}

.card-top {
    display: flex; align-items: flex-start;
    justify-content: space-between; margin-bottom: 12px;
}

.card-icon {
    width: 46px; height: 46px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
    background: #222220; border: 1px solid #2e2e2b;
}

.card-meta { text-align: right; }

.cat-tag {
    display: inline-block; font-size: 11px; font-weight: 700;
    padding: 3px 9px; border-radius: 6px;
    background: #222220; color: #b0b0ac;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.cat-tag.writing      { background: rgba(37,99,168,0.2);  color: #5ba3e0; }
.cat-tag.image        { background: rgba(127,119,221,0.2); color: #a89cf0; }
.cat-tag.video        { background: rgba(186,117,23,0.2);  color: #d4a043; }
.cat-tag.code         { background: rgba(59,109,17,0.2);   color: #7ab84a; }
.cat-tag.productivity { background: rgba(15,110,86,0.2);   color: #3dcaa5; }
.cat-tag.audio        { background: rgba(153,53,86,0.2);   color: #e07aaa; }
.cat-tag.seo          { background: rgba(37,99,168,0.2);   color: #5ba3e0; }
.cat-tag.marketing    { background: rgba(186,117,23,0.2);  color: #d4a043; }
.cat-tag.design       { background: rgba(127,119,221,0.2); color: #a89cf0; }

.card-price { font-size: 11px; color: #666; margin-top: 4px; }

.tool-card h3 {
    font-size: 16px; font-weight: 700; color: #f0f0ec;
    margin: 0 0 6px; letter-spacing: -0.02em;
}
.tool-card p {
    font-size: 13px; color: #b0b0ac; line-height: 1.65;
    margin: 0 0 16px; flex: 1;
}

.card-footer {
    display: flex; align-items: center;
    justify-content: space-between; margin-top: auto;
}

.card-rating { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #aaa; }
.stars { color: #c49020; font-size: 13px; letter-spacing: -1px; }

.btn-learn-more {
    font-size: 12px; font-weight: 600;
    padding: 7px 16px; border-radius: 8px;
    background: #222220; border: 1.5px solid #2e2e2b;
    color: #aaa; text-decoration: none;
    cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.btn-learn-more:hover {
    background: #2563a8; color: #fff;
    border-color: #2563a8; text-decoration: none;
}

/* ------------------------------------------------
   Verse Block
   ------------------------------------------------ */
.verse-block {
    margin: 0.5rem 1.5rem 1.25rem;
    padding: 1rem 1.25rem;
    background: #1a1a18;
    border-left: 4px solid #2563a8;
    border-radius: 0 10px 10px 0;
    border-top: 1px solid #2a2a27;
    border-right: 1px solid #2a2a27;
    border-bottom: 1px solid #2a2a27;
}
.verse-label {
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: #5ba3e0; margin-bottom: 5px;
}
.verse-text { font-size: 13px; color: #aaa; line-height: 1.7; font-style: italic; }

/* ------------------------------------------------
   Ad Banner
   ------------------------------------------------ */
.ad-banner {
    margin: 0.5rem 1.5rem 2rem;
    padding: 1.1rem 1.4rem;
    background: #1a1a18; border: 1.5px solid #2a2a27;
    border-radius: 14px;
    display: flex; align-items: center;
    justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.ad-label { font-size: 10px; color: #333; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; font-weight: 700; }
.ad-text { font-size: 14px; font-weight: 700; color: #f0f0ec; }
.ad-sub { font-size: 12px; color: #aaa; margin-top: 2px; }

.btn-get-listed {
    padding: 9px 18px; border-radius: 9px;
    border: 1.5px solid #2a2a27; font-size: 13px; font-weight: 600;
    cursor: pointer; background: #222220; color: #aaa;
    text-decoration: none; display: inline-block;
    white-space: nowrap; transition: all 0.15s;
}
.btn-get-listed:hover { background: #2563a8; color: #fff; border-color: #2563a8; text-decoration: none; }

/* ------------------------------------------------
   No Results
   ------------------------------------------------ */
.no-results { padding: 4rem 1.5rem; text-align: center; color: #666; font-size: 15px; }
.no-results a { color: #5ba3e0; }

/* ------------------------------------------------
   Footer
   ------------------------------------------------ */
.site-footer {
    background: #181817; border-top: 1px solid #2a2a27;
    padding: 1.5rem; text-align: center;
    font-size: 13px; color: #666; margin-top: 1rem;
}
.site-footer a { color: #666; }
.site-footer a:hover { color: #5ba3e0; }
.footer-aff-note { font-size: 11px; color: #666; margin-top: 6px; }

/* ------------------------------------------------
   Tool Detail Page
   ------------------------------------------------ */
.tool-hero {
    background: #181817; border-bottom: 1px solid #2a2a27;
    padding: 2rem 1.5rem 1.5rem;
}
.tool-hero-top {
    display: flex; align-items: flex-start;
    gap: 1.25rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.tool-icon-lg {
    width: 70px; height: 70px; border-radius: 14px;
    background: #222220; border: 1px solid #2e2e2b;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; flex-shrink: 0;
}
.tool-icon-lg img { width: 54px; height: 54px; object-fit: contain; border-radius: 8px; }

.tool-hero-meta { flex: 1; min-width: 200px; }
.tool-hero-meta h1 {
    font-size: 2rem; font-weight: 800; color: #f0f0ec;
    margin: 0 0 5px; letter-spacing: -0.04em;
}
.tool-hero-sub { font-size: 13px; color: #bbb; margin-bottom: 12px; }
.tool-hero-sub strong { color: #aaa; }

.badge-row { display: flex; flex-wrap: wrap; gap: 7px; }
.badge {
    display: inline-block; font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 99px; letter-spacing: 0.04em;
}
.badge-cat     { background: rgba(37,99,168,0.2);  color: #5ba3e0;  border: 1px solid rgba(91,163,224,0.2); }
.badge-free    { background: rgba(59,109,17,0.2);   color: #7ab84a;  border: 1px solid rgba(122,184,74,0.2); }
.badge-popular { background: rgba(127,119,221,0.2); color: #a89cf0;  border: 1px solid rgba(168,156,240,0.2); }
.badge-aff     { background: rgba(186,117,23,0.2);  color: #d4a043;  border: 1px solid rgba(212,160,67,0.2); }

.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.25rem; }

.btn-primary {
    padding: 11px 24px; border-radius: 10px;
    background: #2563a8; color: #fff;
    font-size: 14px; font-weight: 700;
    border: none; cursor: pointer; text-decoration: none;
    display: inline-block; transition: background 0.15s;
    box-shadow: 0 2px 12px rgba(37,99,168,0.3);
}
.btn-primary:hover { background: #1d4f8a; text-decoration: none; color: #fff; }

.btn-secondary {
    padding: 11px 20px; border-radius: 10px;
    background: #222220; color: #aaa;
    font-size: 14px; font-weight: 500;
    border: 1.5px solid #2e2e2b; cursor: pointer;
    text-decoration: none; display: inline-block; transition: all 0.15s;
}
.btn-secondary:hover { background: #2a2a27; color: #ccc; text-decoration: none; }

.tool-stats-row {
    background: #181817; border-bottom: 1px solid #2a2a27;
    display: flex; gap: 2.5rem; padding: 1rem 1.5rem; flex-wrap: wrap;
}
.tool-stat { text-align: center; }
.tool-stat-val { font-size: 19px; font-weight: 800; color: #f0f0ec; letter-spacing: -0.03em; }
.tool-stat-lbl { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 0.05em; }

.tool-content { max-width: 900px; margin: 0 auto; padding: 1.5rem; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 10px; margin-bottom: 1.5rem; }
.info-card { background: #1a1a18; border: 1px solid #2a2a27; border-radius: 10px; padding: 0.85rem 1rem; }
.info-card-label { font-size: 10px; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px; }
.info-card-value { font-size: 14px; font-weight: 600; color: #f0f0ec; }

.content-section {
    background: #1a1a18; border: 1px solid #2a2a27;
    border-radius: 14px; padding: 1.4rem 1.5rem; margin-bottom: 1.25rem;
}
.content-section h2 {
    font-size: 16px; font-weight: 700; color: #f0f0ec;
    margin: 0 0 0.85rem; padding-bottom: 0.6rem;
    border-bottom: 1px solid #242422; letter-spacing: -0.01em;
}
.content-section p { font-size: 14px; color: #a8a8a4; line-height: 1.8; margin: 0 0 0.75rem; }
.content-section p:last-child { margin-bottom: 0; }

.audience-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.75rem; }
.audience-tag {
    font-size: 12px; padding: 6px 13px; border-radius: 99px;
    background: #222220; border: 1px solid #2e2e2b; color: #a8a8a4; font-weight: 500;
}

.pros-cons-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 14px; margin-top: 0.75rem; }

.pros-box, .cons-box {
    background: #1a1a18; border: 1px solid #2a2a27;
    border-radius: 0 0 12px 12px; padding: 1.1rem;
}
.pros-box { border-top: 4px solid #3a7a18; }
.cons-box { border-top: 4px solid #8a2424; }
.pros-box h3 { font-size: 12px; font-weight: 800; color: #7ab84a; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.07em; }
.cons-box h3 { font-size: 12px; font-weight: 800; color: #e06060; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.07em; }

.pc-list { list-style: none; padding: 0; margin: 0; }
.pc-list li {
    font-size: 13px; color: #a8a8a4; line-height: 1.6;
    padding: 7px 0; border-bottom: 1px solid #222220;
    display: flex; gap: 9px; align-items: flex-start;
}
.pc-list li:last-child { border-bottom: none; padding-bottom: 0; }

.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.dot-green { background: #5a9e30; }
.dot-red   { background: #c04040; }

.pricing-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 0.85rem; }
.pricing-table th {
    text-align: left; padding: 9px 14px;
    background: #222220; color: #666; font-weight: 700;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
    border-bottom: 1px solid #2a2a27;
}
.pricing-table td { padding: 10px 14px; border-bottom: 1px solid #222220; color: #aaa; vertical-align: top; }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table td:first-child { font-weight: 600; color: #f0f0ec; }

.verdict-box {
    background: rgba(37,99,168,0.1);
    border-left: 4px solid #2563a8;
    border-radius: 0 10px 10px 0; padding: 1.25rem; margin-top: 0.85rem;
    border-top: 1px solid rgba(37,99,168,0.2);
    border-right: 1px solid rgba(37,99,168,0.2);
    border-bottom: 1px solid rgba(37,99,168,0.2);
}
.verdict-box p { font-size: 14px; color: #7cb8e8; line-height: 1.8; margin: 0; }

.tool-bottom-cta { text-align: center; padding: 1.5rem 0 0.5rem; }
.aff-note { font-size: 11px; color: #666; margin-top: 10px; }

/* ------------------------------------------------
   Scrollbar (WebKit)
   ------------------------------------------------ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0f0f0e; }
::-webkit-scrollbar-thumb { background: #2a2a27; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a36; }

/* ------------------------------------------------
   Responsive
   ------------------------------------------------ */
@media (max-width: 640px) {
    .hero h1 { font-size: 1.8rem; }
    .search-form { flex-direction: column; }
    .search-form button { width: 100%; text-align: center; }
    .stats-bar { gap: 1.5rem; }
    .cards-grid { grid-template-columns: 1fr; padding: 0 1rem 1rem; }
    .filters-wrap { padding: 1rem 1rem 0.5rem; }
    .topbar { padding: 0.75rem 1rem; }
    .tool-hero, .tool-content { padding: 1.25rem 1rem; }
    .content-section { padding: 1.1rem 1rem; }
    .ad-banner, .verse-block { margin-left: 1rem; margin-right: 1rem; }
    .section-label { padding-left: 1rem; padding-right: 1rem; }
}

/* ------------------------------------------------
   Highlights row — Featured left, Newly Added right
   ------------------------------------------------ */
.highlights-row {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.highlights-left {
    width: 50%;
    flex-shrink: 0;
}

.highlights-left .cards-grid,
.highlights-right .cards-grid {
    grid-template-columns: 1fr 1fr;
}

.highlights-right {
    width: 50%;
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .highlights-row  { flex-direction: column; }
    .highlights-left,
    .highlights-right { width: 100%; }
}

/* ------------------------------------------------
   Newly Added card styling
   ------------------------------------------------ */
.tool-card.newly-added {
    border-color: rgba(102,184,74,0.3);
    box-shadow: 0 0 20px rgba(59,109,17,0.15);
}

.new-badge {
    display: inline-block;
    background: rgba(59,109,17,0.2);
    color: #7ab84a;
    font-size: 10px; font-weight: 700;
    padding: 3px 10px; border-radius: 6px;
    margin-bottom: 10px;
    letter-spacing: 0.06em; text-transform: uppercase;
    border: 1px solid rgba(102,184,74,0.25);
}
/* ------------------------------------------------
   Related Article callout box (tool pages)
   ------------------------------------------------ */
.related-article-box {
    background: rgba(37,99,168,0.08);
    border: 1.5px solid rgba(91,163,224,0.25);
    border-left: 4px solid #2563a8;
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}

.related-article-label {
    font-size: 11px;
    font-weight: 700;
    color: #5ba3e0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.related-article-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-article-title a {
    color: #f0f0ec;
    text-decoration: none;
}

.related-article-title a:hover {
    color: #5ba3e0;
    text-decoration: none;
}

.related-article-excerpt {
    font-size: 13px;
    color: #a8a8a4;
    line-height: 1.65;
    margin-bottom: 12px;
}

.related-article-link {
    font-size: 13px;
    font-weight: 600;
    color: #5ba3e0;
    text-decoration: none;
}

.related-article-link:hover {
    color: #7cb8e8;
    text-decoration: underline;
}

/* ================================================
   NEWSLETTER PIVOT — added 2026
   Navigation, signup block, home article feed,
   directory strip. Shared across pages.
   ================================================ */

/* ---- Topbar navigation links + Subscribe button ---- */
.nav-row { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.nav-link { font-size: 14px; color: #b0b0ac; text-decoration: none; font-weight: 500; transition: color 0.15s; }
.nav-link:hover { color: #5ba3e0; text-decoration: none; }
.nav-link.active { color: #5ba3e0; font-weight: 700; }

.btn-subscribe {
    font-size: 13px; font-weight: 700;
    padding: 8px 16px; border-radius: 8px;
    background: #2563a8; color: #fff;
    text-decoration: none; white-space: nowrap;
    transition: background 0.15s;
    box-shadow: 0 0 12px rgba(37,99,168,0.25);
}
.btn-subscribe:hover { background: #1d4f8a; color: #fff; text-decoration: none; }

/* RSS feed button — the recognisable orange icon, beside Subscribe */
.nav-rss {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 8px;
    background: #f26522; color: #fff;
    text-decoration: none; flex-shrink: 0;
    box-shadow: 0 0 12px rgba(242,101,34,0.25);
    transition: background 0.15s, transform 0.15s;
}
.nav-rss:hover { background: #d8551a; color: #fff; text-decoration: none; transform: translateY(-1px); }
.nav-rss svg { width: 15px; height: 15px; display: block; }

/* ---- Newsletter signup block ---- */
.nl-signup { background: linear-gradient(180deg, #1b1f27 0%, #15171c 100%); border-bottom: 1px solid #2a2a27; }
.nl-hero { padding: 4.25rem 1.5rem 3.5rem; text-align: center; }
.nl-inner { max-width: 600px; margin: 0 auto; }
.nl-eyebrow {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.12em; color: #5ba3e0;
    text-transform: uppercase; margin-bottom: 1rem;
    background: rgba(91,163,224,0.12);
    border: 1px solid rgba(91,163,224,0.25);
    padding: 4px 14px; border-radius: 99px;
}
.nl-title {
    font-size: 2.5rem; font-weight: 800;
    color: #f0f0ec; line-height: 1.1;
    letter-spacing: -0.04em; margin: 0 0 0.9rem;
}
.nl-title span { color: #5ba3e0; }
.nl-sub {
    font-size: 1.05rem; color: #a8a8a4;
    line-height: 1.7; max-width: 480px; margin: 0 auto 1.6rem;
}
.nl-form { display: flex; justify-content: center; align-items: flex-start; min-height: 60px; }
.nl-form iframe { width: 100%; max-width: 440px; margin: 0 auto; }
.nl-social { font-size: 13px; color: #7ab84a; margin-top: 0.7rem; font-weight: 600; }
.nl-note { font-size: 12px; color: #666; margin-top: 0.9rem; }

.nl-signup.compact { background: #15171c; }
.nl-signup.compact .nl-hero { padding: 2.75rem 1.5rem; }
.nl-signup.compact .nl-title { font-size: 1.6rem; }
.nl-signup.compact .nl-sub { font-size: 0.98rem; margin-bottom: 1.3rem; }

/* ---- Slim inline newsletter prompt (mid-article / end-of-article) ---- */
.nl-inline-slim {
    margin: 2.5rem 0 1.5rem; padding-top: 1.75rem;
    border-top: 1px solid #2a2a27;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.nl-inline-label { font-size: 14px; font-weight: 700; color: #f0f0ec; white-space: nowrap; }
.nl-inline-form { flex: 1; min-width: 220px; }
.nl-inline-form iframe { width: 100% !important; }
@media (max-width: 560px) {
    .nl-inline-slim { flex-direction: column; align-items: stretch; gap: 10px; }
}

/* ---- Home article feed sections ---- */
.home-section { max-width: 1040px; margin: 0 auto; padding: 2.75rem 1.5rem 0.5rem; }
.home-section-head {
    display: flex; align-items: baseline;
    justify-content: space-between; gap: 1rem;
    flex-wrap: wrap; margin-bottom: 1.15rem;
}
.home-section-head h2 { font-size: 1.4rem; font-weight: 800; color: #f0f0ec; letter-spacing: -0.03em; margin: 0; }
.home-section-head a { font-size: 13px; font-weight: 600; color: #5ba3e0; text-decoration: none; white-space: nowrap; }
.home-section-head a:hover { text-decoration: underline; }

/* ---- Blog cards (shared by home + blog archive) ---- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.post-card {
    background: #1a1a18; border: 1.5px solid #2a2a27; border-radius: 14px;
    padding: 1.25rem; display: flex; flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.post-card:hover {
    border-color: #2563a8;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(37,99,168,0.2);
    transform: translateY(-1px);
}
.post-date { font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; font-weight: 700; }
.post-card h2, .post-card h3 { font-size: 16px; font-weight: 700; color: #f0f0ec; line-height: 1.4; margin: 0 0 10px; letter-spacing: -0.02em; }
.post-card h2 a, .post-card h3 a { color: #f0f0ec; text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: #5ba3e0; text-decoration: none; }
.post-excerpt { font-size: 13px; color: #a8a8a4; line-height: 1.7; flex: 1; margin-bottom: 14px; }
.post-footer { display: flex; justify-content: flex-end; }
.read-more { font-size: 12px; font-weight: 700; color: #5ba3e0; text-decoration: none; letter-spacing: 0.02em; }
.read-more:hover { color: #7cb8e8; text-decoration: none; }
.home-empty { text-align: center; padding: 2.5rem 1.5rem; color: #666; font-size: 14px; }

/* ---- Directory strip (tools demoted to secondary) ---- */
.dir-strip {
    max-width: 1040px; margin: 1.5rem auto 0;
    padding: 1.5rem 1.6rem; background: #1a1a18;
    border: 1.5px solid #2a2a27; border-radius: 16px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.25rem; flex-wrap: wrap;
}
.dir-strip-text h2 { font-size: 1.15rem; font-weight: 800; color: #f0f0ec; margin: 0 0 4px; letter-spacing: -0.02em; }
.dir-strip-text p { font-size: 13px; color: #a8a8a4; margin: 0; }

@media (max-width: 640px) {
    .nl-title { font-size: 1.9rem; }
    .nl-hero { padding: 3rem 1.25rem 2.5rem; }
    .nl-form { min-height: 60px; }
    .home-section { padding: 2rem 1rem 0.5rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .dir-strip { margin-left: 1rem; margin-right: 1rem; }
    .nav-row { gap: 1rem; }
}
