.feed-article {
    --feed-line: var(--glass-border);
    --feed-line-strong: var(--glass-border-muted);
    --feed-panel: var(--glass-bg);
    --feed-panel-soft: var(--glass-bg-soft);
    --feed-accent-soft: var(--accent-soft);
    position: relative;
}

.feed-skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    min-height: 44px;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--sandbox-action-text);
    font-weight: 800;
    transform: translateY(-160%);
}

.feed-skip-link:focus {
    transform: translateY(0);
}

.feed-hero {
    padding: 64px 0;
    border-bottom: 1px solid var(--feed-line);
}

.feed-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 48px;
    align-items: center;
}

.feed-hero-grid-copy-only {
    grid-template-columns: minmax(0, 820px);
    justify-content: center;
}

.feed-hero-copy {
    display: grid;
    gap: 16px;
}

.feed-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.feed-breadcrumb a,
.feed-text-link {
    color: var(--plan-value-accent);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--plan-value-accent) 40%, transparent);
    text-underline-offset: 4px;
}

.feed-breadcrumb a:hover,
.feed-breadcrumb a:focus-visible,
.feed-text-link:hover,
.feed-text-link:focus-visible {
    color: var(--text);
    text-decoration-color: currentColor;
}

.feed-eyebrow,
.feed-kicker {
    margin: 0;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.feed-hero h1 {
    max-width: 760px;
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--type-page-title-size);
    line-height: var(--type-page-title-line-height);
    letter-spacing: -0.035em;
}

.feed-intro {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: var(--type-lead-size);
    line-height: var(--type-lead-line-height);
}

.feed-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.feed-byline span:first-child {
    color: var(--text);
    font-weight: 700;
}

.feed-flow-card {
    display: grid;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--feed-line-strong);
    border-radius: var(--radius);
    background: var(--feed-panel);
    box-shadow: var(--glass-shadow), var(--glass-highlight);
}

.feed-flow-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.feed-flow-step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 72px;
    padding: 12px 16px;
    border: 1px solid var(--feed-line);
    border-radius: var(--radius);
    background: var(--surface);
}

.feed-flow-step > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--feed-accent-soft);
    color: var(--accent);
    font-weight: 800;
}

.feed-flow-step div {
    display: grid;
    gap: 4px;
}

.feed-flow-step strong {
    font-family: var(--font-heading);
}

.feed-flow-step small,
.feed-flow-return small {
    color: var(--muted);
}

.feed-flow-stream {
    border-color: color-mix(in srgb, var(--plan-value-accent) 34%, transparent);
}

.feed-flow-stream > span {
    background: var(--plan-value-tab-bg);
    color: var(--plan-value-accent);
}

.feed-flow-connector {
    display: grid;
    justify-items: center;
    height: 24px;
}

.feed-flow-connector span {
    width: 1px;
    height: 24px;
    background: var(--feed-line-strong);
}

.feed-flow-return {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: var(--muted);
}

.feed-flow-return > span {
    color: var(--plan-value-accent);
    font-size: 1.3rem;
}

.feed-article-section {
    padding: 64px 0 96px;
}

.feed-article-layout {
    display: grid;
    width: min(1360px, calc(100vw - 48px));
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    justify-content: center;
}

.feed-toc {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--feed-line);
    border-radius: var(--radius);
    background: var(--feed-panel-soft);
    box-shadow: var(--glass-highlight);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.feed-toc > strong {
    font-family: var(--font-heading);
    font-size: 0.92rem;
}

.feed-toc nav {
    display: grid;
}

.feed-toc a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.88rem;
}

.feed-toc a:hover,
.feed-toc a:focus-visible {
    background: var(--feed-accent-soft);
    color: var(--text);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.feed-prose {
    min-width: 0;
    font-size: 1rem;
    line-height: 1.72;
}

.feed-prose > section {
    padding-top: 64px;
    scroll-margin-top: 80px;
}

.feed-prose p {
    margin: 0 0 24px;
    color: var(--muted);
}

.feed-list {
    display: grid;
    gap: 10px;
    margin: 0 0 24px;
    padding-left: 24px;
    color: var(--muted);
}

.feed-list li::marker {
    color: var(--accent);
}

.feed-prose .feed-pattern {
    margin: 32px 0;
    padding: 20px 24px;
    border: 1px solid color-mix(in srgb, var(--plan-value-accent) 32%, transparent);
    border-radius: var(--radius);
    background: var(--plan-value-tab-bg);
    color: var(--text);
    text-align: center;
}

.feed-prose .feed-short-line {
    margin-bottom: 8px;
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}

.feed-prose .feed-opening {
    margin-bottom: 24px;
    color: var(--text);
    font-size: 1.24rem;
    font-weight: 600;
    line-height: 1.55;
}

.feed-prose h2 {
    margin: 8px 0 24px;
    color: var(--text);
    font-family: var(--font-heading);
    font-size: var(--type-section-title-size);
    line-height: var(--type-section-title-line-height);
    letter-spacing: -0.025em;
}

.feed-prose code {
    color: var(--plan-value-accent);
}

.feed-note,
.feed-caveat {
    margin: 32px 0 8px;
    padding: 20px 24px;
    border: 1px solid var(--feed-line-strong);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    background: var(--feed-panel-soft);
}

.feed-note strong,
.feed-caveat strong {
    font-family: var(--font-heading);
}

.feed-note p,
.feed-caveat p {
    margin: 8px 0 0;
}

.feed-caveat {
    border-left-color: var(--sandbox-accent);
}

.feed-table-wrap {
    width: 100%;
    margin: 32px 0;
    overflow-x: auto;
    border: 1px solid var(--feed-line);
    border-radius: var(--radius);
    background: var(--feed-panel-soft);
    box-shadow: var(--glass-highlight);
}

.feed-table-wrap:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.feed-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    text-align: left;
}

