:root {
    --nr-ink: #071725;
    --nr-ink-2: #0b2133;
    --nr-teal: #0a7980;
    --nr-blue: #3680c0;
    --nr-violet: #6f75aa;
    --nr-purple: #a4639b;
    --nr-magenta: #ea2c86;
    --nr-coral: #f05f77;
    --nr-orange: #f4a063;
    --nr-offwhite: #f5f6f3;
    --nr-coolgray: #e9eef1;
    --nr-midgray: #667785;
    --nr-white: #ffffff;
    --nr-text: #10202f;
    --nr-radius: 8px;
    --nr-shadow: 0 18px 55px rgba(4, 23, 38, .12);
    --nr-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/*
   A handful of rules below use !important on link/nav-link colors
   (.nr-primary-nav a, .nr-footer-nav a, .nr-header-cta a, etc.). That's
   deliberate, not sloppy: Bedrock's Bootstrap-based .nav-link/.btn/.a
   defaults are loaded by Atomik's core stylesheet ahead of this file at
   comparable selector specificity, so without !important the link colors
   here are only reliably correct with a live install and the actual
   compiled Bedrock CSS in front of you to verify cascade order against.
   I left them in place rather than remove them speculatively. If you
   later confirm on your install that they're not needed, they can come
   out one at a time -- just re-check each in a real browser, since
   removing them all at once is how this kind of regression slips through
   unnoticed on a future Concrete point-release CSS change.
*/

html { scroll-behavior: smooth; }

/*
   neurorounds.css never defined .container itself -- every section
   (header, hero, footer, the four content sections in home.php) was
   depending entirely on Atomik/Bedrock's own compiled .container class
   to supply both the max-width AND the horizontal gutters. On at least
   one real install that dependency produced full-bleed content with
   zero side padding (logo and header CTA touching the viewport edges).
   Scoping our own .container rule under .theme-neurorounds fixes it
   without touching whatever .container means elsewhere in Atomik/core
   block markup outside this theme's own templates.
*/
.theme-neurorounds .container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1.25rem, 4vw, 2.5rem);
    padding-right: clamp(1.25rem, 4vw, 2.5rem);
    box-sizing: border-box;
}

.theme-neurorounds {
    background: var(--nr-white);
    color: var(--nr-text);
    font-family: var(--nr-font);
    font-size: 16px;
    line-height: 1.55;
}

