/* =========================================================
   Beacon / Ridge Foundry Long-form Article Styling
   ========================================================= */

.blog-article,
.article-content {
    --article-text: #26313b;
    --article-muted: #64748b;
    --article-border: rgba(15, 23, 42, 0.12);
    --article-surface: #f7f5ef;
    --article-surface-alt: #ffffff;
    --article-dark: #0b1118;
    --article-deep: #0a2e6e;

    color: var(--article-text);
    font-size: 1.05rem;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   Content width
   --------------------------------------------------------- */

.blog-article .article-body,
.article-content {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}


/* ---------------------------------------------------------
   Typography
   --------------------------------------------------------- */

.blog-article h2,
.article-content h2 {
    margin-top: 4.25rem;
    margin-bottom: 1.25rem;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.blog-article h3,
.article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 0.85rem;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.blog-article p,
.article-content p {
    margin-bottom: 1.35rem;
}

.blog-article strong,
.article-content strong {
    color: var(--article-dark);
}


/* ---------------------------------------------------------
   Links
   --------------------------------------------------------- */

.blog-article a:not(.btn),
.article-content a:not(.btn) {
    color: var(--article-deep);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(10, 46, 110, 0.4);
}

.blog-article a:not(.btn):hover,
.article-content a:not(.btn):hover {
    text-decoration-color: currentColor;
}


/* ---------------------------------------------------------
   Intro / lead
   --------------------------------------------------------- */

.blog-article .lead,
.article-content .lead,
.article-intro {
    margin-bottom: 2rem;
    color: #3f4b57;
    font-size: clamp(1.12rem, 1.5vw, 1.3rem);
    line-height: 1.7;
}


/* ---------------------------------------------------------
   Table of contents
   --------------------------------------------------------- */

.blog-toc {
    position: relative;
    margin: 2.5rem 0 3.25rem !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--article-border) !important;
    border-radius: 4px !important;
    background: var(--article-surface-alt);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.blog-toc::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: var(--article-deep);
    content: "";
}

.blog-toc > * {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

.blog-toc h2,
.blog-toc h3,
.blog-toc h4,
.blog-toc .blog-toc-title {
    margin: 0;
    padding-top: 1.35rem;
    padding-bottom: 0.85rem;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.blog-toc ul,
.blog-toc ol {
    margin: 0;
    padding-top: 0;
    padding-bottom: 1.35rem;
    list-style: none;
}

.blog-toc li {
    border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.blog-toc li:first-child {
    border-top: 0;
}

.blog-toc a {
    display: block;
    padding: 0.7rem 0;
    color: var(--article-dark) !important;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none !important;
    transition:
            color 0.15s ease,
            transform 0.15s ease;
}

.blog-toc a:hover {
    color: var(--article-deep) !important;
    transform: translateX(3px);
}


/* ---------------------------------------------------------
   Lists
   --------------------------------------------------------- */

.blog-article ul:not(.blog-toc ul),
.article-content ul:not(.blog-toc ul) {
    margin: 1.25rem 0 1.75rem;
    padding-left: 0;
    list-style: none;
}

.blog-article ul:not(.blog-toc ul) > li,
.article-content ul:not(.blog-toc ul) > li {
    position: relative;
    margin-bottom: 0.65rem;
    padding-left: 1.5rem;
}

.blog-article ul:not(.blog-toc ul) > li::before,
.article-content ul:not(.blog-toc ul) > li::before {
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--article-deep);
    content: "";
}


/* ---------------------------------------------------------
   Phase cards
   --------------------------------------------------------- */

.beacon-phase {
    margin: 3.5rem 0;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid var(--article-border);
    border-radius: 4px;
    background: var(--article-surface-alt);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.05);
}

.beacon-phase h2,
.beacon-phase h3 {
    margin-top: 0;
}

.beacon-phase-label {
    display: inline-block;
    margin-bottom: 0.85rem;
    color: var(--article-deep);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   Architecture / workflow examples
   --------------------------------------------------------- */

.beacon-flow {
    margin: 1.75rem 0 2rem;
    padding: 1.35rem 1.5rem;
    border-left: 3px solid var(--article-deep);
    background: #f1f3f5;
    color: var(--article-dark);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.65;
}

.beacon-flow span {
    color: var(--article-muted);
    font-weight: 400;
}


/* ---------------------------------------------------------
   Feature grid / benefits
   --------------------------------------------------------- */

.beacon-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0 3rem;
}

.beacon-feature-card {
    padding: 1.5rem;
    border: 1px solid var(--article-border);
    border-radius: 4px;
    background: var(--article-surface-alt);
}

.beacon-feature-card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.08rem;
}

.beacon-feature-card p {
    margin: 0;
    color: var(--article-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   Pull quote / strong statement
   --------------------------------------------------------- */

.beacon-callout {
    margin: 3rem 0;
    padding: clamp(1.6rem, 3vw, 2.5rem);
    border: 0;
    border-radius: 4px;
    background: var(--article-dark);
    color: #fff;
}

.beacon-callout p {
    margin: 0;
    color: inherit;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.5;
}

.beacon-callout strong {
    color: #fff;
}


/* ---------------------------------------------------------
   Big idea / light callout
   --------------------------------------------------------- */

.beacon-highlight {
    margin: 3rem 0;
    padding: 2rem;
    border-top: 1px solid var(--article-border);
    border-bottom: 1px solid var(--article-border);
    background: rgba(255, 255, 255, 0.38);
}

.beacon-highlight h2,
.beacon-highlight h3 {
    margin-top: 0;
}


/* ---------------------------------------------------------
   CTA at bottom
   --------------------------------------------------------- */

.article-cta {
    margin-top: 4rem;
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: 4px;
    background: var(--article-dark);
    color: #fff;
}

.article-cta h2,
.article-cta h3 {
    margin-top: 0;
    color: #fff;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.76);
}

.article-cta .btn {
    margin-top: 0.5rem;
}


/* ---------------------------------------------------------
   Images
   --------------------------------------------------------- */

.blog-article figure,
.article-content figure {
    margin: 2.75rem 0;
}

.blog-article figure img,
.article-content figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.blog-article figcaption,
.article-content figcaption {
    margin-top: 0.65rem;
    color: var(--article-muted);
    font-size: 0.82rem;
}


/* ---------------------------------------------------------
   Anchor offset for sticky header
   --------------------------------------------------------- */

.blog-article h2[id],
.blog-article h3[id],
.article-content h2[id],
.article-content h3[id] {
    scroll-margin-top: 120px;
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 767.98px) {

    .blog-article,
    .article-content {
        font-size: 1rem;
        line-height: 1.72;
    }

    .blog-article h2,
    .article-content h2 {
        margin-top: 3rem;
    }

    .beacon-feature-grid {
        grid-template-columns: 1fr;
    }

    .blog-toc > * {
        padding-left: 1.35rem;
        padding-right: 1.35rem;
    }

    .beacon-phase,
    .article-cta {
        padding: 1.5rem;
    }
}

/* ========================================================================
   Ridge Foundry — Beacon architecture / modernization article additions
   Append this block to:
   public/themes/ridgefoundry/assets/css/blog.css
   ======================================================================== */

.theme-ridgefoundry.layout-blog-post .content-prose {
    max-width: 860px;
}

/* Intro --------------------------------------------------------------- */
.theme-ridgefoundry .rf-article-intro {
    margin: 0 0 2.75rem;
}

.theme-ridgefoundry .rf-article-intro .lead {
    margin-bottom: 1.2rem;
    color: #40484d;
    font-size: clamp(1.08rem, 1.5vw, 1.22rem);
    line-height: 1.72;
}

/* Small editorial/system label --------------------------------------- */
.theme-ridgefoundry .rf-kicker {
    display: block;
    margin: 0 0 .7rem;
    color: var(--beacon-accent, #b66b36);
    font: 800 .63rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: .15em;
    text-transform: uppercase;
}

/* Light and dark callouts -------------------------------------------- */
.theme-ridgefoundry .rf-article-callout {
    margin: clamp(2.75rem, 6vw, 4.5rem) 0;
    padding: clamp(1.55rem, 3vw, 2.25rem);
    border: 1px solid #c8c6bf;
    border-left: 3px solid var(--beacon-accent, #b66b36);
    background:
            linear-gradient(rgba(17,23,28,.025) 1px, transparent 1px),
            linear-gradient(90deg, rgba(17,23,28,.025) 1px, transparent 1px),
            #eeece5;
    background-size: 32px 32px;
}

.theme-ridgefoundry .rf-article-callout h2,
.theme-ridgefoundry .rf-article-callout h3 {
    margin-top: 0;
}

.theme-ridgefoundry .rf-article-callout p:last-child {
    margin-bottom: 0;
}

.theme-ridgefoundry .rf-article-callout--dark {
    margin-top: clamp(4rem, 8vw, 6rem);
    border-left-color: var(--beacon-accent, #b66b36);
    background-color: #243944;
    background-image:
            linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 32px 32px;
    color: #f4f1e9;
}

.theme-ridgefoundry .rf-article-callout--dark h2,
.theme-ridgefoundry .rf-article-callout--dark h3,
.theme-ridgefoundry .rf-article-callout--dark strong {
    color: #fff;
}

.theme-ridgefoundry .rf-article-callout--dark p {
    color: #c8d0d3;
}

/* Capability cards --------------------------------------------------- */
.theme-ridgefoundry .rf-capability-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.8rem 0 2.5rem;
}

.theme-ridgefoundry .rf-capability {
    min-width: 0;
    padding: 1.3rem 1.35rem;
    border: 1px solid #c9c8c1;
    border-top: 2px solid #334753;
    background: rgba(255,255,255,.38);
}

.theme-ridgefoundry .rf-capability strong {
    display: block;
    margin-bottom: .45rem;
    color: var(--beacon-night, #11171c);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.04rem;
    line-height: 1.2;
}

.theme-ridgefoundry .rf-capability span {
    display: block;
    color: #5e6568;
    font-size: .91rem;
    line-height: 1.55;
}

/* Phase sections ----------------------------------------------------- */
.theme-ridgefoundry .rf-phase {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 1.4rem;
    margin: clamp(3.75rem, 7vw, 5.5rem) 0;
    padding-top: 1.6rem;
    border-top: 1px solid #c8c7c0;
}

.theme-ridgefoundry .rf-phase__number {
    padding-top: .25rem;
    color: var(--beacon-accent, #b66b36);
    font: 800 .66rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: .14em;
}

.theme-ridgefoundry .rf-phase__body {
    min-width: 0;
}

.theme-ridgefoundry .rf-phase__body > h2 {
    margin-top: 0;
}

.theme-ridgefoundry .rf-phase__body blockquote {
    margin: 1.6rem 0;
}

/* Compact topic chips ------------------------------------------------ */
.theme-ridgefoundry .rf-inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1.45rem 0 1.8rem;
}

.theme-ridgefoundry .rf-inline-list span {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: .38rem .68rem;
    border: 1px solid #c7c7c1;
    background: #eceae3;
    color: #3f474b;
    font: 700 .68rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: .045em;
    text-transform: uppercase;
}

/* Event / job flow --------------------------------------------------- */
.theme-ridgefoundry .rf-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    margin: 1.75rem 0 1.9rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid #c9c7bf;
    border-left: 3px solid var(--beacon-accent, #b66b36);
    background: #ebe9e2;
}

.theme-ridgefoundry .rf-flow span {
    color: #2d363b;
    font-size: .85rem;
    font-weight: 750;
    line-height: 1.35;
}

.theme-ridgefoundry .rf-flow b {
    color: var(--beacon-accent, #b66b36);
    font: 800 .8rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Four-phase summary ------------------------------------------------- */
.theme-ridgefoundry .rf-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 1.9rem 0 3.5rem;
    border: 1px solid #c7c6c0;
    background: #c7c6c0;
}

.theme-ridgefoundry .rf-summary-grid > div {
    min-width: 0;
    padding: 1.45rem;
    background: #f0eee7;
}

.theme-ridgefoundry .rf-summary-grid h3 {
    margin: .15rem 0 .55rem;
    font-size: 1.14rem;
}

.theme-ridgefoundry .rf-summary-grid p {
    margin-bottom: 0;
    color: #5e6568;
    font-size: .91rem;
    line-height: 1.6;
}

/* CTA actions -------------------------------------------------------- */
.theme-ridgefoundry .rf-article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.45rem;
}

.theme-ridgefoundry .rf-article-callout--dark .btn-secondary {
    border-color: #778188;
    color: #fff;
}

.theme-ridgefoundry .rf-article-callout--dark .btn-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,.07);
    color: #fff;
}

/* Anchor targets sit below the sticky header ------------------------ */
.theme-ridgefoundry .content-prose h2[id],
.theme-ridgefoundry .content-prose h3[id],
.theme-ridgefoundry .rf-phase[id] {
    scroll-margin-top: 118px;
}

/* Mobile ------------------------------------------------------------- */
@media (max-width: 700px) {
    .theme-ridgefoundry .rf-capability-grid,
    .theme-ridgefoundry .rf-summary-grid {
        grid-template-columns: 1fr;
    }

    .theme-ridgefoundry .rf-phase {
        grid-template-columns: 1fr;
        gap: .55rem;
        margin: 3.4rem 0;
    }

    .theme-ridgefoundry .rf-phase__number {
        padding-top: 0;
    }

    .theme-ridgefoundry .rf-flow {
        align-items: flex-start;
        flex-direction: column;
    }

    .theme-ridgefoundry .rf-flow b {
        margin-left: .15rem;
        transform: rotate(90deg);
    }

    .theme-ridgefoundry .rf-article-callout,
    .theme-ridgefoundry .rf-article-callout--dark {
        padding: 1.35rem;
    }

    .theme-ridgefoundry .rf-article-actions {
        display: grid;
    }

    .theme-ridgefoundry .rf-article-actions .btn {
        width: 100%;
    }
}

.theme-ridgefoundry .rf-article-callout--dark {
    background-color: var(--beacon-slate);
    background-image:
            linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Beacon Blog semantic patterns */
.theme-ridgefoundry .blog-pattern {
    margin: clamp(2.2rem, 5vw, 3.5rem) 0;
}

.theme-ridgefoundry .blog-pattern > :first-child { margin-top: 0; }
.theme-ridgefoundry .blog-pattern > :last-child { margin-bottom: 0; }

.theme-ridgefoundry .blog-pattern-label {
    display: block;
    margin-bottom: .65rem;
    color: var(--beacon-accent, #b66b36);
    font: 800 .64rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.theme-ridgefoundry .blog-key-point {
    padding: 1.5rem 0 1.55rem 1.4rem;
    border-top: 1px solid #c8c7c0;
    border-bottom: 1px solid #c8c7c0;
    border-left: 3px solid var(--beacon-accent, #b66b36);
}

.theme-ridgefoundry .blog-diagnostic {
    padding: .35rem 0 .35rem 1.35rem;
    border-left: 3px solid var(--beacon-accent, #b66b36);
    background: transparent;
}

.theme-ridgefoundry .blog-callout {
    padding: 1.35rem 1.5rem;
    border-top: 1px solid #c8c6bf;
    border-bottom: 1px solid #c8c6bf;
    background: rgba(255,255,255,.22);
}

.theme-ridgefoundry .blog-comparison,
.theme-ridgefoundry .blog-metric-strip,
.theme-ridgefoundry .blog-process-rail {
    width: min(1080px, calc(100vw - 40px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.theme-ridgefoundry .blog-comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid #c7c6c0;
    background: #c7c6c0;
}

.theme-ridgefoundry .blog-comparison > * {
    min-width: 0;
    margin: 0;
    padding: 1.55rem;
    background: #f0eee7;
}

.theme-ridgefoundry .blog-metric-strip {
    padding: clamp(1.5rem, 3vw, 2rem);
    border-top: 2px solid #334753;
    border-bottom: 1px solid #c8c7c0;
    background: rgba(255,255,255,.28);
}

.theme-ridgefoundry .blog-metric-strip > h2:first-child,
.theme-ridgefoundry .blog-metric-strip > h3:first-child,
.theme-ridgefoundry .blog-process-rail > h2:first-child,
.theme-ridgefoundry .blog-process-rail > h3:first-child {
    margin-top: 0;
}

.theme-ridgefoundry .blog-metric-strip > ul,
.theme-ridgefoundry .blog-metric-strip > ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 1.4rem 0 0 !important;
    padding: 1px !important;
    border: 0;
    background: #c9c7bf;
    list-style: none !important;
}

.theme-ridgefoundry .blog-metric-strip > ul > li,
.theme-ridgefoundry .blog-metric-strip > ol > li {
    min-width: 0;
    margin: 0 !important;
    padding: 1.25rem 1.3rem !important;
    background: #f0eee7;
}

.theme-ridgefoundry .blog-metric-strip > ul > li::before,
.theme-ridgefoundry .blog-metric-strip > ol > li::before {
    display: none !important;
}

.theme-ridgefoundry .blog-metric-strip > ul > li strong:first-child,
.theme-ridgefoundry .blog-metric-strip > ol > li strong:first-child {
    display: block;
    margin-bottom: .45rem;
    color: var(--beacon-accent, #b66b36);
    font: 800 .72rem/1.2 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.theme-ridgefoundry .blog-process-rail {
    padding: clamp(1.45rem, 3vw, 1.9rem);
    border: 1px solid #c9c7bf;
    border-left: 3px solid var(--beacon-accent, #b66b36);
    background:
        linear-gradient(rgba(17,23,28,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17,23,28,.018) 1px, transparent 1px),
        #f0eee7;
    background-size: 32px 32px;
}

.theme-ridgefoundry .blog-process-rail > ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 1.3rem 0 0 !important;
    padding: 0 !important;
    counter-reset: blog-process;
    list-style: none !important;
}

.theme-ridgefoundry .blog-process-rail > ol > li {
    position: relative;
    min-width: 0;
    margin: 0 !important;
    padding: 1rem 1rem 1rem 2.45rem !important;
    border-top: 1px solid #c8c7c0;
    counter-increment: blog-process;
}

.theme-ridgefoundry .blog-process-rail > ol > li::before {
    position: absolute;
    top: 1rem;
    left: .35rem;
    display: grid !important;
    width: 1.55rem !important;
    height: 1.55rem !important;
    place-items: center;
    border: 1px solid #9f9d95;
    border-radius: 50%;
    background: #f8f6f0 !important;
    color: #334753;
    content: counter(blog-process) !important;
    font: 800 .66rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.theme-ridgefoundry .blog-figure {
    width: min(1120px, calc(100vw - 40px));
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.theme-ridgefoundry .blog-code {
    overflow-x: auto;
    padding: 1.25rem 1.35rem;
    border: 1px solid #2f414a;
    border-radius: 3px;
    background: #11191d;
    color: #eef2f3;
    font: .9rem/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.theme-ridgefoundry .blog-inline-citation {
    font-size: .92em;
    font-weight: 650;
}

.theme-ridgefoundry .blog-references {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #c8c7c0;
}

.theme-ridgefoundry .blog-references h2 {
    margin-top: 0;
    font-size: clamp(1.45rem, 2vw, 1.8rem);
}

@media (max-width: 800px) {
    .theme-ridgefoundry .blog-comparison,
    .theme-ridgefoundry .blog-metric-strip,
    .theme-ridgefoundry .blog-process-rail,
    .theme-ridgefoundry .blog-figure {
        width: 100%;
        margin-left: 0;
        transform: none;
    }

    .theme-ridgefoundry .blog-comparison,
    .theme-ridgefoundry .blog-metric-strip > ul,
    .theme-ridgefoundry .blog-metric-strip > ol,
    .theme-ridgefoundry .blog-process-rail > ol {
        grid-template-columns: 1fr;
    }
}


/* Blog tags ---------------------------------------------------------- */
.theme-ridgefoundry .blog-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    margin-top: 3.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid #c8c7c0;
}

.theme-ridgefoundry .blog-tags strong {
    margin-right: .15rem;
    color: #596166;
    font: 800 .64rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.theme-ridgefoundry .blog-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: .38rem .7rem;
    border: 1px solid #c7c6c0;
    background: rgba(255,255,255,.28);
    color: #334753 !important;
    font: 750 .68rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: .045em;
    text-decoration: none !important;
    text-transform: uppercase;
    transition:
        border-color .15s ease,
        background-color .15s ease,
        color .15s ease,
        transform .15s ease;
}

.theme-ridgefoundry .blog-tags a::before {
    margin-right: .38rem;
    color: var(--beacon-accent, #b66b36);
    content: "#";
    font-weight: 900;
}

.theme-ridgefoundry .blog-tags a:hover,
.theme-ridgefoundry .blog-tags a:focus-visible {
    border-color: #8f8c84;
    background: #ebe8df;
    color: #11171c !important;
    transform: translateY(-1px);
}

.theme-ridgefoundry .blog-tags a:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--beacon-accent, #b66b36) 65%, transparent);
    outline-offset: 2px;
}

/* Blog related articles */
.theme-ridgefoundry .blog-related {
    margin-top: 4.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #c8c7c0;
}

.theme-ridgefoundry .blog-related__heading {
    margin-bottom: 1.35rem;
}

.theme-ridgefoundry .blog-related__heading h2 {
    margin: .3rem 0 0;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.theme-ridgefoundry .blog-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid #c7c6c0;
    background: #c7c6c0;
}

.theme-ridgefoundry .blog-related__card {
    min-width: 0;
    padding: 1.25rem;
    background: #f0eee7;
}

.theme-ridgefoundry .blog-related__card h3 {
    margin: .35rem 0 .6rem;
    font-size: 1.08rem;
}

.theme-ridgefoundry .blog-related__card h3 a {
    color: var(--beacon-night, #11171c);
    text-decoration: none;
}

.theme-ridgefoundry .blog-related__card p {
    margin: 0;
    color: #5e6568;
    font-size: .9rem;
    line-height: 1.55;
}

.theme-ridgefoundry .blog-related__meta {
    color: var(--beacon-accent, #b66b36);
    font: 800 .66rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: .1em;
    text-transform: uppercase;
}

@media (max-width: 800px) {
    .theme-ridgefoundry .blog-related__grid { grid-template-columns: 1fr; }
}

/* Selectable article-layout panel */
.theme-ridgefoundry .blog-panel {
    padding: 1.5rem 0;
    border-top: 2px solid #334753;
    border-bottom: 1px solid #c9c7bf;
    background: transparent;
}
.theme-ridgefoundry .blog-panel > h2:first-child,
.theme-ridgefoundry .blog-panel > h3:first-child {
    margin-top: 0;
}
