/* Ghost-specific styles layered on top of the Nvic template CSS */

:root {
    --ra-accent: #c44318;
    --ra-header: #151515;
    --ra-breaking: #2b211d;
    --ra-surface: #f7f5f1;
    --ra-ink: #171614;
    --ra-muted: #6d6963;
    --ra-divider: #3c3935;
    --ra-border: #d8d2ca;
    --ra-card: #fff;
    --ra-tag-build-notes: #c95b27;
    --ra-tag-field-notes: #597d70;
    --ra-tag-the-rewire: #ad4e50;
    --ra-tag-deal-flow: #426b91;
    --ra-tag-culture-rewired: #8a6695;
    --ra-font-editorial: var(--gh-font-heading, "Lora", Georgia, "Times New Roman", serif);
    --ra-font-ui: "Poppins", Arial, sans-serif;
    --ra-font-body: var(--gh-font-body, "Roboto", Arial, sans-serif);
    --ra-section-title-size: 2.14285rem;
    --ra-section-title-size-tablet: 1.71428rem;
    --ra-section-title-size-small: 1.65rem;
    --ra-section-title-size-mobile: 1.5rem;
    --ra-section-title-weight: 700;
    --ra-section-title-line-height: 1.2;
}

/* Logo as text when no logo image is uploaded in Ghost admin */
.site-logo-text { font-family: var(--ra-font-editorial); font-weight: 700; font-size: 28px; color: inherit; }
.site-logo-link img { max-height: 40px; width: auto; }

