/* =====================================================================
   THE WHEEL — Self-contained Ghost theme stylesheet.
   No dependency on Source's compiled CSS.
   ===================================================================== */

/* ---------- 1. Tokens ------------------------------------------------- */
:root {
    --jtw-midnight-primary:   #1e1b4b;
    --jtw-midnight-secondary: #312e81;
    --jtw-midnight-tertiary:  #3730a3;
    --jtw-midnight-light:     #4f46e5;
    --jtw-amber-primary:      #f59e0b;
    --jtw-amber-secondary:    #d97706;
    --jtw-amber-tertiary:     #b45309;
    --jtw-amber-light:        #fbbf24;
    --jtw-slate-900: #0f172a;
    --jtw-slate-800: #1e293b;
    --jtw-slate-700: #334155;
    --jtw-slate-600: #475569;
    --jtw-slate-500: #64748b;
    --jtw-slate-400: #94a3b8;
    --jtw-slate-300: #cbd5e1;
    --jtw-slate-200: #e2e8f0;
    --jtw-slate-100: #f1f5f9;
    --jtw-slate-50:  #f8fafc;
    --jtw-success:   #10b981;

    --jtw-radius-md:  8px;
    --jtw-radius-lg:  12px;
    --jtw-radius-xl:  16px;
    --jtw-radius-2xl: 24px;

    --jtw-space-1:  8px;
    --jtw-space-2:  16px;
    --jtw-space-3:  24px;
    --jtw-space-4:  32px;
    --jtw-space-5:  40px;
    --jtw-space-6:  48px;
    --jtw-space-8:  64px;
    --jtw-space-10: 80px;

    --jtw-page-bg: #f8fafc;
    --jtw-content-width: 800px;
    --jtw-wide-width: 1200px;
}

/* ---------- 2. Reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--jtw-slate-700);
    background: var(--jtw-page-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--jtw-amber-secondary); text-decoration: none; }
a:hover { color: var(--jtw-amber-tertiary); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { color: var(--jtw-slate-900); margin: 0; line-height: 1.2; letter-spacing: -0.5px; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--jtw-slate-200); margin: var(--jtw-space-5) 0; }
ul, ol { margin: 0; padding: 0; }

/* ---------- 3. Layout viewport ---------------------------------------- */
.gh-viewport {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.gh-main { flex: 1 0 auto; }
.gh-outer { width: 100%; }
.gh-inner {
    max-width: var(--jtw-wide-width);
    margin: 0 auto;
    padding: 0 var(--jtw-space-3);
}
.gh-canvas {
    max-width: var(--jtw-content-width);
    margin: 0 auto;
    padding: 0 var(--jtw-space-3);
}

/* ---------- 4. Navigation --------------------------------------------- */
.gh-navigation {
    background: #fff;
    border-bottom: 1px solid var(--jtw-slate-200);
    position: sticky;
    top: 0;
    z-index: 100;
}
.gh-navigation-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--jtw-space-3);
    padding: var(--jtw-space-2) var(--jtw-space-3);
    max-width: var(--jtw-wide-width);
    margin: 0 auto;
}
.gh-navigation-brand {
    display: flex;
    align-items: center;
    gap: var(--jtw-space-2);
}
.gh-navigation-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--jtw-slate-900);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
}
.gh-navigation-logo img { max-height: 36px; width: auto; }
.jtw-navigation-mark { flex-shrink: 0; }
.jtw-navigation-title { color: var(--jtw-slate-900); }

