/* Editorial blog and post archive surfaces aligned with the graphite-and-gold G-STUDIO identity. */
body.blog,
body.archive,
body.search,
body.single-post {
    --gs-editorial-surface: #26231f;
    --gs-editorial-raised: #302b25;
    --gs-editorial-text: #efe5db;
    --gs-editorial-muted: #c4b8a7;
    --gs-editorial-gold: #d1ac80;
    --gs-editorial-line: rgb(209 172 128 / 24%);
    background: var(--gs-editorial-surface);
    color: var(--gs-editorial-text);
}

body.gstudio-native-ro-blog {
    --gs-editorial-surface: #26231f;
    --gs-editorial-raised: #302b25;
    --gs-editorial-text: #efe5db;
    --gs-editorial-muted: #c4b8a7;
    --gs-editorial-gold: #d1ac80;
    --gs-editorial-line: rgb(209 172 128 / 24%);
    background: var(--gs-editorial-surface);
    color: var(--gs-editorial-text);
}

body.gstudio-native-ro-blog .site-main {
    width: min(calc(100% - 2rem), 94rem);
    margin-inline: auto;
    padding-block: clamp(2rem, 5vw, 4.5rem);
}

body.gstudio-native-ro-blog .page-content {
    width: 100%;
    margin-inline: 0;
}

body.gstudio-native-ro-blog .page-header {
    display: none;
}

body.gstudio-native-ro-blog .entry-content {
    color: var(--gs-editorial-text);
    font-size: 1rem;
}