.theme-neurorounds a { color: var(--nr-teal); }
.theme-neurorounds a:hover { color: #075e64; }
.theme-neurorounds h1,
.theme-neurorounds h2,
.theme-neurorounds h3,
.theme-neurorounds h4 {
    color: var(--nr-text);
    font-family: var(--nr-font);
    font-weight: 750;
    letter-spacing: -.025em;
}

.nr-skip-link {
    position: fixed;
    left: 1rem;
    top: -5rem;
    z-index: 10000;
    background: var(--nr-white);
    color: var(--nr-ink) !important;
    padding: .65rem .85rem;
    border-radius: 4px;
}
.nr-skip-link:focus { top: 1rem; }

.nr-site-header {
    position: relative;
    z-index: 200;
    background: var(--nr-ink);
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: box-shadow .2s ease;
}
.nr-site-header.is-scrolled { box-shadow: 0 8px 28px rgba(0,0,0,.2); }
.nr-header-inner {
    min-height: 88px;
    display: grid;
    grid-template-columns: minmax(220px, 330px) 1fr auto;
    grid-template-areas: "brand nav cta";
    align-items: center;
    gap: 2rem;
}
.nr-brand { grid-area: brand; display: block; line-height: 0; }
.nr-brand img { display: block; width: min(310px, 100%); height: auto; }

.nr-primary-nav { grid-area: nav; justify-self: end; }
.nr-header-cta { grid-area: cta; }

/*
   Concrete's core Top Navigation Bar block renders its own self-contained
   Bootstrap 5 navbar component (.navbar, .navbar-toggler, .collapse,
   .navbar-nav) -- it's built to BE a page's entire header nav, not to be
   nested inside a custom one like ours. On this install its Bootstrap CSS
   isn't cascading (same root issue as the .container fix above): the
   .navbar-toggler button and the .navbar-collapse links were both showing
   at once, and the toggler's icon-bar spans had no styling so it appeared
   as a blank gray pill. Everything below controls this block directly so
   it no longer depends on Atomik/Bootstrap's CSS being present at all.
*/
.nr-primary-nav .navbar-brand,
.nr-primary-nav .container-fluid { padding: 0; margin: 0; background: none !important; }
.nr-primary-nav .navbar-brand { display: none; }
.nr-primary-nav .navbar { background: none !important; }
.nr-primary-nav .navbar.fixed-top { position: static !important; top: auto; }

/*
   Mobile-first, matching Bootstrap's own navbar-expand-lg logic exactly:
   collapsed and hidden by default, toggler visible by default, then both
   flip at the lg breakpoint (992px) via a min-width query below. The
   previous version used ":not(.show)" to mean "visible by default,"
   which put it at higher specificity than the mobile override trying to
   hide it -- so the links stayed visible and the toggler had nothing
   left to actually control. Plain equal-specificity selectors plus
   correct source order (mobile rule first, desktop override after)
   avoids that trap entirely.
*/
.nr-primary-nav .navbar-toggler {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    border-radius: 6px;
    padding: .5rem .65rem;
    cursor: pointer;
    opacity: 1 !important;
}
/*
   Same real-Bootstrap-CSS-now-loading issue as the .navbar-collapse fix
   above: the toggler and its bars were invisible by default and only
   appearing on :hover, which points at something (likely Bootstrap's
   own default button/icon opacity or color handling) suppressing them
   until a :hover-triggered state change. Forcing these explicitly
   removes the ambiguity regardless of the exact competing rule.
*/
.nr-primary-nav .navbar-toggler .icon-bar {
    display: block !important;
    width: 20px;
    height: 2px;
    background: var(--nr-white) !important;
    border-radius: 1px;
    opacity: 1 !important;
}
.nr-primary-nav .navbar-collapse {
    display: none;
    width: 100%;
    background: var(--nr-ink-2);
    border-radius: 8px;
    margin-top: .75rem;
    padding: .5rem 1rem 1rem;
}
.nr-primary-nav .navbar-collapse.show { display: block; }
.nr-primary-nav .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nr-primary-nav .navbar-nav .nav-link {
    display: block;
    padding: .65rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.nr-primary-nav .navbar-nav li:last-child .nav-link { border-bottom: none; }

@media (min-width: 992px) {
    .nr-primary-nav .navbar-toggler { display: none; }
    .nr-primary-nav .navbar-collapse {
        display: block;
        width: auto;
        /*
           !important here is now actually necessary, not defensive
           boilerplate: with a Skin selected in Page Settings > Design,
           Atomik's real compiled Bootstrap CSS started loading on this
           install (a good sign generally), and its own .navbar-light /
           .collapse styling was winning against our plain background:
           none, showing as an unwanted light gray box behind the nav
           links -- which also made our white link text (correct against
           the dark header) look washed out against that light box.
        */
        background: none !important;
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0;
        margin-top: 0;
        padding: 0;
    }
    .nr-primary-nav .navbar-nav {
        flex-direction: row;
        align-items: center;
        gap: 1.6rem;
    }
    .nr-primary-nav .navbar-nav .nav-link { padding: 0; border-bottom: none; background: none !important; }
}
.nr-primary-nav ul,
.nr-primary-nav .nav,
.nr-primary-nav .ccm-block-top-navigation-bar ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.nr-primary-nav a,
.nr-primary-nav .nav-link {
    color: rgba(255,255,255,.92) !important;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
    text-decoration: none;
}
.nr-primary-nav a:hover,
.nr-primary-nav .nav-path-selected > a { color: var(--nr-coral) !important; }

.nr-header-cta .ccm-block-content p { margin: 0; }
.nr-header-cta a,
.nr-button-magenta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .8rem 1.35rem;
    border-radius: 4px;
    background: var(--nr-magenta);
    color: var(--nr-white) !important;
    font-size: .82rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--nr-magenta);
}
.nr-header-cta a:hover,
.nr-button-magenta:hover { background: #d81f75; border-color: #d81f75; }


.nr-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 25%, rgba(234,44,134,.12), transparent 18%),
        radial-gradient(circle at 72% 45%, rgba(54,128,192,.13), transparent 24%),
        linear-gradient(112deg, var(--nr-ink) 0%, var(--nr-ink-2) 72%, #0a2032 100%);
    color: var(--nr-white);
    padding: 2.5rem 0 3.8rem;
}
.nr-hero:after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -130px;
    bottom: -180px;
    border-radius: 50%;
    opacity: .3;
    background-image: radial-gradient(circle, var(--nr-magenta) 0 3px, transparent 4px);
    background-size: 24px 24px;
}
.nr-hero .container { position: relative; z-index: 1; }
.nr-hero-intro { padding: 1.5rem .5rem 0; }
.nr-hero-intro h1 {
    color: var(--nr-white);
    font-size: clamp(2.55rem, 4.5vw, 4.65rem);
    line-height: 1.02;
    margin-bottom: 1.3rem;
    max-width: 10ch;
}
.nr-hero-intro h1:after {
    content: "";
    display: block;
    width: 42px;
    height: 2px;
    margin-top: 1.4rem;
    background: var(--nr-teal);
}
.nr-hero-intro p {
    max-width: 38rem;
    color: rgba(255,255,255,.75);
    font-size: 1.06rem;
}
.nr-hero-intro .nr-credit-note {
    margin-top: 2rem;
    padding-left: 3rem;
    position: relative;
    color: rgba(255,255,255,.78);
    font-size: .84rem;
    max-width: 27rem;
}
.nr-hero-intro .nr-credit-note:before {
    content: "+";
    position: absolute;
    left: 0;
    top: .05rem;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--nr-teal);
    border-radius: 50%;
    color: var(--nr-teal);
    font-size: 1.1rem;
}