.gh-navigation-menu {
    display: flex;
    align-items: center;
    gap: var(--jtw-space-3);
    flex: 1;
    justify-content: center;
}
.gh-navigation-menu ul {
    display: flex;
    align-items: center;
    gap: var(--jtw-space-3);
    list-style: none;
    margin: 0; padding: 0;
}
.gh-navigation-menu a {
    color: var(--jtw-slate-600);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.gh-navigation-menu a:hover { color: var(--jtw-slate-900); }
.gh-navigation-menu .nav-current a,
.gh-navigation-menu li.active a { color: var(--jtw-amber-secondary); }

.gh-navigation-actions {
    display: flex;
    align-items: center;
    gap: var(--jtw-space-2);
}
.gh-navigation-members {
    display: flex;
    align-items: center;
    gap: var(--jtw-space-2);
}
.gh-navigation-members a {
    font-size: 14px;
    font-weight: 500;
    color: var(--jtw-slate-600);
}

/* Burger button (hidden on desktop, shown on mobile) */
.gh-burger {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    color: var(--jtw-slate-700);
}
.gh-burger svg { width: 24px; height: 24px; }
.gh-burger-icon-close { display: none; }
.gh-navigation.is-open .gh-burger-icon-open { display: none; }
.gh-navigation.is-open .gh-burger-icon-close { display: inline; }
.gh-icon-button { background: none; border: none; }

/* Search toggle (hidden in this minimal port — Ghost search needs JS we aren't bundling) */
[data-ghost-search],
.gh-search,
.gh-search-toggle { display: none; }

/* Mobile nav */
@media (max-width: 768px) {
    .gh-navigation-menu,
    .gh-navigation-actions { display: none; }
    .gh-burger { display: inline-flex; align-items: center; justify-content: center; }
    .gh-navigation.is-open .gh-navigation-menu {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--jtw-slate-200);
        flex-direction: column;
        padding: var(--jtw-space-3);
        gap: var(--jtw-space-2);
        align-items: flex-start;
        justify-content: flex-start;
    }
    .gh-navigation.is-open .gh-navigation-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--jtw-space-2);
        width: 100%;
    }
    .gh-navigation.is-open .gh-navigation-menu a {
        font-size: 18px;
        padding: var(--jtw-space-1) 0;
    }
}

/* ---------- 5. Footer -------------------------------------------------- */
.gh-footer {
    background: var(--jtw-slate-900);
    color: var(--jtw-slate-400);
    padding: var(--jtw-space-6) 0 var(--jtw-space-4);
    margin-top: var(--jtw-space-8);
}
.gh-footer-inner {
    max-width: var(--jtw-wide-width);
    margin: 0 auto;
    padding: 0 var(--jtw-space-3);
}
.gh-footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--jtw-space-3);
    padding-bottom: var(--jtw-space-4);
    border-bottom: 1px solid var(--jtw-slate-800);
}
.gh-footer-logo {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.gh-footer-logo img { max-height: 28px; width: auto; }
.gh-footer-menu ul {
    display: flex;
    align-items: center;
    gap: var(--jtw-space-3);
    list-style: none;
    flex-wrap: wrap;
}
.gh-footer-menu a {
    color: var(--jtw-slate-400);
    font-size: 14px;
    text-decoration: none;
}
.gh-footer-menu a:hover { color: #fff; }
.gh-footer-copyright {
    color: var(--jtw-slate-500);
    font-size: 13px;
    width: 100%;
    padding-top: var(--jtw-space-3);
}
.gh-footer-copyright a { color: var(--jtw-slate-400); }
.gh-footer-copyright a:hover { color: #fff; }

.gh-footer-signup {
    margin-top: var(--jtw-space-4);
    text-align: center;
    color: var(--jtw-slate-300);
}
.gh-footer-signup-header {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--jtw-space-2);
}
.gh-footer-signup-subhead {
    color: var(--jtw-slate-400);
    margin-bottom: var(--jtw-space-3);
    font-size: 16px;
}

/* ---------- 6. Buttons & forms ---------------------------------------- */
.gh-button,
button.gh-button,
a.gh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--jtw-amber-secondary) 0%, var(--jtw-amber-tertiary) 100%);
    color: #fff !important;
    border: none;
    border-radius: var(--jtw-radius-md);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    line-height: 1;
}
.gh-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.30);
}
.gh-button svg { width: 16px; height: 16px; }
.gh-button-share { background: transparent; color: var(--jtw-slate-700) !important; border: 1px solid var(--jtw-slate-300); }
.gh-button-share:hover { background: var(--jtw-slate-50); }

.gh-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 480px;
    margin: 0 auto;
    align-items: stretch;
}
.gh-form-input,
.gh-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    font-size: 16px;
    font-family: inherit;
    color: var(--jtw-slate-900);
    background: #fff;
    border: 2px solid var(--jtw-slate-300);
    border-radius: var(--jtw-radius-md);
    line-height: 1.2;
}
.gh-form-input:focus,
.gh-form input[type="email"]:focus {
    outline: none;
    border-color: var(--jtw-amber-secondary);
}

