/* Inter is self-hosted (assets/moat/fonts.css, linked by each page); only the
   Playfair display face still comes from Google (DESIGN_OVERRIDES.md). */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');
/* ============================================
   MOAT.PAGE - SHARED DESIGN SYSTEM
   Light · Editorial
   ============================================ */

:root {
    --bg-dark: #1d1d1f;
    --bg-dark-card: rgba(255,255,255,0.04);
    --pastel-violet: #e0d4f5;
    --pastel-mint: #d1f0e0;
    --pastel-rose: #f5d5d9;
    --pastel-lemon: #f5f0d0;
    --pastel-sky: #d0ebf7;
    --mint: #5ec49e;
    --warm: #e8a065;
    --rose: #d97084;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 48px); }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 20px 0; background: rgba(246,245,242,0.85); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1120px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 48px); }
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; }
.nav-logo-mark { width: 30px; height: 30px; background: var(--pastel-blue); border-radius: var(--twc-radius-sm, 6px); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.8125rem; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 0.875rem; font-weight: 400; color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 500; }
.nav-cta { padding: 9px 22px; background: var(--text); color: var(--bg) !important; border-radius: var(--twc-radius-sm, 6px); font-weight: 500 !important; transition: opacity 0.2s; }
.nav-cta:hover { opacity: 0.85; }
.nav-mobile { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-mobile span { display: block; width: 22px; height: 1.5px; background: var(--text); margin: 5px 0; }

/* PAGE HEADER */
.page-header { padding: 140px 0 60px; }
.page-header h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 12px; }
.page-header h1 em { font-style: normal; color: var(--accent-muted); }
.page-header p { font-size: 1.0625rem; font-weight: 400; color: var(--text-secondary); max-width: 480px; line-height: 1.7; }
.page-header-center { text-align: center; }
.page-header-center p { margin: 0 auto; }

/* SEARCH */
.search-bar { display: flex; gap: 10px; margin: 36px 0 48px; max-width: 560px; }
.page-header-center .search-bar { margin-left: auto; margin-right: auto; }
.search-input { flex: 1; padding: 13px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--twc-radius-control, 10px); font-family: var(--font); font-size: 0.9375rem; font-weight: 400; color: var(--text); transition: border-color 0.2s; }
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--accent-muted); }

/* FILTER TABS */
.filter-tabs { display: flex; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.filter-tab { padding: 7px 18px; border-radius: var(--twc-radius-pill, 100px); font-size: 0.8125rem; font-weight: 400; color: var(--text-secondary); background: var(--bg-card); border: 1px solid var(--border); cursor: pointer; transition: all 0.2s; }
.filter-tab:hover { border-color: var(--text-muted); color: var(--text); }
.filter-tab.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* GRID CARDS */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-bottom: 80px; }

.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--twc-radius-card, 16px); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; text-decoration: none; color: inherit; display: block; }
.card:hover { transform: translateY(-3px); box-shadow: var(--twc-shadow, 0 6px 24px rgba(0,0,0,0.04)); }

.card-color-bar { height: 4px; }
.card-body { padding: 24px; }
.card-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.card-avatar { width: 48px; height: 48px; border-radius: var(--twc-radius-control, 10px); display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 500; color: white; flex-shrink: 0; }
.card-avatar-round { border-radius: 50%; }
.card-info { flex: 1; min-width: 0; }
.card-name { font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 1px; }
.card-title { font-size: 0.8125rem; font-weight: 400; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-score { display: flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--twc-radius-pill, 100px); font-size: 0.75rem; font-weight: 500; background: var(--bg); flex-shrink: 0; }
.card-score-high { color: var(--mint); }
.card-score-mid { color: var(--warm); }

.card-desc { font-size: 0.875rem; font-weight: 400; color: var(--text); line-height: 1.65; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.card-tag { padding: 3px 10px; border-radius: var(--twc-radius-pill, 100px); font-size: 0.75rem; font-weight: 400; background: var(--bg); color: var(--text-secondary); }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border-light); }
.card-meta { font-size: 0.75rem; color: var(--text-secondary); font-weight: 400; }
.card-action { font-size: 0.75rem; font-weight: 500; color: var(--accent); }

/* DETAIL PAGE */
.detail-header { padding: 80px 0 0; }