.nr-upcoming-card {
    min-height: 100%;
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: var(--nr-radius);
    background:
        radial-gradient(circle at 85% 18%, rgba(234,44,134,.16), transparent 26%),
        linear-gradient(145deg, rgba(16,44,66,.98), rgba(7,23,37,.98));
    border: 1px solid rgba(255,255,255,.055);
    box-shadow: var(--nr-shadow);
}
.nr-upcoming-card .nr-eyebrow,
.nr-section-kicker {
    color: var(--nr-teal);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.nr-upcoming-card .nr-eyebrow { color: var(--nr-magenta); }
.nr-upcoming-card h2,
.nr-upcoming-card h3 { color: var(--nr-white); }
.nr-upcoming-card h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); max-width: 15ch; margin: 1rem 0; }
.nr-upcoming-card p { color: rgba(255,255,255,.75); }
.nr-upcoming-card .nr-event-date { color: var(--nr-white); font-size: 1.3rem; margin-top: 1rem; }
.nr-upcoming-card .nr-event-time { color: #17a2ad; font-size: 1.25rem; font-weight: 700; }
.nr-upcoming-card .nr-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.nr-button-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .78rem 1.25rem;
    border: 1px solid var(--nr-teal);
    border-radius: 4px;
    color: #4fb7be !important;
    text-decoration: none;
    text-transform: uppercase;
    font-size: .8rem;
    font-weight: 750;
    letter-spacing: .045em;
}
.nr-button-outline-dark:hover { background: rgba(10,121,128,.13); }

.nr-section { padding: clamp(3.25rem, 6vw, 5.5rem) 0; }
.nr-section-kicker { margin-bottom: .55rem; }
.nr-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.6rem; }
.nr-section-heading h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.45rem); }