/* ---------- 7. Container / archive list ------------------------------- */
.gh-container { padding: var(--jtw-space-5) 0; }
.gh-container-inner {
    max-width: var(--jtw-content-width);
    margin: 0 auto;
    padding: 0 var(--jtw-space-3);
}
.gh-container-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--jtw-slate-900);
    margin-bottom: var(--jtw-space-4);
    letter-spacing: -1px;
}
@media (max-width: 768px) {
    .gh-container-title { font-size: 36px; }
}
.gh-archive-header {
    text-align: left;
    margin-bottom: var(--jtw-space-4);
}
.gh-archive-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--jtw-slate-900);
    margin-bottom: var(--jtw-space-2);
    letter-spacing: -1px;
}
.gh-archive-description {
    font-size: 18px;
    color: var(--jtw-slate-600);
}
.gh-archive-image {
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--jtw-space-3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--jtw-space-3);
    margin-top: var(--jtw-space-5);
}
.pagination a {
    color: var(--jtw-slate-600);
    font-weight: 500;
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid var(--jtw-slate-200);
    border-radius: var(--jtw-radius-md);
}
.pagination a:hover { border-color: var(--jtw-amber-secondary); color: var(--jtw-amber-secondary); }

/* ---------- 8. Blog feed (numbered cards, like v8) -------------------- */
.gh-feed {
    display: flex;
    flex-direction: column;
    gap: var(--jtw-space-4);
    counter-reset: jtw-post;
}
.gh-card {
    background: #fff;
    border: 1px solid var(--jtw-slate-200);
    border-radius: var(--jtw-radius-xl);
    padding: var(--jtw-space-4);
    transition: border-color .2s, box-shadow .2s, transform .2s;
    counter-increment: jtw-post;
}
.gh-card:hover {
    border-color: var(--jtw-amber-secondary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.gh-card .gh-card-link {
    display: flex;
    gap: var(--jtw-space-3);
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}
.gh-card .gh-card-link::before {
    content: counter(jtw-post);
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: var(--jtw-radius-lg);
    background: linear-gradient(135deg, var(--jtw-midnight-primary) 0%, var(--jtw-midnight-secondary) 100%);
    color: var(--jtw-amber-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}
.gh-card-image { display: none; }
.gh-card-wrapper { flex: 1; min-width: 0; }
.gh-card-tag {
    color: var(--jtw-amber-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: var(--jtw-space-1);
}
.gh-card-title {
    color: var(--jtw-slate-900);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--jtw-space-1);
}
.gh-card-excerpt {
    color: var(--jtw-slate-600);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: var(--jtw-space-2);
}
.gh-card-meta {
    color: var(--jtw-slate-500);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: var(--jtw-space-1);
}
.gh-card-author { font-weight: 500; }
.gh-card-date::before { content: "·"; margin: 0 6px; color: var(--jtw-slate-400); }
@media (max-width: 768px) {
    .gh-card { padding: var(--jtw-space-3); }
    .gh-card .gh-card-link { flex-direction: column; gap: var(--jtw-space-2); }
    .gh-card .gh-card-link::before { width: 44px; height: 44px; font-size: 20px; }
    .gh-card-title { font-size: 20px; }
}

/* ---------- 9. Article (post + page) ---------------------------------- */
.gh-article {
    padding-bottom: var(--jtw-space-6);
}
.gh-article-header {
    padding: var(--jtw-space-6) var(--jtw-space-3) var(--jtw-space-3);
    max-width: var(--jtw-content-width);
    margin: 0 auto;
}
.gh-article-tag {
    color: var(--jtw-amber-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.gh-article-title {
    color: var(--jtw-slate-900);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin: var(--jtw-space-2) 0 var(--jtw-space-3);
    letter-spacing: -1px;
}
.gh-article-excerpt {
    color: var(--jtw-slate-600);
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: var(--jtw-space-4);
}
.gh-meta-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--jtw-space-3);
    background: var(--jtw-slate-50);
    border: 1px solid var(--jtw-slate-200);
    border-radius: var(--jtw-radius-lg);
    padding: var(--jtw-space-2) var(--jtw-space-3);
    flex-wrap: wrap;
}
.gh-article-meta {
    display: flex;
    align-items: center;
    gap: var(--jtw-space-2);
}
.gh-article-author-image {
    width: 40px; height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--jtw-slate-200);
}
.gh-article-author-image img { width: 100%; height: 100%; object-fit: cover; }
.gh-article-meta-wrapper { line-height: 1.3; }
.gh-article-author-name { color: var(--jtw-slate-900); font-weight: 600; font-size: 16px; margin: 0; }
.gh-article-meta-content { color: var(--jtw-slate-500); font-size: 14px; }

.gh-feature-image,
.gh-article-image {
    margin: var(--jtw-space-3) auto var(--jtw-space-4);
    border-radius: var(--jtw-radius-lg);
    overflow: hidden;
    max-width: var(--jtw-content-width);
}
.gh-feature-image img { width: 100%; height: auto; }

.gh-content {
    max-width: var(--jtw-content-width);
    margin: 0 auto;
    padding: 0 var(--jtw-space-3);
    font-size: 18px;
    line-height: 1.8;
    color: var(--jtw-slate-700);
}
.gh-content > * + * { margin-top: var(--jtw-space-3); }
.gh-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--jtw-slate-900);
    margin-top: var(--jtw-space-5);
    margin-bottom: var(--jtw-space-3);
    line-height: 1.3;
}
.gh-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--jtw-slate-900);
    margin-top: var(--jtw-space-4);
}
.gh-content p { margin-bottom: var(--jtw-space-3); }
.gh-content ul, .gh-content ol { margin-bottom: var(--jtw-space-3); padding-left: 24px; }
.gh-content li { margin-bottom: 10px; }
.gh-content strong { font-weight: 600; color: var(--jtw-slate-900); }
.gh-content a {
    color: var(--jtw-amber-secondary);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(217, 119, 6, 0.4);
    text-underline-offset: 3px;
}
.gh-content code {
    background: var(--jtw-slate-100);
    color: var(--jtw-slate-800);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 0.92em;
}
.gh-content pre {
    background: var(--jtw-slate-900);
    color: #fff;
    padding: var(--jtw-space-3);
    border-radius: var(--jtw-radius-md);
    overflow-x: auto;
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.5;
}
.gh-content pre code { background: transparent; color: inherit; padding: 0; }
.gh-content blockquote {
    border-left: 3px solid var(--jtw-amber-secondary);
    padding-left: var(--jtw-space-3);
    color: var(--jtw-slate-600);
    font-style: italic;
    margin-left: 0;
}
.gh-content img { border-radius: var(--jtw-radius-lg); margin: var(--jtw-space-3) 0; }
.gh-content figure { margin: var(--jtw-space-3) 0; }
.gh-content figcaption {
    color: var(--jtw-slate-500);
    font-size: 14px;
    text-align: center;
    margin-top: 8px;
}
.gh-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--jtw-space-3) 0;
}
.gh-content th, .gh-content td {
    border: 1px solid var(--jtw-slate-200);
    padding: 8px 12px;
    text-align: left;
}
.gh-content th { background: var(--jtw-slate-50); font-weight: 600; }
.gh-content hr { margin: var(--jtw-space-5) 0; }