/* Banner - full bleed image */
.detail-banner {
    height: 280px;
    border-radius: 20px;
    position: relative;
    z-index: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* Hero card - overlays onto the bottom of the banner */
.detail-hero {
    position: relative;
    z-index: 2;
    margin-top: -100px;
    margin-bottom: 32px;
}
.detail-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--twc-radius-card, 16px);
    box-shadow: var(--twc-shadow-lg, 0 8px 40px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04));
}
.detail-hero-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}
.detail-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 400;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--twc-shadow, 0 4px 16px rgba(0,0,0,0.1));
}
.detail-avatar-sq { border-radius: var(--twc-radius-card, 16px); }
.detail-avatar-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.9);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--twc-shadow, 0 4px 16px rgba(0,0,0,0.1));
}
.detail-identity { min-width: 0; }
.detail-name { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); }
.detail-title { font-size: 0.9375rem; font-weight: 400; color: var(--text-secondary); margin-top: 3px; }
.detail-location { font-size: 0.8125rem; font-weight: 400; color: var(--text-secondary); margin-top: 4px; }

/* QR code on the right */
.detail-qr {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.detail-qr canvas,
.detail-qr svg,
.detail-qr img {
    width: 80px;
    height: 80px;
    border-radius: var(--twc-radius-sm, 6px);
}
.detail-qr-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.detail-content { padding: 48px 0 100px; }
.detail-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--twc-radius-card, 16px); padding: 24px; }
.sidebar-label { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 12px; }
.sidebar-score { font-size: 2.5rem; font-weight: 400; letter-spacing: -0.03em; text-align: center; padding: 12px 0; }
.sidebar-score-bar { height: 4px; border-radius: 2px; background: var(--border-light); margin-top: 8px; overflow: hidden; }
.sidebar-score-fill { height: 100%; border-radius: 2px; }

.sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar-tag { padding: 4px 12px; border-radius: var(--twc-radius-pill, 100px); font-size: 0.75rem; font-weight: 400; background: var(--bg); color: var(--text-secondary); }

.sidebar-links { display: flex; flex-direction: column; gap: 8px; }
.sidebar-link { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 400; color: var(--text); transition: color 0.2s; }
.sidebar-link:hover { color: var(--accent); }

.sidebar-stats { display: flex; flex-direction: column; gap: 12px; }
.sidebar-stat { display: flex; justify-content: space-between; font-size: 0.8125rem; }
.sidebar-stat-label { color: var(--text-secondary); font-weight: 400; }
.sidebar-stat-val { font-weight: 500; }

/* Main content */
.main-section { margin-bottom: 36px; }
.main-section-title { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border-light); }
.main-text { font-size: 0.9375rem; font-weight: 400; color: var(--text); line-height: 1.8; }
.main-highlight { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; font-weight: 400; color: var(--text); line-height: 1.6; margin-bottom: 10px; }
.main-highlight-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 8px; flex-shrink: 0; }

.skill-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.skill-name { font-size: 0.8125rem; font-weight: 400; width: 140px; flex-shrink: 0; color: var(--text); }
.skill-track { flex: 1; height: 5px; background: var(--border-light); border-radius: 3px; overflow: hidden; }
.skill-fill { height: 100%; border-radius: 3px; }
.skill-val { font-size: 0.75rem; font-weight: 500; width: 28px; text-align: right; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.portfolio-item { background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--twc-radius-control, 10px); padding: 20px; transition: transform 0.2s; }
.portfolio-item:hover { transform: translateY(-2px); }
.portfolio-item h4 { font-size: 0.9375rem; font-weight: 500; margin-bottom: 4px; }
.portfolio-item p { font-size: 0.8125rem; font-weight: 400; color: var(--text-secondary); line-height: 1.6; }

/* Back link */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 400; color: var(--text-secondary); margin-bottom: 24px; transition: color 0.2s; }
.back-link:hover { color: var(--text); }

/* FOOTER */
.footer { padding: 40px 0; border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 500; }
.footer-copy { font-size: 0.75rem; color: var(--text-secondary); }

/* DEMO WATERMARK - super mild */
.demo-watermark {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: var(--twc-z-overlay, 1050);
    pointer-events: none;
    overflow: hidden;
}
.demo-watermark::before {
    content: 'DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO  DEMO';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    font-family: var(--font);
    font-size: 5rem;
    font-weight: 400;
    color: rgba(0,0,0,0.015);
    letter-spacing: 0.3em;
    line-height: 2.6;
    transform: rotate(-25deg);
    white-space: normal;
    word-spacing: 2em;
}

/* DETAIL BANNER - image version (extends .detail-banner) */
.detail-banner-img {
    height: 280px;
}