/* The Native blog template owns the shared card structure; RO overrides below keep its graphite surface. */
body.blog .gsa-archive { width: min(100%, 94rem); margin-inline: auto; }
body.blog .gsa-archive__head { max-width: 72rem; margin: 0 auto clamp(1.5rem, 3vw, 2.5rem); }
body.blog .gsa-archive__title { margin: 0 0 1rem; color: var(--gs-editorial-text); font-family: var(--gs-font-display); font-size: clamp(2.25rem, 5.5vw, 4.5rem); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
body.blog .gsa-archive__lead { max-width: 62ch; margin: 0; color: var(--gs-editorial-muted); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.65; }
body.blog .gsa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
body.blog .gsa-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--gs-editorial-line); border-radius: 22px; background: #fbfaf8; color: #26231f; box-shadow: 0 18px 42px rgb(8 7 6 / 22%); transition: border-color 180ms ease, transform 180ms ease; }
body.blog .gsa-card:hover { border-color: var(--gs-editorial-gold); transform: translateY(-3px); }
body.blog .gsa-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e9ddcd; }
body.blog .gsa-card__media img, body.blog .gsa-card__media--fallback { display: block; width: 100%; height: 100%; object-fit: cover; }
body.blog .gsa-card__media--fallback { background: linear-gradient(135deg, #c9975b, #8a5632); }
body.blog .gsa-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .85rem; padding: clamp(1.1rem, 2vw, 1.5rem); }
body.blog .gsa-card__date { color: #8a5632; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
body.blog .gsa-card__title { margin: 0; color: inherit; font-family: var(--gs-font-display); font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.25; }
body.blog .gsa-card__title a { color: inherit; text-decoration: none; }
body.blog .gsa-card__excerpt { margin: 0; color: #6f6258; line-height: 1.6; }
body.blog .gsa-card__more { display: inline-flex; min-height: 2.75rem; align-items: center; margin-top: auto; color: #8a5632; font-weight: 700; text-decoration: none; }
body.blog .gsa-card__more:hover { color: #694126; text-decoration: underline; }
body.blog .gsa-pagination { display: flex; justify-content: center; margin-top: 2rem; }
body.blog .gsa-pagination .page-numbers { display: inline-flex; min-width: 2.5rem; min-height: 2.5rem; align-items: center; justify-content: center; padding: .4rem .7rem; border-radius: 10px; color: var(--gs-editorial-text); }
body.blog .gsa-pagination .current { background: var(--gs-editorial-gold); color: var(--gs-editorial-surface); }
body.blog .gsa-empty { grid-column: 1 / -1; color: var(--gs-editorial-muted); }
body.blog .gsa-card a:focus-visible, body.blog .gsa-pagination a:focus-visible { outline: 3px solid var(--gs-editorial-gold); outline-offset: 3px; }

@media (max-width: 900px) { body.blog .gsa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { body.blog .gsa-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { body.blog .gsa-card { transition: none; } body.blog .gsa-card:hover { transform: none; } }

body.gstudio-native-ro-blog .gsa-archive {
    width: min(100%, 94rem);
    margin-inline: auto;
}

body.gstudio-native-ro-blog .gsa-archive__head {
    width: min(100%, 72rem);
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
    margin-inline: auto;
}

body.gstudio-native-ro-blog .gsa-archive__title {
    margin: 0 0 1rem;
    color: var(--gs-editorial-text);
    font-family: var(--gs-font-display);
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 1.04;
    text-wrap: balance;
}

body.gstudio-native-ro-blog .gsa-archive__lead {
    max-width: 62ch;
    margin: 0;
    color: var(--gs-editorial-muted);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.65;
}

body.gstudio-native-ro-blog .gsa-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(1rem, 2vw, 1.5rem);
}

body.gstudio-native-ro-blog .gsa-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--gs-editorial-line);
    border-radius: 22px;
    background: linear-gradient(148deg, var(--gs-editorial-raised), var(--gs-editorial-surface));
    box-shadow: 0 18px 42px rgb(8 7 6 / 22%), inset 0 1px 0 rgb(255 255 255 / 8%);
    color: var(--gs-editorial-text);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.gstudio-native-ro-blog .gsa-card:hover {
    border-color: rgb(209 172 128 / 54%);
    box-shadow: 0 24px 48px rgb(8 7 6 / 30%), inset 0 1px 0 rgb(255 255 255 / 10%);
    transform: translateY(-3px);
}

body.gstudio-native-ro-blog .gsa-card__media {
    display: grid;
    min-height: 8rem;
    aspect-ratio: 16 / 9;
    place-items: center;
    background: linear-gradient(145deg, rgb(255 255 255 / 8%), rgb(12 10 8 / 28%)), var(--gs-editorial-raised);
}

body.gstudio-native-ro-blog .gsa-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.gstudio-native-ro-blog .gsa-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: clamp(1.1rem, 2vw, 1.5rem);
}

body.gstudio-native-ro-blog .gsa-card__date {
    color: var(--gs-editorial-gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.gstudio-native-ro-blog .gsa-card__title {
    margin: 0;
    color: var(--gs-editorial-text);
    font-family: var(--gs-font-display);
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    line-height: 1.25;
}

body.gstudio-native-ro-blog .gsa-card__title a {
    color: inherit;
    text-decoration: none;
}

body.gstudio-native-ro-blog .gsa-card__excerpt:empty {
    display: none;
}

body.gstudio-native-ro-blog .gsa-card__excerpt {
    margin: 0;
    color: var(--gs-editorial-muted);
    line-height: 1.6;
}

body.gstudio-native-ro-blog .gsa-card__more {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    padding: 0.5rem 0;
    color: var(--gs-editorial-gold);
    font-weight: 700;
    text-decoration: none;
}

body.gstudio-native-ro-blog .gsa-card__more:hover {
    color: var(--gs-editorial-text);
}

@media (max-width: 900px) {
    body.gstudio-native-ro-blog .gsa-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    body.gstudio-native-ro-blog .site-main {
        width: min(calc(100% - 1.25rem), 94rem);
    }

    body.gstudio-native-ro-blog .gsa-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.gstudio-native-ro-blog .gsa-card {
        transition: none;
    }

    body.gstudio-native-ro-blog .gsa-card:hover {
        transform: none;
    }
}

body.blog .site-main,
body.archive .site-main,
body.search .site-main {
    width: min(calc(100% - 4rem), 94rem);
    margin-inline: auto;
    padding-block: clamp(3rem, 7vw, 6rem);
}

body.blog .page-header,
body.archive .page-header,
body.search .page-header {
    width: min(100%, 72rem);
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

body.search .gstudio-search-form {
    width: min(100%, 54rem);
    margin: 0 0 clamp(2rem, 4vw, 3rem);
}

body.search .gstudio-search-form__label {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--gs-editorial-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

body.search .gstudio-search-form__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
}

body.search .gstudio-search-form__field {
    box-sizing: border-box;
    min-width: 0;
    height: 52px;
    min-height: 52px;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--gs-editorial-line);
    border-radius: 12px;
    background: var(--gs-editorial-raised);
    color: var(--gs-editorial-text);
    font: inherit;
}

body.search .gstudio-search-form__field:focus-visible,
body.search .gstudio-search-form__submit:focus-visible {
    outline: 3px solid var(--gs-editorial-gold);
    outline-offset: 3px;
}

body.search .gstudio-search-form__submit {
    box-sizing: border-box;
    height: 52px;
    min-height: 52px;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--gs-editorial-gold);
    border-radius: 999px;
    background: var(--gs-editorial-gold);
    color: var(--gs-editorial-surface);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease;
}

body.search .gstudio-search-form__submit:hover {
    transform: translateY(-1px);
    background: #dfbd96;
}

body.search .search-empty-state {
    width: min(100%, 54rem);
    margin: 0;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--gs-editorial-line);
    border-radius: 18px;
    background: linear-gradient(148deg, var(--gs-editorial-raised), var(--gs-editorial-surface));
    color: var(--gs-editorial-text);
}

@media (max-width: 600px) {
    body.search .gstudio-search-form__controls {
        grid-template-columns: minmax(0, 1fr);
    }

    body.search .gstudio-search-form__submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.search .gstudio-search-form__submit {
        transition: none;
    }

    body.search .gstudio-search-form__submit:hover {
        transform: none;
    }
}

body.blog .page-title,
body.archive .page-title,
body.search .page-title,
body.single-post .page-title {
    color: var(--gs-editorial-text);
}

body.search .page-title span {
    overflow-wrap: anywhere;
}

body.blog .post-grid,
body.archive .post-grid,
body.search .post-grid {
    align-items: start;
    gap: clamp(1rem, 2vw, 1.6rem);
}

body.blog .post-card,
body.archive .post-card,
body.search .post-card {
    border-color: var(--gs-editorial-line);
    border-radius: 18px;
    background: linear-gradient(148deg, var(--gs-editorial-raised), var(--gs-editorial-surface));
    box-shadow: 0 18px 42px rgb(8 7 6 / 22%), inset 0 1px 0 rgb(255 255 255 / 8%);
}

body.blog .post-card:hover,
body.archive .post-card:hover,
body.search .post-card:hover {
    border-color: rgb(209 172 128 / 54%);
    box-shadow: 0 24px 48px rgb(8 7 6 / 30%), inset 0 1px 0 rgb(255 255 255 / 10%);
}

body.blog .post-card__image,
body.archive .post-card__image,
body.search .post-card__image {
    background: var(--gs-editorial-raised);
}

body.blog .post-card__body,
body.archive .post-card__body,
body.search .post-card__body {
    padding: clamp(1.15rem, 2.2vw, 1.7rem);
}

body.blog .post-meta,
body.archive .post-meta,
body.search .post-meta,
body.single-post .post-meta {
    color: var(--gs-editorial-muted);
}

body.blog .post-card__title a,
body.archive .post-card__title a,
body.search .post-card__title a {
    color: var(--gs-editorial-text);
    text-decoration-color: transparent;
    text-decoration-line: underline;
    text-underline-offset: .2em;
    transition: color 180ms ease, text-decoration-color 180ms ease;
}

body.blog .post-card__title a:hover,
body.archive .post-card__title a:hover,
body.search .post-card__title a:hover {
    color: var(--gs-editorial-gold);
    text-decoration-color: currentColor;
}

body.blog .post-card__excerpt,
body.archive .post-card__excerpt,
body.search .post-card__excerpt {
    color: var(--gs-editorial-muted);
}

body.single-post .site-main {
    width: min(calc(100% - 3rem), 86rem);
    margin-inline: auto;
    padding-block: clamp(2rem, 5vw, 4.5rem);
}

body.single-post .post-content {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--gs-editorial-line);
    border-radius: 22px;
    background: linear-gradient(150deg, #2c2924, var(--gs-editorial-surface) 48%);
    box-shadow: 0 24px 64px rgb(8 7 6 / 26%), inset 0 1px 0 rgb(255 255 255 / 9%);
}

body.single-post .post-content__hero {
    overflow: hidden;
    margin: 0;
    background: var(--gs-editorial-raised);
}

body.single-post .post-content__hero-image {
    width: 100%;
    max-height: min(58vw, 42rem);
    object-fit: cover;
}

body.single-post .page-header {
    width: auto;
    padding: clamp(1.5rem, 5vw, 4.5rem) clamp(1.25rem, 7vw, 6.5rem) clamp(1.25rem, 3vw, 2.5rem);
    margin: 0;
    border-bottom: 1px solid var(--gs-editorial-line);
}

body.single-post .page-title {
    max-width: 22ch;
    font-size: clamp(2rem, 5.2vw, 4.8rem);
    letter-spacing: -.045em;
}

body.single-post .post-meta {
    margin-top: 1rem;
}

body.single-post .post-event-status {
    display: inline-flex;
    margin: 1rem 0 0;
    padding: .55rem .8rem;
    border: 1px solid rgb(209 172 128 / 38%);
    border-radius: 999px;
    background: rgb(209 172 128 / 10%);
    color: #e4c89f;
    font-size: .9rem;
    font-weight: 650;
}

/* Historical masterclass posts retain their source body but do not present embedded registration widgets as current. */
body.single-post .post-content--archived-event .entry-content :is(.wpcf7, .gstudio-masterclass-card) {
    display: none !important;
}

body.single-post .page-content__body {
    width: min(100% - 2.5rem, 68ch);
    margin-inline: auto;
    padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 5rem);
    color: var(--gs-editorial-text);
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.8;
}

body.single-post .entry-content h1,
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4 {
    color: var(--gs-editorial-text);
}

body.single-post .entry-content h2,
body.single-post .entry-content h3 {
    text-wrap: pretty;
}

body.single-post .entry-content a {
    color: var(--gs-editorial-gold);
}

body.single-post .entry-content img,
body.single-post .entry-content video,
body.single-post .entry-content iframe {
    border: 1px solid var(--gs-editorial-line);
    border-radius: 14px;
}

body.single-post .entry-content iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

body.single-post .entry-content blockquote {
    border-left-color: var(--gs-editorial-gold);
    background: rgb(209 172 128 / 9%);
    color: var(--gs-editorial-text);
}

/* Align first-party SEO archive/article markup with Native's dark shell. */
body.gstudio-native-site:is(.blog, .archive, .search) .gsa-archive__title {
    color: var(--gs-editorial-text, #efe5db);
}

body.gstudio-native-site:is(.blog, .archive, .search) .gsa-archive__lead {
    color: var(--gs-editorial-muted, #c4b8a7);
}

body.gstudio-native-site:is(.blog, .archive, .search):not(.gstudio-native-ro-blog) .gsa-card {
    color: #26231f;
    background: #fbfaf8;
}

body.gstudio-native-site:is(.blog, .archive, .search):not(.gstudio-native-ro-blog) .gsa-card__more {
    color: #8a5632;
}

body.gstudio-native-site:is(.blog, .archive, .search):not(.gstudio-native-ro-blog) .gsa-card__more:hover {
    color: #694126;
}

body.gstudio-native-site.single-post .gsa-article__content {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--gs-editorial-line, rgb(209 172 128 / 24%));
    border-radius: 0 0 22px 22px;
    background: var(--gs-paper, #fbfaf8);
    color: #26231f;
}

body.gstudio-native-site.single-post .gsa-article__content :is(h1, h2, h3, h4, p, li, dt, dd, figcaption) {
    color: #26231f;
}

body.gstudio-native-site.single-post .gsa-article__content a {
    color: #8a5632;
    text-decoration-color: currentColor;
}

body.gstudio-native-site.single-post .gsa-article__content a:hover {
    color: #694126;
}

body.gstudio-native-site.single-post .gsa-article__content blockquote {
    border-left-color: var(--gs-editorial-gold, #d1ac80);
    background: #f2e9dc;
    color: #26231f;
}

body.blog :focus-visible,
body.archive :focus-visible,
body.search :focus-visible,
body.single-post :focus-visible {
    outline-color: var(--gs-editorial-gold);
}

@media (max-width: 700px) {
    body.blog .site-main,
    body.archive .site-main,
    body.search .site-main,
    body.single-post .site-main {
        width: min(calc(100% - 1.25rem), 94rem);
        padding-block: 1.5rem 2.5rem;
    }

    body.single-post .post-content {
        border-radius: 17px;
    }

    body.single-post .post-content__hero-image {
        max-height: 70vw;
    }

    body.single-post .page-header {
        padding: 1.35rem 1.15rem 1.1rem;
    }

    body.gstudio-native-site.single-post .gsa-article__title {
        max-width: 100%;
        font-size: clamp(1.35rem, 6.5vw, 2rem);
        overflow-wrap: break-word;
    }

    body.gstudio-native-site.single-post .gsa-article__content .gg-chapter h2 {
        display: block;
        font-size: 1.2rem;
    }

    body.gstudio-native-site.single-post .gsa-article__content .gg-chapter h2 .gg-num {
        display: inline;
        margin-right: .4em;
    }

    body.single-post .page-content__body {
        width: calc(100% - 2.3rem);
        padding-block: 1.2rem 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.blog .post-card,
    body.archive .post-card,
    body.search .post-card,
    body.blog .post-card__image img,
    body.archive .post-card__image img,
    body.search .post-card__image img,
    body.blog .post-card__title a,
    body.archive .post-card__title a,
    body.search .post-card__title a {
        transition: none;
    }
}

/* light-surfaces v1 */
/* ---- Light editorial surfaces (blog, posts, FAQ, shop): brown stays on accents and cards ---- */
body.blog, body.archive, body.search, body.single-post, body.gstudio-native-ro-blog {
  --gs-editorial-surface: #f4f1ec;
  --gs-editorial-raised: #fbfaf8;
  --gs-editorial-text: #26231f;
  --gs-editorial-muted: #665f58;
  --gs-editorial-gold: #8a5a2b;
  --gs-editorial-line: rgb(138 90 43 / 22%);
}
body.gstudio-native-site :is(.post-content) {
  background: #fbfaf8 !important; color: #26231f !important; border-color: #e3ddd5 !important; box-shadow: 0 18px 48px rgb(38 35 31 / 8%) !important;
}

/* auto-derived text colours */
.gsa-article__content .gg-chapter .gg-num { color: #85582a !important; }
.gsa-article__content code { color: #4a433b !important; }

.gsa-article__content .gg-btn-primary { background: #85582a !important; color: #fff !important; }