@media (max-width: 768px) {
    .gh-article-title { font-size: 32px; }
    .gh-article-excerpt { font-size: 18px; }
    .gh-content { font-size: 16px; }
    .gh-content h2 { font-size: 24px; margin-top: var(--jtw-space-4); }
}

/* ---------- 10. Koenig editor classes (required by Ghost) ------------- */
.kg-width-wide,
.gh-content .kg-width-wide {
    position: relative;
    width: 100%;
    max-width: 1040px;
    margin-left: 50%;
    transform: translateX(-50%);
}
.kg-width-full,
.gh-content .kg-width-full {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}
.kg-width-wide img,
.kg-width-full img {
    width: 100%;
    height: auto;
    border-radius: var(--jtw-radius-lg);
}
.kg-width-full img { border-radius: 0; }
.kg-image-card,
.kg-gallery-card,
.kg-embed-card,
.kg-bookmark-card {
    margin: var(--jtw-space-4) 0;
}
.kg-bookmark-card .kg-bookmark-container {
    display: flex;
    border: 1px solid var(--jtw-slate-200);
    border-radius: var(--jtw-radius-lg);
    text-decoration: none;
    overflow: hidden;
}
.kg-bookmark-card .kg-bookmark-container:hover { border-color: var(--jtw-amber-secondary); }
.kg-bookmark-card .kg-bookmark-content { padding: var(--jtw-space-3); flex-grow: 1; }
.kg-bookmark-card .kg-bookmark-title { color: var(--jtw-slate-900); font-weight: 600; margin-bottom: 6px; }
.kg-bookmark-card .kg-bookmark-description { color: var(--jtw-slate-600); font-size: 15px; line-height: 1.5; }
.kg-bookmark-card .kg-bookmark-thumbnail img { width: 200px; height: 100%; object-fit: cover; }
.kg-button-card .kg-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--jtw-amber-secondary), var(--jtw-amber-tertiary));
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--jtw-radius-md);
    font-weight: 600;
    text-decoration: none;
}
.kg-callout-card {
    border-left: 3px solid var(--jtw-amber-secondary);
    background: rgba(245, 158, 11, 0.08);
    padding: var(--jtw-space-3);
    border-radius: 0 var(--jtw-radius-md) var(--jtw-radius-md) 0;
}

