/* Shared article shell styles for long-form GoalSetting pages */
:root {
    --ink: #0f0f0f;
    --ink-muted: #6b6b6b;
    --paper: #fafaf7;
    --paper-warm: #f4f2ec;
    --paper-mid: #ede9e0;
    --border: #ddd9ce;
    --park: #2d6a4f;
    --earn: #b5541a;
    --build: #1a3a6b;
    --page-gutter: 1.5rem;
    --shell-max-width: 1100px;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: #fff;
    font-size: 1.0625rem;
    line-height: 1.72;
}

.article-hero {
    background: var(--park);
    color: #fff;
    padding: 4rem var(--page-gutter) 3rem;
}

.article-hero-inner {
    max-width: var(--shell-max-width);
    margin: 0 auto;
}

.article-breadcrumb {
    font-family: 'DM Mono', monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.25rem;
}

.article-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.article-breadcrumb a:hover {
    color: #fff;
}

.article-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    max-width: 740px;
}

.article-hero .lede {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.65;
    max-width: 600px;
    margin: 0;
}

.progress-nav {
    position: sticky;
    top: 52px;
    z-index: 90;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 var(--page-gutter);
    overflow-x: auto;
}

@media (max-width: 900px) {
    .progress-nav {
        padding: 0 var(--page-gutter);
    }
}

.progress-nav-inner {
    max-width: var(--shell-max-width);
    margin: 0 auto;
    display: flex;
    gap: 0;
}

.progress-link {
    font-family: 'DM Mono', monospace;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3a3a3a;
    text-decoration: none;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: 0.15s;
}

.progress-link:hover {
    color: var(--ink);
    border-bottom-color: var(--border);
}

@media (max-width: 768px) {
    .progress-link {
        padding: 0.5rem 0.625rem;
        font-size: 0.625rem;
    }
}

.article-layout {
    max-width: var(--shell-max-width);
    margin: 0 auto;
    padding: 3.5rem var(--page-gutter) 3.5rem 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 4rem;
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.75rem var(--page-gutter);
    }
}

.article-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.625rem;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 2.5rem 0 1rem;
    color: var(--ink);
    scroll-margin-top: 100px;
}

.article-body h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 1.75rem 0 0.5rem;
    color: var(--ink);
}

.article-body p {
    margin-bottom: 1.25rem;
    color: #333;
}

.article-body strong {
    color: var(--ink);
}

.article-body ul,
.article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    color: #333;
}

.article-body a:not(.tool-cta-button) {
    color: var(--park);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.callout {
    background: var(--paper-warm);
    border-left: 3px solid var(--park);
    border-radius: 0 4px 4px 0;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.callout p {
    margin: 0;
    font-size: 1rem;
    color: #444;
}

.callout strong {
    color: var(--park);
}

.example-box {
    background: var(--paper-warm);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.example-box .example-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 0.5rem;
}

.example-box p {
    margin: 0;
    font-size: 0.9375rem;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1rem;
    align-items: start;
}

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Mono', monospace;
    font-size: 0.8125rem;
    font-weight: 500;
    flex-shrink: 0;
}

.step-num.green { background: var(--park); color: #fff; }
.step-num.blue { background: var(--build); color: #fff; }
.step-num.orange { background: var(--earn); color: #fff; }

.step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.step-content p {
    font-size: 0.9375rem;
    color: #555;
    margin: 0;
}

.faq-section {
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    padding-top: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--ink);
}

.faq-item p {
    font-size: 0.9375rem;
    color: #444;
    margin: 0;
    line-height: 1.65;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card,
.affiliate-card,
.tool-cta-block {
    background: var(--paper-warm);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.5rem;
}

.sidebar-card h4,
.affiliate-card h4,
.tool-cta-kicker {
    font-family: 'DM Mono', monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 1rem;
}

.sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-item {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-item a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.sidebar-item a:hover {
    color: var(--park);
}

.sidebar-item p {
    font-size: 0.8125rem;
    color: #555;
    margin: 0.25rem 0 0;
    line-height: 1.55;
}

.sidebar-copy,
.tool-cta-copy {
    font-size: 1rem;
    color: #333;
    margin: 0 0 0.75rem;
}

.sidebar-cta,
.tool-cta-button {
    display: inline-block;
    background: #2F4A44;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.6rem 1rem;
    border-radius: 3px;
    text-decoration: none;
    text-align: center;
}

.article-body .tool-cta-button {
    color: #fff;
    text-decoration: none;
}

.sidebar-cta:hover,
.tool-cta-button:hover,
.article-body .tool-cta-button:hover {
    color: #fff;
    background: #243934;
    text-decoration: none;
}

.sidebar-cta.orange {
    background: var(--earn);
}

.sidebar-cta.orange:hover {
    background: #8a4013;
}

.affiliate-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.affiliate-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.affiliate-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
}

.affiliate-item-desc {
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

.affiliate-item-link {
    font-size: 0.8125rem;
    color: var(--park);
    text-decoration: none;
    font-weight: 600;
}

.affiliate-item-link:hover {
    text-decoration: underline;
}

.subscribe-wrapper {
    border-top: 1px solid var(--border);
}

.articles-wrapper {
    background: #fff;
    padding: 3.5rem var(--page-gutter);
}

.articles-wrapper-inner {
    max-width: var(--shell-max-width);
    margin: 0 auto;
}

.articles-wrapper h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--ink);
}

.articles-grid .article-card {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.articles-grid .article-card:hover {
    text-decoration: none;
}

.articles-grid .article-card-inner {
    background: var(--paper-warm);
    border: 1px solid #e1dccf;
    border-radius: 6px;
    padding: 1.5rem;
    height: 100%;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.articles-grid .article-card:hover .article-card-inner {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-color: rgba(47, 74, 68, 0.22);
    transform: translateY(-1px);
}

.articles-grid .article-card-tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 0.5rem;
}

.articles-grid .article-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.75rem;
    color: #2F4A44;
}

.articles-grid .article-card:hover .article-card-title {
    color: #243934;
}

.articles-grid .article-card-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.footer-wrapper {
    background: var(--paper-warm);
}