/* DETAIL AVATAR - photo version */
.detail-avatar-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 5px solid var(--bg);
    object-fit: cover;
    flex-shrink: 0;
}
.detail-avatar-photo-sq {
    border-radius: 20px;
}

/* DETAIL - location row */
.detail-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* DETAIL - experience timeline */
.experience-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}
.experience-item:last-child { border-bottom: none; }
.experience-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--twc-radius-control, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    flex-shrink: 0;
}
.experience-content { flex: 1; }
.experience-role { font-size: 0.9375rem; font-weight: 500; margin-bottom: 2px; }
.experience-company { font-size: 0.8125rem; font-weight: 400; color: var(--text-secondary); }
.experience-period { font-size: 0.75rem; font-weight: 400; color: var(--text-secondary); margin-top: 2px; }
.experience-desc { font-size: 0.8125rem; font-weight: 400; color: var(--text-secondary); line-height: 1.65; margin-top: 8px; }

/* DETAIL - education */
.education-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}
.education-item:last-child { border-bottom: none; }
.education-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--twc-radius-control, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    flex-shrink: 0;
}
.education-name { font-size: 0.875rem; font-weight: 500; }
.education-degree { font-size: 0.8125rem; font-weight: 400; color: var(--text-secondary); }
.education-year { font-size: 0.75rem; font-weight: 400; color: var(--text-secondary); }

/* DETAIL - recommendations */
.recommendation {
    padding: 20px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--twc-radius-card, 16px);
    margin-bottom: 12px;
}
.recommendation-text {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 12px;
}
.recommendation-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.recommendation-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    flex-shrink: 0;
}
.recommendation-name { font-size: 0.8125rem; font-weight: 500; }
.recommendation-role { font-size: 0.75rem; font-weight: 400; color: var(--text-secondary); }

/* DETAIL - team members grid */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--twc-radius-card, 16px);
    text-align: center;
}
.team-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}
.team-name { font-size: 0.8125rem; font-weight: 500; }
.team-role { font-size: 0.75rem; font-weight: 400; color: var(--text-secondary); }

/* DETAIL - integration / partner logos */
.integrations-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.integration-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--twc-radius-control, 10px);
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-secondary);
}
.integration-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--twc-radius-sm, 6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

/* DETAIL - AI insight card */
.ai-insight {
    padding: 20px 24px;
    border-radius: var(--twc-radius-card, 16px);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}