/* ---------- 11. Hero (homepage teaser) ------------------------------- */
.jtw-hero {
    background: linear-gradient(135deg,
        var(--jtw-midnight-primary) 0%,
        var(--jtw-midnight-secondary) 50%,
        var(--jtw-midnight-tertiary) 100%);
    color: #fff;
    padding: var(--jtw-space-8) var(--jtw-space-3) var(--jtw-space-5);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.jtw-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 50%);
    pointer-events: none;
}
.jtw-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.jtw-hero h1 {
    color: #fff;
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: var(--jtw-space-2);
}
.jtw-hero h1 span {
    color: var(--jtw-amber-light);
    display: block;
}
.jtw-hero-subtitle {
    color: var(--jtw-slate-300);
    font-size: 20px;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto var(--jtw-space-3);
}

.jtw-hero .gh-form,
.jtw-hero form[data-members-form] {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 450px;
    margin: var(--jtw-space-3) auto 0;
}
.jtw-hero .gh-form-input,
.jtw-hero form[data-members-form] input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.20);
    border-radius: var(--jtw-radius-md);
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-family: inherit;
}
.jtw-hero .gh-form-input::placeholder,
.jtw-hero form[data-members-form] input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.50);
}
.jtw-hero .gh-form-input:focus,
.jtw-hero form[data-members-form] input[type="email"]:focus {
    outline: none;
    border-color: var(--jtw-amber-light);
    background: rgba(255, 255, 255, 0.15);
}

.jtw-hero-note {
    color: rgba(255, 255, 255, 0.60);
    font-size: 16px;
    font-weight: 500;
    margin-top: var(--jtw-space-2);
}
.jtw-hero-microcopy {
    color: rgba(255, 255, 255, 0.40);
    font-size: 12px;
    margin-top: 8px;
}
.jtw-hero-microcopy a { color: rgba(255, 255, 255, 0.50); }

@media (max-width: 768px) {
    .jtw-hero { padding: var(--jtw-space-5) var(--jtw-space-3) var(--jtw-space-4); }
    .jtw-hero h1 { font-size: 28px; letter-spacing: -0.5px; }
    .jtw-hero-subtitle { font-size: 16px; }
    .jtw-hero .gh-form { flex-direction: column; align-items: center; }
    .jtw-hero .gh-form-input,
    .jtw-hero form[data-members-form] input[type="email"] { width: 100%; max-width: 320px; }
    .jtw-hero .gh-button { width: 100%; max-width: 320px; }
}
@media (min-width: 1200px) {
    .jtw-hero { padding: var(--jtw-space-10) var(--jtw-space-3) var(--jtw-space-6); }
    .jtw-hero h1 { font-size: 60px; letter-spacing: -2.5px; }
    .jtw-hero-subtitle { font-size: 22px; }
}