.nr-latest-section { background: var(--nr-white); }
.nr-live-callout {
    height: 100%;
    padding: 2rem 1.5rem;
    background: linear-gradient(145deg, #f7fafb, #edf3f5);
    border-radius: var(--nr-radius);
    border: 1px solid var(--nr-coolgray);
}
.nr-live-callout h3 { font-size: 1.4rem; }
.nr-live-callout p { color: var(--nr-midgray); font-size: .95rem; }
.nr-live-callout a { color: var(--nr-magenta); font-weight: 750; text-transform: uppercase; font-size: .78rem; letter-spacing: .04em; text-decoration: none; }

/* Latest Round Page List custom template */
.nr-latest-round { display: grid; grid-template-columns: minmax(260px, 42%) 1fr; gap: 2rem; align-items: center; }
.nr-latest-round-media { position: relative; overflow: hidden; border-radius: 5px; background: var(--nr-ink); aspect-ratio: 16 / 9; }
.nr-latest-round-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nr-latest-round-media:after {
    content: "▶";
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 62px; height: 62px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(4,23,38,.9);
    color: #18a5af;
    font-size: 1.4rem;
    padding-left: 4px;
}
.nr-latest-round-copy h3 { font-size: clamp(1.65rem, 3vw, 2.2rem); margin-bottom: .75rem; }
.nr-latest-round-meta { display: flex; flex-wrap: wrap; gap: .45rem 1rem; color: var(--nr-teal); font-size: .82rem; margin-bottom: 1rem; }
.nr-latest-round-speakers { font-size: .92rem; font-weight: 650; color: #243746; margin-bottom: 1rem; }
.nr-latest-round-description { color: var(--nr-midgray); max-width: 60ch; }
.nr-text-link { display: inline-flex; margin-top: 1rem; color: var(--nr-teal) !important; font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.nr-text-link:after { content: "→"; margin-left: .7rem; }

.nr-library-section { background: linear-gradient(180deg, #f7fafb 0%, #eef3f5 100%); }
.nr-library-tools .ccm-block-content p { margin: 0; }
.nr-library-tools a { display: inline-block; font-size: .78rem; font-weight: 750; text-decoration: none; text-transform: uppercase; letter-spacing: .045em; }

/* NeuroRounds Library Page List custom template */
.nr-library-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.nr-session-card { min-width: 0; background: var(--nr-white); border: 1px solid var(--nr-coolgray); border-radius: 5px; overflow: hidden; box-shadow: 0 8px 22px rgba(15,35,50,.055); transition: transform .16s ease, box-shadow .16s ease; }
.nr-session-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(15,35,50,.11); }
.nr-session-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--nr-ink); }
.nr-session-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.nr-session-card:hover .nr-session-card-media img { transform: scale(1.025); }
.nr-duration { position: absolute; right: .45rem; bottom: .4rem; padding: .13rem .32rem; background: rgba(4,23,38,.86); color: #fff; border-radius: 2px; font-size: .68rem; }
.nr-session-card-body { padding: 1rem; }
.nr-session-topic { color: var(--nr-teal); font-size: .67rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.nr-session-topic:before { content: "●"; margin-right: .35rem; color: var(--nr-teal); }

/*
   Topic dot color, keyed off the nr_topic_label page attribute (via the
   nr-topic-* class the templates now add to each card), NOT the card's
   position in the grid. v1 used :nth-child(3n)/(3n+2) which recolors
   whatever happens to land in slot 2 or 3 of the DOM order — so the same
   topic shows a different color depending on sort order/pagination, and
   two different topics can land on the same color by coincidence.
   Extend this list as your topic taxonomy is finalized (README step 14);
   the PHP side has a matching map with a safe default so an unrecognized
   topic label still renders (as teal) instead of erroring.
*/
.nr-topic-teal:before    { color: var(--nr-teal); }
.nr-topic-blue:before    { color: var(--nr-blue); }
.nr-topic-violet:before  { color: var(--nr-violet); }
.nr-topic-purple:before  { color: var(--nr-purple); }
.nr-topic-magenta:before { color: var(--nr-magenta); }
.nr-topic-coral:before   { color: var(--nr-coral); }
.nr-topic-orange:before  { color: var(--nr-orange); }
.nr-session-card h3 { margin: .5rem 0 .55rem; font-size: 1rem; line-height: 1.25; }
.nr-session-card h3 a { color: var(--nr-text); text-decoration: none; }
.nr-session-card-date { color: #81909b; font-size: .75rem; margin-bottom: .55rem; }
.nr-session-card-speakers { color: var(--nr-midgray); font-size: .75rem; line-height: 1.45; }

.nr-benefits-section {
    position: relative;
    overflow: hidden;
    background: var(--nr-ink);
    color: var(--nr-white);
    padding: 3.8rem 0;
}
.nr-benefits-section:after {
    content: "";
    position: absolute;
    width: 260px; height: 260px;
    right: -90px; bottom: -100px;
    opacity: .5;
    background-image: radial-gradient(circle, var(--nr-magenta) 0 3px, transparent 4px);
    background-size: 22px 22px;
}
.nr-benefits-heading { color: var(--nr-white); font-size: 1.05rem; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: .045em; margin-bottom: 2rem; }
.nr-benefits-section .ccm-layout-row,
.nr-benefits-section .row { position: relative; z-index: 1; }
.nr-benefits-section h3,
.nr-benefits-section h4 { color: var(--nr-white); font-size: 1rem; }
.nr-benefits-section p { color: rgba(255,255,255,.72); font-size: .82rem; }
.nr-benefit { text-align: center; padding: .5rem 1.2rem; }
.nr-benefit-icon { font-size: 1.8rem; color: var(--nr-teal); margin-bottom: .65rem; }

.nr-hosts-section { background: var(--nr-white); }
.nr-hosts-intro { padding: .6rem 1rem 0 0; }
.nr-hosts-intro h2 { font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.05; }
.nr-host-card { height: 100%; background: #f8fafb; border: 1px solid var(--nr-coolgray); border-radius: var(--nr-radius); overflow: hidden; }
.nr-host-card .ccm-block-image img { width: 100%; height: auto; display: block; }
.nr-host-card .ccm-block-content { padding: 1.35rem 1.5rem 1.5rem; }
.nr-host-card h3 { margin-bottom: .2rem; font-size: 1.2rem; }
.nr-host-card h4 { color: var(--nr-teal); font-size: .78rem; font-weight: 700; letter-spacing: .01em; }
.nr-host-card p { color: var(--nr-midgray); font-size: .9rem; }

.nr-page-header { background: var(--nr-ink); color: var(--nr-white); padding: 2.6rem 0; }
.nr-page-header h1, .nr-page-header h2 { color: var(--nr-white); margin: 0; }
.nr-inner-page .nr-section { min-height: 45vh; }

.nr-site-footer { background: #04111d; color: rgba(255,255,255,.65); padding: 2.2rem 0 1.1rem; }
.nr-footer-main { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.nr-footer-brand img { width: 210px; height: auto; }
.nr-footer-brand p { margin: .65rem 0 0; font-size: .75rem; }
.nr-footer-nav ul { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nr-footer-nav a { color: rgba(255,255,255,.75) !important; text-decoration: none; font-size: .73rem; text-transform: uppercase; letter-spacing: .04em; }
.nr-footer-bottom { display: flex; justify-content: space-between; gap: 2rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .72rem; }
.nr-footer-login a { color: rgba(255,255,255,.55) !important; }

@media (max-width: 1199.98px) {
    .nr-library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nr-header-inner { grid-template-columns: 240px 1fr auto; gap: 1rem; }
}

/*
   Header, 991.98px and below: nav wraps to its own full-width row under
   the logo; the Register CTA stays on the top row next to the logo at
   every width from here down. It is never display:none — on a site whose
   whole job is converting to live-event registration, hiding the primary
   CTA on the devices most of this audience is using would cost
   conversions for a styling convenience.
*/
@media (max-width: 991.98px) {
    .nr-header-inner {
        min-height: auto;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand cta"
            "nav nav";
        row-gap: .75rem;
        padding-top: .85rem;
        padding-bottom: .85rem;
    }
    .nr-brand img { width: 225px; }
    .nr-primary-nav { justify-self: stretch; }
    .nr-header-cta { justify-self: end; align-self: start; }
    .nr-hero { padding-top: 1.2rem; }
    .nr-hero-intro { padding-bottom: 1rem; }
    .nr-latest-round { grid-template-columns: 1fr; }
    .nr-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    /* Below phone width the full "Register for the live event" label in
       the hero button wraps awkwardly two levels deep; the header CTA
       switches to its compact sizing here so both stay one-line. */
    .nr-header-cta a,
    .nr-header-cta .nr-button-magenta {
        padding: .65rem .8rem;
        font-size: .7rem;
    }
    .nr-section-heading { display: block; }
    .nr-library-tools { margin-top: 1rem; }
    .nr-library-grid { grid-template-columns: 1fr; }
    .nr-footer-main, .nr-footer-bottom { display: block; }
    .nr-footer-nav { margin-top: 1.5rem; }
    .nr-footer-bottom > * + * { margin-top: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *:before, *:after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