.ai-insight-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.ai-insight-text { font-size: 0.875rem; font-weight: 400; line-height: 1.65; }
.ai-insight-text strong { font-weight: 500; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.vis { opacity: 1; transform: translateY(0); }

/* WIDGET VIEWS LINK */
.widget-views-link {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    margin-top: 8px;
    transition: color 0.2s ease;
}
.widget-views-link:hover {
    color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-mobile { display: block; }
    .card-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-banner { height: 180px; border-radius: var(--twc-radius-card, 16px); }
    .detail-hero { margin-top: -60px; }
    .detail-hero-card { flex-direction: column; align-items: flex-start; padding: 20px; gap: 16px; }
    .detail-hero-left { width: 100%; }
    .detail-avatar, .detail-avatar-photo { width: 64px; height: 64px; font-size: 1.2rem; }
    .detail-name { font-size: 1.25rem; }
    .detail-qr { flex-direction: row; gap: 10px; }
    .detail-qr canvas, .detail-qr svg, .detail-qr img { width: 48px; height: 48px; }
    .search-bar { flex-direction: column; }
    .footer-inner { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   2026 THEME LAYER (light, editorial). Aligns every page that uses shared.css
   (the Journal and older flat pages) with /assets/moat/moat.css:
   Playfair Display headings, Inter text, one blue accent from the Moat logo.
   ========================================================================== */
:root {
    /* Aliases of assets/moat/tokens.css (DS-01): warm secondary and subtle ink,
       both AA on this paper and its tints. */
    --bg: var(--twc-bg, #FAFAF8); --bg-card: var(--twc-surface, #FFFFFF);
    --text: var(--twc-text, #18181B); --text-secondary: var(--moat-ink-secondary, #5F5F58); --text-muted: var(--moat-ink-subtle, #6B6B63);
    --text-inverse: var(--twc-text-inverse, #FAFAF8);
    --accent: var(--moat-accent, #007AFF); --accent-muted: var(--moat-accent-ink, #0062CC);
    --border: var(--twc-divider, rgba(20, 20, 19, 0.08)); --border-light: var(--twc-divider, rgba(20, 20, 19, 0.08));
    --pastel-blue: var(--twc-accent-light, #E8F1FE); --pastel-peach: var(--twc-accent-light, #E8F1FE);
    --font: var(--twc-font, "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif);
    --font-serif: var(--twc-font-display, "Playfair Display", Georgia, "Times New Roman", serif);
}
body { font-weight: 400; letter-spacing: -0.006em; }
::selection { background: var(--twc-accent-light, #E8F1FE); }
:focus-visible { outline: var(--twc-focus-ring, 2px solid #0062CC); outline-offset: var(--twc-focus-offset, 2px); }
.nav { padding: 0; height: 64px; display: flex; align-items: center; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border-bottom: 1px solid var(--border); }
.nav-inner { width: 100%; max-width: 1200px; }
.nav-logo { font-weight: 500; letter-spacing: -0.03em; }
.nav-logo-mark { background: var(--accent-muted); color: var(--twc-on-accent, #FFFFFF); border-radius: var(--twc-radius-sm, 6px); width: 28px; height: 28px; font-size: 0.8rem; }
.nav-links { gap: 4px; }
.nav-links a { padding: 8px 13px; border-radius: var(--twc-radius-pill, 999px); font-size: 0.9rem; color: var(--text-secondary); }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(20,20,19,0.04); }
.nav-cta { background: var(--text); color: var(--text-inverse) !important; border-radius: var(--twc-radius-pill, 999px); }
/* The pill keeps its own fill on hover (the nav-link hover tint above replaced it, and its
   light text vanished on that tint). */
.nav-links a.nav-cta:hover { background: var(--text); }
.page-header h1, body .blog-title, .detail-name, .blog-card-title, .blog-rel-info h4 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.025em; color: var(--text); }
.page-header h1 em { font-style: italic; color: var(--accent-muted); }
body .blog-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); line-height: 1.1; text-wrap: balance; }
body .blog-body { font-size: 1.0625rem; }
body .blog-body p, body .blog-body li { color: var(--text); line-height: 1.8; }
body .blog-body h2 { font-family: var(--font-serif); font-weight: 400; font-size: 1.7rem; letter-spacing: -0.02em; margin-top: 3rem; }
body .blog-body h3 { font-weight: 500; }
body .blog-body blockquote { border-left: 2px solid var(--accent); font-family: var(--font-serif); font-size: 1.3rem; color: var(--text); font-style: italic; }
body .blog-body a { color: var(--accent-muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--moat-accent-line, rgba(0, 122, 255, 0.3)); }
body .blog-cat, body .category-pill.active { background: var(--moat-accent-soft, rgba(0, 122, 255, 0.08)); color: var(--accent-muted); }
body .blog-hero-wrap, body .blog-rel-card, .card, .sidebar-card { border-radius: var(--twc-radius-card, 16px); }
body .blog-rel-card:hover, .card:hover { box-shadow: var(--twc-shadow-lg, 0 2px 4px rgba(20, 40, 70, 0.05), 0 18px 48px rgba(20, 40, 70, 0.09)); }
body .blog-share-links a:hover { background: var(--accent-muted); color: var(--twc-on-accent, #FFFFFF); }
.card-action, .sidebar-link:hover, .widget-views-link:hover { color: var(--accent-muted); }
.footer { padding: 32px 0; }
.footer-brand .nav-logo-mark { width: 24px; height: 24px; }
.journal-cta { max-width: 680px; margin: 8px auto 40px; padding: 28px 30px; border-radius: var(--twc-radius-card, 16px); background: var(--twc-bg-alt, #F3F2EF); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.journal-cta strong { font-family: var(--font-serif); font-weight: 400; font-size: 1.35rem; letter-spacing: -0.02em; display: block; }
.journal-cta span { color: var(--text-secondary); font-size: 0.95rem; }
.journal-cta a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: var(--twc-radius-pill, 999px); background: var(--text); color: var(--text-inverse); font-weight: 500; font-size: 0.92rem; white-space: nowrap; }
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
/* Skip link (SEO-14): off-screen until a keyboard user focuses it. */
.moat-skip-link { position: absolute; left: -9999px; top: 8px; z-index: var(--twc-z-toast, 1090); padding: 8px 16px; border-radius: var(--twc-radius-sm, 6px); background: var(--text); color: var(--text-inverse); font-weight: 500; }
.moat-skip-link:focus { left: 8px; }