/* ---------- 12. Values section --------------------------------------- */
.jtw-values-section {
    background: var(--jtw-slate-50);
    padding: var(--jtw-space-6) var(--jtw-space-3);
    border-bottom: 1px solid var(--jtw-slate-200);
}
.jtw-values {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--jtw-space-3);
}
.jtw-value {
    background: #fff;
    border: 1px solid var(--jtw-slate-200);
    border-radius: var(--jtw-radius-lg);
    padding: var(--jtw-space-3);
    transition: box-shadow .2s;
}
.jtw-value:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06); }
.jtw-value-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.jtw-value-icon.is-private { background: rgba(99, 102, 241, 0.10); color: var(--jtw-midnight-tertiary); }
.jtw-value-icon.is-intelligent { background: rgba(245, 158, 11, 0.10); color: var(--jtw-amber-secondary); }
.jtw-value-icon.is-yours { background: rgba(16, 185, 129, 0.10); color: #059669; }
.jtw-value-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--jtw-slate-900);
    margin-bottom: 6px;
}
.jtw-value-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--jtw-slate-600);
    margin: 0;
}
@media (max-width: 768px) {
    .jtw-values-section { padding: var(--jtw-space-4) var(--jtw-space-2); }
    .jtw-values { grid-template-columns: 1fr; gap: var(--jtw-space-2); }
    .jtw-value { display: flex; gap: 14px; align-items: flex-start; padding: var(--jtw-space-2); }
    .jtw-value-icon { margin-bottom: 0; flex-shrink: 0; margin-top: 2px; }
    .jtw-value-label { font-size: 15px; margin-bottom: 4px; }
    .jtw-value-text { font-size: 14px; }
}

/* ---------- 13. Recent posts strip (homepage) ------------------------- */
.jtw-recent {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--jtw-space-5) var(--jtw-space-3) var(--jtw-space-6);
}
.jtw-recent-heading {
    color: var(--jtw-slate-500);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--jtw-space-3);
}
.jtw-recent-list { border-top: 1px solid var(--jtw-slate-200); }
.jtw-recent-item {
    display: flex;
    align-items: center;
    gap: var(--jtw-space-2);
    padding: 14px 0;
    border-bottom: 1px solid var(--jtw-slate-200);
    text-decoration: none;
    transition: background .15s;
}
.jtw-recent-item:hover { background: var(--jtw-slate-50); }
.jtw-recent-item-content {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: var(--jtw-space-2);
    flex-wrap: wrap;
}
.jtw-recent-item-meta {
    color: var(--jtw-slate-400);
    font-size: 12px;
    flex-shrink: 0;
}
.jtw-recent-item-meta span {
    color: var(--jtw-amber-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.jtw-recent-item h3 {
    color: var(--jtw-slate-900);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}
.jtw-recent-arrow {
    color: var(--jtw-slate-400);
    font-size: 14px;
    flex-shrink: 0;
    transition: color .15s;
}
.jtw-recent-item:hover .jtw-recent-arrow { color: var(--jtw-amber-secondary); }
@media (max-width: 768px) {
    .jtw-recent-item h3 { font-size: 15px; }
}

/* ---------- 14. Modals ----------------------------------------------- */
.jtw-modal {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.70);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--jtw-space-3);
}
.jtw-modal[hidden] { display: none; }
.jtw-modal-card {
    background: #fff;
    border-radius: var(--jtw-radius-lg);
    padding: var(--jtw-space-4);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.30);
}
.jtw-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--jtw-slate-400);
    cursor: pointer;
    line-height: 1;
}
.jtw-modal-card h2 {
    color: var(--jtw-midnight-primary);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 var(--jtw-space-3);
}
.jtw-modal-card p {
    color: var(--jtw-slate-700);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 var(--jtw-space-2);
}
.jtw-modal-footnote { color: var(--jtw-slate-500) !important; font-size: 15px; margin-top: var(--jtw-space-2); }
.jtw-modal-footnote a { color: var(--jtw-amber-secondary); }

.jtw-footer-cta {
    color: var(--jtw-amber-light) !important;
    font-weight: 700;
    font-style: italic;
    text-decoration: none;
}
.jtw-footer-cta:hover { color: var(--jtw-amber-primary) !important; }

/* ---------- 15. Visually hidden helper ------------------------------- */
.jtw-sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