/* Editor cards: wide and full-width images (required by Ghost) */
.gh-content .kg-width-wide { position: relative; width: 85vw; min-width: 100%; margin: 1.5em auto; left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { position: relative; width: 100vw; left: 50%; right: 50%; margin: 1.5em -50vw; }
.gh-content .kg-width-full img, .gh-content .kg-width-wide img { width: 100%; }
.gh-content figure img { max-width: 100%; height: auto; }
.gh-content figcaption { font-size: 13px; color: #888; text-align: center; margin-top: 8px; }

/* Responsive YouTube / video embeds */
.gh-content .kg-embed-card { display: flex; flex-direction: column; align-items: center; margin: 1.5em 0; }
.gh-content .kg-embed-card iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }

/* Members (newsletter) forms: Ghost toggles .loading / .success / .error on the form */
.form-message { display: none; margin-top: 10px; font-size: 14px; }
[data-members-form].success .form-success,
[data-members-form].error .form-error { display: block; }
[data-members-form].success .subscribe-form__fields,
[data-members-form].success input,
[data-members-form].success button { display: none; }
[data-members-form].loading button { opacity: .6; pointer-events: none; }
.site-footer__newsletter { padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer__newsletter input[type=email] { padding: 10px 14px; min-width: 260px; border: 0; }
.btn-subscribe-header { margin-right: 12px; }

/* Pagination */
.atbs-pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 40px 0; }
.footer-copyright { padding-top: 20px; font-size: 13px; opacity: .7; }

/* Shared editorial foundation */
body, .typography-copy { font-family: var(--ra-font-body); color: var(--ra-ink); }
.site-content { background: var(--ra-surface); color: var(--ra-ink); }
.site-content h1,
.site-content h2,
.site-content h3,
.site-content h4,
.site-content h5,
.site-content h6,
.site-content .post__title,
.site-content .entry-title,
.site-content .block-heading__title,
.site-content .widget__title-text { font-family: var(--ra-font-editorial); }
.site-content .post__meta,
.site-content .entry-meta,
.site-content .block-heading__subtitle,
.site-content .widget-subscribe,
.site-content .btn,
.site-content label { font-family: var(--ra-font-ui); }
.site-content .post__title a,
.site-content .entry-title a { color: inherit; transition: color .2s ease; }
.site-content .post__title a:hover,
.site-content .entry-title a:hover { color: var(--ra-accent); }
.site-content .btn-primary { background: var(--ra-accent); border-color: var(--ra-accent); border-radius: 0; }
.site-content .btn-primary:hover,
.site-content .btn-primary:focus { background: var(--ra-ink); border-color: var(--ra-ink); color: #fff; }
.site-content a:focus-visible,
.site-content button:focus-visible,
.site-content input:focus-visible,
.site-content textarea:focus-visible { outline: 3px solid var(--ra-accent); outline-offset: 3px; }
.gh-content a { color: var(--ra-accent); text-decoration-thickness: 1px; text-underline-offset: .15em; }
.gh-content h2,
.gh-content h3,
.gh-content h4 { color: var(--ra-ink); line-height: 1.2; }
.gh-content blockquote { border-left-color: var(--ra-accent); }

/* Text logo is white on the dark navigation bar */
.site-header .site-logo-text, .site-footer .site-logo-text { color: #fff; }
.atbs-offcanvas .site-logo-text { color: #222; }

/* Share buttons */
.socials-share-box .sharing-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 8px; border: 1px solid var(--ra-border); background: var(--ra-card); color: var(--ra-muted); font-size: 18px; }
.socials-share-box .sharing-btn:hover { background: var(--ra-accent); border-color: var(--ra-accent); color: #fff; }
.sticky-header .site-logo-text { color: #222; }

/* =========================================================
   Homepage (Step 1): breaking bar, top stories, section rows, latest list
   ========================================================= */

.home-template .site-content { background: var(--ra-surface); color: var(--ra-ink); }
.home-template .post__title,
.home-template .block-heading__title { font-family: var(--ra-font-editorial); color: var(--ra-ink); text-transform: none; }
.home-template .post__meta,
.home-template .ra-row-heading__more { font-family: var(--ra-font-ui); }
.home-template .widget__title .first-word { color: var(--ra-accent); }
.home-template .widget-subscribe .btn-primary { background: var(--ra-accent); border-color: var(--ra-accent); }

@media (min-width: 1200px) {
    .home-template .site-content .container { width: calc(100% - 80px); max-width: 1492px; }
}

/* Breaking bar */
.ra-breaking { background: var(--ra-breaking); color: #fff; font-size: 14px; }
.ra-breaking__inner { display: flex; align-items: center; gap: 16px; min-height: 50px; padding-top: 8px; padding-bottom: 8px; }
.ra-breaking__label { flex-shrink: 0; background: var(--ra-accent); color: #fff; font-family: var(--ra-font-ui); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; padding: 8px 16px; }
.ra-breaking__link { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ra-breaking__link:hover { color: #fff; text-decoration: underline; }

/* Row headings: title on the left, "See all" on the right */
.ra-section-row, .ra-top-stories, .ra-latest { padding-top: 40px; }
.ra-row-heading { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--ra-divider); padding: 12px 0 10px; margin-bottom: 24px; }
.ra-row-heading::before { content: ""; position: absolute; top: 0; left: 0; width: 62px; height: 3px; background: var(--ra-accent); }
.ra-row-heading.block-heading_style-1.block-heading_style-1-small .block-heading__title { margin: 0; font-size: var(--ra-section-title-size); line-height: var(--ra-section-title-line-height); font-weight: var(--ra-section-title-weight); text-transform: capitalize; }
.ra-row-heading .block-heading__title .first-word { padding-right: 0; color: inherit; }
.ra-row-heading .block-heading__title a { color: inherit; }
.ra-row-heading__more { flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--ra-ink); }
.ra-row-heading__more span { margin-left: 6px; color: var(--ra-accent); font-size: 1.35em; line-height: 0; }
.ra-row-heading__page { font-size: .6em; font-weight: 400; opacity: .7; }

/* Shared page title: used by tag, static, full-width, Contact and Events pages. */
.ra-page-heading { position: relative; border-bottom: 1px solid var(--ra-divider); padding: 16px 0 18px; margin: 0 0 32px; }
.ra-page-heading::before { content: ""; position: absolute; top: 0; left: 0; width: 62px; height: 3px; background: var(--ra-accent); }
.ra-page-heading.block-heading_style-1.block-heading_style-1-small .block-heading__title,
.ra-page-heading > h1,
.module-contact .contact-heading.ra-page-heading > h1 { margin: 0; color: var(--ra-ink); font-family: var(--ra-font-editorial); font-size: var(--ra-section-title-size); font-weight: var(--ra-section-title-weight); line-height: var(--ra-section-title-line-height); text-transform: capitalize; }
.ra-page-heading .block-heading__title .first-word { padding-right: 0; color: inherit; }
.ra-page-heading .block-heading__subtitle { max-width: 760px; margin-top: 12px; color: var(--ra-muted); font-size: 16px; line-height: 1.6; }
.ra-page-heading .block-heading__subtitle p { margin: 0; }
.module-contact .contact-heading.ra-page-heading { margin-bottom: 32px; }

/* Top stories: 3 headlines stacked beside the lead */
.ra-top-stories .post-sub { display: flex; flex-direction: column; justify-content: space-between; }
.ra-top-stories__list .list-item { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--ra-border); }
.ra-top-stories__list .list-item:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.ra-top-stories .post-main .post__text-inner { max-width: 700px; padding: 36px; }
.ra-top-stories .post-main .post__title,
.ra-top-stories .post-main .post__title a { color: #fff; }
.ra-top-stories .post-main .post__title { max-width: 700px; margin-bottom: 14px; font-size: clamp(2.5rem, 3vw, 3.25rem); line-height: 1.08; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.24); }
.ra-top-stories .post-main .post__title a:hover { color: #fff; }
.ra-top-stories .post-main .post__excerpt { max-width: 680px; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.82); }
.ra-top-stories .post-main .post__meta { color: rgba(255,255,255,.72); }
.ra-top-stories .post-main .post-author__name { color: #fff; }
.ra-top-stories .post-main .post__thumb--overlay::after { background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.78) 100%); }
.ra-top-stories .ra-list-item .post__title { font-size: clamp(1.15rem, 1.5vw, 1.7rem); line-height: 1.18; font-weight: 600; }
.ra-no-image { background: var(--color-bg); }

@media (min-width: 992px) {
    .ra-top-stories .post--overlay-height-440 .post__text { min-height: clamp(440px, 34vw, 535px); }
    .ra-top-stories .ra-list-item .post__thumb { width: 34%; height: auto; aspect-ratio: 1.08 / 1; margin-right: 20px; }
}

/* Shared meta line: author · reading time · date */
.ra-meta { display: flex; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--ra-muted); }
.ra-meta .post-author__name { color: var(--ra-muted); font-weight: 500; }
.ra-meta__sep { margin: 0 6px; opacity: .6; }
.site-content .post__meta,
.site-content .entry-meta { color: var(--ra-muted); }
.site-content .post-author__name,
.site-content .entry-author__name { color: inherit; }

/* Category colours come from Ghost tag slugs exposed by the card/article templates. */
.tag-build-notes { --ra-category-color: var(--ra-tag-build-notes); }
.tag-field-notes { --ra-category-color: var(--ra-tag-field-notes); }
.tag-the-rewire { --ra-category-color: var(--ra-tag-the-rewire); }
.tag-deal-flow { --ra-category-color: var(--ra-tag-deal-flow); }
.tag-culture-rewired { --ra-category-color: var(--ra-tag-culture-rewired); }
.site-content .post__cat,
.site-content .post-tag { color: var(--ra-category-color, var(--ra-accent)); font-family: var(--ra-font-ui); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-content .post__cat--bg { padding: 9px 18px; border-radius: 0; background: var(--ra-category-color, var(--ra-accent)); color: #fff; }
.site-content .post__cat:hover,
.site-content .post-tag:hover { color: var(--ra-ink); }
.site-content .post__cat--bg:hover { background: var(--ra-ink); color: #fff; }

/* Archive cards used on tag/category and author pages. */
.tag-template .site-content > .atbs-block,
.author-template .site-content > .atbs-block { padding: 56px 0 64px; }
.ra-archive-card { height: 100%; overflow: hidden; border: 1px solid var(--ra-border); background: var(--ra-card); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.ra-archive-card:hover { border-color: rgba(196,67,24,.45); box-shadow: 0 12px 28px rgba(23,22,20,.1); transform: translateY(-3px); }
.ra-archive-card .post__thumb { height: auto !important; aspect-ratio: 3 / 2; overflow: hidden; background: #e9e5de; }
.ra-archive-card .post__thumb > a:first-child { display: block; width: 100%; height: 100%; }
.ra-archive-card .post__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ra-archive-card:hover .post__thumb img { transform: scale(1.025); }
.ra-archive-card .post__text { min-height: 0 !important; padding: 22px !important; background: var(--ra-card); color: var(--ra-ink); }
.ra-archive-card .post__title { margin: 0 0 16px; color: var(--ra-ink); font-size: 1.45rem; font-weight: 600; line-height: 1.25; }
.ra-archive-card .post__meta { padding-top: 14px; border-top: 1px solid var(--ra-border); color: var(--ra-muted); }
.ra-archive-card .post-author__avatar { display: none; }
.ra-archive-card .post-author__text { display: block; font-family: var(--ra-font-ui); font-size: 12px; line-height: 1.6; }
.ra-archive-card .author_name--wrap { display: inline; margin-right: 8px; }
.ra-archive-card .post-author__name,
.ra-archive-card .time { color: var(--ra-muted); }

/* Shared editorial hover treatment for homepage and related-story cards. */
.ra-card-compact .post__thumb { overflow: hidden; }
.ra-card-compact .post__thumb img { transition: transform .35s ease; }
.ra-card-compact:hover .post__thumb img { transform: scale(1.025); }

/* Sidebars use the same divider, headline and metadata hierarchy as content cards. */
.atbs-sub-col .widget { margin-bottom: 36px; }
.atbs-sub-col .widget__title { position: relative; border-bottom: 1px solid var(--ra-divider); padding: 12px 0 10px; margin-bottom: 20px; }
.atbs-sub-col .widget__title::before { content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 3px; background: var(--ra-accent); }
.atbs-sub-col .widget__title-text { color: var(--ra-ink); font-size: 1.5rem; line-height: 1.2; text-transform: capitalize; }
.atbs-sub-col .widget__title-text .first-word { color: inherit; }
.atbs-sub-col .posts-list .list-item { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--ra-border); }
.atbs-sub-col .posts-list .list-item:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.atbs-sub-col .post__title { color: var(--ra-ink); font-weight: 600; line-height: 1.3; }
.atbs-sub-col .widget-subscribe .widget__inner { padding: 22px; border: 1px solid var(--ra-border); background: var(--ra-card); }
.atbs-sub-col .widget-subscribe input { border-color: var(--ra-border); background: var(--ra-surface); }

/* Dense list item: keep the meta visible on tablet (Nvic hides it below 992px) */
.ra-list-item .post__meta { display: flex !important; }
.ra-list-item .post__title { margin-bottom: 4px; }
.ra-latest__list .list-item { padding: 18px 0; border-bottom: 1px solid var(--color-border); }
.ra-latest__list .list-item:first-child { padding-top: 0; }

/* Image-on-top card: fixed 3:2 thumbnail, grey box when the post has no image */
.ra-section-row, .ra-top-stories { margin-bottom: 0; }
.ra-card-compact .post__thumb { position: relative; height: auto; margin-bottom: 14px; }
.ra-card-compact .post-type-icon { opacity: 1; } /* Nvic only shows the play icon on hover */
.ra-card-compact .post-type-icon i { color: #fff; font-size: 28px; }
.ra-card-compact__img { display: block; aspect-ratio: 3 / 2; background: #e9e9e9; overflow: hidden; }
.ra-card-compact__img img { width: 100%; height: 100%; object-fit: cover; }
.ra-card-compact .post__text { padding-top: 2px; }
.ra-card-compact .post__title { font-size: 1.35rem; line-height: 1.22; font-weight: 600; }

/* Opinion card: the columnist comes first */
.ra-card-opinion { height: 100%; padding: 24px 20px; border-top: 3px solid var(--ghost-accent-color, var(--color-primary)); background: #f6f6f6; text-align: center; }
.ra-card-opinion__author { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 12px; }
.ra-card-opinion__avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.ra-card-opinion__avatar--empty { display: flex; align-items: center; justify-content: center; background: var(--color-title); color: #fff; font-size: 44px; line-height: 1; font-family: Georgia, serif; }
.ra-card-opinion .post-author__name { font-weight: 700; color: var(--color-title); text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
.ra-card-opinion .post__title { font-style: italic; margin-bottom: 10px; }
.ra-card-opinion .time { font-size: 13px; color: var(--color-meta); }

/* Video row: dark band, white text */
.ra-section-row--video { background: var(--color-bg); margin-top: 40px; padding-bottom: 40px; }
.ra-section-row--video .ra-row-heading { border-bottom-color: rgba(255,255,255,.3); }
.ra-section-row--video .ra-row-heading__more,
.ra-section-row--video .block-heading__title,
.ra-section-row--video .post__title a,
.ra-section-row--video .ra-meta .post-author__name { color: #fff; }
.ra-section-row--video .ra-meta { color: rgba(255,255,255,.7); }
.ra-section-row--video .ra-card-compact__img { background: #333; }

/* Section rows: 4 columns on desktop, 2 on tablet (Nvic classes), horizontal swipe on phones.
   Pure CSS, so it still works if JavaScript fails. */
@media (max-width: 767px) {
    .ra-swipe-row { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .ra-swipe-row::-webkit-scrollbar { display: none; }
    .ra-swipe-row > .list-item { flex: 0 0 78%; width: 78%; scroll-snap-align: start; }
    .ra-section-row, .ra-top-stories, .ra-latest { padding-top: 30px; }
    .ra-row-heading.block-heading_style-1.block-heading_style-1-small .block-heading__title { font-size: var(--ra-section-title-size-tablet); }
    .ra-row-heading::before { width: 46px; }
    .ra-top-stories .post-main .post__text-inner { max-width: 100%; padding: 22px; }
    .ra-top-stories .post-main .post__title { font-size: clamp(2rem, 8vw, 2.5rem); }
    .ra-top-stories .post-main .post__excerpt { font-size: 14px; }
    .ra-card-compact .post__title { font-size: 1.2rem; }
    .ra-page-heading { padding-bottom: 14px; margin-bottom: 24px; }
    .ra-page-heading.block-heading_style-1.block-heading_style-1-small .block-heading__title,
    .ra-page-heading > h1,
    .module-contact .contact-heading.ra-page-heading > h1 { font-size: var(--ra-section-title-size-tablet); }
    .tag-template .site-content > .atbs-block,
    .author-template .site-content > .atbs-block { padding: 36px 0 44px; }
}

@media (max-width: 575px) {
    .ra-row-heading.block-heading_style-1.block-heading_style-1-small .block-heading__title,
    .ra-page-heading.block-heading_style-1.block-heading_style-1-small .block-heading__title,
    .ra-page-heading > h1,
    .module-contact .contact-heading.ra-page-heading > h1 { font-size: var(--ra-section-title-size-small); }
}

@media (max-width: 480px) {
    .ra-row-heading.block-heading_style-1.block-heading_style-1-small .block-heading__title,
    .ra-page-heading.block-heading_style-1.block-heading_style-1-small .block-heading__title,
    .ra-page-heading > h1,
    .module-contact .contact-heading.ra-page-heading > h1 { font-size: var(--ra-section-title-size-mobile); }
}

/* Top stories on tablet/phone: lead on top, headlines below */
@media (max-width: 991px) {
    .ra-top-stories .section-main__inner { flex-direction: column; }
    .ra-top-stories .post-main { width: 100%; }
}

/* Events page: the event data and registration flow are rendered by Luma. */
.ra-events { padding: 60px 0; }
.ra-events__header { margin-bottom: 25px; }
.ra-events__intro { max-width: 760px; margin-bottom: 32px; color: var(--ra-ink); font-size: 17px; line-height: 1.7; }
.ra-events__embed { overflow: hidden; border: 1px solid var(--ra-border); background: var(--ra-card); box-shadow: 0 8px 24px rgba(23,22,20,.06); }
.ra-events__embed iframe { display: block; width: 100%; min-height: 760px; border: 0; }
.ra-events__external-link { margin: 24px 0 0; text-align: center; }
.ra-events__empty { padding: 60px 30px; border: 1px solid var(--ra-border); border-top: 3px solid var(--ra-accent); background: var(--ra-card); text-align: center; }
.ra-events__empty h2 { margin-top: 0; }

@media (max-width: 767px) {
    .ra-events { padding: 35px 0; }
    .ra-events__embed iframe { min-height: 680px; }
    .ra-events__empty { padding: 40px 20px; }
}

/* Contact page: submissions are delivered by the configured Formspree form. */
.ra-contact { padding: 60px 0; }
.ra-contact__inner { max-width: 820px; margin: 0 auto; }
.ra-contact__content { margin-bottom: 35px; }
.ra-contact-form { padding: 35px; border: 1px solid var(--ra-border); border-top: 3px solid var(--ra-accent); background: var(--ra-card); }
.ra-contact-form h2 { margin: 0 0 8px; color: var(--ra-ink); font-size: 2rem; }
.ra-contact-form__required { margin: 0 0 25px; color: var(--ra-muted); font-size: 13px; }
.ra-contact-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ra-contact-form__field { margin-bottom: 20px; }
.ra-contact-form__field label { display: block; margin-bottom: 8px; color: var(--ra-ink); font-weight: 600; }
.ra-contact-form__field input,
.ra-contact-form__field textarea { width: 100%; border-color: var(--ra-border); background: var(--ra-surface); }
.ra-contact-form__field textarea { min-height: 180px; resize: vertical; }
.ra-contact-form__field input:focus,
.ra-contact-form__field textarea:focus { border-color: var(--ra-accent); }
.ra-contact-form .contactform-submit { margin-top: 5px; }
.ra-contact-form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ra-contact__empty { padding: 50px 30px; border: 1px solid var(--ra-border); border-top: 3px solid var(--ra-accent); background: var(--ra-card); text-align: center; }
.ra-contact__empty h2 { margin-top: 0; }

@media (max-width: 767px) {
    .ra-contact { padding: 35px 0; }
    .ra-contact-form { padding: 25px 20px; }
    .ra-contact-form__grid { grid-template-columns: 1fr; gap: 0; }
    .ra-contact__empty { padding: 40px 20px; }
}

/* =========================================================
   Header and footer (Step 2)
   ========================================================= */
.site-header,
.site-header .navigation-bar,
.mobile-header,
.sticky-header .navigation-bar { background: var(--ra-header); }
.site-header { border-bottom-color: rgba(255,255,255,.1); }
.site-header .navigation-bar { height: 82px; padding: 0 40px; }
.site-header .navigation--main > li > a { height: 82px; padding: 0 26px; color: #fff; font-family: var(--ra-font-ui); font-size: 13px; font-weight: 600; line-height: 82px; letter-spacing: .12em; text-transform: uppercase; }
.site-header .navigation--main > li > a::before { height: 3px; background: var(--ra-accent); }
.site-header .navigation-bar-btn { height: 82px; color: #fff !important; }
.site-header .navigation-bar-btn i { line-height: 82px; }
.site-header .nav-btn-square { width: 64px; height: 82px; }
.site-header .navigation-bar__section:nth-child(3)::before { background: rgba(255,255,255,.28); }
.site-header .btn-subscribe-header { border-radius: 0; background: var(--ra-accent); border-color: var(--ra-accent); }
.site-footer .btn-primary,
.atbs-offcanvas .btn-primary { border-radius: 0; background: var(--ra-accent); border-color: var(--ra-accent); }
.site-footer .btn-primary:hover,
.atbs-offcanvas .btn-primary:hover { background: #fff; border-color: #fff; color: var(--ra-ink); }
.sticky-header .navigation--main > li > a,
.sticky-header .navigation-bar-btn,
.sticky-header .navigation-bar-btn i,
.sticky-header .site-logo-text { color: #fff; }
.mobile-header { min-height: 64px; }
.mobile-header .header-branding--mobile { overflow: hidden; }
.mobile-header .header-logo--mobile { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-header .mobile-header__section:last-child { display: flex; flex: 0 0 auto; margin-left: auto; }
.mobile-header .site-logo-text { font-size: 23px; }
.ra-header-link { color: #fff; font-weight: 600; font-size: 14px; margin-right: 16px; }
.ra-header-link:hover { color: var(--ra-accent); }

@media (max-width: 1366px) and (min-width: 992px) {
    .site-header .navigation-bar { padding: 0 20px; }
    .site-header .navigation--main > li > a { padding: 0 18px; }
}

@media (max-width: 991px) {
    .mobile-header .mobile-header__inner { min-height: 64px; padding-right: 92px; }
    .mobile-header .mobile-header__section:last-child { position: absolute; top: 0; right: 15px; height: 64px; }
    .mobile-header .mobile-header-btn { height: 64px; color: #fff; }
    .mobile-header .mobile-header-btn i { line-height: 64px; }
}

/* Light header: Theme settings -> Header style = Light */
.header-light .site-header .navigation-bar,
.header-light .mobile-header,
.header-light .sticky-header .navigation-bar { background: #fff; border-bottom: 1px solid var(--color-border); }
.header-light .site-header .navigation--main > li > a,
.header-light .sticky-header .navigation--main > li > a,
.header-light .site-header .site-logo-text,
.header-light .ra-header-link,
.header-light .navigation-bar-btn i,
.header-light .mobile-header-btn i { color: var(--color-title); }
.header-light .btn-menu-bar-icon rect { fill: var(--color-title); }

/* Footer: brand + Sections / Resources / Legal columns */
.ra-footer { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; padding-top: 50px; padding-bottom: 30px; }
/* Bootstrap's .container adds clearfix ::before/::after; in a grid they become empty cells and shift every column */
.ra-footer::before, .ra-footer::after { content: none; display: none; }
/* Hide a column whose list ended up empty (e.g. no Homepage section tags exist yet) */
.ra-footer__col:not(:has(li)) { display: none; }
.ra-footer__title { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; color: #fff; }
.ra-footer__links { list-style: none; margin: 0; padding: 0; }
.ra-footer__links li { margin-bottom: 8px; }
.ra-footer__links a { color: rgba(255,255,255,.75); font-size: 15px; }
.ra-footer__links a:hover { color: #fff; }
.ra-footer .footer-tagline { margin: 12px 0 16px; opacity: .75; }
.site-footer .ra-footer .social-list:not(.author-social-list) { justify-content: flex-start; } /* Nvic right-aligns footer socials */
.site-footer .footer-copyright { padding-bottom: 20px; }
@media (max-width: 767px) {
    .ra-footer { grid-template-columns: 1fr 1fr; gap: 28px; }
    .ra-footer__brand { grid-column: 1 / -1; }
}

/* =========================================================
   Article page (Step 3)
   ========================================================= */
.post-template .atbs-single-header.background-dots { background: var(--ra-header); }
.post-template .single-header .entry-title { color: #fff; font-size: clamp(2.5rem, 4.5vw, 4.75rem); font-weight: 600; line-height: 1.08; text-transform: none; }
.post-template .single-header .entry-teaser { color: rgba(255,255,255,.78); font-family: var(--ra-font-body); font-size: 17px; line-height: 1.6; }
.post-template .single-header .entry-meta { display: flex; color: rgba(255,255,255,.72); font-family: var(--ra-font-ui); font-size: 13px; letter-spacing: .02em; text-transform: none; }
.post-template .single-header .entry-author__name { color: #fff; }
.post-template .single-header .entry-cat { color: var(--ra-category-color, #fff); }
.post-template .single-header .entry-cat:hover { color: #fff; }
.post-template .single-1 .entry-thumb { width: 52%; height: auto; padding-bottom: 0; margin-right: 50px; border-left: 6px solid var(--ra-accent); }
.post-template .single-1 .entry-thumb::before { display: none; }
.post-template .single-1 .entry-thumb img { position: static; display: block; height: auto !important; aspect-ratio: 4 / 3; border-radius: 0; }
.post-template .single-entry-wrap { color: var(--ra-ink); }
.post-template .single-presentation { font-size: 17px; line-height: 1.75; }
.post-template .single-footer { border-color: var(--ra-border); }
.post-template .entry-tags ul { margin: -5px; }
.post-template .entry-tags ul > li { padding: 5px; }
.post-template .entry-tags .post-tag { display: inline-block; padding: 8px 11px; border: 1px solid currentColor; border-radius: 0; line-height: 1; }
.post-template .entry-tags .post-tag:hover { border-color: var(--ra-ink); background: var(--ra-ink); color: #fff; }
.post-template .author-box { max-width: none; padding: 24px; border: 1px solid var(--ra-border); border-top: 3px solid var(--ra-accent); background: var(--ra-card); }
.post-template .author-box .author-name a { color: var(--ra-ink); font-family: var(--ra-font-editorial); font-size: 1.35rem; text-transform: none; }
.post-template .author-box .author-bio { color: var(--ra-muted); }
.post-template .posts-navigation-wrap { border-color: var(--ra-border); }
.post-template .posts-navigation__label { color: var(--ra-accent); font-family: var(--ra-font-ui); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.post-template .posts-navigation .post__title { color: var(--ra-ink); }
/* Newsletter call-to-action after the article */
.ra-newsletter-cta { margin: 40px 0; padding: 32px; background: var(--ra-header); color: #fff; text-align: center; border-top: 4px solid var(--ra-accent); }
.ra-newsletter-cta__title { color: #fff; margin: 0 0 8px; font-family: var(--ra-font-editorial); }
.ra-newsletter-cta__text { opacity: .8; margin: 0 0 18px; }
.ra-newsletter-cta .subscribe-form__fields { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ra-newsletter-cta input[type=email] { padding: 10px 14px; min-width: 240px; border: 0; }

/* Related stories under the article */
.ra-related { margin: 40px 0; }

/* Primary tag above the article title */
.single-header .entry-cat { display: inline-block; margin-bottom: 12px; }

/* YouTube and other embeds: full width of the article column */
.gh-content .kg-embed-card { width: 100%; }
.gh-content .kg-embed-card > * { width: 100% !important; max-width: 100%; }

/* =========================================================
   Static pages (Step 5)
   ========================================================= */
.ra-static-page,
.ra-page-full { padding: 56px 0 64px; }
.ra-static-page .single-entry-wrap { margin-bottom: 0; }
.ra-static-page .entry-thumb,
.ra-page-full .entry-thumb { width: 100%; height: auto; padding-bottom: 0; margin: 0 0 32px; }
.ra-static-page .entry-thumb::before,
.ra-page-full .entry-thumb::before { display: none; }
.ra-static-page .entry-thumb img,
.ra-page-full .entry-thumb img { position: static; display: block; height: auto !important; aspect-ratio: 16 / 7; border-radius: 0; object-fit: cover; }
.ra-static-page .gh-content,
.ra-page-full .gh-content { color: var(--ra-ink); font-size: 17px; line-height: 1.75; }
.ra-page-full .gh-content { max-width: 100%; }

/* Author profile and miscellaneous pages */
.module-author .author-box { border: 1px solid var(--ra-border); border-top: 3px solid var(--ra-accent); background: var(--ra-card); }
.module-author .author-name { margin: 0 0 10px; color: var(--ra-ink); font-family: var(--ra-font-editorial); font-size: var(--ra-section-title-size); line-height: var(--ra-section-title-line-height); text-transform: none; }
.module-author .author-bio { color: var(--ra-muted); font-size: 16px; line-height: 1.6; }
.module-author .author-info a { color: var(--ra-muted); }
.module-author .author-info a:hover { color: var(--ra-accent); }
.atbs-404-block { background: var(--ra-surface); }
.atbs-404-block h1.number { color: var(--ra-accent); font-family: var(--ra-font-editorial); }
.atbs-404-block .error-sub-title { color: var(--ra-ink); text-transform: none; }
.atbs-404-block .button__readmore { color: var(--ra-accent); font-family: var(--ra-font-ui); font-weight: 700; }

/* Pagination */
.atbs-pagination { padding-top: 24px; border-top: 1px solid var(--ra-border); color: var(--ra-muted); font-family: var(--ra-font-ui); }
.atbs-pagination .btn { border-radius: 0; border-color: var(--ra-divider); background: transparent; color: var(--ra-ink); }
.atbs-pagination .btn:hover { background: var(--ra-ink); color: #fff; }

@media (max-width: 767px) {
    .post-template .single-header .entry-title { font-size: clamp(2rem, 9vw, 3rem); }
    .post-template .single-header .entry-teaser { display: block; font-size: 15px; }
    .post-template .single-1 .entry-thumb { width: 100%; margin: 0 0 28px; }
    .post-template .single-1 .entry-thumb img { aspect-ratio: 16 / 10; }
    .post-template .single-presentation,
    .ra-static-page .gh-content,
    .ra-page-full .gh-content { font-size: 16px; }
    .ra-static-page,
    .ra-page-full { padding: 36px 0 44px; }
    .module-author .author-box { padding: 28px 22px; }
    .module-author .author-name { font-size: var(--ra-section-title-size-tablet); }
    .atbs-404-block h1.number { font-size: 110px; }
    .atbs-404-block .error-sub-title { font-size: 32px; }
    .atbs-404-block .error-notice { font-size: 17px; }
}