.feed-table th,
.feed-table td {
    padding: 16px;
    border-bottom: 1px solid var(--feed-line);
    vertical-align: top;
}

.feed-table thead th {
    background: var(--feed-accent-soft);
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 0.86rem;
}

.feed-table tbody th {
    color: var(--text);
    font-weight: 700;
}

.feed-table td {
    color: var(--muted);
}

.feed-table tr:last-child th,
.feed-table tr:last-child td {
    border-bottom: 0;
}

.feed-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 32px 0;
    overflow: hidden;
    border: 1px solid var(--feed-line);
    border-radius: var(--radius);
    background: var(--feed-panel-soft);
}

.feed-metric-grid div {
    display: grid;
    gap: 4px;
    padding: 20px 16px;
    border-right: 1px solid var(--feed-line);
}

.feed-metric-grid div:last-child {
    border-right: 0;
}

.feed-metric-grid strong {
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 1.45rem;
}

.feed-metric-grid span {
    color: var(--muted);
    font-size: 0.8rem;
}

.feed-calculation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 32px 0;
    padding: 20px 24px;
    border: 1px solid color-mix(in srgb, var(--plan-value-accent) 32%, transparent);
    border-radius: var(--radius);
    background: var(--plan-value-tab-bg);
    color: var(--muted);
}

.feed-calculation strong {
    color: var(--plan-value-accent);
}

.feed-step-list {
    display: grid;
    gap: 12px;
    margin: 32px 0;
    padding: 0;
    list-style: none;
}

.feed-step-list li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--feed-line);
    border-radius: var(--radius);
    background: var(--feed-panel-soft);
}

.feed-step-list li > span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--feed-accent-soft);
    color: var(--accent);
    font-weight: 800;
}

.feed-step-list strong {
    color: var(--text);
}

.feed-step-list p {
    margin: 4px 0 0;
}

.feed-code {
    margin: 32px 0;
    padding: 20px;
    overflow-x: auto;
    border: 1px solid var(--feed-line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 0.86rem;
    line-height: 1.65;
    box-shadow: var(--glass-highlight);
}

.feed-code code {
    color: inherit;
}

.feed-code-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.feed-code-grid > div {
    min-width: 0;
}

.feed-code-grid > div > span {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.feed-code-grid .feed-code {
    height: calc(100% - 24px);
    margin: 8px 0 0;
}

.feed-definition-grid,
.feed-decision-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.feed-definition-grid div,
.feed-decision-list div {
    padding: 20px;
    border: 1px solid var(--feed-line);
    border-radius: var(--radius);
    background: var(--feed-panel-soft);
}

.feed-definition-grid dt,
.feed-decision-list strong {
    color: var(--text);
    font-family: var(--font-heading);
    font-weight: 700;
}

.feed-definition-grid dd,
.feed-decision-list p {
    margin: 8px 0 0;
    color: var(--muted);
}

.feed-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    margin-top: 64px;
    padding: 32px;
    border: 1px solid color-mix(in srgb, var(--plan-value-accent) 36%, transparent);
    border-radius: var(--radius);
    background: var(--glass-bg-teal);
    box-shadow: var(--glass-shadow), var(--glass-highlight);
}

.feed-cta h2 {
    margin-bottom: 12px;
}

.feed-cta p:last-child {
    margin-bottom: 0;
}

.feed-cta-actions {
    display: grid;
    gap: 12px;
    justify-items: stretch;
}

.feed-cta-actions .button {
    min-height: 44px;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .feed-hero-grid,
    .feed-article-layout {
        grid-template-columns: 1fr;
    }

    .feed-article-layout {
        width: min(1120px, calc(100vw - 32px));
    }

    .feed-hero-grid {
        gap: 32px;
    }

    .feed-flow-card {
        max-width: 640px;
    }

    .feed-toc {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .feed-toc nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 16px;
    }
}

@media (max-width: 720px) {
    .feed-hero,
    .feed-article-section {
        padding-top: 48px;
    }

    .feed-article-section {
        padding-bottom: 64px;
    }

    .feed-metric-grid,
    .feed-code-grid,
    .feed-definition-grid,
    .feed-decision-list,
    .feed-cta {
        grid-template-columns: 1fr;
    }

    .feed-metric-grid div {
        border-right: 0;
        border-bottom: 1px solid var(--feed-line);
    }

    .feed-metric-grid div:last-child {
        border-bottom: 0;
    }

    .feed-prose > section {
        padding-top: 48px;
    }

    .feed-toc nav {
        grid-template-columns: 1fr;
    }

    .feed-cta-actions {
        justify-items: stretch;
    }
}

@media (max-width: 390px) {
    .feed-flow-card,
    .feed-note,
    .feed-caveat,
    .feed-step-list li,
    .feed-definition-grid div,
    .feed-decision-list div,
    .feed-cta {
        padding: 16px;
    }

    .feed-flow-step {
        padding: 12px;
    }

    .feed-calculation {
        padding: 16px;
    }
}
